Differences From Artifact [156503de2d]:
- File
src/OFXMLParser.m
— part of check-in
[e2b06423e0]
at
2010-09-05 23:19:08
on branch trunk
— Replace OFObject* with id in many places.
We assume now that every object understands retain, release, etc. so
that we can weaken the type from OFObject* to id. This makes it
possible to use different root object classes. (user: js, size: 16375) [annotate] [blame] [check-ins using]
To Artifact [f70ec8d4db]:
- File src/OFXMLParser.m — part of check-in [9d6716470e] at 2010-09-08 21:17:46 on branch trunk — Fix Objective C++ compatibility. (user: js, size: 16354) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
54 55 56 57 58 59 60 |
}
static OF_INLINE void
resolve_attr_namespace(OFXMLAttribute *attr, OFString *prefix, OFString *ns,
OFArray *namespaces, Class isa)
{
OFString *attr_ns;
| | | | | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
}
static OF_INLINE void
resolve_attr_namespace(OFXMLAttribute *attr, OFString *prefix, OFString *ns,
OFArray *namespaces, Class isa)
{
OFString *attr_ns;
OFString *attr_prefix = attr->ns;
if (attr_prefix == nil)
return;
attr_ns = namespace_for_prefix(attr_prefix, namespaces);
if ((attr_prefix != nil && attr_ns == nil))
@throw [OFUnboundNamespaceException newWithClass: isa
prefix: attr_prefix];
[attr->ns release];
attr->ns = [attr_ns retain];
}
@implementation OFXMLParser
+ parser
{
return [[[self alloc] init] autorelease];
}
|
| ︙ | ︙ |