Author: stefanbidi
Date: Mon Feb 16 21:10:16 2015
New Revision: 38345
URL: http://svn.gna.org/viewcvs/gnustep?rev=38345&view=rev
Log:
* Source/NSCFDictionary.m: Add category to match class definition.
* Source/NSCFType.m: Use correct number of classes to register.
Modified:
libs/corebase/trunk/ChangeLog
libs/corebase/trunk/Source/NSCFDictionary.m
libs/corebase/trunk/Source/NSCFType.m
libs/corebase/trunk/Tests/CFString/format_float.m
Modified: libs/corebase/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/ChangeLog?rev=38345&r1=38344&r2=38345&view=diff
==============================================================================
--- libs/corebase/trunk/ChangeLog (original)
+++ libs/corebase/trunk/ChangeLog Mon Feb 16 21:10:16 2015
@@ -1,3 +1,7 @@
+2014-02-16 Stefan Bidigaray <[email protected]>
+ * Source/NSCFDictionary.m: Add category to match class definition.
+ * Source/NSCFType.m: Use correct number of classes to register.
+
2014-02-14 Stefan Bidigaray <[email protected]>
* Headers/CoreFoundation/GSCharacter.h: Fix minor compare bug.
Modified: libs/corebase/trunk/Source/NSCFDictionary.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Source/NSCFDictionary.m?rev=38345&r1=38344&r2=38345&view=diff
==============================================================================
--- libs/corebase/trunk/Source/NSCFDictionary.m (original)
+++ libs/corebase/trunk/Source/NSCFDictionary.m Mon Feb 16 21:10:16 2015
@@ -60,7 +60,7 @@
}
- (id) initWithObjects: (const id[])objects
- forKeys: (const id[])keys
+ forKeys: (const id<NSCopying>[])keys
count: (NSUInteger)count
{
RELEASE(self);
Modified: libs/corebase/trunk/Source/NSCFType.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Source/NSCFType.m?rev=38345&r1=38344&r2=38345&view=diff
==============================================================================
--- libs/corebase/trunk/Source/NSCFType.m (original)
+++ libs/corebase/trunk/Source/NSCFType.m Mon Feb 16 21:10:16 2015
@@ -40,7 +40,7 @@
void NSCFInitialize (void)
{
- static int requiredClasses = 11;
+ static int requiredClasses = 12;
--requiredClasses;
if (requiredClasses == 0)
Modified: libs/corebase/trunk/Tests/CFString/format_float.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Tests/CFString/format_float.m?rev=38345&r1=38344&r2=38345&view=diff
==============================================================================
--- libs/corebase/trunk/Tests/CFString/format_float.m (original)
+++ libs/corebase/trunk/Tests/CFString/format_float.m Mon Feb 16 21:10:16 2015
@@ -1,20 +1,20 @@
#include "CoreFoundation/CFString.h"
#include "../CFTesting.h"
+#include <math.h>
int main (void)
{
CFStringRef str1;
str1 = CFStringCreateWithFormat (NULL, NULL, CFSTR("%a %A %f %F %g %G"),
- -1.0/0.0, 1.0/0.0, 1.0/0.0, -1.0/0.0,
- -1.0/0.0, 1.0/0.0);
+ -INFINITY, INFINITY, INFINITY, -INFINITY,
+ -INFINITY, INFINITY);
PASS_CFEQ (str1, CFSTR ("-inf INF inf -INF -inf INF"),
"Formatting infinity works.");
CFRelease (str1);
str1 = CFStringCreateWithFormat (NULL, NULL, CFSTR("%a %A %f %F %g %G"),
- -(0.0/0.0), 0.0/0.0, 0.0/0.0, -(0.0/0.0),
- -(0.0/0.0), 0.0/0.0);
+ -NAN, NAN, NAN, -NAN, -NAN, NAN);
PASS_CFEQ (str1, CFSTR ("-nan NAN nan -NAN -nan NAN"),
"Formatting not-a-number works.");
CFRelease (str1);
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs