mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
whitespace
This commit is contained in:
parent
120bd66ccc
commit
7d2784e1bc
3 changed files with 8 additions and 9 deletions
|
@ -215,9 +215,8 @@ GIB_Buffer_Push_Sstack (struct cbuf_s *cbuf)
|
||||||
gib_buffer_data_t *g = GIB_DATA (cbuf);
|
gib_buffer_data_t *g = GIB_DATA (cbuf);
|
||||||
|
|
||||||
if (++g->stack.p > g->stack.size) {
|
if (++g->stack.p > g->stack.size) {
|
||||||
g->stack.values =
|
g->stack.values = realloc (g->stack.values,
|
||||||
realloc (g->stack.values,
|
sizeof (struct gib_dsarray_s) * g->stack.p);
|
||||||
sizeof (struct gib_dsarray_s) * g->stack.p);
|
|
||||||
g->stack.values[g->stack.p - 1].dstrs = 0;
|
g->stack.values[g->stack.p - 1].dstrs = 0;
|
||||||
g->stack.values[g->stack.p - 1].size =
|
g->stack.values[g->stack.p - 1].size =
|
||||||
g->stack.values[g->stack.p - 1].realsize = 0;
|
g->stack.values[g->stack.p - 1].realsize = 0;
|
||||||
|
|
|
@ -135,8 +135,8 @@ GIB_Var_Get_Complex (hashtab_t ** first, hashtab_t ** second, char *key,
|
||||||
return 0;
|
return 0;
|
||||||
else if (index >= var->size) {
|
else if (index >= var->size) {
|
||||||
if (create) {
|
if (create) {
|
||||||
var->array =
|
var->array = realloc (var->array,
|
||||||
realloc (var->array, (index + 1) * sizeof (struct gib_varray_s));
|
(index + 1) * sizeof (struct gib_varray_s));
|
||||||
memset (var->array + var->size, 0,
|
memset (var->array + var->size, 0,
|
||||||
(index + 1 - var->size) * sizeof (struct gib_varray_s));
|
(index + 1 - var->size) * sizeof (struct gib_varray_s));
|
||||||
var->size = index + 1;
|
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 (index >= var->size) {
|
||||||
if (create) {
|
if (create) {
|
||||||
var->array =
|
var->array = realloc (var->array,
|
||||||
realloc (var->array, (index + 1) * sizeof (struct gib_varray_s));
|
(index + 1) * sizeof (struct gib_varray_s));
|
||||||
memset (var->array + var->size, 0,
|
memset (var->array + var->size, 0,
|
||||||
(index + 1 - var->size) * sizeof (struct gib_varray_s));
|
(index + 1 - var->size) * sizeof (struct gib_varray_s));
|
||||||
var->size = index + 1;
|
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);
|
Sys_Error ("model %s has no triangles", mod->name);
|
||||||
|
|
||||||
if (pmodel->numtris > triangles_size) {
|
if (pmodel->numtris > triangles_size) {
|
||||||
triangles =
|
triangles = realloc (triangles,
|
||||||
realloc (triangles, pmodel->numtris * sizeof (mtriangle_t));
|
pmodel->numtris * sizeof (mtriangle_t));
|
||||||
if (!triangles)
|
if (!triangles)
|
||||||
Sys_Error ("model_alias: out of memory");
|
Sys_Error ("model_alias: out of memory");
|
||||||
triangles_size = pmodel->numtris;
|
triangles_size = pmodel->numtris;
|
||||||
|
|
Loading…
Reference in a new issue