Some reformating of recent code, Daniel

This commit is contained in:
Daniel Veillard 2004-05-05 19:22:30 +00:00
parent 8707604674
commit 3af3b596e3

View File

@ -177,15 +177,21 @@ static int options = 0;
* *
************************************************************************/
static void OOM(void) {
static void
OOM(void)
{
fprintf(stderr, "Ran out of memory needs > %d bytes\n", maxmem);
progresult = 9;
}
static void myFreeFunc(void *mem) {
static void
myFreeFunc(void *mem)
{
xmlMemFree(mem);
}
static void *myMallocFunc(size_t size) {
static void *
myMallocFunc(size_t size)
{
void *ret;
ret = xmlMemMalloc(size);
@ -198,7 +204,9 @@ static void *myMallocFunc(size_t size) {
}
return (ret);
}
static void *myReallocFunc(void *mem, size_t size) {
static void *
myReallocFunc(void *mem, size_t size)
{
void *ret;
ret = xmlMemRealloc(mem, size);
@ -211,7 +219,9 @@ static void *myReallocFunc(void *mem, size_t size) {
}
return (ret);
}
static char *myStrdupFunc(const char *str) {
static char *
myStrdupFunc(const char *str)
{
char *ret;
ret = xmlMemoryStrdup(str);
@ -224,7 +234,6 @@ static char *myStrdupFunc(const char *str) {
}
return (ret);
}
/************************************************************************
* *
* Internal timing routines to remove the necessity to have *