version 1.89 | | version 1.90 |
---|
| | |
/* | | /* |
* static char *rcsid_define_h = | | * static char *rcsid_define_h = |
* "$Id: define.h,v 1.89 2005/08/27 22:10:14 akirschbaum Exp $"; | | * "$Id: define.h,v 1.90 2005/08/31 20:07:22 tchize Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
((xyz)->flags[p/32] &= ~(1U << (p % 32))) | | ((xyz)->flags[p/32] &= ~(1U << (p % 32))) |
#define QUERY_FLAG(xyz, p) \ | | #define QUERY_FLAG(xyz, p) \ |
((xyz)->flags[p/32] & (1U << (p % 32))) | | ((xyz)->flags[p/32] & (1U << (p % 32))) |
| | #define COMPARE_FLAGS(p,q) \ |
| | ( \ |
| | ((p)->flags[0] == (q)->flags[0]) && \ |
| | ((p)->flags[1] == (q)->flags[1]) && \ |
| | ((p)->flags[2] == (q)->flags[2]) && \ |
| | ((p)->flags[3] == (q)->flags[3]) \ |
| | ) |
/* convenience macros to determine what kind of things we are dealing with */ | | /* convenience macros to determine what kind of things we are dealing with */ |
| | |
#define IS_WEAPON(op) \ | | #define IS_WEAPON(op) \ |