chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generate the CRC table rather than hardcoding it.
[mLib]
/
sym.h
diff --git
a/sym.h
b/sym.h
index 1de62f1c7700419338daa5a55be326ba59b28bc7..d9d270c054a1de88c035e1d46d0c1d30f52e79ee 100644
(file)
--- a/
sym.h
+++ b/
sym.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: sym.h,v 1.
9 1999/08/02 16:53:48
mdw Exp $
+ * $Id: sym.h,v 1.
11 2000/06/17 10:37:39
mdw Exp $
*
* Symbol table management
*
*
* Symbol table management
*
@@
-30,6
+30,12
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: sym.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: sym.h,v $
+ * Revision 1.11 2000/06/17 10:37:39 mdw
+ * Add support for arena management.
+ *
+ * Revision 1.10 1999/12/10 23:42:04 mdw
+ * Change header file guard names.
+ *
* Revision 1.9 1999/08/02 16:53:48 mdw
* Improve type safety for sym_iter objects.
*
* Revision 1.9 1999/08/02 16:53:48 mdw
* Improve type safety for sym_iter objects.
*
@@
-60,8
+66,8
@@
*
*/
*
*/
-#ifndef SYM_H
-#define SYM_H
+#ifndef
MLIB_
SYM_H
+#define
MLIB_
SYM_H
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-71,14
+77,18
@@
#include <stddef.h>
#include <stddef.h>
-#ifndef BITS_H
+#ifndef
MLIB_
BITS_H
# include "bits.h"
#endif
# include "bits.h"
#endif
-#ifndef HASH_H
+#ifndef
MLIB_
HASH_H
# include "hash.h"
#endif
# include "hash.h"
#endif
+#ifndef MLIB_SUB_H
+# include "sub.h"
+#endif
+
/*----- Type definitions --------------------------------------------------*/
/* --- Symbol table --- *
/*----- Type definitions --------------------------------------------------*/
/* --- Symbol table --- *
@@
-90,6
+100,7
@@
typedef struct sym_table {
hash_table t;
typedef struct sym_table {
hash_table t;
+ subarena *s;
size_t load;
} sym_table;
size_t load;
} sym_table;
@@
-186,7
+197,7
@@
extern void *sym_find(sym_table */*t*/, const char */*n*/, long /*l*/,
/* --- @sym_remove@ --- *
*
/* --- @sym_remove@ --- *
*
- * Arguments: @sym_table *
i
@ = pointer to a symbol table object
+ * Arguments: @sym_table *
t
@ = pointer to a symbol table object
* @void *b@ = pointer to symbol table entry
*
* Returns: ---
* @void *b@ = pointer to symbol table entry
*
* Returns: ---