# | Line 6 | Line 6 | |
---|---|---|
6 | */ | |
7 | #ifndef _RAD_SOURCE_H_ | |
8 | #define _RAD_SOURCE_H_ | |
9 | + | |
10 | + | #include <string.h> |
11 | + | |
12 | #ifdef __cplusplus | |
13 | extern "C" { | |
14 | #endif | |
# | Line 68 | Line 71 | typedef struct { | |
71 | ||
72 | #define initsrcindex(s) ((s)->sn = (s)->sp = -1, (s)->np = 0) | |
73 | ||
74 | < | #define clrpart(pt) bzero((char *)(pt), MAXSPART/2) |
74 | > | #define clrpart(pt) memset((char *)(pt), '\0', MAXSPART/2) |
75 | #define setpart(pt,i,v) ((pt)[(i)>>2] |= (v)<<(((i)&3)<<1)) | |
76 | #define spart(pt,pi) ((pt)[(pi)>>2] >> (((pi)&3)<<1) & 3) | |
77 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |