diff options
author | scottmg@chromium.org <scottmg@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c> | 2012-05-01 23:57:26 +0000 |
---|---|---|
committer | scottmg@chromium.org <scottmg@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c> | 2012-05-01 23:57:26 +0000 |
commit | 0534ef0dcba709f6f059ad31b73287042f40524d (patch) | |
tree | ff0b8caad2a4b7611f8c427e42583d16c1488758 | |
parent | 3c5fb45a0ef38ca08793c28dad3cf5be29b25f7f (diff) | |
download | patched-yasm-0534ef0dcba709f6f059ad31b73287042f40524d.tar.gz |
Merge https://github.com/yasm/yasm/commit/2bd66514b6b100887c19d8598da38347b3cff40e
BUG=125646
Review URL: https://chromiumcodereview.appspot.com/10289003
git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/yasm/patched-yasm@134825 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
-rw-r--r-- | tools/re2c/code.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/re2c/code.c b/tools/re2c/code.c index a3341cb..8a78eaa 100644 --- a/tools/re2c/code.c +++ b/tools/re2c/code.c @@ -844,14 +844,13 @@ void DFA_emit(DFA *d, FILE *o){ nOrgOline = oline; maxFillIndexes = vFillIndexes; orgVFillIndexes = vFillIndexes; - tmpo = fopen("re2c.tmp", "wt"); + tmpo = tmpfile(); for(s = d->head; s; s = s->next){ int readCh = 0; State_emit(s, tmpo, &readCh); Go_genGoto(&s->go, tmpo, s, s->next, &readCh); } fclose(tmpo); - remove("re2c.tmp"); maxFillIndexes = vFillIndexes; vFillIndexes = orgVFillIndexes; oline = nOrgOline; |