ReactOS 0.4.15-dev-7961-gdcf9eb0
ff_types.h
Go to the documentation of this file.
1/*****************************************************************************
2 * FullFAT - High Performance, Thread-Safe Embedded FAT File-System *
3 * Copyright (C) 2009 James Walmsley (james@worm.me.uk) *
4 * *
5 * This program is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 3 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17 * *
18 * IMPORTANT NOTICE: *
19 * ================= *
20 * Alternative Licensing is available directly from the Copyright holder, *
21 * (James Walmsley). For more information consult LICENSING.TXT to obtain *
22 * a Commercial license. *
23 * *
24 * See RESTRICTIONS.TXT for extra restrictions on the use of FullFAT. *
25 * *
26 * Removing the above notice is illegal and will invalidate this license. *
27 *****************************************************************************
28 * See http://worm.me.uk/fullfat for more information. *
29 * Or http://fullfat.googlecode.com/ for latest releases and the wiki. *
30 *****************************************************************************/
31
38#ifndef _FF_TYPES_H_
39#define _FF_TYPES_H_
40
41#include "ff_config.h"
42
43//---------------- BOOLEAN TYPES
44typedef char FF_T_BOOL;
45
46#define FF_TRUE 1
47#define FF_FALSE 0
48
49//---------------- 8 BIT INTEGERS
50typedef char FF_T_INT8;
51typedef unsigned char FF_T_UINT8;
52typedef signed char FF_T_SINT8;
53
54//---------------- 16 BIT INTEGERS
55typedef short FF_T_INT16;
56typedef unsigned short FF_T_UINT16;
57typedef signed short FF_T_SINT16;
58
59//---------------- 32 BIT INTEGERS
60typedef long FF_T_INT32;
61typedef unsigned long FF_T_UINT32;
62typedef signed long FF_T_SINT32;
63
64//---------------- Platform Integer Sizes
65typedef int FF_T_INT;
66typedef unsigned int FF_T_UINT;
67typedef signed int FF_T_SINT;
68
69#ifdef FF_64_NUM_SUPPORT
70//---------------- 64 BIT INTEGERS // If you cannot define these, then make sure you see ff_config.h
71typedef long long FF_T_INT64; // about 64-bit number support.
72typedef unsigned long long FF_T_UINT64; // It means that FF_GetVolumeSize() cannot return a size
73typedef signed long long FF_T_SINT64; // > 4GB in bytes if you cannot support 64-bits integers.
74 // No other function makes use of 64-bit numbers.
75#endif
76
78#ifdef FF_UNICODE_SUPPORT
79#include <wchar.h>
80typedef wchar_t FF_T_WCHAR;
81#endif
82
83#endif // end of include guard
signed char FF_T_SINT8
8 bit signed integer.
Definition: ff_types.h:52
unsigned char FF_T_UINT8
8 bit unsigned integer.
Definition: ff_types.h:51
int FF_T_INT
Definition: ff_types.h:65
long FF_T_INT32
32 bit default integer.
Definition: ff_types.h:60
signed long FF_T_SINT32
32 bit signed integer.
Definition: ff_types.h:62
unsigned long long FF_T_UINT64
Definition: ff_types.h:72
signed long long FF_T_SINT64
Definition: ff_types.h:73
wchar_t FF_T_WCHAR
Unicode UTF-16 Charachter type, for FullFAT when UNICODE is enabled.
Definition: ff_types.h:80
signed short FF_T_SINT16
16 bit signed integer.
Definition: ff_types.h:57
unsigned short FF_T_UINT16
16 bit unsigned integer.
Definition: ff_types.h:56
unsigned int FF_T_UINT
Definition: ff_types.h:66
long long FF_T_INT64
Definition: ff_types.h:71
char FF_T_BOOL
This can be a char if your compiler isn't C99.
Definition: ff_types.h:44
unsigned long FF_T_UINT32
32 bit unsigned integer.
Definition: ff_types.h:61
short FF_T_INT16
16 bit default integer.
Definition: ff_types.h:55
signed int FF_T_SINT
Definition: ff_types.h:67
FF_T_SINT32 FF_ERROR
A special error code type to ease some inconsistencies in Error reporting.
Definition: ff_types.h:77
char FF_T_INT8
8 bit default integer.
Definition: ff_types.h:50