Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/setjmp_iso.h
          +++ new/usr/src/head/iso/setjmp_iso.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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   22  /*      Copyright (c) 1988 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25      -
  26   25  /*
       26 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       27 + *
  27   28   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  28   29   * Use is subject to license terms.
  29   30   */
  30   31  
  31   32  /*
  32   33   * An application should not include this header directly.  Instead it
  33   34   * should be included only through the inclusion of other Sun headers.
  34   35   *
  35   36   * The contents of this header is limited to identifiers specified in the
  36   37   * C Standard.  Any new identifiers specified in future amendments to the
↓ open down ↓ 43 lines elided ↑ open up ↑
  80   81          defined(__sparc) || defined(__sparcv9)
  81   82  #if defined(_LP64) || defined(_I32LPx)
  82   83  typedef long    jmp_buf[_JBLEN];
  83   84  #else
  84   85  typedef int     jmp_buf[_JBLEN];
  85   86  #endif
  86   87  #else
  87   88  #error "ISA not supported"
  88   89  #endif
  89   90  
  90      -#if defined(__STDC__)
  91      -
  92   91  extern int setjmp(jmp_buf) __RETURNS_TWICE;
  93   92  #pragma unknown_control_flow(setjmp)
  94   93  extern int _setjmp(jmp_buf) __RETURNS_TWICE;
  95   94  #pragma unknown_control_flow(_setjmp)
  96   95  extern void longjmp(jmp_buf, int) __NORETURN;
  97   96  extern void _longjmp(jmp_buf, int) __NORETURN;
  98   97  
  99      -#else
 100      -
 101      -extern int setjmp() __RETURNS_TWICE;
 102      -#pragma unknown_control_flow(setjmp)
 103      -extern int _setjmp() __RETURNS_TWICE;
 104      -#pragma unknown_control_flow(_setjmp)
 105      -extern void longjmp();
 106      -extern void _longjmp();
 107      -
 108      -#endif  /* __STDC__ */
 109      -
 110   98  #if __cplusplus >= 199711L
 111   99  }
 112  100  #endif /* end of namespace std */
 113  101  
 114  102  #if __cplusplus >= 199711L
 115  103  using std::setjmp;
 116  104  #endif
 117  105  
 118  106  #if defined(_STRICT_STDC) || __cplusplus >= 199711L
 119  107  #define setjmp(env)     setjmp(env)
 120  108  #endif
 121  109  
 122  110  #endif  /* _JBLEN */
 123  111  
 124  112  #ifdef  __cplusplus
 125  113  }
 126  114  #endif
 127  115  
 128  116  #endif  /* _ISO_SETJMP_ISO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX