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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/lib/mksh/i18n.cc
          +++ new/usr/src/cmd/make/lib/mksh/i18n.cc
↓ open down ↓ 69 lines elided ↑ open up ↑
  70   70   *
  71   71   *      Global variables used:
  72   72   *              char_semantics_char[]   array of special wchar_t chars
  73   73   *                                      "&*@`\\|[]:$=!>-\n#()%?;^<'\""
  74   74   */
  75   75  int
  76   76  get_char_semantics_entry(wchar_t ch)
  77   77  {
  78   78          wchar_t         *char_sem_char;
  79   79  
  80      -        char_sem_char = (wchar_t *) wschr(char_semantics_char, ch);
       80 +        char_sem_char = (wchar_t *) wcschr(char_semantics_char, ch);
  81   81          if (char_sem_char == NULL) {
  82   82                  /*
  83   83                   * Return the integer entry for the last slot,
  84   84                   * whose content is empty.
  85   85                   */
  86   86                  return (CHAR_SEMANTICS_ENTRIES - 1);
  87   87          } else {
  88   88                  return (char_sem_char - char_semantics_char);
  89   89          }
  90   90  }
  91   91  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX