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/dosys.cc
          +++ new/usr/src/cmd/make/bin/dosys.cc
↓ open down ↓ 99 lines elided ↑ open up ↑
 100  100              working_on_targets &&
 101  101              !call_make &&
 102  102              !always_exec) {
 103  103                  return build_ok;
 104  104          }
 105  105          /* no_action_was_taken is used to print special message */
 106  106          no_action_was_taken = false;
 107  107  
 108  108          /* Copy string to make it OK to write it. */
 109  109          q = ALLOC_WC(length + 1);
 110      -        (void) wscpy(q, p);
      110 +        (void) wcscpy(q, p);
 111  111          /* Write the state file iff this command uses make. */
 112  112          if (call_make && command_changed) {
 113  113                  write_state_file(0, false);
 114  114          }
 115  115          make_state->stat.time = file_no_time;
 116  116          (void)exists(make_state);
 117  117          before = make_state->stat.time;
 118  118          /*
 119  119           * Run command directly if it contains no shell meta chars,
 120  120           * else run it using the shell.
↓ open down ↓ 43 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX