1 |
/* |
2 |
************************************************************ |
3 |
* Copyright 2006 by ACcESS MNRF * |
4 |
* * |
5 |
* http://www.access.edu.au * |
6 |
* Primary Business: Queensland, Australia * |
7 |
* Licensed under the Open Software License version 3.0 * |
8 |
* http://www.opensource.org/licenses/osl-3.0.php * |
9 |
* * |
10 |
************************************************************ |
11 |
*/ |
12 |
|
13 |
#ifndef ESYSTYPES_H |
14 |
#define ESYSTYPES_H |
15 |
#include "system_dep.h" |
16 |
/* |
17 |
* Use the integer types defined in the 1999 ISO C Standard |
18 |
* To specify a suitable Esys integer type |
19 |
*/ |
20 |
#include <stdint.h> |
21 |
|
22 |
#if ESYS_INT_BITS==64 |
23 |
typedef int64_t EsysIntType; |
24 |
#else |
25 |
typedef int32_t EsysIntType; |
26 |
#endif |
27 |
|
28 |
/* |
29 |
* A primitive test to ensure the array index type is at least as large |
30 |
* as requested. Could put in another test if it is larger. |
31 |
* An obscure compile error will result if the array index type isn't large |
32 |
* enough |
33 |
*/ |
34 |
static char EsysIntType_Too_Small[sizeof(EsysIntType)*8-ESYS_INT_BITS]; |
35 |
|
36 |
#endif |