X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fattribute.c;h=78af3c15e6f407e16e4dcaa9f866cb2dd59ce523;hb=c0c85097014e5b007075ab71d9b5bee412e28dd5;hp=a5cf209180b046c1eba9b30126de0e55f4613ffd;hpb=de4ada45ce039553f8322e620cc047d8cf4a065e;p=idzebra-moved-to-github.git diff --git a/index/attribute.c b/index/attribute.c index a5cf209..78af3c1 100644 --- a/index/attribute.c +++ b/index/attribute.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: attribute.c,v $ - * Revision 1.4 1996-10-29 14:06:48 adam + * Revision 1.5 1997-09-05 15:30:08 adam + * Changed prototype for chr_map_input - added const. + * Added support for C++, headers uses extern "C" for public definitions. + * + * Revision 1.4 1996/10/29 14:06:48 adam * Include zebrautl.h instead of alexutil.h. * * Revision 1.3 1996/05/09 07:28:54 quinn @@ -32,16 +36,15 @@ static data1_attset *registered_sets = 0; static void att_loadset(const char *n, const char *name) { - data1_attset *new; + data1_attset *cnew; - if (!(new = data1_read_attset((char*) name))) + if (!(cnew = data1_read_attset((char*) name))) { logf(LOG_WARN|LOG_ERRNO, "%s", name); return; } - new->next = registered_sets; - registered_sets = new; - return; + cnew->next = registered_sets; + registered_sets = cnew; } static void load_atts()