Fixed small issues

This commit is contained in:
Jindra Pet��k
2013-03-22 22:29:43 +01:00
parent 2b8f708b05
commit c630d885dd
5 changed files with 8 additions and 6 deletions
@@ -588,8 +588,10 @@ public class SWFInputStream extends InputStream {
}
if (goesPrev) {
} else {
for (int i = 0; i < ip; i++) {
retdups.remove(0);
if (!retdups.isEmpty()) {
for (int i = 0; i < ip; i++) {
retdups.remove(0);
}
}
}
List<Action> ret = new ArrayList<Action>();
@@ -38,7 +38,7 @@ public class ActionGetVariable extends Action {
@Override
public void translate(Stack<GraphTargetItem> stack, List<GraphTargetItem> output, java.util.HashMap<Integer, String> regNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions) {
GraphTargetItem name = stack.pop();
GraphTargetItem computedVal = variables.get(Highlighting.stripHilights(name.toStringNoQuotes()));
GraphTargetItem computedVal = variables.get(Highlighting.stripHilights(name.toStringNoQuotes(null)));
GetVariableTreeItem gvt = new GetVariableTreeItem(this, name);
gvt.setComputedValue(computedVal);
stack.push(gvt);
@@ -40,7 +40,7 @@ public class ActionSetVariable extends Action {
GraphTargetItem value = stack.pop();
GraphTargetItem name = stack.pop();
SetVariableTreeItem svt = new SetVariableTreeItem(this, name, value);
variables.put(Highlighting.stripHilights(name.toStringNoQuotes(regNames, variables)), value);
variables.put(Highlighting.stripHilights(name.toStringNoQuotes(null)), value);
output.add(svt);
}
}
@@ -45,7 +45,7 @@ public class ActionCallFunction extends Action {
args.add(stack.pop());
}
CallFunctionTreeItem cft = new CallFunctionTreeItem(this, functionName, args);
cft.calculatedFunction = functions.get(Highlighting.stripHilights(functionName.toStringNoQuotes(variables, functions)));
cft.calculatedFunction = functions.get(Highlighting.stripHilights(functionName.toStringNoQuotes(null)));
stack.push(cft);
}
}
@@ -39,7 +39,7 @@ public class ActionDefineLocal extends Action {
public void translate(Stack<GraphTargetItem> stack, List<GraphTargetItem> output, java.util.HashMap<Integer, String> regNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions) {
GraphTargetItem value = stack.pop();
GraphTargetItem name = stack.pop();
variables.put(Highlighting.stripHilights(name.toStringNoQuotes(regNames, variables, functions)), value);
variables.put(Highlighting.stripHilights(name.toStringNoQuotes(null)), value);
output.add(new DefineLocalTreeItem(this, name, value));
}
}