|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 436 (0x1b4)
Types: TextFile
Names: »trace.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
└─⟦this⟧ »EUUGD11/euug-87hel/sec8/multivol/trace.c«
#ifdef DEBUG /* Only used if DEBUG is defined */
#include <stdio.h>
int tron; /* global = trace on */
char tr[160];
strace(file, line, step)
char *file, *step;
int line;
{
static int indent = 0;
register i;
if (*step == '-')
indent--;
if (tron) {
fprintf(stderr, "%14s: %5d: ", file, line);
for (i = indent; i--; )
fprintf(stderr, ". ");
fprintf(stderr, "%s\n", step);
}
if (*step == '+')
indent++;
}
#endif