summaryrefslogtreecommitdiff
path: root/preproc.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-12 01:29:43 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-09-12 01:29:43 +0000
commit4169a47bd9daba2eb03d6c435722f1bb0bb6f52c (patch)
treeedc9826eed78c333119a5ad3083aa455f98a66da /preproc.h
parentcdea6f96b69a31e7d9294ac9b7f9f1167f722ed8 (diff)
downloadnasm-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.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/preproc.h b/preproc.h
index b571732..13d70cd 100644
--- a/preproc.h
+++ b/preproc.h
@@ -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