Difference for server/plugins.c from version 1.31 to 1.32


version 1.31 version 1.32
Line 1
 
Line 1
 /*  /*
  * 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 $";
  */   */
   
 /*****************************************************************************/  /*****************************************************************************/
Line 1074
 
Line 1074
     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;
Line 1097
 
Line 1093
 {  {
     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);
Line 1134
 
Line 1130
 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;


Legend:
line(s) removed in v.1.31 
line(s) changed
 line(s) added in v.1.32

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:43