Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

print.h File Reference

#include <stdarg.h>

Defines

#define MEM(ptr)    __pointer_test(ptr, "?" ,__FILE__,__LINE__)

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)

Define Documentation

#define MEM( ptr )   __pointer_test(ptr, "?" ,__FILE__,__LINE__)
 

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 __pointer_test ( void * ptr,
const char * ptrname,
const char * sfile,
int sline )
 

Use MEM() instead.

For internal use only.

void doneShowPercent ( int level )
 

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 interest ( const char * args,
... )
 

info about interesting things

Prints out the given args with preceeding "Interesting:", but nothing more.

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 showPercent ( int level,
int now,
int total,
int & last )
 

void sxpanic ( const char * args,
... )
 

small panic exit

Prints out the given args with preceeding "PANIC:", but nothing more.

function never returns.

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.


Generated at Fri Jul 26 09:33:58 2002 for rvtmod/rvglue by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000