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