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


 480 
 481         for (rule = line->body.line.command_template;
 482              rule != NULL;
 483              rule = rule->next) {
 484                 (void) printf("\t%s\n", rule->command_line->string_mb);
 485         }
 486 }
 487 
 488 void
 489 dump_target_list(void)
 490 {
 491         Name_set::iterator      p, e;
 492         Wstring str;
 493 
 494         for (p = hashtab.begin(), e = hashtab.end(); p != e; p++) {
 495                         str.init(p);
 496                         wchar_t * wcb = str.get_string();
 497                         if ((p->colons != no_colon) &&
 498                             ((wcb[0] != (int) period_char) ||
 499                              ((wcb[0] == (int) period_char) &&
 500                               (wschr(wcb, (int) slash_char))))) {
 501                                 print_target_n_deps(p);
 502                         }
 503         }
 504 }
 505 
 506 static void
 507 print_target_n_deps(register Name target)
 508 {
 509         register Cmd_line       rule;
 510         register Property       line;
 511         register Dependency     dependency;
 512 
 513         if (target->dependency_printed) {
 514                 return;
 515         }
 516         target->dependency_printed = true;
 517 
 518         (void) printf("%s\n", target->string_mb);
 519 
 520         if ((line = get_prop(target->prop, line_prop)) == NULL) {




 480 
 481         for (rule = line->body.line.command_template;
 482              rule != NULL;
 483              rule = rule->next) {
 484                 (void) printf("\t%s\n", rule->command_line->string_mb);
 485         }
 486 }
 487 
 488 void
 489 dump_target_list(void)
 490 {
 491         Name_set::iterator      p, e;
 492         Wstring str;
 493 
 494         for (p = hashtab.begin(), e = hashtab.end(); p != e; p++) {
 495                         str.init(p);
 496                         wchar_t * wcb = str.get_string();
 497                         if ((p->colons != no_colon) &&
 498                             ((wcb[0] != (int) period_char) ||
 499                              ((wcb[0] == (int) period_char) &&
 500                               (wcschr(wcb, (int) slash_char))))) {
 501                                 print_target_n_deps(p);
 502                         }
 503         }
 504 }
 505 
 506 static void
 507 print_target_n_deps(register Name target)
 508 {
 509         register Cmd_line       rule;
 510         register Property       line;
 511         register Dependency     dependency;
 512 
 513         if (target->dependency_printed) {
 514                 return;
 515         }
 516         target->dependency_printed = true;
 517 
 518         (void) printf("%s\n", target->string_mb);
 519 
 520         if ((line = get_prop(target->prop, line_prop)) == NULL) {