I am currently trying to get aliases to save. I have downloaded the=20
alias patch from the circle ftp site. The one I chose was written by=20
Jeremy Hess. I have followed the directions and have created the=20
directories to save the alias files. I am using Cygnus Cygwin32 Beta 19 =
to compile. (Yeah, I know its a weak compiler but hey its free!) Here=20
are the errors I get when I compile. Note: I'm using patch level 14=20
-circle30bpl14.
make ../bin/circle
gcc -c -g -02 -wall -wno-char-subcripts alias.c
alias.c: In function 'write_aliases'
alias.c:31 'dummy_mob' undeclared (first use this function)
alias.c: In function 'read_aliases'
alias.c:70 'dummy_mob' undeclared (first use this function)
My guess is that I am missing an include file somewhere. dunno. I have =
tried contacting the author but haven't had much luck. If you know what =
I'm doing wrong or you know a better way to do this, please let me know. =
Thanks in advance.
Adam
Info on alias.c
=20
Includes:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "conf.h"
#include "sysdep.h"
#include "structs.h"
#include "utils.h"
#include "interpreter.h"
Functions:
I only included the write_aliases function
void write_aliases(struct char_data *ch)
{
FILE *file;
char fn[127],*buf;
struct alias *temp;
int length;
get_filename(GET_NAME(ch),fn,ALIAS_FILE);
unlink(fn);
if( !GET_ALIASES(ch) )
return;
file = fopen(fn,"wt");
temp = GET_ALIASES(ch);
while( temp )
{
length = strlen(temp->alias);
fprintf(file,"%d\n",length);
fprintf(file,"%s\n",temp->alias);
buf = strdup(temp->replacement);
while( *++buf == ' ' );
length = strlen(buf);
fprintf(file,"%d\n",length);
fprintf(file,"%s\n",buf);
fprintf(file,"%d\n",temp->type);
temp = temp->next;
}
fclose(file);
}
+------------------------------------------------------------+
| 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