NDEBUG fixes
This commit is contained in:
parent
f2e8f50f4d
commit
f79eb381d5
|
@ -12,7 +12,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef RCS
|
#ifdef RCS
|
||||||
static char rcsid[] = "$Id: iff.c,v 1.2 2001-01-20 13:49:14 bradleyb Exp $";
|
static char rcsid[] = "$Id: iff.c,v 1.3 2001-01-22 13:37:46 bradleyb Exp $";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <conf.h>
|
#include <conf.h>
|
||||||
|
@ -273,7 +273,9 @@ int parse_body(FFILE *ifile,long len,iff_bitmap_header *bmheader)
|
||||||
char ignore=0;
|
char ignore=0;
|
||||||
unsigned char *data_end;
|
unsigned char *data_end;
|
||||||
int end_pos;
|
int end_pos;
|
||||||
|
#ifndef NDEBUG
|
||||||
int row_count=0;
|
int row_count=0;
|
||||||
|
#endif
|
||||||
|
|
||||||
width=0;
|
width=0;
|
||||||
depth=0;
|
depth=0;
|
||||||
|
|
|
@ -11,6 +11,8 @@ AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
||||||
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef MACINTOSH
|
#ifdef MACINTOSH
|
||||||
extern ubyte virtual_memory_on;
|
extern ubyte virtual_memory_on;
|
||||||
#endif
|
#endif
|
||||||
|
@ -35,10 +37,9 @@ void mem_validate_heap();
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define free(ptr) do{ free(ptr); ptr=NULL; } while(0)
|
#define d_malloc(size) malloc(size)
|
||||||
|
#define d_free(ptr) do{ free(ptr); ptr=NULL; } while(0)
|
||||||
|
|
||||||
#define MALLOC( var, type, count ) (var=(type *)malloc((count)*sizeof(type)))
|
#define MALLOC( var, type, count ) (var=(type *)malloc((count)*sizeof(type)))
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue