File: types.h

package info (click to toggle)
grace 1%3A5.1.25-18
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 14,828 kB
  • sloc: ansic: 102,045; sh: 5,492; makefile: 572; fortran: 56; perl: 56
file content (32 lines) | stat: -rw-r--r-- 992 bytes parent folder | download | duplicates (39)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * File:    types.h
 * Purpose: define basic types so that program is portable to non 32 bits
 *          platforms
 * Version: 1.0 (Dec. 1993)
 * Author:  Piet Tutelaers
 */

#ifndef __TYPES__
#define __TYPES__

#if defined(WORD16)
typedef unsigned short USHORT; /* 16 bits */
typedef short SHORT;           /* 16 bits */
typedef long LONG;             /* 32 bits */
typedef unsigned long ULONG;   /* 32 bits */
typedef double DOUBLE;         /* 64 bits */
#elif defined(WORD64)
typedef unsigned short USHORT; /* 16 bits */
typedef short SHORT;           /* 16 bits */
typedef int LONG;              /* 32 bits */
typedef unsigned long ULONG;   /* 32 bits */
typedef double DOUBLE;         /* 64 bits */
#else /* default: WORD32 */
typedef unsigned short USHORT; /* 16 bits */
typedef short SHORT;           /* 16 bits */
typedef int LONG;              /* 32 bits */
typedef unsigned int ULONG;    /* 32 bits */
typedef double DOUBLE;         /* 64 bits */
#endif

#endif /* __TYPES__ */