Print this page
2964 need POSIX 2008 locale object support (more C++ fixes)

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/port/locale/localeimpl.h
          +++ new/usr/src/lib/libc/port/locale/localeimpl.h
↓ open down ↓ 47 lines elided ↑ open up ↑
  48   48  struct locdata {
  49   49          char            l_lname[ENCODING_LEN+1];        /* locale name */
  50   50          void            *l_data[NLOCDATA];              /* storage area */
  51   51          void            *l_map;                         /* mapped file */
  52   52          size_t          l_map_len;
  53   53          struct locdata  *l_next;                        /* link cached list */
  54   54          int             l_cached;                       /* nonzero if cached */
  55   55  };
  56   56  
  57   57  
  58      -struct locale {
       58 +struct _locale {
  59   59          struct locdata  *locdata[LC_ALL];
  60      -        struct locale   *next;
       60 +        struct _locale  *next;
  61   61          int             on_list;        /* on linked list */
  62   62          char            locname[(ENCODING_LEN+1)*NLOCDATA + 1];
  63   63  
  64   64          /*
  65   65           * Convenience pointers.
  66   66           */
  67   67          const struct lc_ctype           *ctype;
  68   68          const struct lc_collate         *collate;
  69   69          const struct lc_messages        *messages;
  70   70          const struct lc_monetary        *monetary;
↓ open down ↓ 37 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX