* 06/2000
* HISTORY
* $Log$
+ * Revision 1.3 2002/08/22 01:25:50 sniper
+ * kill some compile warnings
+ *
* Revision 1.2 2002/07/05 04:43:53 danda
* merged in updates from SF project. bring php repository up to date with xmlrpc-epi version 0.51
*
******/
#include <stdlib.h>
+#include <string.h>
#include "simplestring.h"
#define my_free(thing) if(thing) {free(thing); thing = 0;}
* 06/2000
* HISTORY
* $Log$
+ * Revision 1.3.4.1 2002/11/27 04:07:00 fmk
+ * MFH
+ *
* Revision 1.3 2002/07/05 04:43:53 danda
* merged in updates from SF project. bring php repository up to date with xmlrpc-epi version 0.51
*
#endif
#include <stdlib.h>
#include <string.h>
+#include <ctype.h>
#include "xml_element.h"
#include "queue.h"
}
/* print buf to file */
-static file_out_fptr(void *f, const char *text, int size)
+static int file_out_fptr(void *f, const char *text, int size)
{
fputs(text, (FILE *)f);
+ return 0;
}
/* print buf to simplestring */
-static simplestring_out_fptr(void *f, const char *text, int size)
+static int simplestring_out_fptr(void *f, const char *text, int size)
{
simplestring* buf = (simplestring*)f;
if(buf) {
simplestring_addn(buf, text, size);
}
+ return 0;
}
/****f* xml_element/xml_elem_serialize_to_string
if(byte_idx >= 0) {
snprintf(buf,
sizeof(buf),
- "\n\tdata beginning %i before byte index: %s\n",
+ "\n\tdata beginning %ld before byte index: %s\n",
byte_idx > 10 ? 10 : byte_idx,
in_buf + (byte_idx > 10 ? byte_idx - 10 : byte_idx));
}
"\tdescription: %s\n"
"\tline: %i\n"
"\tcolumn: %i\n"
- "\tbyte index: %i\n"
+ "\tbyte index: %ld\n"
"\ttotal bytes: %i\n%s ",
err_code, error_str, line_num,
col_num, byte_idx, byte_total, buf);
* 9/1999 - 10/2000
* HISTORY
* $Log$
+ * Revision 1.4 2002/07/05 04:43:53 danda
+ * merged in updates from SF project. bring php repository up to date with xmlrpc-epi version 0.51
+ *
* Revision 1.22 2002/03/09 23:15:44 danda
* add fault interrogation funcs
*
#include <string.h>
#include <stdarg.h>
#include <time.h>
+#include <ctype.h>
#include "queue.h"
#include "xmlrpc.h"
XMLRPC_ERROR_CODE code;
char buf[1024];
snprintf(buf, sizeof(buf),
- "error occurred at line %i, column %i, byte index %i",
+ "error occurred at line %ld, column %ld, byte index %ld",
error->line, error->column, error->byte_index);
/* expat specific errors */
return v;
}
-static const char* get_string(const char* buf, int bDup) {
- if(bDup) {
- return strdup(buf);
- }
- return buf;
-}
-
/*******/
/****f* VALUE/XMLRPC_SetValueID_Case
val = XMLRPC_CreateValueEmpty();
if(val) {
- XMLRPC_VECTOR *pSIV = NULL;
-
if(XMLRPC_SetIsVector(val, type)) {
if(id) {
const char *pSVI = NULL;
}
}
break;
+ default:
+ break;
}
}
return xReturn;
return "struct";
}
}
+ return "unknown";
}
/****f* VALUE/XMLRPC_ServerFindMethod
* Dan Libby, aka danda (dan@libby.com)
* HISTORY
* $Log$
+ * Revision 1.3 2002/07/05 04:43:53 danda
+ * merged in updates from SF project. bring php repository up to date with xmlrpc-epi version 0.51
+ *
* Revision 1.9 2001/09/29 21:58:05 danda
* adding cvs log to history section
*
const char* ptype = !strcmp(el->name, "value") ? type : basetype;
if(ptype) {
if(Q_Size(&el->children) &&
- !strcmp(ptype, "array") || !strcmp(ptype, "struct") || !strcmp(ptype, "mixed")) {
+ (!strcmp(ptype, "array") || !strcmp(ptype, "struct") || !strcmp(ptype, "mixed"))) {
xSubList = XMLRPC_CreateVector("member", xmlrpc_vector_array);
if(xSubList) {