Class hierarchy Compound list File list Compound Members File Members
print.h File Reference
Defines
Functions
- void lprintf (int level, const char *args, ...)
- void lprintff (int level, const char *args, ...)
- void dprintf (const char *sym, const char *args, ...)
- void xpanic (const char *args, ...)
- void sxpanic (const char *args, ...)
- void interest (const char *args, ...)
- void showPercent (int level, int now, int total, int &last)
- void doneShowPercent (int level)
- void __pointer_test (void *ptr, const char *ptrname, const char *sfile, int sline)
Variables
Define Documentation
#define __PRINT_H
#define MEM(ptr)
assert macro
if ptr is NULL,
a "not enough memory" string is printed on screen,
and a brief description of the pointer is written if -XDm
is present
Function Documentation
void lprintf(int level, const char *args, ...)
Message printing
args is printed on screen if level is lower or equal to msglevel
no LF is added
void lprintff(int level, const char *args, ...)
Message printing
args is printed on screen if level is lower or equal to msglevel
no LF is added. output buffer will be flushed
void dprintf(const char *sym, const char *args, ...)
prints out debugging info.
if any character in sym matches any in debugsyms (resp. -XD
), the string will
be printed to screen. No LF is added.
used syms are:
-
'+'
any
-
'p'
parser
-
'o'
option parsing
-
'f'
undone fixes/features
-
'k'
option keeper
-
'm'
memory
-
'd'
file searching / directories
void xpanic(const char *args, ...)
panic exit
Prints out the given args with preceeding "PANIC:" and a brief
description about what to do. Then exits.
function never returns.
void sxpanic(const char *args, ...)
small panic exit
Prints out the given args with preceeding "PANIC:", but nothing
more.
function never returns.
void interest(const char *args, ...)
info about interesting things
Prints out the given args with preceeding "Interesting:", but nothing
more.
void showPercent(int level, int now, int total, int &last)
void doneShowPercent(int level)
void __pointer_test(void *ptr, const char *ptrname, const char *sfile, int sline)
Use MEM instead.
For internal use only.
Variable Documentation
int msglevel
verbosity level:
- 0 quiet
- 1 normal
- 2 verbose
- 3 debug
char debugsyms[30]
string of symbols for the -XD
argument.
-
See also:
-
dprintf()
Generated at Wed May 31 21:08:19 2000 for Rvtmod/rvglue by
written by Dimitri van Heesch, © 1997-1998