summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2011-07-01 10:38:25 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2011-07-02 00:15:24 +0400
commit86b2ad05f8b0fb7d6ecc913dd0184e41c19a9c26 (patch)
treeb33e09c605e7ed148216143d610584515a4299c5 /nasm.c
parent0ad6a7b293fd048dab2cfebfddf966ec879bcac9 (diff)
downloadnasm-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.c')
-rw-r--r--nasm.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/nasm.c b/nasm.c
index 9baec18..2522232 100644
--- a/nasm.c
+++ b/nasm.c
@@ -122,7 +122,8 @@ static struct RAA *offsets;
static struct SAA *forwrefs; /* keep track of forward references */
static const struct forwrefinfo *forwref;
-static Preproc *preproc;
+static struct preproc_ops *preproc;
+
enum op_type {
op_normal, /* Preprocess and assemble */
op_preprocess, /* Preprocess only */
@@ -168,10 +169,11 @@ static const struct warning {
* not preprocess their source file.
*/
-static void no_pp_reset(char *, int, ListGen *, StrList **);
+static void no_pp_reset(char *file, int pass, ListGen *listgen, StrList **deplist);
static char *no_pp_getline(void);
-static void no_pp_cleanup(int);
-static Preproc no_pp = {
+static void no_pp_cleanup(int pass);
+
+static struct preproc_ops no_pp = {
no_pp_reset,
no_pp_getline,
no_pp_cleanup