Differences From Artifact [3e706b5d43]:
- File src/OFXMLParser.m — part of check-in [daf78156a7] at 2015-05-03 11:34:12 on branch trunk — Check <= SSIZE_MAX before assignign to ssize_t (user: js, size: 24607) [annotate] [blame] [check-ins using]
To Artifact [6625a4f5d5]:
- File
src/OFXMLParser.m
— part of check-in
[48980f2297]
at
2015-11-29 11:43:05
on branch trunk
— Make properties a requirement and clean up code
This increases the required GCC version from 4.0 to 4.6 (exception:
Apple GCC, which already supports this with >= 4.0 starting with OS X
10.5). Since even GCC 4.6 is really old by now, there is no point in
still supporting something even older and making the code ugly because
of that. While some hardware and OS support was dropped from GCC 4.6
compared to GCC 4.0, there is nothing in there that would be an
interesting target with the exception of BeOS maybe - but a port to BeOS
can also be achieved using the Haiku support. The other dropped OSes are
mostly old versions of OSes while newer ones are still being supported
(and those newer versions of those OSes still support the same
hardware). (user: js, size: 24405) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
142 143 144 145 146 147 148 149 150 151 152 153 154 155 | parser: self]; [attribute->_namespace release]; attribute->_namespace = [attributeNS retain]; } @implementation OFXMLParser + (void)initialize { size_t i; const SEL selectors_[OF_XMLPARSER_NUM_STATES] = { @selector(OF_inByteOrderMarkState), @selector(OF_outsideTagState), | > > | 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | parser: self]; [attribute->_namespace release]; attribute->_namespace = [attributeNS retain]; } @implementation OFXMLParser @synthesize delegate = _delegate, depthLimit = _depthLimit; + (void)initialize { size_t i; const SEL selectors_[OF_XMLPARSER_NUM_STATES] = { @selector(OF_inByteOrderMarkState), @selector(OF_outsideTagState), |
︙ | ︙ | |||
232 233 234 235 236 237 238 | [_attributeName release]; [_attributePrefix release]; [_previous release]; [super dealloc]; } | < < < < < < < < < < < < < < < < < < < < | 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | [_attributeName release]; [_attributePrefix release]; [_previous release]; [super dealloc]; } - (void)parseBuffer: (const char*)buffer length: (size_t)length { _data = buffer; for (_i = _last = 0; _i < length; _i++) { size_t j = _i; |
︙ | ︙ | |||
1039 1040 1041 1042 1043 1044 1045 | } - (size_t)lineNumber { return _lineNumber; } | | | 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 | } - (size_t)lineNumber { return _lineNumber; } - (bool)hasFinishedParsing { return _finishedParsing; } - (OFString*)string: (OFString*)string containsUnknownEntityNamed: (OFString*)entity { |
︙ | ︙ |