diff options
author | Alon Zakai <azakai@mozilla.com> | 2010-11-13 19:49:48 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2010-11-13 19:49:48 -0800 |
commit | 98a5011896379e539b2cb4c5ab1599294d278737 (patch) | |
tree | decc86c2f94c070f72f6a351067c57a5c2eafc9a /src | |
parent | 268226c46c7f10d303d121e228f4798ad7c630a2 (diff) |
fix for global constant pointers to pointers
Diffstat (limited to 'src')
-rw-r--r-- | src/intertyper.js | 2 | ||||
-rw-r--r-- | src/jsifier.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index ca2ad481..6f260c8a 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -8,7 +8,7 @@ function intertyper(data) { substrate = new Substrate('Intertyper'); - var IGNORE_FUNCTIONS = false; // Debugging + var IGNORE_FUNCTIONS = 0; // Debugging // Line splitter. substrate.addZyme('LineSplitter', { diff --git a/src/jsifier.js b/src/jsifier.js index ab4df579..5cf3d5d1 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -137,7 +137,7 @@ function JSify(data) { // Gets an entire constant expression function parseConst(value, type) { //dprint('gconst', '//yyyyy ' + JSON.stringify(value) + ',' + type + '\n'); - if (Runtime.isNumberType(type) || pointingLevels(type) == 1) { + if (Runtime.isNumberType(type) || pointingLevels(type) >= 1) { return makePointer(indexizeFunctions(parseNumerical(toNiceIdent(value.text))), null, 'ALLOC_STATIC', type); } else if (value.text == 'zeroinitializer') { return makePointer(JSON.stringify(makeEmptyStruct(type)), null, 'ALLOC_STATIC', type); |