Salad  1.0.15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
types.h
Go to the documentation of this file.
1 /*
2  * Salad - An assortment of useful C stuff
3  * Copyright (C) 2016 Lloyd Dilley
4  * http://www.dilley.me/
5  *
6  * This file is part of Salad.
7  *
8  * Salad is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; either version
11  * 3 of the License, or (at your option) any later version.
12  *
13  * Salad is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with Salad. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef TYPES_H
23 #define TYPES_H
24 
32 #define SLD_FALSE 0
33 
35 #define SLD_TRUE !(SLD_FALSE)
36 
38 #define RETURN_SUCCESS 0
39 
41 #define RETURN_FAILURE -1
42 
44 typedef unsigned char SLD_BYTE;
45 
47 typedef signed short int SLD_SSINT;
48 
50 typedef unsigned short int SLD_USINT;
51 
53 typedef signed int SLD_SINT;
54 
56 typedef unsigned int SLD_UINT;
57 
59 typedef signed long int SLD_SLINT;
60 
62 typedef unsigned long int SLD_ULINT;
63 
66 
70 typedef enum
71 {
79 
83 typedef enum
84 {
97 #ifdef C99
98  sld_data_type_long_long,
99 #endif
103 } SLD_DATA_TYPE;
104 
107 #endif /* TYPES_H */
Definition: types.h:101
Definition: types.h:87
Definition: types.h:91
unsigned short int SLD_USINT
Definition: types.h:50
Definition: types.h:89
Definition: types.h:90
Definition: types.h:92
signed int SLD_SINT
Definition: types.h:53
Definition: types.h:77
Definition: types.h:94
Definition: types.h:93
Definition: types.h:75
Definition: types.h:95
unsigned char SLD_BYTE
Definition: types.h:44
Definition: types.h:96
SLD_DATA_STRUCTURE
Definition: types.h:70
signed short int SLD_SSINT
Definition: types.h:47
Definition: types.h:88
Definition: types.h:100
SLD_DATA_TYPE
Definition: types.h:83
signed long int SLD_SLINT
Definition: types.h:59
SLD_USINT SLD_BOOL
Definition: types.h:65
Definition: types.h:76
Definition: types.h:74
Definition: types.h:72
unsigned int SLD_UINT
Definition: types.h:56
Definition: types.h:85
unsigned long int SLD_ULINT
Definition: types.h:62
Definition: types.h:86
Definition: types.h:73
Definition: types.h:102