diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-12 01:29:43 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-12 01:29:43 +0000 |
commit | 4169a47bd9daba2eb03d6c435722f1bb0bb6f52c (patch) | |
tree | edc9826eed78c333119a5ad3083aa455f98a66da /preproc.h | |
parent | cdea6f96b69a31e7d9294ac9b7f9f1167f722ed8 (diff) | |
download | nasm-4169a47bd9daba2eb03d6c435722f1bb0bb6f52c.tar.gz nasm-4169a47bd9daba2eb03d6c435722f1bb0bb6f52c.tar.bz2 nasm-4169a47bd9daba2eb03d6c435722f1bb0bb6f52c.zip |
Use a perfect hash to look up preprocessor directives
Use a perfect hash to look up preprocessor directives, and generate
the preprocessor directive list automatically.
Diffstat (limited to 'preproc.h')
-rw-r--r-- | preproc.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -9,6 +9,11 @@ #ifndef NASM_PREPROC_H #define NASM_PREPROC_H +#include "pptok.h" + +extern const char * const pp_directives[]; + +enum preproc_token pp_token_hash(const char *token); void pp_include_path(char *); char **pp_get_include_path_ptr(char **pPrevPath); void pp_pre_include(char *); @@ -17,6 +22,4 @@ void pp_pre_undefine(char *); void pp_runtime(char *); void pp_extra_stdmac(const char **); -extern Preproc nasmpp; - #endif |