modernc.org/libc@v1.24.1/wctype/wctype_openbsd_arm64.go (about)

     1  // Code generated by 'ccgo wctype/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o wctype/wctype_openbsd_arm64.go -pkgname wctype', DO NOT EDIT.
     2  
     3  package wctype
     4  
     5  import (
     6  	"math"
     7  	"reflect"
     8  	"sync/atomic"
     9  	"unsafe"
    10  )
    11  
    12  var _ = math.Pi
    13  var _ reflect.Kind
    14  var _ atomic.Value
    15  var _ unsafe.Pointer
    16  
    17  const (
    18  	X_FILE_OFFSET_BITS   = 64 // <builtin>:25:1:
    19  	X_LOCALE_T_DEFINED_  = 0  // wctype.h:59:1:
    20  	X_LP64               = 1  // <predefined>:1:1:
    21  	X_MACHINE_CDEFS_H_   = 0  // cdefs.h:4:1:
    22  	X_MACHINE__TYPES_H_  = 0  // _types.h:35:1:
    23  	X_MAX_PAGE_SHIFT     = 12 // _types.h:57:1:
    24  	X_RET_PROTECTOR      = 1  // <predefined>:2:1:
    25  	X_STACKALIGNBYTES    = 15 // _types.h:54:1:
    26  	X_SYS_CDEFS_H_       = 0  // cdefs.h:39:1:
    27  	X_WCTRANS_T_DEFINED_ = 0  // wctype.h:44:1:
    28  	X_WCTYPE_H_          = 0  // wctype.h:33:1:
    29  	X_WCTYPE_T_DEFINED_  = 0  // wctype.h:49:1:
    30  	X_WINT_T_DEFINED_    = 0  // wctype.h:39:1:
    31  	Unix                 = 1  // <predefined>:360:1:
    32  )
    33  
    34  type Ptrdiff_t = int64 /* <builtin>:3:26 */
    35  
    36  type Size_t = uint64 /* <builtin>:9:23 */
    37  
    38  type Wchar_t = int32 /* <builtin>:15:24 */
    39  
    40  type X__int128_t = struct {
    41  	Flo int64
    42  	Fhi int64
    43  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    44  type X__uint128_t = struct {
    45  	Flo uint64
    46  	Fhi uint64
    47  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    48  
    49  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    50  type X__float128 = float64        /* <builtin>:47:21 */
    51  
    52  //	$OpenBSD: wctype.h,v 1.6 2017/09/05 03:16:13 schwarze Exp $
    53  //	$NetBSD: wctype.h,v 1.5 2003/03/02 22:18:11 tshiozak Exp $
    54  
    55  // -
    56  // Copyright (c)1999 Citrus Project,
    57  // All rights reserved.
    58  //
    59  // Redistribution and use in source and binary forms, with or without
    60  // modification, are permitted provided that the following conditions
    61  // are met:
    62  // 1. Redistributions of source code must retain the above copyright
    63  //    notice, this list of conditions and the following disclaimer.
    64  // 2. Redistributions in binary form must reproduce the above copyright
    65  //    notice, this list of conditions and the following disclaimer in the
    66  //    documentation and/or other materials provided with the distribution.
    67  //
    68  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    69  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    70  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    71  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
    72  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    73  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    74  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    75  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    76  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    77  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    78  // SUCH DAMAGE.
    79  //
    80  //	citrus Id: wctype.h,v 1.4 2000/12/21 01:50:21 itojun Exp
    81  
    82  //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
    83  //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
    84  
    85  // Copyright (c) 1991, 1993
    86  //	The Regents of the University of California.  All rights reserved.
    87  //
    88  // This code is derived from software contributed to Berkeley by
    89  // Berkeley Software Design, Inc.
    90  //
    91  // Redistribution and use in source and binary forms, with or without
    92  // modification, are permitted provided that the following conditions
    93  // are met:
    94  // 1. Redistributions of source code must retain the above copyright
    95  //    notice, this list of conditions and the following disclaimer.
    96  // 2. Redistributions in binary form must reproduce the above copyright
    97  //    notice, this list of conditions and the following disclaimer in the
    98  //    documentation and/or other materials provided with the distribution.
    99  // 3. Neither the name of the University nor the names of its contributors
   100  //    may be used to endorse or promote products derived from this software
   101  //    without specific prior written permission.
   102  //
   103  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   104  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   105  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   106  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   107  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   108  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   109  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   110  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   111  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   112  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   113  // SUCH DAMAGE.
   114  //
   115  //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
   116  
   117  //	$OpenBSD: cdefs.h,v 1.1 2016/12/17 23:38:33 patrick Exp $
   118  
   119  // Macro to test if we're using a specific version of gcc or later.
   120  
   121  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
   122  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
   123  // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
   124  // in between its arguments.  Do not use __CONCAT on double-quoted strings,
   125  // such as those from the __STRING macro: to concatenate strings just put
   126  // them next to each other.
   127  
   128  // GCC1 and some versions of GCC2 declare dead (non-returning) and
   129  // pure (no side effects) functions using "volatile" and "const";
   130  // unfortunately, these then cause warnings under "-ansi -pedantic".
   131  // GCC >= 2.5 uses the __attribute__((attrs)) style.  All of these
   132  // work for GNU C++ (modulo a slight glitch in the C++ grammar in
   133  // the distribution version of 2.5.5).
   134  
   135  // __returns_twice makes the compiler not assume the function
   136  // only returns once.  This affects registerisation of variables:
   137  // even local variables need to be in memory across such a call.
   138  // Example: setjmp()
   139  
   140  // __only_inline makes the compiler only use this function definition
   141  // for inlining; references that can't be inlined will be left as
   142  // external references instead of generating a local copy.  The
   143  // matching library should include a simple extern definition for
   144  // the function to handle those references.  c.f. ctype.h
   145  
   146  // GNU C version 2.96 adds explicit branch prediction so that
   147  // the CPU back-end can hint the processor and also so that
   148  // code blocks can be reordered such that the predicted path
   149  // sees a more linear flow, thus improving cache behavior, etc.
   150  //
   151  // The following two macros provide us with a way to utilize this
   152  // compiler feature.  Use __predict_true() if you expect the expression
   153  // to evaluate to true, and __predict_false() if you expect the
   154  // expression to evaluate to false.
   155  //
   156  // A few notes about usage:
   157  //
   158  //	* Generally, __predict_false() error condition checks (unless
   159  //	  you have some _strong_ reason to do otherwise, in which case
   160  //	  document it), and/or __predict_true() `no-error' condition
   161  //	  checks, assuming you want to optimize for the no-error case.
   162  //
   163  //	* Other than that, if you don't know the likelihood of a test
   164  //	  succeeding from empirical or other `hard' evidence, don't
   165  //	  make predictions.
   166  //
   167  //	* These are meant to be used in places that are run `a lot'.
   168  //	  It is wasteful to make predictions in code that is run
   169  //	  seldomly (e.g. at subsystem initialization time) as the
   170  //	  basic block reordering that this affects can often generate
   171  //	  larger code.
   172  
   173  // Delete pseudo-keywords wherever they are not available or needed.
   174  
   175  // The __packed macro indicates that a variable or structure members
   176  // should have the smallest possible alignment, despite any host CPU
   177  // alignment requirements.
   178  //
   179  // The __aligned(x) macro specifies the minimum alignment of a
   180  // variable or structure.
   181  //
   182  // These macros together are useful for describing the layout and
   183  // alignment of messages exchanged with hardware or other systems.
   184  
   185  // "The nice thing about standards is that there are so many to choose from."
   186  // There are a number of "feature test macros" specified by (different)
   187  // standards that determine which interfaces and types the header files
   188  // should expose.
   189  //
   190  // Because of inconsistencies in these macros, we define our own
   191  // set in the private name space that end in _VISIBLE.  These are
   192  // always defined and so headers can test their values easily.
   193  // Things can get tricky when multiple feature macros are defined.
   194  // We try to take the union of all the features requested.
   195  //
   196  // The following macros are guaranteed to have a value after cdefs.h
   197  // has been included:
   198  //	__POSIX_VISIBLE
   199  //	__XPG_VISIBLE
   200  //	__ISO_C_VISIBLE
   201  //	__BSD_VISIBLE
   202  
   203  // X/Open Portability Guides and Single Unix Specifications.
   204  // _XOPEN_SOURCE				XPG3
   205  // _XOPEN_SOURCE && _XOPEN_VERSION = 4		XPG4
   206  // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1	XPG4v2
   207  // _XOPEN_SOURCE == 500				XPG5
   208  // _XOPEN_SOURCE == 520				XPG5v2
   209  // _XOPEN_SOURCE == 600				POSIX 1003.1-2001 with XSI
   210  // _XOPEN_SOURCE == 700				POSIX 1003.1-2008 with XSI
   211  //
   212  // The XPG spec implies a specific value for _POSIX_C_SOURCE.
   213  
   214  // POSIX macros, these checks must follow the XOPEN ones above.
   215  //
   216  // _POSIX_SOURCE == 1		1003.1-1988 (superseded by _POSIX_C_SOURCE)
   217  // _POSIX_C_SOURCE == 1		1003.1-1990
   218  // _POSIX_C_SOURCE == 2		1003.2-1992
   219  // _POSIX_C_SOURCE == 199309L	1003.1b-1993
   220  // _POSIX_C_SOURCE == 199506L   1003.1c-1995, 1003.1i-1995,
   221  //				and the omnibus ISO/IEC 9945-1:1996
   222  // _POSIX_C_SOURCE == 200112L   1003.1-2001
   223  // _POSIX_C_SOURCE == 200809L   1003.1-2008
   224  //
   225  // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
   226  // this may be overridden by the _ISOC99_SOURCE macro later.
   227  
   228  // _ANSI_SOURCE means to expose ANSI C89 interfaces only.
   229  // If the user defines it in addition to one of the POSIX or XOPEN
   230  // macros, assume the POSIX/XOPEN macro(s) should take precedence.
   231  
   232  // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
   233  // override any of the other macros since they are non-exclusive.
   234  
   235  // Finally deal with BSD-specific interfaces that are not covered
   236  // by any standards.  We expose these when none of the POSIX or XPG
   237  // macros is defined or if the user explicitly asks for them.
   238  
   239  // Default values.
   240  
   241  // $OpenBSD: _types.h,v 1.4 2018/03/05 01:15:25 deraadt Exp $
   242  // -
   243  // Copyright (c) 1990, 1993
   244  //	The Regents of the University of California.  All rights reserved.
   245  //
   246  // Redistribution and use in source and binary forms, with or without
   247  // modification, are permitted provided that the following conditions
   248  // are met:
   249  // 1. Redistributions of source code must retain the above copyright
   250  //    notice, this list of conditions and the following disclaimer.
   251  // 2. Redistributions in binary form must reproduce the above copyright
   252  //    notice, this list of conditions and the following disclaimer in the
   253  //    documentation and/or other materials provided with the distribution.
   254  // 3. Neither the name of the University nor the names of its contributors
   255  //    may be used to endorse or promote products derived from this software
   256  //    without specific prior written permission.
   257  //
   258  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   259  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   260  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   261  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   262  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   263  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   264  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   265  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   266  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   267  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   268  // SUCH DAMAGE.
   269  //
   270  //	@(#)types.h	8.3 (Berkeley) 1/5/94
   271  //	@(#)ansi.h	8.2 (Berkeley) 1/4/94
   272  
   273  // _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned
   274  // value for all data types (int, long, ...).   The result is an
   275  // unsigned long and must be cast to any desired pointer type.
   276  //
   277  // _ALIGNED_POINTER is a boolean macro that checks whether an address
   278  // is valid to fetch data elements of type t from on this architecture.
   279  // This does not reflect the optimal alignment, just the possibility
   280  // (within reasonable limits).
   281  
   282  // 7.18.1.1 Exact-width integer types
   283  type X__int8_t = int8     /* _types.h:60:22 */
   284  type X__uint8_t = uint8   /* _types.h:61:24 */
   285  type X__int16_t = int16   /* _types.h:62:17 */
   286  type X__uint16_t = uint16 /* _types.h:63:25 */
   287  type X__int32_t = int32   /* _types.h:64:15 */
   288  type X__uint32_t = uint32 /* _types.h:65:23 */
   289  // LONGLONG
   290  type X__int64_t = int64 /* _types.h:67:20 */
   291  // LONGLONG
   292  type X__uint64_t = uint64 /* _types.h:69:28 */
   293  
   294  // 7.18.1.2 Minimum-width integer types
   295  type X__int_least8_t = X__int8_t     /* _types.h:72:19 */
   296  type X__uint_least8_t = X__uint8_t   /* _types.h:73:20 */
   297  type X__int_least16_t = X__int16_t   /* _types.h:74:20 */
   298  type X__uint_least16_t = X__uint16_t /* _types.h:75:21 */
   299  type X__int_least32_t = X__int32_t   /* _types.h:76:20 */
   300  type X__uint_least32_t = X__uint32_t /* _types.h:77:21 */
   301  type X__int_least64_t = X__int64_t   /* _types.h:78:20 */
   302  type X__uint_least64_t = X__uint64_t /* _types.h:79:21 */
   303  
   304  // 7.18.1.3 Fastest minimum-width integer types
   305  type X__int_fast8_t = X__int32_t    /* _types.h:82:20 */
   306  type X__uint_fast8_t = X__uint32_t  /* _types.h:83:21 */
   307  type X__int_fast16_t = X__int32_t   /* _types.h:84:20 */
   308  type X__uint_fast16_t = X__uint32_t /* _types.h:85:21 */
   309  type X__int_fast32_t = X__int32_t   /* _types.h:86:20 */
   310  type X__uint_fast32_t = X__uint32_t /* _types.h:87:21 */
   311  type X__int_fast64_t = X__int64_t   /* _types.h:88:20 */
   312  type X__uint_fast64_t = X__uint64_t /* _types.h:89:21 */
   313  
   314  // 7.18.1.4 Integer types capable of holding object pointers
   315  type X__intptr_t = int64   /* _types.h:104:16 */
   316  type X__uintptr_t = uint64 /* _types.h:105:24 */
   317  
   318  // 7.18.1.5 Greatest-width integer types
   319  type X__intmax_t = X__int64_t   /* _types.h:108:20 */
   320  type X__uintmax_t = X__uint64_t /* _types.h:109:21 */
   321  
   322  // Register size
   323  type X__register_t = int64 /* _types.h:112:16 */
   324  
   325  // VM system types
   326  type X__vaddr_t = uint64 /* _types.h:115:24 */
   327  type X__paddr_t = uint64 /* _types.h:116:24 */
   328  type X__vsize_t = uint64 /* _types.h:117:24 */
   329  type X__psize_t = uint64 /* _types.h:118:24 */
   330  
   331  // Standard system types
   332  type X__double_t = float64           /* _types.h:121:18 */
   333  type X__float_t = float32            /* _types.h:122:17 */
   334  type X__ptrdiff_t = int64            /* _types.h:123:16 */
   335  type X__size_t = uint64              /* _types.h:124:24 */
   336  type X__ssize_t = int64              /* _types.h:125:16 */
   337  type X__va_list = X__builtin_va_list /* _types.h:127:27 */
   338  
   339  // Wide character support types
   340  type X__wchar_t = int32     /* _types.h:137:15 */
   341  type X__wint_t = int32      /* _types.h:140:15 */
   342  type X__rune_t = int32      /* _types.h:141:15 */
   343  type X__wctrans_t = uintptr /* _types.h:142:14 */
   344  type X__wctype_t = uintptr  /* _types.h:143:14 */
   345  
   346  type Wint_t = X__wint_t /* wctype.h:40:21 */
   347  
   348  type Wctrans_t = X__wctrans_t /* wctype.h:45:21 */
   349  
   350  type Wctype_t = X__wctype_t /* wctype.h:50:20 */
   351  
   352  type Locale_t = uintptr /* wctype.h:60:14 */
   353  
   354  var _ int8 /* gen.c:2:13: */