EVENTS

From: Chuck Reed (creed@I-55.COM)
Date: 03/03/98


Just wondering why this was making a pointer from integer without cast ;)
Here's the structure:

#define EVENT(name) void (name)(void *causer, void *victim, long info)

struct event_info {
  int ticks_to_go;
  EVENT(*func);
  void *causer,*victim;
  void *info;
  struct event_info *next;
};

struct event_info *temp;

(temp->func)(temp->causer,temp->victim,temp->info);

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

That line creates an error reading:
passing arg 3 makes integer from pointer without a cast

Dunno why.  I think this is my last problem with this thing, so hopefully
you will be bothered no more :)

Chuck Reed


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST