diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-05-22 13:17:51 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-05-22 13:17:51 -0700 |
commit | 072771e4a51c8794ce7a279da76f22bd4ba37957 (patch) | |
tree | 674c8d6da4cdd99c6e4b67ed5e9a00b9a037e908 /labels.c | |
parent | bd420c70959b22a8cfb44501208aa771b540678f (diff) | |
download | nasm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |