Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/prof_attr.h
          +++ new/usr/src/head/prof_attr.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
       22 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  22   23   * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  23   24   */
  24   25  
  25   26  #ifndef _PROF_ATTR_H
  26   27  #define _PROF_ATTR_H
  27   28  
  28   29  #ifdef  __cplusplus
  29   30  extern "C" {
  30   31  #endif
  31   32  
↓ open down ↓ 49 lines elided ↑ open up ↑
  81   82  } profstr_t;
  82   83  
  83   84  typedef struct profattr_s {
  84   85          char   *name;   /* proforization name */
  85   86          char   *res1;   /* RESERVED */
  86   87          char   *res2;   /* RESERVED */
  87   88          char   *desc;   /* description */
  88   89          kva_t  *attr;   /* array of key-value pair attributes */
  89   90  } profattr_t;
  90   91  
  91      -#ifdef    __STDC__
  92   92  extern profattr_t *getprofnam(const char *);
  93   93  extern profattr_t *getprofattr(void);
  94   94  extern void getproflist(const char *, char **, int *);
  95   95  extern void setprofattr(void);
  96   96  extern void endprofattr(void);
  97   97  extern void free_profattr(profattr_t *);
  98   98  extern void free_proflist(char **, int);
  99   99  
 100      -#else                           /* not __STDC__ */
 101      -
 102      -extern profattr_t *getprofnam();
 103      -extern profattr_t *getprofattr();
 104      -extern void getproflist();
 105      -extern int setprofattr();
 106      -extern int endprofattr();
 107      -extern void free_profattr();
 108      -extern void free_proflist();
 109      -
 110      -#endif
 111      -
 112  100  #ifdef __cplusplus
 113  101  }
 114  102  #endif
 115  103  
 116  104  #endif  /* _PROF_ATTR_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX