Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/pkginfo.h
          +++ new/usr/src/head/pkginfo.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) 1984, 1986, 1987, 1988, 1989 AT&T */
  23   26  /*        All Rights Reserved   */
  24   27  
  25      -
  26   28  #ifndef _PKGINFO_H
  27   29  #define _PKGINFO_H
  28   30  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.5.1.2 */
  30      -
  31   31  #ifdef  __cplusplus
  32   32  extern "C" {
  33   33  #endif
  34   34  
  35   35  #define PI_INSTALLED    0
  36   36  #define PI_PARTIAL      1
  37   37  #define PI_PRESVR4      2
  38   38  #define PI_UNKNOWN      3
  39   39  #define PI_SPOOLED      4
  40   40  
↓ open down ↓ 3 lines elided ↑ open up ↑
  44   44          char    *arch;
  45   45          char    *version;
  46   46          char    *vendor;
  47   47          char    *basedir;
  48   48          char    *catg;
  49   49          char    status;
  50   50  };
  51   51  
  52   52  extern char     *pkgdir;
  53   53  
  54      -#ifdef __STDC__
  55   54  extern char     *pkgparam(char *, char *);
  56   55  extern int      pkginfo(struct pkginfo *, char *, ...),
  57   56                  pkgnmchk(char *, char *, int);
  58      -#else
  59      -extern char     *pkgparam();
  60      -extern int      pkginfo(),
  61      -                pkgnmchk();
  62      -#endif  /* __STDC__ */
  63   57  
  64   58  #ifdef  __cplusplus
  65   59  }
  66   60  #endif
  67   61  
  68   62  #endif  /* _PKGINFO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX