Comment out fprintf() use inside the library

This commit is contained in:
Ilia Alshanetsky 2008-12-09 17:20:57 +00:00
parent 153310949f
commit a16fb6e4b2
2 changed files with 18 additions and 9 deletions

View file

@ -44,6 +44,9 @@ static const char rcsid[] = "#(@) $Id$";
* 06/2000
* HISTORY
* $Log$
* Revision 1.11 2007/01/01 09:29:33 sebastian
* Bump year.
*
* Revision 1.10 2007/07/30 11:33:49 tony2001
* fix compile warnings (#38257)
*
@ -378,7 +381,7 @@ static void xml_element_serialize(xml_element *el, int (*fptr)(void *data, const
depth++;
if(!el) {
fprintf(stderr, "Nothing to write\n");
/* fprintf(stderr, "Nothing to write\n"); */
return;
}
if(!options) {
@ -725,7 +728,7 @@ xml_element* xml_elem_parse_buf(const char* in_buf, int len, XML_ELEM_INPUT_OPTI
byte_idx > 10 ? 10 : byte_idx,
in_buf + (byte_idx > 10 ? byte_idx - 10 : byte_idx));
}
/*
fprintf(stderr, "expat reports error code %i\n"
"\tdescription: %s\n"
"\tline: %i\n"
@ -734,7 +737,7 @@ xml_element* xml_elem_parse_buf(const char* in_buf, int len, XML_ELEM_INPUT_OPTI
"\ttotal bytes: %i\n%s ",
err_code, error_str, line_num,
col_num, byte_idx, byte_total, buf);
*/
/* error condition */
if(error) {

View file

@ -43,6 +43,12 @@ static const char rcsid[] = "#(@) $Id$";
* 9/1999 - 10/2000
* HISTORY
* $Log$
* Revision 1.13 2008/09/10 00:05:26 felipe
* - Merged fix from SF project (Import Jeff Lawsons patches for XML datetime bug fixes)
* Fixed bugs:
* #45226 (xmlrpc_set_type() segfaults with valid ISO8601 date string)
* #18916 (xmlrpc_set_type() "not working")
*
* Revision 1.12 2007/09/18 19:52:27 iliaa
*
* MFB: Fixed bug #42189 (xmlrpc_set_type() crashes php on invalid datetime
@ -1164,13 +1170,13 @@ int XMLRPC_AddValueToVector(XMLRPC_VALUE target, XMLRPC_VALUE source) {
}
}
else {
fprintf (stderr,
"xmlrpc: attempted to add key/val pair to vector of type array\n");
/* fprintf (stderr,
"xmlrpc: attempted to add key/val pair to vector of type array\n"); */
}
break;
default:
fprintf (stderr,
"xmlrpc: attempted to add value of unknown type to vector\n");
/* fprintf (stderr,
"xmlrpc: attempted to add value of unknown type to vector\n"); */
break;
}
}
@ -1500,8 +1506,8 @@ void XMLRPC_CleanupValue(XMLRPC_VALUE value) {
my_free(value);
break;
default:
fprintf (stderr,
"xmlrpc: attempted to free value of invalid type\n");
/* fprintf (stderr,
"xmlrpc: attempted to free value of invalid type\n"); */
break;
}
}