fix nested else statements

This commit is contained in:
Bill Currie 2001-06-02 03:37:06 +00:00
parent 85333a9f96
commit 25b02984b8

View file

@ -144,7 +144,7 @@ def process_source (source_file):
if defines.has_key (arg1):
condition[-1]=0
elif directive == 'else':
condition[-1] = not condition[-1]
condition[-1] = condition [-2] and not condition[-1]
elif directive == 'endif':
del condition[-1]
else: