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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 elspeth 644 /*
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 jgs 82 #ifndef ESYSTYPES_H
14     #define ESYSTYPES_H
15 jgs 468
16 jgs 82 /*
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 jgs 468 * A primitive test to ensure the array index type is at least as large
30 jgs 82 * 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