Print this page
make: unifdef for NSE (undefined)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/bin/read2.cc
          +++ new/usr/src/cmd/make/bin/read2.cc
↓ open down ↓ 578 lines elided ↑ open up ↑
 579  579          wchar_t                 relative[MAXPATHLEN];
 580  580          register int            recursive_state;
 581  581          Boolean                 register_as_auto;
 582  582          Boolean                 not_auto_found;
 583  583          char                    *slash;
 584  584          Wstring                 depstr;
 585  585  
 586  586          /* Check if this is a .RECURSIVE line */
 587  587          if ((depes->used >= 3) &&
 588  588              (depes->names[0] == recursive_name)) {
 589      -#ifdef NSE
 590      -                nse_did_recursion= true;
 591      -#endif
 592  589                  target->has_recursive_dependency = true;
 593  590                  depes->names[0] = NULL;
 594  591                  recursive_state = 0;
 595  592                  dp = NULL;
 596  593                  dpp = &dp;
 597  594                  /* Read the dependencies. They are "<directory> <target-made>*/
 598  595                  /* <makefile>*" */
 599  596                  for (; depes != NULL; depes = depes->next) {
 600  597                          for (i = 0; i < depes->used; i++) {
 601  598                                  if (depes->names[i] != NULL) {
↓ open down ↓ 277 lines elided ↑ open up ↑
 879  876          /* Find the end of the list and check for duplicates */
 880  877          for (insert = &line->body.line.dependencies, dp = *insert;
 881  878               dp != NULL;
 882  879               insert = &dp->next, dp = *insert) {
 883  880                  if ((dp->name == depe) && (depe != wait_name)) {
 884  881                          if (dp->automatic) {
 885  882                                  dp->automatic = automatic;
 886  883                                  if (automatic) {
 887  884                                          dp->built = false;
 888  885                                          depe->stat.is_file = true;
 889      -#ifdef NSE
 890      -                                        depe->has_parent= true;
 891      -                                        depe->is_target= true;
 892      -#endif
 893  886                                  }
 894  887                          }
 895  888                          dp->stale = false;
 896  889                          return;
 897  890                  }
 898  891          }
 899  892          /* Insert the new dependency since we couldnt find it */
 900  893          dp = *insert = ALLOC(Dependency);
 901  894          dp->name = depe;
 902  895          dp->next = NULL;
 903  896          dp->automatic = automatic;
 904  897          dp->stale = false;
 905  898          dp->built = false;
 906  899          depe->stat.is_file = true;
 907      -#ifdef NSE
 908      -        depe->has_parent= true;
 909      -        depe->is_target= true;
 910      -#endif
 911  900  
 912  901          if ((makefile_type == reading_makefile) &&
 913  902              (line != NULL) &&
 914  903              (line->body.line.target != NULL)) {
 915  904                  line->body.line.target->has_regular_dependency = true;
 916      -#ifdef NSE
 917      -                line->body.line.target->is_target= true;
 918      -#endif
 919  905          }
 920  906  }
 921  907  
 922  908  /*
 923  909   *      enter_percent(target, depes, command)
 924  910   *
 925  911   *      Enter "x%y : a%b" type lines
 926  912   *      % patterns are stored in four parts head and tail for target and source
 927  913   *
 928  914   *      Parameters:
↓ open down ↓ 261 lines elided ↑ open up ↑
1190 1176                                  target->string_mb);
1191 1177                  }
1192 1178                  default_rule = command;
1193 1179                  if (trace_reader) {
1194 1180                          (void) printf("%s:\n",
1195 1181                                        default_rule_name->string_mb);
1196 1182                          print_rule(command);
1197 1183                  }
1198 1184                  break;
1199 1185  
1200      -#ifdef NSE
1201      -        case derived_src_special:
1202      -                for (; depes != NULL; depes= depes->next)
1203      -                        for (n= 0; n < depes->used; n++) {
1204      -                                if (trace_reader)
1205      -                                        (void)printf("%s:\t%s\n",
1206      -                                        precious->string_mb,
1207      -                                        depes->names[n]->string_mb);
1208      -                                depes->names[n]->stat.is_derived_src= true;
1209      -                        };
1210      -                break;
1211      -#endif
1212 1186  
1213 1187          case ignore_special:
1214 1188                  if ((depes->used != 0) &&(!posix)){
1215 1189                          fatal_reader(catgets(catd, 1, 101, "Illegal dependencies for target `%s'"),
1216 1190                                       target->string_mb);
1217 1191                  }
1218 1192                  if (depes->used == 0)
1219 1193                  {
1220 1194                     ignore_errors_all = true;
1221 1195                  }
↓ open down ↓ 708 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX