Mercurial > ~mikael > mcabber > hg
comparison mcabber/libjabber/xmlparse.c @ 235:f7f07794d2df
[/trunk] Changeset 248 by mikael
* Try to kill some warnings
author | mikael |
---|---|
date | Fri, 10 Jun 2005 18:42:38 +0000 |
parents | bf3d6e241714 |
children | 0aa9015f06df |
comparison
equal
deleted
inserted
replaced
234:16793da74564 | 235:f7f07794d2df |
---|---|
188 static Processor prologProcessor; | 188 static Processor prologProcessor; |
189 static Processor prologInitProcessor; | 189 static Processor prologInitProcessor; |
190 static Processor contentProcessor; | 190 static Processor contentProcessor; |
191 static Processor cdataSectionProcessor; | 191 static Processor cdataSectionProcessor; |
192 static Processor epilogProcessor; | 192 static Processor epilogProcessor; |
193 static Processor errorProcessor; | 193 /* static Processor errorProcessor; */ |
194 static Processor externalEntityInitProcessor; | 194 static Processor externalEntityInitProcessor; |
195 static Processor externalEntityInitProcessor2; | 195 static Processor externalEntityInitProcessor2; |
196 static Processor externalEntityInitProcessor3; | 196 static Processor externalEntityInitProcessor3; |
197 static Processor externalEntityContentProcessor; | 197 static Processor externalEntityContentProcessor; |
198 | 198 |
2331 } | 2331 } |
2332 eventPtr = s = next; | 2332 eventPtr = s = next; |
2333 } | 2333 } |
2334 } | 2334 } |
2335 | 2335 |
2336 /* | |
2336 static | 2337 static |
2337 enum XML_Error errorProcessor(XML_Parser parser, | 2338 enum XML_Error errorProcessor(XML_Parser parser, |
2338 const char *s, | 2339 const char *s, |
2339 const char *end, | 2340 const char *end, |
2340 const char **nextPtr) | 2341 const char **nextPtr) |
2341 { | 2342 { |
2342 return errorCode; | 2343 return errorCode; |
2343 } | 2344 } |
2345 */ | |
2344 | 2346 |
2345 static enum XML_Error | 2347 static enum XML_Error |
2346 storeAttributeValue(XML_Parser parser, const ENCODING *enc, int isCdata, | 2348 storeAttributeValue(XML_Parser parser, const ENCODING *enc, int isCdata, |
2347 const char *ptr, const char *end, | 2349 const char *ptr, const char *end, |
2348 STRING_POOL *pool) | 2350 STRING_POOL *pool) |
2481 static | 2483 static |
2482 enum XML_Error storeEntityValue(XML_Parser parser, | 2484 enum XML_Error storeEntityValue(XML_Parser parser, |
2483 const char *entityTextPtr, | 2485 const char *entityTextPtr, |
2484 const char *entityTextEnd) | 2486 const char *entityTextEnd) |
2485 { | 2487 { |
2486 const ENCODING *internalEnc = ns ? XmlGetInternalEncodingNS() : XmlGetInternalEncoding(); | 2488 /* const ENCODING *internalEnc = ns ? XmlGetInternalEncodingNS() : XmlGetInternalEncoding(); */ |
2487 STRING_POOL *pool = &(dtd.pool); | 2489 STRING_POOL *pool = &(dtd.pool); |
2488 entityTextPtr += encoding->minBytesPerChar; | 2490 entityTextPtr += encoding->minBytesPerChar; |
2489 entityTextEnd -= encoding->minBytesPerChar; | 2491 entityTextEnd -= encoding->minBytesPerChar; |
2490 for (;;) { | 2492 for (;;) { |
2491 const char *next; | 2493 const char *next; |