Lines Matching +full:c +full:- +full:define +full:- +full:name
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* ANSI and traditional C compatibility macros
4 This file is part of the GNU C Library.
8 /* ANSI and traditional C compatibility macros
10 ANSI C is assumed if __STDC__ is #defined.
12 Macro ANSI C definition Traditional C definition
13 ----- ---- - ---------- ----------- - ----------
23 DEFUN (name, arglist, args)
25 Defines function NAME.
28 parentheses. ARGLIST becomes the argument list in traditional C.
31 ANSI C, and the type declarations in traditional C. Arguments should
35 DEFUN_VOID (name)
37 Defines a function NAME, which takes no arguments.
39 obsolete -- EXFUN (name, (prototype)) -- obsolete.
43 In ANSI C it is `NAME PROTOTYPE' (so PROTOTYPE should be enclosed in
44 parentheses). In traditional C it is `NAME()'.
50 the name is misleading and the result is ugly. So we just define a
62 the function name out of the mess. EXFUN should be considered
74 #define _ANSIDECL_H 1
84 define __STDC__). The RISC/OS MIPS compiler defines these things
85 in SVR4 mode, but does not define __STDC__. */
87 #define PTR void *
88 #define PTRCONST void *CONST
89 #define LONG_DOUBLE long double
91 #define AND ,
92 #define NOARGS void
93 #define CONST const
94 #define VOLATILE volatile
95 #define SIGNED signed
96 #define DOTS , ...
98 #define EXFUN(name, proto) name proto argument
99 #define DEFUN(name, arglist, args) name(args) argument
100 #define DEFUN_VOID(name) name(void) argument
102 #define PROTO(type, name, arglist) type name arglist argument
103 #define PARAMS(paramlist) paramlist
104 #define ANSI_PROTOTYPES 1
106 #else /* Not ANSI C. */
108 #define PTR char *
109 #define PTRCONST PTR
110 #define LONG_DOUBLE double
112 #define AND ;
113 #define NOARGS
114 #define CONST
115 #ifndef const /* some systems define it in header files for non-ansi mode */
116 #define const
118 #define VOLATILE
119 #define SIGNED
120 #define DOTS
122 #define EXFUN(name, proto) name() argument
123 #define DEFUN(name, arglist, args) name arglist args; argument
124 #define DEFUN_VOID(name) name() argument
125 #define PROTO(type, name, arglist) type name () argument
126 #define PARAMS(paramlist) ()
128 #endif /* ANSI C. */