File: defines.h

package info (click to toggle)
slbreflex 2.2.0-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 200 kB
  • ctags: 200
  • sloc: ansic: 1,523; makefile: 79; sh: 73
file content (74 lines) | stat: -rw-r--r-- 972 bytes parent folder | download | duplicates (3)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef _defines_h_
#define _defines_h_

/*
 * $Id: defines.h,v 1.2 1999/06/07 22:37:30 corcoran Exp $
 *
 * NAME:
 *	defines.h -- Copyright (C) 1998 David Corcoran
 *                corcordt@cs.purdue.edu
 *
 * DESCRIPTION:
 *       Some global definitions and typedefs
 *
 * AUTHOR:
 *	David Corcoran, 3/17/98
 *
 *	Modified for Macintosh by Mark Hartman
 */

/*
 * Boolean constants
 */

#ifndef TRUE
  #define TRUE	1
  #define FALSE	0
#endif

/*
 * Type definitions
 */

#ifndef BYTE
  typedef unsigned char BYTE;
#endif

#ifndef HANDLE

 #ifdef CPU_MAC_PPC
   typedef Handle HANDLE;
 #endif

 #ifdef CPU_ICAP_PC
   typedef int HANDLE;
 #endif

 #ifdef CPU_SUN_SPARC
   typedef int HANDLE;
 #endif

#endif

#ifndef bool
 typedef short bool;
#endif

/*
 * Simple Max Defines
 */

  #define MAX_BUFFER_SIZE    264
  #define STATUS_SIZE        2

/*
 * Compiler dependencies
 */

#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif

#endif