Mercurial > pidgin.yaz
comparison src/protocols/jabber/xmltok_impl.c @ 3127:4e7cefc55971
[gaim-migrate @ 3142]
Upgraded jabber to most recent stable version
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 04 Apr 2002 03:04:57 +0000 |
parents | 424a40f12a6c |
children |
comparison
equal
deleted
inserted
replaced
3126:e883f604174e | 3127:4e7cefc55971 |
---|---|
15 Portions created by James Clark are Copyright (C) 1998, 1999 | 15 Portions created by James Clark are Copyright (C) 1998, 1999 |
16 James Clark. All Rights Reserved. | 16 James Clark. All Rights Reserved. |
17 | 17 |
18 Contributor(s): | 18 Contributor(s): |
19 | 19 |
20 Alternatively, the contents of this file may be used under the terms | |
21 of the GNU General Public License (the "GPL"), in which case the | |
22 provisions of the GPL are applicable instead of those above. If you | |
23 wish to allow use of your version of this file only under the terms of | |
24 the GPL and not to allow others to use your version of this file under | |
25 the MPL, indicate your decision by deleting the provisions above and | |
26 replace them with the notice and other provisions required by the | |
27 GPL. If you do not delete the provisions above, a recipient may use | |
28 your version of this file under either the MPL or the GPL. | |
29 */ | 20 */ |
30 | 21 |
31 #ifndef IS_INVALID_CHAR | 22 #ifndef IS_INVALID_CHAR |
32 #define IS_INVALID_CHAR(enc, ptr, n) (0) | 23 #define IS_INVALID_CHAR(enc, ptr, n) (0) |
33 #endif | 24 #endif |
1389 int PREFIX(getAtts)(const ENCODING *enc, const char *ptr, | 1380 int PREFIX(getAtts)(const ENCODING *enc, const char *ptr, |
1390 int attsMax, ATTRIBUTE *atts) | 1381 int attsMax, ATTRIBUTE *atts) |
1391 { | 1382 { |
1392 enum { other, inName, inValue } state = inName; | 1383 enum { other, inName, inValue } state = inName; |
1393 int nAtts = 0; | 1384 int nAtts = 0; |
1394 int open; | 1385 int open = 0; |
1395 | 1386 |
1396 for (ptr += MINBPC(enc);; ptr += MINBPC(enc)) { | 1387 for (ptr += MINBPC(enc);; ptr += MINBPC(enc)) { |
1397 switch (BYTE_TYPE(enc, ptr)) { | 1388 switch (BYTE_TYPE(enc, ptr)) { |
1398 #define START_NAME \ | 1389 #define START_NAME \ |
1399 if (state == other) { \ | 1390 if (state == other) { \ |