annotate defs.h @ 3:5a977ccbc7a9 default tip

Empty changelog
author darius
date Sat, 06 Dec 1997 05:41:29 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
1 /* $Id: defs.h,v 1.1.1.1 1997/12/06 05:41:29 darius Exp $ */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
3 /*
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
4 * defs.h
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
5 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
6
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
7 #ifndef defs_h_
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
8 #define defs_h_
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
9
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
10 #include "copyright.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
11
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
12 #define MAX_PLAYER 257 /* Maximum number of players we can configure
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
13 the game for, not the server's max
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
14 players. */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
15
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
16 #ifdef HOCKEY
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
17 /* defs for hockey [BDyess] */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
18 #define NUM_HOCKEY_LINES 13
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
19 #endif /*HOCKEY*/
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
20
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
21 #ifdef SIZE_LOGGING
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
22 /* redefine EXIT as print totals followed by a normal exit [BDyess] */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
23 #define EXIT(x) {print_totals();exit(x);}
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
24 #else
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
25 #define EXIT exit
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
26 #endif /* SIZE_LOGGING */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
27
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
28 /* defs for new message window data structure [BDyess] */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
29 #define WREVIEW 0
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
30 #define WTEAM 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
31 #define WINDIV 2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
32 #define WKILL 3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
33 #define WPHASER 4
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
34 #define WALL 5
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
35 #define WNUM 6
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
36 /* message window allow mask */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
37 #define WA_TEAM 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
38 #define WA_INDIV 2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
39 #define WA_KILL 4
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
40 #define WA_PHASER 8
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
41 #define WA_ALL 16
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
42 #define WA_REVIEW 32
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
43 #define WA_MACRO 64
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
44
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
45 /* defs for updatePlayer [BDyess] */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
46 #define NO_UPDATE 0
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
47 #define SMALL_UPDATE 1 /* update non-blk_bozo players */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
48 #define LARGE_UPDATE 2 /* update blk_bozo players */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
49 #define ALL_UPDATE (SMALL_UPDATE|LARGE_UPDATE) /* update both */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
50
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
51 /* defs for terrain */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
52 #define TERRAIN_STARTED 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
53 #define TERRAIN_DONE 2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
54
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
55 /* defs for timer [BDyess] */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
56 #define T_NONE 0 /* no timer */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
57 #define T_DAY 1 /* time of day */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
58 #define T_SERVER 2 /* time on server */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
59 #define T_SHIP 3 /* time in ship */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
60 #define T_USR 4 /* user reset timer */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
61 #define T_TOTAL 5 /* number of T_ defs */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
62 #define TIMESTRLEN 10 /* used in db_timer(), timeString() */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
63 /* */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
64
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
65 /* defs for mapmode */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
66 #define GMAP_NEVER 0
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
67 #define GMAP_FREQUENT 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
68 #define GMAP_INFREQUENT 2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
69
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
70 #ifdef METASERVER
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
71 /* metaserver window defs */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
72 #define LINE 80
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
73 #define METASERVERADDRESS "metaserver.ecst.csuchico.edu" /* new metaserver */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
74 #define METAPORT 3521 /* HAVE to use nicely formated version */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
75 #define KEY 3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
76 #endif /* METASERVER */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
77
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
78 #define MAX_PLANETS 257
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
79
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
80 #define WINSIDE 500 /* Size of strategic and tactical windows */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
81 #define BORDER 4 /* border width for option windows */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
82 #define PSEUDOSIZE 16
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
83 #define CLOAK_PHASES 7 /* number of drawing phases in a cloak
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
84 engage/disengage */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
85 #define NUMRANKS 9 /* old netrek ranks */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
86 /*#define NUMRANKS2 18*/
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
87
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
88 /* These are configuration definitions */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
89
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
90 #define GWIDTH 200000 /* galaxy is 200000 spaces on a side */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
91 #define WARP1 20 /* warp one will move 20 spaces per update */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
92 #define SCALE 40 /* Window will be one pixel for 20 spaces */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
93 #define EXPDIST 350 /* At this range a torp will explode */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
94 #define GRIDSIZE 33333
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
95
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
96 #define DETDIST 1600 /* At this range a player can detonate a torp */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
97
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
98 #define PHASEDIST 6000 /* At this range a player can do damage with
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
99 phasers */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
100 #define ENTORBDIST 900 /* At this range a player can orbit a planet */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
101 #define ORBDIST 800 /* A player will orbit at this radius */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
102 #define ORBSPEED 2 /* This is the fastest a person can go into
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
103 orbit */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
104 #define PFIREDIST 1500 /* At this range a planet will shoot at a
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
105 player */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
106 #define UPDATE 100000 /* Update time is 100000 micro-seconds */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
107
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
108 #define AUTOQUIT 60 /* auto logout in 60 secs */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
109
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
110 #define VACANT -1 /* indicates vacant port on a starbase */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
111 #define DOCKDIST 600
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
112 #define DOCKSPEED 2 /* If base is moving, there will be some
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
113 finesse involved to dock */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
114 #define NUMPORTS 4
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
115 #define SBFUELMIN 10000 /* If starbase's fuel is less than this, it
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
116 will not refuel docked vessels */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
117 #define TRACTDIST 6000 /* maximum effective tractor beam range */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
118 #define TRACTEHEAT 5 /* ammount tractor beams heat engines */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
119 #define TRACTCOST 20 /* fuel cost of activated tractor beam */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
120
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
121 /* These are memory sections */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
122 #define PLAYER 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
123 #define MAXMESSAGE 50
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
124 #define MAXREVIEWMESSAGE 20
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
125
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
126 #ifdef SVR4
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
127 #define MCOPY(b1,b2,l) memcpy(b2,b1,l)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
128 #else
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
129 #define MCOPY(b1,b2,l) bcopy(b1,b2,l)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
130 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
131 #define rosette(x, ndiv) (( (((x)&0xff) + 0x100/(2*(ndiv))) * (ndiv)/0x100 ) % ndiv)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
132
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
133 /* These are the teams */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
134 /* Note that I used bit types for these mostly for messages and
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
135 war status. This was probably a mistake. It meant that Ed
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
136 had to add the 'remap' area to map these (which are used throughout
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
137 the code as the proper team variable) into a nice four team deep
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
138 array for his color stuff. Oh well.
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
139 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
140 #define NOBODY 0x0
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
141 #define FEDi 0
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
142 #define ROMi 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
143 #define KLIi 2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
144 #define ORIi 3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
145 /* #define ALLTEAMi 4 *//* replaced by number_of_teams */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
146 #define FEDm 0x1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
147 #define ROMm 0x2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
148 #define KLIm 0x4
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
149 #define ORIm 0x8
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
150 #define ALLTEAM ( (1<<number_of_teams) - 1)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
151 /*#define MAXTEAM 3 *//* number_of_teams -1 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
152 /*#define NUMTEAM 4 *//* number_of_teams */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
153 /*
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
154 ** These are random configuration variables
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
155 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
156 #define VICTORY 3 /* Number of systems needed to conquer the
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
157 galaxy */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
158 #define WARNTIME 30 /* Number of updates to have a warning on the
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
159 screen */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
160 #define MESSTIME 30 /* Number of updates to have a message on the
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
161 screen */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
162
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
163 /* Flags for gettarget */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
164 #define TARG_SHIP (1<<0)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
165 #define TARG_BASE (1<<1)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
166 #define TARG_PLANET (1<<2)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
167 #define TARG_CLOAK (1<<3) /* Include cloaked ships in search */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
168 #define TARG_SELF (1<<4)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
169 #define TARG_ENEMY (1<<5) /* enemy ships/planets only */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
170 #define TARG_FRIENDLY (1<<6) /* friendly ships/planets only */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
171 #define TARG_TEAM (1<<7) /* same team */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
172 #define TARG_STAR (1<<8)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
173 #define TARG_NEBULA (1<<9)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
174 #define TARG_BLACKHOLE (1<<10)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
175
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
176 #define TARG_PLAYER (TARG_SHIP|TARG_BASE)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
177 #define TARG_ASTRAL (TARG_PLANET|TARG_STAR|TARG_NEBULA|TARG_BLACKHOLE)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
178
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
179 #define DEFAULT_SERVER "cassius.cs.uiuc.edu"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
180 #define DEFAULT_PORT 2592
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
181
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
182 #define hypot(x,y) sqrt((x)*(x)+(y)*(y))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
183
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
184 #define ABS(a) /* abs(a) */ (((a) < 0) ? -(a) : (a))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
185 #ifndef MAX
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
186 #define MAX(a,b) ((a) > (b) ? (a) : (b))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
187 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
188
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
189 #define myPlasmaTorp(t) (me->p_no == (t)->pt_owner)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
190 #define myTorp(t) (me->p_no == (t)->t_owner)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
191 #define friendlyPlasmaTorp(t) ((!(idx_to_mask(me->p_teami) & (t)->pt_war)) || (myPlasmaTorp(t)))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
192 #define friendlyTorp(t) ((!(idx_to_mask(me->p_teami) & (t)->t_war)) || (myTorp(t)))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
193 #define myPhaser(p) (&phasers[me->p_no] == (p))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
194 #define friendlyPhaser(p) (me->p_teami == players[(p) - phasers].p_teami)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
195 #define myPlayer(p) (me == (p))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
196 #define myPlanet(p) (me->p_teami == mask_to_idx((p)->pl_owner))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
197 #define friendlyPlayer(p) ((!(idx_to_mask(me->p_teami) & \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
198 ((p)->p_swar | (p)->p_hostile))) && \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
199 (!(idx_to_mask((p)->p_teami) & \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
200 (me->p_swar | me->p_hostile))))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
201 #define isAlive(p) ((p)->p_status == PALIVE)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
202 #define isPlaying(p) ((p)->p_status != PFREE)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
203 #define isBase(num) ((num)==STARBASE || (num)==WARBASE || \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
204 (num)==JUMPSHIP)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
205 #define friendlyPlanet(p) ((p)->pl_info & idx_to_mask(me->p_teami) && \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
206 !((p)->pl_owner & (me->p_swar | me->p_hostile)))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
207
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
208 #define isLockPlanet(p) ((me->p_flags & PFPLLOCK) && (me->p_planet == p->pl_no))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
209 #define isLockPlayer(p) ((me->p_flags & PFPLOCK) && (me->p_playerl == p->p_no))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
210 #define PtOutsideWin(x, y) (x < 0 || x > WINSIDE || y < 0 || y > WINSIDE) /* TSH */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
211
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
212 #define torpColor(t) \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
213 (myTorp(t) ? myColor : shipCol[1+players[(t)->t_owner].p_teami])
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
214 #define droneColor(t) \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
215 (myTorp(t) ? myColor : shipCol[1+players[(t)->t_owner].p_teami])
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
216 #define plasmatorpColor(t) \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
217 (myPlasmaTorp(t) ? myColor : shipCol[1+players[(t)->pt_owner].p_teami])
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
218 #define phaserColor(p) \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
219 (myPhaser(p) ? myColor : shipCol[1+players[(p) - phasers].p_teami])
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
220 /*
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
221 * Cloaking phase (and not the cloaking flag) is the factor in determining
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
222 * the color of the ship. Color 0 is white (same as 'myColor' used to be).
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
223 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
224 #define playerColor(p) \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
225 (myPlayer(p) ? myColor : shipCol[1+(p)->p_teami])
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
226 #define planetColor(p) \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
227 (((p)->pl_info & idx_to_mask(me->p_teami)) ? shipCol[1+mask_to_idx((p)->pl_owner)] : unColor)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
228
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
229 #define planetFont(p) \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
230 (myPlanet(p) ? W_BoldFont : friendlyPlanet(p) ? W_UnderlineFont \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
231 : W_RegularFont)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
232 #define shipFont(p) \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
233 (myPlayer(p) ? W_BoldFont : friendlyPlayer(p) ? W_UnderlineFont \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
234 : W_RegularFont)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
235 #define bombingRating(p) \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
236 ((float) (p)->p_stats.st_tarmsbomb * status->timeprod / \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
237 ((float) (p)->p_stats.st_tticks * status->armsbomb))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
238 #define planetRating(p) \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
239 ((float) (p)->p_stats.st_tplanets * status->timeprod / \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
240 ((float) (p)->p_stats.st_tticks * status->planets))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
241 #define offenseRating(p) \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
242 ((float) (p)->p_stats.st_tkills * status->timeprod / \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
243 ((float) (p)->p_stats.st_tticks * status->kills))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
244 #define defenseRating(p) \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
245 ((float) (p)->p_stats.st_tticks * status->losses / \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
246 ((p)->p_stats.st_tlosses!=0 ? \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
247 ((float) (p)->p_stats.st_tlosses * status->timeprod) : \
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
248 (status->timeprod)))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
249
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
250 #ifdef SVR4 /* to get it to work under Solaris */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
251 #define srandom srand48
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
252 #define bcopy(s,d,l) memmove((d),(s),(l))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
253 #define bzero(s,l) memset((s),(char)0,(l))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
254 #define random lrand48
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
255 #define rindex(s,c) strrchr((s),(c))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
256 #endif /* SVR4 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
257
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
258 #ifdef ROTATERACE
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
259 #define sendTorpReq(dir) sendShortPacket(CP_TORP, RotateDirSend(dir))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
260 #define sendPhaserReq(dir) sendShortPacket(CP_PHASER, RotateDirSend(dir))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
261 #define sendDirReq(dir) sendShortPacket(CP_DIRECTION, RotateDirSend(dir))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
262 #define sendPlasmaReq(dir) sendShortPacket(CP_PLASMA, RotateDirSend(dir))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
263 #else
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
264 #define sendTorpReq(dir) sendShortPacket(CP_TORP, dir)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
265 #define sendPhaserReq(dir) sendShortPacket(CP_PHASER, dir)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
266 #define sendDirReq(dir) sendShortPacket(CP_DIRECTION, dir)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
267 #define sendPlasmaReq(dir) sendShortPacket(CP_PLASMA, dir)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
268 #endif /* ROTATERACE */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
269
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
270 #define sendSpeedReq(speed) sendShortPacket(CP_SPEED, speed)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
271 #define sendShieldReq(state) sendShortPacket(CP_SHIELD, state)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
272 #define sendOrbitReq(state) sendShortPacket(CP_ORBIT, state)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
273 #define sendRepairReq(state) sendShortPacket(CP_REPAIR, state)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
274 #define sendBeamReq(state) sendShortPacket(CP_BEAM, state)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
275 #define sendCopilotReq(state) sendShortPacket(CP_COPILOT, state)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
276 #define sendDetonateReq() sendShortPacket(CP_DET_TORPS, 0)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
277 #define sendCloakReq(state) sendShortPacket(CP_CLOAK, state)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
278 #define sendBombReq(state) sendShortPacket(CP_BOMB, state)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
279 #define sendPractrReq() sendShortPacket(CP_PRACTR, 0)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
280 #define sendWarReq(mask) sendShortPacket(CP_WAR, mask)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
281 #define sendRefitReq(ship) sendShortPacket(CP_REFIT, ship)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
282 #define sendPlaylockReq(pnum) sendShortPacket(CP_PLAYLOCK, pnum)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
283 #define sendPlanlockReq(pnum) sendShortPacket(CP_PLANLOCK, pnum)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
284 #define sendCoupReq() sendShortPacket(CP_COUP, 0)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
285 #define sendQuitReq() sendShortPacket(CP_QUIT, 0)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
286 #define sendByeReq() sendShortPacket(CP_BYE, 0)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
287 #define sendDockingReq(state) sendShortPacket(CP_DOCKPERM, state)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
288 #define sendResetStatsReq(verify) sendShortPacket(CP_RESETSTATS, verify)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
289 #ifdef ATM
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
290 #define sendScanReq(who) sendShortPacket(CP_SCAN, who) /* ATM */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
291 #endif /* ATM */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
292
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
293 /* This macro allows us to time things based upon # frames / sec.
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
294 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
295 #define ticks(x) ((x)*200000/timerDelay)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
296
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
297 char *getdefault();
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
298
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
299 #ifdef ATM
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
300 /*
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
301 * UDP control stuff
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
302 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
303 #ifdef GATEWAY
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
304 #define UDP_NUMOPTS 11
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
305 #define UDP_GW UDP_NUMOPTS-1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
306 #else
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
307 #define UDP_NUMOPTS 10
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
308 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
309 #define UDP_CURRENT 0
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
310 #define UDP_STATUS 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
311 #define UDP_DROPPED 2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
312 #define UDP_SEQUENCE 3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
313 #define UDP_SEND 4
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
314 #define UDP_RECV 5
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
315 #define UDP_DEBUG 6
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
316 #define UDP_FORCE_RESET 7
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
317 #define UDP_UPDATE_ALL 8
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
318 #define UDP_DONE 9
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
319 #define COMM_TCP 0
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
320 #define COMM_UDP 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
321 #define COMM_VERIFY 2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
322 #define COMM_UPDATE 3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
323 #define COMM_MODE 4
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
324 #define SWITCH_TCP_OK 0
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
325 #define SWITCH_UDP_OK 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
326 #define SWITCH_DENIED 2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
327 #define SWITCH_VERIFY 3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
328 #define CONNMODE_PORT 0
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
329 #define CONNMODE_PACKET 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
330 #define STAT_CONNECTED 0
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
331 #define STAT_SWITCH_UDP 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
332 #define STAT_SWITCH_TCP 2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
333 #define STAT_VERIFY_UDP 3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
334 #define MODE_TCP 0
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
335 #define MODE_SIMPLE 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
336 #define MODE_FAT 2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
337 #define MODE_DOUBLE 3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
338
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
339 #define UDP_RECENT_INTR 300
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
340 #define UDP_UPDATE_WAIT 5
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
341
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
342 /* client version of UDPDIAG */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
343 #define UDPDIAG(x) { if (udpDebug) { printf("UDP: "); printf x; }}
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
344 #define V_UDPDIAG(x) UDPDIAG(x)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
345 #endif /* ATM */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
346
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
347 #define RSA_VERSION "RSA v2.0 CLIENT" /* string must begin with characters
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
348 "RSA v" */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
349 #define KEY_SIZE 32
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
350 #define RESERVED_SIZE 16
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
351 #define MSG_LEN 80
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
352 #define NAME_LEN 16
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
353 #define KEYMAP_LEN 96
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
354
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
355 #ifdef ROTATERACE
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
356 #define RotateDirSend(d) (rotate?d-rotate_deg:d)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
357 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
358
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
359 #ifdef SHORT_PACKETS
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
360 #define SPK_VOFF 0 /* variable packets off */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
361 #define SPK_VON 1 /* variable packets on */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
362 #define SPK_MOFF 2 /* message packets off */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
363 #define SPK_MON 3 /* message packets on */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
364 #define SPK_M_KILLS 4 /* send kill mesgs */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
365 #define SPK_M_NOKILLS 5 /* don't send kill mesgs */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
366 #define SPK_THRESHOLD 6 /* threshold */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
367 #define SPK_M_WARN 7 /* warnings */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
368 #define SPK_M_NOWARN 8 /* no warnings */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
369 #define SPK_SALL 9 /* only planets,kills and weapons */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
370 #define SPK_ALL 10 /* Full Update - SP_STATS */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
371
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
372 #define SPK_NUMFIELDS 7
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
373
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
374 #define SPK_VFIELD 0
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
375 #define SPK_MFIELD 1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
376 #define SPK_KFIELD 2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
377 #define SPK_WFIELD 3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
378 #define SPK_TFIELD 4
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
379 #define SPK_WHYFIELD 5
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
380 #define SPK_DONE 6
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
381 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
382
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
383 #ifdef TOOLS
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
384 #define TOOLSWINLEN 25
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
385 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
386
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
387 #ifdef BEEPLITE
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
388 #define LITE_PLAYERS_MAP 0x01
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
389 #define LITE_PLAYERS_LOCAL 0x02
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
390 #define LITE_SELF 0x04
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
391 #define LITE_PLANETS 0x08
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
392 #define LITE_SOUNDS 0x10
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
393 #define LITE_COLOR 0x20
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
394 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
395
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
396 #ifdef AMIGA
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
397 #include "amigadefs.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
398 #else
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
399 #define sock_write write
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
400 #define sock_close close
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
401 #define sock_ioctl ioctl
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
402 #endif /* AMIGA */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
403
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
404 #ifdef RECORDER
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
405 #define PB_REDALERT -1
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
406 #define PB_YELLOWALERT -2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
407 #define PB_DEATH -3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
408 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
409
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
410 #if defined (sgi) || defined (__FreeBSD__) || defined (__NetBSD__)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
411 #define strcmpi strcasecmp
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
412 #define strncmpi strncasecmp
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
413 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
414
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
415 #endif