P99
p99_typenames.h
Go to the documentation of this file.
1 /* This may look like nonsense, but it really is -*- mode: C; coding: utf-8 -*- */
2 /* */
3 /* Except for parts copied from previous work and as explicitly stated below, */
4 /* the authors and copyright holders for this work are as follows: */
5 /* (C) copyright 2011-2012, 2014 Jens Gustedt, INRIA, France */
6 /* (C) copyright 2012 William Morris */
7 /* */
8 /* This file is free software; it is part of the P99 project. */
9 /* */
10 /* Licensed under the Apache License, Version 2.0 (the "License"); */
11 /* you may not use this file except in compliance with the License. */
12 /* You may obtain a copy of the License at */
13 /* */
14 /* http://www.apache.org/licenses/LICENSE-2.0 */
15 /* */
16 /* Unless required by applicable law or agreed to in writing, software */
17 /* distributed under the License is distributed on an "AS IS" BASIS, */
18 /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
19 /* See the License for the specific language governing permissions and */
20 /* limitations under the License. */
21 /* */
22 #ifndef P99_TYPENAMES_H_
23 # define P99_TYPENAMES_H_
24 
30 #include "p99_compiler.h"
31 #include "p99_type.h"
32 
38 P00_ONE_TOK(unsigned long, ulong);
39 P00_ONE_TOK(signed long, slong);
40 P00_ONE_TOK(unsigned int, uint);
41 P00_ONE_TOK(signed int, sint);
42 P00_ONE_TOK(unsigned short, ushort);
43 P00_ONE_TOK(signed short, sshort);
44 P00_ONE_TOK(unsigned char, uchar);
45 P00_ONE_TOK(signed char, schar);
46 P00_ONE_TOK(long long, llong);
47 P00_ONE_TOK(signed long long, sllong);
48 P00_ONE_TOK(unsigned long long, ullong);
49 P00_ONE_TOK(long double, ldouble);
50 #ifndef __STDC_NO_COMPLEX__
51 P00_ONE_TOK(float _Complex, cfloat);
52 P00_ONE_TOK(double _Complex, cdouble);
53 P00_ONE_TOK(long double _Complex, cldouble);
54 #endif
55 
74 #ifndef __STDC_NO_COMPLEX__
78 #endif
94 
96 P99_POINTER_TYPE(unsigned);
97 
99 P99_POINTER_TYPE(intmax_t);
102 P99_POINTER_TYPE(uintptr_t);
112 
113 
116 
120 #ifndef __STDC_NO_COMPLEX__
124 #endif
139 
142 
147 P99_DERIVED_TYPES(uintptr_t);
157 
169 #define bool_cptr_delete _Bool_cptr_delete
170 #define bool_cptr_destroy _Bool_cptr_destroy
171 #define bool_cptr_init _Bool_cptr_init
172 #define bool_cptr_vdelete _Bool_cptr_vdelete
173 #define bool_cptr_vnew _Bool_cptr_vnew
174 #define bool_cptr_vrealloc _Bool_cptr_vrealloc
175 #define bool_delete _Bool_delete
176 #define bool_destroy _Bool_destroy
177 #define bool_init _Bool_init
178 #define bool_ptr_delete _Bool_ptr_delete
179 #define bool_ptr_destroy _Bool_ptr_destroy
180 #define bool_ptr_init _Bool_ptr_init
181 #define bool_ptr_vdelete _Bool_ptr_vdelete
182 #define bool_ptr_vnew _Bool_ptr_vnew
183 #define bool_ptr_vrealloc _Bool_ptr_vrealloc
184 #define bool_vdelete _Bool_vdelete
185 #define bool_vnew _Bool_vnew
186 #define bool_vrealloc _Bool_vrealloc
187 
191 #endif /* !P99_TYPENAMES_H_ */
slong
signed long slong
a ‘one token’ abreviation for signed long
Definition: p99_typenames.h:39
sint
signed int sint
a ‘one token’ abreviation for signed int
Definition: p99_typenames.h:41
uintmax_t
uintmax_t
Definition: p99_str.h:117
p99_type.h
p99_compiler.h
Group compiler dependencies together in one file.
ptrdiff_t
ptrdiff_t
Definition: p99_str.h:101
ulong
unsigned long ulong
a ‘one token’ abreviation for unsigned long
Definition: p99_typenames.h:38
schar
signed char schar
a ‘one token’ abreviation for signed char
Definition: p99_typenames.h:45
ldouble
long double ldouble
a ‘one token’ abreviation for long double
Definition: p99_typenames.h:49
uint
unsigned int uint
a ‘one token’ abreviation for unsigned int
Definition: p99_typenames.h:40
cfloat
float _Complex cfloat
a ‘one token’ abreviation for float _Complex
Definition: p99_typenames.h:51
cdouble
double _Complex cdouble
a ‘one token’ abreviation for double _Complex
Definition: p99_typenames.h:52
sshort
signed short sshort
a ‘one token’ abreviation for signed short
Definition: p99_typenames.h:43
ullong
unsigned long long ullong
a ‘one token’ abreviation for unsigned long long
Definition: p99_typenames.h:48
P99_POINTER_TYPE
#define P99_POINTER_TYPE(T)
Declare derived pointer types with endings "_ptr" and "_cptr".
Definition: p99_type.h:132
llong
long long llong
a ‘one token’ abreviation for long long
Definition: p99_typenames.h:46
void_cptr
void const * void_cptr
a const pointer to void
Definition: p99_typenames.h:70
P99_PLAIN_TYPE
#define P99_PLAIN_TYPE(T)
Declare trivial init and destroy functions for type T.
Definition: p99_type.h:142
ushort
unsigned short ushort
a ‘one token’ abreviation for unsigned short
Definition: p99_typenames.h:42
cldouble
long double _Complex cldouble
a ‘one token’ abreviation for long double _Complex
Definition: p99_typenames.h:53
P99_DERIVED_TYPES
#define P99_DERIVED_TYPES(T)
Declare trivial init and destroy functions for type T and its pointer derivatives.
Definition: p99_type.h:160
sllong
signed long long sllong
a ‘one token’ abreviation for signed long long
Definition: p99_typenames.h:47
uchar
unsigned char uchar
a ‘one token’ abreviation for unsigned char
Definition: p99_typenames.h:44
void_ptr
void * void_ptr
a pointer to void
Definition: p99_typenames.h:70