}
static public void main(String[] args) {
-// String[] dirNames = { Environment.REGISTER, Environment.MS_QUEUE,
-// Environment.LINUXRWLOCKS, Environment.MCS_LOCK,
-// Environment.DEQUE, Environment.TREIBER_STACK };
+// String[] dirNames = {
+// Environment.REGISTER,
+// Environment.MS_QUEUE,
+// Environment.LINUXRWLOCKS,
+// Environment.MCS_LOCK,
+// Environment.DEQUE,
+// Environment.TREIBER_STACK };
String[] dirNames = args;
for (int i = 0; i < dirNames.length; i++) {
String dirName = dirNames[i];
- System.out.println("/********** Processing " + dirName
+ System.out.println("/********** Generating CDSSpec files for " + dirName
+ " **********/");
CodeGenerator generator = new CodeGenerator(dirName);
generator.generateCode();
public String getRenamedCall(String prefix) {
String res = "";
if (!isReturnVoid()) {
- res = res + "bool " + SpecNaming.RET + " = ";
+ res = res + returnType + " " + SpecNaming.RET + " = ";
}
res = res + prefix + "_" + funcName.fullName + "(";
if (args.size() >= 1) {