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

print.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "print.h"

Functions

int debugstrshare (const char *s1, const char *s2)
void dprintf (const char *sym, const char *args, ...)
void lprintf (int level, const char *args, ...)
void lprintff (int level, const char *args, ...)
void interest (const char *args, ...)
void print_panic (bool show_blabla, const char *args, va_list &ap)
void sxpanic (const char *args, ...)
void xpanic (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

int msglevel
char debugsyms [30] = ""
time_t last_percent_tt = (time_t)0

Function Documentation

void __pointer_test ( void * ptr,
const char * ptrname,
const char * sfile,
int sline )
 

Use MEM() instead.

For internal use only.

int debugstrshare ( const char * s1,
const char * s2 )
 

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 print_panic ( bool show_blabla,
const char * args,
va_list & ap )
 

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.


Variable Documentation

char debugsyms[30] = ""
 

string of symbols for the -XD argument.

See also:
dprintf()

time_t last_percent_tt = (time_t)0
 

int msglevel
 

verbosity level:

  • 0 quiet
  • 1 normal
  • 2 verbose
  • 3 debug


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