diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-16 17:20:47 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-17 10:01:04 -0800 |
commit | e138af189b10854ba16cbc99843a171c59c6d331 (patch) | |
tree | 6c50ac845e1ea403175f2036e54c9007b9129513 /emcc | |
parent | 3c4f29d187ce68f6e0b21a59eb8399a7c6e6eb16 (diff) |
remove current memory initialization chunking via .concat(..)
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1913,9 +1913,7 @@ try: shared.try_delete(memfile) def repl(m): # handle chunking of the memory initializer - s = re.sub('[\[\]\n\(\)\. ]', '', m.groups(0)[0]) - s = s.replace('concat', ',') - if s[-1] == ',': s = s[:-1] + s = m.groups(0)[0][1:-1] open(memfile, 'wb').write(''.join(map(lambda x: chr(int(x or '0')), s.split(',')))) if DEBUG: # Copy into temp dir as well, so can be run there too |