Print this page
make: unifdef for other OSes (undefined)


  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 
  27 /*
  28  *      i18n.cc
  29  *
  30  *      Deal with internationalization conversions
  31  */
  32 
  33 /*
  34  * Included files
  35  */
  36 #include <mksh/i18n.h>
  37 #include <mksh/misc.h>            /* setup_char_semantics() */
  38 #if defined (linux)
  39 #       include <wctype.h>
  40 #       include <wchar.h>
  41 #       define wschr(x,y) wcschr(x,y)
  42 #endif
  43 
  44 /*
  45  *      get_char_semantics_value(ch)
  46  *
  47  *      Return value:
  48  *              The character semantics of ch.
  49  *
  50  *      Parameters:
  51  *              ch              character we want semantics for.
  52  *
  53  */
  54 char
  55 get_char_semantics_value(wchar_t ch)
  56 {
  57         static Boolean  char_semantics_setup;
  58 
  59         if (!char_semantics_setup) {
  60                 setup_char_semantics();
  61                 char_semantics_setup = true;
  62         }




  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 
  27 /*
  28  *      i18n.cc
  29  *
  30  *      Deal with internationalization conversions
  31  */
  32 
  33 /*
  34  * Included files
  35  */
  36 #include <mksh/i18n.h>
  37 #include <mksh/misc.h>            /* setup_char_semantics() */





  38 
  39 /*
  40  *      get_char_semantics_value(ch)
  41  *
  42  *      Return value:
  43  *              The character semantics of ch.
  44  *
  45  *      Parameters:
  46  *              ch              character we want semantics for.
  47  *
  48  */
  49 char
  50 get_char_semantics_value(wchar_t ch)
  51 {
  52         static Boolean  char_semantics_setup;
  53 
  54         if (!char_semantics_setup) {
  55                 setup_char_semantics();
  56                 char_semantics_setup = true;
  57         }