Use common definition for remove_char
This commit is contained in:
parent
eefdce5b04
commit
6a475c7d0e
|
@ -136,13 +136,6 @@ int linenum;
|
|||
const char space[3] = " \t";
|
||||
const char equal_space[4] = " \t=";
|
||||
|
||||
void remove_char( char * s, char c )
|
||||
{
|
||||
char *p;
|
||||
p = strchr(s,c);
|
||||
if (p) *p = '\0';
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------
|
||||
int compute_average_pixel(grs_bitmap *n)
|
||||
{
|
||||
|
|
|
@ -1654,6 +1654,12 @@ void piggy_close()
|
|||
#endif
|
||||
}
|
||||
|
||||
void remove_char( char * s, char c )
|
||||
{
|
||||
char *p = strchr(s,c);
|
||||
if (p) *p = '\0';
|
||||
}
|
||||
|
||||
#if defined(DXX_BUILD_DESCENT_II)
|
||||
#ifdef EDITOR
|
||||
static int piggy_does_bitmap_exist_slow(const char * name )
|
||||
|
@ -1929,13 +1935,6 @@ static void bm_read_d1_tmap_nums(PHYSFS_file *d1pig)
|
|||
}
|
||||
}
|
||||
|
||||
void remove_char( char * s, char c )
|
||||
{
|
||||
char *p;
|
||||
p = strchr(s,c);
|
||||
if (p) *p = '\0';
|
||||
}
|
||||
|
||||
const char space[3] = " \t";
|
||||
const char equal_space[4] = " \t=";
|
||||
|
||||
|
|
Loading…
Reference in a new issue