Skip to content

Commit

Permalink
Fix const and remote attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Hebner authored and zardus committed Jan 27, 2016
1 parent 5331c9f commit 909ed17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions make_ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def doit(vex_path):
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 = re.sub('\{\s*\} NoOp;', '{ int DONOTUSE; } NoOp;', ffi_text)
ffi_text = re.sub('__attribute__\s*\(.*\)', '', ffi_text)
ffi_text = ffi_text.replace('__const', 'const')
ffi_lines = ffi_text.split(linesep)

good = find_good_scan([], ffi_lines)
Expand Down

0 comments on commit 909ed17

Please sign in to comment.