Fixed some warnings in xmlparse.c. Thanks a lot to kherron@sgum.mci.com for noticing these warnings, filing a bug, and attaching an attempted fix to the bug report.

git-svn-id: svn://10.0.0.236/trunk@42852 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nisheeth%netscape.com
1999-08-09 23:52:45 +00:00
parent e448cd23a9
commit 4b2a5caee9
2 changed files with 10 additions and 6 deletions

View File

@@ -56,16 +56,18 @@ particular environments. */
*/
#include "nspr.h"
#define malloc(x) PR_Malloc(x)
#define realloc(x, y) PR_Realloc((x), (y))
#define malloc(x) PR_Malloc((size_t)(x))
#define realloc(x, y) PR_Realloc((x), (size_t)(y))
#define calloc(x, y) PR_Calloc((x),(y))
#define free(x) PR_Free(x)
#define memcpy(x, y, z) memcpy((x), (y), (size_t)(z))
#define memmove(x, y, z) memmove((x), (y), (size_t)(z))
#define memcmp(x, y, z) memcmp((x), (y), (size_t)(z))
#if PR_BYTES_PER_INT != 4
typedef PRInt32 int;
#endif
/* Enable Unicode string processing in expat */
#define XML_UNICODE

View File

@@ -56,16 +56,18 @@ particular environments. */
*/
#include "nspr.h"
#define malloc(x) PR_Malloc(x)
#define realloc(x, y) PR_Realloc((x), (y))
#define malloc(x) PR_Malloc((size_t)(x))
#define realloc(x, y) PR_Realloc((x), (size_t)(y))
#define calloc(x, y) PR_Calloc((x),(y))
#define free(x) PR_Free(x)
#define memcpy(x, y, z) memcpy((x), (y), (size_t)(z))
#define memmove(x, y, z) memmove((x), (y), (size_t)(z))
#define memcmp(x, y, z) memcmp((x), (y), (size_t)(z))
#if PR_BYTES_PER_INT != 4
typedef PRInt32 int;
#endif
/* Enable Unicode string processing in expat */
#define XML_UNICODE