X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fsymtab.c;h=2d60aeb0e451d30c362917c959d66682da42d061;hb=6b0310a64df542131c2f4abded39f35844235e4d;hp=6f1000eeda85075c5b35bf17ee5f0e1022460fdf;hpb=ca19a15163ee74ee0c6765bfef4fd9794627e26a;p=idzebra-moved-to-github.git diff --git a/index/symtab.c b/index/symtab.c index 6f1000e..2d60aeb 100644 --- a/index/symtab.c +++ b/index/symtab.c @@ -1,10 +1,22 @@ /* - * Copyright (C) 1994-1995, Index Data I/S + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: symtab.c,v $ - * Revision 1.2 1995-09-28 09:19:44 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 + * Partial port to WIN95/NT. + * + * Revision 1.3 1996/10/29 14:06:54 adam + * Include zebrautl.h instead of alexutil.h. + * + * Revision 1.2 1995/09/28 09:19:44 adam * xfree/xmalloc used everywhere. * Extract/retrieve method seems to work for text records. * @@ -14,9 +26,9 @@ */ #include #include +#include #include -#include #include "index.h" struct strentry { @@ -34,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; @@ -55,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;