\r
private static final FirstPanel INSTANCE = FirstPanel.init();\r
\r
- private String startpath;\r
+ private String startpath = null;\r
\r
private JButton moduleButton, goButton, msaEditorButton, criticButton, specifyCommentButton;\r
private JTextField moduletext;\r
MigrationTool.ui.println(show + hash.size());\r
MigrationTool.ui.println(hash);\r
}\r
-\r
+/*\r
+ public static final String getTempDir(String modulepath) {\r
+ return "C:" + File.separator + "MigrationTool_Temp" + File.separator + modulepath.replaceAll(ui., arg1);\r
+ }\r
+*/\r
private static final String assignOutPutPath(String inputpath) {\r
if (MigrationTool.defaultoutput) {\r
return inputpath.replaceAll(Common.STRSEPARATER, "$1");\r
ii = mi.preprocessedccodes.iterator();\r
\r
Pattern patefifuncc = Pattern.compile("g?(BS|RT)\\s*->\\s*([a-zA-Z_]\\w*)",Pattern.MULTILINE);\r
- Pattern patentrypoint = Pattern.compile("EFI_([A-Z]*)_ENTRY_POINT\\s*\\(([^\\(\\)]*)\\)",Pattern.MULTILINE);\r
Matcher matguid;\r
Matcher matfuncc;\r
Matcher matfuncd;\r
Matcher matenclosereplace;\r
Matcher matefifuncc;\r
- Matcher matentrypoint;\r
Matcher matmacro;\r
\r
while (ii.hasNext()) {\r
}\r
line = wholefile.toString();\r
\r
- // if this is a Pei phase module , add these library class to .msa\r
- matentrypoint = patentrypoint.matcher(line);\r
- if (matentrypoint.find()) {\r
- mi.entrypoint = matentrypoint.group(2);\r
- if (matentrypoint.group(1).matches("PEIM")) {\r
- mi.hashrequiredr9libs.add("PeimEntryPoint");\r
- } else {\r
- mi.hashrequiredr9libs.add("UefiDriverEntryPoint");\r
- }\r
- }\r
- \r
// find guid\r
matguid = Guid.ptnguid.matcher(line); // several ways to implement this , which one is faster ? :\r
while (matguid.find()) { // 1.currently , find once , then call to identify which is it\r
}\r
it = mi.hashrequiredr9libs.iterator();\r
while (it.hasNext()) {\r
- if ((temp = it.next()) != null && !temp.matches("%")) {\r
+ if ((temp = it.next()) != null && !temp.matches("%") && !temp.matches("n/a")) {\r
LibraryClassDocument.LibraryClass lc = libclassdefs.addNewLibraryClass();\r
lc.setKeyword(temp);\r
lc.setUsage(UsageTypes.ALWAYS_CONSUMED);\r