diff options
Diffstat (limited to 'src/analyzer.js')
-rw-r--r-- | src/analyzer.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/analyzer.js b/src/analyzer.js index 54001af2..b3d311d1 100644 --- a/src/analyzer.js +++ b/src/analyzer.js @@ -927,9 +927,11 @@ function analyzer(data, givenTypes) { var ret = substrate.solve(); // Add additional necessary items - ret.functionStubs.push({ - intertype: 'functionStub', - ident: '@memset' // we need memset as a fundamental runtime tool, so always include that from the library + ['memset', 'malloc', 'free'].forEach(function(ident) { + ret.functionStubs.push({ + intertype: 'functionStub', + ident: '@' + ident + }); }); return ret; } |