version 1.10 | | version 1.11 |
---|
| | |
%{ | | %{ |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: loader.l,v 1.10 2001/02/23 06:06:35 mwedel Exp $"; | | * "$Id: loader.l,v 1.11 2001/03/17 05:03:08 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* Unfortunately, we will report warnings here simply because an object has | | * Unfortunately, we will report warnings here simply because an object has |
* been modified from the arch. | | * been modified from the arch. |
*/ | | */ |
| | #if 0 /* #if's don't work in #define macros */ |
#define SET_RESIST(op, type, val) \ | | #define SET_RESIST(op, type, val) \ |
{if (op->resist[type]!=0) { \ | | {if (op->resist[type]!=0) { \ |
LOG(llevInfo, "object %s having multiple resistances set, type=%s, old=%d, new=%d\n", \ | | LOG(llevInfo, "object %s having multiple resistances set, type=%s, old=%d, new=%d\n", \ |
op->name?op->name:(op->arch?op->arch->name:"unknown"), \ | | op->name?op->name:(op->arch?op->arch->name:"unknown"), \ |
resist_plus[type], op->resist[type], val); \ | | resist_plus[type], op->resist[type], val); \ |
} op->resist[type] = val; } | | } op->resist[type] = val; } |
| | #else |
| | #define SET_RESIST(op, type, val) op->resist[type] = val; |
| | #endif |
| | |
#define IVAL atoi(yval()) | | #define IVAL atoi(yval()) |
#define FVAL atof(yval()) | | #define FVAL atof(yval()) |