Unverified Commit 88741236 authored by petter's avatar petter

Furchtbar gehackter PUTSTRUCT USTRUCT Bugfix!!! gehoert unbedingt ueberarbeitet

git-svn-id: https://www2.in.tum.de/repos/vam@6 e840d55b-1d80-4f23-a9d8-6aec749d046a
parent 6cfef54a
......@@ -925,12 +925,18 @@ public class ViewMachine implements ActionListener
// Labels
StringTokenizer strtok = new StringTokenizer(commandLine);
String cmd = "";
String tok;
boolean labelReplace = true; // furchbarer Hack, um PUTSTRUCT und USTRUCT ordentlich uebersetzen zu koennen!
if (commandLine.toUpperCase().startsWith("PUTSTRUCT")||commandLine.toUpperCase().startsWith("USTRUCT"))
labelReplace = false;
boolean changed = false;
String cmd = "";
if (strtok.hasMoreTokens())
cmd = strtok.nextToken()+" ";
while(strtok.hasMoreTokens()) {
tok = strtok.nextToken();
if(labels.containsKey(tok)) {
if(labels.containsKey(tok)&&labelReplace) {
// wir haben ein Label gefunden
int label = ((Integer)labels.get(tok)).intValue();
cmd += label + " ";
......@@ -938,6 +944,7 @@ public class ViewMachine implements ActionListener
ViewMachine.output( "LABEL: "+tok+" = "+label );
}
else {
labelReplace=true; // fuer sowas muesste man sich schaemen!
cmd += tok + " ";
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment