mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-23 03:01:30 +00:00
Fix style
This commit is contained in:
parent
0db41f4279
commit
0d1a740bc7
2 changed files with 4 additions and 4 deletions
2
ftepp.c
2
ftepp.c
|
@ -837,7 +837,7 @@ static bool ftepp_macro_expand(ftepp_t *ftepp, ppmacro *macro, macroparam *param
|
|||
macro_params_find(macro, macro->output[o+1]->value, &pi))
|
||||
{
|
||||
++o;
|
||||
|
||||
|
||||
ftepp_stringify(ftepp, ¶ms[pi]);
|
||||
break;
|
||||
}
|
||||
|
|
6
stat.c
6
stat.c
|
@ -141,7 +141,7 @@ void *stat_mem_allocate(size_t size, size_t line, const char *file, const char *
|
|||
info->expr = expr;
|
||||
info->prev = NULL;
|
||||
info->next = stat_mem_block_root;
|
||||
|
||||
|
||||
/* Write identifier */
|
||||
memcpy(info + 1, IDENT_MEM, IDENT_SIZE);
|
||||
|
||||
|
@ -167,7 +167,7 @@ void *stat_mem_allocate(size_t size, size_t line, const char *file, const char *
|
|||
void stat_mem_deallocate(void *ptr, size_t line, const char *file) {
|
||||
stat_mem_block_t *info = NULL;
|
||||
char *ident = (char *)ptr - IDENT_SIZE;
|
||||
|
||||
|
||||
if (GMQCC_UNLIKELY(!ptr))
|
||||
return;
|
||||
|
||||
|
@ -176,7 +176,7 @@ void stat_mem_deallocate(void *ptr, size_t line, const char *file) {
|
|||
if (!strcmp(ident, IDENT_VEC)) {
|
||||
vector_t *vec = (vector_t*)((char *)ptr - IDENT_VEC_TOP);
|
||||
stat_mem_block_t *block = (stat_mem_block_t*)((char *)vec - IDENT_MEM_TOP);
|
||||
|
||||
|
||||
VALGRIND_MAKE_MEM_DEFINED(block, sizeof(stat_mem_block_t));
|
||||
con_err("internal warning: invalid use of mem_d:\n");
|
||||
con_err("internal warning: vector (used elements: %u, allocated elements: %u)\n",
|
||||
|
|
Loading…
Reference in a new issue