whitespace

This commit is contained in:
Bill Currie 2006-07-23 01:34:14 +00:00 committed by Jeff Teunissen
parent 120bd66ccc
commit 7d2784e1bc
3 changed files with 8 additions and 9 deletions

View file

@ -215,9 +215,8 @@ GIB_Buffer_Push_Sstack (struct cbuf_s *cbuf)
gib_buffer_data_t *g = GIB_DATA (cbuf);
if (++g->stack.p > g->stack.size) {
g->stack.values =
realloc (g->stack.values,
sizeof (struct gib_dsarray_s) * g->stack.p);
g->stack.values = realloc (g->stack.values,
sizeof (struct gib_dsarray_s) * g->stack.p);
g->stack.values[g->stack.p - 1].dstrs = 0;
g->stack.values[g->stack.p - 1].size =
g->stack.values[g->stack.p - 1].realsize = 0;

View file

@ -135,8 +135,8 @@ GIB_Var_Get_Complex (hashtab_t ** first, hashtab_t ** second, char *key,
return 0;
else if (index >= var->size) {
if (create) {
var->array =
realloc (var->array, (index + 1) * sizeof (struct gib_varray_s));
var->array = realloc (var->array,
(index + 1) * sizeof (struct gib_varray_s));
memset (var->array + var->size, 0,
(index + 1 - var->size) * sizeof (struct gib_varray_s));
var->size = index + 1;
@ -191,8 +191,8 @@ GIB_Var_Get_Very_Complex (hashtab_t ** first, hashtab_t ** second, dstring_t *ke
}
if (index >= var->size) {
if (create) {
var->array =
realloc (var->array, (index + 1) * sizeof (struct gib_varray_s));
var->array = realloc (var->array,
(index + 1) * sizeof (struct gib_varray_s));
memset (var->array + var->size, 0,
(index + 1 - var->size) * sizeof (struct gib_varray_s));
var->size = index + 1;

View file

@ -201,8 +201,8 @@ Mod_LoadAliasModel (model_t *mod, void *buffer, cache_allocator_t allocator)
Sys_Error ("model %s has no triangles", mod->name);
if (pmodel->numtris > triangles_size) {
triangles =
realloc (triangles, pmodel->numtris * sizeof (mtriangle_t));
triangles = realloc (triangles,
pmodel->numtris * sizeof (mtriangle_t));
if (!triangles)
Sys_Error ("model_alias: out of memory");
triangles_size = pmodel->numtris;