diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-10-20 11:58:56 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-11-01 22:17:10 -0700 |
commit | c936bd4315a7dc78de074ac89c5a4d12813421be (patch) | |
tree | 172025343fd992a975548e11dc650a419c2c0241 /utils.c | |
parent | 839ccda42d8b088d94324cd77c4be954859914d3 (diff) |
Remove unused function entry/exit tracking framework
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 59 |
1 files changed, 0 insertions, 59 deletions
@@ -88,65 +88,6 @@ uFree(Opaque ptr) } /***====================================================================***/ -/*** FUNCTION ENTRY TRACKING ***/ -/***====================================================================***/ - -static FILE *entryFile = NULL; -int uEntryLevel; - -Boolean -uSetEntryFile(char *name) -{ - if ((entryFile != NULL) && (entryFile != stderr)) - { - fprintf(entryFile, "switching to %s\n", name ? name : "stderr"); - fclose(entryFile); - } - if (name != NullString) - entryFile = fopen(name, "w"); - else - entryFile = stderr; - if (entryFile == NULL) - { - entryFile = stderr; - return (False); - } - return (True); -} - -void -uEntry(int l, char *s, ...) -{ - int i; - va_list args; - - for (i = 0; i < uEntryLevel; i++) - { - putc(' ', entryFile); - } - va_start(args, s); - vfprintf(entryFile, s, args); - va_end(args); - uEntryLevel += l; -} - -void -uExit(int l, char *rtVal) -{ - int i; - - uEntryLevel -= l; - if (uEntryLevel < 0) - uEntryLevel = 0; - for (i = 0; i < uEntryLevel; i++) - { - putc(' ', entryFile); - } - fprintf(entryFile, "---> %p\n", rtVal); - return; -} - -/***====================================================================***/ /*** PRINT FUNCTIONS ***/ /***====================================================================***/ |