| version 1.78 | | version 1.79 |
|---|
| | |
| #line 2 "loader.l" | | #line 2 "loader.l" |
| /* | | /* |
| * static char *rcsid_object_c = | | * static char *rcsid_object_c = |
| * "$Id: loader.c,v 1.78 2006/02/17 21:37:41 akirschbaum Exp $"; | | * "$Id: loader.c,v 1.79 2006/02/27 20:12:44 akirschbaum Exp $"; |
| */ | | */ |
| | | |
| /* | | /* |
| | |
| strcpy(retbuf_all," all"); | | strcpy(retbuf_all," all"); |
| | | |
| /* Quick check, and probably fairly common */ | | /* Quick check, and probably fairly common */ |
| if (mt == MOVE_ALL) return retbuf_all; | | if (mt == MOVE_ALL) return retbuf_all+1; |
| if (mt == 0) { | | if (mt == 0) { |
| strcpy(retbuf,"0"); | | strcpy(retbuf,"0"); |
| return retbuf; | | return retbuf; |
| | |
| * enumerated values. It doesn't make sense to return | | * enumerated values. It doesn't make sense to return |
| * 'all -walk -fly_low' - it is shorter to return 'fly_high swim' | | * 'all -walk -fly_low' - it is shorter to return 'fly_high swim' |
| */ | | */ |
| if (all_count <=1) return retbuf_all; | | if (all_count <=1) return retbuf_all+1; |
| else return retbuf; | | else return retbuf+1; |
| } | | } |
| | | |
| | | |
| | |
| | | |
| if(op->stats.exp!=op2->stats.exp) { | | if(op->stats.exp!=op2->stats.exp) { |
| #ifndef WIN32 | | #ifndef WIN32 |
| sprintf(buf2,"%lld\n", op->stats.exp); | | sprintf(buf2,"%lld", op->stats.exp); |
| #else | | #else |
| sprintf(buf2,"%I64d\n", op->stats.exp); | | sprintf(buf2,"%I64d", op->stats.exp); |
| #endif | | #endif |
| ADD_STRINGLINE_ENTRY(fastbuf,"exp ", buf2, 4); | | ADD_STRINGLINE_ENTRY(fastbuf,"exp ", buf2, 4); |
| } | | } |
| | | |
| if(op->perm_exp!=op2->perm_exp) { | | if(op->perm_exp!=op2->perm_exp) { |
| #ifndef WIN32 | | #ifndef WIN32 |
| sprintf(buf2,"%lld\n", op->perm_exp); | | sprintf(buf2,"%lld", op->perm_exp); |
| #else | | #else |
| sprintf(buf2,"%I64d\n", op->perm_exp); | | sprintf(buf2,"%I64d", op->perm_exp); |
| #endif | | #endif |
| ADD_STRINGLINE_ENTRY(fastbuf,"perm_exp ", buf2, 9); | | ADD_STRINGLINE_ENTRY(fastbuf,"perm_exp ", buf2, 9); |
| } | | } |