I would check your GET_RACE macro, or something of the sort that those
macros call for..
|-\ \ / /
\ \ \ /<
\ \-| asha / \
NashaK
bmw@efn.org
On Tue, 15 Oct 1996, Steve Reeves wrote:
> Geez.. seems like everyone is asking questions about races now.. so, I
> figured I'd toss
> mine in as well.. :>
>
> Recently, someone [can't remember who] attached race.doc to a post on this
> list. Anyway, I looked it over and decided it looked easy enough to
> implement, so I tried. And that brings me to my question/problem. I'm
> wondering if anyone can tell me what is wrong here.. first, here's the
> output I get from the compiler:
>
> gcc -c -g -O -Wall -fno-strict-prototypes comm.c
> In file included from comm.c:29:
> utils.h:426: parse error before `->'
> make[1]: *** [comm.o] Error 1
> make[1]: Leaving directory `/home/dormammu/circle30bpl11/src'
> make: *** [default] Error 2
>
> Seems straight forward enough... but, here's the section of the code [with a
> little extra] that the program is complaining about:
>
> #define CLASS_ABBR(ch) (IS_NPC(ch) ? "--" : class_abbrevs[(int)GET_CLASS(ch)])
>
> #define IS_MAGIC_USER(ch) (!IS_NPC(ch) && \
> (GET_CLASS(ch) == CLASS_MAGIC_USER))
> #define IS_CLERIC(ch) (!IS_NPC(ch) && \
> (GET_CLASS(ch) == CLASS_CLERIC))
> #define IS_THIEF(ch) (!IS_NPC(ch) && \
> (GET_CLASS(ch) == CLASS_THIEF))
> #define IS_WARRIOR(ch) (!IS_NPC(ch) && \
> (GET_CLASS(ch) == CLASS_WARRIOR))
> #define IS_BARD(ch) (!IS_NPC(ch) && \
> (GET_CLASS(ch) == CLASS_BARD))
> #define IS_NINJA(ch) (!IS_NPC(ch) && \
> (GET_CLASS(ch) == CLASS_NINJA))
>
> #define IS_HUMAN(ch) (!IS_NPC(ch) && \
> 426: (GET_RACE(ch) == RACE_HUMAN))
> #define IS_ELF(ch) (!IS_NPC(ch) && \
> (GET_RACE(ch) == RACE_ELF))
> #define IS_GNOME(ch) (!IS_NPC(ch) && \
> (GET_RACE(ch) == RACE_GNOME))
> #define IS_FAIRY(ch) (!IS_NPC(ch) && \
> (GET_RACE(ch) == RACE_FAIRY))
>
>
> #define OUTSIDE(ch) (!ROOM_FLAGGED((ch)->in_room, ROOM_INDOORS))
>
> That's the section of the code.. obviously, the 426: is not in the code.. I
> just put it there so you'd know which line 426 is. [I've always assumed
> that when the compiler gave
> an error message like it did above, it meant that line 426 was the one with
> the problem. Someone tell me if I'm wrong about that :> ] Anyway, the one
> other time I got an error like that in that section of the code, I'd
> forgotten the (ch) .. but, obviously, they're all there this time, so I have
> no idea what's wrong. You also will notice two new classes
> I put in, but I got them working 100% before I tried to add the races. If
> anyone can help me out, I'd appreciate it. Just lemme know if you need to
> see more code.. :> [I figure
> this is probably something relatively simple that I'm just not seeing for
> some reason.]
>
> Also, it's probably worth mentioning that I'm using 3.0 pl11 :>
>
>
> Steve
>
>
> +-----------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
> +-----------------------------------------------------------+
>
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST