Author: borisk
Date: Fri Jul 4 01:59:34 2008
New Revision: 673966
URL: http://svn.apache.org/viewvc?rev=673966&view=rev
Log:
Use size_t instead of unsigned int. Strip const qualifiers from arguments
passed by value.
Modified:
xerces/c/trunk/src/stricmp.c
xerces/c/trunk/src/stricmp.h
xerces/c/trunk/src/strnicmp.c
xerces/c/trunk/src/strnicmp.h
Modified: xerces/c/trunk/src/stricmp.c
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/src/stricmp.c?rev=673966&r1=673965&r2=673966&view=diff
==============================================================================
--- xerces/c/trunk/src/stricmp.c (original)
+++ xerces/c/trunk/src/stricmp.c Fri Jul 4 01:59:34 2008
@@ -29,7 +29,7 @@
# include <strings.h>
#endif
-int stricmp(const char* const str1, const char* const str2)
+int stricmp(const char* str1, const char* str2)
{
#if HAVE_STRCASECMP
return strcasecmp(str1, str2);
Modified: xerces/c/trunk/src/stricmp.h
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/src/stricmp.h?rev=673966&r1=673965&r2=673966&view=diff
==============================================================================
--- xerces/c/trunk/src/stricmp.h (original)
+++ xerces/c/trunk/src/stricmp.h Fri Jul 4 01:59:34 2008
@@ -26,7 +26,7 @@
extern "C" {
#endif
-extern int stricmp(const char* const str1, const char* const str2);
+extern int stricmp(const char* str1, const char* str2);
#ifdef __cplusplus
}
Modified: xerces/c/trunk/src/strnicmp.c
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/src/strnicmp.c?rev=673966&r1=673965&r2=673966&view=diff
==============================================================================
--- xerces/c/trunk/src/strnicmp.c (original)
+++ xerces/c/trunk/src/strnicmp.c Fri Jul 4 01:59:34 2008
@@ -29,7 +29,7 @@
# include <strings.h>
#endif
-int strnicmp(const char* const str1, const char* const str2, const unsigned
int count)
+int strnicmp(const char* str1, const char* str2, size_t count)
{
#if HAVE_STRNCASECMP
return (count == 0) ? 0 : strncasecmp( str1, str2, count);
Modified: xerces/c/trunk/src/strnicmp.h
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/src/strnicmp.h?rev=673966&r1=673965&r2=673966&view=diff
==============================================================================
--- xerces/c/trunk/src/strnicmp.h (original)
+++ xerces/c/trunk/src/strnicmp.h Fri Jul 4 01:59:34 2008
@@ -22,11 +22,13 @@
#ifndef STRNICMP_H
#define STRNICMP_H
+#include <stddef.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-extern int strnicmp(const char* const str1, const char* const str2, const
unsigned int count);
+extern int strnicmp(const char* str1, const char* str2, size_t count);
#ifdef __cplusplus
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]