Print this page
make: unifdef for NSE (undefined)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/bin/depvar.cc
          +++ new/usr/src/cmd/make/bin/depvar.cc
↓ open down ↓ 74 lines elided ↑ open up ↑
  75   75   * command-line args are checked and, if found, an NSE
  76   76   * warning is produced.
  77   77   */
  78   78  void
  79   79  depvar_dep_macro_used(Name name)
  80   80  {
  81   81          Depvar          dv;
  82   82  
  83   83          for (dv = depvar_list; dv != NULL; dv = dv->next) {
  84   84                  if (name == dv->name) {
  85      -#ifdef NSE
  86      -                        if (dv->cmdline) {
  87      -                                nse_dep_cmdmacro(dv->name->string);
  88      -                        }
  89      -#endif
  90   85                          variant_deps = true;
  91   86                          break;
  92   87                  }
  93   88          }
  94   89  }
  95   90  
  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   91  
 118   92  /*
 119   93   * Print the results.  If any of the Dependency Variables
 120   94   * affected the dependencies then the dependencies potentially
 121   95   * differ because of these variables.
 122   96   */
 123   97  void
 124   98  depvar_print_results(void)
 125   99  {
 126  100          if (variant_deps) {
 127  101                  printf(catgets(catd, 1, 234, "differ\n"));
 128  102          } else {
 129  103                  printf(catgets(catd, 1, 235, "same\n"));
 130  104          }
 131  105  }
 132  106  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX