[COMPILING] Windows compile: Abbreviations code

From: Christoffer Lundberg (avatar@orion.boden.se)
Date: 05/19/99


I have tried to add the code for abbreviations on my
MUD which I intend to run under windows. I get the
following errors when compiling:

c:\mud\circle30bpl15\src\handler.c(60) : warning C4028: formal parameter 1
different from declaration
c:\mud\circle30bpl15\src\handler.c(60) : warning C4028: formal parameter 2
different from declaration

and the code looks like this, if you do not have it:

#define WHITESPACE " \t"
int isname(char *str, char *namelist)
{    <-----------------------------  Here lies the problem, but I think
                                     it's the above line.
  char *newlist;
  char *curtok;

  newlist = strdup(namelist); /* make a copy since strtok 'modifies' strings */

  for(curtok = strtok(newlist, WHITESPACE); curtok; curtok = strtok(NULL, WHITESPACE))
  if (curtok && is_abbrev(str, curtok)) {
    free(newlist);
    return 1;
  }
  free(newlist);
  return 0;
}


()CHRISTOFFER:>......


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



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