Overview
Comment: | Fix a warning when sizeof(size_t) < sizeof(long long). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e14961f94d7a3f69cd08be8487269b34 |
User & Date: | js on 2011-04-25 14:14:49 |
Other Links: | manifest | tags |
Context
2011-04-25
| ||
16:57 | OFXMLParser: Add support for different encodings and other improvements. check-in: b2dd4f049b user: js tags: trunk | |
14:14 | Fix a warning when sizeof(size_t) < sizeof(long long). check-in: e14961f94d user: js tags: trunk | |
11:39 | Add -[OFDataArray readDataArrayWithNItems:]. check-in: 8c45d72a13 user: js tags: trunk | |
Changes
Modified README from [2bffcb61ce] to [3ed6345b53].
︙ | ︙ | |||
20 21 22 23 24 25 26 | $ ./autogen.sh BUILDING AS A MAC OS X FRAMEWORK It is also possible to build ObjFW as a Mac OS X framework. To do so, | | | | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | $ ./autogen.sh BUILDING AS A MAC OS X FRAMEWORK It is also possible to build ObjFW as a Mac OS X framework. To do so, just execute xcodebuild -target ObjFW in the root directory of ObjFW or open the .xcodeproj in Xcode and choose Build -> Build from the menu. Copy the resulting ObjFW.framework to /Library/Frameworks and you are done. USING THE MAC OS X FRAMWORK IN XCODE To use the Mac OS X framework in Xcode, you need to add the .framework to your project and add the following flags to "Other C Flags": |
︙ | ︙ |
Modified src/OFString.m from [18e15c80ab] to [ec60fe00a5].
︙ | ︙ | |||
665 666 667 668 669 670 671 672 673 674 675 | OFFile *file; if (stat([path cString], &s) == -1) @throw [OFOpenFileFailedException newWithClass: isa path: path mode: @"rb"]; file = [[OFFile alloc] initWithPath: path mode: @"rb"]; @try { | > > > | | | | 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 | OFFile *file; if (stat([path cString], &s) == -1) @throw [OFOpenFileFailedException newWithClass: isa path: path mode: @"rb"]; if (s.st_size > SIZE_MAX) @throw [OFOutOfRangeException newWithClass: isa]; file = [[OFFile alloc] initWithPath: path mode: @"rb"]; @try { tmp = [self allocMemoryWithSize: (size_t)s.st_size]; [file readExactlyNBytes: (size_t)s.st_size intoBuffer: tmp]; } @finally { [file release]; } } @catch (id e) { [self release]; @throw e; } self = [self initWithCString: tmp encoding: encoding length: (size_t)s.st_size]; [self freeMemory: tmp]; return self; } - initWithContentsOfURL: (OFURL*)URL { |
︙ | ︙ |