aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-04 18:37:00 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-04 18:37:00 -0700
commitbae4c91d0acf4fd70e0c17ad178b07d2eb6345d9 (patch)
tree8a02a4334992a4589896307279edfae1c2eeab83 /emscripten.py
parent10f70b2a9bd7b0a1fdc3c140bf3c00ebad8420a9 (diff)
pre-apply {{{ FI_* }}} as well
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py
index a42fe116..8f68ee77 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -312,7 +312,7 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None,
def split_32(x):
x = int(x)
return '%d,%d,%d,%d' % (x&255, (x >> 8)&255, (x >> 16)&255, (x >> 24)&255)
- ret = re.sub(r"\"'{{ FI_([\w\d_$]+) }}'\",0,0,0", lambda m: split_32(indexing.get(m.groups(0)[0]) or 0), js)
+ ret = re.sub(r"\"?'?{{ FI_([\w\d_$]+) }}'?\"?,0,0,0", lambda m: split_32(indexing.get(m.groups(0)[0]) or 0), js)
return re.sub(r"'{{ FI_([\w\d_$]+) }}'", lambda m: str(indexing.get(m.groups(0)[0]) or 0), ret)
blockaddrs = forwarded_json['Functions']['blockAddresses']