diff --git a/preprocessor.py b/preprocessor.py index 468ae41a5..242732094 100644 --- a/preprocessor.py +++ b/preprocessor.py @@ -579,7 +579,7 @@ def read_line(l): # export all labels if ':' in asm[:asm.find('"')]: - sys.stdout.write('GLOBAL ' + asm.split(':')[0] + '\n') + sys.stdout.write('GLOBAL ' + asm.split(':')[0] + '\n') # expect preprocessed .asm files if "INCLUDE" in asm: diff --git a/prequeue.py b/prequeue.py index 156d3e942..c90d133ea 100644 --- a/prequeue.py +++ b/prequeue.py @@ -9,9 +9,8 @@ import sys import preprocessor if __name__ == '__main__': - for source in sys.argv[1:]: - dest = os.path.splitext(source)[0] + '.tx' - sys.stdin = open(source, 'r') - sys.stdout = open(dest, 'w') - preprocessor.preprocess() - + for source in sys.argv[1:]: + dest = os.path.splitext(source)[0] + '.tx' + sys.stdin = open(source, 'r') + sys.stdout = open(dest, 'w') + preprocessor.preprocess()