1 package org
.tianocore
.migration
;
3 import java
.util
.regex
.*;
6 Macro(String r8
, String r9
) {
10 Macro(String
[] linecontext
) {
11 r8name
= linecontext
[0];
12 r9name
= linecontext
[1];
18 public static Pattern ptntmacro
= Pattern
.compile("\\b[A-Z_]+\\s*?\\(?\\b",Pattern
.MULTILINE
);
20 private static String unmacro
= "VOID UINTN BOOLEAN ASSERT OPTIONAL STATIC NULL TRUE IN OUT FALSE";
22 public static String
register(Matcher mtr
, ModuleInfo mi
, Database db
) {
26 if (db
.hasMacro(temp
)) { // only changed macros registered, because the database of macro has only changed ones
27 if (!unmacro
.contains(temp
)) {
28 mi
.hashnonlocalmacro
.add(temp
);