mirror of https://github.com/acidanthera/audk.git
Add EntryPointLib class once ImageEntryPoint is found in inf file.
Enhance to recognize function-invocation to not include protocol calling. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1581 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3b7a9058fd
commit
0e9d14c4e7
|
@ -33,8 +33,7 @@ public class Func {
|
|||
public String r9libname;
|
||||
|
||||
public static Pattern ptnbrace = Pattern.compile("\\{[^\\{\\}]*\\}",Pattern.MULTILINE);
|
||||
//public static Pattern ptnfuncc = Pattern.compile("([a-zA-Z_]\\w*)\\s*\\([^\\)\\(]*\\)",Pattern.MULTILINE);
|
||||
public static Pattern ptnfuncc = Pattern.compile("([a-zA-Z_]\\w*)\\s*\\(",Pattern.MULTILINE);
|
||||
public static Pattern ptnfuncc = Pattern.compile("(?<!->)([a-zA-Z_]\\w*)\\s*\\(",Pattern.MULTILINE);
|
||||
public static Pattern ptnfuncd = Pattern.compile("([a-zA-Z_]\\w*)\\s*\\([^\\)\\(]*\\)\\s*@",Pattern.MULTILINE);
|
||||
public static Pattern ptnlowcase = Pattern.compile("[a-z]"); // must be removed
|
||||
|
||||
|
|
|
@ -102,6 +102,7 @@ public final class ModuleReader implements Common.ForDoAll {
|
|||
while (mtrinfequation.find()) {
|
||||
if (mtrinfequation.group(1).matches("IMAGE_ENTRY_POINT")) {
|
||||
mi.entrypoint = mtrinfequation.group(2);
|
||||
mi.hashrequiredr9libs.add("EntryPointLib");
|
||||
}
|
||||
if (mtrinfequation.group(1).matches("DPX_SOURCE")) {
|
||||
if (!mi.localmodulesources.contains(mtrinfequation.group(2))) {
|
||||
|
@ -119,7 +120,7 @@ public final class ModuleReader implements Common.ForDoAll {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (mtrsection.group(1).matches("includes.common")) {
|
||||
if (mtrsection.group(1).matches("includes.")) {
|
||||
mtrfilename = ptnfilename.matcher(mtrsection.group(2));
|
||||
while (mtrfilename.find()) {
|
||||
mi.infincludes.add(mtrfilename.group());
|
||||
|
|
Loading…
Reference in New Issue