2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2025-01-06 08:05:04 +01:00

public: declare unsafe ParseFile as ParseFileLegacy

This commit is contained in:
Alibek Omarov 2021-10-01 20:12:21 +03:00 committed by a1batross
parent 9e5d5e0ea3
commit cce7c7d782

View File

@ -96,8 +96,8 @@ void COM_Hex2String( uint8_t hex, char *str );
#define COM_CheckString( string ) ( ( !string || !*string ) ? 0 : 1 )
#define COM_CheckStringEmpty( string ) ( ( !*string ) ? 0 : 1 )
const char *_COM_ParseFileSafe( const char *data, char *token, const int size, unsigned int flags, int *len );
#define COM_ParseFileSafe( data, token, size ) _COM_ParseFileSafe( data, token, size, 0, NULL )
#define COM_ParseFile( data, token ) COM_ParseFileSafe( data, token, -1 )
#define COM_ParseFile( data, token, size ) _COM_ParseFileSafe( data, token, size, 0, NULL )
#define COM_ParseFileLegacy( data, token ) COM_ParseFileSafe( data, token, INT_MAX )
int matchpattern( const char *in, const char *pattern, qboolean caseinsensitive );
int matchpattern_with_separator( const char *in, const char *pattern, qboolean caseinsensitive, const char *separators, qboolean wildcard_least_one );