expand_smacro: Don't search for ID in global context
commitc56d9ad350684c0b8963d2d370fa1c53718f5548
authorCyrill Gorcunov <gorcunov@gmail.com>
Thu, 11 Feb 2010 12:12:19 +0000 (11 15:12 +0300)
committerCyrill Gorcunov <gorcunov@gmail.com>
Thu, 11 Feb 2010 18:28:41 +0000 (11 21:28 +0300)
tree2db860f54ada709522da928d891b80ff1801e69d
parent3cbd9e72152bb1aa105793eb177385a02ac3dbb1
expand_smacro: Don't search for ID in global context

The corner case is the code like

%define foo 1
%push bar
%$foo:
%pop

for which v2.07 ends up with "foo = 1" while 0.98.39
issue an error.

hpa said that ideally we may need to create a context
structure for the global context but this seems to be
too agressive for 2.08.

Based on patch from nasm64developer

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
preproc.c