mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
Number dot dumps to help identify order
This commit is contained in:
parent
c40f4194e9
commit
82b334e919
1 changed files with 11 additions and 2 deletions
|
@ -40,14 +40,23 @@
|
|||
#include "options.h"
|
||||
#include "strpool.h"
|
||||
|
||||
static function_t *last_func;
|
||||
static int dot_index;
|
||||
|
||||
void
|
||||
dump_dot (const char *stage, void *data,
|
||||
void (*dump_func) (void *data, const char *fname))
|
||||
{
|
||||
char *fname;
|
||||
|
||||
fname = nva ("%s.%s.%s.dot", options.output_file, current_func->name,
|
||||
stage);
|
||||
if (last_func != current_func) {
|
||||
last_func = current_func;
|
||||
dot_index = 0;
|
||||
} else {
|
||||
dot_index++;
|
||||
}
|
||||
fname = nva ("%s.%s.%03d.%s.dot", options.output_file, current_func->name,
|
||||
dot_index, stage);
|
||||
dump_func (data, fname);
|
||||
free (fname);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue