version 1.28 | | version 1.29 |
---|
| | |
/* | | /* |
* static char *rcsid_global_h = | | * static char *rcsid_global_h = |
* "$Id: global.h,v 1.28 2002/06/15 07:47:36 mwedel Exp $"; | | * "$Id: global.h,v 1.29 2002/08/02 05:09:39 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
typedef signed char sint8; | | typedef signed char sint8; |
typedef unsigned short Fontindex; | | typedef unsigned short Fontindex; |
| | |
#define DELETE_STRING(__str_) free_string(__str_);__str_=NULL; | | |
| | |
| | |
/* global stuff used by new skill/experience system -b.t. | | /* global stuff used by new skill/experience system -b.t. |
| | |
* makes the code a bit cleaner when doing so. | | * makes the code a bit cleaner when doing so. |
*/ | | */ |
#define FREE_AND_CLEAR(xyz) {free(xyz); xyz=NULL; } | | #define FREE_AND_CLEAR(xyz) {free(xyz); xyz=NULL; } |
| | #define FREE_AND_CLEAR_STR(xyz) {free_string(xyz); xyz=NULL; } |
| | |
/* FREE_AND_COPY is for the shared string - it is handy enough | | /* FREE_AND_COPY is for the shared string - it is handy enough |
* to use all over the place. | | * to use all over the place. |
*/ | | */ |
#define FREE_AND_COPY(sv,nv) { if (sv) free_string(sv); sv=add_string(nv); } | | #define FREE_AND_COPY(sv,nv) { if (sv) free_string(sv); sv=add_string(nv); } |
| | |
| | #define DELETE_STRING(__str_) free_string(__str_);__str_=NULL; |
| | |
#ifdef CALLOC | | #ifdef CALLOC |
#undef CALLOC | | #undef CALLOC |
#endif | | #endif |