Salad
1.0.15
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
include
salad
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
65
typedef
SLD_USINT
SLD_BOOL
;
66
70
typedef
enum
71
{
72
sld_data_structure_list
,
73
sld_data_structure_map
,
74
sld_data_structure_queue
,
75
sld_data_structure_stack
,
76
sld_data_structure_tree
,
77
sld_data_structure_vector
78
}
SLD_DATA_STRUCTURE
;
79
83
typedef
enum
84
{
85
sld_data_type_char
,
86
sld_data_type_signed_char
,
87
sld_data_type_unsigned_char
,
88
sld_data_type_short
,
89
sld_data_type_signed_short
,
90
sld_data_type_unsigned_short
,
91
sld_data_type_int
,
92
sld_data_type_signed_int
,
93
sld_data_type_unsigned_int
,
94
sld_data_type_long
,
95
sld_data_type_signed_long
,
96
sld_data_type_unsigned_long
,
97
#ifdef C99
98
sld_data_type_long_long,
99
#endif
100
sld_data_type_float
,
101
sld_data_type_double
,
102
sld_data_type_char_pointer
103
}
SLD_DATA_TYPE
;
104
107
#endif
/* TYPES_H */
sld_data_type_double
Definition:
types.h:101
sld_data_type_unsigned_char
Definition:
types.h:87
sld_data_type_int
Definition:
types.h:91
SLD_USINT
unsigned short int SLD_USINT
Definition:
types.h:50
sld_data_type_signed_short
Definition:
types.h:89
sld_data_type_unsigned_short
Definition:
types.h:90
sld_data_type_signed_int
Definition:
types.h:92
SLD_SINT
signed int SLD_SINT
Definition:
types.h:53
sld_data_structure_vector
Definition:
types.h:77
sld_data_type_long
Definition:
types.h:94
sld_data_type_unsigned_int
Definition:
types.h:93
sld_data_structure_stack
Definition:
types.h:75
sld_data_type_signed_long
Definition:
types.h:95
SLD_BYTE
unsigned char SLD_BYTE
Definition:
types.h:44
sld_data_type_unsigned_long
Definition:
types.h:96
SLD_DATA_STRUCTURE
SLD_DATA_STRUCTURE
Definition:
types.h:70
SLD_SSINT
signed short int SLD_SSINT
Definition:
types.h:47
sld_data_type_short
Definition:
types.h:88
sld_data_type_float
Definition:
types.h:100
SLD_DATA_TYPE
SLD_DATA_TYPE
Definition:
types.h:83
SLD_SLINT
signed long int SLD_SLINT
Definition:
types.h:59
SLD_BOOL
SLD_USINT SLD_BOOL
Definition:
types.h:65
sld_data_structure_tree
Definition:
types.h:76
sld_data_structure_queue
Definition:
types.h:74
sld_data_structure_list
Definition:
types.h:72
SLD_UINT
unsigned int SLD_UINT
Definition:
types.h:56
sld_data_type_char
Definition:
types.h:85
SLD_ULINT
unsigned long int SLD_ULINT
Definition:
types.h:62
sld_data_type_signed_char
Definition:
types.h:86
sld_data_structure_map
Definition:
types.h:73
sld_data_type_char_pointer
Definition:
types.h:102
Generated on Fri Apr 28 2017 22:23:46 for Salad by
1.8.5