more inline avoidance

This commit is contained in:
Bill Currie 2003-05-07 15:00:17 +00:00
parent 9cab099383
commit 0ebf9d6afc

View file

@ -162,42 +162,9 @@ Xgroup_add(reloc) // relocgroup_add_relocs
Xgroup_add(func) // funcgroup_add_funcs
static void __attribute__ ((format (printf, 2, 3)))
def_error (qfo_def_t *def, const char *fmt, ...)
{
va_list args;
static dstring_t *string;
if (!string)
string = dstring_new ();
va_start (args, fmt);
dvsprintf (string, fmt, args);
va_end (args);
pr.source_file = def->file;
pr.source_line = def->line;
pr.strings = strings;
error (0, "%s", string->str);
}
def_error (qfo_def_t *def, const char *fmt, ...);
static void __attribute__ ((format (printf, 2, 3)))
def_warning (qfo_def_t *def, const char *fmt, ...)
{
va_list args;
static dstring_t *string;
if (!string)
string = dstring_new ();
va_start (args, fmt);
dvsprintf (string, fmt, args);
va_end (args);
pr.source_file = def->file;
pr.source_line = def->line;
pr.strings = strings;
warning (0, "%s", string->str);
}
def_warning (qfo_def_t *def, const char *fmt, ...);
static defref_t *
get_defref (qfo_def_t *def, defgroup_t *defgroup)
@ -900,3 +867,41 @@ linker_add_path (const char *path)
*path_tail = p;
path_tail = &p->next;
}
static void
def_error (qfo_def_t *def, const char *fmt, ...)
{
va_list args;
static dstring_t *string;
if (!string)
string = dstring_new ();
va_start (args, fmt);
dvsprintf (string, fmt, args);
va_end (args);
pr.source_file = def->file;
pr.source_line = def->line;
pr.strings = strings;
error (0, "%s", string->str);
}
static void
def_warning (qfo_def_t *def, const char *fmt, ...)
{
va_list args;
static dstring_t *string;
if (!string)
string = dstring_new ();
va_start (args, fmt);
dvsprintf (string, fmt, args);
va_end (args);
pr.source_file = def->file;
pr.source_line = def->line;
pr.strings = strings;
warning (0, "%s", string->str);
}