| Line | |
|---|
| 1 | // Copyright (C) 2009-2010 Ferdinand Majerech |
|---|
| 2 | // This file is part of MiniINI |
|---|
| 3 | // For conditions of distribution and use, see copyright notice in LICENSE.txt |
|---|
| 4 | |
|---|
| 5 | #ifndef TYPEDEFS_H_INCLUDED |
|---|
| 6 | #define TYPEDEFS_H_INCLUDED |
|---|
| 7 | |
|---|
| 8 | #include <stdint.h> |
|---|
| 9 | #if defined(WIN32) || defined(_WIN32_WCE) |
|---|
| 10 | #ifdef miniini_EXPORTS |
|---|
| 11 | #define MINIINI_EXPORT __declspec(dllexport) |
|---|
| 12 | #else |
|---|
| 13 | #define MINIINI_EXPORT __declspec(dllexport) |
|---|
| 14 | #endif |
|---|
| 15 | #else |
|---|
| 16 | #define MINIINI_EXPORT |
|---|
| 17 | #endif |
|---|
| 18 | |
|---|
| 19 | namespace miniini_private |
|---|
| 20 | { |
|---|
| 21 | |
|---|
| 22 | /// @cond PRIVATE |
|---|
| 23 | //int typedefs |
|---|
| 24 | //Typedefs for fastest ints |
|---|
| 25 | typedef uint_fast8_t ub; |
|---|
| 26 | typedef int_fast8_t b; |
|---|
| 27 | typedef uint_fast16_t us; |
|---|
| 28 | typedef int_fast16_t s; |
|---|
| 29 | typedef uint_fast32_t ui; |
|---|
| 30 | typedef int_fast32_t i; |
|---|
| 31 | typedef int_fast64_t ll; |
|---|
| 32 | typedef uint_fast32_t ull; |
|---|
| 33 | |
|---|
| 34 | //Typedefs for chars |
|---|
| 35 | typedef char c; |
|---|
| 36 | typedef wchar_t wc; |
|---|
| 37 | |
|---|
| 38 | //Typedefs for exact size ints |
|---|
| 39 | typedef int8_t s8; |
|---|
| 40 | typedef uint8_t u8; |
|---|
| 41 | typedef int16_t s16; |
|---|
| 42 | typedef uint16_t u16; |
|---|
| 43 | typedef int32_t s32; |
|---|
| 44 | typedef uint32_t u32; |
|---|
| 45 | typedef int64_t s64; |
|---|
| 46 | typedef uint64_t u64; |
|---|
| 47 | |
|---|
| 48 | //Typedefs for biggest ints |
|---|
| 49 | typedef intmax_t sbig; |
|---|
| 50 | typedef uintmax_t ubig; |
|---|
| 51 | |
|---|
| 52 | //Typedefs for floats |
|---|
| 53 | typedef float f; |
|---|
| 54 | typedef double d; |
|---|
| 55 | typedef long double ld; |
|---|
| 56 | /// @endcond |
|---|
| 57 | |
|---|
| 58 | } |
|---|
| 59 | #endif // TYPEDEFS_H_INCLUDED |
|---|
Note: See
TracBrowser
for help on using the repository browser.