10 |
|
extern "C" { |
11 |
|
#endif |
12 |
|
|
13 |
+ |
#include <string.h> |
14 |
|
|
14 |
– |
#include "copyright.h" |
15 |
– |
|
15 |
|
#define AIMREQT 100 /* required aim success/failure */ |
16 |
|
|
17 |
|
#define SDISTANT 01 /* source distant flag */ |
70 |
|
|
71 |
|
#define initsrcindex(s) ((s)->sn = (s)->sp = -1, (s)->np = 0) |
72 |
|
|
73 |
< |
#define clrpart(pt) bzero((char *)(pt), MAXSPART/2) |
73 |
> |
#define clrpart(pt) memset((char *)(pt), '\0', MAXSPART/2) |
74 |
|
#define setpart(pt,i,v) ((pt)[(i)>>2] |= (v)<<(((i)&3)<<1)) |
75 |
|
#define spart(pt,pi) ((pt)[(pi)>>2] >> (((pi)&3)<<1) & 3) |
76 |
|
|