mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
Quote string values when dumping globals.
Much nicer :)
This commit is contained in:
parent
eb86a66ce5
commit
1d060d1ac1
3 changed files with 7 additions and 7 deletions
|
@ -50,8 +50,8 @@ qfcc_LDADD= $(QFCC_LIBS)
|
|||
qfcc_DEPENDENCIES= $(QFCC_DEPS)
|
||||
|
||||
qfprogs_SOURCES= \
|
||||
disassemble.c dump_globals.c dump_lines.c dump_modules.c obj_file.c \
|
||||
stub.c qfprogs.c dump_strings.c
|
||||
disassemble.c dump_globals.c dump_lines.c dump_modules.c dump_strings.c \
|
||||
obj_file.c qfprogs.c strpool.c stub.c
|
||||
qfprogs_LDADD= $(QFCC_LIBS)
|
||||
qfprogs_DEPENDENCIES= $(QFCC_DEPS)
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
#include "obj_type.h"
|
||||
#include "qfprogs.h"
|
||||
#include "reloc.h"
|
||||
#include "strpool.h"
|
||||
|
||||
static int
|
||||
cmp (const void *_a, const void *_b)
|
||||
|
@ -81,7 +82,7 @@ dump_def (progs_t *pr, ddef_t *def, int indent)
|
|||
break;
|
||||
case ev_string:
|
||||
comment = va (" %d \"%s\"", G_INT (pr, offset),
|
||||
pr->pr_strings + G_INT (pr, offset));
|
||||
quote_string (pr->pr_strings + G_INT (pr, offset)));
|
||||
break;
|
||||
case ev_float:
|
||||
comment = va (" %g", G_FLOAT (pr, offset));
|
||||
|
|
|
@ -4,10 +4,12 @@
|
|||
|
||||
#include "class.h"
|
||||
#include "codespace.h"
|
||||
#include "diagnostic.h"
|
||||
#include "debug.h"
|
||||
#include "def.h"
|
||||
#include "defspace.h"
|
||||
#include "emit.h"
|
||||
#include "expr.h"
|
||||
#include "function.h"
|
||||
#include "obj_file.h"
|
||||
#include "options.h"
|
||||
|
@ -29,7 +31,4 @@ int function_parms (function_t *f, byte *parm_size) {return 0;}
|
|||
pr_auxfunction_t *new_auxfunction (void) {return 0;}
|
||||
ddef_t *new_local (void) {return 0;}
|
||||
void def_to_ddef (def_t *def, ddef_t *ddef, int aux) {}
|
||||
int strpool_addstr (strpool_t *strpool, const char *str) {return 0;}
|
||||
strpool_t *strpool_new (void) {return 0;}
|
||||
void strpool_delete (strpool_t *strpool) {}
|
||||
strpool_t *strpool_build (const char *strings, int size) {return 0;}
|
||||
expr_t *warning (expr_t *e, const char *fmt, ...) {return 0;}
|
||||
|
|
Loading…
Reference in a new issue