summaryrefslogtreecommitdiff
path: root/labels.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-22 13:17:51 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-22 13:17:51 -0700
commit072771e4a51c8794ce7a279da76f22bd4ba37957 (patch)
tree674c8d6da4cdd99c6e4b67ed5e9a00b9a037e908 /labels.c
parentbd420c70959b22a8cfb44501208aa771b540678f (diff)
downloadnasm-072771e4a51c8794ce7a279da76f22bd4ba37957.tar.gz
nasm-072771e4a51c8794ce7a279da76f22bd4ba37957.tar.bz2
nasm-072771e4a51c8794ce7a279da76f22bd4ba37957.zip
Use hash tables even for context-sensitive macros
Normally, contexts aren't used with a large number of macros, but in case someone does, do use hash tables for those as well. This simplifies the code somewhat, since *all* handling of macros is now done via hash tables. Future note: consider if it wouldn't be better to allow struct hash_table to be allocated by the caller, instead of being allocated by the hash table routine.
Diffstat (limited to 'labels.c')
-rw-r--r--labels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/labels.c b/labels.c
index 4057d99..27d25db 100644
--- a/labels.c
+++ b/labels.c
@@ -371,7 +371,7 @@ void declare_as_global(char *label, char *special, efunc error)
int init_labels(void)
{
- ltab = hash_init();
+ ltab = hash_init(HASH_LARGE);
ldata = lfree = (union label *)nasm_malloc(LBLK_SIZE);
init_block(lfree);