Print this page
make: unifdef for NSE (undefined)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/bin/read.cc
          +++ new/usr/src/cmd/make/bin/read.cc
↓ open down ↓ 108 lines elided ↑ open up ↑
 109  109          wchar_t                 previous_current_makefile[MAXPATHLEN];
 110  110          Makefile_type           save_makefile_type;
 111  111          Name                    normalized_makefile_name;
 112  112          register wchar_t        *string_start;
 113  113          register wchar_t        *string_end;
 114  114  
 115  115  
 116  116  
 117  117          wchar_t * wcb = get_wstring(makefile_name->string_mb);
 118  118  
 119      -#ifdef NSE
 120      -        if (report_file){
 121      -                wscpy(previous_current_makefile, current_makefile);
 122      -                wscpy(current_makefile, wcb);
 123      -        }
 124      -#endif 
 125  119          if (max_include_depth++ >= 40) {
 126  120                  fatal(catgets(catd, 1, 66, "Too many nested include statements"));
 127  121          }
 128  122          if (makefile->body.makefile.contents != NULL) {
 129  123                  retmem(makefile->body.makefile.contents);
 130  124          }
 131  125          source->inp_buf =
 132  126            source->inp_buf_ptr =
 133  127              source->inp_buf_end = NULL;
 134  128          source->error_converting = false;
↓ open down ↓ 265 lines elided ↑ open up ↑
 400  394          line_number = 1;
 401  395          if (trace_reader) {
 402  396                  (void) printf(catgets(catd, 1, 73, ">>>>>>>>>>>>>>>> Reading makefile %s\n"),
 403  397                                makefile_name->string_mb);
 404  398          }
 405  399          parse_makefile(makefile_name, source);
 406  400          if (trace_reader) {
 407  401                  (void) printf(catgets(catd, 1, 74, ">>>>>>>>>>>>>>>> End of makefile %s\n"),
 408  402                                makefile_name->string_mb);
 409  403          }
 410      -#ifdef NSE
 411      -        if (report_file && (previous_current_makefile[0] != NULL)) {
 412      -                wscpy(current_makefile, previous_current_makefile);
 413      -        }
 414      -#endif
 415  404          if(file_being_read) {
 416  405                  retmem(file_being_read);
 417  406          }
 418  407          file_being_read = previous_file_being_read;
 419  408          line_number = previous_line_number;
 420  409          makefile_type = reading_nothing;
 421  410          max_include_depth--;
 422  411          if (make_state_locked) {
 423  412                  /* Unlock .make.state. */
 424  413                  unlink(make_state_lockfile);
↓ open down ↓ 1721 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX