Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/pfmt.h
          +++ new/usr/src/head/pfmt.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      -
  26   28  #ifndef _PFMT_H
  27   29  #define _PFMT_H
  28   30  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   31  #include <stdio.h>
  32   32  #ifndef va_args
  33   33  #include <stdarg.h>
  34   34  #endif
  35   35  
  36   36  #ifdef  __cplusplus
  37   37  extern "C" {
  38   38  #endif
  39   39  
  40   40  #define MM_STD          0
↓ open down ↓ 16 lines elided ↑ open up ↑
  57   57  #define MM_OPSYS        0x20000
  58   58  
  59   59  /* Most commonly used combinations */
  60   60  #define MM_SVCMD        MM_UTIL|MM_SOFT
  61   61  
  62   62  #define MM_ERROR        0
  63   63  #define MM_HALT         1
  64   64  #define MM_WARNING      2
  65   65  #define MM_INFO         3
  66   66  
  67      -#ifdef __STDC__
  68   67  int pfmt(FILE *, long, const char *, ...);
  69   68  int lfmt(FILE *, long, const char *, ...);
  70   69  int vpfmt(FILE *, long, const char *, va_list);
  71   70  int vlfmt(FILE *, long, const char *, va_list);
  72   71  const char *setcat(const char *);
  73   72  int setlabel(const char *);
  74   73  int addsev(int, const char *);
  75      -#else
  76      -int pfmt();
  77      -int lfmt();
  78      -int vpfmt();
  79      -int vlfmt();
  80      -char *setcat();
  81      -int setlabel();
  82      -int addsev();
  83      -#endif
  84   74  
  85   75  #define DB_NAME_LEN             15
  86   76  #define MAXLABEL                25
  87   77  
  88   78  #ifdef  __cplusplus
  89   79  }
  90   80  #endif
  91   81  
  92   82  #endif  /* _PFMT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX