Home | History | Annotate | Download | only in ProcessDsc

Lines Matching defs:NULL

79 #define SKIP_FV_NULL                    "SKIP_FV_NULL"        // define as nonzero to not build components with FV=NULL

103 // When a symbol is defined as "NULL", it gets saved in the symbol table as a 0-length
106 #define IS_NULL_SYMBOL_VALUE(var) ((var != NULL) && (strlen (var) == 0))
165 NULL,
171 NULL,
177 NULL,
182 NULL,
183 NULL,
270 NULL
623 if (EMsg != NULL) {
664 if ((gGlobals.MakefileFptr = fopen (gGlobals.MakefileName, "w")) == NULL) {
665 Error (NULL, 0, 0, gGlobals.MakefileName, "failed to open output makefile for writing");
668 if ((gGlobals.ModuleMakefileFptr = fopen (gGlobals.ModuleMakefileName, "w")) == NULL) {
669 Error (NULL, 0, 0, gGlobals.ModuleMakefileName, "failed to open output makefile for writing");
676 for (i = 0; MakefileHeader[i] != NULL; i++) {
682 // Init global potint = NULL
684 gGlobals.ModuleList = NULL;
685 gGlobals.OutdirList = NULL;
699 if (Sect != NULL) {
700 while (DSCFileGetLine (&DSCFile, Line, sizeof (Line)) != NULL) {
721 if (Sect != NULL) {
733 if (Sect != NULL) {
747 if (Sect != NULL) {
768 if (Sect != NULL) {
787 if (EMsg != NULL) {
803 if ((FpModule = fopen (MODULE_NAME_FILE, "w")) != NULL) {
805 while (TempSymbol != NULL) {
810 FpModule = NULL;
816 if (gGlobals.MakefileFptr != NULL) {
818 gGlobals.MakefileFptr = NULL;
821 if (gGlobals.ModuleMakefileFptr != NULL) {
823 gGlobals.ModuleMakefileFptr = NULL;
833 Error (NULL, 0, 0, NULL, "Multi-thread build libraries failure");
839 while (TempComponents != NULL) {
842 Error (NULL, 0, 0, NULL, "Multi-thread build components %d failure", i);
850 Error (NULL, 0, 0, NULL, "Build FVs for components %d failure", i);
864 gGlobals.LibraryList = NULL;
866 gGlobals.ComponentsList = NULL;
868 gGlobals.ModuleList = NULL;
870 gGlobals.OutdirList = NULL;
872 gGlobals.Symbol = NULL;
877 if (EMsg != NULL) {
919 while (DSCFileGetLine (DSCFile, Line, sizeof (Line)) != NULL) {
1002 // Null out the file pointer in case we take an exception somewhere
1005 MakeFptr = NULL;
1056 Len = AddSymbol (End, NULL, SymType);
1060 Warning (NULL, 0, 0, ArgLine, "unrecognized option in description file");
1069 if ((GetSymbolValue ("DEBUG_BREAK") != NULL) || (GetSymbolValue ("EFI_BREAKPOINT") != NULL)) {
1083 if (Cptr != NULL) {
1134 if ((Cptr != NULL) && (strncmp (
1149 NULL,
1150 NULL,
1152 NULL,
1153 NULL
1162 if (Processor == NULL) {
1163 Error (NULL, 0, 0, NULL, "PROCESSOR not defined for component %s", Line);
1181 if ((Cptr != NULL) && !IS_NULL_SYMBOL_VALUE (Cptr)) {
1193 if ((GetSymbolValue (SKIP_FV_NULL) != NULL) && (atoi (GetSymbolValue (SKIP_FV_NULL)) != 0)) {
1194 Message (0, "%s not being built (FV=NULL)", FileName);
1222 if (TempFptr == NULL) {
1226 if (GetSymbolValue (OPTIONAL_COMPONENT) != NULL) {
1242 Error (NULL, 0, 0, NULL, "failed to preprocess component file '%s'", FileName);
1258 if ((GetSymbolValue (GUID) == NULL) &&
1259 (GetSymbolValue (FILE_GUID) == NULL) &&
1262 Error (GetSymbolValue (INF_FILENAME), 1, 0, NULL
1269 if (GetSymbolValue (BASE_NAME) == NULL) {
1270 Error (GetSymbolValue (INF_FILENAME), 1, 0, NULL, "missing BASE_NAME definition in INF file");
1277 if (GetSymbolValue (COMPONENT_TYPE) == NULL) {
1278 Error (GetSymbolValue (INF_FILENAME), 1, 0, NULL, "missing COMPONENT_TYPE definition in INF file");
1305 if (TempCptr == NULL) {
1339 if (TempCptr != NULL) {
1356 if ((MakeFptr = fopen (FileName, "w")) == NULL) {
1357 Error (NULL, 0, 0, FileName, "could not create makefile");
1460 if (Cptr != NULL) {
1476 if (Cptr == NULL) {
1486 if (TempCptr == NULL) {
1509 if (Cptr != NULL) {
1515 if (MakeFptr != NULL) {
1539 PkgFptr = NULL;
1547 if (Package != NULL) {
1557 if (Package == NULL) {
1561 if (Package == NULL) {
1590 if (TempSect != NULL) {
1611 if ((PkgFptr = SmartOpen (StrExpanded)) == NULL) {
1612 Error (NULL, 0, 0, Str, "could not open package file for writing");
1622 while (DSCFileGetLine (DSCFile, Str, sizeof (Str)) != NULL) {
1631 NULL,
1634 NULL,
1643 if (PkgFptr != NULL) {
1685 if (Cptr != NULL) {
1705 Error (NULL, 0, 0, NULL, "missing [defines] section in component file %s", GetSymbolValue (INF_FILENAME));
1725 if (TempSect != NULL) {
1726 while (DSCFileGetLine (ComponentFile, Str, sizeof (Str)) != NULL) {
1737 AddSymbol (Cptr, NULL, SYM_LOCAL);
1783 if (TempSect != NULL) {
1784 while (DSCFileGetLine (ComponentFile, Str, sizeof (Str)) != NULL) {
1804 if (TempSect != NULL) {
1805 while (DSCFileGetLine (ComponentFile, Str, sizeof (Str)) != NULL) {
1824 if (Cptr != NULL) {
1827 if (TempSect != NULL) {
1828 while (DSCFileGetLine (ComponentFile, Str, sizeof (Str)) != NULL) {
1897 if (OverridePath != NULL) {
1912 if (Cptr != NULL) {
1953 if (TempSect != NULL) {
1961 while (DSCFileGetLine (ComponentFile, Str, sizeof (Str)) != NULL) {
2094 if (SourceSelect != NULL) {
2100 if (CopySourceSelect == NULL) {
2101 Error (NULL, 0, 0, NULL, "failed to allocate memory");
2145 if (Platform != NULL) {
2194 Len = AddSymbol (SourceFileLine, NULL, SYM_FILE);
2223 if (TempSect != NULL) {
2225 while (DSCFileGetLine (ComponentFile, Str, sizeof (Str)) != NULL) {
2233 // definitions. AddFileSymbols() will null-terminate the line
2283 OverridePath = NULL;
2287 if (OverridePath != NULL) {
2295 if ((FPtr = fopen (TempFileName, "rb")) != NULL) {
2308 // Set override path to null to use as a flag below
2310 OverridePath = NULL;
2333 if (OverridePath != NULL) {
2385 AddModuleName (&gGlobals.OutdirList, FileName, NULL);
2445 if (SourceSelect != NULL) {
2451 if (CopySourceSelect == NULL) {
2452 Error (NULL, 0, 0, NULL, "failed to allocate memory");
2487 Warning (GetSymbolValue (INF_FILENAME), 1, 0, NULL, "no [%s] section found in component description", Str);
2499 if (Platform != NULL) {
2521 while (TempSymbol != NULL) {
2532 gGlobals.OutdirList = NULL;
2558 return NULL;
2564 for (i = 0; mFileTypes[i].Extension != NULL; i++) {
2570 return NULL;
2587 if (TempSect != NULL) {
2588 while (DSCFileGetLine (ComponentFile, Str, sizeof (Str)) != NULL) {
2603 if (Cptr2 != NULL) {
2660 if (Platform != NULL) {
2687 if (TempSect != NULL) {
2688 while (DSCFileGetLine (ComponentFile, Str, sizeof (Str)) != NULL) {
2752 if (SourceSelect != NULL) {
2758 if (CopySourceSelect == NULL) {
2759 Error (NULL, 0, 0, NULL, "failed to allocate memory");
2803 if (Platform != NULL) {
2829 if (TempSect != NULL) {
2836 while (DSCFileGetLine (ComponentFile, Str, sizeof (Str)) != NULL) {
2849 if ((OverridePath != NULL) && (!IsAbsolutePath (FileName))) {
2854 NULL) {
2857 // Null-terminate the file name at the last backslash and add that
2897 if (FP != NULL) {
2898 if (FP->Path != NULL) {
2902 if (FP->BaseName != NULL) {
2906 if (FP->Extension != NULL) {
2925 if (FP == NULL) {
2926 Error (NULL, 0, 0, NULL, "failed to allocate memory");
2927 return NULL;
3013 for (i = 0; MakefileHeader[i] != NULL; i++) {
3043 if (Sect != NULL) {
3048 while (DSCFileGetLine (DSCFile, InLine, sizeof (InLine)) != NULL) {
3062 if (Sect != NULL) {
3066 while (DSCFileGetLine (DSCFile, InLine, sizeof (InLine)) != NULL) {
3079 if (Sect != NULL) {
3083 while (DSCFileGetLine (DSCFile, InLine, sizeof (InLine)) != NULL) {
3092 if (Sym != NULL) {
3095 if (Sect != NULL) {
3099 while (DSCFileGetLine (DSCFile, InLine, sizeof (InLine)) != NULL) {
3147 if (Sect != NULL) {
3151 while (DSCFileGetLine (DSCFile, InLine, sizeof (InLine)) != NULL) {
3162 NULL,
3199 if (File != NULL) {
3217 Sect = NULL;
3222 if (SourceCompileType != NULL) {
3229 if (Sect == NULL) {
3231 if (SourceCompileType != NULL) {
3238 while (*CPtr && (Sect == NULL)) {
3258 Error (NULL, 0, 0, SourceCompileType, "malformed COMPILE_SELECT variable");
3274 if (Sect == NULL) {
3299 if (Sect == NULL) {
3306 if (Sect != NULL) {
3316 while (DSCFileGetLine (DscFile, InLine, sizeof (InLine)) != NULL) {
3332 NULL,
3335 NULL,
3399 Error (NULL, 0, 0, NULL, "undefined symbols in file path: %s", FileName);
3412 if (Cptr != NULL) {
3455 // Error (NULL, 0, 0, FileName, "failed to create directory");
3495 if (LocalDestLine == NULL) {
3537 } else if ((value = GetSymbolValue (FromPtr)) != NULL) {
3544 Error (NULL, 0, 0, "undefined symbol", "$(%s)", FromPtr);
3560 Error (NULL, 0, 0, SourceLine, "missing closing parenthesis on symbol");
3615 NULL if the symbol is not found
3661 return NULL;
3788 if (Fptr == NULL) {
3789 Error (NULL, 0, 0, FileName, "failed to open input GUID database input file");
3793 while (fgets (Line, sizeof (Line), Fptr) != NULL) {
3834 SaveCptr1 = NULL;
3836 SaveCptr2 = NULL;
3844 Error (NULL, 0, 0, "APP ERROR", "adding symbol '%s' that is not local, global, nor file level", Name);
3848 // If value pointer is null, then they passed us a line something like:
3851 if (Value == NULL) {
3908 // Null terminate the value string
3923 if ((Mode & (SYM_FILEPATH | SYM_FILENAME)) && (GetSymbolValue (SHORT_NAMES) != NULL)) {
3957 if (Symbol->Value == NULL) {
3958 Error (NULL, 0, 0, NULL, "failed to allocate memory");
3964 // If value == "NULL", then make it a 0-length string
3966 if (_stricmp (Symbol->Value, "NULL") == 0) {
3983 if (NewSymbol == NULL) {
3984 Error (NULL, 0, 0, NULL, "failed to allocate memory");
3995 if ((NewSymbol->Name == NULL) || (NewSymbol->Value == NULL)) {
3996 Error (NULL, 0, 0, NULL, "failed to allocate memory");
4020 // If value == "NULL", then make it a 0-length string
4022 if (_stricmp (NewSymbol->Value, "NULL") == 0) {
4028 if (SaveCptr1 != NULL) {
4031 if (SaveCptr2 != NULL) {
4050 PrevSymbol = NULL;
4088 while (Sect != NULL) {
4090 if (Sect->Name != NULL) {
4206 Error (NULL, 0, 0, NULL, "missing symbol definition with %c%c", Argv[0][0], Argv[0][1]);
4209 if (AddSymbol (Argv[0], NULL, SYM_OVERWRITE | SYM_GLOBAL) <= 0) {
4210 Warning (NULL, 0, 0, Argv[0], "failed to add symbol: %s");
4227 Error (NULL, 0, 0, Argv[0], "missing output makefile name with option");
4247 Error (NULL, 0, 0, Argv[0], "missing cross-reference output filename with option");
4267 Error (NULL, 0, 0, Argv[0], "missing input GUID database filename with option");
4287 Error (NULL, 0, 0, Argv[0], "missing input thread number with option");
4294 Error (NULL, 0, 0, Argv[0], "input thread number should not be %s", Argv[1]);
4298 Error (NULL, 0, 0, Argv[0], "input thread number should not greater than %d", MAXIMUM_WAIT_OBJECTS);
4316 Error (NULL, 0, 0, Argv[0], "missing input build target with option");
4327 Error (NULL, 0, 0, Argv[0], "input build target not supported");
4338 Error (NULL, 0, 0, Argv[0], "unrecognized option");
4355 if (gGlobals.DscFilename == NULL) {
4356 Error (NULL, 0, 0, NULL, "must specify DSC filename on command line");
4375 if (Cptr == NULL) {
4376 Cptr = _getcwd (NULL, 0);
4409 if (Syms->Name != NULL) {
4413 if (Syms->Value != NULL) {
4451 for (i = 0; mFileTypes[i].Extension != NULL; i++) {
4492 for (i = 0; mFileTypes[i].Extension != NULL; i++) {
4542 if ( EfiSource != NULL) {
4554 if (EfiSource != NULL) {
4563 Error (NULL, 0, 0, NULL, "could not determine EFI_SOURCE");
4611 NULL
4613 for (Index = 0; Str[Index] != NULL; Index++) {
4649 if (Sect == NULL) {
4655 while (DSCFileGetLine (DscFile, Line, sizeof (Line)) != NULL) {
4670 AddSymbol (Line2, NULL, SYM_OVERWRITE | SYM_GLOBAL);
4719 if (SmartFile == NULL) {
4720 return NULL;
4725 if (SmartFile->FileName == NULL){
4727 return NULL;
4731 if ((Fptr = fopen (FileName, "r")) != NULL) {
4736 if (SmartFile->FileContent != NULL) {
4750 if (SmartFile->FileContent == NULL) {
4751 if ((SmartFile->FilePtr = fopen (FileName, "w")) == NULL) {
4753 return NULL;
4768 if (SmartFile->FilePtr != NULL) {
4777 if ((SmartFile->FilePtr = fopen (SmartFile->FileName, "w")) == NULL) {
4778 Error (NULL, 0, 0, SmartFile->FileName, "could not open file for writing when SmartWrite");
4797 if ((SmartFile->FilePtr == NULL) && (SmartFile->FilePosition < SmartFile->FileLength)) {
4801 if ((SmartFile->FilePtr = fopen (SmartFile->FileName, "w")) == NULL) {
4802 Error (NULL, 0, 0, SmartFile->FileName, "could not open file for writing when SmartClose");
4818 if (SmartFile == NULL) {
4822 if (SmartFile->FileName != NULL ) {
4826 if (SmartFile->FileContent != NULL ) {
4830 if (SmartFile->FilePtr != NULL ) {
4877 while (CurrentSymbol != NULL) {
4879 if ((CurrentSymbol->Value == NULL) && (InfName == NULL)) {
4881 } else if ((CurrentSymbol->Value != NULL) && (InfName != NULL) && \
4893 if (CurrentSymbol == NULL) {
4895 if (CurrentSymbol == NULL) {
4896 Error (NULL, 0, 0, NULL, "failed to allocate memory");
4901 if (ModuleName != NULL) {
4906 if (InfName != NULL) {
4911 if (LastSymbol == NULL) {