mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
Change nasmlist/ListGen to lfmt/struct lfmt
For consistency with ofmt/dfmt, change the listing structure to "struct lfmt" and "lfmt" and move it to listing.h. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
6
nasm.c
6
nasm.c
@@ -1223,7 +1223,7 @@ static void assemble_file(char *fname, StrList **depend_ptr)
|
||||
globalbits = sb = cmd_sb; /* set 'bits' to command line default */
|
||||
cpu = cmd_cpu;
|
||||
if (pass0 == 2) {
|
||||
nasmlist->init(listname);
|
||||
lfmt->init(listname);
|
||||
}
|
||||
in_abs_seg = false;
|
||||
global_offset_changed = 0; /* set by redefine_label */
|
||||
@@ -1803,7 +1803,7 @@ static void assemble_file(char *fname, StrList **depend_ptr)
|
||||
}
|
||||
|
||||
preproc->cleanup(0);
|
||||
nasmlist->cleanup();
|
||||
lfmt->cleanup();
|
||||
if (!terminate_after_phase && opt_verbose_info) {
|
||||
/* -On and -Ov switches */
|
||||
fprintf(stdout, "info: assembly required 1+%d+1 passes\n", passn-3);
|
||||
@@ -2005,7 +2005,7 @@ static void nasm_verror_common(int severity, const char *fmt, va_list args)
|
||||
* preprocessor warnings in the list file
|
||||
*/
|
||||
if ((severity & ERR_MASK) >= ERR_WARNING)
|
||||
nasmlist->error(severity, pfx, msg);
|
||||
lfmt->error(severity, pfx, msg);
|
||||
|
||||
if (severity & ERR_USAGE)
|
||||
want_usage = true;
|
||||
|
||||
Reference in New Issue
Block a user