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/misc.cc
          +++ new/usr/src/cmd/make/bin/misc.cc
↓ open down ↓ 489 lines elided ↑ open up ↑
 490  490  {
 491  491          Name_set::iterator      p, e;
 492  492          Wstring str;
 493  493  
 494  494          for (p = hashtab.begin(), e = hashtab.end(); p != e; p++) {
 495  495                          str.init(p);
 496  496                          wchar_t * wcb = str.get_string();
 497  497                          if ((p->colons != no_colon) &&
 498  498                              ((wcb[0] != (int) period_char) ||
 499  499                               ((wcb[0] == (int) period_char) &&
 500      -                              (wschr(wcb, (int) slash_char))))) {
      500 +                              (wcschr(wcb, (int) slash_char))))) {
 501  501                                  print_target_n_deps(p);
 502  502                          }
 503  503          }
 504  504  }
 505  505  
 506  506  static void
 507  507  print_target_n_deps(register Name target)
 508  508  {
 509  509          register Cmd_line       rule;
 510  510          register Property       line;
↓ open down ↓ 226 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX