]> granicus.if.org Git - yasm/commit
Fix #155: Don't crash on missing %endmacro.
authorPeter Johnson <peter@tortall.net>
Tue, 24 Mar 2009 06:33:32 +0000 (06:33 -0000)
committerPeter Johnson <peter@tortall.net>
Tue, 24 Mar 2009 06:33:32 +0000 (06:33 -0000)
commit338a832c3478deb9360bd5638a0201f5565a96a9
treef6ee4d340bcccb61a9f03df07919aa70306a5418
parent73276e64a8b30973dbc141e9d0929c14351e58bd
Fix #155: Don't crash on missing %endmacro.

We were crashing because we didn't generate this error until the preproc
module was getting cleaned up, which doesn't happen until after linemap
is cleaned up.  Instead detect and output this error when we reach the end
of preprocessed tokens during the parsing stage.

svn path=/trunk/yasm/; revision=2185
modules/preprocs/nasm/nasm-pp.c
modules/preprocs/nasm/nasm-preproc.c
modules/preprocs/nasm/tests/Makefile.inc
modules/preprocs/nasm/tests/macroeof-err.asm [new file with mode: 0644]
modules/preprocs/nasm/tests/macroeof-err.errwarn [new file with mode: 0644]