Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/setjmp.h
          +++ new/usr/src/head/setjmp.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 2004 Sun Microsystems, Inc.  All rights reserved.
  28   29   * Use is subject to license terms.
  29   30   */
  30   31  
  31   32  #ifndef _SETJMP_H
  32   33  #define _SETJMP_H
  33   34  
  34   35  #include <iso/setjmp_iso.h>
  35   36  
  36   37  /*
↓ open down ↓ 2 lines elided ↑ open up ↑
  39   40   */
  40   41  #if __cplusplus >= 199711L
  41   42  using std::jmp_buf;
  42   43  using std::longjmp;
  43   44  #endif
  44   45  
  45   46  #ifdef  __cplusplus
  46   47  extern "C" {
  47   48  #endif
  48   49  
  49      -#if defined(__STDC__)
  50      -
  51   50  #if !defined(_STRICT_STDC) || defined(__XOPEN_OR_POSIX) || \
  52   51          defined(__EXTENSIONS__)
  53   52  /* non-ANSI standard compilation */
  54   53  
  55   54  #if defined(_LP64) || defined(_I32LPx)
  56   55  typedef long sigjmp_buf[_SIGJBLEN];
  57   56  #else
  58   57  typedef int sigjmp_buf[_SIGJBLEN];
  59   58  #endif
  60   59  
  61   60  extern int sigsetjmp(sigjmp_buf, int) __RETURNS_TWICE;
  62   61  #pragma unknown_control_flow(sigsetjmp)
  63   62  extern void siglongjmp(sigjmp_buf, int) __NORETURN;
  64   63  #endif
  65   64  
  66      -#else /* __STDC__ */
  67      -
  68      -#if defined(_LP64) || defined(_I32LPx)
  69      -typedef long sigjmp_buf[_SIGJBLEN];
  70      -#else
  71      -typedef int sigjmp_buf[_SIGJBLEN];
  72      -#endif
  73      -
  74      -extern int sigsetjmp() __RETURNS_TWICE;
  75      -#pragma unknown_control_flow(sigsetjmp)
  76      -extern void siglongjmp();
  77      -
  78      -#endif  /* __STDC__ */
  79      -
  80   65  #ifdef  __cplusplus
  81   66  }
  82   67  #endif
  83   68  
  84   69  #endif  /* _SETJMP_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX