diff options
author | snowdrop | 2004-06-03 20:23:02 +0000 |
---|---|---|
committer | snowdrop | 2004-06-03 20:23:02 +0000 |
commit | 55cefa05d48152404dbec4eff03339342265f931 (patch) | |
tree | a0c53be98947aa00f9b94443b4c265444ebaa32a /xsd2c/tr.c | |
parent | ce7dac10cbfaf1f0aa68350f0993184561e1b7b5 (diff) | |
download | csoap-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.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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) { |