Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/stdlib_iso.h
          +++ new/usr/src/head/iso/stdlib_iso.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
       26 +/*
       27 + * Copyright 2013 Garrett D'Amore <garrett@damore.org>
       28 + */
  26   29  
  27   30  /*      Copyright (c) 1988 AT&T */
  28   31  /*        All Rights Reserved   */
  29   32  
  30   33  
  31   34  /*
  32   35   * An application should not include this header directly.  Instead it
  33   36   * should be included only through the inclusion of other Sun headers.
  34   37   *
  35   38   * The contents of this header is limited to identifiers specified in the
↓ open down ↓ 7 lines elided ↑ open up ↑
  43   46  #ifndef _ISO_STDLIB_ISO_H
  44   47  #define _ISO_STDLIB_ISO_H
  45   48  
  46   49  #include <sys/feature_tests.h>
  47   50  
  48   51  #ifdef  __cplusplus
  49   52  extern "C" {
  50   53  #endif
  51   54  
  52   55  #if defined(__STDC__)
  53      -extern unsigned char    __ctype[];
  54      -#define MB_CUR_MAX      __ctype[520]
       56 +unsigned char __mb_cur_max(void);
  55   57  #else
  56      -extern unsigned char    _ctype[];
  57      -#define MB_CUR_MAX      _ctype[520]
       58 +unsigned char __mb_cur_max();
  58   59  #endif
       60 +#ifndef MB_CUR_MAX
       61 +#define MB_CUR_MAX      (__mb_cur_max())
       62 +#endif
  59   63  
  60   64  #if __cplusplus >= 199711L
  61   65  namespace std {
  62   66  #endif
  63   67  
  64   68  typedef struct {
  65   69          int     quot;
  66   70          int     rem;
  67   71  } div_t;
  68   72  
↓ open down ↓ 146 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX