Changes In Branch 0.5 Through [65b10aa0d5] Excluding Merge-Ins
This is equivalent to a diff from 91d438b5d2 to 65b10aa0d5
2011-04-10
| ||
18:07 | Update ChangeLog. check-in: 84eb9249b4 user: js tags: 0.5 | |
18:04 | Set version to 0.5.1 in 0.5 branch. check-in: 65b10aa0d5 user: js tags: 0.5 | |
12:18 |
Apple GCC 4.0.1 thinks this variable might be uninitialized. It can't, but let's make GCC happy. check-in: 548596813b user: js tags: 0.5 | |
2011-04-09
| ||
15:41 | OFXMLParser: Don't allow character data before the document. check-in: 0cc997a1d7 user: js tags: trunk | |
12:31 | Branch for 0.5. check-in: 5203170e82 user: js tags: 0.5 | |
12:30 | Also test comments in -[stringValue]. check-in: 91d438b5d2 user: js tags: trunk | |
2011-04-08
| ||
07:05 | Add -[isListening] to OFTCPSocket. check-in: 054a38e82d user: js tags: trunk | |
Modified ChangeLog from [f70c6798b5] to [0edbca9161].
1 2 3 4 5 6 7 8 9 10 11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | + + + + + + + + + + + + + + + + + + + + | Legend: * Changes of existing features or bugfixes. + New features. ObjFW 0.4-alpha1 -> ObjFW 0.5, 09.04.2011 + %@ is now allowed in format strings. + Added of_log for easy logging. * Exceptions have one header per exception now. * Lots of exception improvements. * Huge improvements in XML handling. * Improvements in socket handling, including improved API. * OFStreamObserver is now thread-safe and stops the current observe call when the set of streams to observe is modified. + New class OFURL. + New class OFHTTPRequest. + New class OFCondition. * Improvements in objfw-compile. + Blocks can be used together with Cocoa now. + When linking ObjFW and Cocoa, OFAutoreleasePools are used by both now. + Support for Base64. + Use a real Xcode project instead of just calling make. + Add Haiku to the list of supported platforms. * Lots of small bugfixes and countless small changes. Read the commits! ObjFW 0.3.1 -> 0.4-alpha1, 03.01.2011 * ObjFW is now available under the terms of the QPL, GPLv2 and GPLv3. + Support for blocks was added, including a blocks runtime. + Added support for the new GNU runtime, introduced in GCC 4.6. * Objects returned from collections are no longer retained and autoreleased. + Added new classes OFXMLParser, OFXMLElement, OFXMLAttribute and OFXMLElementBuilder. |
︙ |
Modified Info.plist from [2784921274] to [f74511ccdb].
︙ | |||
13 14 15 16 17 18 19 | 13 14 15 16 17 18 19 20 21 22 23 24 | - + - + | <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundlePackageType</key> <string>FMWK</string> <key>CFBundleSignature</key> <string>OBJFW</string> <key>CFBundleVersion</key> |
Modified configure.ac from [c2f04c07fa] to [95c39d6c7a].
| 1 2 3 4 5 6 7 8 | - + |
|
︙ |
Modified extra.mk.in from [48b5fcc6f3] to [a6cef7bb66].
1 2 | 1 2 3 4 5 6 7 8 9 10 | - + | OBJFW_SHARED_LIB = @OBJFW_SHARED_LIB@ OBJFW_STATIC_LIB = @OBJFW_STATIC_LIB@ |
︙ |
Modified src/OFHTTPRequest.m from [5637b3f014] to [c8b35b7eac].
︙ | |||
163 164 165 166 167 168 169 | 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | - + | @try { OFString *line, *path; OFMutableDictionary *s_headers; OFDataArray *data; OFEnumerator *enumerator; OFString *key; int status; |
︙ |
Modified src/OFXMLParser.h from [4bfeec9a6e] to [0a269ecfb6].
︙ | |||
175 176 177 178 179 180 181 182 183 184 185 186 187 188 | 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | + | of_xml_parser_element_end_block_t elementEndHandler; of_xml_parser_string_block_t charactersHandler; of_xml_parser_string_block_t CDATAHandler; of_xml_parser_string_block_t commentHandler; of_xml_parser_unknown_entity_block_t unknownEntityHandler; #endif size_t level; BOOL acceptProlog; size_t lineNumber; BOOL lastCarriageReturn; BOOL finishedParsing; } #ifdef OF_HAVE_PROPERTIES @property (retain) id <OFXMLParserDelegate> delegate; |
︙ |
Modified src/OFXMLParser.m from [e1f46dcc8c] to [669b34c861].
︙ | |||
47 48 49 50 51 52 53 | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | - + | [cache replaceOccurrencesOfString: @"\r\n" withString: @"\n"]; [cache replaceOccurrencesOfString: @"\r" withString: @"\n"]; return [cache stringByXMLUnescapingWithDelegate: delegate]; } |
︙ | |||
153 154 155 156 157 158 159 160 161 162 163 164 165 166 | 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | + | pool = [[OFAutoreleasePool alloc] init]; dict = [OFMutableDictionary dictionaryWithKeysAndObjects: @"xml", @"http://www.w3.org/XML/1998/namespace", @"xmlns", @"http://www.w3.org/2000/xmlns/", nil]; [namespaces addObject: dict]; acceptProlog = YES; lineNumber = 1; [pool release]; } @catch (id e) { [self release]; @throw e; } |
︙ | |||
263 264 265 266 267 268 269 | 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 | - + - - + + + | } @finally { [file release]; } } /* * The following methods handle the different states of the parser. They are |
︙ | |||
315 316 317 318 319 320 321 | 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 | - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + | } /* Tag was just opened */ - (void)_parseTagOpenedWithBuffer: (const char*)buf i: (size_t*)i last: (size_t*)last { |
︙ | |||
366 367 368 369 370 371 372 373 374 375 376 377 378 379 | 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 | + + + + + + + + | /* * Class swizzle the string to be immutable. We pass it as * OFString*, so it can't be modified anyway. But not swizzling * it would create a real copy each time -[copy] is called. */ pi->isa = [OFString class]; if ([pi isEqual: @"xml"] || [pi hasPrefix: @"xml "] || [pi hasPrefix: @"xml\t"] || [pi hasPrefix: @"xml\r"] || [pi hasPrefix: @"xml\n"]) if (![self _parseXMLProcessingInstructions: pi]) @throw [OFMalformedXMLException newWithClass: isa parser: self]; [delegate parser: self foundProcessingInstructions: pi]; [pool release]; [cache setToCString: ""]; |
︙ |
Modified tests/OFXMLParserTests.m from [1ef5f83edf] to [1a865f21e8].
︙ | |||
372 373 374 375 376 377 378 379 380 381 | 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 | + + + + + + + + + + + + + + + | EXPECT_EXCEPTION(@"Detection of junk after the document #1", OFMalformedXMLException, [parser parseString: @"a"]) EXPECT_EXCEPTION(@"Detection of junk after the document #2", OFMalformedXMLException, [parser parseString: @"<!["]) parser = [OFXMLParser parser]; EXPECT_EXCEPTION(@"Detection of invalid XML processing instructions #1", OFMalformedXMLException, [parser parseString: @"<?xml version='2.0'?>"]) parser = [OFXMLParser parser]; EXPECT_EXCEPTION(@"Detection of invalid XML processing instructions #2", OFMalformedXMLException, [parser parseString: @"<?xml encoding='UTF-7'?>"]) parser = [OFXMLParser parser]; EXPECT_EXCEPTION(@"Detection of invalid XML processing instructions #3", OFMalformedXMLException, [parser parseString: @"<x><?xml?></x>"]) [pool drain]; } @end |
Modified utils/objfw-config.in from [a79a727b4f] to [0947aead79].
︙ | |||
33 34 35 36 37 38 39 | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | - + | LDFLAGS_REEXPORT="@LDFLAGS_REEXPORT@" LDFLAGS_RPATH="@LDFLAGS_RPATH@" LIBS="-L${libdir} -lobjfw @LIBS@" PLUGIN_CFLAGS="@PLUGIN_CFLAGS@" PLUGIN_LDFLAGS="@PLUGIN_LDFLAGS@" PLUGIN_SUFFIX="@PLUGIN_SUFFIX@" PROG_SUFFIX="@EXEEXT@" |
︙ |