summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-11-30 20:25:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-11-30 20:25:58 +0000
commitce2d4f19e3f810b282eb7d47d470d426ff459e1f (patch)
treea49f3e9dd42399756b2ce33a3d91caec535b77ab /plugins/Clist_modern/src/modern_utils.cpp
parent1bb83288c063ce1864e46f6f675751c8c631b530 (diff)
mir_strcmp, mir_strcmpi, mir_wstrcmp, mir_wstrcmpi
git-svn-id: http://svn.miranda-ng.org/main/trunk@11179 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_utils.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_utils.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/plugins/Clist_modern/src/modern_utils.cpp b/plugins/Clist_modern/src/modern_utils.cpp
index 50856ca11f..f0f3f532a5 100644
--- a/plugins/Clist_modern/src/modern_utils.cpp
+++ b/plugins/Clist_modern/src/modern_utils.cpp
@@ -22,19 +22,7 @@ char * __cdecl strstri( char *a, const char *b)
free(y);
return NULL;
}
-int __cdecl mir_strcmpi(const char *a, const char *b)
-{
- if (a == NULL && b == NULL) return 0;
- if (a == NULL || b == NULL) return _stricmp(a?a:"",b?b:"");
- return _stricmp(a,b);
-}
-int __cdecl mir_tstrcmpi(const TCHAR *a, const TCHAR *b)
-{
- if (a == NULL && b == NULL) return 0;
- if (a == NULL || b == NULL) return _tcsicmp(a?a:_T(""),b?b:_T(""));
- return _tcsicmp(a,b);
-}
BOOL __cdecl mir_bool_strcmpi(const char *a, const char *b)
{
if (a == NULL && b == NULL) return 1;
@@ -50,19 +38,10 @@ BOOL __cdecl mir_bool_tstrcmpi(const TCHAR *a, const TCHAR *b)
}
#ifdef strlen
-#undef strcmp
+#undef mir_strcmp
#undef strlen
#endif
-int __cdecl mir_strcmp (const char *a, const char *b)
-{
- if (!(a && b)) return a != b;
- return (strcmp(a,b));
-};
-
-#define strlen(a) mir_strlen(a)
-#define strcmp(a,b) mir_strcmp(a,b)
-
//copy len symbols from string - do not check is it null terminated or len is more then actual
char * strdupn(const char * src, int len)
{