Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/nlist.h
          +++ new/usr/src/head/nlist.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   * and limitations under the License.
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  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 +/*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + */
  22   25  /*      Copyright (c) 1988 AT&T */
  23   26  /*        All Rights Reserved   */
  24   27  
  25   28  
  26   29  #ifndef _NLIST_H
  27   30  #define _NLIST_H
  28   31  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.8.2.4 */
  30      -
  31   32  #ifdef  __cplusplus
  32   33  extern "C" {
  33   34  #endif
  34   35  
  35   36  struct nlist {
  36   37          char            *n_name;        /* symbol name */
  37   38          long            n_value;        /* value of symbol */
  38   39          short           n_scnum;        /* section number */
  39   40          unsigned short  n_type;         /* type and derived type */
  40   41          char            n_sclass;       /* storage class */
  41   42          char            n_numaux;       /* number of aux. entries */
  42   43  };
  43   44  
  44      -#if defined(__STDC__)
  45   45  extern int nlist(const char *, struct nlist *);
  46      -#else   /* __STDC__ */
  47      -extern int nlist();
  48      -#endif  /* __STDC__ */
  49   46  
  50   47  #ifdef  __cplusplus
  51   48  }
  52   49  #endif
  53   50  
  54   51  #endif  /* _NLIST_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX