You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.0 KiB
44 lines
1.0 KiB
http://cvs.savannah.gnu.org/viewvc/cvs/ccvs/src/hash.h?r1=1.14.6.2&r2=1.14.6.3&pathrev=cvs1-11-x-branch
|
|
fixed in cvs-1.11.23, cvs-HEAD after cvs-1.12.13a
|
|
|
|
--- src/hash.h.orig 2010-03-11 10:12:19 +0100
|
|
+++ src/hash.h 2010-03-11 10:12:40 +0100
|
|
@@ -32,27 +32,27 @@
|
|
};
|
|
typedef enum ntype Ntype;
|
|
|
|
-struct node
|
|
+struct hashnode
|
|
{
|
|
Ntype type;
|
|
- struct node *next;
|
|
- struct node *prev;
|
|
- struct node *hashnext;
|
|
- struct node *hashprev;
|
|
+ struct hashnode *next;
|
|
+ struct hashnode *prev;
|
|
+ struct hashnode *hashnext;
|
|
+ struct hashnode *hashprev;
|
|
char *key;
|
|
void *data;
|
|
size_t len; /* Length of DATA. */
|
|
- void (*delproc) (struct node *);
|
|
+ void (*delproc) (struct hashnode *);
|
|
};
|
|
-typedef struct node Node;
|
|
+typedef struct hashnode Node;
|
|
|
|
-struct list
|
|
+struct hashlist
|
|
{
|
|
Node *list;
|
|
Node *hasharray[HASHSIZE];
|
|
- struct list *next;
|
|
+ struct hashlist *next;
|
|
};
|
|
-typedef struct list List;
|
|
+typedef struct hashlist List;
|
|
|
|
List *getlist (void);
|
|
Node *findnode (List *list, const char *key);
|