Home | History | Annotate | Download | only in GenFfsFile

Lines Matching defs:MACRO

117 } MACRO;

128 MACRO *MacroList;
210 " -d Name=Value Add a macro definition for the package file. Optional.",
2688 // Make sure there is another argument, then add it to our macro list.
2691 Error (NULL, 0, 0, Argv[0], "option requires the macro definition");
2751 // No macro replacement, use the previous package file
2774 // No macro replacement, use the previous package file
2794 Add or override a macro definition.
2798 MacroString - macro definition string: name=value
2806 MACRO *Macro;
2807 MACRO *NewMacro;
2811 // Seperate macro name and value by '\0'
2821 // We now have a macro name and value.
2822 // Look for an existing macro and overwrite it.
2824 Macro = mGlobals.MacroList;
2825 while (Macro) {
2826 if (_strcmpi (MacroString, Macro->Name) == 0) {
2827 Macro->Value = Value;
2831 Macro = Macro->Next;
2837 NewMacro = (MACRO *) malloc (sizeof (MACRO));
2838 memset ((UINT8 *) NewMacro, 0, sizeof (MACRO));
2860 Look up a macro.
2864 MacroName - The name of macro
2868 Pointer to the value of the macro if found
2869 NULL if the macro is not found
2874 MACRO *Macro;
2878 // Scan for macro
2880 Macro = mGlobals.MacroList;
2881 while (Macro) {
2882 if (_strcmpi (MacroName, Macro->Name) == 0) {
2883 return Macro->Value;
2885 Macro = Macro->Next;
2906 Free the macro list.
2918 MACRO *Macro;
2919 MACRO *NextMacro;
2921 Macro = mGlobals.MacroList;
2922 while (Macro) {
2923 NextMacro = Macro->Next;
2924 free (Macro);
2925 Macro = NextMacro;
2946 InputFile - Input package file for macro replacement
2947 OutputFile - Output package file after macro replacement
2951 STATUS_SUCCESS - Output package file is created successfully after the macro replacement.
2952 STATUS_WARNING - Output package file is not created because of no macro replacement.
3016 // Continue macro replacement for the remaining string line