ASa/2 closing curly bracket at the end of definefunction when empty body

This commit is contained in:
Jindra Petk
2013-04-12 21:43:36 +02:00
parent 576a1fc678
commit 08e5939e05
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ public class ActionDefineFunction extends Action implements GraphSourceItemConta
paramStr += " ";
}
return "DefineFunction \"" + Helper.escapeString(functionName) + "\" " + paramNames.size() + " " + paramStr + " {";// + "\r\n" +Action.actionsToString(getAddress() + getHeaderLength(),getItems(container) , knownAddreses, constantPool, version, hex, getFileAddress() + hdrSize) + "}";
return "DefineFunction \"" + Helper.escapeString(functionName) + "\" " + paramNames.size() + " " + paramStr + " {"+(codeSize==0?"\r\n}":"");// + "\r\n" +Action.actionsToString(getAddress() + getHeaderLength(),getItems(container) , knownAddreses, constantPool, version, hex, getFileAddress() + hdrSize) + "}";
}
@Override

View File

@@ -267,7 +267,7 @@ public class ActionDefineFunction2 extends Action implements GraphSourceItemCont
+ " " + preloadArgumentsFlag
+ " " + suppressThisFlag
+ " " + preloadThisFlag
+ " " + preloadGlobalFlag).trim() + " " + paramStr + " {";// + "\r\n" + Action.actionsToString(getAddress() + getHeaderLength(), getItems(container), knownAddreses, constantPool, version, hex, getFileAddress() + hdrSize) + "}";
+ " " + preloadGlobalFlag).trim() + " " + paramStr + " {"+(codeSize==0?"\r\n}":"");// + "\r\n" + Action.actionsToString(getAddress() + getHeaderLength(), getItems(container), knownAddreses, constantPool, version, hex, getFileAddress() + hdrSize) + "}";
}
@Override