Line | |
---|
1 | #ifndef SRL_PUBLIC_TYPES_H |
---|
2 | #define SRL_PUBLIC_TYPES_H |
---|
3 | |
---|
4 | /** |
---|
5 | * @file |
---|
6 | * @module{SRL} |
---|
7 | * @short Abstract types definitions |
---|
8 | */ |
---|
9 | |
---|
10 | typedef unsigned long uint_t; |
---|
11 | typedef signed long sint_t; |
---|
12 | |
---|
13 | typedef unsigned char uint8_t; |
---|
14 | typedef signed char sint8_t; |
---|
15 | typedef signed short int int8_t; |
---|
16 | |
---|
17 | typedef unsigned short int uint16_t; |
---|
18 | typedef signed short int sint16_t; |
---|
19 | typedef signed short int int16_t; |
---|
20 | |
---|
21 | typedef unsigned int uint32_t; |
---|
22 | typedef signed int sint32_t; |
---|
23 | typedef signed int int32_t; |
---|
24 | |
---|
25 | typedef sint32_t error_t; |
---|
26 | typedef uint_t bool_t; |
---|
27 | |
---|
28 | typedef void *srl_buffer_t; |
---|
29 | |
---|
30 | |
---|
31 | #ifndef NULL |
---|
32 | #define NULL (void*)0 |
---|
33 | #endif |
---|
34 | |
---|
35 | /** Get integer minimum value */ |
---|
36 | #define __MIN(a, b) ({ const typeof(a) __a = (a); const typeof(b) __b = (b); __b < __a ? __b : __a; }) |
---|
37 | |
---|
38 | /** Get integer maximum value */ |
---|
39 | #define __MAX(a, b) ({ const typeof(a) __a = (a); const typeof(b) __b = (b); __b > __a ? __b : __a; }) |
---|
40 | |
---|
41 | |
---|
42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.