debug R8Lib.h

add @return

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1478 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
alfred 2006-09-06 07:32:58 +00:00
parent 4100d1493e
commit a817ecbf36
3 changed files with 8 additions and 2 deletions

View File

@ -29,9 +29,11 @@ public final class Common {
public static final String replaceAll(String line, Pattern ptn, String des) { public static final String replaceAll(String line, Pattern ptn, String des) {
Matcher mtr = ptn.matcher(line); Matcher mtr = ptn.matcher(line);
if (mtr.find()) { if (mtr.find()) {
return mtr.replaceAll(des); return mtr.replaceAll(des);
} }
return line; return line;
} }

View File

@ -105,7 +105,11 @@ public final class Critic {
} else if (inequation && line.trim().length() != 0) { } else if (inequation && line.trim().length() != 0) {
templine.append("#%#%" + line + "\n"); templine.append("#%#%" + line + "\n");
} else { } else {
templine.append(" " + line.trim() + "\n"); if (line.trim().length() == 0) {
templine.append(" " + line.trim() + "\n");
} else {
templine.append(" @return " + line.trim() + "\n");
}
} }
} }
} else { } else {

View File

@ -302,7 +302,7 @@ public final class SourceFileReplacer implements Common.ForDoAll {
} }
//generate R8lib.h //generate R8lib.h
while ((mtrr8onlyhead = Func.ptnbrace.matcher(paragraph)).find()) { while ((mtrr8onlyhead = Func.ptnbrace.matcher(paragraph)).find()) {
paragraph = mtrr8onlyhead.replaceAll(";"); paragraph = mtrr8onlyhead.replaceAll(";\n//");
} }
outfile2.append(paragraph + "\n\n"); outfile2.append(paragraph + "\n\n");
} }