aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/epp.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2010-03-02 06:52:04 +0000
committerErlang/OTP <[email protected]>2010-03-02 06:52:04 +0000
commitbab41941d414415d9dd9cdc725ae243488b93940 (patch)
treed34c0461e6ca9cb1a06e46f64ae661a1e09cfbbc /lib/stdlib/src/epp.erl
parent0961f08a58ccdc870920ec7f690fbf23a28dfe74 (diff)
downloadotp-bab41941d414415d9dd9cdc725ae243488b93940.tar.gz
otp-bab41941d414415d9dd9cdc725ae243488b93940.tar.bz2
otp-bab41941d414415d9dd9cdc725ae243488b93940.zip
OTP-8470 stdlib: epp bug
The Erlang code preprocessor (epp) sent extra messages on the form {eof,Location} to the client when parsing the file attribute. This bug, introduced in R11B, has been fixed.
Diffstat (limited to 'lib/stdlib/src/epp.erl')
-rw-r--r--lib/stdlib/src/epp.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/epp.erl b/lib/stdlib/src/epp.erl
index 424aed3d2e..2aa52ea84a 100644
--- a/lib/stdlib/src/epp.erl
+++ b/lib/stdlib/src/epp.erl
@@ -753,7 +753,7 @@ scan_file([{'(',_Llp},{string,_Ls,Name},{',',_Lc},{integer,_Li,Ln},{')',_Lrp},
Ms = dict:store({atom,'FILE'}, {none,[{string,1,Name}]}, St#epp.macs),
Locf = loc(Tf),
NewLoc = new_location(Ln, St#epp.location, Locf),
- scan_toks(From, St#epp{name=Name,location=NewLoc,macs=Ms});
+ wait_req_scan(St#epp{name=Name,location=NewLoc,macs=Ms});
scan_file(_Toks, Tf, From, St) ->
epp_reply(From, {error,{loc(Tf),epp,{bad,file}}}),
wait_req_scan(St).