mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-23 11:11:22 +00:00
Not labeling temps/blocks if opts_dump isn't specified
This commit is contained in:
parent
7fec608417
commit
8e990b65f3
1 changed files with 10 additions and 3 deletions
13
ast.c
13
ast.c
|
@ -720,10 +720,17 @@ void ast_function_delete(ast_function *self)
|
|||
|
||||
const char* ast_function_label(ast_function *self, const char *prefix)
|
||||
{
|
||||
size_t id = (self->labelcount++);
|
||||
size_t len = strlen(prefix);
|
||||
size_t id;
|
||||
size_t len;
|
||||
char *from;
|
||||
|
||||
char *from = self->labelbuf + sizeof(self->labelbuf)-1;
|
||||
if (!opts_dump)
|
||||
return NULL;
|
||||
|
||||
id = (self->labelcount++);
|
||||
len = strlen(prefix);
|
||||
|
||||
from = self->labelbuf + sizeof(self->labelbuf)-1;
|
||||
*from-- = 0;
|
||||
do {
|
||||
unsigned int digit = id % 10;
|
||||
|
|
Loading…
Reference in a new issue