Blame


1 d18ca0b8 2002-03-12 alex /*
2 d18ca0b8 2002-03-12 alex * ngIRCd -- The Next Generation IRC Daemon
3 d18ca0b8 2002-03-12 alex * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4 d18ca0b8 2002-03-12 alex *
5 d18ca0b8 2002-03-12 alex * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 d18ca0b8 2002-03-12 alex * der GNU General Public License (GPL), wie von der Free Software Foundation
7 d18ca0b8 2002-03-12 alex * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 d18ca0b8 2002-03-12 alex * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 d18ca0b8 2002-03-12 alex * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 d18ca0b8 2002-03-12 alex * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
11 d18ca0b8 2002-03-12 alex *
12 6725d789 2002-12-12 alex * $Id: portab.h,v 1.9 2002/12/12 11:26:08 alex Exp $
13 d18ca0b8 2002-03-12 alex *
14 d18ca0b8 2002-03-12 alex * portab.h: "Portabilitaets-Definitionen"
15 d18ca0b8 2002-03-12 alex */
16 d18ca0b8 2002-03-12 alex
17 d18ca0b8 2002-03-12 alex
18 d18ca0b8 2002-03-12 alex #ifndef __PORTAB__
19 d18ca0b8 2002-03-12 alex #define __PORTAB__
20 d18ca0b8 2002-03-12 alex
21 d18ca0b8 2002-03-12 alex
22 d18ca0b8 2002-03-12 alex #include "config.h"
23 d18ca0b8 2002-03-12 alex
24 d18ca0b8 2002-03-12 alex
25 ba258e65 2002-05-27 alex /* Compiler Features */
26 ba258e65 2002-05-27 alex
27 6725d789 2002-12-12 alex #ifdef __GNUC__
28 6725d789 2002-12-12 alex # define PUNUSED(x) __attribute__ ((unused)) x
29 6725d789 2002-12-12 alex # define UNUSED __attribute__ ((unused))
30 6725d789 2002-12-12 alex #else
31 6725d789 2002-12-12 alex # define PUNUSED(x) x
32 6725d789 2002-12-12 alex # define UNUSED
33 6725d789 2002-12-12 alex #endif
34 ba258e65 2002-05-27 alex
35 ba258e65 2002-05-27 alex #ifndef PARAMS
36 ba258e65 2002-05-27 alex # if PROTOTYPES
37 ba258e65 2002-05-27 alex # define PARAMS(args) args
38 ba258e65 2002-05-27 alex # else
39 ba258e65 2002-05-27 alex # define PARAMS(args) ()
40 ba258e65 2002-05-27 alex # endif
41 ba258e65 2002-05-27 alex #endif
42 ba258e65 2002-05-27 alex
43 ba258e65 2002-05-27 alex
44 d18ca0b8 2002-03-12 alex /* Keywords */
45 d18ca0b8 2002-03-12 alex
46 d18ca0b8 2002-03-12 alex #define EXTERN extern
47 d18ca0b8 2002-03-12 alex #define STATIC static
48 d18ca0b8 2002-03-12 alex #define LOCAL static
49 d18ca0b8 2002-03-12 alex #define CONST const
50 cf9629b9 2002-06-26 alex #define REGISTER register
51 d18ca0b8 2002-03-12 alex
52 d18ca0b8 2002-03-12 alex
53 d18ca0b8 2002-03-12 alex /* Datatentypen */
54 d18ca0b8 2002-03-12 alex
55 ba258e65 2002-05-27 alex #ifndef PROTOTYPES
56 ba258e65 2002-05-27 alex # ifndef signed
57 ba258e65 2002-05-27 alex # define signed
58 ba258e65 2002-05-27 alex # endif
59 ba258e65 2002-05-27 alex #endif
60 ba258e65 2002-05-27 alex
61 d18ca0b8 2002-03-12 alex typedef void VOID;
62 d18ca0b8 2002-03-12 alex typedef void POINTER;
63 d18ca0b8 2002-03-12 alex
64 d18ca0b8 2002-03-12 alex typedef signed int INT;
65 d18ca0b8 2002-03-12 alex typedef unsigned int UINT;
66 84022a12 2002-10-09 alex typedef signed long LONG;
67 84022a12 2002-10-09 alex typedef unsigned long ULONG;
68 84022a12 2002-10-09 alex
69 d18ca0b8 2002-03-12 alex typedef signed char INT8;
70 d18ca0b8 2002-03-12 alex typedef unsigned char UINT8;
71 d18ca0b8 2002-03-12 alex typedef signed short INT16;
72 d18ca0b8 2002-03-12 alex typedef unsigned short UINT16;
73 d18ca0b8 2002-03-12 alex typedef signed long INT32;
74 d18ca0b8 2002-03-12 alex typedef unsigned long UINT32;
75 d18ca0b8 2002-03-12 alex
76 84022a12 2002-10-09 alex typedef double DOUBLE;
77 d18ca0b8 2002-03-12 alex typedef float FLOAT;
78 d18ca0b8 2002-03-12 alex
79 d18ca0b8 2002-03-12 alex typedef char CHAR;
80 d18ca0b8 2002-03-12 alex
81 d18ca0b8 2002-03-12 alex typedef UINT8 BOOLEAN;
82 d18ca0b8 2002-03-12 alex
83 d18ca0b8 2002-03-12 alex #undef TRUE
84 d18ca0b8 2002-03-12 alex #define TRUE (BOOLEAN)1
85 d18ca0b8 2002-03-12 alex
86 d18ca0b8 2002-03-12 alex #undef FALSE
87 d18ca0b8 2002-03-12 alex #define FALSE (BOOLEAN)0
88 d18ca0b8 2002-03-12 alex
89 d18ca0b8 2002-03-12 alex #undef NULL
90 ba258e65 2002-05-27 alex #ifdef PROTOTYPES
91 ba258e65 2002-05-27 alex # define NULL (VOID *)0
92 ba258e65 2002-05-27 alex #else
93 ba258e65 2002-05-27 alex # define NULL 0L
94 ba258e65 2002-05-27 alex #endif
95 d18ca0b8 2002-03-12 alex
96 d18ca0b8 2002-03-12 alex #undef GLOBAL
97 d18ca0b8 2002-03-12 alex #define GLOBAL
98 d18ca0b8 2002-03-12 alex
99 d18ca0b8 2002-03-12 alex
100 8d79f267 2002-03-25 alex /* SPLint */
101 8d79f267 2002-03-25 alex
102 8d79f267 2002-03-25 alex
103 8d79f267 2002-03-25 alex #ifdef S_SPLINT_S
104 8d79f267 2002-03-25 alex #include "splint.h"
105 8d79f267 2002-03-25 alex #endif
106 8d79f267 2002-03-25 alex
107 8d79f267 2002-03-25 alex
108 d18ca0b8 2002-03-12 alex /* configure-Optionen */
109 d18ca0b8 2002-03-12 alex
110 d18ca0b8 2002-03-12 alex #ifndef HAVE_socklen_t
111 d18ca0b8 2002-03-12 alex #define socklen_t int /* u.a. fuer Mac OS X */
112 d18ca0b8 2002-03-12 alex #endif
113 d18ca0b8 2002-03-12 alex
114 d18ca0b8 2002-03-12 alex #if OS_UNIX_AUX
115 d18ca0b8 2002-03-12 alex #define _POSIX_SOURCE /* muss unter A/UX definiert sein */
116 d18ca0b8 2002-03-12 alex #endif
117 d18ca0b8 2002-03-12 alex
118 d18ca0b8 2002-03-12 alex
119 d18ca0b8 2002-03-12 alex /* Konstanten */
120 d18ca0b8 2002-03-12 alex
121 7049b60a 2002-03-12 alex #ifndef TARGET_OS
122 7049b60a 2002-03-12 alex #define TARGET_OS "unknown"
123 7049b60a 2002-03-12 alex #endif
124 d18ca0b8 2002-03-12 alex
125 7049b60a 2002-03-12 alex #ifndef TARGET_CPU
126 7049b60a 2002-03-12 alex #define TARGET_CPU "unknown"
127 7049b60a 2002-03-12 alex #endif
128 d18ca0b8 2002-03-12 alex
129 7049b60a 2002-03-12 alex #ifndef TARGET_VENDOR
130 7049b60a 2002-03-12 alex #define TARGET_VENDOR "unknown"
131 d18ca0b8 2002-03-12 alex #endif
132 d18ca0b8 2002-03-12 alex
133 d18ca0b8 2002-03-12 alex
134 7049b60a 2002-03-12 alex #endif
135 7049b60a 2002-03-12 alex
136 7049b60a 2002-03-12 alex
137 d18ca0b8 2002-03-12 alex /* -eof- */