version 1.31 | | version 1.32 |
---|
| | |
/* | | /* |
* static char *rcsid_plugins_c = | | * static char *rcsid_plugins_c = |
* "$Id: plugins.c,v 1.31 2004/10/19 20:31:32 akirschbaum Exp $"; | | * "$Id: plugins.c,v 1.32 2005/01/07 12:00:01 akirschbaum Exp $"; |
*/ | | */ |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
| | |
object* whatptr; | | object* whatptr; |
object* whoptr; | | object* whoptr; |
int flag; | | int flag; |
static int val; | | static uint64 val; |
CFP = (CFParm*)(malloc(sizeof(CFParm))); | | CFP = (CFParm*)(malloc(sizeof(CFParm))); |
whatptr = (object *)(PParm->Value[0]); | | whatptr = (object *)(PParm->Value[0]); |
whoptr = (object *)(PParm->Value[1]); | | whoptr = (object *)(PParm->Value[1]); |
flag = *(int*)(PParm->Value[2]); | | flag = *(int*)(PParm->Value[2]); |
/* This is now broken since query_cost returns 64 bit - | | |
* not positive how well/what needs to be changed for the plugin | | |
* to know this and act accordingly. | | |
*/ | | |
val=query_cost (whatptr,whoptr,flag); | | val=query_cost (whatptr,whoptr,flag); |
CFP->Value[0] = (void*) &val; | | CFP->Value[0] = (void*) &val; |
return CFP; | | return CFP; |
| | |
{ | | { |
CFParm* CFP; | | CFParm* CFP; |
object* whoptr; | | object* whoptr; |
static int val; | | static uint64 val; |
CFP = (CFParm*)(malloc(sizeof(CFParm))); | | CFP = (CFParm*)(malloc(sizeof(CFParm))); |
whoptr = (object *)(PParm->Value[0]); | | whoptr = (object *)(PParm->Value[0]); |
val=query_money (whoptr); | | val=query_money (whoptr); |
| | |
CFParm* CFWPayForAmount(CFParm* PParm) | | CFParm* CFWPayForAmount(CFParm* PParm) |
{ | | { |
CFParm* CFP; | | CFParm* CFP; |
int amount; | | uint64 amount; |
object* whoptr; | | object* whoptr; |
static int val; | | static int val; |
CFP = (CFParm*)(malloc(sizeof(CFParm))); | | CFP = (CFParm*)(malloc(sizeof(CFParm))); |
amount = *(int *)(PParm->Value[0]); | | amount = *(uint64 *)(PParm->Value[0]); |
whoptr = (object *)(PParm->Value[1]); | | whoptr = (object *)(PParm->Value[1]); |
val= pay_for_amount (amount,whoptr); | | val= pay_for_amount (amount,whoptr); |
CFP->Value[0] = (void*) &val; | | CFP->Value[0] = (void*) &val; |