Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/nl_types.h
          +++ new/usr/src/head/nl_types.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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   *  nl_types.h
  24   24   *
       25 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       26 + *
  25   27   * Copyright (c) 1991,1997,2000 by Sun Microsystems, Inc.
  26   28   * All rights reserved.
  27   29   */
  28   30  
  29   31  /*      Copyright (c) 1988 AT&T */
  30   32  /*      All Rights Reserved     */
  31   33  
  32   34  #ifndef _NL_TYPES_H
  33   35  #define _NL_TYPES_H
  34   36  
  35      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  36      -
  37   37  #include <sys/isa_defs.h>
  38   38  
  39   39  #ifdef  __cplusplus
  40   40  extern "C" {
  41   41  #endif
  42   42  
  43   43  #define NL_SETD                 1    /* XPG3 Conformant Default set number. */
  44   44  #define NL_CAT_LOCALE           (-1) /* XPG4 requirement */
  45   45  
  46   46  #define _CAT_MAGIC              0xFF88FF89
↓ open down ↓ 51 lines elided ↑ open up ↑
  98   98          int     __trust;        /* File is from a trusted location */
  99   99  };
 100  100  
 101  101  typedef struct _nl_catd_struct *nl_catd;
 102  102  typedef int nl_item;    /* XPG3 Conformant for nl_langinfo(). */
 103  103  
 104  104  /* The following is just for the compatibility between OSF and Solaris */
 105  105  /* Need to be removed later */
 106  106  typedef nl_item __nl_item;
 107  107  
 108      -#ifdef  __STDC__
 109  108  int     catclose(nl_catd);
 110  109  char    *catgets(nl_catd, int, int, const char *);
 111  110  nl_catd catopen(const char *, int);
 112      -#else
 113      -int     catclose();
 114      -char    *catgets();
 115      -nl_catd catopen();
 116      -#endif  /* __STDC__ */
 117  111  
 118  112  #ifdef  __cplusplus
 119  113  }
 120  114  #endif
 121  115  
 122  116  #endif  /* _NL_TYPES_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX