]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ntp/include/global.h
This commit was generated by cvs2svn to compensate for changes in r56067,
[FreeBSD/FreeBSD.git] / contrib / ntp / include / global.h
1 /* GLOBAL.H - RSAREF types and constants */
2
3 /* Copyright (C) RSA Laboratories, a division of RSA Data Security,
4      Inc., created 1991. All rights reserved.
5  */
6
7 /*
8  * Note: the modifications are necessary for little-endian machines
9  */
10 #include "ntp_types.h"                  /* local modification */
11
12 #ifndef _GLOBAL_H_
13 #define _GLOBAL_H_ 1
14
15 /* PROTOTYPES should be set to one if and only if the compiler supports
16      function argument prototyping.
17    The following makes PROTOTYPES default to 1 if it has not already been
18      defined as 0 with C compiler flags.
19  */
20 #ifdef HAVE_PROTOTYPES
21 #define PROTOTYPES 1
22 #endif
23
24 /* POINTER defines a generic pointer type */
25 typedef unsigned char *POINTER;
26
27 /* UINT2 defines a two byte word */
28 typedef unsigned short int UINT2;
29
30 /* UINT4 defines a four byte word */
31 typedef u_int32 UINT4;                  /* local modification */
32
33 #ifndef NULL_PTR
34 #define NULL_PTR ((POINTER)0)
35 #endif
36
37 #ifndef UNUSED_ARG
38 #define UNUSED_ARG(x) x = *(&x);
39 #endif
40
41 /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
42    If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
43      returns an empty list.  
44  */
45 #if PROTOTYPES
46 #define PROTO_LIST(list) list
47 #else
48 #define PROTO_LIST(list) ()
49 #endif
50
51 #endif /* end _GLOBAL_H_ */