Make equal_space a preprocessor constant

This commit is contained in:
Kp 2015-01-29 04:27:35 +00:00
parent c2aa2c2e4b
commit b031e449de
3 changed files with 2 additions and 7 deletions

View file

@ -173,8 +173,8 @@ extern int Num_bitmap_files;
extern int Num_sound_files;
extern ubyte bogus_bitmap_initialized;
extern digi_sound bogus_sound;
extern const char space_tab[3];
extern const char equal_space[4];
#define space_tab " \t"
#define equal_space " \t="
#if defined(DXX_BUILD_DESCENT_I)
extern hashtable AllBitmapsNames;
extern hashtable AllDigiSndNames;

View file

@ -130,8 +130,6 @@ int linenum;
//------------------- Useful macros and variables ---------------
#define IFTOK(str) if (!strcmp(arg, str))
const char space_tab[3] = " \t";
const char equal_space[4] = " \t=";
//---------------------------------------------------------------
int compute_average_pixel(grs_bitmap *n)

View file

@ -1884,9 +1884,6 @@ static void bm_read_d1_tmap_nums(PHYSFS_file *d1pig)
}
}
const char space_tab[3] = " \t";
const char equal_space[4] = " \t=";
// this function is at the same position in the d1 shareware piggy loading
// algorithm as bm_load_sub in main/bmread.c
static int get_d1_bm_index(char *filename, PHYSFS_file *d1_pig) {