Print this page
make: unifdef for NSE (undefined)


  65         *bpatch = dv;
  66         bpatch = &dv->next;
  67 }
  68 
  69 /*
  70  * The macro `name' has been used in either the left-hand or
  71  * right-hand side of a dependency.  See if it is in the
  72  * list.  Two things are looked for.  Names given as args
  73  * to the -V list are checked so as to set the same/differ
  74  * output for the -P option.  Names given as macro=value
  75  * command-line args are checked and, if found, an NSE
  76  * warning is produced.
  77  */
  78 void
  79 depvar_dep_macro_used(Name name)
  80 {
  81         Depvar          dv;
  82 
  83         for (dv = depvar_list; dv != NULL; dv = dv->next) {
  84                 if (name == dv->name) {
  85 #ifdef NSE
  86                         if (dv->cmdline) {
  87                                 nse_dep_cmdmacro(dv->name->string);
  88                         }
  89 #endif
  90                         variant_deps = true;
  91                         break;
  92                 }
  93         }
  94 }
  95 
  96 #ifdef NSE
  97 /*
  98  * The macro `name' has been used in either the argument
  99  * to a cd before a recursive make.  See if it was
 100  * defined on the command-line and, if so, complain.
 101  */
 102 void
 103 depvar_rule_macro_used(Name name)
 104 {
 105         Depvar          dv;
 106 
 107         for (dv = depvar_list; dv != NULL; dv = dv->next) {
 108                 if (name == dv->name) {
 109                         if (dv->cmdline) {
 110                                 nse_rule_cmdmacro(dv->name->string);
 111                         }
 112                         break;
 113                 }
 114         }
 115 }
 116 #endif
 117 
 118 /*
 119  * Print the results.  If any of the Dependency Variables
 120  * affected the dependencies then the dependencies potentially
 121  * differ because of these variables.
 122  */
 123 void
 124 depvar_print_results(void)
 125 {
 126         if (variant_deps) {
 127                 printf(catgets(catd, 1, 234, "differ\n"));
 128         } else {
 129                 printf(catgets(catd, 1, 235, "same\n"));
 130         }
 131 }
 132 


  65         *bpatch = dv;
  66         bpatch = &dv->next;
  67 }
  68 
  69 /*
  70  * The macro `name' has been used in either the left-hand or
  71  * right-hand side of a dependency.  See if it is in the
  72  * list.  Two things are looked for.  Names given as args
  73  * to the -V list are checked so as to set the same/differ
  74  * output for the -P option.  Names given as macro=value
  75  * command-line args are checked and, if found, an NSE
  76  * warning is produced.
  77  */
  78 void
  79 depvar_dep_macro_used(Name name)
  80 {
  81         Depvar          dv;
  82 
  83         for (dv = depvar_list; dv != NULL; dv = dv->next) {
  84                 if (name == dv->name) {





  85                         variant_deps = true;
  86                         break;
  87                 }
  88         }
  89 }
  90 





















  91 
  92 /*
  93  * Print the results.  If any of the Dependency Variables
  94  * affected the dependencies then the dependencies potentially
  95  * differ because of these variables.
  96  */
  97 void
  98 depvar_print_results(void)
  99 {
 100         if (variant_deps) {
 101                 printf(catgets(catd, 1, 234, "differ\n"));
 102         } else {
 103                 printf(catgets(catd, 1, 235, "same\n"));
 104         }
 105 }
 106