remove silly msghandling.cxx

This commit is contained in:
David Rose 2009-07-22 01:09:36 +00:00
parent 2d3fd6e709
commit 3e8b636090
6 changed files with 0 additions and 69 deletions

View File

@ -34,7 +34,6 @@
tinyOsxGraphicsPipe.I tinyOsxGraphicsPipe.h \
tinyOsxGraphicsWindow.h tinyOsxGraphicsWindow.I \
$[if $[IS_OSX],tinyOsxGraphicsWindow.mm,] \
msghandling.h \
zbuffer.h zfeatures.h zgl.h \
zline.h zmath.h \
ztriangle_1.cxx ztriangle_2.cxx \
@ -53,7 +52,6 @@
init.cxx \
td_light.cxx \
memory.cxx \
msghandling.cxx \
specbuf.cxx \
store_pixel.cxx \
td_texture.cxx \

View File

@ -1,55 +0,0 @@
#include <stdarg.h>
#include <stdio.h>
#ifndef NDEBUG
// Question: doesn't having this kinda defeat the purpose?
#define NDEBUG
#endif
#ifdef NDEBUG
#define NO_DEBUG_OUTPUT
#endif
/* Use this function to output messages when something unexpected
happens (which might be an indication of an error). *Don't* use it
when there's internal errors in the code - these should be handled
by asserts. */
void
tgl_warning(const char *format, ...)
{
#ifndef NO_DEBUG_OUTPUT
va_list args;
va_start(args, format);
fprintf(stderr, "*WARNING* ");
vfprintf(stderr, format, args);
va_end(args);
#endif /* !NO_DEBUG_OUTPUT */
}
/* This function should be used for debug output only. */
void
tgl_trace(const char *format, ...)
{
#ifndef NO_DEBUG_OUTPUT
va_list args;
va_start(args, format);
fprintf(stderr, "*DEBUG* ");
vfprintf(stderr, format, args);
va_end(args);
#endif /* !NO_DEBUG_OUTPUT */
}
/* Use this function to output info about things in the code which
should be fixed (missing handling of special cases, important
features not implemented, known bugs/buglets, ...). */
void
tgl_fixme(const char *format, ...)
{
#ifndef NO_DEBUG_OUTPUT
va_list args;
va_start(args, format);
fprintf(stderr, "*FIXME* ");
vfprintf(stderr, format, args);
va_end(args);
#endif /* !NO_DEBUG_OUTPUT */
}

View File

@ -1,8 +0,0 @@
#ifndef _msghandling_h_
#define _msghandling_h_
extern void tgl_warning(const char *text, ...);
extern void tgl_trace(const char *text, ...);
extern void tgl_fixme(const char *text, ...);
#endif /* _msghandling_h_ */

View File

@ -1,5 +1,4 @@
#include "zgl.h"
#include "msghandling.h"
#include <math.h>
#include <stdlib.h>
@ -44,7 +43,6 @@ specbuf_get_buffer(GLContext *c, const int shininess_i,
return buf;
}
/* overwrite the lru buffer */
/*tgl_trace("overwriting spec buffer :(\n");*/
oldest->shininess_i = shininess_i;
oldest->last_used = c->specbuf_used_counter++;
calc_buf(oldest, shininess);

View File

@ -1,5 +1,4 @@
#include "zgl.h"
#include "msghandling.h"
#include <math.h>
static inline float clampf(float a,float min,float max)

View File

@ -5,7 +5,6 @@
#include "init.cxx"
#include "td_light.cxx"
#include "memory.cxx"
#include "msghandling.cxx"
#include "specbuf.cxx"
#include "store_pixel.cxx"
#include "td_texture.cxx"