diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2011-07-01 10:38:25 +0400 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2011-07-02 00:15:24 +0400 |
commit | 86b2ad05f8b0fb7d6ecc913dd0184e41c19a9c26 (patch) | |
tree | b33e09c605e7ed148216143d610584515a4299c5 /nasm.h | |
parent | 0ad6a7b293fd048dab2cfebfddf966ec879bcac9 (diff) | |
download | nasm-86b2ad05f8b0fb7d6ecc913dd0184e41c19a9c26.tar.gz nasm-86b2ad05f8b0fb7d6ecc913dd0184e41c19a9c26.tar.bz2 nasm-86b2ad05f8b0fb7d6ecc913dd0184e41c19a9c26.zip |
preproc: Move Preproc type to preproc_ops structure
There is no need to hide this structure into a type.
The former preproc_ops is a way more descriptive.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'nasm.h')
-rw-r--r-- | nasm.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -352,28 +352,28 @@ typedef struct string_list { /* * preprocessors ought to look like this: */ -typedef struct preproc_ops { +struct preproc_ops { /* * Called at the start of a pass; given a file name, the number * of the pass, an error reporting function, an evaluator * function, and a listing generator to talk to. */ - void (*reset) (char *, int, ListGen *, StrList **); + void (*reset)(char *file, int pass, ListGen *listgen, StrList **deplist); /* * Called to fetch a line of preprocessed source. The line * returned has been malloc'ed, and so should be freed after * use. */ - char *(*getline) (void); + char *(*getline)(void); /* * Called at the end of a pass. */ - void (*cleanup) (int); -} Preproc; + void (*cleanup)(int pass); +}; -extern Preproc nasmpp; +extern struct preproc_ops nasmpp; /* * ---------------------------------------------------------------- |