summaryrefslogtreecommitdiffstats
path: root/xsd2c/tr.c
diff options
context:
space:
mode:
authorGravatar snowdrop2004-06-03 20:23:02 +0000
committerGravatar snowdrop2004-06-03 20:23:02 +0000
commit55cefa05d48152404dbec4eff03339342265f931 (patch)
treea0c53be98947aa00f9b94443b4c265444ebaa32a /xsd2c/tr.c
parentce7dac10cbfaf1f0aa68350f0993184561e1b7b5 (diff)
downloadcsoap-55cefa05d48152404dbec4eff03339342265f931.tar.gz
csoap-55cefa05d48152404dbec4eff03339342265f931.tar.bz2
fixed typeregistry bug
example : #include "s0:Dictionary.h" instead of #include "Dictionary.h"
Diffstat (limited to 'xsd2c/tr.c')
-rw-r--r--xsd2c/tr.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/xsd2c/tr.c b/xsd2c/tr.c
index 5756e91..7166d72 100644
--- a/xsd2c/tr.c
+++ b/xsd2c/tr.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: tr.c,v 1.1 2004/06/02 11:17:03 snowdrop Exp $
+ * $Id: tr.c,v 1.2 2004/06/03 20:23:03 snowdrop Exp $
*
* CSOAP Project: A SOAP client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -180,6 +180,15 @@ void trRegisterTypeNS(const char* ns, const char* xsdType, const char* cType)
tr_tail = reg;
}
+char* trXSDParseNs(const char* xsdType)
+{
+ int c = 0;
+ while (xsdType[c] != '\0' ) {
+ if (xsdType[c] == ':') return &xsdType[++c];
+ c++;
+ }
+ return xsdType;
+}
void trRegisterListType(const char* xsdType, const char* cType)
{