File: datatypes.h

package info (click to toggle)
conquest 8.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,984 kB
  • ctags: 3,086
  • sloc: ansic: 39,393; sh: 8,540; yacc: 446; makefile: 296; lex: 146
file content (41 lines) | stat: -rw-r--r-- 762 bytes parent folder | download
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
33
34
35
36
37
38
39
40
41
/* 
 * some common data typedefs
 *
 * $Id: datatypes.h,v 1.5 2004/07/07 19:45:09 jon Exp $
 *
 * Copyright 2003 Jon Trulson under the ARTISTIC LICENSE. (See LICENSE).
 */

#ifndef DATA_H_INCLUDED
#define DATA_H_INCLUDED

/* these will need to be adjusted per arch of course... */

/* This stuff is partularly important for the protoco/packets and the
 *  code that deals with them 
 */


# if defined(HAVE_STDINT_H)
typedef int32_t Sgn32;
typedef uint32_t Unsgn32;

typedef int16_t Sgn16;
typedef uint16_t Unsgn16;

typedef int8_t Sgn8;
typedef uint8_t Unsgn8;

# else
typedef int Sgn32;
typedef unsigned int Unsgn32;

typedef short Sgn16;
typedef unsigned short Unsgn16;

typedef char Sgn8;
typedef unsigned char Unsgn8;

# endif

#endif /* DATA_H_INCLUDED */