Browse Source

engine: rename Q_cleanstr to something more meaningful

pull/2/head
Velaron 3 years ago committed by a1batross
parent
commit
15dc25d2cd
  1. 2
      engine/common/sys_con.c
  2. 2
      public/crtlib.c
  3. 2
      public/crtlib.h

2
engine/common/sys_con.c

@ -231,7 +231,7 @@ void Sys_PrintLog( const char *pMsg )
crt_tm = localtime( &crt_time ); crt_tm = localtime( &crt_time );
// strip color codes // strip color codes
Q_cleanstr( pMsg, pMsg ); COM_StripColors( pMsg, pMsg );
// platform-specific output // platform-specific output
#if XASH_ANDROID && !XASH_DEDICATED #if XASH_ANDROID && !XASH_DEDICATED

2
public/crtlib.c

@ -615,7 +615,7 @@ char *Q_strpbrk(const char *s, const char *accept)
return NULL; return NULL;
} }
void Q_cleanstr( const char *in, char *out ) void COM_StripColors( const char *in, char *out )
{ {
while ( *in ) while ( *in )
{ {

2
public/crtlib.h

@ -73,7 +73,7 @@ int Q_vsnprintf( char *buffer, size_t buffersize, const char *format, va_list ar
int Q_snprintf( char *buffer, size_t buffersize, const char *format, ... ) _format( 3 ); int Q_snprintf( char *buffer, size_t buffersize, const char *format, ... ) _format( 3 );
int Q_sprintf( char *buffer, const char *format, ... ) _format( 2 ); int Q_sprintf( char *buffer, const char *format, ... ) _format( 2 );
char *Q_strpbrk(const char *s, const char *accept); char *Q_strpbrk(const char *s, const char *accept);
void Q_cleanstr( char *in, char *out ); void COM_StripColors( const char *in, char *out );
#define Q_memprint( val ) Q_pretifymem( val, 2 ) #define Q_memprint( val ) Q_pretifymem( val, 2 )
char *Q_pretifymem( float value, int digitsafterdecimal ); char *Q_pretifymem( float value, int digitsafterdecimal );
char *va( const char *format, ... ) _format( 1 ); char *va( const char *format, ... ) _format( 1 );

Loading…
Cancel
Save