Changed prototype for chr_map_input - added const.
[idzebra-moved-to-github.git] / index / attribute.c
index 5b5c886..78af3c1 100644 (file)
@@ -4,7 +4,14 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: attribute.c,v $
- * Revision 1.3  1996-05-09 07:28:54  quinn
+ * 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
  * Work towards phrases and multiple registers
  *
  * Revision 1.2  1995/11/15  19:13:07  adam
 #include <stdio.h>
 
 #include <log.h>
-#include <alexutil.h>
 #include <res.h>
 #include <d1_attset.h>
-
+#include <zebrautl.h>
 #include "attribute.h"
 
 static int initialized = 0;
@@ -30,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()