diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-07-12 12:53:49 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-07-12 12:55:24 -0700 |
commit | afa06137fa3d6de926134b4061c3ff4a74d212cf (patch) | |
tree | ddfb5182b1e0d06cfc731563cfdda2814b658cc5 /output/outas86.c | |
parent | d0fbb7f0ab355fd4e73d1aab215a2aa387b615c3 (diff) | |
download | nasm-afa06137fa3d6de926134b4061c3ff4a74d212cf.tar.gz |
Hash even backend-specific directives, unify null functions
Hash all directives, even the ones that are backend-specific,
and instead pass the backend an already-parsed directive number.
Furthermore, unify null functions across various backends.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'output/outas86.c')
-rw-r--r-- | output/outas86.c | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/output/outas86.c b/output/outas86.c index f21bd2e2..efef143b 100644 --- a/output/outas86.c +++ b/output/outas86.c @@ -617,14 +617,6 @@ static int32_t as86_segbase(int32_t segment) return segment; } -static int as86_directive(char *directive, char *value, int pass) -{ - (void)directive; - (void)value; - (void)pass; - return 0; -} - static void as86_filename(char *inname, char *outname, efunc error) { char *p; @@ -640,21 +632,6 @@ static void as86_filename(char *inname, char *outname, efunc error) extern macros_t as86_stdmac[]; -static int as86_set_info(enum geninfo type, char **val) -{ - (void)type; - (void)val; - return 0; -} -void as86_linenumber(char *name, int32_t segment, int32_t offset, int is_main, - int lineno) -{ - (void)name; - (void)segment; - (void)offset; - (void)is_main; - (void)lineno; -} struct ofmt of_as86 = { "Linux as86 (bin86 version 0.3) object files", "as86", @@ -663,12 +640,12 @@ struct ofmt of_as86 = { &null_debug_form, as86_stdmac, as86_init, - as86_set_info, + null_setinfo, as86_out, as86_deflabel, as86_section_names, as86_segbase, - as86_directive, + null_directive, as86_filename, as86_cleanup }; |