s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
global.h
Go to the documentation of this file.
1/* GLOBAL.H - RSAREF types and constants */
2
3#include <string.h>
4#include "uint_t.h"
5
6/* Copyright (C) RSA Laboratories, a division of RSA Data Security,
7 Inc., created 1991. All rights reserved.
8 */
9
10#ifndef _GLOBAL_H_
11#define _GLOBAL_H_ 1
12
13/* PROTOTYPES should be set to one if and only if the compiler supports
14 function argument prototyping.
15 The following makes PROTOTYPES default to 1 if it has not already been
16 defined as 0 with C compiler flags.
17 */
18#ifndef PROTOTYPES
19#define PROTOTYPES 1
20#endif
21
22/* POINTER defines a generic pointer type */
23typedef unsigned char *POINTER;
24
25/* UINT2 defines a two byte word */
26typedef unsigned short int UINT2;
27
28/* UINT4 defines a four byte word */
29#ifdef UINT32_H
30#define UINT4 uint32
31#else
32typedef unsigned long int UINT4;
33#endif
34
35#ifndef NULL_PTR
36#define NULL_PTR ((POINTER)0)
37#endif
38
39#ifndef UNUSED_ARG
40#define UNUSED_ARG(x) x = *(&x);
41#endif
42
43/* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
44 If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
45 returns an empty list.
46 */
47#if PROTOTYPES
48#define PROTO_LIST(list) list
49#else
50#define PROTO_LIST(list) ()
51#endif
52
53#endif /* end _GLOBAL_H_ */
unsigned char * POINTER
Definition: global.h:23
unsigned long int UINT4
Definition: global.h:32
unsigned short int UINT2
Definition: global.h:26