Source:NetHack 5.0.0/include/cstd.h

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to cstd.h from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/include/cstd.h#line12]], for example.

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1. /* NetHack 5.0	cstd.h	$NHDT-Date: 1725652996 2024/09/06 20:03:16 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.6 $ */
2. /*-Copyright (c) Robert Patrick Rankin, 2017. */
3. /* NetHack may be freely redistributed.  See license for details. */
4. 
5. #ifndef CSTD_H
6. #define CSTD_H
7. 
8. /*
9.  * The list of standard (C99 unless noted otherwise) header files:
10.  *
11.  * <assert.h>	         Conditionally compiled macro that calls abort if its
12.  *                       argument evaluates to zero
13.  * <complex.h> (C99)     Complex number arithmetic
14.  * <ctype.h>	         Functions to categorize single characters
15.  * <errno.h>	         Macros reporting error conditions
16.  * <fenv.h> (C99)        Floating-point environment
17.  * <float.h>             Limits of floating-point types
18.  * <inttypes.h> (C99)    Format conversion of integer types
19.  * <iso646.h> (C95)      Alternative operator spellings
20.  * <limits.h>            Ranges of integer types
21.  * <locale.h>            Localization utilities
22.  * <math.h>              Common mathematics functions
23.  * <setjmp.h>            Nonlocal jumps
24.  * <signal.h>            Signal handling
25.  * <stdarg.h>            Variable arguments
26.  * <stdbool.h> (C99)     Macros for boolean type
27.  * <stddef.h>            Common macro definitions
28.  * <stdint.h> (C99)      Fixed-width integer types
29.  * <stdio.h>             Input/output program utilities
30.  * <stdlib.h>            General utilities: memory management,
31.  *                       program utilities, string conversions,
32.  *                       random numbers, algorithms
33.  * <string.h>            String handling
34.  * <tgmath.h> (C99)      Type-generic math (macros wrapping math.h and
35.  *                       complex.h)
36.  * <time.h>              Time/date utilities
37.  * <wchar.h> (C95)       Extended multibyte and wide character utilities
38.  * <wctype.h> (C95)      Functions to categorize single wide character
39. 
40.  * We watch these and try not to conflict with them, or make it tough to adopt
41.  * these in future:
42.  *
43.  * <stdalign.h> (C11)    alignas and alignof convenience macros
44.  * <stdatomic.h> (C11)   Atomic operations
45.  * <stdbit.h> (C23)      Macros to work with the byte and bit representations
46.  *                       of types
47.  * <stdckdint.h> (C23)   Macros for performing checked integer arithmetic
48.  * <stdnoreturn.h> (C11) noreturn convenience macro
49.  * <threads.h> (C11)     Thread library
50.  * <uchar.h> (C11)       UTF-16 and UTF-32 character utilities
51.  *
52.  */
53. #if !defined(__cplusplus)
54. #include <stdio.h>
55. #include <stdlib.h>
56. #include <string.h>
57. #include <signal.h>
58. #include <assert.h>
59. #include <stdarg.h>
60. #include <ctype.h>
61. #include <time.h>
62. #include <limits.h>
63. 
64. #else /* !__cplusplus */
65. /* for FILE */
66. #include <stdio.h>
67. #endif /* !__cplusplus */
68. #endif /* CSTD_H */