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

Diff for /src/usr.bin/make/parse.c between version 1.135 and 1.136

version 1.135, 2023/05/30 04:42:21 version 1.136, 2023/09/04 11:35:11
Line 68 
Line 68 
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <ohash.h>  #include <ohash.h>
 #include "config.h"  
 #include "defines.h"  #include "defines.h"
 #include "dir.h"  #include "dir.h"
 #include "direxpand.h"  #include "direxpand.h"
Line 1555 
Line 1554 
 {  {
         if (*line == '.' && handle_bsd_command(buf, copy, line+1))          if (*line == '.' && handle_bsd_command(buf, copy, line+1))
                 return true;                  return true;
         if (FEATURES(FEATURE_SYSVINCLUDE) &&          if (strncmp(line, "include", 7) == 0 &&
             strncmp(line, "include", 7) == 0 &&  
             ISSPACE(line[7]) &&              ISSPACE(line[7]) &&
             strchr(line, ':') == NULL) {              strchr(line, ':') == NULL) {
             /* It's an S3/S5-style "include".  */              /* It's an S3/S5-style "include".  */
                 lookup_sysv_include(line + 7, "include");                  lookup_sysv_include(line + 7, "include");
                 return true;                  return true;
         }          }
         if (FEATURES(FEATURE_CONDINCLUDE) &&          if (strncmp(line, "sinclude", 8) == 0 &&
             strncmp(line, "sinclude", 8) == 0 &&  
             ISSPACE(line[8]) &&              ISSPACE(line[8]) &&
             strchr(line, ':') == NULL) {              strchr(line, ':') == NULL) {
                 lookup_conditional_include(line+8, "sinclude");                  lookup_conditional_include(line+8, "sinclude");
                 return true;                  return true;
         }          }
         if (FEATURES(FEATURE_CONDINCLUDE) &&          if (strncmp(line, "-include", 8) == 0 &&
             strncmp(line, "-include", 8) == 0 &&  
             ISSPACE(line[8]) &&              ISSPACE(line[8]) &&
             strchr(line, ':') == NULL) {              strchr(line, ':') == NULL) {
                 lookup_conditional_include(line+8, "-include");                  lookup_conditional_include(line+8, "-include");

Legend:
Removed from v.1.135  
changed lines
  Added in v.1.136