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 cf9629b9 2002-06-26 alex * $Id: portab.h,v 1.7 2002/06/26 15:43:38 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 ba258e65 2002-05-27 alex
28 ba258e65 2002-05-27 alex #ifndef PARAMS
29 ba258e65 2002-05-27 alex # if PROTOTYPES
30 ba258e65 2002-05-27 alex # define PARAMS(args) args
31 ba258e65 2002-05-27 alex # else
32 ba258e65 2002-05-27 alex # define PARAMS(args) ()
33 ba258e65 2002-05-27 alex # endif
34 ba258e65 2002-05-27 alex #endif
35 ba258e65 2002-05-27 alex
36 ba258e65 2002-05-27 alex
37 d18ca0b8 2002-03-12 alex /* Keywords */
38 d18ca0b8 2002-03-12 alex
39 d18ca0b8 2002-03-12 alex #define EXTERN extern
40 d18ca0b8 2002-03-12 alex #define STATIC static
41 d18ca0b8 2002-03-12 alex #define LOCAL static
42 d18ca0b8 2002-03-12 alex #define CONST const
43 cf9629b9 2002-06-26 alex #define REGISTER register
44 d18ca0b8 2002-03-12 alex
45 d18ca0b8 2002-03-12 alex
46 d18ca0b8 2002-03-12 alex /* Datatentypen */
47 d18ca0b8 2002-03-12 alex
48 ba258e65 2002-05-27 alex #ifndef PROTOTYPES
49 ba258e65 2002-05-27 alex # ifndef signed
50 ba258e65 2002-05-27 alex # define signed
51 ba258e65 2002-05-27 alex # endif
52 ba258e65 2002-05-27 alex #endif
53 ba258e65 2002-05-27 alex
54 d18ca0b8 2002-03-12 alex typedef void VOID;
55 d18ca0b8 2002-03-12 alex typedef void POINTER;
56 d18ca0b8 2002-03-12 alex
57 d18ca0b8 2002-03-12 alex typedef signed int INT;
58 d18ca0b8 2002-03-12 alex typedef unsigned int UINT;
59 d18ca0b8 2002-03-12 alex typedef signed char INT8;
60 d18ca0b8 2002-03-12 alex typedef unsigned char UINT8;
61 d18ca0b8 2002-03-12 alex typedef signed short INT16;
62 d18ca0b8 2002-03-12 alex typedef unsigned short UINT16;
63 d18ca0b8 2002-03-12 alex typedef signed long INT32;
64 d18ca0b8 2002-03-12 alex typedef unsigned long UINT32;
65 d18ca0b8 2002-03-12 alex
66 d18ca0b8 2002-03-12 alex typedef float FLOAT;
67 d18ca0b8 2002-03-12 alex
68 d18ca0b8 2002-03-12 alex typedef char CHAR;
69 d18ca0b8 2002-03-12 alex
70 d18ca0b8 2002-03-12 alex typedef UINT8 BOOLEAN;
71 d18ca0b8 2002-03-12 alex
72 d18ca0b8 2002-03-12 alex #undef TRUE
73 d18ca0b8 2002-03-12 alex #define TRUE (BOOLEAN)1
74 d18ca0b8 2002-03-12 alex
75 d18ca0b8 2002-03-12 alex #undef FALSE
76 d18ca0b8 2002-03-12 alex #define FALSE (BOOLEAN)0
77 d18ca0b8 2002-03-12 alex
78 d18ca0b8 2002-03-12 alex #undef NULL
79 ba258e65 2002-05-27 alex #ifdef PROTOTYPES
80 ba258e65 2002-05-27 alex # define NULL (VOID *)0
81 ba258e65 2002-05-27 alex #else
82 ba258e65 2002-05-27 alex # define NULL 0L
83 ba258e65 2002-05-27 alex #endif
84 d18ca0b8 2002-03-12 alex
85 d18ca0b8 2002-03-12 alex #undef GLOBAL
86 d18ca0b8 2002-03-12 alex #define GLOBAL
87 d18ca0b8 2002-03-12 alex
88 d18ca0b8 2002-03-12 alex
89 8d79f267 2002-03-25 alex /* SPLint */
90 8d79f267 2002-03-25 alex
91 8d79f267 2002-03-25 alex
92 8d79f267 2002-03-25 alex #ifdef S_SPLINT_S
93 8d79f267 2002-03-25 alex #include "splint.h"
94 8d79f267 2002-03-25 alex #endif
95 8d79f267 2002-03-25 alex
96 8d79f267 2002-03-25 alex
97 d18ca0b8 2002-03-12 alex /* configure-Optionen */
98 d18ca0b8 2002-03-12 alex
99 d18ca0b8 2002-03-12 alex #ifndef HAVE_socklen_t
100 d18ca0b8 2002-03-12 alex #define socklen_t int /* u.a. fuer Mac OS X */
101 d18ca0b8 2002-03-12 alex #endif
102 d18ca0b8 2002-03-12 alex
103 d18ca0b8 2002-03-12 alex #if OS_UNIX_AUX
104 d18ca0b8 2002-03-12 alex #define _POSIX_SOURCE /* muss unter A/UX definiert sein */
105 d18ca0b8 2002-03-12 alex #endif
106 d18ca0b8 2002-03-12 alex
107 d18ca0b8 2002-03-12 alex
108 d18ca0b8 2002-03-12 alex /* Konstanten */
109 d18ca0b8 2002-03-12 alex
110 7049b60a 2002-03-12 alex #ifndef TARGET_OS
111 7049b60a 2002-03-12 alex #define TARGET_OS "unknown"
112 7049b60a 2002-03-12 alex #endif
113 d18ca0b8 2002-03-12 alex
114 7049b60a 2002-03-12 alex #ifndef TARGET_CPU
115 7049b60a 2002-03-12 alex #define TARGET_CPU "unknown"
116 7049b60a 2002-03-12 alex #endif
117 d18ca0b8 2002-03-12 alex
118 7049b60a 2002-03-12 alex #ifndef TARGET_VENDOR
119 7049b60a 2002-03-12 alex #define TARGET_VENDOR "unknown"
120 d18ca0b8 2002-03-12 alex #endif
121 d18ca0b8 2002-03-12 alex
122 d18ca0b8 2002-03-12 alex
123 7049b60a 2002-03-12 alex #endif
124 7049b60a 2002-03-12 alex
125 7049b60a 2002-03-12 alex
126 d18ca0b8 2002-03-12 alex /* -eof- */