Print this page
make: use the more modern wchar routines, not widec.h

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/bin/nse_printdep.cc
          +++ new/usr/src/cmd/make/bin/nse_printdep.cc
↓ open down ↓ 352 lines elided ↑ open up ↑
 353  353          wchar_t         *colon;
 354  354  
 355  355          report_recursive_init();
 356  356  
 357  357          rp = find_recursive_target(target);
 358  358  
 359  359          if (rp) {
 360  360                  /* 
 361  361                   * if found,  print starting with the space after the ':'
 362  362                   */
 363      -                colon = (wchar_t *) wschr(rp->oldline, (int) colon_char);
      363 +                colon = (wchar_t *) wcschr(rp->oldline, (int) colon_char);
 364  364                  (void) printf("%s", colon + 1);
 365  365          }
 366  366  }
 367  367                  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX