Differences From Artifact [5e085ceea7]:
- File src/OFOptionsParser.m — part of check-in [13e226f9c8] at 2015-12-03 20:56:23 on branch trunk — OFOptionsParser: Fix a nil vs. NULL mishap (user: js, size: 6323) [annotate] [blame] [check-ins using]
To Artifact [260ac6832a]:
- File
src/OFOptionsParser.m
— part of check-in
[aa89a3c059]
at
2015-12-05 21:03:55
on branch trunk
— OFOptionsParser: Fix *isSpecifiedPtr not being set
It was not set for short options without arguments. (user: js, size: 6404) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
237 238 239 240 241 242 243 | _index++; _subIndex = 0; } for (iter = _options; iter->shortOption != '\0' || iter->longOption != nil; iter++) { if (iter->shortOption == _lastOption) { | | > > > > | 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | _index++; _subIndex = 0; } for (iter = _options; iter->shortOption != '\0' || iter->longOption != nil; iter++) { if (iter->shortOption == _lastOption) { if (iter->hasArgument == 0) { if (iter->isSpecifiedPtr != NULL) *iter->isSpecifiedPtr = true; return _lastOption; } if (_index >= [_arguments count]) return ':'; argument = [_arguments objectAtIndex: _index]; argument = [argument substringWithRange: of_range(_subIndex, [argument length] - _subIndex)]; |
︙ | ︙ |