/[escript]/trunk/esysUtils/src/EsysTypes.h
ViewVC logotype

Contents of /trunk/esysUtils/src/EsysTypes.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 644 - (show annotations)
Fri Mar 24 01:05:42 2006 UTC (17 years ago) by elspeth
File MIME type: text/plain
File size: 1138 byte(s)
More copyright.

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
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

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26