| 1 | // **************************************************************************** |
| 2 | // Project: libguytools |
| 3 | // **************************************************************************** |
| 4 | // Programmer: Guy Voncken |
| 5 | // Police Grand-Ducale |
| 6 | // Service de Police Judiciaire |
| 7 | // Section Nouvelles Technologies |
| 8 | // **************************************************************************** |
| 9 | // Module: Type definitions |
| 10 | // **************************************************************************** |
| 11 | |
| 12 | // Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, |
| 13 | // 2018, 2019 |
| 14 | // Guy Voncken |
| 15 | // |
| 16 | // This file is part of libguytools. |
| 17 | // |
| 18 | // libguytools is free software: you can redistribute it and/or modify |
| 19 | // it under the terms of the GNU General Public License as published by |
| 20 | // the Free Software Foundation, either version 2 of the License, or |
| 21 | // (at your option) any later version. |
| 22 | // |
| 23 | // libguytools is distributed in the hope that it will be useful, |
| 24 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 25 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 26 | // GNU General Public License for more details. |
| 27 | // |
| 28 | // You should have received a copy of the GNU General Public License |
| 29 | // along with libguytools. If not, see <http://www.gnu.org/licenses/>. |
| 30 | |
| 31 | #ifndef __TOOLTYPES_H__ |
| 32 | #define __TOOLTYPES_H__ |
| 33 | |
| 34 | #ifndef NO_ERROR |
| 35 | #define NO_ERROR 0 |
| 36 | #endif |
| 37 | |
| 38 | // Remember, char, signed char and unsigned char are 3 different types |
| 39 | // as stated by ANSI-C, but there are only two representations !!! |
| 40 | |
| 41 | typedef char t_char; |
| 42 | typedef char * t_pchar; |
| 43 | typedef const char * t_pcchar; |
| 44 | |
| 45 | typedef signed char t_schar; |
| 46 | typedef signed char * t_pschar; |
| 47 | typedef unsigned char t_uchar; |
| 48 | typedef unsigned char * t_puchar; |
| 49 | |
| 50 | typedef short t_short; |
| 51 | typedef short * t_pshort; |
| 52 | typedef unsigned short t_ushort; |
| 53 | typedef unsigned short * t_pushort; |
| 54 | |
| 55 | typedef int t_int; |
| 56 | typedef int * t_pint; |
| 57 | typedef unsigned int t_uint; |
| 58 | typedef unsigned int * t_puint; |
| 59 | |
| 60 | typedef void t_void; |
| 61 | typedef void * t_pvoid; |
| 62 | |
| 63 | typedef float t_float; |
| 64 | typedef float * t_pfloat; |
| 65 | typedef double t_double; |
| 66 | typedef double * t_pdouble; |
| 67 | |
| 68 | #endif |
| 69 |