1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-26 10:03:34 +03:00

further small changes to elminate most of the remaining warnings.

* error.c trionan.[ch] testThreads.c python/generator.py:
  further small changes to elminate most of the remaining
  warnings.
This commit is contained in:
William M. Brack 2003-08-06 04:43:55 +00:00
parent c193956ee1
commit a71a8ef127
6 changed files with 21 additions and 7 deletions

View File

@ -1,3 +1,9 @@
Wed Aug 6 12:32:11 HKT 2003 William Brack <wbrack@mmm.com.hk>
* error.c trionan.[ch] testThreads.c python/generator.py:
further small changes to elminate most of the remaining
warnings.
Tue Aug 5 23:51:21 HKT 2003 William Brack <wbrack@mmm.com.hk>
* error.c HTMLparser.c testC14N.c testHTML.c testURI.c

View File

@ -11,7 +11,6 @@
#include <stdarg.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h> /* for char constants */
#include <libxml/xmlerror.h>
#include <libxml/xmlmemory.h>
#include <libxml/globals.h>

View File

@ -365,8 +365,8 @@ def print_function_wrapper(name, output, export, include):
if args[1][1] == "char *" or args[1][1] == "xmlChar *":
c_call = "\n if (%s->%s != NULL) xmlFree(%s->%s);\n" % (
args[0][0], args[1][0], args[0][0], args[1][0])
c_call = c_call + " %s->%s = xmlStrdup((const xmlChar *)%s);\n" % (args[0][0],
args[1][0], args[1][0])
c_call = c_call + " %s->%s = (%s)xmlStrdup((const xmlChar *)%s);\n" % (args[0][0],
args[1][0], args[1][1], args[1][0])
else:
c_call = "\n %s->%s = %s;\n" % (args[0][0], args[1][0],
args[1][0])
@ -553,6 +553,7 @@ def buildStubs():
# wrapper.write("#include \"config.h\"\n")
wrapper.write("#include <libxml/xmlversion.h>\n")
wrapper.write("#include <libxml/tree.h>\n")
wrapper.write("#include <libxml/xmlschemastypes.h>\n")
wrapper.write("#include \"libxml_wrap.h\"\n")
wrapper.write("#include \"libxml2-py.h\"\n\n")
for function in functions.keys():

View File

@ -84,7 +84,7 @@ thread_specific_data(void *private_data)
}
int
main()
main(void)
{
unsigned int i, repeat;
unsigned int num_threads = sizeof(testfiles) / sizeof(testfiles[0]);

View File

@ -500,7 +500,8 @@ TRIO_ARGS1((number),
#endif
}
#if 0
/* Temporary fix - this routine is not used anywhere */
/**
Check for finity.
@ -542,6 +543,7 @@ TRIO_ARGS1((number),
#endif
}
#endif
/*
* The sign of NaN is always false
@ -729,6 +731,8 @@ TRIO_ARGS1((number),
return is_negative;
}
#if 0
/* Temporary fix - this routine is not used in libxml */
/**
Examine the class of a number.
@ -745,6 +749,7 @@ TRIO_ARGS1((number),
return trio_fpclassify_and_signbit(number, &dummy);
}
#endif
/** @} SpecialQuantities */

View File

@ -66,11 +66,14 @@ TRIO_PUBLIC int trio_isinf TRIO_PROTO((double number));
/*
* If number is finite return non-zero, otherwise return zero.
*/
#if 0
/* Temporary fix - these 2 routines not used in libxml */
TRIO_PUBLIC int trio_isfinite TRIO_PROTO((double number));
TRIO_PUBLIC int trio_signbit TRIO_PROTO((double number));
TRIO_PUBLIC int trio_fpclassify TRIO_PROTO((double number));
#endif
TRIO_PUBLIC int trio_signbit TRIO_PROTO((double number));
TRIO_PUBLIC int trio_fpclassify_and_signbit TRIO_PROTO((double number, int *is_negative));