[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/main.c between version 1.24 and 1.25

version 1.24, 1999/12/18 02:11:27 version 1.25, 1999/12/18 21:53:32
Line 662 
Line 662 
         Targ_Init();          Targ_Init();
         Suff_Init();          Suff_Init();
   
         DEFAULT = NILGNODE;          DEFAULT = NULL;
         (void)time(&now);          (void)time(&now);
   
         /*          /*
Line 673 
Line 673 
         if (!Lst_IsEmpty(create)) {          if (!Lst_IsEmpty(create)) {
                 LstNode ln;                  LstNode ln;
   
                 for (ln = Lst_First(create); ln != NILLNODE;                  for (ln = Lst_First(create); ln != NULL;
                     ln = Lst_Succ(ln)) {                      ln = Lst_Succ(ln)) {
                         char *name = (char *)Lst_Datum(ln);                          char *name = (char *)Lst_Datum(ln);
   
Line 714 
Line 714 
                 if (Lst_IsEmpty(sysMkPath))                  if (Lst_IsEmpty(sysMkPath))
                         Fatal("make: no system rules (%s).", _PATH_DEFSYSMK);                          Fatal("make: no system rules (%s).", _PATH_DEFSYSMK);
                 ln = Lst_Find(sysMkPath, (ClientData)NULL, ReadMakefile);                  ln = Lst_Find(sysMkPath, (ClientData)NULL, ReadMakefile);
                 if (ln != NILLNODE)                  if (ln != NULL)
                         Fatal("make: cannot open %s.", (char *)Lst_Datum(ln));                          Fatal("make: cannot open %s.", (char *)Lst_Datum(ln));
         }          }
   
Line 722 
Line 722 
                 LstNode ln;                  LstNode ln;
   
                 ln = Lst_Find(makefiles, (ClientData)NULL, ReadMakefile);                  ln = Lst_Find(makefiles, (ClientData)NULL, ReadMakefile);
                 if (ln != NILLNODE)                  if (ln != NULL)
                         Fatal("make: cannot open %s.", (char *)Lst_Datum(ln));                          Fatal("make: cannot open %s.", (char *)Lst_Datum(ln));
         } else if (!ReadMakefile("BSDmakefile", NULL))          } else if (!ReadMakefile("BSDmakefile", NULL))
                 if (!ReadMakefile("makefile", NULL))                  if (!ReadMakefile("makefile", NULL))
Line 786 
Line 786 
         if (printVars) {          if (printVars) {
                 LstNode ln;                  LstNode ln;
   
                 for (ln = Lst_First(variables); ln != NILLNODE;                  for (ln = Lst_First(variables); ln != NULL;
                     ln = Lst_Succ(ln)) {                      ln = Lst_Succ(ln)) {
                         char *value = Var_Value((char *)Lst_Datum(ln),                          char *value = Var_Value((char *)Lst_Datum(ln),
                                           VAR_GLOBAL);                                            VAR_GLOBAL);

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25