diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2012-08-04 10:51:58 +0400 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2012-08-07 11:27:17 +0400 |
commit | 1cf9b31d5513e71ba6fc01cccd22bcf0de8eb445 (patch) | |
tree | d1f6793b3120d6466ae5839ff23168cca02c03b5 /lib/snprintf.c | |
parent | eb867fe78e2ac71256ded5559f04a899ae93ab89 (diff) | |
download | nasm-1cf9b31d5513e71ba6fc01cccd22bcf0de8eb445.tar.gz nasm-1cf9b31d5513e71ba6fc01cccd22bcf0de8eb445.tar.bz2 nasm-1cf9b31d5513e71ba6fc01cccd22bcf0de8eb445.zip |
BR 3392207: preproc: Rewrite paste_tokens routine
This should make it easier to read and moreover
now we're able to preprocess pasting as
%define N 1e%++%+ 5
dd N, 1e+5
Note that N should be expanded as series of pasting
to 1e+5 term, but before this patch we were ending
up in 1e+%+ 5 which is wrong.
In other words the fixed version output is
dd 1e+5, 1e+5
while broken one was
dd 1e+%+ 5, 1e+5
This patch also fixes nil dereferences in case if
there is no left or right token around pasting term.
http://bugzilla.nasm.us/show_bug.cgi?id=3392207
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'lib/snprintf.c')
0 files changed, 0 insertions, 0 deletions