Skip to content

Commit

Permalink
Strip out extraneous assignemnt statements that slipped through the h…
Browse files Browse the repository at this point in the history
…orrible algorithm
  • Loading branch information
rhelmot committed Oct 28, 2019
1 parent d67020a commit a8064e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make_ffi.py
Expand Up @@ -109,7 +109,7 @@ def doit(vex_path):
# header = vex_pp + pyvex_pp

linesep = '\r\n' if '\r\n' in header else '\n'
ffi_text = linesep.join(line for line in header.split(linesep) if '#' not in line and line.strip() != '' and 'jmp_buf' not in line)
ffi_text = linesep.join(line for line in header.split(linesep) if '#' not in line and line.strip() != '' and 'jmp_buf' not in line and not ('=' in line and ';' in line))
ffi_text = re.sub('\{\s*\} NoOp;', '{ int DONOTUSE; } NoOp;', ffi_text)
ffi_text = re.sub('__attribute__\s*\(.*\)', '', ffi_text)
ffi_text = re.sub('__declspec\s*\([^\)]*\)', '', ffi_text)
Expand Down

0 comments on commit a8064e0

Please sign in to comment.