More C questions

From: Davidson, Christopher M (Christopher.Davidson@PSS.BOEING.COM)
Date: 01/22/98


Here's what the code looks like, that I'm getting an error on.

int invalid_race(struct char_data *ch, struct obj_data *obj) {

if ((IS_OBJ_STAT(obj, ITEM_ANTI_HUMAN) && IS_HUMAN(ch)) ||
 (IS_OBJ_STAT(obj, ITEM_ANTI_ELF) && IS_ELF(ch)) ||
 (IS_OBJ_STAT(obj, ITEM_ANTI_GNOME) && IS_GNOME(ch)) ||
 (IS_OBJ_STAT(obj, ITEM_ANTI_FAIRY) && IS_FAIRY(ch)))
  return 1;
else
  return 0;
}

The error I keep getting is this.

class.c: In function 'invalid_race':
class.c:1110: called object is not a function
class.c:1111: called object is not a function
class.c:1112: called object is not a function

Please excuse the formatting.  Hopefully the idea get's across.

Anyway, the problem is, I have been reading some C manuals, and I read
that a variable name can be no longer than 32 characters long, but if
the first 6 characters are the same, it treats it like the same
variable.  Is this what the problem is in this case?  Am I waaaaaaaay
off?

Chris Davidson
Shared Services Group - ATEMS Focal - X to PC Focal
206-662-3001 "home" 206-541-0754 leash


     +------------------------------------------------------------+
     | 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