mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
A touch of whitespace.
This commit is contained in:
parent
281e203545
commit
00c87434bf
1 changed files with 15 additions and 5 deletions
|
@ -179,11 +179,21 @@ static dstring_t *linker_current_file;
|
|||
static void
|
||||
linker_type_mismatch (qfo_def_t *def, qfo_def_t *prev)
|
||||
{
|
||||
def_error (def, "type mismatch for `%s' `%s'",
|
||||
WORKSTR (def->name),
|
||||
QFO_TYPESTR (work, def->type));
|
||||
const char *def_encoding;
|
||||
const char *prev_encoding;
|
||||
|
||||
if (def->type < 0)
|
||||
def_encoding = QFO_GETSTR (work, -def->type);
|
||||
else
|
||||
def_encoding = QFO_TYPESTR (work, def->type);
|
||||
if (prev->type < 0)
|
||||
prev_encoding = QFO_GETSTR (work, -prev->type);
|
||||
else
|
||||
prev_encoding = QFO_TYPESTR (work, prev->type);
|
||||
def_error (def, "type mismatch for `%s' `%s'", WORKSTR (def->name),
|
||||
def_encoding);
|
||||
def_error (prev, "previous definition `%s'",
|
||||
QFO_TYPESTR (work, prev->type));
|
||||
prev_encoding);
|
||||
}
|
||||
|
||||
/** Create a new def reference.
|
||||
|
@ -386,7 +396,7 @@ process_type_def (defref_t *ref, qfo_mspace_t *space, qfo_def_t *old)
|
|||
// take care of any cross-references.
|
||||
|
||||
REF (ref)->offset = alloc_data (qfo_type_space, old_type->size);
|
||||
new_type = WORKTYPE(REF (ref)->offset);
|
||||
new_type = WORKTYPE (REF (ref)->offset);
|
||||
memcpy (new_type, old_type, old_type->size * sizeof (pr_type_t));
|
||||
define_def (ref, extern_type_defs, defined_type_defs);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue