mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
whitespace
This commit is contained in:
parent
120bd66ccc
commit
7d2784e1bc
3 changed files with 8 additions and 9 deletions
|
@ -215,8 +215,7 @@ 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,
|
||||
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 =
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue