mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-16 07:07:13 +02:00
Enhance the routine implementation further by allowing it to be used as the environment itself and include a few extra helpers to avoid extra checks and lookups.
This commit is contained in:
@ -16,15 +16,6 @@
|
||||
namespace SqMod {
|
||||
namespace Algo {
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#ifdef _WIN32
|
||||
#define sqmod_stricmp(a,b) stricmp(a,b)
|
||||
#define sqmod_strnicmp(a,b,n) strnicmp(a,b,n)
|
||||
#else
|
||||
#define sqmod_stricmp(a,b) strcasecmp(a,b)
|
||||
#define sqmod_strnicmp(a,b,n) strncasecmp(a,b,n)
|
||||
#endif
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* Returns a pointer to the first occurrence of 'needle' in 'haystack'.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user