public void flush() throws Exception {\r
PrintWriter outfile;\r
String temp = null;\r
- if (ui.yesOrNo("Change Source Code is to be doing . See details ?")) {\r
+ if (ui.yesOrNo("Changes will be made to the Source Code. View details?")) {\r
showdetails = true;\r
}\r
File tempdir = new File(modulepath + File.separator + "result" + File.separator);\r
String[] list = new File(modulepath + File.separator + "temp").list(); //what I change is the non-local .h commented-out files\r
for (int i = 0 ; i < list.length ; i++) {\r
if (list[i].contains(".c")) {\r
- ui.println("\nModifying file : " + list[i]);\r
+ ui.println("\nModifying file: " + list[i]);\r
outfile = new PrintWriter(new BufferedWriter(new FileWriter(modulepath + File.separator + "result" + File.separator + list[i])));\r
outfile.append(sourcefilereplace(modulepath + File.separator + "temp" + File.separator + list[i]));\r
outfile.flush();\r
} else {\r
continue;\r
}\r
- ui.println("\nCopying file : " + temp);\r
+ ui.println("\nCopying file: " + temp);\r
outfile = new PrintWriter(new BufferedWriter(new FileWriter(modulepath + File.separator + "result" + File.separator + temp)));\r
outfile.append(sourcefiletostring(modulepath + File.separator + "temp" + File.separator + list[i]));\r
outfile.flush();\r
// replace BS -> gBS , RT -> gRT\r
Matcher mat = pat.matcher(line);\r
if (mat.find()) { // add a library here\r
- ui.println("Converting all BS->gBS,RT->gRT");\r
+ ui.println("Converting all BS->gBS, RT->gRT");\r
line = mat.replaceAll("g$1$2$3"); //unknown correctiveness\r
}\r
mat.reset();\r