Mercurial > hg > early-roguelike
diff urogue/dictutil.c @ 257:c4b12d2d1dcd
UltraRogue: fix various build failures.
author | John "Elwin" Edwards |
---|---|
date | Tue, 31 Jan 2017 20:33:49 -0500 |
parents | c495a4f288c6 |
children | 13b482bd9e66 |
line wrap: on
line diff
--- a/urogue/dictutil.c Tue Jan 31 19:56:04 2017 -0500 +++ b/urogue/dictutil.c Tue Jan 31 20:33:49 2017 -0500 @@ -28,7 +28,7 @@ #include "dictutil.h" #include "rogue.h" -int trace; +int dict_trace; FILE *ft; @@ -83,13 +83,13 @@ if ( block == NULL ) { ptr = malloc( dt_entry->size ); - if ( trace > 3 ) { + if ( dict_trace > 3 ) { fprintf( ft , "\ndict_load_block allocates %lx bytes at location %p\n" , dt_entry->size , ptr ); } /* endif */ } else { ptr = block; - if ( trace > 3 ) { + if ( dict_trace > 3 ) { fprintf( ft , "\ndict_load_block uses memory at location %p\n" , ptr ); } /* endif */ } /* endif */ @@ -113,7 +113,7 @@ dt_entry->ptr = ptr; - if ( trace > 3 ) { + if ( dict_trace > 3 ) { fprintf( ft , "\nLoaded block\nTOC entry: id:%s offset:%lx size:%lx ptr:%p checksum:%lx type:%d\n" , dict->toc[index].id , dict->toc[index].offset , dict->toc[index].size , dict->toc[index].ptr , @@ -160,7 +160,7 @@ return( FALSE ); } /* endif */ - if ( trace > 3 ) { + if ( dict_trace > 3 ) { fprintf( ft , "\nStored block\nTOC entry: id:%s offset:%lx size:%lx ptr:%p checksum:%lx type:%d\n" , dict->toc[index].id , dict->toc[index].offset , dict->toc[index].size , dict->toc[index].ptr , @@ -418,7 +418,7 @@ } /*********** -** If trace (global) > 0 , signal an error +** If dict_trace (global) > 0 , signal an error ** If severity > 0 , abort ***********/ @@ -426,7 +426,7 @@ { FILE *fpe; - if ( trace > 0 ) { + if ( dict_trace > 0 ) { printf( "%s: %s\n" , header , message ); fpe = fopen( "ERROR.FIL" , "a" ); fprintf( fpe , "\n%s: %s\n" , header , message );