mirror of https://github.com/acidanthera/audk.git
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:
parent
4100d1493e
commit
a817ecbf36
|
@ -29,9 +29,11 @@ public final class Common {
|
|||
|
||||
public static final String replaceAll(String line, Pattern ptn, String des) {
|
||||
Matcher mtr = ptn.matcher(line);
|
||||
|
||||
if (mtr.find()) {
|
||||
return mtr.replaceAll(des);
|
||||
}
|
||||
|
||||
return line;
|
||||
}
|
||||
|
||||
|
|
|
@ -105,7 +105,11 @@ public final class Critic {
|
|||
} else if (inequation && line.trim().length() != 0) {
|
||||
templine.append("#%#%" + line + "\n");
|
||||
} else {
|
||||
templine.append(" " + line.trim() + "\n");
|
||||
if (line.trim().length() == 0) {
|
||||
templine.append(" " + line.trim() + "\n");
|
||||
} else {
|
||||
templine.append(" @return " + line.trim() + "\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -302,7 +302,7 @@ public final class SourceFileReplacer implements Common.ForDoAll {
|
|||
}
|
||||
//generate R8lib.h
|
||||
while ((mtrr8onlyhead = Func.ptnbrace.matcher(paragraph)).find()) {
|
||||
paragraph = mtrr8onlyhead.replaceAll(";");
|
||||
paragraph = mtrr8onlyhead.replaceAll(";\n//");
|
||||
}
|
||||
outfile2.append(paragraph + "\n\n");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue