aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-07 18:25:34 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-07 18:25:34 -0800
commitc3009fff0f9769091037edd0420270ac53fca5dd (patch)
tree256e1471cda27486e7c2f4ac71c0c14f45957746 /src
parent627aa60c461b036a617a6405aef7de73221f511a (diff)
parent6d42ca16f27c24ce2733eb8045498564c1ba790b (diff)
Merge branch 'gagern-ldc2' into incoming
Diffstat (limited to 'src')
-rw-r--r--src/modules.js1
-rw-r--r--src/parseTools.js3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/modules.js b/src/modules.js
index afdbc21e..797d4d83 100644
--- a/src/modules.js
+++ b/src/modules.js
@@ -90,6 +90,7 @@ var Debugging = {
lines[i] = ';';
continue;
}
+ if (line[0] == '!') skipLine = true;
lines[i] = skipLine ? ';' : line;
}
diff --git a/src/parseTools.js b/src/parseTools.js
index d01f32f2..48274cd5 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -172,6 +172,7 @@ function getBits(type) {
}
if (isStructType(type)) {
var typeData = Types.types[type];
+ if (typeData === undefined) return 0;
return typeData.flatSize*8;
}
return 0;
@@ -583,7 +584,7 @@ function cleanOutTokens(filterOut, tokens, indexes) {
if (typeof indexes !== 'object') indexes = [indexes];
for (var i = indexes.length-1; i >=0; i--) {
var index = indexes[i];
- while (tokens[index].text in filterOut) {
+ while (index < tokens.length && tokens[index].text in filterOut) {
tokens.splice(index, 1);
}
}