]> git.proxmox.com Git - mirror_edk2.git/commitdiff
debug R8Lib.h
authoralfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 6 Sep 2006 07:32:58 +0000 (07:32 +0000)
committeralfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 6 Sep 2006 07:32:58 +0000 (07:32 +0000)
add @return

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1478 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/MigrationTools/org/tianocore/migration/Common.java
Tools/Source/MigrationTools/org/tianocore/migration/Critic.java
Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java

index da560ec10b1cd9a9ca6bcdcbcaccc52a851d8c72..3371a54518e8cb2ef7680e8ff26bdce25fe62ccb 100644 (file)
@@ -29,9 +29,11 @@ public final class Common {
        \r
        public static final String replaceAll(String line, Pattern ptn, String des) {\r
                Matcher mtr = ptn.matcher(line);\r
+\r
                if (mtr.find()) {\r
                         return mtr.replaceAll(des);\r
                }\r
+               \r
                return line;\r
        }\r
 \r
index 49c13bfa948b1bd35f067a4981b631a5b46f3e75..993449ebd13f1d7d8e274074d977dcdd9825377e 100644 (file)
@@ -105,7 +105,11 @@ public final class Critic {
                                                } else if (inequation && line.trim().length() != 0) {\r
                                                        templine.append("#%#%" + line + "\n");\r
                                                } else {\r
-                                                       templine.append("  " + line.trim() + "\n");\r
+                                                       if (line.trim().length() == 0) {\r
+                                                               templine.append("  " + line.trim() + "\n");\r
+                                                       } else {\r
+                                                               templine.append("  @return " + line.trim() + "\n");\r
+                                                       }\r
                                                }\r
                                        }\r
                                } else {\r
index 07f93cecadc85bbde1560a87ab6384e8846a7296..d19134465d17463d4a8f9717eb806a892d4380fd 100644 (file)
@@ -302,7 +302,7 @@ public final class SourceFileReplacer implements Common.ForDoAll {
                                }\r
                                //generate R8lib.h\r
                                while ((mtrr8onlyhead = Func.ptnbrace.matcher(paragraph)).find()) {\r
-                                       paragraph = mtrr8onlyhead.replaceAll(";");\r
+                                       paragraph = mtrr8onlyhead.replaceAll(";\n//");\r
                                }\r
                                outfile2.append(paragraph + "\n\n");\r
                        }\r