Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/va_list.h
          +++ new/usr/src/uts/common/sys/va_list.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  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  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25   25  
  26   26  /*
       27 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       28 + *
  27   29   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28   30   * Use is subject to license terms.
  29   31   */
  30   32  
  31   33  #ifndef _SYS_VA_LIST_H
  32   34  #define _SYS_VA_LIST_H
  33   35  
  34   36  /*
  35   37   * An application should not include this header directly.  Instead it
  36   38   * should be included only through the inclusion of other Sun headers.
↓ open down ↓ 32 lines elided ↑ open up ↑
  69   71  #ifdef  __cplusplus
  70   72  extern "C" {
  71   73  #endif
  72   74  
  73   75  #if defined(_LP64)
  74   76  #define __va_alist_type long
  75   77  #else
  76   78  #define __va_alist_type int
  77   79  #endif
  78   80  
  79      -#if defined(__STDC__) /* source language is ISO C or C++ */
  80      -
  81   81  #define __va_void(expr) ((void)expr)
  82   82  #define __va_ptr_base   void
  83   83  
  84      -#else /* source language is K&R C */
  85      -
  86      -#define __va_void(expr) expr
  87      -#define __va_ptr_base   char
  88      -
  89      -#endif /* __STDC__ */
  90      -
  91   84  #if defined(__BUILTIN_VA_STRUCT) && !defined(__lint)    /* -------- protocol */
  92   85  
  93   86  #if defined(__amd64)    /* processor */
  94   87  
  95   88  typedef struct __va_list_element {
  96   89          unsigned int __va_gp_offset;
  97   90          unsigned int __va_fp_offset;
  98   91          void *__va_overflow_arg_area;
  99   92          void *__va_reg_sve_area;
 100   93  } __va_list[1];
↓ open down ↓ 33 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX