Update of /cvsroot/monetdb/pathfinder/src/sqlhelpers/xmlshred/include
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10014/include
Modified Files:
hash.h
Log Message:
-- pfshred now requires SAX2 (namespace URI processing)
-- Local name and URI hash tables operate with xmlChar* values
Index: hash.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/src/sqlhelpers/xmlshred/include/hash.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- hash.h 8 Jan 2008 10:00:14 -0000 1.5
+++ hash.h 10 Jan 2008 09:02:16 -0000 1.6
@@ -28,11 +28,14 @@
#ifndef HASH_H__
#define HASH_H__
+/* needed xmlChar */
+#include "libxml/parser.h"
+
/* code for no key */
#define NO_KEY -1
/* returns true if no such key is found */
-#define NOKEY(k) (k == NO_KEY)
+#define NOKEY(k) ((k) == NO_KEY)
/* a hashtable bucket */
typedef struct bucket_t bucket_t;
@@ -48,16 +51,16 @@
/**
* Find element in hashtable.
*/
-int hashtable_find (bucket_t **hash_table, char *key);
+int hashtable_find (hashtable_t, const xmlChar*);
/**
* Insert key and id to hashtable.
*/
-void hashtable_insert (bucket_t **hash_table, char *key, int id);
+void hashtable_insert (hashtable_t, const xmlChar*, int);
/**
* Free memory assigned to hash_table.
*/
-void free_hashtable (bucket_t **hash_table);
+void free_hashtable (hashtable_t);
#endif /* HASH_H__ */
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins