diff options
Diffstat (limited to 'asm/preproc.c')
-rw-r--r-- | asm/preproc.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/asm/preproc.c b/asm/preproc.c index f5399927..92c0bf76 100644 --- a/asm/preproc.c +++ b/asm/preproc.c @@ -909,7 +909,7 @@ static Token *tokenize(char *line) p++; } if (*p != '}') - nasm_warnf(ERR_PASS1, "unterminated %%{ construct"); + nasm_warn(ERR_PASS1, "unterminated %%{ construct"); p[-1] = '\0'; if (*p) p++; @@ -997,7 +997,7 @@ static Token *tokenize(char *line) if (*p) { p++; } else { - nasm_warnf(ERR_PASS1, "unterminated string"); + nasm_warn(ERR_PASS1, "unterminated string"); /* Handling unterminated strings by UNV */ /* type = -1; */ } @@ -1911,7 +1911,7 @@ static bool if_condition(Token * tline, enum preproc_token ct) mmac = mmac->next; } if (tline && tline->next) - nasm_warnf(ERR_PASS1, "trailing garbage after %%ifmacro ignored"); + nasm_warn(ERR_PASS1, "trailing garbage after %%ifmacro ignored"); nasm_free(searching.name); j = found; break; @@ -1971,7 +1971,7 @@ iftype: if (!evalresult) return -1; if (tokval.t_type) - nasm_warnf(ERR_PASS1, "trailing garbage after expression ignored"); + nasm_warn(ERR_PASS1, "trailing garbage after expression ignored"); if (!is_simple(evalresult)) { nasm_nonfatal("non-constant value given to `%s'", pp_directives[ct]); @@ -2005,7 +2005,7 @@ static bool define_smacro(Context *ctx, const char *mname, bool casesense, if (smacro_defined(ctx, mname, nparam, &smac, casesense)) { if (!smac) { - nasm_warnf(ERR_PASS1, "single-line macro `%s' defined both with and" + nasm_warn(ERR_PASS1, "single-line macro `%s' defined both with and" " without parameters", mname); /* * Some instances of the old code considered this a failure, @@ -2138,7 +2138,7 @@ static bool parse_mmacro_spec(Token *tline, MMacro *def, const char *directive) *! warns when a macro has more default parameters than optional parameters. *! See \k{mlmacdef} for why might want to disable this warning. */ - nasm_warnf(ERR_PASS1|WARN_MACRO_DEFAULTS, + nasm_warn(ERR_PASS1|WARN_MACRO_DEFAULTS, "too many default macro parameters in macro `%s'", def->name); } @@ -2515,7 +2515,7 @@ static int do_directive(Token *tline, char **output) case PP_CLEAR: if (tline->next) - nasm_warnf(ERR_PASS1, "trailing garbage after `%%clear' ignored"); + nasm_warn(ERR_PASS1, "trailing garbage after `%%clear' ignored"); free_macros(); init_macros(); free_tlist(origline); @@ -2531,7 +2531,7 @@ static int do_directive(Token *tline, char **output) return DIRECTIVE_FOUND; /* but we did _something_ */ } if (t->next) - nasm_warnf(ERR_PASS1, "trailing garbage after `%%depend' ignored"); + nasm_warn(ERR_PASS1, "trailing garbage after `%%depend' ignored"); p = t->text; if (t->type != TOK_INTERNAL_STRING) nasm_unquote_cstr(p, i); @@ -2550,7 +2550,7 @@ static int do_directive(Token *tline, char **output) return DIRECTIVE_FOUND; /* but we did _something_ */ } if (t->next) - nasm_warnf(ERR_PASS1, "trailing garbage after `%%include' ignored"); + nasm_warn(ERR_PASS1, "trailing garbage after `%%include' ignored"); p = t->text; if (t->type != TOK_INTERNAL_STRING) nasm_unquote_cstr(p, i); @@ -2592,7 +2592,7 @@ static int do_directive(Token *tline, char **output) return DIRECTIVE_FOUND; /* but we did _something_ */ } if (tline->next) - nasm_warnf(ERR_PASS1, "trailing garbage after `%%use' ignored"); + nasm_warn(ERR_PASS1, "trailing garbage after `%%use' ignored"); if (tline->type == TOK_STRING) nasm_unquote_cstr(tline->text, i); use_pkg = nasm_stdmac_find_package(tline->text); @@ -2621,7 +2621,7 @@ static int do_directive(Token *tline, char **output) return DIRECTIVE_FOUND; /* but we did _something_ */ } if (tline->next) - nasm_warnf(ERR_PASS1, "trailing garbage after `%s' ignored", + nasm_warn(ERR_PASS1, "trailing garbage after `%s' ignored", pp_directives[i]); p = nasm_strdup(tline->text); } else { @@ -2726,7 +2726,7 @@ issue_error: case COND_ELSE_TRUE: case COND_ELSE_FALSE: - nasm_warnf(ERR_PASS1|ERR_PP_PRECOND, + nasm_warn(ERR_PASS1|ERR_PP_PRECOND, "`%%elif' after `%%else' ignored"); istk->conds->state = COND_NEVER; break; @@ -2751,7 +2751,7 @@ issue_error: case PP_ELSE: if (tline->next) - nasm_warnf(ERR_PASS1|ERR_PP_PRECOND, + nasm_warn(ERR_PASS1|ERR_PP_PRECOND, "trailing garbage after `%%else' ignored"); if (!istk->conds) nasm_fatal("`%%else: no matching `%%if'"); @@ -2770,7 +2770,7 @@ issue_error: case COND_ELSE_TRUE: case COND_ELSE_FALSE: - nasm_warnf(ERR_PASS1|ERR_PP_PRECOND, + nasm_warn(ERR_PASS1|ERR_PP_PRECOND, "`%%else' after `%%else' ignored."); istk->conds->state = COND_NEVER; break; @@ -2780,7 +2780,7 @@ issue_error: case PP_ENDIF: if (tline->next) - nasm_warnf(ERR_PASS1|ERR_PP_PRECOND, + nasm_warn(ERR_PASS1|ERR_PP_PRECOND, "trailing garbage after `%%endif' ignored"); if (!istk->conds) nasm_fatal("`%%endif': no matching `%%if'"); @@ -2820,7 +2820,7 @@ issue_error: || defining->plus) && (defining->nparam_min <= mmac->nparam_max || mmac->plus)) { - nasm_warnf(ERR_PASS1, "redefining multi-line macro `%s'", + nasm_warn(ERR_PASS1, "redefining multi-line macro `%s'", defining->name); return DIRECTIVE_FOUND; } @@ -2918,7 +2918,7 @@ issue_error: if (!evalresult) return DIRECTIVE_FOUND; if (tokval.t_type) - nasm_warnf(ERR_PASS1, "trailing garbage after expression ignored"); + nasm_warn(ERR_PASS1, "trailing garbage after expression ignored"); if (!is_simple(evalresult)) { nasm_nonfatal("non-constant value given to `%%rotate'"); return DIRECTIVE_FOUND; @@ -2966,7 +2966,7 @@ issue_error: return DIRECTIVE_FOUND; } if (tokval.t_type) - nasm_warnf(ERR_PASS1, "trailing garbage after expression ignored"); + nasm_warn(ERR_PASS1, "trailing garbage after expression ignored"); if (!is_simple(evalresult)) { nasm_nonfatal("non-constant value given to `%%rep'"); return DIRECTIVE_FOUND; @@ -2982,7 +2982,7 @@ issue_error: *! warns about negative counts given to the \c{%rep} *! preprocessor directive. */ - nasm_warnf(ERR_PASS2|WARN_NEGATIVE_REP, + nasm_warn(ERR_PASS2|WARN_NEGATIVE_REP, "negative `%%rep' count: %"PRId64, count); count = 0; } else { @@ -3163,7 +3163,7 @@ issue_error: return DIRECTIVE_FOUND; } if (tline->next) - nasm_warnf(ERR_PASS1, "trailing garbage after macro name ignored"); + nasm_warn(ERR_PASS1, "trailing garbage after macro name ignored"); /* Find the context that symbol belongs to */ ctx = get_ctx(tline->text, &mname); @@ -3295,7 +3295,7 @@ issue_error: return DIRECTIVE_FOUND; /* but we did _something_ */ } if (t->next) - nasm_warnf(ERR_PASS1, "trailing garbage after `%%pathsearch' ignored"); + nasm_warn(ERR_PASS1, "trailing garbage after `%%pathsearch' ignored"); p = t->text; if (t->type != TOK_INTERNAL_STRING) nasm_unquote(p, NULL); @@ -3554,7 +3554,7 @@ issue_error: } if (tokval.t_type) - nasm_warnf(ERR_PASS1, "trailing garbage after expression ignored"); + nasm_warn(ERR_PASS1, "trailing garbage after expression ignored"); if (!is_simple(evalresult)) { nasm_nonfatal("non-constant value given to `%%%sassign'", @@ -4311,7 +4311,7 @@ again: *! with the wrong number of parameters. See \k{mlmacover} for an *! example of why you might want to disable this warning. */ - nasm_warnf(ERR_PASS1|WARN_MACRO_PARAMS, + nasm_warn(ERR_PASS1|WARN_MACRO_PARAMS, "macro `%s' exists, " "but not taking %d parameters", mstart->text, nparam); @@ -4561,7 +4561,7 @@ static MMacro *is_mmacro(Token * tline, Token *** params_array) */ if (m->in_progress > m->max_depth) { if (m->max_depth > 0) { - nasm_warn("reached maximum recursion depth of %i", + nasm_warn(WARN_OTHER, "reached maximum recursion depth of %i", m->max_depth); } nasm_free(params); @@ -4612,7 +4612,7 @@ static MMacro *is_mmacro(Token * tline, Token *** params_array) * After all that, we didn't find one with the right number of * parameters. Issue a warning, and fail to expand the macro. */ - nasm_warnf(ERR_PASS1|WARN_MACRO_PARAMS, + nasm_warn(ERR_PASS1|WARN_MACRO_PARAMS, "macro `%s' exists, but not taking %d parameters", tline->text, nparam); nasm_free(params); @@ -5266,7 +5266,7 @@ static void pp_pre_define(char *definition) if (space->next->type != TOK_PREPROC_ID && space->next->type != TOK_ID) - nasm_warn("pre-defining non ID `%s\'\n", definition); + nasm_warn(WARN_OTHER, "pre-defining non ID `%s\'\n", definition); l = nasm_malloc(sizeof(Line)); l->next = predef; |