Re: (BPL13) lots of errors

From: George (greerga@CIRCLEMUD.ORG)
Date: 06/22/98


On Mon, 22 Jun 1998, Christina Orr wrote:

>I am getting 40 of these errors in comm.c:
>comm.c(278) : warning C4002: too many actual parameters for macro 'log'
>
>Example of one in comm.c that is not:
>
>    if (PRF_FLAGGED(d->character, PRF_DISPHP))
>      sprintf(prompt, "%s%dH ", prompt, GET_HIT(d->character));

It's not using log().  And log() takes variable arguments so it should be
impossible to get that message.

>Bunches of errors and warnings are coming up at this line:
>
>if (STATE(t) == CON_PLAYING && t->character && !IS_NPC(t->character) &&
>!PRF_FLAGGED(t-->character, PRF_COMPACT))
               ^^
You need one '-', not two.

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://patches.van.ml.org/          | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


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