Overview
Comment: | Add properties to interfaces. Only used if supported by the compiler. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f3e7291fad38ca58a836b6d968ac9241 |
User & Date: | js on 2010-04-17 23:04:50 |
Other Links: | manifest | tags |
Context
2010-04-17
| ||
23:08 | Fix a typo in the tests Makefile. check-in: cb6fc642c6 user: js tags: trunk | |
23:04 | Add properties to interfaces. Only used if supported by the compiler. check-in: f3e7291fad user: js tags: trunk | |
22:27 | New ivar naming convention. check-in: 37db8f0fb3 user: js tags: trunk | |
Changes
Modified src/OFApplication.h from [ad7af612fb] to [f1232ecffb].
︙ | ︙ | |||
43 44 45 46 47 48 49 50 51 52 53 54 55 56 | */ @interface OFApplication: OFObject { OFString *programName; OFMutableArray *arguments; id delegate; } /** * \return The only OFApplication instance in the application */ + sharedApplication; /** | > > > > > > | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | */ @interface OFApplication: OFObject { OFString *programName; OFMutableArray *arguments; id delegate; } #ifdef OF_HAVE_PROPERTIES @property (readonly, retain) OFString *programName; @property (readonly, retain) OFArray *arguments; @property (retain) id delegate; #endif /** * \return The only OFApplication instance in the application */ + sharedApplication; /** |
︙ | ︙ |
Modified src/OFDataArray.h from [eabc1b70df] to [95c10689ac].
︙ | ︙ | |||
16 17 18 19 20 21 22 | * * If you plan to store large hunks of data, you should consider using * OFBigDataArray, which allocates the memory in pages rather than in bytes. */ @interface OFDataArray: OFObject <OFCopying> { char *data; | | | > > > > > | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | * * If you plan to store large hunks of data, you should consider using * OFBigDataArray, which allocates the memory in pages rather than in bytes. */ @interface OFDataArray: OFObject <OFCopying> { char *data; size_t count; size_t itemSize; } #ifdef OF_HAVE_PROPERTIES @property (readonly) size_t count; @property (readonly) size_t itemSize; #endif /** * Creates a new OFDataArray whose items all have the same size. * * \param is The size of each element in the OFDataArray * \return A new autoreleased OFDataArray */ |
︙ | ︙ |
Modified src/OFDictionary.h from [56783e6894] to [a850d7ce1c].
︙ | ︙ | |||
31 32 33 34 35 36 37 38 39 40 41 42 43 44 | @interface OFDictionary: OFObject <OFCopying, OFMutableCopying, OFFastEnumeration> { struct of_dictionary_bucket **data; uint32_t size; size_t count; } /** * Creates a new OFDictionary. * * \return A new autoreleased OFDictionary */ + dictionary; | > > > > | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | @interface OFDictionary: OFObject <OFCopying, OFMutableCopying, OFFastEnumeration> { struct of_dictionary_bucket **data; uint32_t size; size_t count; } #ifdef OF_HAVE_PROPERTIES @property (readonly) size_t count; #endif /** * Creates a new OFDictionary. * * \return A new autoreleased OFDictionary */ + dictionary; |
︙ | ︙ |
Modified src/OFExceptions.h from [6329d53dc9] to [d52f2d2889].
︙ | ︙ | |||
51 52 53 54 55 56 57 58 59 60 61 62 63 64 | */ @interface OFException: OFObject { Class inClass; OFString *string; } /** * Creates a new exception. * * \param class_ The class of the object which caused the exception * \return A new exception */ + newWithClass: (Class)class_; | > > > > | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | */ @interface OFException: OFObject { Class inClass; OFString *string; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) Class inClass; #endif /** * Creates a new exception. * * \param class_ The class of the object which caused the exception * \return A new exception */ + newWithClass: (Class)class_; |
︙ | ︙ | |||
85 86 87 88 89 90 91 92 93 94 95 96 97 98 | /** * \brief An exception indicating there is not enough memory available. */ @interface OFOutOfMemoryException: OFException { size_t requestedSize; } /** * \param class_ The class of the object which caused the exception * \param size The size of the memory that couldn't be allocated * \return A new no memory exception */ + newWithClass: (Class)class_ | > > > > | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | /** * \brief An exception indicating there is not enough memory available. */ @interface OFOutOfMemoryException: OFException { size_t requestedSize; } #ifdef OF_HAVE_PROPERTIES @property (readonly) size_t requestedSize; #endif /** * \param class_ The class of the object which caused the exception * \param size The size of the memory that couldn't be allocated * \return A new no memory exception */ + newWithClass: (Class)class_ |
︙ | ︙ | |||
125 126 127 128 129 130 131 132 133 134 135 136 137 138 | * \brief An exception indicating the given memory is not part of the object. */ @interface OFMemoryNotPartOfObjectException: OFException { void *pointer; } /** * \param class_ The class of the object which caused the exception * \param ptr A pointer to the memory that is not part of the object * \return A new memory not part of object exception */ + newWithClass: (Class)class_ pointer: (void*)ptr; | > > > > | 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | * \brief An exception indicating the given memory is not part of the object. */ @interface OFMemoryNotPartOfObjectException: OFException { void *pointer; } #ifdef OF_HAVE_PROPERTIES @property (readonly) void *pointer; #endif /** * \param class_ The class of the object which caused the exception * \param ptr A pointer to the memory that is not part of the object * \return A new memory not part of object exception */ + newWithClass: (Class)class_ pointer: (void*)ptr; |
︙ | ︙ | |||
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | * implemented. */ @interface OFNotImplementedException: OFException { SEL selector; } /** * \param class_ The class of the object which caused the exception * \param selector The selector which is not or not fully implemented * \return A new not implemented exception */ + newWithClass: (Class)class_ selector: (SEL)selector; /** * Initializes an already allocated not implemented exception. * * \param class_ The class of the object which caused the exception * \param selector The selector which is not or not fully implemented * \return An initialized not implemented exception */ - initWithClass: (Class)class_ selector: (SEL)selector; @end /** * \brief An exception indicating the given value is out of range. */ @interface OFOutOfRangeException: OFException {} @end /** * \brief An exception indicating that the argument is invalid for this method. */ @interface OFInvalidArgumentException: OFException { SEL selector; } /** * \param class_ The class of the object which caused the exception * \param selector The selector which doesn't accept the argument * \return A new invalid argument exception */ + newWithClass: (Class)class_ selector: (SEL)selector; /** * Initializes an already allocated invalid argument exception * * \param class_ The class of the object which caused the exception * \param selector The selector which doesn't accept the argument * \return An initialized invalid argument exception */ - initWithClass: (Class)class_ selector: (SEL)selector; @end /** * \brief An exception indicating that the encoding is invalid for this object. */ @interface OFInvalidEncodingException: OFException {} @end | > > > > > > > > > > > > > > > > > > | 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | * implemented. */ @interface OFNotImplementedException: OFException { SEL selector; } #ifdef OF_HAVE_PROPERTIES @property (readonly) SEL selector; #endif /** * \param class_ The class of the object which caused the exception * \param selector The selector which is not or not fully implemented * \return A new not implemented exception */ + newWithClass: (Class)class_ selector: (SEL)selector; /** * Initializes an already allocated not implemented exception. * * \param class_ The class of the object which caused the exception * \param selector The selector which is not or not fully implemented * \return An initialized not implemented exception */ - initWithClass: (Class)class_ selector: (SEL)selector; /** * \return The selector which is not or not fully implemented */ - (SEL)selector; @end /** * \brief An exception indicating the given value is out of range. */ @interface OFOutOfRangeException: OFException {} @end /** * \brief An exception indicating that the argument is invalid for this method. */ @interface OFInvalidArgumentException: OFException { SEL selector; } #ifdef OF_HAVE_PROPERTIES @property (readonly) SEL selector; #endif /** * \param class_ The class of the object which caused the exception * \param selector The selector which doesn't accept the argument * \return A new invalid argument exception */ + newWithClass: (Class)class_ selector: (SEL)selector; /** * Initializes an already allocated invalid argument exception * * \param class_ The class of the object which caused the exception * \param selector The selector which doesn't accept the argument * \return An initialized invalid argument exception */ - initWithClass: (Class)class_ selector: (SEL)selector; /** * \return The selector to which an invalid argument was passed */ - (SEL)selector; @end /** * \brief An exception indicating that the encoding is invalid for this object. */ @interface OFInvalidEncodingException: OFException {} @end |
︙ | ︙ | |||
244 245 246 247 248 249 250 251 252 253 254 255 256 257 | */ @interface OFOpenFileFailedException: OFException { OFString *path; OFString *mode; int errNo; } /** * \param class_ The class of the object which caused the exception * \param path A string with the path of the file tried to open * \param mode A string with the mode in which the file should have been opened * \return A new open file failed exception */ | > > > > > > | 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 | */ @interface OFOpenFileFailedException: OFException { OFString *path; OFString *mode; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFString *path; @property (readonly, nonatomic) OFString *mode; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param path A string with the path of the file tried to open * \param mode A string with the mode in which the file should have been opened * \return A new open file failed exception */ |
︙ | ︙ | |||
291 292 293 294 295 296 297 298 299 300 301 302 303 304 | * \brief An exception indicating a read or write to a stream failed. */ @interface OFReadOrWriteFailedException: OFException { size_t requestedSize; int errNo; } /** * \param class_ The class of the object which caused the exception * \param size The requested size of the data that couldn't be read / written * \return A new open file failed exception */ + newWithClass: (Class)class_ | > > > > > | 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 | * \brief An exception indicating a read or write to a stream failed. */ @interface OFReadOrWriteFailedException: OFException { size_t requestedSize; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly) size_t requestedSize; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param size The requested size of the data that couldn't be read / written * \return A new open file failed exception */ + newWithClass: (Class)class_ |
︙ | ︙ | |||
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 | * \brief An exception indicating that seeking in a stream failed. */ @interface OFSeekFailedException: OFException { int errNo; } /** * \return The errno from when the exception was created */ - (int)errNo; @end /** * \brief An exception indicating a directory couldn't be created. */ @interface OFCreateDirectoryFailedException: OFException { OFString *path; int errNo; } /** * \param class_ The class of the object which caused the exception * \param path A string with the path of the directory which couldn't be created * \return A new create directory failed exception */ + newWithClass: (Class)class_ | > > > > > > > > > | 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 | * \brief An exception indicating that seeking in a stream failed. */ @interface OFSeekFailedException: OFException { int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly) int errNo; #endif /** * \return The errno from when the exception was created */ - (int)errNo; @end /** * \brief An exception indicating a directory couldn't be created. */ @interface OFCreateDirectoryFailedException: OFException { OFString *path; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFString *path; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param path A string with the path of the directory which couldn't be created * \return A new create directory failed exception */ + newWithClass: (Class)class_ |
︙ | ︙ | |||
394 395 396 397 398 399 400 401 402 403 404 405 406 407 | */ @interface OFChangeFileModeFailedException: OFException { OFString *path; mode_t mode; int errNo; } /** * \param class_ The class of the object which caused the exception * \param path The path of the file * \param mode The new mode for the file * \return An initialized change file mode failed exception */ | > > > > > > | 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 | */ @interface OFChangeFileModeFailedException: OFException { OFString *path; mode_t mode; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFString *path; @property (readonly) mode_t mode; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param path The path of the file * \param mode The new mode for the file * \return An initialized change file mode failed exception */ |
︙ | ︙ | |||
444 445 446 447 448 449 450 451 452 453 454 455 456 457 | @interface OFChangeFileOwnerFailedException: OFException { OFString *path; uid_t owner; gid_t group; int errNo; } /** * \param class_ The class of the object which caused the exception * \param path The path of the file * \param owner The new owner for the file * \param group The new group for the file * \return An initialized change file owner failed exception | > > > > > > > | 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 | @interface OFChangeFileOwnerFailedException: OFException { OFString *path; uid_t owner; gid_t group; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFString *path; @property (readonly) uid_t owner; @property (readonly) gid_t group; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param path The path of the file * \param owner The new owner for the file * \param group The new group for the file * \return An initialized change file owner failed exception |
︙ | ︙ | |||
503 504 505 506 507 508 509 510 511 512 513 514 515 516 | @interface OFRenameFileFailedException: OFException { OFString *sourcePath; OFString *destinationPath; int errNo; } /** * \param class_ The class of the object which caused the exception * \param src The original path * \param dst The new path * \return A new rename file failed exception */ + newWithClass: (Class)class_ | > > > > > > | 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 | @interface OFRenameFileFailedException: OFException { OFString *sourcePath; OFString *destinationPath; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFString *sourcePath; @property (readonly, nonatomic) OFString *destinationPath; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param src The original path * \param dst The new path * \return A new rename file failed exception */ + newWithClass: (Class)class_ |
︙ | ︙ | |||
550 551 552 553 554 555 556 557 558 559 560 561 562 563 | */ @interface OFDeleteFileFailedException: OFException { OFString *path; int errNo; } /** * \param class_ The class of the object which caused the exception * \param path The path of the file * \return A new delete file failed exception */ + newWithClass: (Class)class_ path: (OFString*)path; | > > > > > | 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 | */ @interface OFDeleteFileFailedException: OFException { OFString *path; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFString *path; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param path The path of the file * \return A new delete file failed exception */ + newWithClass: (Class)class_ path: (OFString*)path; |
︙ | ︙ | |||
589 590 591 592 593 594 595 596 597 598 599 600 601 602 | */ @interface OFLinkFailedException: OFException { OFString *sourcePath; OFString *destinationPath; int errNo; } /** * \param class_ The class of the object which caused the exception * \param src The source for the link * \param dest The destination for the link * \return A new link failed exception */ | > > > > > > | 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 | */ @interface OFLinkFailedException: OFException { OFString *sourcePath; OFString *destinationPath; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFString *sourcePath; @property (readonly, nonatomic) OFString *destinationPath; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param src The source for the link * \param dest The destination for the link * \return A new link failed exception */ |
︙ | ︙ | |||
637 638 639 640 641 642 643 644 645 646 647 648 649 650 | */ @interface OFSymlinkFailedException: OFException { OFString *sourcePath; OFString *destinationPath; int errNo; } /** * \param class_ The class of the object which caused the exception * \param src The source for the symlink * \param dest The destination for the symlink * \return A new symlink failed exception */ | > > > > > > | 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 | */ @interface OFSymlinkFailedException: OFException { OFString *sourcePath; OFString *destinationPath; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFString *sourcePath; @property (readonly, nonatomic) OFString *destinationPath; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param src The source for the symlink * \param dest The destination for the symlink * \return A new symlink failed exception */ |
︙ | ︙ | |||
706 707 708 709 710 711 712 713 714 715 716 717 718 719 | @interface OFAddressTranslationFailedException: OFException { OFString *node; OFString *service; int errNo; } /** * \param class_ The class of the object which caused the exception * \param node The node for which translation was requested * \param service The service of the node for which translation was requested * \return A new address translation failed exception */ + newWithClass: (Class)class_ | > > > > > > | 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 | @interface OFAddressTranslationFailedException: OFException { OFString *node; OFString *service; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFString *node; @property (readonly, nonatomic) OFString *service; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param node The node for which translation was requested * \param service The service of the node for which translation was requested * \return A new address translation failed exception */ + newWithClass: (Class)class_ |
︙ | ︙ | |||
753 754 755 756 757 758 759 760 761 762 763 764 765 766 | */ @interface OFConnectionFailedException: OFException { OFString *node; OFString *service; int errNo; } /** * \param class_ The class of the object which caused the exception * \param node The node to which the connection failed * \param service The service on the node to which the connection failed * \return A new connection failed exception */ | > > > > > > | 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 | */ @interface OFConnectionFailedException: OFException { OFString *node; OFString *service; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFString *node; @property (readonly, nonatomic) OFString *service; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param node The node to which the connection failed * \param service The service on the node to which the connection failed * \return A new connection failed exception */ |
︙ | ︙ | |||
802 803 804 805 806 807 808 809 810 811 812 813 814 815 | @interface OFBindFailedException: OFException { OFString *node; OFString *service; int family; int errNo; } /** * \param class_ The class of the object which caused the exception * \param node The node on which binding failed * \param service The service on which binding failed * \param family The family for which binnding failed * \return A new bind failed exception | > > > > > > > | 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 | @interface OFBindFailedException: OFException { OFString *node; OFString *service; int family; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFString *node; @property (readonly, nonatomic) OFString *service; @property (readonly) int family; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param node The node on which binding failed * \param service The service on which binding failed * \param family The family for which binnding failed * \return A new bind failed exception |
︙ | ︙ | |||
859 860 861 862 863 864 865 866 867 868 869 870 871 872 | */ @interface OFListenFailedException: OFException { int backLog; int errNo; } /** * \param class_ The class of the object which caused the exception * \param backlog The requested size of the back log * \return A new listen failed exception */ + newWithClass: (Class)class_ backLog: (int)backlog; | > > > > > | 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 | */ @interface OFListenFailedException: OFException { int backLog; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly) int backLog; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception * \param backlog The requested size of the back log * \return A new listen failed exception */ + newWithClass: (Class)class_ backLog: (int)backlog; |
︙ | ︙ | |||
895 896 897 898 899 900 901 902 903 904 905 906 907 908 | /** * \brief An exception indicating that accepting a connection failed. */ @interface OFAcceptFailedException: OFException { int errNo; } /** * \return The errno from when the exception was created */ - (int)errNo; @end | > > > > | 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 | /** * \brief An exception indicating that accepting a connection failed. */ @interface OFAcceptFailedException: OFException { int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly) int errNo; #endif /** * \return The errno from when the exception was created */ - (int)errNo; @end |
︙ | ︙ |
Modified src/OFExceptions.m from [a6eb967aa3] to [8232f433f5].
︙ | ︙ | |||
245 246 247 248 249 250 251 252 253 254 255 256 257 258 | string = [[OFString alloc] initWithFormat: @"The method %s of class %s is not or not fully implemented!", sel_getName(selector), [inClass className]]; return string; } @end @implementation OFOutOfRangeException - (OFString*)string { if (string != nil) return string; | > > > > > | 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | string = [[OFString alloc] initWithFormat: @"The method %s of class %s is not or not fully implemented!", sel_getName(selector), [inClass className]]; return string; } - (SEL)selector { return selector; } @end @implementation OFOutOfRangeException - (OFString*)string { if (string != nil) return string; |
︙ | ︙ | |||
295 296 297 298 299 300 301 302 303 304 305 306 307 308 | string = [[OFString alloc] initWithFormat: @"The argument for method %s of class %s is invalid!", sel_getName(selector), [inClass className]]; return string; } @end @implementation OFInvalidEncodingException - (OFString*)string { if (string != nil) return string; | > > > > > | 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 | string = [[OFString alloc] initWithFormat: @"The argument for method %s of class %s is invalid!", sel_getName(selector), [inClass className]]; return string; } - (SEL)selector { return selector; } @end @implementation OFInvalidEncodingException - (OFString*)string { if (string != nil) return string; |
︙ | ︙ |
Modified src/OFHashes.h from [816f280e14] to [c880c1bfa4].
︙ | ︙ | |||
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | * \brief A base class for classes providing hash functions. */ @interface OFHash: OFObject { BOOL calculated; } /** * Adds a buffer to the hash to be calculated. * * \param buf The buffer which should be included into the calculation. * \param size The size of the buffer */ - (void)updateWithBuffer: (const char*)buf ofSize: (size_t)size; /** * \return A buffer containing the hash. The size of the buffer is depending * on the hash used. The buffer is part of object's memory pool. */ - (uint8_t*)digest; @end /** * \brief A class which provides functions to create an MD5 hash. */ @interface OFMD5Hash: OFHash { | > > > > > > > > > | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | * \brief A base class for classes providing hash functions. */ @interface OFHash: OFObject { BOOL calculated; } #ifdef OF_HAVE_PROPERTIES @property (readonly) BOOL calculated; #endif /** * Adds a buffer to the hash to be calculated. * * \param buf The buffer which should be included into the calculation. * \param size The size of the buffer */ - (void)updateWithBuffer: (const char*)buf ofSize: (size_t)size; /** * \return A buffer containing the hash. The size of the buffer is depending * on the hash used. The buffer is part of object's memory pool. */ - (uint8_t*)digest; /** * \return A boolean whether the hash has already been calculated */ - (BOOL)calculated; @end /** * \brief A class which provides functions to create an MD5 hash. */ @interface OFMD5Hash: OFHash { |
︙ | ︙ |
Modified src/OFHashes.m from [4ade11c8e1] to [1aa4d93617].
︙ | ︙ | |||
29 30 31 32 33 34 35 36 37 38 39 40 41 42 | } - (uint8_t*)digest { @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; } @end /* * MD5 */ /* The four MD5 core functions - F1 is optimized somewhat */ | > > > > > | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | } - (uint8_t*)digest { @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; } - (BOOL)calculated { return calculated; } @end /* * MD5 */ /* The four MD5 core functions - F1 is optimized somewhat */ |
︙ | ︙ |
Modified src/OFList.h from [498c3c68bc] to [ed49261cf1].
︙ | ︙ | |||
31 32 33 34 35 36 37 38 39 40 41 42 43 44 | */ @interface OFList: OFObject <OFCopying> { of_list_object_t *first; of_list_object_t *last; size_t count; } /** * \return A new autoreleased OFList */ + list; /** | > > > > > > | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | */ @interface OFList: OFObject <OFCopying> { of_list_object_t *first; of_list_object_t *last; size_t count; } #ifdef OF_HAVE_PROPERTIES @property (readonly) of_list_object_t *first; @property (readonly) of_list_object_t *last; @property (readonly) size_t count; #endif /** * \return A new autoreleased OFList */ + list; /** |
︙ | ︙ |
Modified src/OFXMLElement.h from [52cc35da36] to [965662754c].
︙ | ︙ | |||
23 24 25 26 27 28 29 30 31 32 33 34 35 36 | @interface OFXMLAttribute: OFObject { OFString *prefix; OFString *name; OFString *namespace; OFString *stringValue; } /** * \param name The name of the attribute * \param prefix The prefix of the attribute * \param ns The namespace of the attribute * \param value The string value of the attribute * \return A new autoreleased OFXMLAttribute with the specified parameters | > > > > > > > | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | @interface OFXMLAttribute: OFObject { OFString *prefix; OFString *name; OFString *namespace; OFString *stringValue; } #ifdef OF_HAVE_PROPERTIES @property (readonly, retain) OFString *prefix; @property (readonly, retain) OFString *name; @property (readonly, retain) OFString *namespace; @property (readonly, retain) OFString *stringValue; #endif /** * \param name The name of the attribute * \param prefix The prefix of the attribute * \param ns The namespace of the attribute * \param value The string value of the attribute * \return A new autoreleased OFXMLAttribute with the specified parameters |
︙ | ︙ |
Modified src/objfw-defs.h.in from [216453ffb3] to [8c68c7e68e].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #undef OF_APPLE_RUNTIME #undef OF_ATOMIC_OPS #undef OF_BIG_ENDIAN #undef OF_GNU_RUNTIME #undef OF_HAVE_ASPRINTF #undef OF_HAVE_GCC_ATOMIC_OPS #undef OF_HAVE_LIBKERN_OSATOMIC_H #undef OF_HAVE_PTHREADS #undef OF_HAVE_PTHREAD_SPINLOCKS #undef OF_HAVE_SCHED_YIELD #undef OF_OBJFW_RUNTIME #undef OF_PLUGINS #undef OF_THREADS #undef SIZE_MAX | > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #undef OF_APPLE_RUNTIME #undef OF_ATOMIC_OPS #undef OF_BIG_ENDIAN #undef OF_GNU_RUNTIME #undef OF_HAVE_ASPRINTF #undef OF_HAVE_GCC_ATOMIC_OPS #undef OF_HAVE_LIBKERN_OSATOMIC_H #undef OF_HAVE_PROPERTIES #undef OF_HAVE_PTHREADS #undef OF_HAVE_PTHREAD_SPINLOCKS #undef OF_HAVE_SCHED_YIELD #undef OF_OBJFW_RUNTIME #undef OF_PLUGINS #undef OF_THREADS #undef SIZE_MAX |