X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fsymtab.c;h=2d60aeb0e451d30c362917c959d66682da42d061;hp=d3d7e6af5bb510762cfa9ee7191ed301a448b66c;hb=ef696645cc3b7e0f4027008d1dc589c0f0f90c1f;hpb=084ad8d210469872bda11c201267a361ca295435 diff --git a/index/symtab.c b/index/symtab.c index d3d7e6a..2d60aeb 100644 --- a/index/symtab.c +++ b/index/symtab.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: symtab.c,v $ - * Revision 1.5 1999-02-02 14:51:08 adam + * Revision 1.6 1999-05-26 07:49:13 adam + * C++ compilation. + * + * Revision 1.5 1999/02/02 14:51:08 adam * Updated WIN32 code specific sections. Changed header. * * Revision 1.4 1997/09/09 13:38:09 adam @@ -43,7 +46,7 @@ struct strtab { struct strtab *strtab_mk (void) { int i; - struct strtab *p = xmalloc (sizeof (*p)); + struct strtab *p = (struct strtab *) xmalloc (sizeof (*p)); for (i=0; iar[i] = NULL; return p; @@ -64,8 +67,8 @@ int strtab_src (struct strtab *t, const char *name, void ***infop) *infop = &e->info; return 1; } - e = xmalloc (sizeof(*e)); - e->name = xmalloc (strlen(name)+1); + e = (struct strentry *) xmalloc (sizeof(*e)); + e->name = (char *) xmalloc (strlen(name)+1); strcpy (e->name, name); e->next = t->ar[hash]; t->ar[hash] = e;