2008-05-23 20:56:24 +00:00
|
|
|
#ifndef XMLRPC_C_UTIL_INT_H_INCLUDED
|
|
|
|
#define XMLRPC_C_UTIL_INT_H_INCLUDED
|
|
|
|
|
2012-10-13 11:37:25 -05:00
|
|
|
/* This file contains facilities for use by Xmlrpc-c code, but not intended
|
|
|
|
to be included in a user compilation.
|
|
|
|
|
|
|
|
Names in here might conflict with other names in a user's compilation
|
|
|
|
if included in a user compilation.
|
|
|
|
|
|
|
|
The facilities may change in future releases.
|
|
|
|
*/
|
|
|
|
|
2008-05-23 20:56:24 +00:00
|
|
|
#include "util.h"
|
|
|
|
|
2014-02-21 16:36:30 -05:00
|
|
|
#ifndef MIN
|
2008-05-23 20:56:24 +00:00
|
|
|
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
2014-02-21 16:36:30 -05:00
|
|
|
#endif
|
|
|
|
#ifndef MAX
|
2008-05-23 20:56:24 +00:00
|
|
|
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
2014-02-21 16:36:30 -05:00
|
|
|
#endif
|
2008-05-23 20:56:24 +00:00
|
|
|
|
|
|
|
/* When we deallocate a pointer in a struct, we often replace it with
|
|
|
|
** this and throw in a few assertions here and there. */
|
|
|
|
#define XMLRPC_BAD_POINTER ((void*) 0xDEADBEEF)
|
|
|
|
|
|
|
|
#endif
|