aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-02 20:04:01 -0500
committerAlon Zakai <alonzakai@gmail.com>2013-12-02 20:04:01 -0500
commit4b313bbfdfd03dd375a901f18cf3a6e9a9a77b64 (patch)
treee69ef62de408f4476f876972260e8b69f942e78b /emscripten.py
parenta327579fff22747e6854656dff43e71d11766289 (diff)
use externs for fastcomp vars and declare for fastcomp funcs
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/emscripten.py b/emscripten.py
index 7bf93a4f..da3b5361 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -800,7 +800,7 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None,
set(settings['DEFAULT_LIBRARY_FUNCS_TO_INCLUDE'] + map(shared.JS.to_nice_ident, metadata['declares'])).difference(
map(lambda x: x[1:], metadata['implementedFunctions'])
)
- ) + map(lambda x: x[1:], metadata['externFuncs'])
+ ) + map(lambda x: x[1:], metadata['externs'])
# Settings changes
assert settings['TARGET_LE32'] == 1
@@ -994,8 +994,8 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None,
except:
pass
# If no named globals, only need externals
- global_vars = metadata['externVars'] #+ forwarded_json['Variables']['globals']
- global_funcs = list(set(['_' + key for key, value in forwarded_json['Functions']['libraryFunctions'].iteritems() if value != 2] + metadata['externFuncs']))
+ global_vars = metadata['externs'] #+ forwarded_json['Variables']['globals']
+ global_funcs = list(set(['_' + key for key, value in forwarded_json['Functions']['libraryFunctions'].iteritems() if value != 2])) # + metadata['externFuncs']/'declares'
def math_fix(g):
return g if not g.startswith('Math_') else g.split('_')[1]
asm_global_funcs = ''.join([' var ' + g.replace('.', '_') + '=global.' + g + ';\n' for g in maths]) + \