diff --git a/ChangeLog b/ChangeLog index d27d74ea7..2a19ff3c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ -2025-12-14 Richard Frith-Macdonald + 2025-12-14 Richard Frith-Macdonald * Headers/GNUstepBase/NSTask+GNUstepBase.h: * Source/Additions/NSTask+GNUstepBase.m: @@ -7,6 +7,22 @@ and return an array of unquoted arguments (with the command name as the first argument) suitable for use when launching a task. +2025-12-06 Gregory John Casamento + + * Source/NSByteCountFormatter.m: + * Source/NSDateComponentsFormatter.m: + * Source/NSDateIntervalFormatter.m: + * Source/NSEnergyFormatter.m: + * Source/NSISO8601DateFormatter.m: + * Source/NSLengthFormatter.m: + * Source/NSMassFormatter.m: + * Source/NSMeasurementFormatter.m: + * Source/NSPersonNameComponentsFormatter.m: + Implement initWithCoder: and encodeWithCoder: methods for formatter + classes to support NSCoding protocol. All implementations handle both + keyed and non-keyed coding and properly encode/decode all instance + variables to ensure complete state preservation during archiving. + 2025-12-03 Richard Frith-Macdonald * Tools/autogsdoc.m: @@ -39,1139 +55,1139 @@ 2025-11-26 Richard Frith-Macdonald - * configure.ac: add error messages for symbolic stack trace - * configure: regenerate - If --enable-bfd specifically requests symbolic stack trace support but - we lack something needed to implement it, report an error and end the - configuration. + * configure.ac: add error messages for symbolic stack trace + * configure: regenerate + If --enable-bfd specifically requests symbolic stack trace support but + we lack something needed to implement it, report an error and end the + configuration. 2025-11-11 Richard Frith-Macdonald - * Source/NSCharacterSetData.h: - * Tests/base/NSURL/charsets.m: - Changes URLPathAllowedCharSet to contain semicolon as on OSX + * Source/NSCharacterSetData.h: + * Tests/base/NSURL/charsets.m: + Changes URLPathAllowedCharSet to contain semicolon as on OSX 2025-11-11 Richard Frith-Macdonald - * Headers/GNUstepBase/GSURITemplate.h: - * Source/Additions/GNUmakefile: - * Source/Additions/GSURITemplate.m: - * Source/DocMakefile: - * Source/GNUmakefile: - * Tests/base/GSURITemplate/README: - * Tests/base/GSURITemplate/TestInfo: - * Tests/base/GSURITemplate/extended-tests.json: - * Tests/base/GSURITemplate/general.m: - * Tests/base/GSURITemplate/negative-tests.json: - * Tests/base/GSURITemplate/spec-examples.json: - Add new class to handle RFC6570 URI templates and use them to create - URLs from a set of variables. + * Headers/GNUstepBase/GSURITemplate.h: + * Source/Additions/GNUmakefile: + * Source/Additions/GSURITemplate.m: + * Source/DocMakefile: + * Source/GNUmakefile: + * Tests/base/GSURITemplate/README: + * Tests/base/GSURITemplate/TestInfo: + * Tests/base/GSURITemplate/extended-tests.json: + * Tests/base/GSURITemplate/general.m: + * Tests/base/GSURITemplate/negative-tests.json: + * Tests/base/GSURITemplate/spec-examples.json: + Add new class to handle RFC6570 URI templates and use them to create + URLs from a set of variables. 2025-11-06 Richard Frith-Macdonald - * Headers/Foundation/NSUserDefaults.h: - * Source/NSUserDefaults.m: - Patch by Mike Carans to allow overriding of the storage of a defaults - domain + * Headers/Foundation/NSUserDefaults.h: + * Source/NSUserDefaults.m: + Patch by Mike Carans to allow overriding of the storage of a defaults + domain 2025-10-30 Richard Frith-Macdonald - * Source/Additions/Unicode.m: - Implement support for 16 and 23 bit unicode when icnv is not available. + * Source/Additions/Unicode.m: + Implement support for 16 and 23 bit unicode when icnv is not available. 2025-10-22 Frederik Seiffert - * Source/NSURL.m: Fix parsing of URLs with query or fragment delimiters - but no path component. + * Source/NSURL.m: Fix parsing of URLs with query or fragment delimiters + but no path component. 2025-10-01 Richard Frith-Macdonald - * Source/Additions/Unicode.m: - Fix possible crash decoding bad GSM0338 data (buffer overrun). + * Source/Additions/Unicode.m: + Fix possible crash decoding bad GSM0338 data (buffer overrun). 2025-10-01 Richard Frith-Macdonald - * Resources/GNUmakefile: - * Source/GNUmakefile: - Install resources to directory using major and minor version number - rather than using the library interface version; the NSBundle code - for loading library resources uses the major and minor number to - find the resource. + * Resources/GNUmakefile: + * Source/GNUmakefile: + Install resources to directory using major and minor version number + rather than using the library interface version; the NSBundle code + for loading library resources uses the major and minor number to + find the resource. 2025-10-01 Richard Frith-Macdonald - * configure.ac: Check for gethostbyname_r() - * Source/NSHost.m: Use gethostbyname_r() if available + * configure.ac: Check for gethostbyname_r() + * Source/NSHost.m: Use gethostbyname_r() if available 2025-08-21 Richard Frith-Macdonald - * Source/NSHost.m: Improve lock granularity with a lock for host name. - Add a new lock to protect regions using the thread-unsafe gethostbyname - function. + * Source/NSHost.m: Improve lock granularity with a lock for host name. + Add a new lock to protect regions using the thread-unsafe gethostbyname + function. 2025-07-22 Richard Frith-Macdonald - * Source/Additions/GSXML.m: - Modify libxml2 initialisation code to continue after 5 seconds if the - main thread fails to run (rather than hanging). An initialisation in - the wrong thread causes a warning to be generated (using NSLog) to say - that XML operations after the thread exits will crash. + * Source/Additions/GSXML.m: + Modify libxml2 initialisation code to continue after 5 seconds if the + main thread fails to run (rather than hanging). An initialisation in + the wrong thread causes a warning to be generated (using NSLog) to say + that XML operations after the thread exits will crash. 2025-06-26 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - Fix initialisation error which could cause crash in HTTP load. + * Source/Additions/GSMime.m: + Fix initialisation error which could cause crash in HTTP load. 2025-04-17 Wolfgang Lux - * Source/NSFileManager.m (removeFileAtPath:handler:): - Call the error handler also when a file to be removed does not - exist. + * Source/NSFileManager.m (removeFileAtPath:handler:): + Call the error handler also when a file to be removed does not + exist. 2025-04-16 Richard Frith-Macdonald - * Source/NSPropertyList.m: When parsing OpenStep style property list, - check for the case when a \U escape sequence produces invalid unicode - and produce an error message saying what happened. + * Source/NSPropertyList.m: When parsing OpenStep style property list, + check for the case when a \U escape sequence produces invalid unicode + and produce an error message saying what happened. 2025-04-15 Wolfgang Lux - * Source/NSFileManager.m: Use the documented key for the file path - in the error dictionary passed to the error handler and continue - setting the incorrect one as well for backward compatibility. + * Source/NSFileManager.m: Use the documented key for the file path + in the error dictionary passed to the error handler and continue + setting the incorrect one as well for backward compatibility. 2025-04-08 Wolfgang Lux - * Source/NSOperation.m (_thread): Fix potential deadlock when - exiting a thread. + * Source/NSOperation.m (_thread): Fix potential deadlock when + exiting a thread. 2025-04-01 Richard Frith-Macdonald - * Source/NSOrderedSet.m: Fix for git issue #500 + * Source/NSOrderedSet.m: Fix for git issue #500 2025-03-21 Earl Robsham - * Headers/Foundation/NSURLHandle.h: - * Sources/externs.m: - * Source/GSHTTPURLHandle.m: - * Source/NSURLProtocol.m: - Updates 'Authorization' header generation to include the query - parameters (if present). - Brings the implementation inline with MacOS. - Also adds the 'GSHTTPPropertyDigestURIOmitsQuery' key for use with - '-[NSHTTPURLHandle writeProperty:forKey:]' or - '+[NSURLProtocol setProperty:forKey:inRequest:]' to toggle off this - updated behavior. + *Headers/Foundation/NSURLHandle.h: + * Sources/externs.m: + *Source/GSHTTPURLHandle.m: + * Source/NSURLProtocol.m: + Updates 'Authorization' header generation to include the query + parameters (if present). + Brings the implementation inline with MacOS. + Also adds the 'GSHTTPPropertyDigestURIOmitsQuery' key for use with + '-[NSHTTPURLHandle writeProperty:forKey:]' or + '+[NSURLProtocol setProperty:forKey:inRequest:]' to toggle off this + updated behavior. 2025-03-08 Richard Frith-Macdonald - * Headers/GNUstepBase/GSObjCRuntime.h: - * Source/GSPrivate.h: - * Source/NSObject.m: - * Source/ObjectiveC2/weak.m: - * Tests/base/Functions/runtime.m: - Initial implementation of associated objects for GNU runtime ... - objc_getAssociatedObject(), objc_removeAssociatedObjects(), - and objc_setAssociatedObject() + * Headers/GNUstepBase/GSObjCRuntime.h: + * Source/GSPrivate.h: + * Source/NSObject.m: + * Source/ObjectiveC2/weak.m: + * Tests/base/Functions/runtime.m: + Initial implementation of associated objects for GNU runtime ... + objc_getAssociatedObject(), objc_removeAssociatedObjects(), + and objc_setAssociatedObject() 2025-03-06 Richard Frith-Macdonald - * Source/NSTask.m: bugfix for testing a running task ... the task may - still be running after a -terminate has been sent to it, until we have - been able to check for the termination status of the actual subprocess. - Fix for exception raised during launching. + * Source/NSTask.m: bugfix for testing a running task ... the task may + still be running after a -terminate has been sent to it, until we have + been able to check for the termination status of the actual subprocess. + Fix for exception raised during launching. 2025-02-28 Richard Frith-Macdonald - * Version: - * ANNOUNCE: - * NEWS: - * Documentation/ReleaseNotes.gsdoc: - * Documentation/news.texi: - Bugfix 1.31.1 release. + * Version: + * ANNOUNCE: + * NEWS: + * Documentation/ReleaseNotes.gsdoc: + * Documentation/news.texi: + Bugfix 1.31.1 release. 2025-02-22 Richard Frith-Macdonald - * Source/ObjectiveC2/weak.m: Comment out unnecessary code which does - not work on s390x machines (and broke weak references on them). + * Source/ObjectiveC2/weak.m: Comment out unnecessary code which does + not work on s390x machines (and broke weak references on them). 2025-01-18 Richard Frith-Macdonald - * Documentation/ReleaseNotes.gsdoc: fix bad line break markup - * config/config.ffi.c: add some diagnostic logging + * Documentation/ReleaseNotes.gsdoc: fix bad line break markup + * config/config.ffi.c: add some diagnostic logging 2025-01-14 Wolfgang Lux - * Source/Makefile.postamble (after-install): - Don't install CoreFoundation header when installing base additions - on macOS. + * Source/Makefile.postamble (after-install): + Don't install CoreFoundation header when installing base additions + on macOS. 2025-01-14 Richard Frith-Macdonald - * Headers/GNUstepBase/NSURL+GNUstepBase.h: - * Source/GSHTTPURLHandle.m: - * Source/NSURL.m: - * Source/NSURLProtocol.m: - * Tests/base/NSURL/basic.m: - Fix -pathWithEscapes to return the full path as documented. - Change NSURLHandle/NSURLConnection to use this method (rather than - -fullPath) so that %2f escape sequences are preserved in the path - in the outgoing request (and also when used as a cache key). + * Headers/GNUstepBase/NSURL+GNUstepBase.h: + * Source/GSHTTPURLHandle.m: + * Source/NSURL.m: + * Source/NSURLProtocol.m: + * Tests/base/NSURL/basic.m: + Fix -pathWithEscapes to return the full path as documented. + Change NSURLHandle/NSURLConnection to use this method (rather than + -fullPath) so that %2f escape sequences are preserved in the path + in the outgoing request (and also when used as a cache key). 2025-01-10 Richard Frith-Macdonald - * ChangeLog: Update for new release - * ANNOUNCE: - * NEWS: - * Documentation/ReleaseNotes.gsdoc: - * Documentation/news.texi: - Update release notes for 1.31.0 release. + * ChangeLog: Update for new release + * ANNOUNCE: + * NEWS: + * Documentation/ReleaseNotes.gsdoc: + * Documentation/news.texi: + Update release notes for 1.31.0 release. 2025-02-04 Hugo Melder - * Source/NSKVOSupport.m: - * Tests/base/NSKVOSupport/legacy.m: - Implements the setKeys:triggerChangeNotificationsForDependentKey: - class method. Please do not use it. It is fundamentally broken, and - requires the object's meta class to hold additional state. - Keys from this class method are the last resort when retrieving - dependencies via keyPathsForValuesAffectingValueForKey:. - This aligns with the implementation in Foundation. + * Source/NSKVOSupport.m: + * Tests/base/NSKVOSupport/legacy.m: + Implements the setKeys:triggerChangeNotificationsForDependentKey: + class method. Please do not use it. It is fundamentally broken, and + requires the object's meta class to hold additional state. + Keys from this class method are the last resort when retrieving + dependencies via keyPathsForValuesAffectingValueForKey:. + This aligns with the implementation in Foundation. 2025-01-04 Richard Frith-Macdonald - * Headers/Foundation/NSRegularExpression.h: - * Source/NSRegularExpression.m: - * Tests/base/NSRegularExpression/bigSource.txt: - * Tests/base/NSRegularExpression/callbacks.m: - Restructure to allow enumeration of matches when using the classic - compiler/runtime (ie avoiding blocks) using a new primitive method - specifying a callback function and context. Also fix callback bug - spotted by git user sensetalkdoug and add testcases based on his - pull request (#476) - thanks. + * Headers/Foundation/NSRegularExpression.h: + * Source/NSRegularExpression.m: + * Tests/base/NSRegularExpression/bigSource.txt: + * Tests/base/NSRegularExpression/callbacks.m: + Restructure to allow enumeration of matches when using the classic + compiler/runtime (ie avoiding blocks) using a new primitive method + specifying a callback function and context. Also fix callback bug + spotted by git user sensetalkdoug and add testcases based on his + pull request (#476) - thanks. 2025-01-01 Richard Frith-Macdonald - * Source/NSKeyValueMutableArray.m: Fix mutable array support so that - we can remove items from multiple indices at the same time and avoid - problems where the array being accessed is set by copy rendering our - cached infromation invalid (issue #480). - * Tests/base/KVC/remove.m: adapted test by Rupert Daniel for removal - of items from mutable array. + * Source/NSKeyValueMutableArray.m: Fix mutable array support so that + we can remove items from multiple indices at the same time and avoid + problems where the array being accessed is set by copy rendering our + cached infromation invalid (issue #480). + * Tests/base/KVC/remove.m: adapted test by Rupert Daniel for removal + of items from mutable array. 2024-12-31 Richard Frith-Macdonald - * Source/NSTimeZone.m: Add GNUSTEP_BUILTIN_TZ environment variable to - force the use of the IANA standard based time zone files we provide - in the distribution rather than the system supplied time zone data. - This allows us to standardise test behavior across different systems. - * Tests/base/NSCalendarDate/TestInfo: set GNUSTEP_BUILTIN_TZ=1 - * Tests/base/NSCalendarDate/test02.m: Change from using the MET zone - to using CET for tests since the IANA data has changed to make MET - behave aas CET. - * Tests/base/NSTimeZone/TestInfo: set GNUSTEP_BUILTIN_TZ=1 + * Source/NSTimeZone.m: Add GNUSTEP_BUILTIN_TZ environment variable to + force the use of the IANA standard based time zone files we provide + in the distribution rather than the system supplied time zone data. + This allows us to standardise test behavior across different systems. + * Tests/base/NSCalendarDate/TestInfo: set GNUSTEP_BUILTIN_TZ=1 + * Tests/base/NSCalendarDate/test02.m: Change from using the MET zone + to using CET for tests since the IANA data has changed to make MET + behave aas CET. + * Tests/base/NSTimeZone/TestInfo: set GNUSTEP_BUILTIN_TZ=1 2024-12-27 Richard Frith-Macdonald - * Headers/GNUstepBase/GSIMap.h: - * Headers/GNUstepBase/GSObjCRuntime.h: - * Source/GSPrivate.h: - * Source/NSConcreteHashTable.m: - * Source/NSConcretePointerFunctions.h: - * Source/NSMessagePort.m: - * Source/NSNotificationCenter.m: - * Source/NSObject.m: - * Source/NSSocketPort.m: - * Source/ObjectiveC2/GNUmakefile: - * Source/ObjectiveC2/README: - * Source/ObjectiveC2/weak.m: - * Tests/base/Functions/runtime.m: - * Tests/base/NSHashTable/weakObjects.m: - * Tests/base/NSMapTable/weakObjects.m: - * Tests/base/NSNotification/general.m: - * Tests/base/NSPointerArray/weakObjects.m: - Implement weak objects API support for classic/gnu runtime. - Use it to implement weak reference support in NSPointerFunctions - (for NSMapTable, NSHashTable, NSP{ointerArray) and to implement - safe observer support for NSNotificationCenter (if an observer is - deallocated then it is removed from the notification center the - next time a notification woudl be posted to it). + * Headers/GNUstepBase/GSIMap.h: + * Headers/GNUstepBase/GSObjCRuntime.h: + * Source/GSPrivate.h: + * Source/NSConcreteHashTable.m: + * Source/NSConcretePointerFunctions.h: + * Source/NSMessagePort.m: + * Source/NSNotificationCenter.m: + * Source/NSObject.m: + * Source/NSSocketPort.m: + * Source/ObjectiveC2/GNUmakefile: + * Source/ObjectiveC2/README: + * Source/ObjectiveC2/weak.m: + * Tests/base/Functions/runtime.m: + * Tests/base/NSHashTable/weakObjects.m: + * Tests/base/NSMapTable/weakObjects.m: + * Tests/base/NSNotification/general.m: + * Tests/base/NSPointerArray/weakObjects.m: + Implement weak objects API support for classic/gnu runtime. + Use it to implement weak reference support in NSPointerFunctions + (for NSMapTable, NSHashTable, NSP{ointerArray) and to implement + safe observer support for NSNotificationCenter (if an observer is + deallocated then it is removed from the notification center the + next time a notification woudl be posted to it). 2024-11-29 Richard Frith-Macdonald - * Source/NSURLProtocol.m: fix leaks due to retain loops. - * Source/Additions/NSObject+GNUstepBase.m: fix issues in new - -trackOwnership mechanism to log tracked instances at exist and to - handle cases where we track instances of a class and instances of - its subclasses. + * Source/NSURLProtocol.m: fix leaks due to retain loops. + * Source/Additions/NSObject+GNUstepBase.m: fix issues in new + -trackOwnership mechanism to log tracked instances at exist and to + handle cases where we track instances of a class and instances of + its subclasses. 2024-11-26 Matvii Jarosh - * NSByteOrder.h: fix NSSwappedFloat and NSSwappedDouble - * MISSING: + * NSByteOrder.h: fix NSSwappedFloat and NSSwappedDouble + * MISSING: 2024-11-25 Matvii Jarosh - * NSInvocation.h: add enum _NSObjCValueType and - typedef structNSObjCValue. There are no functions not implemented - in NSInvocation.h left. - * MISSING: + * NSInvocation.h: add enum _NSObjCValueType and + typedef structNSObjCValue. There are no functions not implemented + in NSInvocation.h left. + * MISSING: 2024-11-21 Matvii Jarosh - * NSValue: add valueWithEdgeInsets and edgeInsetsValue. - * typeEncodingHelper.h: add NSINSETS_ENCODING_PREFIX and - IS_NSINSETS_ENCODING and update comment. - * type_encoding.m: add test NSINSETS_ENCODING_PREFIX. - * GSConcreteValueTamplate.m: add GSEdgeInsetsValue. - * GSConcreteValue.m: add TYPE_ORDER 6. + * NSValue: add valueWithEdgeInsets and edgeInsetsValue. + * typeEncodingHelper.h: add NSINSETS_ENCODING_PREFIX and + IS_NSINSETS_ENCODING and update comment. + * type_encoding.m: add test NSINSETS_ENCODING_PREFIX. + * GSConcreteValueTamplate.m: add GSEdgeInsetsValue. + * GSConcreteValue.m: add TYPE_ORDER 6. 2024-11-24 Richard Frith-Macdonald - * Source/NSSocketPort.m: fix leak of data object when establishing a - new connection. + * Source/NSSocketPort.m: fix leak of data object when establishing a + new connection. 2024-11-22 Richard Frith-Macdonald - * Tools/AGSIndex: (-makeRefs:) process child nodes in loop rather - than recursively ... reduces the depth of recursion to the depth of - nesting children rather than the number of children, avoiding stack - overflow for large projects. - * Source/GSHTTPURLHandle.m: Fix leak of connection description strings - when reconnecting an existing handle. + * Tools/AGSIndex: (-makeRefs:) process child nodes in loop rather + than recursively ... reduces the depth of recursion to the depth of + nesting children rather than the number of children, avoiding stack + overflow for large projects. + * Source/GSHTTPURLHandle.m: Fix leak of connection description strings + when reconnecting an existing handle. 2024-11-21 Richard Frith-Macdonald - * NSRegularExpression: avoid leaks in ICU code by calling more - primitive methods. - * NSAutoreleasePool: fix leaks with libobjc2 ARC methods when a pool - is in a context that we leave due to an exception. - * NSObject: add -trackOwnership to log the retain/release/dealloc of - in individual instance. + * NSRegularExpression: avoid leaks in ICU code by calling more + primitive methods. + * NSAutoreleasePool: fix leaks with libobjc2 ARC methods when a pool + is in a context that we leave due to an exception. + * NSObject: add -trackOwnership to log the retain/release/dealloc of + in individual instance. 2024-11-19 Richard Frith-Macdonald - * GSMime: fixed buffer overrun in rare circumstances when decoding - an encoded word in a header. - fix to cope with dealloc of uninitialised instances of GSMimeSMTPClient - * GSTLS: clean up used resources on exit - * NSCharacterSet: Fix retain count of cached character sets - * NSDateFormatter: fix to cope with dealloc of uninitialised instances - * NSFileManager: fix leak of enumerator when enumerating files at - a directory specified by URL - * NSHTTPCookie: fix buffer overrun parsing cookie header fields - * NSInvocation: fix leak of type information memory when passing - general struct argument/return values - * NSNumberFormatter: fix to cope with dealloc of uninitialised instances - * NSOperation: fix to cope with dealloc of uninitialised instances - * NSPredicate: fix leaks of keypath and set expressions - also fix leak of objects if exception occurs while scanning predicate - string - * NSPropertyList: fix leaks if exception occurs while parsing - * NSRegularExpression: fix leaks if exception occurs while parsing - * NSString: fix lead in dataUsingEncoding:allowLossyConversion: - * NSTimeZone: fix retain cycle in absolute time zones - fix leak of ICU calendar in -localizedName:locale: - * NSURL: fix leaks when initialising with unparseable string etc - * Testcases: fix many leaks so that most tests run to completion - without any leaked memory. - + * GSMime: fixed buffer overrun in rare circumstances when decoding + an encoded word in a header. + fix to cope with dealloc of uninitialised instances of GSMimeSMTPClient + * GSTLS: clean up used resources on exit + * NSCharacterSet: Fix retain count of cached character sets + * NSDateFormatter: fix to cope with dealloc of uninitialised instances + * NSFileManager: fix leak of enumerator when enumerating files at + a directory specified by URL + * NSHTTPCookie: fix buffer overrun parsing cookie header fields + * NSInvocation: fix leak of type information memory when passing + general struct argument/return values + * NSNumberFormatter: fix to cope with dealloc of uninitialised instances + * NSOperation: fix to cope with dealloc of uninitialised instances + * NSPredicate: fix leaks of keypath and set expressions + also fix leak of objects if exception occurs while scanning predicate + string + * NSPropertyList: fix leaks if exception occurs while parsing + * NSRegularExpression: fix leaks if exception occurs while parsing + * NSString: fix lead in dataUsingEncoding:allowLossyConversion: + * NSTimeZone: fix retain cycle in absolute time zones + fix leak of ICU calendar in -localizedName:locale: + * NSURL: fix leaks when initialising with unparseable string etc + * Testcases: fix many leaks so that most tests run to completion + without any leaked memory. + 2024-11-19 Matvii Jarosh - * Header/Foundation/NSGeometry.h: fixed NSRectEdge and - NSAlignmentOptions enums. + * Header/Foundation/NSGeometry.h: fixed NSRectEdge and + NSAlignmentOptions enums. 2024-11-18 Matvii Jarosh - * Source/NSGeometry.m: added NSIntegralRectWithOptions function. - * Header/Foundation/NSGeometry.h: Fixed incompatible NSRectEdge, - added enum NSAlignmentOptions, added NSRectFromCGRect, - NSRectToCGRect, NSPointFromCGPoint, NSPointToCGPoint, - NSSizeFromCGSize and NSSizeToCGSizea functions. - * MISSING: + * Source/NSGeometry.m: added NSIntegralRectWithOptions function. + * Header/Foundation/NSGeometry.h: Fixed incompatible NSRectEdge, + added enum NSAlignmentOptions, added NSRectFromCGRect, + NSRectToCGRect, NSPointFromCGPoint, NSPointToCGPoint, + NSSizeFromCGSize and NSSizeToCGSizea functions. + * MISSING: 2024-11-14 Richard Frith-Macdonald - * Source/NSBundle.m: Restructure a bit to expose resource lookup - and info dictionary as GSPrivate... functions without needing full - NSBundle initialisation. - * Source/GSPrivate.h: declare new functions. - * Source/NSUserDefaults.m: use bundle identifier rather than process - name where it is available. - WARNING ... this brings behavior in line with MacOS but it means that - existing defaults databases will not be loaded. If your app is called - MyApp and its bundle identifier (stored as the CFBundleIdentifier - value in the Info-gnustep.plist or Info.plist file in your app) is - mydomain.MyApp then you can copy the information by saving the old - information to a file, editing the domain name in the file, and then - importing from that file using the 'defaults' command. - Or use sed to do the editing in a pipeline like this: - defaults read MyApp |\ - sed -e 's/^MyApp /mydomain.MyApp/' |\ - defaults write - Then remove the old information with 'defaults delete MyApp'. + * Source/NSBundle.m: Restructure a bit to expose resource lookup + and info dictionary as GSPrivate... functions without needing full + NSBundle initialisation. + * Source/GSPrivate.h: declare new functions. + * Source/NSUserDefaults.m: use bundle identifier rather than process + name where it is available. + WARNING ... this brings behavior in line with MacOS but it means that + existing defaults databases will not be loaded. If your app is called + MyApp and its bundle identifier (stored as the CFBundleIdentifier + value in the Info-gnustep.plist or Info.plist file in your app) is + mydomain.MyApp then you can copy the information by saving the old + information to a file, editing the domain name in the file, and then + importing from that file using the 'defaults' command. + Or use sed to do the editing in a pipeline like this: + defaults read MyApp |\ + sed -e 's/^MyApp /mydomain.MyApp/' |\ + defaults write + Then remove the old information with 'defaults delete MyApp'. 2024-11-12 Richard Frith-Macdonald - * Source/NSNotificationCenter.m: - Fix last update for case where we have a non-block notification. + * Source/NSNotificationCenter.m: + Fix last update for case where we have a non-block notification. 2024-11-12 Richard Frith-Macdonald - * Headers/GNUstepBase/GSIMap.h: - Change (and document) the 'clear' macros for removing keys and values - from map tables so they can be used properly. Change 'write' macros - to be 'store' macros, reflecting a roll of storing vvalues into the - map. Standardise macro names referring to values to end in 'VALUE'. - Tidy up and improve comments. - * Source/NSConcreteHashTable.m: - Replace macros with retain/release macros which do nothing and - store/clear macros which invoke the appropriate functions. - * Source/NSConcreteMapTable.m: - Replace macros with retain/release macros which do nothing and - store/clear macros which invoke the appropriate functions. - * Source/NSConcretePointerFunctions.h: - In pointerFunctionsReplace() fix bug setting the new value to zero - thather than the value supplied. - * Source/NSConcretePointerFunctions.m: - Set correct relinquish function for - NSPointerFunctionsObjectPointerPersonality - * Tests/base/NSHashTable/general.m: - Add tests for NSHashTableObjectPointerPersonality and - NSObjectHashCallBacks - * Tests/base/NSMapTable/general.m: - Add tests for NSMapTableObjectPointerPersonality and - NSObjectMapKeyCallBacks/NSObjectMapValueCallBacks + * Headers/GNUstepBase/GSIMap.h: + Change (and document) the 'clear' macros for removing keys and values + from map tables so they can be used properly. Change 'write' macros + to be 'store' macros, reflecting a roll of storing vvalues into the + map. Standardise macro names referring to values to end in 'VALUE'. + Tidy up and improve comments. + * Source/NSConcreteHashTable.m: + Replace macros with retain/release macros which do nothing and + store/clear macros which invoke the appropriate functions. + * Source/NSConcreteMapTable.m: + Replace macros with retain/release macros which do nothing and + store/clear macros which invoke the appropriate functions. + * Source/NSConcretePointerFunctions.h: + In pointerFunctionsReplace() fix bug setting the new value to zero + thather than the value supplied. + * Source/NSConcretePointerFunctions.m: + Set correct relinquish function for + NSPointerFunctionsObjectPointerPersonality + * Tests/base/NSHashTable/general.m: + Add tests for NSHashTableObjectPointerPersonality and + NSObjectHashCallBacks + * Tests/base/NSMapTable/general.m: + Add tests for NSMapTableObjectPointerPersonality and + NSObjectMapKeyCallBacks/NSObjectMapValueCallBacks 2024-11-09 Richard Frith-Macdonald - * Source/NSNotificationCenter.m: - * Tests/base/NSNotification/general.m: - Rewrite mechanism for handling the behavior of observations using - blocks. Add simple testcase checking reference counts of observer. + * Source/NSNotificationCenter.m: + * Tests/base/NSNotification/general.m: + Rewrite mechanism for handling the behavior of observations using + blocks. Add simple testcase checking reference counts of observer. 2024-11-08 Richard Frith-Macdonald - - * Headers/Foundation/NSFileHandle.h: - * Source/GSFileHandle.m: - * Source/NSFileHandle.m: - Add OSX 10.15 file offset methods (issue 325, pull 446 and more) + + * Headers/Foundation/NSFileHandle.h: + * Source/GSFileHandle.m: + * Source/NSFileHandle.m: + Add OSX 10.15 file offset methods (issue 325, pull 446 and more) 2024-11-03 Richard Frith-Macdonald - * Source/NSFileManager.m: Fix case where positive result of asking - handler whether to proceed was ignored. + * Source/NSFileManager.m: Fix case where positive result of asking + handler whether to proceed was ignored. 2024-11-01 Richard Frith-Macdonald - * Source/NSDate.m: Fix returing receiver when earlier/later argument - is equal to the receiver. Various formatting fixes. + * Source/NSDate.m: Fix returing receiver when earlier/later argument + is equal to the receiver. Various formatting fixes. 2024-10-29 Richard Frith-Macdonald - * Source/NSUndoManager.m: set zero/nil return value when forwarding - invocation ... in case calling code tries to use the result. + * Source/NSUndoManager.m: set zero/nil return value when forwarding + invocation ... in case calling code tries to use the result. 2024-10-28 Hugo Melder - * Source/NSString.m: - -commonPrefixWithString:options: returns nil when string supplied as - first argument is nil. On macOS, the empty string is returned instead. - Align implementation with macOS. + * Source/NSString.m: + -commonPrefixWithString:options: returns nil when string supplied as + first argument is nil. On macOS, the empty string is returned instead. + Align implementation with macOS. 2024-10-13 Richard Frith-Macdonald - * Source/NSFileManager.m: Create an NSError object when we fail to - copy because the destination item already exists. + * Source/NSFileManager.m: Create an NSError object when we fail to + copy because the destination item already exists. 2024-10-10: Hugo Melder - * Source/NSDate.m: - * Source/NSDatePrivate.h: - NSDate is now a small object in slot 6, when configuring GNUstep with the - clang/libobjc2 toolchain. This is done by compressing the binary64 fp - holding the seconds since reference date (because someone at Apple - thought it would be a good idea to represent a time interval as a fp). - Note that this assumes that IEEE 754 is used. + * Source/NSDate.m: + * Source/NSDatePrivate.h: + NSDate is now a small object in slot 6, when configuring GNUstep with the + clang/libobjc2 toolchain. This is done by compressing the binary64 fp + holding the seconds since reference date (because someone at Apple + thought it would be a good idea to represent a time interval as a fp). + Note that this assumes that IEEE 754 is used. - * Source/NSCalendarDate.m: - Remove access to the NSDate private concrete Class - and implement -timeIntervalSinceReferenceDate instead. - Previously, all methods of the concrete date class were - added to NSCalendarDate via GSObjCAddClassBehavior. + * Source/NSCalendarDate.m: + Remove access to the NSDate private concrete Class + and implement -timeIntervalSinceReferenceDate instead. + Previously, all methods of the concrete date class were + added to NSCalendarDate via GSObjCAddClassBehavior. 2024-23-09: Hugo Melder - * Headers/Foundation/NSThread.h: - * Source/NSString.m: - * Source/NSThread.m: - Cache ICU collator in thread-local storage to avoid - expensive construction when comparing strings. + * Headers/Foundation/NSThread.h: + * Source/NSString.m: + * Source/NSThread.m: + Cache ICU collator in thread-local storage to avoid + expensive construction when comparing strings. 2024-08-13: Hugo Melder - * Source/NSOperation.m: - * Headers/Foundation/NSOperation.h: - Give NSOperationQueue worker threads a proper thread - name for easy identification. + * Source/NSOperation.m: + * Headers/Foundation/NSOperation.h: + Give NSOperationQueue worker threads a proper thread + name for easy identification. 2024-08-12 Hugo Melder - * Source/NSThread.m: - Fix threadPriority and setThreadPriority: on Android. + * Source/NSThread.m: + Fix threadPriority and setThreadPriority: on Android. 2024-08-08 Richard Frith-Macdonald - * Tools/AGSHtml.m: - Add protocols to the graphing. + * Tools/AGSHtml.m: + Add protocols to the graphing. 2024-08-07 Richard Frith-Macdonald - * Tools/AGSHtml.m: - * Tools/GNUmakefile: - * config.mak.in: - * configure.ac: - * configure: - Preliminary changes add inheritance diagrams to class documentation. - Uses the graphviz 'dot' tool if it is available at configure time. - Just draws class/superclass relationship for now. - Should add protocols and prettify boxes later. + * Tools/AGSHtml.m: + * Tools/GNUmakefile: + * config.mak.in: + * configure.ac: + * configure: + Preliminary changes add inheritance diagrams to class documentation. + Uses the graphviz 'dot' tool if it is available at configure time. + Just draws class/superclass relationship for now. + Should add protocols and prettify boxes later. 2024-07-25 Richard Frith-Macdonald - * Headers/Foundation/NSHashTable.h: - * Headers/Foundation/NSMapTable.h: - * Headers/Foundation/NSPointerArray.h: - * Headers/Foundation/NSPointerFunctions.h: - * Headers/Foundation/NSZone.h: - * Headers/GNUstepBase/config.h.in: - * Source/GSSocketStream.m: - * Source/GSStream.m: - * Source/NSConcreteHashTable.m: - * Source/NSConcreteMapTable.m: - * Source/NSConcretePointerFunctions.h: - * Source/NSConcretePointerFunctions.m: - * Source/NSConnection.m: - * Source/NSHashTable.m: - * Source/NSKeyedArchiver.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSKeyValueObserving.m: - * Source/NSMapTable.m: - * Source/NSPointerArray.m: - * Source/NSPort.m: - * Source/NSZone.m: - * Tests/base/NSHashTable/create.m: - * Tests/base/NSHashTable/weakObjects.m: - * Tests/base/NSIndexSet/enumerateRanges.m: - * Tests/base/NSMapTable/create.m: - * Tests/base/NSMapTable/weakObjects.m: - * Tests/base/NSPointerArray/weakObjects.m: - * Tests/base/NSPointerFunctions/basic.m: - * Tests/base/NSPointerFunctions/general.m: - * Tests/base/NSPointerFunctions/TestInfo: - General fixups for pointer functions, removing obsolete (non-working) - GC related internal code. There is probably still a little of that old - stuff lurking in the internals which should be removed when found, but - the vast majority is cleaned up. + * Headers/Foundation/NSHashTable.h: + * Headers/Foundation/NSMapTable.h: + * Headers/Foundation/NSPointerArray.h: + * Headers/Foundation/NSPointerFunctions.h: + * Headers/Foundation/NSZone.h: + * Headers/GNUstepBase/config.h.in: + * Source/GSSocketStream.m: + * Source/GSStream.m: + * Source/NSConcreteHashTable.m: + * Source/NSConcreteMapTable.m: + * Source/NSConcretePointerFunctions.h: + * Source/NSConcretePointerFunctions.m: + * Source/NSConnection.m: + * Source/NSHashTable.m: + * Source/NSKeyedArchiver.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSKeyValueObserving.m: + * Source/NSMapTable.m: + * Source/NSPointerArray.m: + * Source/NSPort.m: + * Source/NSZone.m: + * Tests/base/NSHashTable/create.m: + * Tests/base/NSHashTable/weakObjects.m: + * Tests/base/NSIndexSet/enumerateRanges.m: + * Tests/base/NSMapTable/create.m: + * Tests/base/NSMapTable/weakObjects.m: + * Tests/base/NSPointerArray/weakObjects.m: + * Tests/base/NSPointerFunctions/basic.m: + * Tests/base/NSPointerFunctions/general.m: + * Tests/base/NSPointerFunctions/TestInfo: + General fixups for pointer functions, removing obsolete (non-working) + GC related internal code. There is probably still a little of that old + stuff lurking in the internals which should be removed when found, but + the vast majority is cleaned up. 2024-07-15 Richard Frith-Macdonald - * Headers/Foundation/NSPointerFunctions.h: deprecate GC methods. - * Source/NSConcreteHashTable.m: add brackets around test. - * Source/NSConcreteMapTable.m: correct test for weak value and key. - * Source/NSConcretePointerFunctions.m: Obsolete GC code changes ... - Raise exception for setter of GC write barriers. - Log error for n getter of GC write barriers. + * Headers/Foundation/NSPointerFunctions.h: deprecate GC methods. + * Source/NSConcreteHashTable.m: add brackets around test. + * Source/NSConcreteMapTable.m: correct test for weak value and key. + * Source/NSConcretePointerFunctions.m: Obsolete GC code changes ... + Raise exception for setter of GC write barriers. + Log error for n getter of GC write barriers. 2024-07-09 Richard Frith-Macdonald - * Source/NSString.m: Implement regular expression search in replace - methods (github issue 424) by using -rangeOfString:options:range: in - place of obsolete optimisation function. + * Source/NSString.m: Implement regular expression search in replace + methods (github issue 424) by using -rangeOfString:options:range: in + place of obsolete optimisation function. 2024-07-09 Richard Frith-Macdonald - * config/codeset.m4: - * config/objc-con-autoload.m4: - * config/pathtls.m4: - * config/pathxml.m4: - * config/procfs.m4: - * configure.ac: - Changes to avoid the use of most obsolete/deprecated autoconf macros. - Change usage of AC_CONFIG_AUX_DIR() to deal with altered behavior in - autoconf-2.71 (shipped on many new systems) where the value we set - in CURRENT_GNUSTEP_MAKEFILES is not available. This should now use - the GNUSTEP_MAKEFILES environment variable or get the output of the - gnustep-config script directly. + * config/codeset.m4: + * config/objc-con-autoload.m4: + * config/pathtls.m4: + * config/pathxml.m4: + * config/procfs.m4: + * configure.ac: + Changes to avoid the use of most obsolete/deprecated autoconf macros. + Change usage of AC_CONFIG_AUX_DIR() to deal with altered behavior in + autoconf-2.71 (shipped on many new systems) where the value we set + in CURRENT_GNUSTEP_MAKEFILES is not available. This should now use + the GNUSTEP_MAKEFILES environment variable or get the output of the + gnustep-config script directly. 2024-07-02 Hugo Melder - * Source/GSEasyHandle.h: - * Source/GSEasyHandle.m: - * Source/GSHTTPURLProtocol.h: - * Source/GSHTTPURLProtocol.m: - * Source/GSMultiHandle.h: - * Source/GSMultiHandle.m: - * Source/GSNativeProtocol.h: - * Source/GSNativeProtocol.m: - * Source/GSTaskRegistry.h: - * Source/GSTaskRegistry.m: - * Source/GSTimeoutSource.h: - * Source/GSTimeoutSource.m: - * Source/GSTransferState.h: - * Source/GSTransferState.m: - * Source/GSURLPrivate.h: - * Source/GSURLSessionTaskBody.h: - * Source/GSURLSessionTaskBody.m: - * Source/GSURLSessionTaskBodySource.h: - * Source/GSURLSessionTaskBodySource.m: - Deleted old NSURLSession implementation. - - * Headers/Foundation/NSURLSession.h: - * Source/NSURLSessionPrivate.h: - * Source/NSURLSession.m: - * Source/NSURLSessionConfiguration.m: - * Source/NSURLSessionTaskPrivate.h: - * Source/NSURLSessionTask.m: - * Source/NSURLSessionConfiguration.m: - The new NSURLSession implementation was reduced to just two main classes: - NSURLSession and NSURLSessionTask. URLSession manages a libcurl multi - handle and the required plumming via libdispatch. Timeout and socket actions - are handled in the libdispatch workqueue. Delegate messages and completion - handlers are submitted to a seperate serial NSOperationQueue. - - * Headers/Foundation/NSUserDefaults.h: - * Source/externs.m: - Added GSCACertificateFilePath for custom CA certificate file configuration. - - * Source/NSHTTPCookie.m: - Reworked cookie expiration date parsing. - - * Source/NSOperation.m: - Clear all blocks in _executionBlocks after completion. - - * Headers/Foundation/NSURLRequest.h: - * Source/NSURLRequest.m: - Implemented -[NSURLRequest assumesHTTP3Capable] and -[NSURLRequest - setAssumesHTTP3Capable:] respectively. The internal case-insensitive header - dictionary is now exposed for private usage with -[NSURLRequest - _insensitiveHeaders]. + * Source/GSEasyHandle.h: + * Source/GSEasyHandle.m: + * Source/GSHTTPURLProtocol.h: + * Source/GSHTTPURLProtocol.m: + * Source/GSMultiHandle.h: + * Source/GSMultiHandle.m: + * Source/GSNativeProtocol.h: + * Source/GSNativeProtocol.m: + * Source/GSTaskRegistry.h: + * Source/GSTaskRegistry.m: + * Source/GSTimeoutSource.h: + * Source/GSTimeoutSource.m: + * Source/GSTransferState.h: + * Source/GSTransferState.m: + * Source/GSURLPrivate.h: + * Source/GSURLSessionTaskBody.h: + * Source/GSURLSessionTaskBody.m: + * Source/GSURLSessionTaskBodySource.h: + * Source/GSURLSessionTaskBodySource.m: + Deleted old NSURLSession implementation. + + * Headers/Foundation/NSURLSession.h: + * Source/NSURLSessionPrivate.h: + * Source/NSURLSession.m: + * Source/NSURLSessionConfiguration.m: + * Source/NSURLSessionTaskPrivate.h: + * Source/NSURLSessionTask.m: + * Source/NSURLSessionConfiguration.m: + The new NSURLSession implementation was reduced to just two main classes: + NSURLSession and NSURLSessionTask. URLSession manages a libcurl multi + handle and the required plumming via libdispatch. Timeout and socket actions + are handled in the libdispatch workqueue. Delegate messages and completion + handlers are submitted to a seperate serial NSOperationQueue. + + * Headers/Foundation/NSUserDefaults.h: + * Source/externs.m: + Added GSCACertificateFilePath for custom CA certificate file configuration. + + * Source/NSHTTPCookie.m: + Reworked cookie expiration date parsing. + + * Source/NSOperation.m: + Clear all blocks in _executionBlocks after completion. + + * Headers/Foundation/NSURLRequest.h: + * Source/NSURLRequest.m: + Implemented -[NSURLRequest assumesHTTP3Capable] and -[NSURLRequest + setAssumesHTTP3Capable:] respectively. The internal case-insensitive header + dictionary is now exposed for private usage with -[NSURLRequest + _insensitiveHeaders]. 2024-06-21 Richard Frith-Macdonald - * Source/NSDistantObject.m: Use standard method name conventions - * Tools/AGSOutput.m: - * Tools/AGSParser.m: - * Tools/autogsdoc.m: - * Tools/make_strings/make_strings.m: - * Tools/plutil.m: - Fix various memory leaks. - * Tools/NSObject.m: - * Documentation/Base.gsdoc: - Make GSLogZombie() an external function for debuggers which can't find - it as a static function. Add [NSZombie -logZombie:] method to call the - function in case there is a debugger which can set a breakpoint on the - method more easily than on the function. + * Source/NSDistantObject.m: Use standard method name conventions + * Tools/AGSOutput.m: + * Tools/AGSParser.m: + * Tools/autogsdoc.m: + * Tools/make_strings/make_strings.m: + * Tools/plutil.m: + Fix various memory leaks. + * Tools/NSObject.m: + * Documentation/Base.gsdoc: + Make GSLogZombie() an external function for debuggers which can't find + it as a static function. Add [NSZombie -logZombie:] method to call the + function in case there is a debugger which can set a breakpoint on the + method more easily than on the function. 2024-06-21 Richard Frith-Macdonald - * Source/Additions/Unicode.m: - * Source/GSTLS.m: - * Source/NSDictionary.m: - * Source/NSThread.m: - * Source/NSURLSession.m: - * Tools/AGSHtml.m: - * Tools/AGSOutput.m: - * Tools/AGSParser.m: - Fix dead assignments. + * Source/Additions/Unicode.m: + * Source/GSTLS.m: + * Source/NSDictionary.m: + * Source/NSThread.m: + * Source/NSURLSession.m: + * Tools/AGSHtml.m: + * Tools/AGSOutput.m: + * Tools/AGSParser.m: + Fix dead assignments. 2024-06-21 Richard Frith-Macdonald - * Source/GSHTTPURLProtocol.m: - * Source/GSTLS.m: - * Source/NSConnection.m: - * Source/NSSpellServer.m: - * Tools/AGSParser.m - Fix dead initialisations. - * Source/GSAttributedString.m: - * Source/tzdb.h: - Fix dead assignments - * Source/NSTask.m: - Use fork() becuse vfork() behavior is undefined when we make assignments - to variables or system calls before exec(). - * Source/GSArray.m: - Ignore nil values in collection (should never happen) possibly caused - by retain/release errors. Old code would have crashed. - * Source/NSException.m: - Avoid compiler warning about malloced memory type compatibility. - + * Source/GSHTTPURLProtocol.m: + * Source/GSTLS.m: + * Source/NSConnection.m: + * Source/NSSpellServer.m: + * Tools/AGSParser.m + Fix dead initialisations. + * Source/GSAttributedString.m: + * Source/tzdb.h: + Fix dead assignments + * Source/NSTask.m: + Use fork() becuse vfork() behavior is undefined when we make assignments + to variables or system calls before exec(). + * Source/GSArray.m: + Ignore nil values in collection (should never happen) possibly caused + by retain/release errors. Old code would have crashed. + * Source/NSException.m: + Avoid compiler warning about malloced memory type compatibility. + 2024-06-19 Richard Frith-Macdonald - * Source/Additions/GSInsensitiveDictionary.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSXMLParser.m: - Fix rare memory management issues. - * Source/NSURL.m: Fix C-string termination issues - and a few dead assignments - * Source/NSOrderedSet.m: Fix ranged initialisation index errors - * Source/GSDictionary.m: Avoid excess copies of dictionary keys - * Source/NSPropertyList.m: Fix potential leaks - * Source/NSSortDescriptor.m: Fix potential use after dealloc + * Source/Additions/GSInsensitiveDictionary.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSXMLParser.m: + Fix rare memory management issues. + * Source/NSURL.m: Fix C-string termination issues + and a few dead assignments + * Source/NSOrderedSet.m: Fix ranged initialisation index errors + * Source/GSDictionary.m: Avoid excess copies of dictionary keys + * Source/NSPropertyList.m: Fix potential leaks + * Source/NSSortDescriptor.m: Fix potential use after dealloc 2024-06-18 Richard Frith-Macdonald - * Headers/Foundation/NSDebug.h: Remove deprecated function and add - new function to turn on tracing objects of a specific class. - * Source/NSDebug.m: Fix locking issues when recording object allocation. - Fix bug removing recoded objects. Implement tracing recorded object - allocation with stack trace (also option to veto recording of - individual objects). - * Source/GSFileHandle.m: Fix memory leak found using changes above. + * Headers/Foundation/NSDebug.h: Remove deprecated function and add + new function to turn on tracing objects of a specific class. + * Source/NSDebug.m: Fix locking issues when recording object allocation. + Fix bug removing recoded objects. Implement tracing recorded object + allocation with stack trace (also option to veto recording of + individual objects). + * Source/GSFileHandle.m: Fix memory leak found using changes above. 2024-06-10 Marco Rebhan - * Headers/Foundation/NSFileManager.h: - * Source/NSFileManager.m: - Implement -[NSFileManager URLsForDirectory:inDomains:]. + * Headers/Foundation/NSFileManager.h: + * Source/NSFileManager.m: + Implement -[NSFileManager URLsForDirectory:inDomains:]. 2024-06-10 Richard Frith-Macdonald - * Source/GSFileHandle.m: debug log of closing a closed file handle - rather than raising exception (reported by Wolfgang). + * Source/GSFileHandle.m: debug log of closing a closed file handle + rather than raising exception (reported by Wolfgang). 2024-05-31 Hugo Melder - * Source/NSPredicate.m: - * Tests/base/NSPredicate/basic.m: - Improve implementation of BETWEEN operator in NSPredicate - for data types other than NSNumber. Proper support - for constant values. + * Source/NSPredicate.m: + * Tests/base/NSPredicate/basic.m: + Improve implementation of BETWEEN operator in NSPredicate + for data types other than NSNumber. Proper support + for constant values. 2024-05-18 Hugo Melder - * Source/NSString.m: - * Headers/Foundation/NSString.h: - * Tests/base/NSString/enumerateLinesUsingBlock.m: - Implemented -[NSString enumerateLinesUsingBlock:]. + * Source/NSString.m: + * Headers/Foundation/NSString.h: + * Tests/base/NSString/enumerateLinesUsingBlock.m: + Implemented -[NSString enumerateLinesUsingBlock:]. 2024-04-30 Richard Frith-Macdonald - * Headers/Foundation/NSObject.h: - * Headers/GNUstepBase/GSLock.h: - * Headers/GNUstepBase/NSLock+GNUstepBase.h: - * Source/Additions/GNUmakefile: - * Source/Additions/GSLock.m: - * Source/Additions/NSError+GNUstepBase.m: - * Source/Additions/NSLock+GNUstepBase.m: - * Source/Additions/NSObject+GNUstepBase.m: - * Source/Additions/Unicode.m: - * Source/DocMakefile: - * Source/GSLocale.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSFileManager.m: - * Source/NSHTTPCookieStorage.m: - * Source/NSKeyValueObserving.m: - * Source/NSLog.m: - * Source/NSObject.m: - * Source/NSPortNameServer.m: - * Source/NSTask.m: - * Source/NSThread.m: - * Source/NSURLCache.m: - * Source/NSURLCredentialStorage.m: - * Source/ObjectiveC2/properties.m: - Remove deprecated locking code. Use lightweight and more fine-grained - locking for simple cases protecting short regions. Retain a global - lock for more complex siutations where there is a significant chance of - deadlock. + * Headers/Foundation/NSObject.h: + * Headers/GNUstepBase/GSLock.h: + * Headers/GNUstepBase/NSLock+GNUstepBase.h: + * Source/Additions/GNUmakefile: + * Source/Additions/GSLock.m: + * Source/Additions/NSError+GNUstepBase.m: + * Source/Additions/NSLock+GNUstepBase.m: + * Source/Additions/NSObject+GNUstepBase.m: + * Source/Additions/Unicode.m: + * Source/DocMakefile: + * Source/GSLocale.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSFileManager.m: + * Source/NSHTTPCookieStorage.m: + * Source/NSKeyValueObserving.m: + * Source/NSLog.m: + * Source/NSObject.m: + * Source/NSPortNameServer.m: + * Source/NSTask.m: + * Source/NSThread.m: + * Source/NSURLCache.m: + * Source/NSURLCredentialStorage.m: + * Source/ObjectiveC2/properties.m: + Remove deprecated locking code. Use lightweight and more fine-grained + locking for simple cases protecting short regions. Retain a global + lock for more complex siutations where there is a significant chance of + deadlock. 2024-04-26 Richard Frith-Macdonald - * ChangeLog: Update for new release - * ANNOUNCE: - * NEWS: - * Documentation/ReleaseNotes.gsdoc: - * Documentation/news.texi: - Update release notes for 1.30.0 release. - * Version: bump to 1.30.0 + * ChangeLog: Update for new release + * ANNOUNCE: + * NEWS: + * Documentation/ReleaseNotes.gsdoc: + * Documentation/news.texi: + Update release notes for 1.30.0 release. + * Version: bump to 1.30.0 2024-04-29 Doug Simons - * NSXMLNode.m: - Fix execute_xpath() to return an NSError when xpath expression can't - be evaluated instead of just calling NSLog. - * NSXMLElement.m: - Fix setAttributes: and setAttributesWithDictionary: to remove previous - attributes. + * NSXMLNode.m: + Fix execute_xpath() to return an NSError when xpath expression can't + be evaluated instead of just calling NSLog. + * NSXMLElement.m: + Fix setAttributes: and setAttributesWithDictionary: to remove previous + attributes. 2024-05-12 ethanc8R (github user) - * Headers/Foundation/NSRegularExpression.h: - * Headers/Foundation/NSString.h: - * Source/NSRegularExpression.m: - * Source/NSString.m: - * Tests/base/NSString/enumerateSubstringsInRange.m: - Added regular expression search methods. + * Headers/Foundation/NSRegularExpression.h: + * Headers/Foundation/NSString.h: + * Source/NSRegularExpression.m: + * Source/NSString.m: + * Tests/base/NSString/enumerateSubstringsInRange.m: + Added regular expression search methods. 2024-05-08 Hugo Melder - * Source/NSIndexSet.m: - * Tests/base/NSIndexSet/enumerateRanges.m: - Implement enumerateRangesInRange convenience methods - and tests. + * Source/NSIndexSet.m: + * Tests/base/NSIndexSet/enumerateRanges.m: + Implement enumerateRangesInRange convenience methods + and tests. 2024-05-07 Hugo Melder - * Source/NSURLSession.m: - _NSURLProtocolClient did not call completion handlers - in task:didFailWithError:. - Removed extraneous runtime calls. + * Source/NSURLSession.m: + _NSURLProtocolClient did not call completion handlers + in task:didFailWithError:. + Removed extraneous runtime calls. 2024-04-28 Richard Frith-Macdonald - * Source/GSPrivate.h: - * Source/NSLock.m: - * Source/NSPathUtilities.m: - Fix for bug #399 ... the problem occurred becaause gnustep_global_lock - does not exist until +initialize is called on NSObject so in the path - utilities function the -lock message as sent to nil and the -unlock - message as sent to the lock. - The change adds a new GSPrivateGlobalLock() function to reliably return - a recursive lock, and alters the NSPathUtilities code to use it instead - of gnustep_global_lock (we should probably do that elsewhere too). + * Source/GSPrivate.h: + * Source/NSLock.m: + * Source/NSPathUtilities.m: + Fix for bug #399 ... the problem occurred becaause gnustep_global_lock + does not exist until +initialize is called on NSObject so in the path + utilities function the -lock message as sent to nil and the -unlock + message as sent to the lock. + The change adds a new GSPrivateGlobalLock() function to reliably return + a recursive lock, and alters the NSPathUtilities code to use it instead + of gnustep_global_lock (we should probably do that elsewhere too). 2024-04-15 Frederik Seiffert - * Source/NSObject.m: add +[NSObject _TrivialAllocInit] to enable - fast-path alloc / init methods with libobjc2 2.2. + * Source/NSObject.m: add +[NSObject _TrivialAllocInit] to enable + fast-path alloc / init methods with libobjc2 2.2. 2024-04-02 Richard Frith-Macdonald - * Source/NSURLSession.m: fix for #385 + * Source/NSURLSession.m: fix for #385 2024-03-11 Richard Frith-Macdonald - * Source/NSNotificationCenter.m: Ensure class pointer is initialised - before use (git issue #381). + * Source/NSNotificationCenter.m: Ensure class pointer is initialised + before use (git issue #381). 2024-03-10 Hugo Melder - * Headers/Foundation/NSDate.h: - * Source/NSDate.m: - Added the +[NSDate now] constructor, which was introduced - in macOS 10.15. + *Headers/Foundation/NSDate.h: + * Source/NSDate.m: + Added the +[NSDate now] constructor, which was introduced + in macOS 10.15. 2024-03-04 Richard Frith-Macdonald - * Source/NSJSONSerialization.m: Fix leak reported by Larry Campbell - git issue #377 + * Source/NSJSONSerialization.m: Fix leak reported by Larry Campbell + git issue #377 2024-02-20 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Move posting of notification outside lock - protected region to avoid deadlock. + * Source/NSUserDefaults.m: Move posting of notification outside lock + protected region to avoid deadlock. 2024-02-16 Richard Frith-Macdonald - * Source/NSData.m: fix for #361 + * Source/NSData.m: fix for #361 2024-02-13 Richard Frith-Macdonald - * Source/GSFileHandle.m: - * Source/GSNetwork.h: - * Source/GSSocketStream.m: - * Source/GSStream.m: - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - Improve handling of error responses from socket operations and tweak - behavior in windows to try to recognise end of connection more reliably. + * Source/GSFileHandle.m: + * Source/GSNetwork.h: + * Source/GSSocketStream.m: + * Source/GSStream.m: + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + Improve handling of error responses from socket operations and tweak + behavior in windows to try to recognise end of connection more reliably. 2024-02-13 Richard Frith-Macdonald - * Source/NSError.m: Make -description and -localizedDescription formats + * Source/NSError.m: Make -description and -localizedDescription formats 2024-02-12 Richard Frith-Macdonald - * Source/NSException.m: Prefer objc_set_unexpected() to the older - _objc_unexpected_exception for setting handler. Should cure problem - where _objc_unexpected_exception exists in library but not header. + * Source/NSException.m: Prefer objc_set_unexpected() to the older + _objc_unexpected_exception for setting handler. Should cure problem + where _objc_unexpected_exception exists in library but not header. 2024-02-11 Richard Frith-Macdonald - * Headers/Foundation/NSURLProtocol.h: - * Source/GSEasyHandle.m: - * Source/GSHTTPURLProtocol.m: - * Source/GSNativeProtocol.m: - * Source/NSURLProtocol.m: - * Source/NSURLSession.m: - Add +canInitWithTask: and altered code to differentiate between - protocols which can be used with NSURLConnection and those which - can be used with NSURLSession to fix #302 + * Headers/Foundation/NSURLProtocol.h: + * Source/GSEasyHandle.m: + * Source/GSHTTPURLProtocol.m: + * Source/GSNativeProtocol.m: + * Source/NSURLProtocol.m: + * Source/NSURLSession.m: + Add +canInitWithTask: and altered code to differentiate between + protocols which can be used with NSURLConnection and those which + can be used with NSURLSession to fix #302 2024-02-11 Richard Frith-Macdonald - * Source/NSLocale.m: (+canonicalLocaleIdentifierFromString:) - Fix for #368 ... then check for presence of huphen...underscore script - identifier and delete it, as suggested by the existing comments. - Avoids the exception. - * Tests/base/NSLocale/general.m: Simple testcase + * Source/NSLocale.m: (+canonicalLocaleIdentifierFromString:) + Fix for #368 ... then check for presence of huphen...underscore script + identifier and delete it, as suggested by the existing comments. + Avoids the exception. + * Tests/base/NSLocale/general.m: Simple testcase 2024-02-02 Richard Frith-Macdonald - Source/NSString.m: Return empty string of correct class when loading - from an empty file or URL. - Source/Additions/GSMime.m: minor optimisation usng more efficient - method to append headers to mutable data object. + Source/NSString.m: Return empty string of correct class when loading + from an empty file or URL. + Source/Additions/GSMime.m: minor optimisation usng more efficient + method to append headers to mutable data object. 2024-02-01 Frederik Seiffert - * Source/NSProcessInfo.m: - * Headers/Foundation/NSProcessInfo.h: - Initialize Android process with current locale and system time zone. + * Source/NSProcessInfo.m: + * Headers/Foundation/NSProcessInfo.h: + Initialize Android process with current locale and system time zone. 2024-02-01 Frederik Seiffert - * Source/NSLocale.m: Fix -countryCode incorrectly returning language - code. + * Source/NSLocale.m: Fix -countryCode incorrectly returning language + code. 2024-01-30 Richard Frith-Macdonald - * Source/GSFileHandle.m: - * Source/GSPrivate.h: - * Source/GSSocketStream.m: - * Source/GSStream.m: - * Source/unix/GSRunLoopCtxt.m: - Make GSTcpTune options available to streams as well as file handles. - Improve debug logging for streasm operations. - Schedule streams in run loop on conclusion of TLS handshake (so we get - events telling us to start again after a blocked write). + * Source/GSFileHandle.m: + * Source/GSPrivate.h: + * Source/GSSocketStream.m: + * Source/GSStream.m: + * Source/unix/GSRunLoopCtxt.m: + Make GSTcpTune options available to streams as well as file handles. + Improve debug logging for streasm operations. + Schedule streams in run loop on conclusion of TLS handshake (so we get + events telling us to start again after a blocked write). 2024-01-29 Richard Frith-Macdonald - * Source/NSOperation.m: patch for issue #366 by Larry Campbell. + * Source/NSOperation.m: patch for issue #366 by Larry Campbell. 2024-01-28 Richard Frith-Macdonald - * Source/NSJSONSerialization.m: Fix for issue #365 ... don't try to - create a string ending with the first half of a unicode surrogate pair. + * Source/NSJSONSerialization.m: Fix for issue #365 ... don't try to + create a string ending with the first half of a unicode surrogate pair. 2024-01-08 Richard Frith-Macdonald - * Source/NSNotificationCenter.m: fix for memory leak should keep the - observer retained until removed. + * Source/NSNotificationCenter.m: fix for memory leak should keep the + observer retained until removed. 2023-12-21 Richard Frith-Macdonald - * Tools/AGSParser.m: Replace GS_GENERIC macros in method types etc - with the basic type name. - * Tools/AGSIndex.h: - * Tools/AGSIndex.m: Create index of all authors in the project + * Tools/AGSParser.m: Replace GS_GENERIC macros in method types etc + with the basic type name. + * Tools/AGSIndex.h: + * Tools/AGSIndex.m: Create index of all authors in the project 2023-12-09 Richard Frith-Macdonald - * Source/objc-load.m: - * Source/GSPrivate.h: - In GSPrivateSymbolPath() check for dladdr returning argv[0] as the - file path, and map it to the path of the executable so bundle checks - for the location of the file containing the code can work consistently. + * Source/objc-load.m: + * Source/GSPrivate.h: + In GSPrivateSymbolPath() check for dladdr returning argv[0] as the + file path, and map it to the path of the executable so bundle checks + for the location of the file containing the code can work consistently. 2023-12-09: Hugo Melder - * Source/NSNull.m: - Implement valueForUndefinedKey: and always return the NSNull singleton - object. - * Tests/base/KVC/nsnull.m: - Test for various KVC interactions with NSNull. - * Tests/base/NSPredicate/nsnull.m: - Test if predicate evaluation on collections with NSNull objects works. + * Source/NSNull.m: + Implement valueForUndefinedKey: and always return the NSNull singleton + object. + * Tests/base/KVC/nsnull.m: + Test for various KVC interactions with NSNull. + * Tests/base/NSPredicate/nsnull.m: + Test if predicate evaluation on collections with NSNull objects works. 2023-12-06 Daniel Boyd - * Source/NSDecimal.m: - For compare, handle the case where one or both operands are zero. - * Tests/base/NSNumber/test03.m: add tests + * Source/NSDecimal.m: + For compare, handle the case where one or both operands are zero. + * Tests/base/NSNumber/test03.m: add tests 2023-12-05 Richard Frith-Macdonald - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - Remove obsolete restriction on DO message length. Add exception handler - to invalidate port if we are unable to allocate more memory for a very - large port message. + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + Remove obsolete restriction on DO message length. Add exception handler + to invalidate port if we are unable to allocate more memory for a very + large port message. 2023-11-23 Richard Frith-Macdonald - * Source/NSBundle.m: - * Source/GSPrivate.h: - * Headers/Foundation/NSBundle.m: - Make +bundleForLibrary:version: behavior match documenation. - Make +bundleForClass: call new private method to get library name - and version, warnign if version cannot be determined. - Mark +bundleForLibrary: as deprecated since we want a version. + * Source/NSBundle.m: + * Source/GSPrivate.h: + * Headers/Foundation/NSBundle.m: + Make +bundleForLibrary:version: behavior match documenation. + Make +bundleForClass: call new private method to get library name + and version, warnign if version cannot be determined. + Mark +bundleForLibrary: as deprecated since we want a version. 2023-11-21 Richard Frith-Macdonald - * Source/objc-load.m: Fix to get library path in standardised form to - match code for getting executable path. + * Source/objc-load.m: Fix to get library path in standardised form to + match code for getting executable path. 2023-11-21 Richard Frith-Macdonald - * Headers/GNUstepBase/GSVersionMacros.h: Added GS_UNIMPLEMENTED to - mark methods and functions as unimplemented for compiler warnings - and documentation. github #350 + * Headers/GNUstepBase/GSVersionMacros.h: Added GS_UNIMPLEMENTED to + mark methods and functions as unimplemented for compiler warnings + and documentation. github #350 2023-11-14 Frederik Seiffert - * Source/NSURLRequest.m: Support deleting NSMutableURLRequest headers by - calling setValue:forHTTPHeaderField: with nil value. - * Headers/Foundation/NSURLRequest.h: Update method documentation. - * Tests/base/NSURLRequest/basic.m: Extended NSMutableURLRequest tests. + * Source/NSURLRequest.m: Support deleting NSMutableURLRequest headers by + calling setValue:forHTTPHeaderField: with nil value. + * Headers/Foundation/NSURLRequest.h: Update method documentation. + * Tests/base/NSURLRequest/basic.m: Extended NSMutableURLRequest tests. 2023-11-14 Richard Frith-Macdonald - * Source/NSFileManager.m: Fix issue #292 - * Tests/base/NSFileManager/general.m: test for enumerator at URL - * Source/NSNotificationCenter.m: fix indentation/style errors - * Headers/GNUstepBase/GSBlocks.h: Add new macros for calling blocks - which return a value. + * Source/NSFileManager.m: Fix issue #292 + * Tests/base/NSFileManager/general.m: test for enumerator at URL + * Source/NSNotificationCenter.m: fix indentation/style errors + * Headers/GNUstepBase/GSBlocks.h: Add new macros for calling blocks + which return a value. 2023-11-14 Richard Frith-Macdonald Riccardo Mottola - * Documentation/Base.gsdoc: - * Documentation/ReleaseNotes.gsdoc: - * Documentation/install.texi: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSCalendar.h: - * Headers/Foundation/NSDate.h: - * Headers/Foundation/NSDateFormatter.h: - * Headers/Foundation/NSExpression.h: - * Headers/Foundation/NSMetadata.h: - * Headers/Foundation/NSNetServices.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSOperation.h: - * Headers/Foundation/NSRegularExpression.h: - * Headers/Foundation/NSSortDescriptor.h: - * Headers/Foundation/NSURLConnection.h: - * Headers/Foundation/NSURLDownload.h: - * Headers/Foundation/NSUserDefaults.h: - * Headers/Foundation/NSZone.h: - * Headers/GNUstepBase/GSObjCRuntime.h: - * Headers/GNUstepBase/GSVersionMacros.h: - * Headers/GNUstepBase/NSLock+GNUstepBase.h: - * Headers/GNUstepBase/NSObject+GNUstepBase.h: - * Source/Additions/GSObjCRuntime.m: - * Source/DocMakefile: - * Source/GSInvocation.h: - * Source/GSPrivate.h: - * Source/GSTLS.m: - * Source/NSAppleEventDescriptor.m: - * Source/NSAppleEventManager.m: - * Source/NSAppleScript.m: - * Source/NSCallBacks.h: - * Source/NSCountedSet.m: - * Source/NSDateComponentsFormatter.m: - * Source/NSDateInterval.m: - * Source/NSDateIntervalFormatter.m: - * Source/NSDictionary.m: - * Source/NSExtensionContext.m: - * Source/NSExtensionItem.m: - * Source/NSFileVersion.m: - * Source/NSHFSFileTypes.m: - * Source/NSItemProvider.m: - * Source/NSItemProviderReadingWriting.m: - * Source/NSLinguisticTagger.m: - * Source/NSMetadata.m: - * Source/NSMetadataAttributes.m: - * Source/NSNotificationCenter.m: - * Source/NSObjectScripting.m: - * Source/NSPathUtilities.m: - * Source/NSProgress.m: - * Source/NSRunLoop.m: - * Source/NSScriptClassDescription.m: - * Source/NSScriptCoercionHandler.m: - * Source/NSScriptCommand.m: - * Source/NSScriptCommandDescription.m: - * Source/NSScriptExecutionContext.m: - * Source/NSScriptKeyValueCoding.m: - * Source/NSScriptObjectSpecifiers.m: - * Source/NSScriptStandardSuiteCommands.m: - * Source/NSScriptSuiteRegistry.m: - * Source/NSUserActivity.m: - * Source/NSUserScriptTask.m: - * Source/NSXMLDocument.m: - * Source/NSXMLNode.m: - * Source/objc-load.h: - * Tools/AGSHtml.h: - * Tools/AGSHtml.m: - * Tools/AGSIndex.h: - * Tools/AGSIndex.m: - * Tools/AGSOutput.m: - * Tools/AGSPme.arser.h: - * Tools/AGSParser.m: - * Tools/DocMakefile: - * Tools/autogsdoc.m: - * Tools/gsdoc-1_0_4.dtd: - Autogsdoc changes to avoide parser being confused by ObjectiveC-2 - features. Automatic generation for the setter/getter methods of - properties. Various fixes and cleanups in documentation generation. - Many tweaks to correct documentation errors in comments etc. + * Documentation/Base.gsdoc: + * Documentation/ReleaseNotes.gsdoc: + * Documentation/install.texi: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSCalendar.h: + * Headers/Foundation/NSDate.h: + * Headers/Foundation/NSDateFormatter.h: + * Headers/Foundation/NSExpression.h: + * Headers/Foundation/NSMetadata.h: + * Headers/Foundation/NSNetServices.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSOperation.h: + * Headers/Foundation/NSRegularExpression.h: + * Headers/Foundation/NSSortDescriptor.h: + * Headers/Foundation/NSURLConnection.h: + * Headers/Foundation/NSURLDownload.h: + * Headers/Foundation/NSUserDefaults.h: + * Headers/Foundation/NSZone.h: + * Headers/GNUstepBase/GSObjCRuntime.h: + * Headers/GNUstepBase/GSVersionMacros.h: + * Headers/GNUstepBase/NSLock+GNUstepBase.h: + * Headers/GNUstepBase/NSObject+GNUstepBase.h: + * Source/Additions/GSObjCRuntime.m: + * Source/DocMakefile: + * Source/GSInvocation.h: + * Source/GSPrivate.h: + * Source/GSTLS.m: + * Source/NSAppleEventDescriptor.m: + * Source/NSAppleEventManager.m: + * Source/NSAppleScript.m: + * Source/NSCallBacks.h: + * Source/NSCountedSet.m: + * Source/NSDateComponentsFormatter.m: + * Source/NSDateInterval.m: + * Source/NSDateIntervalFormatter.m: + * Source/NSDictionary.m: + * Source/NSExtensionContext.m: + * Source/NSExtensionItem.m: + * Source/NSFileVersion.m: + * Source/NSHFSFileTypes.m: + * Source/NSItemProvider.m: + * Source/NSItemProviderReadingWriting.m: + * Source/NSLinguisticTagger.m: + * Source/NSMetadata.m: + * Source/NSMetadataAttributes.m: + * Source/NSNotificationCenter.m: + * Source/NSObjectScripting.m: + * Source/NSPathUtilities.m: + * Source/NSProgress.m: + * Source/NSRunLoop.m: + * Source/NSScriptClassDescription.m: + * Source/NSScriptCoercionHandler.m: + * Source/NSScriptCommand.m: + * Source/NSScriptCommandDescription.m: + * Source/NSScriptExecutionContext.m: + * Source/NSScriptKeyValueCoding.m: + * Source/NSScriptObjectSpecifiers.m: + * Source/NSScriptStandardSuiteCommands.m: + * Source/NSScriptSuiteRegistry.m: + * Source/NSUserActivity.m: + * Source/NSUserScriptTask.m: + * Source/NSXMLDocument.m: + * Source/NSXMLNode.m: + * Source/objc-load.h: + * Tools/AGSHtml.h: + * Tools/AGSHtml.m: + * Tools/AGSIndex.h: + * Tools/AGSIndex.m: + * Tools/AGSOutput.m: + * Tools/AGSPme.arser.h: + * Tools/AGSParser.m: + * Tools/DocMakefile: + * Tools/autogsdoc.m: + * Tools/gsdoc-1_0_4.dtd: + Autogsdoc changes to avoide parser being confused by ObjectiveC-2 + features. Automatic generation for the setter/getter methods of + properties. Various fixes and cleanups in documentation generation. + Many tweaks to correct documentation errors in comments etc. 2023-11-14 Richard Frith-Macdonald - * configure.ac: Add check for closefrom() - * configure: regenerate - * Headers/GNUstepBase/config.h.in: regenerate - * Source/NSTask.m: Use closefrom() to close descriptors in child - process if it is available. + * configure.ac: Add check for closefrom() + * configure: regenerate + * Headers/GNUstepBase/config.h.in: regenerate + * Source/NSTask.m: Use closefrom() to close descriptors in child + process if it is available. 2023-10-26 Richard Frith-Macdonald - * Source/NSISO8601DateFormatter.m: - * Tests/base/NSDateFormatter/NSISO8601DateFormatter.m: - Add a couple of testcases, tidy up source code formatting, and make - fix for github issue #339 as suggested by kevinpeizner + * Source/NSISO8601DateFormatter.m: + * Tests/base/NSDateFormatter/NSISO8601DateFormatter.m: + Add a couple of testcases, tidy up source code formatting, and make + fix for github issue #339 as suggested by kevinpeizner 2023-10-10 Richard Frith-Macdonald - * Source/GSPrivate.h: New method to set up system error information. - * Source/Additions/NSError+GNUstepBase.m: Implement method. - * Source/NSTask.m(launchAndReturnError:): Return an error if the - path to launch in does not exist, is not a directory or is not - accessible. + * Source/GSPrivate.h: New method to set up system error information. + * Source/Additions/NSError+GNUstepBase.m: Implement method. + * Source/NSTask.m(launchAndReturnError:): Return an error if the + path to launch in does not exist, is not a directory or is not + accessible. 2023-10-09 Wolfgang Lux - * Source/NSTask.m(launchAndReturnError:): Use _exit instead of - exit to terminate the vfork'ed process. This avoids running the - atexit handlers, which could have visible side effects in the - parent process. + * Source/NSTask.m(launchAndReturnError:): Use _exit instead of + exit to terminate the vfork'ed process. This avoids running the + atexit handlers, which could have visible side effects in the + parent process. 2023-10-08 Richard Frith-Macdonald - * Source/NSPredicate.m: fixup for array access keywords - * Tests/base/NSPredicate/basic.m: add simple testcases for array + * Source/NSPredicate.m: fixup for array access keywords + * Tests/base/NSPredicate/basic.m: add simple testcases for array 2023-10-07 Gregory John Casamento - * Headers/Foundation/NSKeyValueObserving.h - * Source/NSKeyValueObserving.m: Add nethods - removeObserver:forKeyPath:context: and - removeObserver:forObjectsAtIndexes:forKeyPath:context: - * Tests/base/KVC/mutable.m: Add tests for the above - methods. + * Headers/Foundation/NSKeyValueObserving.h + * Source/NSKeyValueObserving.m: Add nethods + removeObserver:forKeyPath:context: and + removeObserver:forObjectsAtIndexes:forKeyPath:context: + * Tests/base/KVC/mutable.m: Add tests for the above + methods. 2023-08-18 Richard Frith-Macdonald - * Headers/Foundation/NSCache.h: Add _lock ivar - * Source/NSCache.m: Protect cache operations with a lock for - thread safety. - + * Headers/Foundation/NSCache.h: Add _lock ivar + * Source/NSCache.m: Protect cache operations with a lock for + thread safety. + 2023-08-10 Frederik Seiffert - * Headers/Foundation/NSNumberFormatter.h: - * Source/NSNumberFormatter.m: - Change NSNumberFormatter minimum/maximum properties from - NSDecimalNumber to NSNumber to match Apple platforms. + * Headers/Foundation/NSNumberFormatter.h: + * Source/NSNumberFormatter.m: + Change NSNumberFormatter minimum/maximum properties from + NSDecimalNumber to NSNumber to match Apple platforms. 2023-07-30 Yavor Doganov - * Tools/HTMLLinker.1: Fix a groff warning. + * Tools/HTMLLinker.1: Fix a groff warning. 2023-07-30 Yavor Doganov @@ -1180,230 +1196,230 @@ 2023-07-26 Frederik Seiffert - * Source/NSData.m: - Fix NSData initWithContentsOfURL: caching data of file URLs. + * Source/NSData.m: + Fix NSData initWithContentsOfURL: caching data of file URLs. 2023-07-26 Frederik Seiffert - * Source/NSURL.m: - * Tests/base/NSURL/basic.m: - Fix NSURL path on Windows for UNC paths. + * Source/NSURL.m: + * Tests/base/NSURL/basic.m: + Fix NSURL path on Windows for UNC paths. 2023-07-25 Frederik Seiffert - * Headers/Foundation/NSFileManager.h: - * Source/NSFileManager.m: - Fixed NSFileManager thread safety. + * Headers/Foundation/NSFileManager.h: + * Source/NSFileManager.m: + Fixed NSFileManager thread safety. 2023-07-17 Yavor Doganov - * Tests/base/NSTimeZone/localtime.m (testTZDB): Skip tests relying - on 64bit time_t on all 32bit architectures. - * Source/NSTimeZone.m: Move #include "tzdb.h" a bit earlier so - that the POSIX_TZONES preprocessor conditional is correct. - ([GSTimeZoneDetail - initWithTimeZone:withAbbrev:withOffset:withDST:]): Retain abbrev. - ([GSTimeZoneDetail dealloc]): Release abbrev. - ([NSTimeZone timeZoneArray]): Skip files *.zi, *.list and - leapseconds which are not zone files. + * Tests/base/NSTimeZone/localtime.m (testTZDB): Skip tests relying + on 64bit time_t on all 32bit architectures. + * Source/NSTimeZone.m: Move #include "tzdb.h" a bit earlier so + that the POSIX_TZONES preprocessor conditional is correct. + ([GSTimeZoneDetail + initWithTimeZone:withAbbrev:withOffset:withDST:]): Retain abbrev. + ([GSTimeZoneDetail dealloc]): Release abbrev. + ([NSTimeZone timeZoneArray]): Skip files *.zi, *.list and + leapseconds which are not zone files. 2023-06-10 Riccardo Mottola - * Tests/base/NSURL/Helpers/Launch.h: - Declare method in interface to provide accurate signature fixing - bug on sparc 64 + * Tests/base/NSURL/Helpers/Launch.h: + Declare method in interface to provide accurate signature fixing + bug on sparc 64 2023-06-26 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: close socket if we end loading with an - I/O operation in progress. + * Source/GSHTTPURLHandle.m: close socket if we end loading with an + I/O operation in progress. 2023-06-15 Richard Frith-Macdonald - * Source/GSFileHandle.m: Fix to reliably remove handle from run loop - when -dealloc is called without the handle having been closed first. + * Source/GSFileHandle.m: Fix to reliably remove handle from run loop + when -dealloc is called without the handle having been closed first. 2023-05-08 Richard Frith-Macdonald * Tools/AGSParser.m: Add support for OSX version numbers up to 15 - (and fix version 9). + (and fix version 9). 2023-05-04 Frederik Seiffert - * Source/NSOrderedSet.m: Fix keyed encoding to match Apple platforms. + * Source/NSOrderedSet.m: Fix keyed encoding to match Apple platforms. 2023-05-04 Richard Frith-Macdonald - * Source/GSFileHandle.m: Ignore notificaton that a descriptor is - writable if we have nothing to be written. + * Source/GSFileHandle.m: Ignore notificaton that a descriptor is + writable if we have nothing to be written. 2023-04-26 Frederik Seiffert - * Tests/base/NSFileManager/general.m: - * Source/NSFileManager.m: - Add test for and fix -[NSFileManager contentsOfDirectoryAtURL:...] - implementation not working correctly if directory did not match - current working directory. + * Tests/base/NSFileManager/general.m: + * Source/NSFileManager.m: + Add test for and fix -[NSFileManager contentsOfDirectoryAtURL:...] + implementation not working correctly if directory did not match + current working directory. 2023-04-13 Richard Frith-Macdonald - * Source/NSSocketPort.m: set listening socket into non-blocking mode - if possible, so if multiple threads are using the same port we don't - get one thread blocked waiting for an accept which was handled by - another one. + * Source/NSSocketPort.m: set listening socket into non-blocking mode + if possible, so if multiple threads are using the same port we don't + get one thread blocked waiting for an accept which was handled by + another one. 2023-03-23 Richard Frith-Macdonald - * Source/NSTimer.m: wrap call to block in exception handler (bug #289) + * Source/NSTimer.m: wrap call to block in exception handler (bug #289) 2023-01-13 Frederik Seiffert - * Source/Additions/GSInsensitiveDictionary.m: - * Source/NSURLRequest.m: - * Source/NSURLResponse.m: - Fix NSURLSession header fields not always being matched case - insensitive. + * Source/Additions/GSInsensitiveDictionary.m: + * Source/NSURLRequest.m: + * Source/NSURLResponse.m: + Fix NSURLSession header fields not always being matched case + insensitive. 2023-01-13 Frederik Seiffert - * Source/GSEasyHandle.m: - * Source/GSMultiHandle.m: - * Source/GSTimeoutSource.h: - * Source/GSTimeoutSource.m: - * Source/NSURLSession.m: - Fix NSURLSession memory management of libdispatch objects. - * Source/GSHTTPURLProtocol.m: - Fix overrelease. + * Source/GSEasyHandle.m: + * Source/GSMultiHandle.m: + * Source/GSTimeoutSource.h: + * Source/GSTimeoutSource.m: + * Source/NSURLSession.m: + Fix NSURLSession memory management of libdispatch objects. + * Source/GSHTTPURLProtocol.m: + Fix overrelease. 2023-01-13 Frederik Seiffert - * Headers/Foundation/NSURLSession.h: - * Source/NSURLSession.m: - Add missing NSURLSession APIs. + * Headers/Foundation/NSURLSession.h: + * Source/NSURLSession.m: + Add missing NSURLSession APIs. 2022-02-09 Richard Frith-Macdonald - * Source/Additions/GSMime.m: ([GSMimeHeader setValue:]) do not set - type/subtype information if the content-type header value is not - in that format. + * Source/Additions/GSMime.m: ([GSMimeHeader setValue:]) do not set + type/subtype information if the content-type header value is not + in that format. 2022-01-01 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: fix incorrect close of socket at the end - of a successful request. + * Source/GSHTTPURLHandle.m: fix incorrect close of socket at the end + of a successful request. 2022-01-08 Richard Frith-Macdonald - * ChangeLog: Update for new release - * ANNOUNCE: - * NEWS: - * Documentation/ReleaseNotes.gsdoc: - * Documentation/news.texi: - Update release notes for 1.29.0 release. - * Version: bump to 1.29.0 + * ChangeLog: Update for new release + * ANNOUNCE: + * NEWS: + * Documentation/ReleaseNotes.gsdoc: + * Documentation/news.texi: + Update release notes for 1.29.0 release. + * Version: bump to 1.29.0 2022-12-28 Richard Frith-Macdonald - * ChangeLog: Update for new release - * ANNOUNCE: - * NEWS: - * NSTimeZones/NSTimeZones.tar: update - * Documentation/ReleaseNotes.gsdoc: - * Documentation/news.texi: - Update release notes for 1.28.1 release. - * Version: bump to 1.28.1 + * ChangeLog: Update for new release + * ANNOUNCE: + * NEWS: + * NSTimeZones/NSTimeZones.tar: update + * Documentation/ReleaseNotes.gsdoc: + * Documentation/news.texi: + Update release notes for 1.28.1 release. + * Version: bump to 1.28.1 2022-12-09 Richard Frith-Macdonald - * Source/NSXMLParser.m: do not process end tag if parsing was aborted - while processing start tag. + * Source/NSXMLParser.m: do not process end tag if parsing was aborted + while processing start tag. 2022-11-29 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Use the https_proxy and http_proxy - environment variables if no proxying is specified. Also support - those keys as properties in the request (overriding the environment - variables) and support the URL protection space if set. + * Source/GSHTTPURLHandle.m: Use the https_proxy and http_proxy + environment variables if no proxying is specified. Also support + those keys as properties in the request (overriding the environment + variables) and support the URL protection space if set. 2022-11-26 Fred Kiefer - * Source/Additions/GSXML.m: Remove usage of deprecated function - when a newer version of libxml is used. + * Source/Additions/GSXML.m: Remove usage of deprecated function + when a newer version of libxml is used. 2022-11-25 Florian Weimer - * config/config.poll-dev.c: - * config/config.proccmd.c: - * config/config.reuseaddr.c: - * config/config.vasprintf.c: - * config/config.vsprintf.c: - Make config tests work with C99 compiler + * config/config.poll-dev.c: + * config/config.proccmd.c: + * config/config.reuseaddr.c: + * config/config.vasprintf.c: + * config/config.vsprintf.c: + Make config tests work with C99 compiler 2022-11-21 Wolfgang Lux - * Source/NSFileManager.m: - Call NSDirectoryEnumerator's constructor with either YES or NO for - the BOOL arguments. - Really skip hidden files in enumerations if requested by the - options. + * Source/NSFileManager.m: + Call NSDirectoryEnumerator's constructor with either YES or NO for + the BOOL arguments. + Really skip hidden files in enumerations if requested by the + options. 2022-11-21 Richard Frith-Macdonald - * Headers/Foundation/NSFileHandle.h: - * Headers/GNUstepBase/GSTLS.h: - * Source/GSHTTPURLHandle.m: - * Source/GSSocketStream.m: - * Source/GSTLS.m: - * Source/NSURLProtocol.m: - * Source/externs.m: - Fixup to use strict rfc4514 for distinguished names of issuer and - owner of certificates. Add GSTLSIssuers and GSTLSOwners properties - to reject remote certificates which do not match distinguishd names - accepted. This allows encrypted DO to be configured to automatically - reject connection attempts which do not have trusted certificates. + * Headers/Foundation/NSFileHandle.h: + * Headers/GNUstepBase/GSTLS.h: + * Source/GSHTTPURLHandle.m: + * Source/GSSocketStream.m: + * Source/GSTLS.m: + * Source/NSURLProtocol.m: + * Source/externs.m: + Fixup to use strict rfc4514 for distinguished names of issuer and + owner of certificates. Add GSTLSIssuers and GSTLSOwners properties + to reject remote certificates which do not match distinguishd names + accepted. This allows encrypted DO to be configured to automatically + reject connection attempts which do not have trusted certificates. 2022-11-15 Richard Frith-Macdonald - * GSSocketStream.m: - * NSFileHandle.m: - Use new -[GSTLS pending] method to trigger event handling immediately - rather than waiting for more data from the network layer. + * GSSocketStream.m: + * NSFileHandle.m: + Use new -[GSTLS pending] method to trigger event handling immediately + rather than waiting for more data from the network layer. 2022-11-07 Richard Frith-Macdonald - * Headers/GNUstepBase/GSTLS.h: - * Source/GSTLS.m: - Add -pending method to return the number of bytes in the read bufffer. - * Source/NSSocketPort.m: - Use the new method to avoid a potential hang on an encrypted DO - connection. + * Headers/GNUstepBase/GSTLS.h: + * Source/GSTLS.m: + Add -pending method to return the number of bytes in the read bufffer. + * Source/NSSocketPort.m: + Use the new method to avoid a potential hang on an encrypted DO + connection. 2022-10-21 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Refactor a litle to avoid code duplication - and try to ensure that the connection is marked 'idle' as soon as we - have finished I/O (so its URL can be changed). + * Source/GSHTTPURLHandle.m: Refactor a litle to avoid code duplication + and try to ensure that the connection is marked 'idle' as soon as we + have finished I/O (so its URL can be changed). 2022-10-20 Richard Frith-Macdonald - * Resources/GSTLS/README: - * Source/GSTLS.m: - Honor the SSL_CERT_FILE environment variable (for OpenSSL - compatibility) if our own user default or environment variable - is not used. + * Resources/GSTLS/README: + * Source/GSTLS.m: + Honor the SSL_CERT_FILE environment variable (for OpenSSL + compatibility) if our own user default or environment variable + is not used. 2022-10-18 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Track whether we have read any data from - the server. If a connection is closed by the server while it is being - kept alive (ie we are not on first request) and no response data has - been read for a request we sent, we assume it was an intentional close - and try to establish a new connection to retry the request. - This is more tolerant of latency in the network (which could mean that - our test tthat the connection is still alive before sending a request - could be wrong) and also deals with perverse server implementations - which drop long standing connections when the server receives a - request rather than when a timeout occurred. + * Source/GSHTTPURLHandle.m: Track whether we have read any data from + the server. If a connection is closed by the server while it is being + kept alive (ie we are not on first request) and no response data has + been read for a request we sent, we assume it was an intentional close + and try to establish a new connection to retry the request. + This is more tolerant of latency in the network (which could mean that + our test tthat the connection is still alive before sending a request + could be wrong) and also deals with perverse server implementations + which drop long standing connections when the server receives a + request rather than when a timeout occurred. 2022-09-15 Hugo Melder @@ -1415,129 +1431,129 @@ 2022-08-23 Hugo Melder - * Tests/base/NSURL/basic.m: - Fix URL description and resource specifier test value on win32. - * Tests/base/NSURL/test00.m: - * Tests/base/NSURL/test01.m: - * Tests/base/NSURL/test02.m: - * Tests/base/NSURLConnection/test01.m: - * Tests/base/NSURLConnection/test02.m: - * Tests/base/NSURLConnection/test03.m: - * Tests/base/NSURLConnection/test04.m: - * Tests/base/NSURLConnection/test05.m: - * Tests/base/NSURLConnection/test06.m: - * Tests/base/NSURLConnection/test07.m: - * Tests/base/NSURLHandle/test00.m: - * Tests/base/NSURLHandle/test01.m: - Skip all test cases using the GSInetServerStream class as - it is broken on win32. + * Tests/base/NSURL/basic.m: + Fix URL description and resource specifier test value on win32. + * Tests/base/NSURL/test00.m: + * Tests/base/NSURL/test01.m: + * Tests/base/NSURL/test02.m: + * Tests/base/NSURLConnection/test01.m: + * Tests/base/NSURLConnection/test02.m: + * Tests/base/NSURLConnection/test03.m: + * Tests/base/NSURLConnection/test04.m: + * Tests/base/NSURLConnection/test05.m: + * Tests/base/NSURLConnection/test06.m: + * Tests/base/NSURLConnection/test07.m: + * Tests/base/NSURLHandle/test00.m: + * Tests/base/NSURLHandle/test01.m: + Skip all test cases using the GSInetServerStream class as + it is broken on win32. 2022-08-16 Hugo Melder - * Source/NSPredicate.m: - When parsing an NSArray in -expressionValueWithObject:context:, - check if the array entry is a NSExpression object. - * Tests/base/NSPredicate/basic.m: - Test filter operation. + * Source/NSPredicate.m: + When parsing an NSArray in -expressionValueWithObject:context:, + check if the array entry is a NSExpression object. + * Tests/base/NSPredicate/basic.m: + Test filter operation. 2022-08-16 Hugo Melder - * Source/win32/GSFileHandle.m: - Support overlapped I/O on standard streams in GSFileHandle. - * Source/GSFileHandle.h: - Add the isStandardStream instance variable. - * Tests/base/NSRunLoop/performers.m: - Remove extraneous unistd header from unit test. + * Source/win32/GSFileHandle.m: + Support overlapped I/O on standard streams in GSFileHandle. + * Source/GSFileHandle.h: + Add the isStandardStream instance variable. + * Tests/base/NSRunLoop/performers.m: + Remove extraneous unistd header from unit test. 2022-08-16 Richard Frith-Macdonald - * Source/NSOperation.m: Remove restriction (of 8) on the maximum - number of threads, and set that as the default value instead, so - the -setMaxConcurrentOperationCount: method can override it. - Thanks to https://github.com/wbardwel for the suggestion. + * Source/NSOperation.m: Remove restriction (of 8) on the maximum + number of threads, and set that as the default value instead, so + the -setMaxConcurrentOperationCount: method can override it. + Thanks to https://github.com/wbardwel for the suggestion. 2022-08-11 Hugo Melder - * Tests/base/NSTimeZone/use.m: - Update NSTimeZone unit test to match macOS behaviour. - America/Sao_Paulo has no DST. + * Tests/base/NSTimeZone/use.m: + Update NSTimeZone unit test to match macOS behaviour. + America/Sao_Paulo has no DST. 2022-08-07 Hugo Melder - * Source/NSTimeZone.m: - Windows to IANA time zone conversion: remove unsupported - TIME_ZONE_ID_DAYLIGHT conversion. - * Tests/base/NSTimeZone/use.m: - Fix test case to check for the correct standard time zone name. + * Source/NSTimeZone.m: + Windows to IANA time zone conversion: remove unsupported + TIME_ZONE_ID_DAYLIGHT conversion. + * Tests/base/NSTimeZone/use.m: + Fix test case to check for the correct standard time zone name. 2022-08-05 Hugo Melder - * Tests/base/NSTask/Helpers/GNUmakefile: - Fix compilation of NSTask helper test files on Windows MSVC. - * Tests/base/NSTask/general.m: - * Tests/base/NSTask/launch.m: - * Tests/base/NSTask/notify.m: - Conditionally use .exe suffix in executable paths. + * Tests/base/NSTask/Helpers/GNUmakefile: + Fix compilation of NSTask helper test files on Windows MSVC. + * Tests/base/NSTask/general.m: + * Tests/base/NSTask/launch.m: + * Tests/base/NSTask/notify.m: + Conditionally use .exe suffix in executable paths. 2022-08-04 Hugo Melder - * Tests/base/GSTLS/basic.m: - Disable test completly if gnutls is not present. - * Tests/base/NSData/additions.m: - Check if dataWithContentsOfFile: returns an instance. - * Tests/base/NSString/tilde.m: - Skip tilde abbreviation test on Windows. + * Tests/base/GSTLS/basic.m: + Disable test completly if gnutls is not present. + * Tests/base/NSData/additions.m: + Check if dataWithContentsOfFile: returns an instance. + * Tests/base/NSString/tilde.m: + Skip tilde abbreviation test on Windows. 2022-08-04 Hugo Melder - * Tests/base/coding/basictypes.m: - Fetch the generated .type file directly to avoid size mismatches. - * .gitignore: - Ignore .type files in the coding unit test directory. + * Tests/base/coding/basictypes.m: + Fetch the generated .type file directly to avoid size mismatches. + * .gitignore: + Ignore .type files in the coding unit test directory. 2022-08-03 Hugo Melder - * Tests/base/NSBundle/GNUmakefile.preamble - * Tests/base/NSBundle/resources2.m - Exclude framework loading on Windows, as Windows lacks support - for run-time search paths. + * Tests/base/NSBundle/GNUmakefile.preamble + * Tests/base/NSBundle/resources2.m + Exclude framework loading on Windows, as Windows lacks support + for run-time search paths. 2022-07-27 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: - * Source/NSURLProtocol.m: - Include body after masked headers in debug output. + * Source/GSHTTPURLHandle.m: + * Source/NSURLProtocol.m: + Include body after masked headers in debug output. 2022-05-20 Richard Frith-Macdonald - Changes to remove sensitive information from debug logs. - * Source/Additions/GSMime.m: Mask out sensitive information in the - -description method of the Authorization header. Add method to do - similar masking for debug output of HTTP requests. - * Source/GSHTTPURLHandle.m: Use new method to mask Authorization - header value in debug log of outgoing requests. - * Source/NSURLProtocol.m: Use new method to mask Authorization - header value in debug log of outgoing requests. + Changes to remove sensitive information from debug logs. + * Source/Additions/GSMime.m: Mask out sensitive information in the + -description method of the Authorization header. Add method to do + similar masking for debug output of HTTP requests. + * Source/GSHTTPURLHandle.m: Use new method to mask Authorization + header value in debug log of outgoing requests. + * Source/NSURLProtocol.m: Use new method to mask Authorization + header value in debug log of outgoing requests. 2022-04-14 Richard Frith-Macdonald - * Source/NSConnection.m: If we get an exception in a packet from a - remote system to which we sent a oneway void message, decode the - exception and report it. + * Source/NSConnection.m: If we get an exception in a packet from a + remote system to which we sent a oneway void message, decode the + exception and report it. 2022-04-07 Richard Frith-Macdonald - * Source/GSeq.h: Fix normalisation to handle the case where combining - diacriticals are repeated in a composed character sequence. Those - repeats need to be reduced to a single instance. + * Source/GSeq.h: Fix normalisation to handle the case where combining + diacriticals are repeated in a composed character sequence. Those + repeats need to be reduced to a single instance. 2022-04-06 Gregory John Casamento - * Headers/Foundation/NSCalendar.h: Add documentation. - * Source/NSCalendar.m: Implement getEra:... and getHour:... + * Headers/Foundation/NSCalendar.h: Add documentation. + * Source/NSCalendar.m: Implement getEra:... and getHour:... methods based on Keysight/TestPlant changes - * Tests/base/NSCalendar/basic.m: Minor cleanup. - * Tests/base/NSCalendar/component-diff.m: Add tests for + * Tests/base/NSCalendar/basic.m: Minor cleanup. + * Tests/base/NSCalendar/component-diff.m: Add tests for methods implemented above. 2022-03-07 Gregory John Casamento @@ -1551,1500 +1567,1500 @@ 2022-03-07 Richard Frith-Macdonald - * Source/NSPredicate.m: - * Tests/base/NSPredicate/basic.m: - Fix for git #243 + * Source/NSPredicate.m: + * Tests/base/NSPredicate/basic.m: + Fix for git #243 2022-02-25 Richard Frith-Macdonald - * Source/NSDistantObject.m: - Check to see whether receiver responds to selector before asking the - remote object. Fixes bug in testing to see if distant object responds - to -connectionForProxy. + * Source/NSDistantObject.m: + Check to see whether receiver responds to selector before asking the + remote object. Fixes bug in testing to see if distant object responds + to -connectionForProxy. 2022-02-17 Richard Frith-Macdonald - * Documentation/manual/BaseLibrary.texi: - * Documentation/manual/WorkingWithObjects.texi: - * Documentation/manual/WritingNewClasses.texi: - * Headers/Foundation/NSGarbageCollector.h: - * Headers/Foundation/NSObject.h: - * Headers/GNUstepBase/GNUstep.h: - * Source/Additions/GSInsensitiveDictionary.m: - * Source/Additions/GSMime.m: - * Source/Additions/GSXML.m: - * Source/Additions/NSData+GNUstepBase.m: - * Source/GSArray.m: - * Source/GSDictionary.m: - * Source/GSFFIInvocation.m: - * Source/GSFTPURLHandle.m: - * Source/GSHTTPAuthentication.m: - * Source/GSInternal.h: - * Source/GSInvocation.h: - * Source/GSSocketStream.m: - * Source/NSArray.m: - * Source/NSAttributedString.m: - * Source/NSBundle.m: - * Source/NSCallBacks.m: - * Source/NSClassDescription.m: - * Source/NSConnection.m: - * Source/NSData.m: - * Source/NSDateFormatter.m: - * Source/NSDistantObject.m: - * Source/NSFileHandle.m: - * Source/NSHost.m: - * Source/NSInvocation.m: - * Source/NSKeyValueObserving.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSMessagePort.m: - * Source/NSMessagePortNameServer.m: - * Source/NSNotificationCenter.m: - * Source/NSNumberFormatter.m: - * Source/NSObject.m: - * Source/NSPortCoder.m: - * Source/NSProcessInfo.m: - * Source/NSRunLoop.m: - * Source/NSScanner.m: - * Source/NSSerializer.m: - * Source/NSSet.m: - * Source/NSSocketPort.m: - * Source/NSSocketPortNameServer.m: - * Source/NSSpellServer.m: - * Source/NSString.m: - * Source/NSTask.m: - * Source/NSTimeZone.m: - * Source/NSURL.m: - * Source/NSURLHandle.m: - * Source/NSURLProtocol.m: - * Source/NSURLResponse.m: - * Source/NSUnarchiver.m: - * Source/NSValueTransformer.m: - * Tools/AGSOutput.m: - * Tools/AGSParser.m: - * Tools/HTMLLinker.m: - * Tools/autogsdoc.m: - * Tools/sfparse.m: - Replaced IF_NO_GC() macro calls with the more descriptive IF_NO_ARC() - and deprecate it. Searched for and removed obsolete references to - garbage collection in comments and documentation. + * Documentation/manual/BaseLibrary.texi: + * Documentation/manual/WorkingWithObjects.texi: + * Documentation/manual/WritingNewClasses.texi: + * Headers/Foundation/NSGarbageCollector.h: + * Headers/Foundation/NSObject.h: + * Headers/GNUstepBase/GNUstep.h: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/Additions/GSMime.m: + * Source/Additions/GSXML.m: + * Source/Additions/NSData+GNUstepBase.m: + * Source/GSArray.m: + * Source/GSDictionary.m: + * Source/GSFFIInvocation.m: + * Source/GSFTPURLHandle.m: + * Source/GSHTTPAuthentication.m: + * Source/GSInternal.h: + * Source/GSInvocation.h: + * Source/GSSocketStream.m: + * Source/NSArray.m: + * Source/NSAttributedString.m: + * Source/NSBundle.m: + * Source/NSCallBacks.m: + * Source/NSClassDescription.m: + * Source/NSConnection.m: + * Source/NSData.m: + * Source/NSDateFormatter.m: + * Source/NSDistantObject.m: + * Source/NSFileHandle.m: + * Source/NSHost.m: + * Source/NSInvocation.m: + * Source/NSKeyValueObserving.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSMessagePort.m: + * Source/NSMessagePortNameServer.m: + * Source/NSNotificationCenter.m: + * Source/NSNumberFormatter.m: + * Source/NSObject.m: + * Source/NSPortCoder.m: + * Source/NSProcessInfo.m: + * Source/NSRunLoop.m: + * Source/NSScanner.m: + * Source/NSSerializer.m: + * Source/NSSet.m: + * Source/NSSocketPort.m: + * Source/NSSocketPortNameServer.m: + * Source/NSSpellServer.m: + * Source/NSString.m: + * Source/NSTask.m: + * Source/NSTimeZone.m: + * Source/NSURL.m: + * Source/NSURLHandle.m: + * Source/NSURLProtocol.m: + * Source/NSURLResponse.m: + * Source/NSUnarchiver.m: + * Source/NSValueTransformer.m: + * Tools/AGSOutput.m: + * Tools/AGSParser.m: + * Tools/HTMLLinker.m: + * Tools/autogsdoc.m: + * Tools/sfparse.m: + Replaced IF_NO_GC() macro calls with the more descriptive IF_NO_ARC() + and deprecate it. Searched for and removed obsolete references to + garbage collection in comments and documentation. 2022-02-12 Richard Frith-Macdonald - * Headers/Foundation/NSExpression.h: - * Source/NSPredicate.m: - Patched from git #237 by Larry Campbell. + * Headers/Foundation/NSExpression.h: + * Source/NSPredicate.m: + Patched from git #237 by Larry Campbell. 2022-02-11 Richard Frith-Macdonald - * Source/GSTLS.m: Fix failure to log handle properly during - initialisation (set ivar containing handle earlier). + * Source/GSTLS.m: Fix failure to log handle properly during + initialisation (set ivar containing handle earlier). 2022-01-31 Richard Frith-Macdonald - * Source/NSURL.m: - Fix for git #235 reported by Sergei Golovin - Plus, make methods consistent in handling of clients. - Plus, make clientForHandle() thread-safe. + * Source/NSURL.m: + Fix for git #235 reported by Sergei Golovin + Plus, make methods consistent in handling of clients. + Plus, make clientForHandle() thread-safe. 2022-01-30 Richard Frith-Macdonald - * Source/NSPredicate.m: - * Documentation/manual/BaseLibrary.texi: - * Documentation/manual/WorkingWithObjects.texi: - * Documentation/manual/WritingNewClasses.texi: - * Headers/Foundation/NSGarbageCollector.h: - * Headers/Foundation/NSObject.h: - * Headers/GNUstepBase/GNUstep.h: - * Source/Additions/GSInsensitiveDictionary.m: - * Source/Additions/GSMime.m: - * Source/Additions/GSXML.m: - * Source/Additions/NSData+GNUstepBase.m: - * Source/GSArray.m: - * Source/GSDictionary.m: - * Source/GSFFIInvocation.m: - * Source/GSFTPURLHandle.m: - * Source/GSHTTPAuthentication.m: - * Source/GSInternal.h: - * Source/GSInvocation.h: - * Source/GSSocketStream.m: - * Source/NSArray.m: - * Source/NSAttributedString.m: - * Source/NSBundle.m: - * Source/NSCallBacks.m: - * Source/NSClassDescription.m: - * Source/NSConnection.m: - * Source/NSData.m: - * Source/NSDateFormatter.m: - * Source/NSDistantObject.m: - * Source/NSFileHandle.m: - * Source/NSHost.m: - * Source/NSInvocation.m: - * Source/NSKeyValueObserving.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSMessagePort.m: - * Source/NSMessagePortNameServer.m: - * Source/NSNotificationCenter.m: - * Source/NSNumberFormatter.m: - * Source/NSObject.m: - * Source/NSPortCoder.m: - * Source/NSProcessInfo.m: - * Source/NSRunLoop.m: - * Source/NSScanner.m: - * Source/NSSerializer.m: - * Source/NSSet.m: - * Source/NSSocketPort.m: - * Source/NSSocketPortNameServer.m: - * Source/NSSpellServer.m: - * Source/NSString.m: - * Source/NSTask.m: - * Source/NSTimeZone.m: - * Source/NSURL.m: - * Source/NSURLHandle.m: - * Source/NSURLProtocol.m: - * Source/NSURLResponse.m: - * Source/NSUnarchiver.m: - * Source/NSValueTransformer.m: - * Tools/AGSOutput.m: - * Tools/AGSParser.m: - * Tools/HTMLLinker.m: - * Tools/autogsdoc.m: - * Tools/sfparse.m: - Fix for git #233 by Larry Campbell + * Source/NSPredicate.m: + * Documentation/manual/BaseLibrary.texi: + * Documentation/manual/WorkingWithObjects.texi: + * Documentation/manual/WritingNewClasses.texi: + * Headers/Foundation/NSGarbageCollector.h: + * Headers/Foundation/NSObject.h: + * Headers/GNUstepBase/GNUstep.h: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/Additions/GSMime.m: + * Source/Additions/GSXML.m: + * Source/Additions/NSData+GNUstepBase.m: + * Source/GSArray.m: + * Source/GSDictionary.m: + * Source/GSFFIInvocation.m: + * Source/GSFTPURLHandle.m: + * Source/GSHTTPAuthentication.m: + * Source/GSInternal.h: + * Source/GSInvocation.h: + * Source/GSSocketStream.m: + * Source/NSArray.m: + * Source/NSAttributedString.m: + * Source/NSBundle.m: + * Source/NSCallBacks.m: + * Source/NSClassDescription.m: + * Source/NSConnection.m: + * Source/NSData.m: + * Source/NSDateFormatter.m: + * Source/NSDistantObject.m: + * Source/NSFileHandle.m: + * Source/NSHost.m: + * Source/NSInvocation.m: + * Source/NSKeyValueObserving.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSMessagePort.m: + * Source/NSMessagePortNameServer.m: + * Source/NSNotificationCenter.m: + * Source/NSNumberFormatter.m: + * Source/NSObject.m: + * Source/NSPortCoder.m: + * Source/NSProcessInfo.m: + * Source/NSRunLoop.m: + * Source/NSScanner.m: + * Source/NSSerializer.m: + * Source/NSSet.m: + * Source/NSSocketPort.m: + * Source/NSSocketPortNameServer.m: + * Source/NSSpellServer.m: + * Source/NSString.m: + * Source/NSTask.m: + * Source/NSTimeZone.m: + * Source/NSURL.m: + * Source/NSURLHandle.m: + * Source/NSURLProtocol.m: + * Source/NSURLResponse.m: + * Source/NSUnarchiver.m: + * Source/NSValueTransformer.m: + * Tools/AGSOutput.m: + * Tools/AGSParser.m: + * Tools/HTMLLinker.m: + * Tools/autogsdoc.m: + * Tools/sfparse.m: + Fix for git #233 by Larry Campbell 2022-01-15 Frederik Seiffert - * Source/NSPathUtilities.m: - Fix NSTemporaryDirectory() returning path with backslashes on - Windows. + * Source/NSPathUtilities.m: + Fix NSTemporaryDirectory() returning path with backslashes on + Windows. 2022-01-13 Frederik Seiffert - * Source/NSTimeZone.m: - Fix time zone lookup on Windows MSVC by converting Windows timezone - name to IANA identifier. + * Source/NSTimeZone.m: + Fix time zone lookup on Windows MSVC by converting Windows timezone + name to IANA identifier. 2022-01-04 Richard Frith-Macdonald - * Source/NSOperation.m: - Declare private method to avoid compiler warnings. + * Source/NSOperation.m: + Declare private method to avoid compiler warnings. 2022-01-04 Richard Frith-Macdonald - * Headers/Foundation/NSString.h: - * Source/Additions/GSMime.m: - * Source/Additions/Unicode.m: - * Resources/English.lproj/Localizable.strings: - * Resources/Esperanto.lproj/Localizable.strings: - * Resources/French.lproj/Localizable.strings: - * Resources/German.lproj/Localizable.strings: - * Resources/Italian.lproj/Localizable.strings: - * Resources/Japanese.lproj/Localizable.strings: - * Resources/Korean.lproj/Localizable.strings: - * Resources/Polish.lproj/Localizable.strings: - * Resources/SimplifiedChinese.lproj/Localizable.strings: - * Resources/Spanish.lproj/Localizable.strings: - * Resources/TraditionalChinese.lproj/Localizable.strings: - Reinstate lost encoding constants (so that software using the - gnustep extenstions should work again). Also tidy some indentation - issues. + * Headers/Foundation/NSString.h: + * Source/Additions/GSMime.m: + * Source/Additions/Unicode.m: + * Resources/English.lproj/Localizable.strings: + * Resources/Esperanto.lproj/Localizable.strings: + * Resources/French.lproj/Localizable.strings: + * Resources/German.lproj/Localizable.strings: + * Resources/Italian.lproj/Localizable.strings: + * Resources/Japanese.lproj/Localizable.strings: + * Resources/Korean.lproj/Localizable.strings: + * Resources/Polish.lproj/Localizable.strings: + * Resources/SimplifiedChinese.lproj/Localizable.strings: + * Resources/Spanish.lproj/Localizable.strings: + * Resources/TraditionalChinese.lproj/Localizable.strings: + Reinstate lost encoding constants (so that software using the + gnustep extenstions should work again). Also tidy some indentation + issues. 2021-12-21 Frederik Seiffert - * Source/NSOperation.m: fix handling of concurrent NSOperations - if isFinished KVO is triggered without the operation being finished, - and call completion block for concurrent operations. Also fixes - removing dependency observers more than once. + * Source/NSOperation.m: fix handling of concurrent NSOperations + if isFinished KVO is triggered without the operation being finished, + and call completion block for concurrent operations. Also fixes + removing dependency observers more than once. 2021-12-14 Frederik Seiffert - * Source/NSBundle.m: - Default to UTF-8 when reading localized string files without BOM. + * Source/NSBundle.m: + Default to UTF-8 when reading localized string files without BOM. 2021-12-07 Richard Frith-Macdonald - * Source/GSTLS.m: (-disconnect:) try once if we are closing the TCP - connection, for up to 10 seconds if trying to keep it available. - * Source/NSFileHandle.m: (-sslDisconnect) operate in non-blocking - mode so that network issues should not cause a disconnect attempt - to hang. This should behave better on heavily loaded systems. + * Source/GSTLS.m: (-disconnect:) try once if we are closing the TCP + connection, for up to 10 seconds if trying to keep it available. + * Source/NSFileHandle.m: (-sslDisconnect) operate in non-blocking + mode so that network issues should not cause a disconnect attempt + to hang. This should behave better on heavily loaded systems. 2021-11-23 Richard Frith-Macdonald - * configure.ac: check for zlib before bfd - * configure: regenerate - libbfd may need libz, so we must check for one before checking for - the other. + * configure.ac: check for zlib before bfd + * configure: regenerate + libbfd may need libz, so we must check for one before checking for + the other. 2021-11-21 Gregory John Casamento - * Headers/Foundation/NSURLConnection.h: Add + * Headers/Foundation/NSURLConnection.h: Add NSURLConnectionDataDelegate protocol. - * Headers/Foundation/NSURLRequest.h: Add enum for + * Headers/Foundation/NSURLRequest.h: Add enum for NSURLNetworkServiceType. 2021-11-19 Richard Frith-Macdonald - * Helpers/Launch.h: - * Helpers/capture.m: - * Helpers/keepalive.m: - * Helpers/respond.m: - * test00.m: - * test01.m: - * test02.m: - Rewrite helper launching so that the test process waits for up to - ten seconds for the helper to tell it that it's ready to accept - requests. This should make tests run a bit quicker (no longer - waiting a fixed interval for the helper to start) while allowing - longer for the helpers to start on slow systems, and thus making - the tests more reliable. + * Helpers/Launch.h: + * Helpers/capture.m: + * Helpers/keepalive.m: + * Helpers/respond.m: + * test00.m: + * test01.m: + * test02.m: + Rewrite helper launching so that the test process waits for up to + ten seconds for the helper to tell it that it's ready to accept + requests. This should make tests run a bit quicker (no longer + waiting a fixed interval for the helper to start) while allowing + longer for the helpers to start on slow systems, and thus making + the tests more reliable. 2021-11-11 Frederik Seiffert - * Headers/Foundation/NSBundle.h: - Annotate NSBundle localized string function with NS_FORMAT_ARGUMENT. + * Headers/Foundation/NSBundle.h: + Annotate NSBundle localized string function with NS_FORMAT_ARGUMENT. 2021-09-20 Frederik Seiffert - * Source/NSFileManager.m: - Fix -[NSFileManager URLForDirectory:...] using incorrect NSURL - initializer and simplified implementation. + * Source/NSFileManager.m: + Fix -[NSFileManager URLForDirectory:...] using incorrect NSURL + initializer and simplified implementation. 2021-09-16 Richard Frith-Macdonald - * Source/NSJSONSerialization.m: - * Source/NSURL.m: - Fix minor potential leaks. + * Source/NSJSONSerialization.m: + * Source/NSURL.m: + Fix minor potential leaks. 2021-08-27 Richard Frith-Macdonald - * Source/nstzfile.h: deleted (merged into tzdb.h) - * Source/tzdb.h: updated (includes nstzfile.h) - * Source/NSTimeZone.h: some cleanups - Tidies up as suggested by Fred + * Source/nstzfile.h: deleted (merged into tzdb.h) + * Source/tzdb.h: updated (includes nstzfile.h) + * Source/NSTimeZone.h: some cleanups + Tidies up as suggested by Fred 2021-08-14 Richard Frith-Macdonald - * Source/nstzfile.h: Fix by Emmanuel Dreyfus - increase number of - transitions allowed, so that we can handle dates further into the - future (since v2+ files support that). - * Tests/base/NSTimeZone/ParisV1-noMagic.tzdb: - * Tests/base/NSTimeZone/ParisV1.tzdb: - * Tests/base/NSTimeZone/ParisV2-missingHeader.tzdb: - * Tests/base/NSTimeZone/ParisV2.tzdb: - * Tests/base/NSTimeZone/localtime.m: - Increase the range of testcases + * Source/nstzfile.h: Fix by Emmanuel Dreyfus - increase number of + transitions allowed, so that we can handle dates further into the + future (since v2+ files support that). + * Tests/base/NSTimeZone/ParisV1-noMagic.tzdb: + * Tests/base/NSTimeZone/ParisV1.tzdb: + * Tests/base/NSTimeZone/ParisV2-missingHeader.tzdb: + * Tests/base/NSTimeZone/ParisV2.tzdb: + * Tests/base/NSTimeZone/localtime.m: + Increase the range of testcases 2021-08-11 Richard Frith-Macdonald - * Source/tzdb.h: Public domain time zone file parsing etc - * Source/NSTimeZone.m: Use code from tzdb.h - * Headers/Foundation/NSTimeZone.h: Remove some obsolete comments - * configure.ac: check for stdbool.h needed by tzdb.h - * configure: regenerate - * Headers/GNUstepBase/config.h.in: define for stdbool check - * Tests/base/NSTimeZone/Paris.tzdbv1: test timezone file (version 1) - * Tests/base/NSTimeZone/Paris.tzdbv2: test timezone file (version 2) - * Tests/base/NSTimeZone/localtime.m: Some testcases for v1/v2 - Incorporate work by Emmanuel Dreyfus to use public domain tzfile - parsing code supporting times too large to fit in 32bit value. - The public domain code has some support for the Posix TZ environment - variable style string used by version2 to support times after the last - transition in the file, but I'm not convinced it works properly, so - this may need to be revisited. + * Source/tzdb.h: Public domain time zone file parsing etc + * Source/NSTimeZone.m: Use code from tzdb.h + * Headers/Foundation/NSTimeZone.h: Remove some obsolete comments + * configure.ac: check for stdbool.h needed by tzdb.h + * configure: regenerate + * Headers/GNUstepBase/config.h.in: define for stdbool check + * Tests/base/NSTimeZone/Paris.tzdbv1: test timezone file (version 1) + * Tests/base/NSTimeZone/Paris.tzdbv2: test timezone file (version 2) + * Tests/base/NSTimeZone/localtime.m: Some testcases for v1/v2 + Incorporate work by Emmanuel Dreyfus to use public domain tzfile + parsing code supporting times too large to fit in 32bit value. + The public domain code has some support for the Posix TZ environment + variable style string used by version2 to support times after the last + transition in the file, but I'm not convinced it works properly, so + this may need to be revisited. 2021-08-10 Frederik Seiffert - * Source/NSObject: - * Source/NSProcessInfo.m: - * Source/NSSocketPort.m: - * Source:libgnustep-base-entry.m: - Initialize Windows Sockets in NSObject only and update to Windows - Socket version 2.2. + * Source/NSObject: + * Source/NSProcessInfo.m: + * Source/NSSocketPort.m: + * Source:libgnustep-base-entry.m: + Initialize Windows Sockets in NSObject only and update to Windows + Socket version 2.2. 2021-08-03 Frederik Seiffert - * Headers/GNUstepBase/config.h.in: - * configure: - * configure.ac: - Use pkgconfig to find libxslt. + * Headers/GNUstepBase/config.h.in: + * configure: + * configure.ac: + Use pkgconfig to find libxslt. 2021-07-29 Frederik Seiffert - * Headers/GNUstepBase/config.h.in: - * Source/Additions/Unicode.m: - * Source/GSICUString.h: - * Source/NSCalendar.m: - * Source/NSDateFormatter.m: - * Source/NSLocale.m: - * Source/NSNumberFormatter.m: - * Source/NSPredicate.m: - * Source/NSRegularExpression.m: - * Source/NSString.m: - * Source/NSTimeZone.m: - * configure: - * configure.ac: - Add support for using ICU DLL from Windows 10. + * Headers/GNUstepBase/config.h.in: + * Source/Additions/Unicode.m: + * Source/GSICUString.h: + * Source/NSCalendar.m: + * Source/NSDateFormatter.m: + * Source/NSLocale.m: + * Source/NSNumberFormatter.m: + * Source/NSPredicate.m: + * Source/NSRegularExpression.m: + * Source/NSString.m: + * Source/NSTimeZone.m: + * configure: + * configure.ac: + Add support for using ICU DLL from Windows 10. 2021-07-29 Richard Frith-Macdonald - * Source/NSTimeZone.m: - * Headers/GNUstepBase/config.h.in: - * configure.ac: - * configure: - Always use builtin header for parsing posix time zone files, so we - know that the field names are consistent and so we knw we have a - define for the file magic number. + * Source/NSTimeZone.m: + * Headers/GNUstepBase/config.h.in: + * configure.ac: + * configure: + Always use builtin header for parsing posix time zone files, so we + know that the field names are consistent and so we knw we have a + define for the file magic number. 2021-07-26 Richard Frith-Macdonald - * Source/NSXMLParser.m: - Fix error caused by having methods in category for strict parser - overriding methods provided by sloppy parser. + * Source/NSXMLParser.m: + Fix error caused by having methods in category for strict parser + overriding methods provided by sloppy parser. 2021-07-22 Richard Frith-Macdonald - * Source/nstzfile.h: - * Source/NSTimeZone.m: - Changes to add support for 64bit transitions used by v2+ of the - timezone format. + * Source/nstzfile.h: + * Source/NSTimeZone.m: + Changes to add support for 64bit transitions used by v2+ of the + timezone format. 2021-07-14 Frederik Seiffert - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSThread.h: - * Headers/GNUstepBase/GSConfig.h.in: - * Headers/GNUstepBase/config.h.in: - * Source/Additions/GCObject.m: - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/Unicode.m: - * Source/GSAtomic.h: - * Source/GSFFCallInvocation.m: - * Source/GSFFIInvocation.m: - * Source/GSPThread.h: - * Source/NSArray.m: - * Source/NSCharacterSet.m: - * Source/NSDebug.m: - * Source/NSException.m: - * Source/NSLock.m: - * Source/NSObject.m: - * Source/NSScanner.m: - * Source/NSString.m: - * Source/NSThread.m: - * Source/NSTimeZone.m: - * Source/NSZone.m: - * Tests/base/NSThread/GNUmakefile.preamble: - * Tests/base/NSThread/late_unregister.m: - * Tests/base/NSThread/lazy_thread.m: - * config/config.initialize.m: - * configure: - * configure.ac: - Use native threading and locking APIs on Windows, removing dependency - on pthread library and using fast Slim Reader/Writer (SRW) locks for - NSLock/NSRecursiveLock/NSCondition/NSConditionLock as well as all - internal locks. Adds GS_MUTEX_*() macros in GSPThread.h, that are being - used for all internal locking instead of pthread APIs. - Also adds support for thread priorities on Windows, fixes method - signature of +[NSThread setThreadPriority:] to match Apple platforms, - and adds error handling in same method. + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSThread.h: + * Headers/GNUstepBase/GSConfig.h.in: + * Headers/GNUstepBase/config.h.in: + * Source/Additions/GCObject.m: + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/Unicode.m: + * Source/GSAtomic.h: + * Source/GSFFCallInvocation.m: + * Source/GSFFIInvocation.m: + * Source/GSPThread.h: + * Source/NSArray.m: + * Source/NSCharacterSet.m: + * Source/NSDebug.m: + * Source/NSException.m: + * Source/NSLock.m: + * Source/NSObject.m: + * Source/NSScanner.m: + * Source/NSString.m: + * Source/NSThread.m: + * Source/NSTimeZone.m: + * Source/NSZone.m: + * Tests/base/NSThread/GNUmakefile.preamble: + * Tests/base/NSThread/late_unregister.m: + * Tests/base/NSThread/lazy_thread.m: + * config/config.initialize.m: + * configure: + * configure.ac: + Use native threading and locking APIs on Windows, removing dependency + on pthread library and using fast Slim Reader/Writer (SRW) locks for + NSLock/NSRecursiveLock/NSCondition/NSConditionLock as well as all + internal locks. Adds GS_MUTEX_*() macros in GSPThread.h, that are being + used for all internal locking instead of pthread APIs. + Also adds support for thread priorities on Windows, fixes method + signature of +[NSThread setThreadPriority:] to match Apple platforms, + and adds error handling in same method. 2021-07-16 Frederik Seiffert - * Source/GSICUString.h: - * Source/GSICUString.m: - Fix possible memory corruption in string handling that occured - primarily when using NSRegularExpression with strings longer than - 16 characters. + * Source/GSICUString.h: + * Source/GSICUString.m: + Fix possible memory corruption in string handling that occured + primarily when using NSRegularExpression with strings longer than + 16 characters. 2021-07-02 Frederik Seiffert - * Source/Additions/Unicode.m: - Fix possible heap corruption when converting to - NSNonLossyASCIIStringEncoding. + * Source/Additions/Unicode.m: + Fix possible heap corruption when converting to + NSNonLossyASCIIStringEncoding. 2021-06-19 Richard Frith-Macdonald - * Headers/Foundation/Port.h: - * Source/NSSocketPort.m: - Extend the API for TLS support in Distributed Objects so that we have - separate settings for whether the port is acting as a client or - server. + * Headers/Foundation/Port.h: + * Source/NSSocketPort.m: + Extend the API for TLS support in Distributed Objects so that we have + separate settings for whether the port is acting as a client or + server. 2021-06-19 Richard Frith-Macdonald - * Source/GSTLS.m: - * Source/NSSocketPort.m: - Improve reporting of TLS handshake errors, fix a few leaks and - generally make encryption of DO connections better. + * Source/GSTLS.m: + * Source/NSSocketPort.m: + Improve reporting of TLS handshake errors, fix a few leaks and + generally make encryption of DO connections better. 2021-06-17 Frederik Seiffert - * Source/Additions/Unicode.m: - Fix lookup of string encodings with high numeric values in - encoding table when they are interpreted as negative numbers - for some platforms/compilers (pertains - NSUTF16*EndianStringEncoding and NSUTF32*StringEncoding). + * Source/Additions/Unicode.m: + Fix lookup of string encodings with high numeric values in + encoding table when they are interpreted as negative numbers + for some platforms/compilers (pertains + NSUTF16*EndianStringEncoding and NSUTF32*StringEncoding). 2021-06-03 Richard Frith-Macdonald - * Headers/GNUstepBase/GSTLS.h: New session ivar for I/O handle. - * Source/GSTLS.m: Report the I/O handle in debug logs so we can - more easily track which logs refer apply to the objects using a - session. - * Source/NSSocketPort.m: debug improvements plus fixes to the code - for initiating connections so that the initial port information is - reliably written to the handle. + * Headers/GNUstepBase/GSTLS.h: New session ivar for I/O handle. + * Source/GSTLS.m: Report the I/O handle in debug logs so we can + more easily track which logs refer apply to the objects using a + session. + * Source/NSSocketPort.m: debug improvements plus fixes to the code + for initiating connections so that the initial port information is + reliably written to the handle. 2021-06-02 Gregory John Casamento - * Headers/Foundation/Foundation.h: Add missing import for + * Headers/Foundation/Foundation.h: Add missing import for NSByteCountFormatter. 2021-05-31 Richard Frith-Macdonald - * Headers/GNUstepBase/GSTLS.h: ([GSTLSCredentials selfSigned:]) - * Source/GSTLS.m: Add new method to use certtool to generate a - key and a self-signed certificate. Use the new method to set up - server sessions if no certificate/key is configured. - * Headers/Foundation/NSPort.h: ([NSSocketPost setOptionsForTLS:]) - * Source/NSSocketPort.m: New methods to configure socket ports to - use TLS so that inter-host distributed object connections can be - securely encrypted. The class method should turn on encryption - for all subsequent connections using socket ports (the instance - method can be used to override the effects of the class method - for an individual instance). + * Headers/GNUstepBase/GSTLS.h: ([GSTLSCredentials selfSigned:]) + * Source/GSTLS.m: Add new method to use certtool to generate a + key and a self-signed certificate. Use the new method to set up + server sessions if no certificate/key is configured. + * Headers/Foundation/NSPort.h: ([NSSocketPost setOptionsForTLS:]) + * Source/NSSocketPort.m: New methods to configure socket ports to + use TLS so that inter-host distributed object connections can be + securely encrypted. The class method should turn on encryption + for all subsequent connections using socket ports (the instance + method can be used to override the effects of the class method + for an individual instance). 2021-05-23 Richard Frith-Macdonald - * Source/GSStream.m: - When we get an event saying that there is space available, we should - change the stream status from writing to open (because the write - operation completed). This makes the -hasSpaceAvailable method return - the correct value when a callback routine is checking to see if it - can write. + * Source/GSStream.m: + When we get an event saying that there is space available, we should + change the stream status from writing to open (because the write + operation completed). This makes the -hasSpaceAvailable method return + the correct value when a callback routine is checking to see if it + can write. 2021-05-19 Richard Frith-Macdonald - * Source/win32/GSFileHandle.m: - Fixed bug preventing write of long data (failing to watch for write - completion when only part of the data is written). Added some debug + * Source/win32/GSFileHandle.m: + Fixed bug preventing write of long data (failing to watch for write + completion when only part of the data is written). Added some debug 2021-05-15 Richard Frith-Macdonald - * Source/GSFileHandle.m: - * Source/win32/GSFileHandle.m: - When we receive an event telling us the handle is writable, repeatedly - write until either all the data we have is written or until the write - attempt doesn't write anything. On mswindows this copes with the case - of the gnutls write only writing 16KB chunks at a time. + * Source/GSFileHandle.m: + * Source/win32/GSFileHandle.m: + When we receive an event telling us the handle is writable, repeatedly + write until either all the data we have is written or until the write + attempt doesn't write anything. On mswindows this copes with the case + of the gnutls write only writing 16KB chunks at a time. 2021-05-05 Richard Frith-Macdonald - * configure.ac: Check for declaration of CURLOPT_MAXAGE_CONN - * configure: regenerate - * Headers/GNUstepBase/config.h.in: regenerate - * Source/NSURLSession.m: Use HAVE_DECL_CURLOPT_MAXAGE_CONN to tell - whether -setHTTPMaximumConnectionLifetime: can be implemented. This - fixes a bug where the method was not implemented even though the - version of Curl available supported it. - * Tests/base/NSURLSession/test02.m: Add a testcase (hope) to see if - -setHTTPMaximumConnectionLifetime: is supported. + * configure.ac: Check for declaration of CURLOPT_MAXAGE_CONN + * configure: regenerate + * Headers/GNUstepBase/config.h.in: regenerate + * Source/NSURLSession.m: Use HAVE_DECL_CURLOPT_MAXAGE_CONN to tell + whether -setHTTPMaximumConnectionLifetime: can be implemented. This + fixes a bug where the method was not implemented even though the + version of Curl available supported it. + * Tests/base/NSURLSession/test02.m: Add a testcase (hope) to see if + -setHTTPMaximumConnectionLifetime: is supported. 2021-04-26 Ivan Vucica - * ChangeLog: - Update ChangeLog to release 1.28.0. + * ChangeLog: + Update ChangeLog to release 1.28.0. 2021-04-23 Richard Frith-Macdonald - * Source/DocMakefile: - Ignore GS_EXPORT_CLASS when generating documentation for - base/additions. + * Source/DocMakefile: + Ignore GS_EXPORT_CLASS when generating documentation for + base/additions. 2021-04-22 Ivan Vucica - * ChangeLog: - Formatting and email address fixes. - * ANNOUNCE: - * NEWS: - * Documentation/ReleaseNotes.gsdoc: - * Documentation/news.texi: - Update release notes for a future 1.28.0 release. - * Version: - Bump version to 1.28.0. + * ChangeLog: + Formatting and email address fixes. + * ANNOUNCE: + * NEWS: + * Documentation/ReleaseNotes.gsdoc: + * Documentation/news.texi: + Update release notes for a future 1.28.0 release. + * Version: + Bump version to 1.28.0. 2021-04-14 Richard Frith-Macdonald - * Headers/Foundation/NSString.h: - * Source/NSString.m: - * Source/NSString.m: - Fixes for BOM insertion when generating data from a string using one - of the unicode encodings. The BOM is inserted in the case where the - byte order is important in the specified encoding, but the encoding - does not specify which byte order is used. This is the case for - NSUnicodeStringEncoding, NSUTF16StringEncoding (which is a synonym - for NSUnicodeStringEncoding), and NSUTF32StringEncoding. - The bit of this that might impact existing code is that the BOM is - now placed at the start of the data even in the string is empty (as - on OSX). + * Headers/Foundation/NSString.h: + * Source/NSString.m: + * Source/NSString.m: + Fixes for BOM insertion when generating data from a string using one + of the unicode encodings. The BOM is inserted in the case where the + byte order is important in the specified encoding, but the encoding + does not specify which byte order is used. This is the case for + NSUnicodeStringEncoding, NSUTF16StringEncoding (which is a synonym + for NSUnicodeStringEncoding), and NSUTF32StringEncoding. + The bit of this that might impact existing code is that the BOM is + now placed at the start of the data even in the string is empty (as + on OSX). 2021-03-27 Frederik Seiffert - * Headers/GNUstepBase/GSVersionMacros.h: - Add GS_IMPORT macro resolving to dllimport annonation on Windows. - * Source/NSObject.m: - Add support for libobjc2 runtime on Windows. + * Headers/GNUstepBase/GSVersionMacros.h: + Add GS_IMPORT macro resolving to dllimport annonation on Windows. + * Source/NSObject.m: + Add support for libobjc2 runtime on Windows. 2021-03-27 Frederik Seiffert - * Headers/Foundation/NSConnection.h: - * Source/Additions/GSMime.m: - * Source/Additions/NSDebug+GNUstepBase.m: - * Source/Additions/NSStream+GNUstepBase.m: - * Source/GSPrivate.h: - * Source/GSTLS.m: - * Source/NSArchiver.m: - * Source/NSBundle.m: - * Source/NSConcreteHashTable.m: - * Source/NSConcreteMapTable.m: - * Source/NSConnection.m: - * Source/NSDate.m: - * Source/NSDecimal.m: - * Source/NSError.m: - * Source/NSExtensionContext.m: - * Source/NSExtensionItem.m: - * Source/NSFileHandle.m: - * Source/NSFileManager.m: - * Source/NSHFSFileTypes.m: - * Source/NSHTTPCookie.m: - * Source/NSHTTPCookieStorage.m: - * Source/NSInvocationOperation.m: - * Source/NSItemProvider.m: - * Source/NSKeyValueCoding.m: - * Source/NSKeyValueObserving.m: - * Source/NSKeyedArchiver.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSLocale.m: - * Source/NSMetadata.m: - * Source/NSMetadataAttributes.m: - * Source/NSNetServices.m: - * Source/NSObjCRuntime.m: - * Source/NSObject.m: - * Source/NSPathUtilities.m: - * Source/NSPersonNameComponentsFormatter.m: - * Source/NSPort.m: - * Source/NSSpellServer.m: - * Source/NSTimeZone.m: - * Source/NSURL.m: - * Source/NSURLCredentialStorage.m: - * Source/NSURLHandle.m: - * Source/NSURLProtectionSpace.m: - * Source/NSUserNotification.m: - * Source/NSXMLParser.m: - * Source/NSZone.m: - * Source/externs.m: - Export string constants and annotate exported function implementations. - Moves scattered string constants to externs.m, and removes obsolete - code replacing constant strings. + * Headers/Foundation/NSConnection.h: + * Source/Additions/GSMime.m: + * Source/Additions/NSDebug+GNUstepBase.m: + * Source/Additions/NSStream+GNUstepBase.m: + * Source/GSPrivate.h: + * Source/GSTLS.m: + * Source/NSArchiver.m: + * Source/NSBundle.m: + * Source/NSConcreteHashTable.m: + * Source/NSConcreteMapTable.m: + * Source/NSConnection.m: + * Source/NSDate.m: + * Source/NSDecimal.m: + * Source/NSError.m: + * Source/NSExtensionContext.m: + * Source/NSExtensionItem.m: + * Source/NSFileHandle.m: + * Source/NSFileManager.m: + * Source/NSHFSFileTypes.m: + * Source/NSHTTPCookie.m: + * Source/NSHTTPCookieStorage.m: + * Source/NSInvocationOperation.m: + * Source/NSItemProvider.m: + * Source/NSKeyValueCoding.m: + * Source/NSKeyValueObserving.m: + * Source/NSKeyedArchiver.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSLocale.m: + * Source/NSMetadata.m: + * Source/NSMetadataAttributes.m: + * Source/NSNetServices.m: + * Source/NSObjCRuntime.m: + * Source/NSObject.m: + * Source/NSPathUtilities.m: + * Source/NSPersonNameComponentsFormatter.m: + * Source/NSPort.m: + * Source/NSSpellServer.m: + * Source/NSTimeZone.m: + * Source/NSURL.m: + * Source/NSURLCredentialStorage.m: + * Source/NSURLHandle.m: + * Source/NSURLProtectionSpace.m: + * Source/NSUserNotification.m: + * Source/NSXMLParser.m: + * Source/NSZone.m: + * Source/externs.m: + Export string constants and annotate exported function implementations. + Moves scattered string constants to externs.m, and removes obsolete + code replacing constant strings. 2021-03-12 Frederik Seiffert - * Source/NSFileManager.m: - * Source/NSProcessInfo.m: - * Source/win32/dirent.h: - Add NSFileManager support on Windows MSVC using dirent.h from: - https://github.com/tronkko/dirent/blob/master/include/dirent.h - Also unifies _CHAR in NSFileManager with GSNativeChar, as they are - internally required to be the same. + * Source/NSFileManager.m: + * Source/NSProcessInfo.m: + * Source/win32/dirent.h: + Add NSFileManager support on Windows MSVC using dirent.h from: + https://github.com/tronkko/dirent/blob/master/include/dirent.h + Also unifies _CHAR in NSFileManager with GSNativeChar, as they are + internally required to be the same. 2021-03-09 Frederik Seiffert - * Source/NSRunLoop.m: - Fix libdispatch integration compilation error on Windows. + * Source/NSRunLoop.m: + Fix libdispatch integration compilation error on Windows. 2021-03-05 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: - Rewrite handling of tls handshake to operate asynchronously, - attempting continuation of the handshake when the socket becomes - readable. The point of this is to prevent recursive entry into the - runloop (and possible stack overflow) if the remote end fails to send - anything for a while. + * Source/GSHTTPURLHandle.m: + Rewrite handling of tls handshake to operate asynchronously, + attempting continuation of the handshake when the socket becomes + readable. The point of this is to prevent recursive entry into the + runloop (and possible stack overflow) if the remote end fails to send + anything for a while. 2021-03-03 Frederik Seiffert - * Headers/Foundation/NSTimer.h: - * Source/NSTimer.m: add unscheduled NSTimer block initializer + * Headers/Foundation/NSTimer.h: + * Source/NSTimer.m: add unscheduled NSTimer block initializer 2021-02-22 Richard Frith-Macdonald - * Source/Additions/GSXML.m: + * Source/Additions/GSXML.m: Fix potential deadlock found by Wolfgang 2021-02-18 Richard Frith-Macdonald - * Source/Additions/GSXML.m: + * Source/Additions/GSXML.m: Initialise XMLParser in main thread 2021-02-13 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: - * Source/GSTLS.m: - * Source/NSFileHandle.m: + * Source/GSHTTPURLHandle.m: + * Source/GSTLS.m: + * Source/NSFileHandle.m: Fixes for SSL/TLS support using GNUTLS under MinGW. - Use send/recv rather than read/write in TLS push/pull functions - (works with winsock and unix) and perform mappings between winsock - error codes and unix/gnutls error codes so that we correctly repeat - operations whe they fail in non-blocking mode. + Use send/recv rather than read/write in TLS push/pull functions + (works with winsock and unix) and perform mappings between winsock + error codes and unix/gnutls error codes so that we correctly repeat + operations whe they fail in non-blocking mode. 2021-02-12 Frederik Seiffert - * Headers/Foundation/NSNull.h: Add missing GS_EXPORT_CLASS. - * Tests/base/Functions/NSByteSwapping.m: Define M_PI if needed. - * configure: - * configure.ac: Add support for pthreadVC2 library variant and - tweak host OS check for Windows to be more specific. + * Headers/Foundation/NSNull.h: Add missing GS_EXPORT_CLASS. + * Tests/base/Functions/NSByteSwapping.m: Define M_PI if needed. + * configure: + * configure.ac: Add support for pthreadVC2 library variant and + tweak host OS check for Windows to be more specific. 2021-02-06 Richard Frith-Macdonald - * Source/NSURLProtocol.m: + * Source/NSURLProtocol.m: Fix failure to send large requests, when the write operation succeeds - but we have not written all the data we need to, we should write more - as long as the stream has space available. + but we have not written all the data we need to, we should write more + as long as the stream has space available. 2021-02-05 Fred Kiefer * Tools/make_strings/StringsFile.m: Write the file in UTF8 format - if the string contains any non ASCII character. + if the string contains any non ASCII character. 2021-02-03 Frederik Seiffert - * Tools/GNUmakefile: disable gdomap on Android (unsupported). + * Tools/GNUmakefile: disable gdomap on Android (unsupported). 2021-02-02 Riccardo Mottola - * configure - * configure.ac - Add check for statbuf.st_mtim if available + * configure + * configure.ac + Add check for statbuf.st_mtim if available - * Source/NSFileManager.m - Use statbuf.st_mtim to get nanosecond precision in modification - date, also fix conversion of nanoseconds in creation date. + * Source/NSFileManager.m + Use statbuf.st_mtim to get nanosecond precision in modification + date, also fix conversion of nanoseconds in creation date. 2021-01-29 Frederik Seiffert - * Headers/Foundation/NSAffineTransform.h: - * Headers/Foundation/NSAppleEventDescriptor.h: - * Headers/Foundation/NSAppleEventManager.h: - * Headers/Foundation/NSAppleScript.h: - * Headers/Foundation/NSArchiver.h: - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSAttributedString.h: - * Headers/Foundation/NSAutoreleasePool.h: - * Headers/Foundation/NSBackgroundActivityScheduler.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSByteCountFormatter.h: - * Headers/Foundation/NSCache.h: - * Headers/Foundation/NSCalendar.h: - * Headers/Foundation/NSCalendarDate.h: - * Headers/Foundation/NSCharacterSet.h: - * Headers/Foundation/NSClassDescription.h: - * Headers/Foundation/NSCoder.h: - * Headers/Foundation/NSComparisonPredicate.h: - * Headers/Foundation/NSCompoundPredicate.h: - * Headers/Foundation/NSConnection.h: - * Headers/Foundation/NSData.h: - * Headers/Foundation/NSDate.h: - * Headers/Foundation/NSDateComponentsFormatter.h: - * Headers/Foundation/NSDateFormatter.h: - * Headers/Foundation/NSDateInterval.h: - * Headers/Foundation/NSDateIntervalFormatter.h: - * Headers/Foundation/NSDictionary.h: - * Headers/Foundation/NSDistantObject.h: - * Headers/Foundation/NSDistributedLock.h: - * Headers/Foundation/NSEnergyFormatter.h: - * Headers/Foundation/NSEnumerator.h: - * Headers/Foundation/NSError.h: - * Headers/Foundation/NSException.h: - * Headers/Foundation/NSExpression.h: - * Headers/Foundation/NSExtensionContext.h: - * Headers/Foundation/NSExtensionItem.h: - * Headers/Foundation/NSFileCoordinator.h: - * Headers/Foundation/NSFileHandle.h: - * Headers/Foundation/NSFileManager.h: - * Headers/Foundation/NSFileVersion.h: - * Headers/Foundation/NSFileWrapper.h: - * Headers/Foundation/NSGarbageCollector.h: - * Headers/Foundation/NSHTTPCookie.h: - * Headers/Foundation/NSHTTPCookieStorage.h: - * Headers/Foundation/NSHashTable.h: - * Headers/Foundation/NSHost.h: - * Headers/Foundation/NSISO8601DateFormatter.h: - * Headers/Foundation/NSInvocation.h: - * Headers/Foundation/NSInvocationOperation.h: - * Headers/Foundation/NSItemProvider.h: - * Headers/Foundation/NSItemProviderReadingWriting.h: - * Headers/Foundation/NSJSONSerialization.h: - * Headers/Foundation/NSKeyedArchiver.h: - * Headers/Foundation/NSLengthFormatter.h: - * Headers/Foundation/NSLinguisticTagger.h: - * Headers/Foundation/NSLocale.h: - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSMapTable.h: - * Headers/Foundation/NSMassFormatter.h: - * Headers/Foundation/NSMeasurement.h: - * Headers/Foundation/NSMeasurementFormatter.h: - * Headers/Foundation/NSMetadata.h: - * Headers/Foundation/NSMethodSignature.h: - * Headers/Foundation/NSNetServices.h: - * Headers/Foundation/NSNotification.h: - * Headers/Foundation/NSNotificationQueue.h: - * Headers/Foundation/NSNumberFormatter.h: - * Headers/Foundation/NSObjCRuntime.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSObjectScripting.h: - * Headers/Foundation/NSOperation.h: - * Headers/Foundation/NSOrderedSet.h: - * Headers/Foundation/NSOrthography.h: - * Headers/Foundation/NSPersonNameComponents.h: - * Headers/Foundation/NSPersonNameComponentsFormatter.h: - * Headers/Foundation/NSPointerArray.h: - * Headers/Foundation/NSPointerFunctions.h: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSPortCoder.h: - * Headers/Foundation/NSPortNameServer.h: - * Headers/Foundation/NSPredicate.h: - * Headers/Foundation/NSProcessInfo.h: - * Headers/Foundation/NSProgress.h: - * Headers/Foundation/NSPropertyList.h: - * Headers/Foundation/NSProtocolChecker.h: - * Headers/Foundation/NSProxy.h: - * Headers/Foundation/NSRegularExpression.h: - * Headers/Foundation/NSRunLoop.h: - * Headers/Foundation/NSScanner.h: - * Headers/Foundation/NSScriptClassDescription.h: - * Headers/Foundation/NSScriptCoercionHandler.h: - * Headers/Foundation/NSScriptCommand.h: - * Headers/Foundation/NSScriptCommandDescription.h: - * Headers/Foundation/NSScriptExecutionContext.h: - * Headers/Foundation/NSScriptKeyValueCoding.h: - * Headers/Foundation/NSScriptObjectSpecifiers.h: - * Headers/Foundation/NSScriptStandardSuiteCommands.h: - * Headers/Foundation/NSScriptSuiteRegistry.h: - * Headers/Foundation/NSSerialization.h: - * Headers/Foundation/NSSet.h: - * Headers/Foundation/NSSortDescriptor.h: - * Headers/Foundation/NSSpellServer.h: - * Headers/Foundation/NSStream.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSTask.h: - * Headers/Foundation/NSTextCheckingResult.h: - * Headers/Foundation/NSThread.h: - * Headers/Foundation/NSTimeZone.h: - * Headers/Foundation/NSTimer.h: - * Headers/Foundation/NSURL.h: - * Headers/Foundation/NSURLAuthenticationChallenge.h: - * Headers/Foundation/NSURLCache.h: - * Headers/Foundation/NSURLConnection.h: - * Headers/Foundation/NSURLCredential.h: - * Headers/Foundation/NSURLCredentialStorage.h: - * Headers/Foundation/NSURLDownload.h: - * Headers/Foundation/NSURLHandle.h: - * Headers/Foundation/NSURLProtectionSpace.h: - * Headers/Foundation/NSURLProtocol.h: - * Headers/Foundation/NSURLRequest.h: - * Headers/Foundation/NSURLResponse.h: - * Headers/Foundation/NSURLSession.h: - * Headers/Foundation/NSUUID.h: - * Headers/Foundation/NSUbiquitousKeyValueStore.h: - * Headers/Foundation/NSUndoManager.h: - * Headers/Foundation/NSUnit.h: - * Headers/Foundation/NSUserActivity.h: - * Headers/Foundation/NSUserDefaults.h: - * Headers/Foundation/NSUserNotification.h: - * Headers/Foundation/NSUserScriptTask.h: - * Headers/Foundation/NSValue.h: - * Headers/Foundation/NSValueTransformer.h: - * Headers/Foundation/NSXMLDTD.h: - * Headers/Foundation/NSXMLDTDNode.h: - * Headers/Foundation/NSXMLDocument.h: - * Headers/Foundation/NSXMLElement.h: - * Headers/Foundation/NSXMLNode.h: - * Headers/Foundation/NSXMLParser.h: - * Headers/Foundation/NSXPCConnection.h: - * Headers/GNUstepBase/CXXException.h: - * Headers/GNUstepBase/GCObject.h: - * Headers/GNUstepBase/GSConfig.h.in: - * Headers/GNUstepBase/GSMime.h: - * Headers/GNUstepBase/GSTLS.h: - * Headers/GNUstepBase/GSVersionMacros.h: - * Headers/GNUstepBase/GSXML.h: - * Headers/GNUstepBase/NSStream+GNUstepBase.h: - * Source/Additions/GSXML.m: - * Source/Additions/Makefile.preamble: - * Source/CXXException.m: - * Source/GNUmakefile: - * Source/NSException.m: - * Source/NSFileManager.m: - * Source/NSPropertyList.m: - * Source/NSSocketPort.m: - * Source/ObjectiveC2/Makefile.preamble: - * Source/common.h: - * Source/externs.m: - * Source/inet_ntop.m: - * Source/inet_pton.m: - * Source/libgnustep-base-entry.m: - * Source/unix/Makefile.preamble: - * Source/win32/GSFileHandle.m: - * Source/win32/Makefile.preamble: - * Tools/GNUmakefile: - * Tools/Makefile.preamble: - * Tools/gdnc.m: - * Tools/make_strings/make_strings.m: - * Tools/pl2link.m: - * Tools/plutil.m: - * config/config.initialize.m: - * configure: - * configure.ac: - Added support for building on Windows with Clang MSVC target and - libobjc2. This requires using - a - standard(non - MinGW) Clang build that e.g.comes with Visual Studio - or is available as pre - built binary from the LLVM website, - and - requires passing a host to configure like - --host=x86_64-pc-windows. - The build is best done in an MSYS2 shell that does not have any - additional *-devel packages installed that might get picked up by - configure. Alternatively --disable-xxx flags can be used to prevent - these dependencies to be picked up. - Annotates all ObjC class interfaces with GS_EXPORT_CLASS for DLL - export/import declarations, and adds missing GS_DECLARE annotations - in externs.m, in order for these symbols to be correctly exported - in the DLL. + * Headers/Foundation/NSAffineTransform.h: + * Headers/Foundation/NSAppleEventDescriptor.h: + * Headers/Foundation/NSAppleEventManager.h: + * Headers/Foundation/NSAppleScript.h: + * Headers/Foundation/NSArchiver.h: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSAttributedString.h: + * Headers/Foundation/NSAutoreleasePool.h: + * Headers/Foundation/NSBackgroundActivityScheduler.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSByteCountFormatter.h: + * Headers/Foundation/NSCache.h: + * Headers/Foundation/NSCalendar.h: + * Headers/Foundation/NSCalendarDate.h: + * Headers/Foundation/NSCharacterSet.h: + * Headers/Foundation/NSClassDescription.h: + * Headers/Foundation/NSCoder.h: + * Headers/Foundation/NSComparisonPredicate.h: + * Headers/Foundation/NSCompoundPredicate.h: + * Headers/Foundation/NSConnection.h: + * Headers/Foundation/NSData.h: + * Headers/Foundation/NSDate.h: + * Headers/Foundation/NSDateComponentsFormatter.h: + * Headers/Foundation/NSDateFormatter.h: + * Headers/Foundation/NSDateInterval.h: + * Headers/Foundation/NSDateIntervalFormatter.h: + * Headers/Foundation/NSDictionary.h: + * Headers/Foundation/NSDistantObject.h: + * Headers/Foundation/NSDistributedLock.h: + * Headers/Foundation/NSEnergyFormatter.h: + * Headers/Foundation/NSEnumerator.h: + * Headers/Foundation/NSError.h: + * Headers/Foundation/NSException.h: + * Headers/Foundation/NSExpression.h: + * Headers/Foundation/NSExtensionContext.h: + * Headers/Foundation/NSExtensionItem.h: + * Headers/Foundation/NSFileCoordinator.h: + * Headers/Foundation/NSFileHandle.h: + * Headers/Foundation/NSFileManager.h: + * Headers/Foundation/NSFileVersion.h: + * Headers/Foundation/NSFileWrapper.h: + * Headers/Foundation/NSGarbageCollector.h: + * Headers/Foundation/NSHTTPCookie.h: + * Headers/Foundation/NSHTTPCookieStorage.h: + * Headers/Foundation/NSHashTable.h: + * Headers/Foundation/NSHost.h: + * Headers/Foundation/NSISO8601DateFormatter.h: + * Headers/Foundation/NSInvocation.h: + * Headers/Foundation/NSInvocationOperation.h: + * Headers/Foundation/NSItemProvider.h: + * Headers/Foundation/NSItemProviderReadingWriting.h: + * Headers/Foundation/NSJSONSerialization.h: + * Headers/Foundation/NSKeyedArchiver.h: + * Headers/Foundation/NSLengthFormatter.h: + * Headers/Foundation/NSLinguisticTagger.h: + * Headers/Foundation/NSLocale.h: + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSMapTable.h: + * Headers/Foundation/NSMassFormatter.h: + * Headers/Foundation/NSMeasurement.h: + * Headers/Foundation/NSMeasurementFormatter.h: + * Headers/Foundation/NSMetadata.h: + * Headers/Foundation/NSMethodSignature.h: + * Headers/Foundation/NSNetServices.h: + * Headers/Foundation/NSNotification.h: + * Headers/Foundation/NSNotificationQueue.h: + * Headers/Foundation/NSNumberFormatter.h: + * Headers/Foundation/NSObjCRuntime.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSObjectScripting.h: + * Headers/Foundation/NSOperation.h: + * Headers/Foundation/NSOrderedSet.h: + * Headers/Foundation/NSOrthography.h: + * Headers/Foundation/NSPersonNameComponents.h: + * Headers/Foundation/NSPersonNameComponentsFormatter.h: + * Headers/Foundation/NSPointerArray.h: + * Headers/Foundation/NSPointerFunctions.h: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSPortCoder.h: + * Headers/Foundation/NSPortNameServer.h: + * Headers/Foundation/NSPredicate.h: + * Headers/Foundation/NSProcessInfo.h: + * Headers/Foundation/NSProgress.h: + * Headers/Foundation/NSPropertyList.h: + * Headers/Foundation/NSProtocolChecker.h: + * Headers/Foundation/NSProxy.h: + * Headers/Foundation/NSRegularExpression.h: + * Headers/Foundation/NSRunLoop.h: + * Headers/Foundation/NSScanner.h: + * Headers/Foundation/NSScriptClassDescription.h: + * Headers/Foundation/NSScriptCoercionHandler.h: + * Headers/Foundation/NSScriptCommand.h: + * Headers/Foundation/NSScriptCommandDescription.h: + * Headers/Foundation/NSScriptExecutionContext.h: + * Headers/Foundation/NSScriptKeyValueCoding.h: + * Headers/Foundation/NSScriptObjectSpecifiers.h: + * Headers/Foundation/NSScriptStandardSuiteCommands.h: + * Headers/Foundation/NSScriptSuiteRegistry.h: + * Headers/Foundation/NSSerialization.h: + * Headers/Foundation/NSSet.h: + * Headers/Foundation/NSSortDescriptor.h: + * Headers/Foundation/NSSpellServer.h: + * Headers/Foundation/NSStream.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSTask.h: + * Headers/Foundation/NSTextCheckingResult.h: + * Headers/Foundation/NSThread.h: + * Headers/Foundation/NSTimeZone.h: + * Headers/Foundation/NSTimer.h: + * Headers/Foundation/NSURL.h: + * Headers/Foundation/NSURLAuthenticationChallenge.h: + * Headers/Foundation/NSURLCache.h: + * Headers/Foundation/NSURLConnection.h: + * Headers/Foundation/NSURLCredential.h: + * Headers/Foundation/NSURLCredentialStorage.h: + * Headers/Foundation/NSURLDownload.h: + * Headers/Foundation/NSURLHandle.h: + * Headers/Foundation/NSURLProtectionSpace.h: + * Headers/Foundation/NSURLProtocol.h: + * Headers/Foundation/NSURLRequest.h: + * Headers/Foundation/NSURLResponse.h: + * Headers/Foundation/NSURLSession.h: + * Headers/Foundation/NSUUID.h: + * Headers/Foundation/NSUbiquitousKeyValueStore.h: + * Headers/Foundation/NSUndoManager.h: + * Headers/Foundation/NSUnit.h: + * Headers/Foundation/NSUserActivity.h: + * Headers/Foundation/NSUserDefaults.h: + * Headers/Foundation/NSUserNotification.h: + * Headers/Foundation/NSUserScriptTask.h: + * Headers/Foundation/NSValue.h: + * Headers/Foundation/NSValueTransformer.h: + * Headers/Foundation/NSXMLDTD.h: + * Headers/Foundation/NSXMLDTDNode.h: + * Headers/Foundation/NSXMLDocument.h: + * Headers/Foundation/NSXMLElement.h: + * Headers/Foundation/NSXMLNode.h: + * Headers/Foundation/NSXMLParser.h: + * Headers/Foundation/NSXPCConnection.h: + * Headers/GNUstepBase/CXXException.h: + * Headers/GNUstepBase/GCObject.h: + * Headers/GNUstepBase/GSConfig.h.in: + * Headers/GNUstepBase/GSMime.h: + * Headers/GNUstepBase/GSTLS.h: + * Headers/GNUstepBase/GSVersionMacros.h: + * Headers/GNUstepBase/GSXML.h: + * Headers/GNUstepBase/NSStream+GNUstepBase.h: + * Source/Additions/GSXML.m: + * Source/Additions/Makefile.preamble: + * Source/CXXException.m: + * Source/GNUmakefile: + * Source/NSException.m: + * Source/NSFileManager.m: + * Source/NSPropertyList.m: + * Source/NSSocketPort.m: + * Source/ObjectiveC2/Makefile.preamble: + * Source/common.h: + * Source/externs.m: + * Source/inet_ntop.m: + * Source/inet_pton.m: + * Source/libgnustep-base-entry.m: + * Source/unix/Makefile.preamble: + * Source/win32/GSFileHandle.m: + * Source/win32/Makefile.preamble: + * Tools/GNUmakefile: + * Tools/Makefile.preamble: + * Tools/gdnc.m: + * Tools/make_strings/make_strings.m: + * Tools/pl2link.m: + * Tools/plutil.m: + * config/config.initialize.m: + * configure: + * configure.ac: + Added support for building on Windows with Clang MSVC target and + libobjc2. This requires using + a + standard(non - MinGW) Clang build that e.g.comes with Visual Studio + or is available as pre - built binary from the LLVM website, + and + requires passing a host to configure like + --host=x86_64-pc-windows. + The build is best done in an MSYS2 shell that does not have any + additional *-devel packages installed that might get picked up by + configure. Alternatively --disable-xxx flags can be used to prevent + these dependencies to be picked up. + Annotates all ObjC class interfaces with GS_EXPORT_CLASS for DLL + export/import declarations, and adds missing GS_DECLARE annotations + in externs.m, in order for these symbols to be correctly exported + in the DLL. 2021-01-21 Fred Kiefer - * Tools/pl2link.m (main): Set key StartupWMClass and allow file - parameters of the Exec key. - Idea by: Josh Freeman + * Tools/pl2link.m (main): Set key StartupWMClass and allow file + parameters of the Exec key. + Idea by: Josh Freeman 2021-01-21 Richard Frith-Macdonald * Source/NSScanner.m: Fix scanning of zero values. - Was checking incorrect variable to avoid assignment to nul pointer. + Was checking incorrect variable to avoid assignment to nul pointer. 2021-01-19 Richard Frith-Macdonald * Source/NSKeyValueObserving.m: Fix leak of set * Source/NSPredicate.m: Fix leak evaluating a cast * Source/NSUnit.m: Fix memory leaks - * Source/NSData.m: Use NSZoneMalloc and NSZoneRealloc for memory - to ensure it is in the correct zone for the instance (and to avoid - complaints from static analyser). + * Source/NSData.m: Use NSZoneMalloc and NSZoneRealloc for memory + to ensure it is in the correct zone for the instance (and to avoid + complaints from static analyser). 2021-01-16 Richard Frith-Macdonald - * Source/GSSocketStream.m: + * Source/GSSocketStream.m: Remove stream from handler upon deallocation, to avoid handler - sending messages to deallocated stream. + sending messages to deallocated stream. 2020-12-30 Richard Frith-Macdonald - * Source/NSScanner.m: + * Source/NSScanner.m: Fix failure to re-set flag to say whether a string is unicode 2020-12-30 Richard Frith-Macdonald - * Source/NSScanner.m: + * Source/NSScanner.m: Fix potential problem with new optimisation for direct access to - contents of 8bit strings ... when the decimal separator is not an - ascii character we may need to convert the 8bit value to unicode. + contents of 8bit strings ... when the decimal separator is not an + ascii character we may need to convert the 8bit value to unicode. 2020-12-30 Richard Frith-Macdonald - * Source/NSScanner.m: - * Source/NSString.m: + * Source/NSScanner.m: + * Source/NSString.m: Use new private method to scan double values. 2020-12-30 Richard Frith-Macdonald - * Source/NSScanner.m: + * Source/NSScanner.m: Remove internal GSScanInt and GSScanDouble functions after moving - functionality into the -scanDouble: method. Add private class - method to support scanning a string for a double without having - to create a new scanner each time (use a shared lock-protected, - instance with resetting of the string being scanned). + functionality into the -scanDouble: method. Add private class + method to support scanning a string for a double without having + to create a new scanner each time (use a shared lock-protected, + instance with resetting of the string being scanned). 2020-12-30 Richard Frith-Macdonald - * Source/NSPropertyList.m: + * Source/NSPropertyList.m: Remove unused header import 2020-12-30 Richard Frith-Macdonald - * Source/GSString.m: + * Source/GSString.m: Use superclass implementation of -doubleValue and -floatValue 2020-12-29 Richard Frith-Macdonald - * Source/NSScanner.m: + * Source/NSScanner.m: Change -scanDouble: to call GSScanDouble() to perform conversion. - Fix GSScanDouble to cope with leading zeros. + Fix GSScanDouble to cope with leading zeros. 2020-12-15 Frederik Seiffert - * configure: - * configure.ac: + * configure: + * configure.ac: Disable libcurl support when headers are not found 2020-12-15 Richard Frith-Macdonald - * Headers/GNUstepBase/GNUstep.h: - * Headers/GNUstepBase/GSBlocks.h: - * Headers/ObjectiveC2/objc/blocks_runtime.h: - * Source/GSString.m: - * Source/NSConcreteHashTable.m: - * Source/NSConcreteMapTable.m: - * Source/NSConnection.m: - * Source/NSDistantObject.m: - * Source/NSMethodSignature.m: - * Source/NSNumberMethods.h: - * Tools/gdomap.c: + * Headers/GNUstepBase/GNUstep.h: + * Headers/GNUstepBase/GSBlocks.h: + * Headers/ObjectiveC2/objc/blocks_runtime.h: + * Source/GSString.m: + * Source/NSConcreteHashTable.m: + * Source/NSConcreteMapTable.m: + * Source/NSConnection.m: + * Source/NSDistantObject.m: + * Source/NSMethodSignature.m: + * Source/NSNumberMethods.h: + * Tools/gdomap.c: Consistently use __typeof__() rather than typeof() or __typeof() - for compatibility (GCC and clang and, perhaps, other future - compilers) irrespective of -std= compilation options. + for compatibility (GCC and clang and, perhaps, other future + compilers) irrespective of -std= compilation options. 2020-12-15 Richard Frith-Macdonald - * Tests/base/NSUUID/basic.m: + * Tests/base/NSUUID/basic.m: Fix stupid mistake using wrong string value 2020-12-15 Richard Frith-Macdonald - * Source/NSUUID.m: - * Tests/base/NSUUID/basic.m: + * Source/NSUUID.m: + * Tests/base/NSUUID/basic.m: Fix initialisation of NSUUID from string (permit mixed case hex digits) 2020-12-11 Richard Frith-Macdonald - * Source/GSStream.m: + * Source/GSStream.m: Fixup incorrect commit 2020-12-11 Richard Frith-Macdonald - * Source/GSStream.h: - * Source/GSStream.m: + * Source/GSStream.h: + * Source/GSStream.m: Improve diagnostic logging 2020-12-09 Richard Frith-Macdonald - * Tools/gdomap.c: + * Tools/gdomap.c: Use correct definition for integer type in windows 2020-12-09 Richard Frith-Macdonald - * Source/NSFileManager.m: + * Source/NSFileManager.m: Fix unused variable on windows 2020-12-09 Richard Frith-Macdonald - * Source/NSUserDefaults.m: + * Source/NSUserDefaults.m: Add fake interface for NSUserDefaultsWin32 to avoid compiler warning 2020-12-09 Richard Frith-Macdonald - * Source/NSPathUtilities.m: + * Source/NSPathUtilities.m: Only declare variables for systems which use them. 2020-12-07 Richard Frith-Macdonald - * Source/NSUUID.m: + * Source/NSUUID.m: Fix typo in comment (incorrect RFC number) 2020-12-07 Richard Frith-Macdonald - * Source/NSFileCoordinator.m: - * Source/NSItemProvider.m: - * Source/NSSortDescriptor.m: - * Source/NSTimer.m: + * Source/NSFileCoordinator.m: + * Source/NSItemProvider.m: + * Source/NSSortDescriptor.m: + * Source/NSTimer.m: Avoid compiler warnings when we do not have real blocks 2020-12-07 Richard Frith-Macdonald - * Headers/GNUstepBase/GNUstep.h: + * Headers/GNUstepBase/GNUstep.h: Use casts to prevent many compiler warnings when using pseudo-blocks 2020-12-07 Richard Frith-Macdonald - * Source/NSBackgroundActivityScheduler.m: + * Source/NSBackgroundActivityScheduler.m: Fixup to import local headers rather than installed versions 2020-12-07 Richard Frith-Macdonald - * Source/NSOperation.m: + * Source/NSOperation.m: Avoid compiler warnings on system with pseudo-blocks 2020-12-07 Richard Frith-Macdonald - * Source/GSSocketStream.m: + * Source/GSSocketStream.m: Fix format string error in -description 2020-12-07 Richard Frith-Macdonald - * Source/GSSocketStream.m: - * Source/GSStream.m: + * Source/GSSocketStream.m: + * Source/GSStream.m: Improve diagnostic output 2020-12-06 Richard Frith-Macdonald - * Source/GSSocketStream.m: + * Source/GSSocketStream.m: An error in a socketpair only applies to the other socket - if still opening + if still opening 2020-12-04 Richard Frith-Macdonald - * Source/GSOrderedSet.m: + * Source/GSOrderedSet.m: Use unsigned long for fast enumeration version counter 2020-12-04 Richard Frith-Macdonald - * Source/GSCountedSet.m: + * Source/GSCountedSet.m: fix typo 2020-12-04 Richard Frith-Macdonald - * Source/Additions/GSInsensitiveDictionary.m: - * Source/GSCountedSet.m: - * Source/GSDictionary.m: - * Source/GSSet.m: - * Source/NSConcreteHashTable.m: - * Source/NSConcreteMapTable.m: - * Source/NSUnarchiver.m: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/GSCountedSet.m: + * Source/GSDictionary.m: + * Source/GSSet.m: + * Source/NSConcreteHashTable.m: + * Source/NSConcreteMapTable.m: + * Source/NSUnarchiver.m: Fix to make value pointed to by mutationsPtr be unsigned long. 2020-12-04 Richard Frith-Macdonald - * Source/NSPortCoder.m: + * Source/NSPortCoder.m: Fix range check for decoded 32bit integer 2020-12-04 Richard Frith-Macdonald - * Source/NSRunLoop.m: + * Source/NSRunLoop.m: Suppress warnings about use of 'private' functions from libdispatch 2020-12-04 Richard Frith-Macdonald - * Source/ObjectiveC2/blocks_runtime.m: + * Source/ObjectiveC2/blocks_runtime.m: Declare external block as const void rather than void for - consistency and to avoid compiler warning + consistency and to avoid compiler warning 2020-12-04 Richard Frith-Macdonald - * Source/GSFastEnumeration.h: + * Source/GSFastEnumeration.h: Suppress dll import warnings for objc_enumerationMutation() on mingw 2020-12-03 Richard Frith-Macdonald - * Source/GSValue.m: - * Source/NSBackgroundActivityScheduler.m: + * Source/GSValue.m: + * Source/NSBackgroundActivityScheduler.m: Avoid compiler warning 2020-12-03 Richard Frith-Macdonald - * Source/Additions/Unicode.m: - * Source/NSData.m: - * Source/NSUUID.m: + * Source/Additions/Unicode.m: + * Source/NSData.m: + * Source/NSUUID.m: Use memcpy rather than strncpy/strncat to avoid compiler warnings 2020-12-03 Richard Frith-Macdonald - * Tools/NSPropertyList+PLUtil.m: + * Tools/NSPropertyList+PLUtil.m: Import missing NSError header 2020-12-03 Richard Frith-Macdonald - * Source/NSKeyValueCoding.m: + * Source/NSKeyValueCoding.m: Use memcpy rather than strncpy to avoid compiler warnings 2020-12-03 Richard Frith-Macdonald - * Source/NSData.m: + * Source/NSData.m: Tweaks to avoid compiler warnings 2020-12-03 Richard Frith-Macdonald - * Tests/base/NSJSONSerialization/tests00.m: + * Tests/base/NSJSONSerialization/tests00.m: Create temporary file in current directory and delete it when done. - This fixes testcase to work on windows. + This fixes testcase to work on windows. 2020-11-27 Frederik Seiffert - * configure: - * configure.ac: + * configure: + * configure.ac: Detect objc.lib and add libdir to path on Windows. 2020-11-27 Frederik Seiffert - * configure: - * configure.ac: + * configure: + * configure.ac: Prefer dispatch/dispatch.h over dispatch.h. 2020-11-29 Richard Frith-Macdonald - * .travis.yml: - * Headers/Foundation/NSDebug.h: - * Headers/Foundation/NSURLCache.h: - * Headers/Foundation/NSURLError.h: - * Headers/Foundation/NSURLProtocol.h: - * Headers/Foundation/NSURLRequest.h: - * Headers/Foundation/NSURLSession.h: - * Headers/GNUstepBase/GSConfig.h.in: - * Headers/GNUstepBase/config.h.in: - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/Makefile.preamble: - * Source/GNUmakefile: - * Source/GSEasyHandle.h: - * Source/GSEasyHandle.m: - * Source/GSHTTPURLHandle.m: - * Source/GSHTTPURLProtocol.h: - * Source/GSHTTPURLProtocol.m: - * Source/GSMultiHandle.h: - * Source/GSMultiHandle.m: - * Source/GSNativeProtocol.h: - * Source/GSNativeProtocol.m: - * Source/GSTLS.m: - * Source/GSTaskRegistry.h: - * Source/GSTaskRegistry.m: - * Source/GSTimeoutSource.h: - * Source/GSTimeoutSource.m: - * Source/GSTransferState.h: - * Source/GSTransferState.m: - * Source/GSURLPrivate.h: - * Source/GSURLSessionTaskBody.h: - * Source/GSURLSessionTaskBody.m: - * Source/GSURLSessionTaskBodySource.h: - * Source/GSURLSessionTaskBodySource.m: - * Source/NSConcretePointerFunctions.m: - * Source/NSException.m: - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - * Source/NSURLCache.m: - * Source/NSURLConnection.m: - * Source/NSURLProtocol.m: - * Source/NSURLRequest.m: - * Source/NSURLResponse.m: - * Source/NSURLSession.m: - * Source/NSXPCConnection.m: - * Tests/base/NSURL/Helpers/keepalive.m: - * Tests/base/NSURL/test00.m: - * Tests/base/NSURLConnection/Helpers/NSURLConnectionTest.h: - * Tests/base/NSURLConnection/Helpers/NSURLConnectionTest.m: - * Tests/base/NSURLConnection/Helpers/TestCase.m: - * Tests/base/NSURLConnection/Helpers/TestWebServer.h: - * Tests/base/NSURLConnection/Helpers/TestWebServer.m: - * Tests/base/NSURLConnection/Helpers/testTestWebServer.m: - * Tests/base/NSURLConnection/test01.m: - * Tests/base/NSURLConnection/test02.m: - * Tests/base/NSURLConnection/test03.m: - * Tests/base/NSURLConnection/test04.m: - * Tests/base/NSURLConnection/test05.m: - * Tests/base/NSURLConnection/test06.m: - * Tests/base/NSURLConnection/test07.m: - * Tests/base/NSURLSession/GNUmakefile.preamble: - * Tests/base/NSURLSession/TestInfo: - * Tests/base/NSURLSession/delegate.g: - * Tests/base/NSURLSession/gdbinit: - * Tests/base/NSURLSession/test01.m: - * Tests/base/NSURLSession/test02.m: - * base.make.in: - * config.mak.in: - * config/addlibrarypath.m4: - * configure: - * configure.ac: + * .travis.yml: + * Headers/Foundation/NSDebug.h: + * Headers/Foundation/NSURLCache.h: + * Headers/Foundation/NSURLError.h: + * Headers/Foundation/NSURLProtocol.h: + * Headers/Foundation/NSURLRequest.h: + * Headers/Foundation/NSURLSession.h: + * Headers/GNUstepBase/GSConfig.h.in: + * Headers/GNUstepBase/config.h.in: + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/Makefile.preamble: + * Source/GNUmakefile: + * Source/GSEasyHandle.h: + * Source/GSEasyHandle.m: + * Source/GSHTTPURLHandle.m: + * Source/GSHTTPURLProtocol.h: + * Source/GSHTTPURLProtocol.m: + * Source/GSMultiHandle.h: + * Source/GSMultiHandle.m: + * Source/GSNativeProtocol.h: + * Source/GSNativeProtocol.m: + * Source/GSTLS.m: + * Source/GSTaskRegistry.h: + * Source/GSTaskRegistry.m: + * Source/GSTimeoutSource.h: + * Source/GSTimeoutSource.m: + * Source/GSTransferState.h: + * Source/GSTransferState.m: + * Source/GSURLPrivate.h: + * Source/GSURLSessionTaskBody.h: + * Source/GSURLSessionTaskBody.m: + * Source/GSURLSessionTaskBodySource.h: + * Source/GSURLSessionTaskBodySource.m: + * Source/NSConcretePointerFunctions.m: + * Source/NSException.m: + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + * Source/NSURLCache.m: + * Source/NSURLConnection.m: + * Source/NSURLProtocol.m: + * Source/NSURLRequest.m: + * Source/NSURLResponse.m: + * Source/NSURLSession.m: + * Source/NSXPCConnection.m: + * Tests/base/NSURL/Helpers/keepalive.m: + * Tests/base/NSURL/test00.m: + * Tests/base/NSURLConnection/Helpers/NSURLConnectionTest.h: + * Tests/base/NSURLConnection/Helpers/NSURLConnectionTest.m: + * Tests/base/NSURLConnection/Helpers/TestCase.m: + * Tests/base/NSURLConnection/Helpers/TestWebServer.h: + * Tests/base/NSURLConnection/Helpers/TestWebServer.m: + * Tests/base/NSURLConnection/Helpers/testTestWebServer.m: + * Tests/base/NSURLConnection/test01.m: + * Tests/base/NSURLConnection/test02.m: + * Tests/base/NSURLConnection/test03.m: + * Tests/base/NSURLConnection/test04.m: + * Tests/base/NSURLConnection/test05.m: + * Tests/base/NSURLConnection/test06.m: + * Tests/base/NSURLConnection/test07.m: + * Tests/base/NSURLSession/GNUmakefile.preamble: + * Tests/base/NSURLSession/TestInfo: + * Tests/base/NSURLSession/delegate.g: + * Tests/base/NSURLSession/gdbinit: + * Tests/base/NSURLSession/test01.m: + * Tests/base/NSURLSession/test02.m: + * base.make.in: + * config.mak.in: + * config/addlibrarypath.m4: + * configure: + * configure.ac: Merge changes for NSURLSession from EngageHub (formerly Brainstorm). - NB. NSURLSession is the third generation URL management API in OSX, - but the previous two generations still exist and are good for much - web-based programming. The NSURLSession code has more deependencies - on recent versions of external libraries (libcurl, http/2 support, - libdispatch) as well as the latest objective-c runtime and the use - of blocks (only available when built using clang and the ng runtime). + NB. NSURLSession is the third generation URL management API in OSX, + but the previous two generations still exist and are good for much + web-based programming. The NSURLSession code has more deependencies + on recent versions of external libraries (libcurl, http/2 support, + libdispatch) as well as the latest objective-c runtime and the use + of blocks (only available when built using clang and the ng runtime). 2020-11-28 Richard Frith-Macdonald - * configure: - * configure.ac: + * configure: + * configure.ac: Remove obsolete checks for garbage collecting runtime - (no longer supported) + (no longer supported) 2020-11-22 Richard Frith-Macdonald - * Source/Additions/NSMutableString+GNUstepBase.m: - * Source/GSString.m: + * Source/Additions/NSMutableString+GNUstepBase.m: + * Source/GSString.m: Add optimisation for the use of GSImmutableString so that it - can make use of the layout of the underlying mutable string - that the GSImmutableString is a proxy for. + can make use of the layout of the underlying mutable string + that the GSImmutableString is a proxy for. 2020-11-22 Richard Frith-Macdonald - * Source/GSString.m: + * Source/GSString.m: Rewrite -replaceCharactersInRange:withString: to cope with the - case where the string argument is the receiver (or some proxy - to the receiver etc). + case where the string argument is the receiver (or some proxy + to the receiver etc). 2020-11-22 Richard Frith-Macdonald - * Source/Additions/NSMutableString+GNUstepBase.m: - Report YES for GSImmutableString being a proxy + * Source/Additions/NSMutableString+GNUstepBase.m: + Report YES for GSImmutableString being a proxy 2020-11-21 Richard Frith-Macdonald - * Source/GSString.m: + * Source/GSString.m: Fix for text storage objects setting their content to their - own immutable proxy. + own immutable proxy. 2020-11-20 Richard Frith-Macdonald - * Source/Additions/GSMime.m: + * Source/Additions/GSMime.m: Add casts to avoid compiler warnings 2020-11-19 Richard Frith-Macdonald - * Source/NSString.m: + * Source/NSString.m: Minor tidyup for clearer indentation 2020-11-19 Richard Frith-Macdonald - * Source/Additions/Unicode.m: + * Source/Additions/Unicode.m: Correct checks for validity of the second UTF16 value - in a surrogate pair + in a surrogate pair 2020-11-18 Richard Frith-Macdonald - * Headers/Foundation/NSFileHandle.h: + * Headers/Foundation/NSFileHandle.h: Declare NSURL before using it. 2020-11-18 Richard Frith-Macdonald - * Source/NSDictionary.m: + * Source/NSDictionary.m: Be defensive about checking for key beginning with @ 2020-11-17 Frederik Seiffert - * Headers/Foundation/NSFileHandle.h: - * MISSING: - * Source/NSFileHandle.m: + * Headers/Foundation/NSFileHandle.h: + * MISSING: + * Source/NSFileHandle.m: Add NSFileHandle URL initializers. Also use "instancetype" for all initializers. 2020-11-14 Richard Frith-Macdonald - * Headers/GNUstepBase/GSMime.h: - * Source/Additions/GSMime.m: + * Headers/GNUstepBase/GSMime.h: + * Source/Additions/GSMime.m: Add methods to control size of in-memory queue os emails 2020-11-13 Richard Frith-Macdonald - * Source/NSData.m: + * Source/NSData.m: Fix bug in offset 2020-06-11 Frederik Seiffert - * .travis.yml: + * .travis.yml: Output config.log if build fails on CI. 2020-11-13 Richard Frith-Macdonald - * Tests/base/NSOperation/threads.m: + * Tests/base/NSOperation/threads.m: Allow more time for operations thread to exit on slow machines 2020-11-12 Frederik Seiffert - * Source/GSICUString.h: + * Source/GSICUString.h: Fix compilation with ICU 68. 2020-11-12 Richard Frith-Macdonald - * Tools/plutil.m: + * Tools/plutil.m: Allow synonyms for help and print same message as OSX for - unrecognised options. + unrecognised options. 2020-11-12 Richard Frith-Macdonald - * Tools/plutil.m: + * Tools/plutil.m: Fix missing semicolon 2020-11-11 Richard Frith-Macdonald - * Source/GSString.m: + * Source/GSString.m: Avoid building unused functions when new string API is used. 2020-11-07 Richard Frith-Macdonald - * Tools/NSPropertyList+PLUtil.h: - * Tools/NSPropertyList+PLUtil.m: + * Tools/NSPropertyList+PLUtil.h: + * Tools/NSPropertyList+PLUtil.m: Trivial format fixes 2020-11-07 Richard Frith-Macdonald - * Tools/NSPropertyList+PLUtil.m: - * Tools/plutil.m: + * Tools/NSPropertyList+PLUtil.m: + * Tools/plutil.m: Fix a check for a null pointer and add various whitespace/indentation - tidyups. + tidyups. 2020-11-07 Mingye Wang - * Tools/plutil.1: - * Tools/plutil.m: + * Tools/plutil.1: + * Tools/plutil.m: plutil: Some documentation 2020-11-06 Richard Frith-Macdonald - * Tools/plutil.m: + * Tools/plutil.m: Fixups for format and compilation 2020-10-29 Richard Frith-Macdonald - * Source/NSNotificationCenter.m: + * Source/NSNotificationCenter.m: Improve logging of an exception when posting a notification so that, - if possible, we include the details of the notification being posted. + if possible, we include the details of the notification being posted. 2020-10-27 Gregory John Casamento - * Headers/Foundation/NSRunLoop.h: - * Source/NSRunLoop.m: + * Headers/Foundation/NSRunLoop.h: + * Source/NSRunLoop.m: fix for compilation error 2020-10-27 Gregory John Casamento - * Headers/Foundation/NSURLConnection.h: + * Headers/Foundation/NSURLConnection.h: Add guards for API version 2020-10-26 Gregory John Casamento - * Headers/Foundation/NSRunLoop.h: - * Headers/Foundation/NSURLConnection.h: - * Source/NSRunLoop.m: - * Source/NSURLConnection.m: + * Headers/Foundation/NSRunLoop.h: + * Headers/Foundation/NSURLConnection.h: + * Source/NSRunLoop.m: + * Source/NSURLConnection.m: Add methods for 10.5 2020-10-24 Richard Frith-Macdonald - * Source/NSDebug.m: + * Source/NSDebug.m: Fix use of potentially invalid value from heap 2020-10-13 Richard Frith-Macdonald - * Headers/GNUstepBase/GNUstep.h: + * Headers/GNUstepBase/GNUstep.h: Change the behavior of ENTER_POOL/LEAVE_POOL so that it no longer - wraps the enclosed section of code in a loop (this was causing - errors when people used the macros inside loops which contained - pre-existing break/continue/return statements). You should not break, - continue, or return from such a block of code (to do so could leak - an autorelease pool and give objects a longer lifetime than they - ought to have. If you wish to leave the block of code early, - you should ensure that doing so causes the autorelease pool outside - the block to be released promptly (since that will implicitly - release the pool created at the start of the block too). + wraps the enclosed section of code in a loop (this was causing + errors when people used the macros inside loops which contained + pre-existing break/continue/return statements). You should not break, + continue, or return from such a block of code (to do so could leak + an autorelease pool and give objects a longer lifetime than they + ought to have. If you wish to leave the block of code early, + you should ensure that doing so causes the autorelease pool outside + the block to be released promptly (since that will implicitly + release the pool created at the start of the block too). 2020-10-12 Adam Fox - * Headers/Foundation/NSData.h: - * Source/NSData.m: - * Tests/base/NSData/search.m: + * Headers/Foundation/NSData.h: + * Source/NSData.m: + * Tests/base/NSData/search.m: Implementation of [NSData rangeOfData:options:range], - adapted from [NSString rangeOfString:options:range]. + adapted from [NSString rangeOfString:options:range]. 2020-10-12 Richard Frith-Macdonald - * Tools/AGSHtml.m: + * Tools/AGSHtml.m: Remove break whose use depends on ENTER_POOL/LEAVE_POOL behavior 2020-10-11 Richard Frith-Macdonald - * Source/NSOperation.m: + * Source/NSOperation.m: Fix retain/release error 2020-10-03 Richard Frith-Macdonald - * Source/NSTask.m: + * Source/NSTask.m: Improve comments 2020-09-30 Richard Frith-Macdonald - * Source/NSOperation.m: + * Source/NSOperation.m: Remove unnecessary retain/release 2020-09-30 Richard Frith-Macdonald - * Source/NSOperation.m: + * Source/NSOperation.m: Added autorelease pool around each operation to catch any - autoreleased objects produced by the operation being executed. - This should prevent objects living until the end of the thread. + autoreleased objects produced by the operation being executed. + This should prevent objects living until the end of the thread. 2020-09-30 Richard Frith-Macdonald - * Source/NSInvocationOperation.m: + * Source/NSInvocationOperation.m: Tidied indentation in code 2020-09-30 Richard Frith-Macdonald - * Headers/Foundation/NSOperation.h: + * Headers/Foundation/NSOperation.h: whitespace tidyups 2020-09-23 Mingye Wang : - * Tools/NSPropertyList+PLUtil.m: - * Tools/plutil.m: + * Tools/NSPropertyList+PLUtil.m: + * Tools/plutil.m: plutil: Add plutil utility. 2020-09-23 Richard Frith-Macdonald - * Tests/base/NSDictionary/general.m: + * Tests/base/NSDictionary/general.m: Add test for array as key 2020-09-21 Richard Frith-Macdonald - * Source/NSFileManager.m: + * Source/NSFileManager.m: Tidied some whitespace/indentation and removed obsolete comment 2020-09-18 Riccardo Mottola - * .travis.yml: + * .travis.yml: fix typo 2020-09-17 Riccardo Mottola - * Source/NSObject.m: + * Source/NSObject.m: Windows linker doesn't really support WEAK symbols, not even - with gcc10. binutils 2.3.5 fails to link because not all - symbols were exported + with gcc10. binutils 2.3.5 fails to link because not all + symbols were exported 2020-09-17 Riccardo Mottola - * .travis.yml: + * .travis.yml: Use new option to disable unwind options in Travis build, - patch by Frederik Seiffert + patch by Frederik Seiffert 2020-09-08 Richard Frith-Macdonald - * Source/Additions/GSInsensitiveDictionary.m: - * Source/GSDictionary.m: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/GSDictionary.m: Implement fast enumeration for insensitive dictionary 2020-09-05 Fred Kiefer - * Source/NSPersonNameComponentsFormatter.m: + * Source/NSPersonNameComponentsFormatter.m: Add missing break 2020-08-23 Richard Frith-Macdonald - * Tools/gdomap.c: + * Tools/gdomap.c: Avoid coverity warning by using memmove rather than strcpy 2020-08-23 Richard Frith-Macdonald - * Source/Additions/NSData+GNUstepBase.m: - * Source/Additions/GSXML.m: + * Source/Additions/NSData+GNUstepBase.m: + * Source/Additions/GSXML.m: Avoid coverity warning 2020-08-30 Fred Kiefer @@ -3053,564 +3069,562 @@ 2020-08-08 Richard Frith-Macdonald - * Source/Additions/GSMime.m: + * Source/Additions/GSMime.m: Improve -contentFile to check the content-type header - before content-disposition + before content-disposition 2020-08-03 Frederik Seiffert - * Headers/Foundation/NSURL.h: - * MISSING: - * Source/NSURL.m: + * Headers/Foundation/NSURL.h: + * MISSING: + * Source/NSURL.m: Add NSURL methods: 2020-08-02 Gregory John Casamento - * Headers/Foundation/NSNotification.h: + * Headers/Foundation/NSNotification.h: Add NSNotificationName typedef 2020-08-02 Gregory John Casamento - * Headers/Foundation/NSAttributedString.h: + * Headers/Foundation/NSAttributedString.h: Add NSAttributedStringKey typedef 2020-07-31 Richard Frith-Macdonald - * Source/NSFileManager.m: + * Source/NSFileManager.m: Fix calls to utimensat() which were passing the wrong value - for the first argument, which needs to be the file descriptor - of the directory containing the file, or AT_FDCWD to use the - current directory. + for the first argument, which needs to be the file descriptor + of the directory containing the file, or AT_FDCWD to use the + current directory. 2020-07-31 Richard Frith-Macdonald - * Source/NSFileManager.m: + * Source/NSFileManager.m: Set dates on copy ... it turns our OSX does not behave like Posix 2020-07-31 Richard Frith-Macdonald - * Tests/base/NSFileManager/general.m: + * Tests/base/NSFileManager/general.m: Add checks for rewriting a file 2020-07-31 Richard Frith-Macdonald Add check for timestamp behavior when writing via NSData method - * Tests/base/NSFileManager/general.m: + * Tests/base/NSFileManager/general.m: 2020-07-31 Richard Frith-Macdonald - * Tests/base/NSFileManager/general.m: + * Tests/base/NSFileManager/general.m: Add delay to be clear file date is in past before we copy it 2020-07-30 Richard Frith-Macdonald - * Tests/base/NSFileManager/general.m: + * Tests/base/NSFileManager/general.m: OSX, unlike Posix, sets the modification and creation dates of - a copy to be the same as the original (within floating point limits). + a copy to be the same as the original (within floating point limits). 2020-07-29 Richard Frith-Macdonald - * Tests/base/NSFileManager/general.m: + * Tests/base/NSFileManager/general.m: Add test that creation/modification dates of copy differ from original 2020-07-28 Riccardo Mottola - * Headers/GNUstepBase/config.h.in: - * Source/NSException.m: - * configure: - * configure.ac: + * Headers/GNUstepBase/config.h.in: + * Source/NSException.m: + * configure: + * configure.ac: Explicitely allow disabling unwind, test for header and function too 2020-07-13 Frederik Seiffert - * Headers/Foundation/NSURLRequest.h: - * Source/NSURLRequest.m: + * Headers/Foundation/NSURLRequest.h: + * Source/NSURLRequest.m: Update NSURLRequest header to use "instancetype". 2020-07-09 Richard Frith-Macdonald - * Source/NSObject.m: + * Source/NSObject.m: Move deallocation of zombie map outside lock protected section - so that any exception while deallocating will not cause - unbalanced lock/unlock + so that any exception while deallocating will not cause + unbalanced lock/unlock 2020-07-09 Richard Frith-Macdonald - * Source/NSFileManager.m: + * Source/NSFileManager.m: When copying objects we should not be attempting to set the - creation/modification date of the copy to that of the original. + creation/modification date of the copy to that of the original. 2020-07-09 Richard Frith-Macdonald - * Source/NSLog.m: + * Source/NSLog.m: Add casts to prevent compiler warnings, and comment to explain - the new change for android where there is no thread ID available - from the operating system. + the new change for android where there is no thread ID available + from the operating system. 2020-07-08 Frederik Seiffert - * Source/NSLog.m: - Don't log current thread if its identical to private thread ID. + * Source/NSLog.m: + Don't log current thread if its identical to private thread ID. This makes the log more succinct when GSLogThread is enabled and the system doesn't provide an OS-level thread ID (i.e. GSPrivateThreadID() returns GSCurrentThread()), which would previously cause the NSThread pointer to be logged twice. - 2020-07-08 Frederik Seiffert - * Source/NSLog.m: - * Source/NSProcessInfo.m: - Improve NSLog output on Android. + * Source/NSLog.m: + * Source/NSProcessInfo.m: + Improve NSLog output on Android. We now always set -GSLogSyslog, as stdout/stderr is not available on Android. Also fixes log output containing extraneous date/time. - 2020-07-07 Richard Frith-Macdonald - * Source/NSData.m: + * Source/NSData.m: We only need to set the ownership of a newly created file on - unix-like systems where the effective user ID may be different - from the real user ID. + unix-like systems where the effective user ID may be different + from the real user ID. 2020-07-06 Frederik Seiffert - * Source/NSThread.m: + * Source/NSThread.m: Fix possible deadlock when becoming multi-threaded. 2020-06-27 Richard Frith-Macdonald - * Source/NSString.m: + * Source/NSString.m: Replace temporary hack with a rewrite of whitespace checking to - use our own characterset data (derived from unicode data) on - which characters are counted as whitespace for the purpose of - capitalising strings. + use our own characterset data (derived from unicode data) on + which characters are counted as whitespace for the purpose of + capitalising strings. 2020-06-25 Richard Frith-Macdonald - * Source/NSData.m: + * Source/NSData.m: When overwriting a file, do not attempt to set creation date. - When creating a file, try to use the real uid when effective uid - is that of root. + When creating a file, try to use the real uid when effective uid + is that of root. 2020-06-24 Richard Frith-Macdonald - * Source/NSString.m: + * Source/NSString.m: Simple fix to check for whitespace characters using strchr since - the old mechanism using characterset bitmap representations was - broken by the change to reduce waste in bitmaps (the code assumed - the bitmap was bigger than it really is). + the old mechanism using characterset bitmap representations was + broken by the change to reduce waste in bitmaps (the code assumed + the bitmap was bigger than it really is). 2020-06-24 Richard Frith-Macdonald - * Tests/base/NSString/NSString_tests.h: + * Tests/base/NSString/NSString_tests.h: Add a few tests for capitalisation 2020-06-23 Richard Frith-Macdonald - * Source/GSString.m: - * Source/NSString.m: + * Source/GSString.m: + * Source/NSString.m: Check for nil arugment to -isEqualToString: 2020-06-23 Richard Frith-Macdonald - * Tests/base/NSString/basic.m: + * Tests/base/NSString/basic.m: an empty string is not equal to nil 2020-06-19 Riccardo Mottola - * Source/inet_ntop.m: - * Source/inet_pton.m: + * Source/inet_ntop.m: + * Source/inet_pton.m: define WSAAPI to empty if it is undefined, just for safety 2020-06-15 Riccardo Mottola - * Source/GSSocketStream.m: - * Source/NSHost.m: - * Source/inet_ntop.m: - * Source/inet_pton.m: + * Source/GSSocketStream.m: + * Source/NSHost.m: + * Source/inet_ntop.m: + * Source/inet_pton.m: specify WSAAPI as return type too, needed for MSYS2-32bit 2020-06-12 Richard Frith-Macdonald - * Tests/base/GSTLS/basic.m: + * Tests/base/GSTLS/basic.m: Fix by Yavor Doganiv ... disable certificate expiry test except - on 64bit systems, because old 32bit systems can't cope with the - test certificate end date. + on 64bit systems, because old 32bit systems can't cope with the + test certificate end date. 2020-06-11 Frederik Seiffert - * Source/NSValueTransformer.m: + * Source/NSValueTransformer.m: Fix recursive creation of value transformers. 2020-06-11 Frederik Seiffert - * Tests/base/NSValueTransformer/TestInfo: - * Tests/base/NSValueTransformer/basic.m: + * Tests/base/NSValueTransformer/TestInfo: + * Tests/base/NSValueTransformer/basic.m: Add tests for NSValueTransformer. 2020-06-10 Frederik Seiffert - * Source/NSBundle.m: + * Source/NSBundle.m: Fix Android assets support for bundle directories 2020-06-09 Riccardo Mottola - * Headers/GNUstepBase/config.h.in: - * Source/GSSocketStream.m: - * Source/NSHost.m: - * configure: - * configure.ac: + * Headers/GNUstepBase/config.h.in: + * Source/GSSocketStream.m: + * Source/NSHost.m: + * configure: + * configure.ac: Explicitely test for ws2tcpip.h header, fix library detection - on windows for inet_ntop with corrent library, guard includes - and definitions with configure results, cleanup header inclusion + on windows for inet_ntop with corrent library, guard includes + and definitions with configure results, cleanup header inclusion 2020-06-09 Riccardo Mottola - * Tools/gdomap.c: + * Tools/gdomap.c: Minor type cast to fix output for platforms where socket is unsigned 2020-06-09 Richard Frith-Macdonald - * Source/NSData.m: + * Source/NSData.m: Do not attempt to alter creation date of newly created file. 2020-06-03 Frederik Seiffert - * configure: - * configure.ac: + * configure: + * configure.ac: Fix finding libiconv via cross.config. 2020-06-05 Richard Frith-Macdonald - * Source/NSOperation.m: + * Source/NSOperation.m: Fix leak of new operation in -blockOperationWithBlock: method. - Make -addExecutionBlock: ensure it works with an on-heap copy - of its argument. Tidy code to have NSBlockOperation methods - with normal formatting and alphabetical order. Tidy code to - use standard macros for memory management. + Make -addExecutionBlock: ensure it works with an on-heap copy + of its argument. Tidy code to have NSBlockOperation methods + with normal formatting and alphabetical order. Tidy code to + use standard macros for memory management. 2020-06-05 Riccardo Mottola - * Headers/GNUstepBase/GSConfig.h.in: + * Headers/GNUstepBase/GSConfig.h.in: MSYS and MSYS2 differ in the tricks to include both windows.h - and winsock2.h, use __MINGW32_VERSION to differentiate them + and winsock2.h, use __MINGW32_VERSION to differentiate them 2020-06-05 Riccardo Mottola - * Source/win32/GSFileHandle.m: + * Source/win32/GSFileHandle.m: Remove unneeded window headers include, since common.h will - include GSConfig.h + include GSConfig.h 2020-06-05 Frederik Seiffert - * Source/NSConcreteMapTable.m: + * Source/NSConcreteMapTable.m: Fix replacing an existing value in a weak objects map table. 2020-06-05 Frederik Seiffert - * Tests/base/NSMapTable/weakObjects.m: + * Tests/base/NSMapTable/weakObjects.m: Test replacing a weak value in NSMapTable. 2020-06-03 Richard Frith-Macdonald - * Source/NSUserDefaults.m: + * Source/NSUserDefaults.m: Change -objectForKey: method to get the contents into a buffer (on - the stack) and iterate through them rather than creating an - autoreleased enumerator. - This avoids allocation/autorelease/deallocation of the enumerator - (as well as retain/release of the search list by the enumerator) - which should give better performance generally and avoid excess - object creation when lots of defaults lookups are done in an - autorelease pool. + the stack) and iterate through them rather than creating an + autoreleased enumerator. + This avoids allocation/autorelease/deallocation of the enumerator + (as well as retain/release of the search list by the enumerator) + which should give better performance generally and avoid excess + object creation when lots of defaults lookups are done in an + autorelease pool. 2020-05-29 Richard Frith-Macdonald - * Source/NSThread.m: + * Source/NSThread.m: Wrap code for posting of notifications (for becoming multithreaded - and for a thread being about to exit) in an autorelease pool. - This should avoid possible leakage of objects and warnings during - the notification process. + and for a thread being about to exit) in an autorelease pool. + This should avoid possible leakage of objects and warnings during + the notification process. 2020-05-29 Richard Frith-Macdonald - * Tests/base/NSThread/late_unregister.m: + * Tests/base/NSThread/late_unregister.m: tidy whitespace 2020-05-23 Frederik Seiffert - * ChangeLog: - * Headers/GNUstepBase/GSConfig.h.in: - * Source/GSNetwork.h: - * Source/win32/GSFileHandle.m: - * config/config.reuseaddr.c: + * ChangeLog: + * Headers/GNUstepBase/GSConfig.h.in: + * Source/GSNetwork.h: + * Source/win32/GSFileHandle.m: + * config/config.reuseaddr.c: Include winsock2.h before windows.h, as required by MSYS2/MinGW-w64. 2020-05-23 Frederik Seiffert - * Headers/Foundation/NSException.h: + * Headers/Foundation/NSException.h: Fix warning "setjmp" redefined on Windows. 2020-05-15 Frederik Seiffert - * .travis.yml: - * travis-deps.sh: + * .travis.yml: + * travis-deps.sh: Set up CI for Windows using MSYS2/MinGW-w64 and GCC. 2020-05-27 Frederik Seiffert - * Headers/Foundation/NSFilePresenter.h: + * Headers/Foundation/NSFilePresenter.h: Fix optional NSFilePresenter methods not being declared as optional. 2020-05-26 Richard Frith-Macdonald - * Source/NSThread.m: + * Source/NSThread.m: On thread exit we must post the notification that it *will* exit - before setting the instance variable to say that it has finished. - This is tested as the order OSX does it, and makes sense to ensure - that, when -isFinished returns YES we can be sure the thread will - not do anything else. + before setting the instance variable to say that it has finished. + This is tested as the order OSX does it, and makes sense to ensure + that, when -isFinished returns YES we can be sure the thread will + not do anything else. 2020-05-26 Richard Frith-Macdonald - * Tests/base/NSThread/late_unregister.m: + * Tests/base/NSThread/late_unregister.m: Add tests for exactly when notification of thread exit occurs 2020-05-26 Frederik Seiffert - * Tests/base/NSUserDefaults/general.m: + * Tests/base/NSUserDefaults/general.m: Extended general tests for NSUserDefaults. 2020-05-26 Richard Frith-Macdonald - * Source/NSPortCoder.m: - * Source/NSUnarchiver.m: + * Source/NSPortCoder.m: + * Source/NSUnarchiver.m: Remove excess whitespace and copy trick to NSPortCoder 2020-05-25 Riccardo Mottola - * Source/NSUnarchiver.m: + * Source/NSUnarchiver.m: Rewrite lower negative bounds to avoid integer constants underflow - of literals + of literals 2020-05-25 Frederik Seiffert - * Source/NSUserDefaults.m: + * Source/NSUserDefaults.m: Store NSNumber instead of NSString for NSUserDefaults -setBool:forKey:. 2020-05-19 Frederik Seiffert - * Source/NSBundle.m: - * Source/NSFileManager.m: + * Source/NSBundle.m: + * Source/NSFileManager.m: Android assets improvements to support directories 2020-05-15 Gregory John Casamento - * Headers/Foundation/NSKeyedArchiver.h: - * Source/NSKeyedUnarchiver.m: + * Headers/Foundation/NSKeyedArchiver.h: + * Source/NSKeyedUnarchiver.m: Add set/get for requiresSecureCoding 2020-05-14 Frederik Seiffert - * Headers/Foundation/NSException.h: + * Headers/Foundation/NSException.h: Fix BASE_NATIVE_OBJC_EXCEPTIONS check with OBJC_ZEROCOST_EXCEPTIONS. 2020-05-13 Frederik Seiffert - * Source/win32/GSFileHandle.m: - * Source/win32/NSMessagePort.m: + * Source/win32/GSFileHandle.m: + * Source/win32/NSMessagePort.m: Fix building Win32 classes with nonfragile ABI. 2020-05-13 Gregory John Casamento - * Headers/Foundation/NSKeyedArchiver.h: - * Source/NSKeyedArchiver.m: + * Headers/Foundation/NSKeyedArchiver.h: + * Source/NSKeyedArchiver.m: Add set/get method for requiresSecureCoding 2020-05-12 Gregory John Casamento - * Headers/Foundation/NSKeyedArchiver.h: - * Source/NSKeyedArchiver.m: + * Headers/Foundation/NSKeyedArchiver.h: + * Source/NSKeyedArchiver.m: Fix fred's suggestions. Put guard and make more general method - the one which is called. + the one which is called. 2020-05-12 Richard Frith-Macdonald - * Source/NSCalendar.m: + * Source/NSCalendar.m: Casts to fix systems where the UCalendarDateFields enumeration - is unsigned. + is unsigned. 2020-05-11 Gregory John Casamento - * Source/NSKeyedArchiver.m: + * Source/NSKeyedArchiver.m: Send error back 2020-05-11 niwatako <1546218+niwatako@users.noreply.github.com> - * Source/NSJSONSerialization.m: + * Source/NSJSONSerialization.m: Fix exponent validation 2020-05-10 Fred Kiefer - * Source/NSISO8601DateFormatter.m: - * Source/NSOrthography.m: + * Source/NSISO8601DateFormatter.m: + * Source/NSOrthography.m: Clean up some compiler warnings. 2020-05-09 Fred Kiefer - * Tests/base/NSLocale/general.m: + * Tests/base/NSLocale/general.m: Mark more tests that depend on locale setting as hopes. - * Tests/base/NSURL/basic.m: Use PASS_EQUAL in the downlaod test - to get the actual http status reported. - * Tests/base/NSXMLParser/parse.m: Mark stream test as hopeful - as this isn't implemented at the moment. + * Tests/base/NSURL/basic.m: Use PASS_EQUAL in the downlaod test + to get the actual http status reported. + * Tests/base/NSXMLParser/parse.m: Mark stream test as hopeful + as this isn't implemented at the moment. 2020-05-08 Fred Kiefer * Source/NSXMLParser.m: Fix small bug in last commit that broke - all gui applications when there was a commented out section in - the user default XML file. + all gui applications when there was a commented out section in + the user default XML file. 2020-05-08 Richard Frith-Macdonald - * Source/NSXMLParser.m: + * Source/NSXMLParser.m: Use RELEASE macro for memory management 2020-05-08 Richard Frith-Macdonald - * Source/NSXMLParser.m: + * Source/NSXMLParser.m: Convert to using indexes into a buffer 2020-05-07 Frederik Seiffert - * Headers/Foundation/NSLocale.h: - * Source/NSLocale.m: + * Headers/Foundation/NSLocale.h: + * Source/NSLocale.m: NSLocale improvements 2020-05-06 Richard Frith-Macdonald - * Source/NSXMLParser.m: + * Source/NSXMLParser.m: Reorganise to make the separation of the two parsers clearer. - NSXMLParser is the sloppy parser and can be selected using the - dummy subclass GSSloppyXMLParser while, if we have libxml2, - we can specifically select the strict parser using the - GSStrictXMLParser class. + NSXMLParser is the sloppy parser and can be selected using the + dummy subclass GSSloppyXMLParser while, if we have libxml2, + we can specifically select the strict parser using the + GSStrictXMLParser class. 2020-05-06 Richard Frith-Macdonald - * Tests/base/NSXMLParser/basic.m: - * Tests/base/NSXMLParser/parse.m: + * Tests/base/NSXMLParser/basic.m: + * Tests/base/NSXMLParser/parse.m: Update testcases to cover both parsers 2020-05-05 Frederik Seiffert - * Headers/Foundation/NSXMLParser.h: - * Headers/GNUstepBase/GSXML.h: - * MISSING: - * Source/Additions/GSXML.m: - * Source/NSXMLParser.m: - * Tests/base/NSXMLParser/parse.m: + * Headers/Foundation/NSXMLParser.h: + * Headers/GNUstepBase/GSXML.h: + * MISSING: + * Source/Additions/GSXML.m: + * Source/NSXMLParser.m: + * Tests/base/NSXMLParser/parse.m: Implement -[NSXMLParser initWithStream:]. 2020-05-05 Frederik Seiffert - * Source/unix/NSStream.m: + * Source/unix/NSStream.m: Add NSInputStream support for reading Android assets from main bundle. 2020-05-05 Richard Frith-Macdonald - * Source/NSCharacterSet.m: - * Tests/base/NSCharacterSet/general.m: + * Source/NSCharacterSet.m: + * Tests/base/NSCharacterSet/general.m: Fix -[NSCharacterSet invertedSet] to work by calling -invert - on a mutable copy + on a mutable copy 2020-05-04 Riccardo Mottola - * Source/NSFileManager.m: + * Source/NSFileManager.m: In changeFileAttributes implement setting of creation date also - for Unix, which needs to be done before setting the modification date. - Also, implement reading the creation (birth time) date if a supported - method was detected. + for Unix, which needs to be done before setting the modification date. + Also, implement reading the creation (birth time) date if a supported + method was detected. 2020-05-04 alotorev - * Source/NSURL.m: - * Tests/base/NSURL/basic.m: + * Source/NSURL.m: + * Tests/base/NSURL/basic.m: Improvements suggested by Fred Kiefer for the current pull request 2020-05-04 alotorev - * Source/NSURL.m: + * Source/NSURL.m: OSX like behaviour for NSURLQueryItem initialisers - Fixed bugs leading to leaks, no autorelease in NSURLComponents - factory methods. + Fixed bugs leading to leaks, no autorelease in NSURLComponents + factory methods. 2020-05-04 alotorev - * Source/NSURL.m: + * Source/NSURL.m: Fixed initialization NSURLComponents with NSURL, should treat - a query from NSURL as a percent-encoded string. + a query from NSURL as a percent-encoded string. 2020-05-04 alotorev - * Tests/base/NSURL/basic.m: - * Tests/base/NSURL/components.m: + * Tests/base/NSURL/basic.m: + * Tests/base/NSURL/components.m: Added tests to highlight some problems of the current - implementation of NSURLQueryItems and NSURLComponent. - The tests passed on OSX. + implementation of NSURLQueryItems and NSURLComponent. + The tests passed on OSX. 2020-05-01 niwatako <1546218+niwatako@users.noreply.github.com> - * Source/NSJSONSerialization.m: + * Source/NSJSONSerialization.m: Fix loss of buffer in NSJSONSerialization. 2020-05-01 Riccardo Mottola - * Source/NSFileManager.m: + * Source/NSFileManager.m: fix log info 2020-05-01 Riccardo Mottola - * ChangeLog: - * Headers/GNUstepBase/config.h.in: - * Source/NSFileManager.m: - * configure: - * configure.ac: + * ChangeLog: + * Headers/GNUstepBase/config.h.in: + * Source/NSFileManager.m: + * configure: + * configure.ac: Use utimensat() to set file modification date, if available. 2020-04-30 Artem Lotorev - * .gitignore: - * Tests/GNUmakefile: + * .gitignore: + * Tests/GNUmakefile: Added param to run a test on a separate object or test file. - Added .DS_Store to .gitignore + Added .DS_Store to .gitignore 2020-04-28 Artem Lotorev - * Tests/base/NSString/test09.m: + * Tests/base/NSString/test09.m: Fixed build issue due to wrong argument in the macro 2020-04-28 Artem Lotorev - * Tests/base/NSString/test09.m: + * Tests/base/NSString/test09.m: Added helper method for percent decoding/encoding tests 2020-04-27 Richard Frith-Macdonald - * Source/NSString.m: + * Source/NSString.m: Fixup -stringByAddingPercentEncodingWithAllowedCharacters: - to ignore membership of the supplied set if the character - is not in the ASCII range. + to ignore membership of the supplied set if the character + is not in the ASCII range. 2020-04-27 Artem Lotorev - * Tests/base/NSString/test09.m: + * Tests/base/NSString/test09.m: Added test for [NSString stringByRemovingPercentEncoding], - updated percent-encoding tests with PASS_EQUAL + updated percent-encoding tests with PASS_EQUAL 2020-04-27 Richard Frith-Macdonald - * Source/NSString.m: + * Source/NSString.m: Fix typo spotted by 'alotrev' 2020-04-26 Fred Kiefer @@ -3625,93 +3639,93 @@ 2020-04-25 Fred Kiefer - * Headers/Foundation/NSCalendar.h: - * Source/NSCalendar.m: + * Headers/Foundation/NSCalendar.h: + * Source/NSCalendar.m: Add missing NSDateComponents methods. 2020-04-24 Gregory John Casamento - * Headers/Foundation/NSKeyedArchiver.h: - * Source/NSKeyedArchiver.m: + * Headers/Foundation/NSKeyedArchiver.h: + * Source/NSKeyedArchiver.m: Start implementing some secure coding methods. 2020-04-21 Richard Frith-Macdonald - * Source/NSNotification.m: - * Tests/base/NSNotification/basic.m: + * Source/NSNotification.m: + * Tests/base/NSNotification/basic.m: Override -hash and -isEqual: so that notifications with the same name, - object, and userInfo are considered equal. This is the OSX behavior. + object, and userInfo are considered equal. This is the OSX behavior. Add tests for notification equality 2020-04-16 Richard Frith-Macdonald - * Source/NSURLResponse.m: + * Source/NSURLResponse.m: Fix for NSURLResponse does not allow for multiple Set-Cookie - headers in the same response #85 ... combine multiple header - values as a comma separated list. + headers in the same response #85 ... combine multiple header + values as a comma separated list. 2020-04-16 Richard Frith-Macdonald - * Source/NSOperation.m: + * Source/NSOperation.m: Fix for Deadlock in NSOperationQueue #49: - If an exception occurs when trying to detach thread, - catch it and log it so that locking is not broken by - the exception breaking out of the lock protected region. + If an exception occurs when trying to detach thread, + catch it and log it so that locking is not broken by + the exception breaking out of the lock protected region. 2020-04-16 Richard Frith-Macdonald - * Source/NSHTTPCookie.m: - * Tests/base/NSHTTPCookie/basic.m: + * Source/NSHTTPCookie.m: + * Tests/base/NSHTTPCookie/basic.m: Add testcase for multiple cookies in a header. - Fix error parsing a literal string (writing nul terminator - to read only memory) + Fix error parsing a literal string (writing nul terminator + to read only memory) 2020-04-16 Richard Frith-Macdonald - * Source/NSHTTPCookie.m: + * Source/NSHTTPCookie.m: Rewrite code for separating individual cookies from a - comma separated header so it better matches what OSX does - (and is hopefully a bit simpler). + comma separated header so it better matches what OSX does + (and is hopefully a bit simpler). 2020-04-16 Richard Frith-Macdonald - * configure: - * configure.ac: + * configure: + * configure.ac: Fix use of OBJC_RUNTIME_LIB before it was initialised. - Thanks to johannes@brakensiek.info for spotting this. + Thanks to johannes@brakensiek.info for spotting this. 2020-04-15 Richard Frith-Macdonald - * Source/Additions/GSInsensitiveDictionary.m: - * Source/Additions/GSXML.m: - * Source/Additions/NSProcessInfo+GNUstepBase.m: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/Additions/GSXML.m: + * Source/Additions/NSProcessInfo+GNUstepBase.m: Add casts to avoid compiler warnings about types of method 2020-04-15 Richard Frith-Macdonald - * Source/Additions/GSInsensitiveDictionary.m: - * Source/Additions/GSMime.m: - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/GSXML.m: - * Source/Additions/NSArray+GNUstepBase.m: - * Source/Additions/NSObject+GNUstepBase.m: - * Source/Additions/NSProcessInfo+GNUstepBase.m: - * Source/Additions/NSPropertyList+GNUstepBase.m: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/Additions/GSMime.m: + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/GSXML.m: + * Source/Additions/NSArray+GNUstepBase.m: + * Source/Additions/NSObject+GNUstepBase.m: + * Source/Additions/NSProcessInfo+GNUstepBase.m: + * Source/Additions/NSPropertyList+GNUstepBase.m: Fully type method implementation pointers to improve compile time - type checking. + type checking. 2020-04-14 Richard Frith-Macdonald - * Source/Additions/NSObject+GNUstepBase.m: + * Source/Additions/NSObject+GNUstepBase.m: When building outside GNUstep (additions for apple), include the - runtime declarations and fix error in casting self. + runtime declarations and fix error in casting self. 2020-04-14 Richard Frith-Macdonald - * Headers/GNUstepBase/GSConfig.h.in: - * Headers/GNUstepBase/GSVersionMacros.h: - * configure: - * configure.ac: + * Headers/GNUstepBase/GSConfig.h.in: + * Headers/GNUstepBase/GSVersionMacros.h: + * configure: + * configure.ac: Remove last vestiges of MIXED ABI support (it didn't really work), and change code to assume that use of the apple runtime means we have the nonfragile ABI (true for modern apple systems we may be interested in @@ -3719,981 +3733,979 @@ 2020-04-14 Richard Frith-Macdonald - * Source/NSURLProtocol.m: + * Source/NSURLProtocol.m: Fix line somehow missed from last commit 2020-04-13 Ivan Vučica - * ANNOUNCE: - * Documentation/announce.texi: + * ANNOUNCE: + * Documentation/announce.texi: Normalize the accompanying text for the release announcement across core packages: standardize chapter name and GPG information. 2020-04-13 Richard Frith-Macdonald - * Source/NSURL.m: + * Source/NSURL.m: Remove custom code for percent escaping and replace it with - standard code using custom charactersets. + standard code using custom charactersets. 2020-04-13 Richard Frith-Macdonald - * Tests/base/NSURL/charsets.m: + * Tests/base/NSURL/charsets.m: test the URL component character sets 2020-04-13 Richard Frith-Macdonald - * Headers/Foundation/NSURLProtocol.h: - * Source/NSURLProtocol.m: + * Headers/Foundation/NSURLProtocol.h: + * Source/NSURLProtocol.m: Fix [NSURLProtocol -initWithRequest:cachedResponse:client:] to retain the client (up until the last message is sent to it) as OSX does. 2020-04-12 Richard Frith-Macdonald - * CharSets/URLFragmentAllowedCharSet.h: - * CharSets/URLHostAllowedCharSet.h: - * CharSets/URLPasswordAllowedCharSet.h: - * CharSets/URLPathAllowedCharSet.h: - * CharSets/URLQueryAllowedCharSet.h: - * CharSets/URLUserAllowedCharSet.h: - Removed character set data headers from non-standard location. - * NSCharacterSet.m: - Fixed to load URL characterset data from standard file. - Changed bitmap representation to use much less space for charsets - residing wholly in the base plane (in particular the URL charsets - which are purely ASCII characters). - * NSCharacterSetData.h: - Regenerated to contain the URL charactersets and to contain the - latest Unicode data (3rd Oct 2019). - + * CharSets/URLFragmentAllowedCharSet.h: + * CharSets/URLHostAllowedCharSet.h: + * CharSets/URLPasswordAllowedCharSet.h: + * CharSets/URLPathAllowedCharSet.h: + * CharSets/URLQueryAllowedCharSet.h: + * CharSets/URLUserAllowedCharSet.h: + Removed character set data headers from non-standard location. + * NSCharacterSet.m: + Fixed to load URL characterset data from standard file. + Changed bitmap representation to use much less space for charsets + residing wholly in the base plane (in particular the URL charsets + which are purely ASCII characters). + * NSCharacterSetData.h: + Regenerated to contain the URL charactersets and to contain the + latest Unicode data (3rd Oct 2019). 2020-04-10 Richard Frith-Macdonald - * Tests/base/NSURL/basic.m: + * Tests/base/NSURL/basic.m: Use PASS_EQUAL for better diagnostics 2020-04-10 Richard Frith-Macdonald - * Headers/GNUstepBase/GNUstep.h: + * Headers/GNUstepBase/GNUstep.h: Add ASSIGNMUTABLECOPY() macro for consistency with ASSIGNCOPY() Wolfgang pointed out that the lack of this macro was uninutitive. - 2020-04-09 Riccardo Mottola - * Source/NSFileManager.m: + * Source/NSFileManager.m: Implement read and set of File Creation Date attribute on Windows. 2020-04-09 Riccardo Mottola - * Headers/GNUstepBase/config.h.in: - * configure: - * configure.ac: + * Headers/GNUstepBase/config.h.in: + * configure: + * configure.ac: Add tests for non-POSIX lstat() struct members 2020-04-07 Frederik Seiffert - * Source/NSOperation.m: Fix completion block memory management. + * Source/NSOperation.m: Fix completion block memory management. 2020-04-05 Ivan Vucica - * ANNOUNCE: - * NEWS: - * Documentation/ReleaseNotes.gsdoc: - * Documentation/news.texi: - Update release notes for 1.27.0. + * ANNOUNCE: + * NEWS: + * Documentation/ReleaseNotes.gsdoc: + * Documentation/news.texi: + Update release notes for 1.27.0. 2020-03-29 Frederik Seiffert - * Source/NSThread.m: Use pthread_setname_np result instead of errno, - which fixes setting thread name on platforms where errno is not set. + * Source/NSThread.m: Use pthread_setname_np result instead of errno, + which fixes setting thread name on platforms where errno is not set. 2020-03-29 Frederik Seiffert - * Source/NSURLResponse.m: Fix parsing of NSURLResponse content type - header. + * Source/NSURLResponse.m: Fix parsing of NSURLResponse content type + header. 2020-03-29 Fred Kiefer - * Source/NSString.m: Attempt to make calls to GSICUCollatorOpen() - more consistent and correct for ICU 65. + * Source/NSString.m: Attempt to make calls to GSICUCollatorOpen() + more consistent and correct for ICU 65. 2020-03-26 Frederik Seiffert - * Headers/Foundation/NSError.h: - * Source/NSError.m: Added NSErrorDomain typedef. + * Headers/Foundation/NSError.h: + * Source/NSError.m: Added NSErrorDomain typedef. 2020-03-12 Fred Kiefer - * Source/NSURL.m: Fix compiler warnings. - * Headers/Foundation/NSLocale.h: - * Source/NSLocale.m: Add a few convenience methods from MacOS 10.12. + * Source/NSURL.m: Fix compiler warnings. + * Headers/Foundation/NSLocale.h: + * Source/NSLocale.m: Add a few convenience methods from MacOS 10.12. 2020-03-10 Frederik Seiffert - * Source/NSURL.m: fix –[NSURLComponents setURL:] throwing - exception for URLs that don't have all parts. + * Source/NSURL.m: fix –[NSURLComponents setURL:] throwing + exception for URLs that don't have all parts. 2020-03-01 Fred Kiefer - * Tests/base/NSBundle/TestInfo, - * Tests/base/NSBundle/GNUmakefile.preamble, - * Tests/base/NSBundle/resources2.m: Extend test to check for - framework resource loading. + * Tests/base/NSBundle/TestInfo, + * Tests/base/NSBundle/GNUmakefile.preamble, + * Tests/base/NSBundle/resources2.m: Extend test to check for + framework resource loading. 2020-03-06 Richard Frith-Macdonald - * Resources/Languages/Locale.canonical: - Backward compatibility fix for ICU 65 by Fred Kiefer - * Resources/Languages/README: Fix trivial typo + * Resources/Languages/Locale.canonical: + Backward compatibility fix for ICU 65 by Fred Kiefer + * Resources/Languages/README: Fix trivial typo 2020-02-24 Richard Frith-Macdonald - * Source/objc-load.m: update GSPrivateSymbolPath() so that, on the - path where LINKER_GETSYMBOL is not available, we attempt to lookup - classes using the prefix ._OBJC_CLASS_ for the 2.0 ABI (earlier - ABIs use a prefix of __objc_class_name_ for the class definition. + * Source/objc-load.m: update GSPrivateSymbolPath() so that, on the + path where LINKER_GETSYMBOL is not available, we attempt to lookup + classes using the prefix ._OBJC_CLASS_ for the 2.0 ABI (earlier + ABIs use a prefix of __objc_class_name_ for the class definition. 2020-02-17 Richard Frith-Macdonald - * Tools/gdomap.c: When building the list of hosts to be probed to see - if they have gdomap servers, fix code to include those explicitly - defined in the config file. Add -S option to list the addresses of - the known gdomap servers. - * Tools/gdomap.8: Document the new command line option. + * Tools/gdomap.c: When building the list of hosts to be probed to see + if they have gdomap servers, fix code to include those explicitly + defined in the config file. Add -S option to list the addresses of + the known gdomap servers. + * Tools/gdomap.8: Document the new command line option. 2020-02-11 Richard Frith-Macdonald - * Headers/Foundation/NSXPCConnection.h: remove unistd.h since - workaround broke blocks code. I guess we have to hope that - sys/types.h has gid_t, pid_t, and uid_t on all systems we target. + * Headers/Foundation/NSXPCConnection.h: remove unistd.h since + workaround broke blocks code. I guess we have to hope that + sys/types.h has gid_t, pid_t, and uid_t on all systems we target. 2020-02-08 Richard Frith-Macdonald - * Examples/dictionary.m: - * Examples/nsconnection_client.m: - * Headers/GNUstepBase/GNUstep.h: - * Source/Additions/GSMime.m: - * Source/NSConnection.m: - * Source/NSDictionary.m: - * Source/NSException.m: - * Source/NSFileManager.m: - * Source/NSFileWrapper.m: - * Source/NSTask.m: - * Source/NSUserDefaults.m: - * Tools/AGSIndex.m: - * Tools/AGSOutput.m: - * Tools/cvtenc.m: - Switch various places away from deprecated CREATE_AUTORELEASE_POOL() - to use the ARC-compatible ENTER_POOL and LEAVE_POOL macros. + * Examples/dictionary.m: + * Examples/nsconnection_client.m: + * Headers/GNUstepBase/GNUstep.h: + * Source/Additions/GSMime.m: + * Source/NSConnection.m: + * Source/NSDictionary.m: + * Source/NSException.m: + * Source/NSFileManager.m: + * Source/NSFileWrapper.m: + * Source/NSTask.m: + * Source/NSUserDefaults.m: + * Tools/AGSIndex.m: + * Tools/AGSOutput.m: + * Tools/cvtenc.m: + Switch various places away from deprecated CREATE_AUTORELEASE_POOL() + to use the ARC-compatible ENTER_POOL and LEAVE_POOL macros. 2020-02-08 Richard Frith-Macdonald - * Headers/Foundation/NSXPCConnection.h: Workaround for clash between - unistd.h and clang's reserved word __block + * Headers/Foundation/NSXPCConnection.h: Workaround for clash between + unistd.h and clang's reserved word __block 2020-02-05 Fred Kiefer - * configure.ac: Use pkg-config to check for libxml. - * configure: regenerate + * configure.ac: Use pkg-config to check for libxml. + * configure: regenerate 2020-01-23 Fred Kiefer - * Source/Additions/NSURL+GNUstepBase.m: Handle case where scheme - is missing from the URL. + * Source/Additions/NSURL+GNUstepBase.m: Handle case where scheme + is missing from the URL. 2020-01-20 Fred Kiefer - * Source/NSPredicate.m: Allow simple predicates on NSDate. + * Source/NSPredicate.m: Allow simple predicates on NSDate. 2020-01-20 Richard Frith-Macdonald - * Source/GSTLS.m: remove certificate key password from hash key of - credentials since it's unnecessary there and we don't want it to be - logged when debug is on (for security, passwords shouldn't appear - in logs). + * Source/GSTLS.m: remove certificate key password from hash key of + credentials since it's unnecessary there and we don't want it to be + logged when debug is on (for security, passwords shouldn't appear + in logs). 2020-01-12 Fred Kiefer - * Source/NSPredicate.m: Add support for NSDate constants. + * Source/NSPredicate.m: Add support for NSDate constants. 2020-01-12 Fred Kiefer - * Source/NSKeyValueObserving.m: Implement two missing KVO methods - on NSArray. + * Source/NSKeyValueObserving.m: Implement two missing KVO methods + on NSArray. 2019-12-15 Fred Kiefer - * Headers/GNUstepBase/GSIMap.h: Use GSI_MAP_NODE_IS_EMPTY macros - when checking in enumerator. - * Source/NSConcreteHashTable.m, - * Source/NSConcreteMapTable.m: Revert part of the weak pointer change. + * Headers/GNUstepBase/GSIMap.h: Use GSI_MAP_NODE_IS_EMPTY macros + when checking in enumerator. + * Source/NSConcreteHashTable.m, + * Source/NSConcreteMapTable.m: Revert part of the weak pointer change. 2019-10-17 Frederik Seiffert - * Tests/base/NSHashTable/weakObjects.m: - * Tests/base/NSMapTable/weakObjects.m: - Added tests for [NSHashTable weakObjectsHashTable] and - [NSMapTable strongToWeakObjectsMapTable]. + * Tests/base/NSHashTable/weakObjects.m: + * Tests/base/NSMapTable/weakObjects.m: + Added tests for [NSHashTable weakObjectsHashTable] and + [NSMapTable strongToWeakObjectsMapTable]. 2019-11-26 Niels Grewe - * Source/NSRunLoop.m: - * Tests/base/NSRunLoop/dispatch.m: - Fix runloop integration for libdispatch from swift-corelibs - * .travis.yml: - * travis-deps.yml: - Fix CI related to libdispatch. + * Source/NSRunLoop.m: + * Tests/base/NSRunLoop/dispatch.m: + Fix runloop integration for libdispatch from swift-corelibs + * .travis.yml: + * travis-deps.yml: + Fix CI related to libdispatch. 2019-11-15 Frederik Seiffert - * configure.ac: check for unwind.h - * configure: regenerate - * Source/NSException.m: Added support for backtrace symbolication - using libunwind, which will be used when backtrace() is unavailable. + * configure.ac: check for unwind.h + * configure: regenerate + * Source/NSException.m: Added support for backtrace symbolication + using libunwind, which will be used when backtrace() is unavailable. 2019-11-14 Fred Kiefer - * Headers/Foundation/NSXPCConnection.h, - * Source/NSXPCConnection.m: Fix broken compilation on gcc. + * Headers/Foundation/NSXPCConnection.h, + * Source/NSXPCConnection.m: Fix broken compilation on gcc. 2019-11-12 Richard Frith-Macdonald - * NSTimeZones/NSTimeZones.tar: updated to latest info + * NSTimeZones/NSTimeZones.tar: updated to latest info 2019-11-05 Frederik Seiffert - * Headers/Foundation/NSProcessInfo.h: - * Source/NSPathUtilities.m: - * Source/NSProcessInfo.m: - Added support for NSTemporaryDirectory() on Android using subfolder - in folder returned by Context.getCacheDir(), as there is no official - temp dir prior to API level 26. Clean up temp dir on launch in - GSInitializeProcessAndroid(). Also use Context.getCacheDir() - as NSCachesDirectory (with NSUserDomainMask) on Android. + * Headers/Foundation/NSProcessInfo.h: + * Source/NSPathUtilities.m: + * Source/NSProcessInfo.m: + Added support for NSTemporaryDirectory() on Android using subfolder + in folder returned by Context.getCacheDir(), as there is no official + temp dir prior to API level 26. Clean up temp dir on launch in + GSInitializeProcessAndroid(). Also use Context.getCacheDir() + as NSCachesDirectory (with NSUserDomainMask) on Android. 2019-10-27 Fred Kiefer - * Headers/Foundation/NSUnit.h, - * Headers/Foundation/NSMeasurement.h, - * Headers/Foundation/NSMeasurementFormatter.h, - * Headers/Foundation/NSEnergyFormatter.h, - * Headers/Foundation/NSLengthFormatter.h, - * Headers/Foundation/NSMassFormatter.h, - * Source/NSUnit.m, - * Source/NSMeasurement.m, - * Source/NSMeasurementFormatter.m, - * Source/NSEnergyFormatter.m, - * Source/NSLengthFormatter.m, - * Source/NSMassFormatter.m, - * Source/NSUnit.m: More cleanup on the measurement code. + * Headers/Foundation/NSUnit.h, + * Headers/Foundation/NSMeasurement.h, + * Headers/Foundation/NSMeasurementFormatter.h, + * Headers/Foundation/NSEnergyFormatter.h, + * Headers/Foundation/NSLengthFormatter.h, + * Headers/Foundation/NSMassFormatter.h, + * Source/NSUnit.m, + * Source/NSMeasurement.m, + * Source/NSMeasurementFormatter.m, + * Source/NSEnergyFormatter.m, + * Source/NSLengthFormatter.m, + * Source/NSMassFormatter.m, + * Source/NSUnit.m: More cleanup on the measurement code. 2019-10-29 Wolfgang Lux - * Source/GSStream.h, - * Source/GSStream.m, - * Source/GSSocketStream.m: - Use a more sane implementation to redirect event handling to the - TLS handler while in a handshake. + * Source/GSStream.h, + * Source/GSStream.m, + * Source/GSSocketStream.m: + Use a more sane implementation to redirect event handling to the + TLS handler while in a handshake. - * Source/GSTLS.m: - Fall back to a sane default if the TLS priority setting is invalid. + * Source/GSTLS.m: + Fall back to a sane default if the TLS priority setting is invalid. 2019-10-28 Wolfgang Lux - * Source/GSSocketStream.m: - Prevent premature deallocation when a socket is closed while in a - TLS handshake. + * Source/GSSocketStream.m: + Prevent premature deallocation when a socket is closed while in a + TLS handshake. 2019-10-27 Fred Kiefer - * Headers/Foundation/NSUnit.h, - * Source/NSUnit.m: Clean up code and fix bugs. + * Headers/Foundation/NSUnit.h, + * Source/NSUnit.m: Clean up code and fix bugs. 2019-10-17 Frederik Seiffert - * Source/GSDispatch.h: - * Source/NSArray.m: - * Source/NSDictionary.m: - * Source/NSIndexSet.m: - * Source/NSOrderedSet.m: - * Source/NSSet.m: - Perform non-concurrent block enumeration calls in place instead - of using serial queue to match Apple platforms. + * Source/GSDispatch.h: + * Source/NSArray.m: + * Source/NSDictionary.m: + * Source/NSIndexSet.m: + * Source/NSOrderedSet.m: + * Source/NSSet.m: + Perform non-concurrent block enumeration calls in place instead + of using serial queue to match Apple platforms. 2019-10-25 Frederik Seiffert - * Headers/Foundation/NSMapTable.h: - * Headers/Foundation/NSHashTable.h: - Added generics support to NSMapTable and updated NSMapTable and - NSHashTable to use "instancetype". + * Headers/Foundation/NSMapTable.h: + * Headers/Foundation/NSHashTable.h: + Added generics support to NSMapTable and updated NSMapTable and + NSHashTable to use "instancetype". 2019-10-02 Frederik Seiffert - * Source/NSDictionary.m: fixed mutable dictionary keyed subscript - behavior: assigning nil value via keyed subscript now correctly - removes object for key. + * Source/NSDictionary.m: fixed mutable dictionary keyed subscript + behavior: assigning nil value via keyed subscript now correctly + removes object for key. 2019-09-25 Frederik Seiffert - * Headers/Foundation/NSProcessInfo.h: - * Source/NSPathUtilities.m: - * Source/NSProcessInfo.m: - Added support for data directory on Android. This makes GNUstep use - the path returned by Context.getFilesDir() as the basis for storing - data (e.g. NSUserDefaults) and when querying system directory paths - (NSLibraryDirectory, NSApplicationSupportDirectory, etc.). Requires - calling a new GSInitializeProcessAndroid() initialization function. + * Headers/Foundation/NSProcessInfo.h: + * Source/NSPathUtilities.m: + * Source/NSProcessInfo.m: + Added support for data directory on Android. This makes GNUstep use + the path returned by Context.getFilesDir() as the basis for storing + data (e.g. NSUserDefaults) and when querying system directory paths + (NSLibraryDirectory, NSApplicationSupportDirectory, etc.). Requires + calling a new GSInitializeProcessAndroid() initialization function. 2019-09-25 Richard Frith-Macdonald - * Source/NSArray.m: [-removeObjectsInArray:] add checks to prevent - possible crashes, particulary if the method argument is the receiver; - crash seen by Wolfgang. - * Source/GSSocketStream.m: Fix incorrect key when setting old security - level. Change internal API name to avoid confusion. + * Source/NSArray.m: [-removeObjectsInArray:] add checks to prevent + possible crashes, particulary if the method argument is the receiver; + crash seen by Wolfgang. + * Source/GSSocketStream.m: Fix incorrect key when setting old security + level. Change internal API name to avoid confusion. 2019-09-21 Richard Frith-Macdonald - * Source/GSTLS.m: Re-order code to avoid setting session priority - twice. - * Source/NSFileHandle.m: Fix so that setting certificate information - does not discard any other options already set. + * Source/GSTLS.m: Re-order code to avoid setting session priority + twice. + * Source/NSFileHandle.m: Fix so that setting certificate information + does not discard any other options already set. 2019-09-16 Alan Jenkins - * Tools/gdomap.c: - A couple of is_local_net() tests were wrong: they used "&&" - with masks, but that is the logical shortcut operator. - The correct bitwise operator is "&". The result was that - is_local_net() was always returning true! - Only allow local processes to send GDO_SERVERS requests. - This request is only useful locally. Do not allow remote - requests for the server list. Our response can be large, - so it would make a great UDP amplification attack. + * Tools/gdomap.c: + A couple of is_local_net() tests were wrong: they used "&&" + with masks, but that is the logical shortcut operator. + The correct bitwise operator is "&". The result was that + is_local_net() was always returning true! + Only allow local processes to send GDO_SERVERS requests. + This request is only useful locally. Do not allow remote + requests for the server list. Our response can be large, + so it would make a great UDP amplification attack. 2019-08-12 Richard Frith-Macdonald - * Source/GSSocketStream.m: Fix for hang when writing large https - requests. - * Source/GSStream.h: improve diagnostics - * Source/GSStream.m: improve diagnostics - * Source/NSURLProtocol.m: improve diagnostics - * Tests/base/NSURLConnection/Helpers/NSURLConnectionTest.m: - * Tests/base/NSURLConnection/test05.m: - Bugfix and new testcase for https request with large (over 64KB) body. + * Source/GSSocketStream.m: Fix for hang when writing large https + requests. + * Source/GSStream.h: improve diagnostics + * Source/GSStream.m: improve diagnostics + * Source/NSURLProtocol.m: improve diagnostics + * Tests/base/NSURLConnection/Helpers/NSURLConnectionTest.m: + * Tests/base/NSURLConnection/test05.m: + Bugfix and new testcase for https request with large (over 64KB) body. 2019-08-09 Richard Frith-Macdonald - * Source/NSRunLoop.m: - * Source/NSThread.m: - Improve reporting of excess performers so that, when one thread - performs selectors in another, you can see the class of the receiver - and the selector involved. + * Source/NSRunLoop.m: + * Source/NSThread.m: + Improve reporting of excess performers so that, when one thread + performs selectors in another, you can see the class of the receiver + and the selector involved. 2019-08-08 Richard Frith-Macdonald - * configure.ac: check for malloc_usable_sizer() - * configure: regenerate - * Headers/GNUstepBase/config.h.in: regenerate - * Headers/Foundation/NSDebug.h: Add GSMemoryBytes() - * Headers/GNUstepBase/NSObject+GNUstepBase.h: Rework memory usage - reporting extensions API. - * Source/Additions/NSMutableString+GNUstepBase.m: - * Source/Additions/NSObject+GNUstepBase.m: - * Source/GSArray.m: - * Source/GSCountedSet.m: - * Source/GSDictionary.m: - * Source/GSSet.m: - * Source/GSString.m: - * Source/NSConcreteHashTable.m: - * Source/NSConcreteMapTable.m: - * Source/NSData.m: - * Source/NSDebug.m: - * Source/NSDistantObject.m: - * Source/NSObject.m: - * Source/NSProxy.m: - * Source/NSRunLoop.m: - Updates for new memory reporting extensions API. The parts of this - dealing with the size of the contents of an object are now off by - default (trying to calculate the size of an object is problematic if - it is mutated while you are doing it) but classes can implement - -sizeOfContentExcluding: to turn it on if they are thread-safe. - Implementations provided for immutable container objects and for all - strings. + * configure.ac: check for malloc_usable_sizer() + * configure: regenerate + * Headers/GNUstepBase/config.h.in: regenerate + * Headers/Foundation/NSDebug.h: Add GSMemoryBytes() + * Headers/GNUstepBase/NSObject+GNUstepBase.h: Rework memory usage + reporting extensions API. + * Source/Additions/NSMutableString+GNUstepBase.m: + * Source/Additions/NSObject+GNUstepBase.m: + * Source/GSArray.m: + * Source/GSCountedSet.m: + * Source/GSDictionary.m: + * Source/GSSet.m: + * Source/GSString.m: + * Source/NSConcreteHashTable.m: + * Source/NSConcreteMapTable.m: + * Source/NSData.m: + * Source/NSDebug.m: + * Source/NSDistantObject.m: + * Source/NSObject.m: + * Source/NSProxy.m: + * Source/NSRunLoop.m: + Updates for new memory reporting extensions API. The parts of this + dealing with the size of the contents of an object are now off by + default (trying to calculate the size of an object is problematic if + it is mutated while you are doing it) but classes can implement + -sizeOfContentExcluding: to turn it on if they are thread-safe. + Implementations provided for immutable container objects and for all + strings. 2019-08-06 Richard Frith-Macdonald - * Source/NSData.m: Implement - [NSMutableData+dataWithBytesNoCopy:length:freeWhenDone] + * Source/NSData.m: Implement + [NSMutableData+dataWithBytesNoCopy:length:freeWhenDone] 2019-07-28 Fred Kiefer - * Source/NSByteCountFormatter.m: Fix to work in non fragile settings. + * Source/NSByteCountFormatter.m: Fix to work in non fragile settings. 2019-07-19 Gregory Casamento - * Headers/Foundation/NSByteCountFormatter.h - * Source/NSByteCountFormatter.m - Implementation of NSByteCountFormatter as documented. - * Tests/base/NSByteCountFormatter - Add test for this class. + * Headers/Foundation/NSByteCountFormatter.h + * Source/NSByteCountFormatter.m + Implementation of NSByteCountFormatter as documented. + * Tests/base/NSByteCountFormatter + Add test for this class. 2019-07-10 Frederik Seiffert - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSOrderedSet.h: - Fix generics definition of NSMutableArray and NSMutableOrderedSet. - Fix NSArray and NSOrderedSet KVC method types to not use generic type. + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSOrderedSet.h: + Fix generics definition of NSMutableArray and NSMutableOrderedSet. + Fix NSArray and NSOrderedSet KVC method types to not use generic type. 2019-07-14 Fred Kiefer - * Source/NSUbiquitousKeyValueStore.m: Change to use GNUstep - formatting. Move simple methods into base class. Correct the usage - of long long NSNumber. + * Source/NSUbiquitousKeyValueStore.m: Change to use GNUstep + formatting. Move simple methods into base class. Correct the usage + of long long NSNumber. 2019-07-10 Gregory Casamento - * Headers/Foundation/NSUbiquitousKeyValueStore.h - * Source/NSUbiquitousKeyValueStore.m: Implementation of - skeletal version of this class for compilation. Also put in - place a way to make concrete subclasses for various services. + * Headers/Foundation/NSUbiquitousKeyValueStore.h + * Source/NSUbiquitousKeyValueStore.m: Implementation of + skeletal version of this class for compilation. Also put in + place a way to make concrete subclasses for various services. 2019-07-02 Wolfgang Lux - * Tests/base/GSTLS/basic.m: Use fixed time zone. + * Tests/base/GSTLS/basic.m: Use fixed time zone. 2019-07-02 Gregory John Casamento - * Headers/Foundation/NSOrderedSet.h: Added header for class cluster - implementation of NSOrderedSet. - * Source/NSOrderedSet.m: Implementation of NSOrderedSet and NSMutableOrderedSet - * Source/GSOrderedSet.m: Implementation of concrete class. + * Headers/Foundation/NSOrderedSet.h: Added header for class cluster + implementation of NSOrderedSet. + * Source/NSOrderedSet.m: Implementation of NSOrderedSet and NSMutableOrderedSet + * Source/GSOrderedSet.m: Implementation of concrete class. 2019-07-01 Fred Kiefer - * Source/GSXML.m (fatalErrorFunction): Use correct function to get - line number. - * Source/NSOperation.m (_execute): Surround with NS_DURING to free - lock on error. + * Source/GSXML.m (fatalErrorFunction): Use correct function to get + line number. + * Source/NSOperation.m (_execute): Surround with NS_DURING to free + lock on error. 2019-06-11 Richard Frith-Macdonald - * Headers/GNUstepBase/GSIArray.h: - * Headers/GNUstepBase/NSObject+GNUstepBase.h: - * Source/Additions/NSObject+GNUstepBase.m: - * Source/GSArray.m: - * Source/GSCountedSet.m: - * Source/GSDictionary.m: - * Source/GSSet.m: - * Source/NSArray.m: - * Source/NSConcreteHashTable.m: - * Source/NSConcreteMapTable.m: - * Source/NSData.m: - * Source/NSDictionary.m: - * Source/NSDistantObject.m: - * Source/NSObject.m: - * Source/NSProxy.m: - * Source/NSSet.m: - * Source/NSString.m: - Revise mechanism for extention to report memory usage of individual - objects. This makes the inclusion of size of objects in ivars a - default, while allowing easy extension to include other heap memory. - API change not final. + * Headers/GNUstepBase/GSIArray.h: + * Headers/GNUstepBase/NSObject+GNUstepBase.h: + * Source/Additions/NSObject+GNUstepBase.m: + * Source/GSArray.m: + * Source/GSCountedSet.m: + * Source/GSDictionary.m: + * Source/GSSet.m: + * Source/NSArray.m: + * Source/NSConcreteHashTable.m: + * Source/NSConcreteMapTable.m: + * Source/NSData.m: + * Source/NSDictionary.m: + * Source/NSDistantObject.m: + * Source/NSObject.m: + * Source/NSProxy.m: + * Source/NSSet.m: + * Source/NSString.m: + Revise mechanism for extention to report memory usage of individual + objects. This makes the inclusion of size of objects in ivars a + default, while allowing easy extension to include other heap memory. + API change not final. 2019-05-23 Frederik Seiffert - * configure: - * configure.ac: - Link against libandroid on Android. - * Headers/Foundation/NSBundle.h: - * Source/NSBundle.m: - Added methods for passing Android asset manager from Java to GNUstep - and for getting AAsset/AAssetDir for given path in main bundle. - Skip app bundle suffix check on Android. Extended bundle resource - paths backbone to check for known paths directly on Android as we - can't enumerate directories. - Extended -localizations method to check for known localizations - directly (requires setting userLanguages in NSUserDefaults). - Extracted path cache cleaning into separate method. - * Source/GSFileHandle.h: - * Source/GSFileHandle.m: - Added file handle support for reading Android assets from main bundle. - * Source/NSData.m: - Added support for reading Android assets from main bundle in - readContentsOfFile(). This is also used by all other - -initWithContentsOfFile: and related methods from other classes. - * Source/NSFileManager.m: - Added support for Android assets from main bundle in - fileExistsAtPath:isDirectory:, isReadableFileAtPath:, - NSDirectoryEnumerator, and copying from assets. Extended - GSAttrDictionary with basic support for Android assets. - * Source/NSProcessInfo.m: - Added +initialize method to auto-initialize NSProcessInfo on Android - using fake executable path "/data/data//exe" (Android - apps don't have a real executable path). + * configure: + * configure.ac: + Link against libandroid on Android. + * Headers/Foundation/NSBundle.h: + * Source/NSBundle.m: + Added methods for passing Android asset manager from Java to GNUstep + and for getting AAsset/AAssetDir for given path in main bundle. + Skip app bundle suffix check on Android. Extended bundle resource + paths backbone to check for known paths directly on Android as we + can't enumerate directories. + Extended -localizations method to check for known localizations + directly (requires setting userLanguages in NSUserDefaults). + Extracted path cache cleaning into separate method. + * Source/GSFileHandle.h: + * Source/GSFileHandle.m: + Added file handle support for reading Android assets from main bundle. + * Source/NSData.m: + Added support for reading Android assets from main bundle in + readContentsOfFile(). This is also used by all other + -initWithContentsOfFile: and related methods from other classes. + * Source/NSFileManager.m: + Added support for Android assets from main bundle in + fileExistsAtPath:isDirectory:, isReadableFileAtPath:, + NSDirectoryEnumerator, and copying from assets. Extended + GSAttrDictionary with basic support for Android assets. + * Source/NSProcessInfo.m: + Added +initialize method to auto-initialize NSProcessInfo on Android + using fake executable path "/data/data//exe" (Android + apps don't have a real executable path). 2019-05-20 Frederik Seiffert - * Source/NSLog.m: Have all logs go to syslog on android. - * Source/NSThread.m: Spinlock implementation using builtins as - implemented by David in libobjc2 - * Source/NSRunLoop.m - * Headers/GNUstepBase/config.h.in: - * configure.ac: - This updates the libdispatch runloop integration to be compatible with - the Swift corelibs libdispatch release at - (https://github.com/apple/swift-corelibs-libdispatch). + * Source/NSLog.m: Have all logs go to syslog on android. + * Source/NSThread.m: Spinlock implementation using builtins as + implemented by David in libobjc2 + * Source/NSRunLoop.m + * Headers/GNUstepBase/config.h.in: + * configure.ac: + This updates the libdispatch runloop integration to be compatible with + the Swift corelibs libdispatch release at + (https://github.com/apple/swift-corelibs-libdispatch). - In that release, the main queue handle and drain functions have been - renamed with a "_4CF" (for CoreFoundation) suffix and have moved to - private.h, so we now check for the existance of this header and - function names. + In that release, the main queue handle and drain functions have been + renamed with a "_4CF" (for CoreFoundation) suffix and have moved to + private.h, so we now check for the existance of this header and + function names. - Note that libdispatch must be compiled with - INSTALL_PRIVATE_HEADERS=YES. + Note that libdispatch must be compiled with + INSTALL_PRIVATE_HEADERS=YES. - Also fixes the checks for the HAVE_LIBDISPATCH_RUNLOOP define (was - inverted) and ensures that both the handle and drain functions are - available. + Also fixes the checks for the HAVE_LIBDISPATCH_RUNLOOP define (was + inverted) and ensures that both the handle and drain functions are + available. 2019-04-16 Richard Frith-Macdonald - * Source/NSString.m: Removed public functions which could conflict - with application code. Rewrote percent unescaping to avoid possible - buffer overruns. - * Tests/base/NSString/test09.m: avoid excess logging (for readability - of test output). + * Source/NSString.m: Removed public functions which could conflict + with application code. Rewrote percent unescaping to avoid possible + buffer overruns. + * Tests/base/NSString/test09.m: avoid excess logging (for readability + of test output). 2019-04-12 Gregory John Casamento - * Source/NSCharacterSet.m: Added declarations/implementations for - URL*AllowedCharacterSet. - * Headers/NSCharacterSet.h: Added declarations here for - URL*AllowedCharacterSet - * Source/CharSets/*: Added headers to define new charactersets. - * Source/NSString.m: Added methods stringByRemovingPercentEncoding/ - stringByAddingPercentEncodingWithAllowedCharacterSet: - * Header/NSString.h: Added declrations for methods mentioned above. + * Source/NSCharacterSet.m: Added declarations/implementations for + URL*AllowedCharacterSet. + * Headers/NSCharacterSet.h: Added declarations here for + URL*AllowedCharacterSet + * Source/CharSets/*: Added headers to define new charactersets. + * Source/NSString.m: Added methods stringByRemovingPercentEncoding/ + stringByAddingPercentEncodingWithAllowedCharacterSet: + * Header/NSString.h: Added declrations for methods mentioned above. 2019-03-29 Igor Zhukov - * Source/NSDateFormatter.m: - * configure: - * configure.ac: - Decrease ICU version requirements to 49 to support Windows 2000. + * Source/NSDateFormatter.m: + * configure: + * configure.ac: + Decrease ICU version requirements to 49 to support Windows 2000. 2019-03-25 Sergii Stoian - * Resources/Lanuages/Ukrainian: - Fix wrong \U sequence for letter 'i' and short weekdays. + * Resources/Lanuages/Ukrainian: + Fix wrong \U sequence for letter 'i' and short weekdays. 2019-03-18 Wolfgang Lux - * Tools/gdomap.c: - Fix crash in donames() when getaddrinfo returns an error. + * Tools/gdomap.c: + Fix crash in donames() when getaddrinfo returns an error. 2019-02-27 Richard Frith-Macdonald - * Source/Additions/Unidoce.m: comment-out left-over debug logging. - * Source/NSJSONSerialization.m: escape characters with codepoint - greater than 0x7f. + * Source/Additions/Unidoce.m: comment-out left-over debug logging. + * Source/NSJSONSerialization.m: escape characters with codepoint + greater than 0x7f. 2019-02-15 Richard Frith-Macdonald - * Source/GSMime.m: When encoding quoted words in a header, ensure - we don't split multibyte utf-8 characters into separate words. - * Tests/base/GSMime/general.m: Add test for encode/decode folded - subject line wit a euro symbol at the fold point. + * Source/GSMime.m: When encoding quoted words in a header, ensure + we don't split multibyte utf-8 characters into separate words. + * Tests/base/GSMime/general.m: Add test for encode/decode folded + subject line wit a euro symbol at the fold point. 2019-02-14 Richard Frith-Macdonald - * Source/GSPrivate.h: - * Source/NSBundle.m: - * Source/NSPathUtilities.m: - * Source/objc-load.m: - GSPrivateSymbolPath() simplified by removing the unused argument - and consolidated code so that, if the class lookup via dladdr() - fails, we fall back to use __objc_dynamic_get_symbol_path(). + * Source/GSPrivate.h: + * Source/NSBundle.m: + * Source/NSPathUtilities.m: + * Source/objc-load.m: + GSPrivateSymbolPath() simplified by removing the unused argument + and consolidated code so that, if the class lookup via dladdr() + fails, we fall back to use __objc_dynamic_get_symbol_path(). 2019-02-14 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Fix encoded word encoding specifier - to be uppercase ('B' or 'Q') as pere strict RFC specification. - * Tests/base/GSMime/build.m: Add testcase for correct encoding. + * Source/Additions/GSMime.m: Fix encoded word encoding specifier + to be uppercase ('B' or 'Q') as pere strict RFC specification. + * Tests/base/GSMime/build.m: Add testcase for correct encoding. 2019-02-13 Richard Frith-Macdonald - * Tests/base/GSTLS/basic.m: Update testcase to use correct guard. + * Tests/base/GSTLS/basic.m: Update testcase to use correct guard. 2019-02-12 Ivan Vucica - * Headers/GNUstepBase/GSTLS.h: Change guard to check for value of - GS_USE_GNUTLS and not for its defined state. This preprocessor - constant might be defined with a zero value indicating desire not to - use GnuTLS, which would still pass the old check. + * Headers/GNUstepBase/GSTLS.h: Change guard to check for value of + GS_USE_GNUTLS and not for its defined state. This preprocessor + constant might be defined with a zero value indicating desire not to + use GnuTLS, which would still pass the old check. 2019-02-11 Richard Frith-Macdonald - * Source/NSObject.m: Improve thread safety with NSZombie particularly - on startup/shutdown; be more careful about locking access to the - zombieMap and also ensuring we don't raise an exception inside the - locked sections (by passing a nil map to the functions). + * Source/NSObject.m: Improve thread safety with NSZombie particularly + on startup/shutdown; be more careful about locking access to the + zombieMap and also ensuring we don't raise an exception inside the + locked sections (by passing a nil map to the functions). 2019-01-06 Armando Pesenti Gritti - * Headers/GNUstepBase/GSTLS.h: Header moved to provide public - exposure of TLS classes giving ObjC interface to GNU TLS. - * Source/GSTLS.m: New methods to provide certificate expiry times. - * Source/DocMakefile: Make documentation from GSTLS.h - * Source/GNUmakefile: Install GSTLS.h - * Source/GSHTTPURLHandle.m: Adjust location of GSTLS header - * Source/GSSocketStream.m: Adjust location of GSTLS header - * Source/NSFileHandle.m: Adjust location of GSTLS header - * Source/NSURLProtocol.m: Adjust location of GSTLS header - * Tests/base/GSTLS: Add tests for certificate expiry - Patch by Armando, adjusted by RFM. + * Headers/GNUstepBase/GSTLS.h: Header moved to provide public + exposure of TLS classes giving ObjC interface to GNU TLS. + * Source/GSTLS.m: New methods to provide certificate expiry times. + * Source/DocMakefile: Make documentation from GSTLS.h + * Source/GNUmakefile: Install GSTLS.h + * Source/GSHTTPURLHandle.m: Adjust location of GSTLS header + * Source/GSSocketStream.m: Adjust location of GSTLS header + * Source/NSFileHandle.m: Adjust location of GSTLS header + * Source/NSURLProtocol.m: Adjust location of GSTLS header + * Tests/base/GSTLS: Add tests for certificate expiry + Patch by Armando, adjusted by RFM. 2019-01-06 Fred Kiefer - * Source/Additions/Unicode.m: Move variable u to the correct scope - and initialize it. + * Source/Additions/Unicode.m: Move variable u to the correct scope + and initialize it. 2019-01-06 Ivan Vucica - * ANNOUNCE: - * NEWS: - * Documentation/ReleaseNotes.gsdoc: - * Documentation/news.texi: - Update release notes for 1.26.0. - * Version: - Bump version to 1.26.0. + * ANNOUNCE: + * NEWS: + * Documentation/ReleaseNotes.gsdoc: + * Documentation/news.texi: + Update release notes for 1.26.0. + * Version: + Bump version to 1.26.0. 2019-01-06 Ivan Vucica - * Tests/base/NSBundle/resources.m: - Fixed change in 2107c82ca4778e4cf9b8624d1bd1fd60fe104373 which made - NSArray *arr become invisible to the "NSBundle GNUstep resources" - test set. + * Tests/base/NSBundle/resources.m: + Fixed change in 2107c82ca4778e4cf9b8624d1bd1fd60fe104373 which made + NSArray *arr become invisible to the "NSBundle GNUstep resources" + test set. 2019-01-06 Ivan Vucica - * config/icu.m4: - * configure.ac: - Merge the change to use pkg-config to detect ICU. Patch by Hugh - McMaster . - Update PR #32 to require ICU 5.0+ and not 4.6+. - * configure: - Regenerated to incorporate the changes from PR #32. Regenerated with - autoconf 2.69. + * config/icu.m4: + * configure.ac: + Merge the change to use pkg-config to detect ICU. Patch by Hugh + McMaster . + Update PR #32 to require ICU 5.0+ and not 4.6+. + * configure: + Regenerated to incorporate the changes from PR #32. Regenerated with + autoconf 2.69. 2019-01-06 Fred Kiefer - * Documentation/news.texi: Update release notes for 1.26.0. - * ChangeLog: Fix typos in this document. + * Documentation/news.texi: Update release notes for 1.26.0. + * ChangeLog: Fix typos in this document. 2019-01-03 Richard Frith-Macdonald - * Source/GSTLS.h: - * Source/GSTLS.m: - * Source/NSFileHandle.m: - Track the age of TLS sessions for server connections and, when - accepting an incoming connection, replace the current server - connection (if the existing one is more than 5 minutes old) so - that cached certificate information will be updated from file - (eg if a certificate needs to be updated while a server is running). + * Source/GSTLS.h: + * Source/GSTLS.m: + * Source/NSFileHandle.m: + Track the age of TLS sessions for server connections and, when + accepting an incoming connection, replace the current server + connection (if the existing one is more than 5 minutes old) so + that cached certificate information will be updated from file + (eg if a certificate needs to be updated while a server is running). 2018-12-06 Wolfgang Lux - * Headers/Foundation/NSObject.h: - Remove reference to the copyWithZone: implementation of NSObject, - which was removed ages ago. + * Headers/Foundation/NSObject.h: + Remove reference to the copyWithZone: implementation of NSObject, + which was removed ages ago. 2018-12-05 Richard Frith-Macdonald - * Headers/Foundation/NSURLHandle.h: - * Source/NSURLHandle.m: - * Source/GSHTTPURLHandle.m: - Expose GNUstep specific methods for old code that depends on them. - Newer code should use the newer HTTP/HTTPS APIs + * Headers/Foundation/NSURLHandle.h: + * Source/NSURLHandle.m: + * Source/GSHTTPURLHandle.m: + Expose GNUstep specific methods for old code that depends on them. + Newer code should use the newer HTTP/HTTPS APIs 2018-12-04 Richard Frith-Macdonald - * Headers/GNUstepBase/NSURL+GNUstepBase.h: - * Source/NSURL.m: - Add [-cacheKey] method to return a key usable for caching HTTP URL - connections that go to the same scheme, host and port. - * Source/GSHTTPURLHandle.m: - New [-setURL:] method to change the URL used by a handle so that - a networek connection used by a handle can be re-used if possible - (ie if the scheme, host and port parts are unchanged). + * Headers/GNUstepBase/NSURL+GNUstepBase.h: + * Source/NSURL.m: + Add [-cacheKey] method to return a key usable for caching HTTP URL + connections that go to the same scheme, host and port. + * Source/GSHTTPURLHandle.m: + New [-setURL:] method to change the URL used by a handle so that + a networek connection used by a handle can be re-used if possible + (ie if the scheme, host and port parts are unchanged). 2018-08-24 Richard Frith-Macdonald - * Source/GSTLS.m: Fixup for last modification ... still verify the - certificate (so we can find out who issued/owns it) even if we do - not have verification turned on ... the verification setting controls - whether we reject the connection. Also fixed off by one bug in - getting the issuer and owner distinguished names. + * Source/GSTLS.m: Fixup for last modification ... still verify the + certificate (so we can find out who issued/owns it) even if we do + not have verification turned on ... the verification setting controls + whether we reject the connection. Also fixed off by one bug in + getting the issuer and owner distinguished names. 2018-08-13 Richard Frith-Macdonald - * Source/GSTLS.m: Change behavior so that when acting as a server we - always request that the client sends us a certificate (if it doesn't - have one, it should ignore the request). The 'verify' setting should - control only whether a request without a certificate is rejected. + * Source/GSTLS.m: Change behavior so that when acting as a server we + always request that the client sends us a certificate (if it doesn't + have one, it should ignore the request). The 'verify' setting should + control only whether a request without a certificate is rejected. 2018-08-08 Riccardo Mottola - * configure.ac - * configure: - When checking for pthread_np.h include pthread.h if available or - it may fail (e.g. OpenBSD). + * configure.ac + * configure: + When checking for pthread_np.h include pthread.h if available or + it may fail (e.g. OpenBSD). 2018-08-06 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Update the cache on change of volatile - domain or search list, not just when perstistent domain values - change. + * Source/NSUserDefaults.m: Update the cache on change of volatile + domain or search list, not just when perstistent domain values + change. 2018-07-19 Richard Frith-Macdonald - * NSTimeZones/NSTimeZones.tar: Updated zone info and corrected preferred - abbreviation mappings to match OSX. + * NSTimeZones/NSTimeZones.tar: Updated zone info and corrected preferred + abbreviation mappings to match OSX. 2018-07-14 Richard Frith-Macdonald - * Source/Additions/Unicode.m: improve utf8 validity checks, - switch to state machine based utf8 parsing for better performance. - * Tests/base/NSString/utf8.m: add a few tests for utf8 parsing. + * Source/Additions/Unicode.m: improve utf8 validity checks, + switch to state machine based utf8 parsing for better performance. + * Tests/base/NSString/utf8.m: add a few tests for utf8 parsing. 2018-07-10 Richard Frith-Macdonald - * configure.ac: - * configure: - When using clang, we now supply -fobjc-runtime=gcc to target the - gnu/gcc runtime ABI. + * configure.ac: + * configure: + When using clang, we now supply -fobjc-runtime=gcc to target the + gnu/gcc runtime ABI. 2018-07-07 Fred Kiefer - * Source/NSString.m: Add primitive implementation for - rangeOfComposedCharacterSequencesForRange:. + * Source/NSString.m: Add primitive implementation for + rangeOfComposedCharacterSequencesForRange:. 2018-07-06 Fred Kiefer - * Source/GSString.m: Remove GSString copyWithZone:. - * Source/NSString.m: Raise exception when no data is provided for the - string. This brings our implementation closer to the Cocoa one. - * Source/GSString.m: Add similar exceptions. + * Source/GSString.m: Remove GSString copyWithZone:. + * Source/NSString.m: Raise exception when no data is provided for the + string. This brings our implementation closer to the Cocoa one. + * Source/GSString.m: Add similar exceptions. 2018-07-02 Richard Frith-Macdonald - * Tests/base/NSString/test00.m: : Move _unicodeString from here... - * Source/GSString.m: ... to here. - In order to reliably test the internal 16bit unicode implementation - we must have a method guaranteed to produce an instance of the correct - class. + * Tests/base/NSString/test00.m: : Move _unicodeString from here... + * Source/GSString.m: ... to here. + In order to reliably test the internal 16bit unicode implementation + we must have a method guaranteed to produce an instance of the correct + class. 2018-07-01 Fred Kiefer - * Source/NSString.m: Small cleanup for printf registration. - * Tests/base/NSString/test00.m: Add David Chisnall's test from - newapi branch slightly reformatted. - * Source/GSString.m: Remove code that was identical to super class. - * Source/GSString.m: Move the method _unicodeString from here... - * Tests/base/NSString/test00.m: ...to here. + * Source/NSString.m: Small cleanup for printf registration. + * Tests/base/NSString/test00.m: Add David Chisnall's test from + newapi branch slightly reformatted. + * Source/GSString.m: Remove code that was identical to super class. + * Source/GSString.m: Move the method _unicodeString from here... + * Tests/base/NSString/test00.m: ...to here. 2018-06-28 Richard Frith-Macdonald - * Source/NSXMLParser.m: Fix conversion of numeric entities with large - values into UTF-16 surrogate pairs before returning them as string. + * Source/NSXMLParser.m: Fix conversion of numeric entities with large + values into UTF-16 surrogate pairs before returning them as string. 2018-06-12 Richard Frith-Macdonald - * Documentation/Base.gsdoc: - * Source/GSPrivate.h: - * Source/NSException.m: - * Source/NSUserDefaults.m: - Add boolean GSExceptionStackTrace user default to turn on inclusion - of stack trace information in the -description of an exception - (like the GNUSTEP_STACK_TRACE environment variable). Useful for - diagnostic logs of a long running server process. + * Documentation/Base.gsdoc: + * Source/GSPrivate.h: + * Source/NSException.m: + * Source/NSUserDefaults.m: + Add boolean GSExceptionStackTrace user default to turn on inclusion + of stack trace information in the -description of an exception + (like the GNUSTEP_STACK_TRACE environment variable). Useful for + diagnostic logs of a long running server process. 2018-04-30 Graham Lee - * Source/NSCalendar.m (calendarWithIdentifier:): - New convenience method implemented by Cocoa. + * Source/NSCalendar.m (calendarWithIdentifier:): + New convenience method implemented by Cocoa. 2018-05-29 Richard Frith-Macdonald - * Source/NSObject.m: avoid static initialisation macro for allocation - locks in case some systems implement it in a way that doesn't work - after static initialisation takes place. + * Source/NSObject.m: avoid static initialisation macro for allocation + locks in case some systems implement it in a way that doesn't work + after static initialisation takes place. 2018-05-27 Fred Kiefer - * Tests/base/NSProcessInfo/general.m: Mark test for -systemUptime - as hopeful as it may fail in GNU Hurd. - Fixes bug #53941. - Based on idea by Yavor Doganov + * Tests/base/NSProcessInfo/general.m: Mark test for -systemUptime + as hopeful as it may fail in GNU Hurd. + Fixes bug #53941. + Based on idea by Yavor Doganov 2018-05-21 Fred Kiefer - * Source/GSConcreteValueTemplate.m: Add hack to make point and - size subclasses for NSValue interchangable. + * Source/GSConcreteValueTemplate.m: Add hack to make point and + size subclasses for NSValue interchangable. 2018-05-20 Ivan Vucica - * Source/NSThread.m: - Fix typo in code branch for platforms without pthread_spin_lock(). - Check for value of HAVE_PTHREAD_SPIN_LOCK instead of whether the - macro is defined. + * Source/NSThread.m: + Fix typo in code branch for platforms without pthread_spin_lock(). + Check for value of HAVE_PTHREAD_SPIN_LOCK instead of whether the + macro is defined. 2018-05-18 Richard Frith-Macdonald - * Tools/gdnc.m: Remove a little unused code - * Headers/Foundation/NSFileHandle.h: - * Source/GSHTTPURLHandle.m: - * Source/GSSocketStream.m: - * Source/GSTLS.h: - * Source/GSTLS.m: - * Source/NSURLProtocol.m: - Add support for TLS SNI (Server Name Indication) and a new option - (GSTLSServerName) to control what name (if any) is passed in the TLS - handshake. + * Tools/gdnc.m: Remove a little unused code + * Headers/Foundation/NSFileHandle.h: + * Source/GSHTTPURLHandle.m: + * Source/GSSocketStream.m: + * Source/GSTLS.h: + * Source/GSTLS.m: + * Source/NSURLProtocol.m: + Add support for TLS SNI (Server Name Indication) and a new option + (GSTLSServerName) to control what name (if any) is passed in the TLS + handshake. 2018-05-17 Yavor Doganov - * Tests/base/NSNumberFormatter/basic10_4.m: Avoid test failure on - big-endian platforms by converting unichar to an NSString. + * Tests/base/NSNumberFormatter/basic10_4.m: Avoid test failure on + big-endian platforms by converting unichar to an NSString. 2018-05-10 Fred Kiefer - * Tools/pl2link.m (main): Don't write deprecated fields to desktop - link file. - Patch by: Josh Freeman + * Tools/pl2link.m (main): Don't write deprecated fields to desktop + link file. + Patch by: Josh Freeman 2018-04-24 Richard Frith-Macdonald - * configure: regenerate - * NSObject.m: tiny cosmetic whitespace tidyup - * NSThread.m: move declarations to avoid compiler warning + * configure: regenerate + * NSObject.m: tiny cosmetic whitespace tidyup + * NSThread.m: move declarations to avoid compiler warning 2018-04-23 Riccardo Mottola - * Source/NSThread.m: - Detect if platform is missing spin locks and provide an dummy - implementation. Emit warning during compilation and runtime (in debug). + * Source/NSThread.m: + Detect if platform is missing spin locks and provide an dummy + implementation. Emit warning during compilation and runtime (in debug). 2018-04-16 Richard Frith-Macdonald - * Source/NSThread.m: ensure that the thread specific memory key is - initialised before use. + * Source/NSThread.m: ensure that the thread specific memory key is + initialised before use. 2018-04-15 Richard Frith-Macdonald - * Source/NSException.m: Improve -symbold method on platforms without - backtrace support (list addresses with a message to say the symbols - are not available). + * Source/NSException.m: Improve -symbold method on platforms without + backtrace support (list addresses with a message to say the symbols + are not available). 2018-04-12 Richard Frith-Macdonald - * Source/NSLock.m: Using class_createInstance() to allocate locks - seems to be causing memory issues and crashes somehow. Temporarily - comment out that code to try to get things working again. + * Source/NSLock.m: Using class_createInstance() to allocate locks + seems to be causing memory issues and crashes somehow. Temporarily + comment out that code to try to get things working again. 2018-04-12 Richard Frith-Macdonald - * Source/Additions/Unicode.m: - * Source/NSArray.m: - * Source/NSCharacterSet.m: - * Source/NSString.m: - Use pthread mutex directly to try to avoid initialising NSLock too - early on during process startup. + * Source/Additions/Unicode.m: + * Source/NSArray.m: + * Source/NSCharacterSet.m: + * Source/NSString.m: + Use pthread mutex directly to try to avoid initialising NSLock too + early on during process startup. 2018-04-10 Richard Frith-Macdonald - * Source/NSObject.m: Don't set the name of the global lock until - after we have make sure that strings and autorelease are set up. + * Source/NSObject.m: Don't set the name of the global lock until + after we have make sure that strings and autorelease are set up. 2018-04-10 Richard Frith-Macdonald - * Source/Additions/Unicode.m: - * Source/GSHTTPAuthentication.m: - * Source/GSHTTPURLHandle.m: - * Source/GSMDNSNetServices.m: - * Source/GSURLPrivate.h: - * Source/NSCalendar.m: - * Source/NSCharacterSet.m: - * Source/NSConnection.m: - * Source/NSCountedSet.m: - * Source/NSIndexPath.m: - * Source/NSKeyValueObserving.m: - * Source/NSLocale.m: - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - * Source/NSUserDefaults.m: - * Source/NSValueTransformer.m: - Replace the obsolete GSLazyLock code with standard NSLocks now that - almost all significant software is multithreaded. + * Source/Additions/Unicode.m: + * Source/GSHTTPAuthentication.m: + * Source/GSHTTPURLHandle.m: + * Source/GSMDNSNetServices.m: + * Source/GSURLPrivate.h: + * Source/NSCalendar.m: + * Source/NSCharacterSet.m: + * Source/NSConnection.m: + * Source/NSCountedSet.m: + * Source/NSIndexPath.m: + * Source/NSKeyValueObserving.m: + * Source/NSLocale.m: + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + * Source/NSUserDefaults.m: + * Source/NSValueTransformer.m: + Replace the obsolete GSLazyLock code with standard NSLocks now that + almost all significant software is multithreaded. 2018-04-10 Richard Frith-Macdonald - * Source/NSThread.m: When adding a new thread, set the thread specific - memory to point to the object before doing anything else which might - attempt to access the thread (causing recursive registration). + * Source/NSThread.m: When adding a new thread, set the thread specific + memory to point to the object before doing anything else which might + attempt to access the thread (causing recursive registration). 2018-04-09 Richard Frith-Macdonald - * Source/Additions/unicode/cop.h: Add comment/fixme - * Source/Additions/Unicode.m: - * Source/NSString.m: - Move uni_isnonsp() to NSString.m and make it use nonBaseCharacterSet - so that it correctly copes with both surrogate pairs and traditional - composed character sequences. NB. David points out that this is not - full/correct unicode grapheme cluster handling (it's the main part - of the handling for 'legacy' grapheme clusters). + * Source/Additions/unicode/cop.h: Add comment/fixme + * Source/Additions/Unicode.m: + * Source/NSString.m: + Move uni_isnonsp() to NSString.m and make it use nonBaseCharacterSet + so that it correctly copes with both surrogate pairs and traditional + composed character sequences. NB. David points out that this is not + full/correct unicode grapheme cluster handling (it's the main part + of the handling for 'legacy' grapheme clusters). 2018-04-04 Richard Frith-Macdonald - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSThread.h: - * Source/GSPrivate.h: - * Source/NSException.m: - * Source/NSLock.m: - * Source/NSThread.m: - Revised code for efficient stack traces and for tracking the use of - locks and detecting deadlocks. + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSThread.h: + * Source/GSPrivate.h: + * Source/NSException.m: + * Source/NSLock.m: + * Source/NSThread.m: + Revised code for efficient stack traces and for tracking the use of + locks and detecting deadlocks. 2018-03-30 Richard Frith-Macdonald - * Source/NSException.m: Fix second argument to backtrace() + * Source/NSException.m: Fix second argument to backtrace() 2018-03-28 Richard Frith-Macdonald - * Source/NSException.m: Use pthread mutexes directly to avoid - recursive interactions with tracking NSL:ock activity. + * Source/NSException.m: Use pthread mutexes directly to avoid + recursive interactions with tracking NSL:ock activity. 2018-03-27 Richard Frith-Macdonald - * Source/GSPrivate.h: - * Source/NSDebug.m: - * Source/NSException.m: - * Source/NSThread.m: - * Headers/Foundation/NSThread.h: - Move stack info code from NSDebug to NSException so its all in one - place and. Make thread call stack addresses method use windows code - as well as libbacktrace. Remove unused method. - * Source/NSTimeZone.m: - Simplify and optimise locking by using pthread_mutex functions - directly. + * Source/GSPrivate.h: + * Source/NSDebug.m: + * Source/NSException.m: + * Source/NSThread.m: + * Headers/Foundation/NSThread.h: + Move stack info code from NSDebug to NSException so its all in one + place and. Make thread call stack addresses method use windows code + as well as libbacktrace. Remove unused method. + * Source/NSTimeZone.m: + Simplify and optimise locking by using pthread_mutex functions + directly. 2018-03-26 Richard Frith-Macdonald * Source/NSDebug.m: - Avoid recursion in lock tracing when using memory allocation stats. - * Source/NSObject.m: - Make gnustep_global_lock an untraced lock to avoid recursion issues - when tracing. + Avoid recursion in lock tracing when using memory allocation stats. + * Source/NSObject.m: + Make gnustep_global_lock an untraced lock to avoid recursion issues + when tracing. 2018-03-26 Richard Frith-Macdonald @@ -4702,1003 +4714,1002 @@ * Source/GSPrivate.h: * Source/NSLock.m: * Source/NSThread.m: - Experimental code to add support for tracing locks held by different - threads and to report deadlock situations where threads have - obtained locks in the wrong order and can never proceed. + Experimental code to add support for tracing locks held by different + threads and to report deadlock situations where threads have + obtained locks in the wrong order and can never proceed. 2018-03-26 Richard Frith-Macdonald - * Source/NSBundle.m: - * Source/NSOperation.m: - Give locks names to ease debugging + * Source/NSBundle.m: + * Source/NSOperation.m: + Give locks names to ease debugging - * Source/NSObject.m: - * Source/NSZone.m: - Updates to use pthread mutexes directly rather than NSLock objects - in key places for performance. + * Source/NSObject.m: + * Source/NSZone.m: + Updates to use pthread mutexes directly rather than NSLock objects + in key places for performance. 2018-03-26 Richard Frith-Macdonald - * Source/GSPThread.h: - * Source/GSException.m: - Optimise generation of stack traces to store them in a single simple - malloced buffer and only generate an NSArray of return addresses if - actually requested. Also adjust output of stack trace to exclude the - top few frames involved in generation of the trace, so we see only - the frames of interest. + * Source/GSPThread.h: + * Source/GSException.m: + Optimise generation of stack traces to store them in a single simple + malloced buffer and only generate an NSArray of return addresses if + actually requested. Also adjust output of stack trace to exclude the + top few frames involved in generation of the trace, so we see only + the frames of interest. 2018-03-16 Richard Frith-Macdonald - * Headers/Foundation/NSLock.h: Expose pointer to function handling - logging of deadlocks. - * Source/NSLock.m: Indirect via pointer so apps can intercept the - logging of deadlocks. - * Source/GSHTTPURLHandle.m: Provide more detailed debug logging. - * Source/NSURLProtocol.m: Provide more detailed debug logs. + * Headers/Foundation/NSLock.h: Expose pointer to function handling + logging of deadlocks. + * Source/NSLock.m: Indirect via pointer so apps can intercept the + logging of deadlocks. + * Source/GSHTTPURLHandle.m: Provide more detailed debug logging. + * Source/NSURLProtocol.m: Provide more detailed debug logs. 2018-02-25 Richard Frith-Macdonald - * Source/GSeq.h: Fixup error in last modification. - * Source/GSString.m: Add method to reliably get a GSUnicodeString - * Tests/base/NSString/test00.m: Fix tests to properly check range - searches using all combinations of 8bit and 16bit representation - strings. + * Source/GSeq.h: Fixup error in last modification. + * Source/GSString.m: Add method to reliably get a GSUnicodeString + * Tests/base/NSString/test00.m: Fix tests to properly check range + searches using all combinations of 8bit and 16bit representation + strings. 2018-02-25 Richard Frith-Macdonald - * Source/GSeq.h: Fix boundary checks searching for unicode strings. + * Source/GSeq.h: Fix boundary checks searching for unicode strings. 2018-02-16 Yavor Doganov - * Tests/base/NSNumberFormatter/basic10_4.m: Extend test expression - to fix test failure with ICU 60.2. + * Tests/base/NSNumberFormatter/basic10_4.m: Extend test expression + to fix test failure with ICU 60.2. 2018-02-11 Richard Frith-Macdonald - * Tools/gdomap.c: Fix strncat length limits. + * Tools/gdomap.c: Fix strncat length limits. 2018-02-09 Richard Frith-Macdonald - * Source/NSTimeZone.m: fix missing fieldwidth specified in fscanf call + * Source/NSTimeZone.m: fix missing fieldwidth specified in fscanf call 2018-02-09 Fred Kiefer - * Source/NSXMLElement.m(-addAttribute:): Correct linear list code - for name spaces. This fixes the last remaining Coverity issue. + * Source/NSXMLElement.m(-addAttribute:): Correct linear list code + for name spaces. This fixes the last remaining Coverity issue. 2018-02-08 Richard Frith-Macdonald - * Source/NSPortCoder.h - * Source/NSUnarchiver.h - Improve checks for loss of data converting sizes of scalar types. + * Source/NSPortCoder.h + * Source/NSUnarchiver.h + Improve checks for loss of data converting sizes of scalar types. 2018-02-07 Richard Frith-Macdonald - * Source/GSAttributedString.m: remove a little dead code - * Tests/base/NSMutableAttributedString/test00.m: add sanity checks - * Tests/base/NSMutableAttributedString/test01.m: add sanity checks - * Source/GSString.m: raise exception on character conversion failure - * Source/NSNumberFormatter.m: remove dead code - * Source/NSPropertyList.m: avoid warnings using cast to void - * Source/NSMessagePortNameServer.m: added security checks - * Source/NSDecimal.m: tweak underflow setting for negative numbers - * Tools/AGSHtml.m: remove useless test + * Source/GSAttributedString.m: remove a little dead code + * Tests/base/NSMutableAttributedString/test00.m: add sanity checks + * Tests/base/NSMutableAttributedString/test01.m: add sanity checks + * Source/GSString.m: raise exception on character conversion failure + * Source/NSNumberFormatter.m: remove dead code + * Source/NSPropertyList.m: avoid warnings using cast to void + * Source/NSMessagePortNameServer.m: added security checks + * Source/NSDecimal.m: tweak underflow setting for negative numbers + * Tools/AGSHtml.m: remove useless test 2018-02-07 Yavor Doganov - * Source/NSPortMessage.m (sendBeforeDate:): Invoke - -sendBeforeDate:msgid:components:from:reserved: so that the value - of _msgid is taken into account. - (initWithSendPort:receivePort:components:): Set _msgid to 0. + * Source/NSPortMessage.m (sendBeforeDate:): Invoke + -sendBeforeDate:msgid:components:from:reserved: so that the value + of _msgid is taken into account. + (initWithSendPort:receivePort:components:): Set _msgid to 0. 2018-02-06 Richard Frith-Macdonald - * Headers/Foundation/NSException.h: - * Source/NSAssertionHandler.m: - * Documentation/manual/ExceptionHandling.texi: - Update NSAssert() and NSCAssert() to handle variable arguments - (as OSX has done) and mark the numbered macros as obsolete. - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: Log if we fail to turn on keepalive - * Source/NSURL.m: fix possible nul pointer dereference - * Source/NSPropertyList.m: check step before use - * Source/NSDate.m: add comment that we are ignoring non-digits - * Source/NSCache.m: use double division for calcualting averrage - * Source/NSPredicate.m: check for termination of quoted strings + * Headers/Foundation/NSException.h: + * Source/NSAssertionHandler.m: + * Documentation/manual/ExceptionHandling.texi: + Update NSAssert() and NSCAssert() to handle variable arguments + (as OSX has done) and mark the numbered macros as obsolete. + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: Log if we fail to turn on keepalive + * Source/NSURL.m: fix possible nul pointer dereference + * Source/NSPropertyList.m: check step before use + * Source/NSDate.m: add comment that we are ignoring non-digits + * Source/NSCache.m: use double division for calcualting averrage + * Source/NSPredicate.m: check for termination of quoted strings 2018-02-05 Richard Frith-Macdonald - * Source/NSPortCoder.m: Remove redundant (always true) conditional. - Use cast to mask 64bit values. - * Source/NSUnarchiver.m: Remove redundant (always true) conditional. - * Source/NSPropertyList.m: Remove dead code - * Source/NSDecimal.m: Remove dead code, tweak underflow setting for - negated numbbers. - * Tools/gdnc.m: Remove dead code + * Source/NSPortCoder.m: Remove redundant (always true) conditional. + Use cast to mask 64bit values. + * Source/NSUnarchiver.m: Remove redundant (always true) conditional. + * Source/NSPropertyList.m: Remove dead code + * Source/NSDecimal.m: Remove dead code, tweak underflow setting for + negated numbbers. + * Tools/gdnc.m: Remove dead code 2018-02-04 Richard Frith-Macdonald - * Source/GSFileHandle.m: keep checker happy by using return value of - setsockopt. - * Source/Additions/Unicode.m: ensure iconv handle is closed - * Source/NSLocale.m: localeIdentifierFromComponents should cope with - collation alone being set. - * Source/GSString.m: better handling if character conversion fails. - * Source/NSRunLoop.m: suppress warning using cast. - * Source/NSTimeZone.m: check that time zone hour is in range 0 to 23 + * Source/GSFileHandle.m: keep checker happy by using return value of + setsockopt. + * Source/Additions/Unicode.m: ensure iconv handle is closed + * Source/NSLocale.m: localeIdentifierFromComponents should cope with + collation alone being set. + * Source/GSString.m: better handling if character conversion fails. + * Source/NSRunLoop.m: suppress warning using cast. + * Source/NSTimeZone.m: check that time zone hour is in range 0 to 23 2018-02-03 Richard Frith-Macdonald - * Source/GSFTPURLHandle.m: change memcpy to memmove to avoid possible - problems with overlapping source and destination areas. - * Source/Additions/Unicode.m: ensure iconv handle is closed - * Source/NSXMLParser.m: fix incorrect type assignment + * Source/GSFTPURLHandle.m: change memcpy to memmove to avoid possible + problems with overlapping source and destination areas. + * Source/Additions/Unicode.m: ensure iconv handle is closed + * Source/NSXMLParser.m: fix incorrect type assignment 2018-02-01 Fred Kiefer - * Source/GSFormat.m: Call va_end with the correct parameter. - * Source/NSObject+NSComparisonMethods.m: Add missing return. - * Source/GSString.m (-replaceCharactersInRange:withString:, - -initWithBytesNoCopy:...freeWhenDone:): Remove dead code. - * Source/NSDistantObject.m (-initWithCoder:): Remove dead code. - * Source/NSPredicate.m (_eval_avg:): Don't devide by zero. - Fix issues found by Coverity. + * Source/GSFormat.m: Call va_end with the correct parameter. + * Source/NSObject+NSComparisonMethods.m: Add missing return. + * Source/GSString.m (-replaceCharactersInRange:withString:, + -initWithBytesNoCopy:...freeWhenDone:): Remove dead code. + * Source/NSDistantObject.m (-initWithCoder:): Remove dead code. + * Source/NSPredicate.m (_eval_avg:): Don't devide by zero. + Fix issues found by Coverity. 2018-01-26 Richard Frith-Macdonald - * NSCharacterSets/GNUmakefile: - * NSCharacterSets/alphanumericCharSet.dat: - * NSCharacterSets/controlCharSet.dat: - * NSCharacterSets/dataToHeader.c: - * NSCharacterSets/decimalDigitCharSet.dat: - * NSCharacterSets/decomposableCharSet.dat: - * NSCharacterSets/illegalCharSet.dat: - * NSCharacterSets/letterCharSet.dat: - * NSCharacterSets/lowercaseLetterCharSet.dat: - * NSCharacterSets/newlineCharSet.dat: - * NSCharacterSets/nonBaseCharSet.dat: - * NSCharacterSets/punctuationCharSet.dat: - * NSCharacterSets/symbolAndOperatorCharSet.dat: - * NSCharacterSets/uppercaseLetterCharSet.dat: - * NSCharacterSets/whitespaceAndNlCharSet.dat: - * NSCharacterSets/whitespaceCharSet.dat: - Obsolete files deleted. - * NSCharacterSets/README.CharSet: updated - * Source/NSCharacterSetData.h: regenerated using the ucsdata library - and the charsets tools to take into account the fact that a unicode - zero width space should be counted as white space by us. - * Source/NSURL.m: A few OSX compatibility tweaks. - * Tests/base/NSURL/basic.m: A couple more OSX compatibility tests. + * NSCharacterSets/GNUmakefile: + * NSCharacterSets/alphanumericCharSet.dat: + * NSCharacterSets/controlCharSet.dat: + * NSCharacterSets/dataToHeader.c: + * NSCharacterSets/decimalDigitCharSet.dat: + * NSCharacterSets/decomposableCharSet.dat: + * NSCharacterSets/illegalCharSet.dat: + * NSCharacterSets/letterCharSet.dat: + * NSCharacterSets/lowercaseLetterCharSet.dat: + * NSCharacterSets/newlineCharSet.dat: + * NSCharacterSets/nonBaseCharSet.dat: + * NSCharacterSets/punctuationCharSet.dat: + * NSCharacterSets/symbolAndOperatorCharSet.dat: + * NSCharacterSets/uppercaseLetterCharSet.dat: + * NSCharacterSets/whitespaceAndNlCharSet.dat: + * NSCharacterSets/whitespaceCharSet.dat: + Obsolete files deleted. + * NSCharacterSets/README.CharSet: updated + * Source/NSCharacterSetData.h: regenerated using the ucsdata library + and the charsets tools to take into account the fact that a unicode + zero width space should be counted as white space by us. + * Source/NSURL.m: A few OSX compatibility tweaks. + * Tests/base/NSURL/basic.m: A couple more OSX compatibility tests. 2018-01-25 Richard Frith-Macdonald - * Headers/Foundation/NSException.h: - * Source/NSException.m: - * Source/Additions/NSObject+GNUstepBase.m: - Mark exception raising methods with GS_NORETURN_METHOD. - Alter noreturn method implementations so the compiler knows - that they really don't return. - Use pragma to suppress warnings about noreturn methods whose - formal declaration says they return an id. + * Headers/Foundation/NSException.h: + * Source/NSException.m: + * Source/Additions/NSObject+GNUstepBase.m: + Mark exception raising methods with GS_NORETURN_METHOD. + Alter noreturn method implementations so the compiler knows + that they really don't return. + Use pragma to suppress warnings about noreturn methods whose + formal declaration says they return an id. 2018-01-23 Richard Frith-Macdonald - * Source/Additions/NSNumber+GNUstepBase.m: - * Source/GSValue.m: - * Source/NSZone.m: - * Tools/gdomap.c: - Fix various small issues picked by automated checker. + * Source/Additions/NSNumber+GNUstepBase.m: + * Source/GSValue.m: + * Source/NSZone.m: + * Tools/gdomap.c: + Fix various small issues picked by automated checker. 2018-01-19 Richard Frith-Macdonald * Source/Makefile.postamble: Restore optimisation flags (removed 18 - years ago) for NSInvocation and NSConnection (and remove obsolete - mframe setting) as suggested by Yavor Doganov. + years ago) for NSInvocation and NSConnection (and remove obsolete + mframe setting) as suggested by Yavor Doganov. 2018-01-15 Richard Frith-Macdonald - * Source/NSThread.m: Improve exception message when performing a - selector on a finished thread. - * Source/NSTask.m: Do not try to notify task completion on a thread - that is not executing. - * configure.ac: Fix for older versions of pkg-config - * configure: regenerate + * Source/NSThread.m: Improve exception message when performing a + selector on a finished thread. + * Source/NSTask.m: Do not try to notify task completion on a thread + that is not executing. + * configure.ac: Fix for older versions of pkg-config + * configure: regenerate 2018-01-14 Yavor Doganov - * Tests/base/NSXMLDocument/basic.m: - * Tests/base/NSXMLDocument/cdata.m: - * Tests/base/NSXMLNode/basic.m: - * Tests/base/NSXMLElement/attributes.m: - * Tests/base/NSXMLElement/basic.m: - * Tests/base/NSXMLElement/children.m: - * Tests/base/NSXMLElement/transfer.m: - * Tests/base/NSXMLNode/children.m: - * Tests/base/NSXMLNode/description.m: - * Tests/base/NSXMLNode/kinds.m: - * Tests/base/NSXMLNode/namespaces.m: Skip tests if libxml2 is not - available. - * Tests/base/NSTimeZone/use.m: Skip one more test if - NSLOCALE_SUPPORTED is undefined. - * Tests/base/NSRegularExpression/basic.m: Skip all tests if ICU is - not available. + * Tests/base/NSXMLDocument/basic.m: + * Tests/base/NSXMLDocument/cdata.m: + * Tests/base/NSXMLNode/basic.m: + * Tests/base/NSXMLElement/attributes.m: + * Tests/base/NSXMLElement/basic.m: + * Tests/base/NSXMLElement/children.m: + * Tests/base/NSXMLElement/transfer.m: + * Tests/base/NSXMLNode/children.m: + * Tests/base/NSXMLNode/description.m: + * Tests/base/NSXMLNode/kinds.m: + * Tests/base/NSXMLNode/namespaces.m: Skip tests if libxml2 is not + available. + * Tests/base/NSTimeZone/use.m: Skip one more test if + NSLOCALE_SUPPORTED is undefined. + * Tests/base/NSRegularExpression/basic.m: Skip all tests if ICU is + not available. 2018-01-14 Richard Frith-Macdonald - * configure.ac: Remove explicit test for SAX2.h as we now assume - it is present based on the version of libxml2. - * configure: regenerate - * Source/GSXML.m: fix errors in loading/resolving of external entities - and fix the parsing methods to correctly return whether the xml was - validated against a DTD (when that feature is turned on). - * Tests/base/GSXML/basic.m: add a couple of tests for resolving - external references and validating against a DTD. + * configure.ac: Remove explicit test for SAX2.h as we now assume + it is present based on the version of libxml2. + * configure: regenerate + * Source/GSXML.m: fix errors in loading/resolving of external entities + and fix the parsing methods to correctly return whether the xml was + validated against a DTD (when that feature is turned on). + * Tests/base/GSXML/basic.m: add a couple of tests for resolving + external references and validating against a DTD. 2018-01-14 Yavor Doganov - * configure.ac: Use PKG_PROG_PKG_CONFIG instead of AC_PATH_PROG to - find pkg-config as it supports cross-compilation. - * configure.ac: Bump ICU requirement to >= 50 for UDAT_PATTERN. + * configure.ac: Use PKG_PROG_PKG_CONFIG instead of AC_PATH_PROG to + find pkg-config as it supports cross-compilation. + * configure.ac: Bump ICU requirement to >= 50 for UDAT_PATTERN. 2018-01-11 Richard Frith-Macdonald - * Source/NSXMLParser.m: OSX compatibility tweaks and correction - for setting entity resolution flag in sloppy parser. - * Headers/GNUstepBase/GSXML.h: new [-resolveEntities:] method to - enable resolving of external entities (now off by default). - * Source/Additions/GSXML.m: Changes to turn off resolving of - external entity references my default (adding a new method to turn - the feature back on) as a security fix to prevent xml injection - attacks (eg where an attacker gets the local password file substituted - into an xml document). - * Tests/base/NSXMLParser/parse.m: external entity resolution test. - * Tests/base/GSXML/basic.m: external entity resolution test. + * Source/NSXMLParser.m: OSX compatibility tweaks and correction + for setting entity resolution flag in sloppy parser. + * Headers/GNUstepBase/GSXML.h: new [-resolveEntities:] method to + enable resolving of external entities (now off by default). + * Source/Additions/GSXML.m: Changes to turn off resolving of + external entity references my default (adding a new method to turn + the feature back on) as a security fix to prevent xml injection + attacks (eg where an attacker gets the local password file substituted + into an xml document). + * Tests/base/NSXMLParser/parse.m: external entity resolution test. + * Tests/base/GSXML/basic.m: external entity resolution test. 2018-01-04 Richard Frith-Macdonald - * Source/NSObject.m: Fix bug with one path to object allocation - failing to record the object for memory debuggin purposes. + * Source/NSObject.m: Fix bug with one path to object allocation + failing to record the object for memory debuggin purposes. 2018-01-03 Richard Frith-Macdonald - * Source/NSURL.m: - Tweaks for OSX compatibility ... treat a missing path in an http URL - as an empty string rather than as nil. + * Source/NSURL.m: + Tweaks for OSX compatibility ... treat a missing path in an http URL + as an empty string rather than as nil. 2018-01-02 Richard Frith-Macdonald - * Source/NSFileManager.m: - * Tests/base/NSFileManager/general.m: - Added Graham Lee's fix for #51592 to not raise - an assertion, but rather call the handler if the source file being - copied does not exist. + * Source/NSFileManager.m: + * Tests/base/NSFileManager/general.m: + Added Graham Lee's fix for #51592 to not raise + an assertion, but rather call the handler if the source file being + copied does not exist. 2017-12-21 Richard Frith-Macdonald - * Source/NSSocketPort.m: - * Source/NSMessagePort.m: - * Source/win32/NSMessagePort.m: - There is a possible race condition when attempting to write a message - to a port; the port handle is added to the run loop and then the loop - is entered, but if an event occurs in the loop which invalidates the - handle and causes it to be removed from the loop before the lower - level code to wait for I/O is entered, the loop may never receive an - event on the handle and could wait indefinitely. - The solution is not to remove the handle from the loop when it is - invalidated or when an event occurs on an invalidated handle, but - only remove it in the method which added it. Of course, this means - we must make certain to remove it when we should, which means that - the loop must be run inside an exception handler which makes sure to - remove the handle from the loop before re-raising the exception. + * Source/NSSocketPort.m: + * Source/NSMessagePort.m: + * Source/win32/NSMessagePort.m: + There is a possible race condition when attempting to write a message + to a port; the port handle is added to the run loop and then the loop + is entered, but if an event occurs in the loop which invalidates the + handle and causes it to be removed from the loop before the lower + level code to wait for I/O is entered, the loop may never receive an + event on the handle and could wait indefinitely. + The solution is not to remove the handle from the loop when it is + invalidated or when an event occurs on an invalidated handle, but + only remove it in the method which added it. Of course, this means + we must make certain to remove it when we should, which means that + the loop must be run inside an exception handler which makes sure to + remove the handle from the loop before re-raising the exception. 2017-12-31 Ivan Vucica - * ANNOUNCE - * NEWS - * Documentation/ReleaseNotes.gsdoc - * Documentation/news.texi: Update release notes for 1.25.1 to - take note of compatibility improvement changes since release - notes were written, and to fix a typo. + * ANNOUNCE + * NEWS + * Documentation/ReleaseNotes.gsdoc + * Documentation/news.texi: Update release notes for 1.25.1 to + take note of compatibility improvement changes since release + notes were written, and to fix a typo. 2017-12-21 Riccardo Mottola - * Source/NSObject.m: - Cleanup previous commit. + * Source/NSObject.m: + Cleanup previous commit. 2017-12-21 Riccardo Mottola - * Source/NSObject.m: - Compatibility for OS/compiler not supporting weak symbols. + * Source/NSObject.m: + Compatibility for OS/compiler not supporting weak symbols. 2017-12-20 Richard Frith-Macdonald - * configure.ac: Remove obsolete --enable-objc-nonfragile-abi flag - when building for ng. - * configure: regenerate + * configure.ac: Remove obsolete --enable-objc-nonfragile-abi flag + when building for ng. + * configure: regenerate 2017-12-19 Richard Frith-Macdonald - * Version: 1.25.1 release - * Documentation/ReleaseNotes.gsdoc: update for release - * Documentation/news.texi: update for release - * ANNOUNCE: regenerate - * INSTALL: regenerate - * NEWS: regenerate - * README: regenerate + * Version: 1.25.1 release + * Documentation/ReleaseNotes.gsdoc: update for release + * Documentation/news.texi: update for release + * ANNOUNCE: regenerate + * INSTALL: regenerate + * NEWS: regenerate + * README: regenerate 2017-12-18 Graham Lee - * Source/NSJSONSerialization.m: Fix for bug #12 on github. This - makes sure that unsigned integer types are written as such, - avoiding a potential overflow. + * Source/NSJSONSerialization.m: Fix for bug #12 on github. This + makes sure that unsigned integer types are written as such, + avoiding a potential overflow. - * Tests/base/NSJSONSerialization/tests00.m: Test case for above. + * Tests/base/NSJSONSerialization/tests00.m: Test case for above. 2017-12-17 David Chisnall - * Source/NSObject.m: Refactor refcount usage. + * Source/NSObject.m: Refactor refcount usage. - This makes it easier for the runtime to change how reference - counts are - stored by removing any refcount manipulation from -base when - the runtime - provides accessors. This should have no functionality - change with - existing runtimes, but will let newer runtimes drop in - alternative - representations easily. + This makes it easier for the runtime to change how reference + counts are + stored by removing any refcount manipulation from -base when + the runtime + provides accessors. This should have no functionality + change with + existing runtimes, but will let newer runtimes drop in + alternative + representations easily. 2017-12-03 Fred Kiefer - * Headers/Foundation/NSFileManager.h - * Source/NSFileManager.m: Correct setting the delegate. - Add new symbolic link method. + * Headers/Foundation/NSFileManager.h + * Source/NSFileManager.m: Correct setting the delegate. + Add new symbolic link method. 2017-11-16 Richard Frith-Macdonald - * Source/NSArray.m: Fix for bug reported on github by zneak. + * Source/NSArray.m: Fix for bug reported on github by zneak. 2017-11-04 Fred Kiefer - * Source/GSLocale.m: Protect against - GSPrivateNativeCStringEncoding() corrupting the return value of - setlocale(). Bug #52331 reported by Jakub Wilk . + * Source/GSLocale.m: Protect against + GSPrivateNativeCStringEncoding() corrupting the return value of + setlocale(). Bug #52331 reported by Jakub Wilk . 2017-10-26 Stefan Bidigaray - * Source/NSDateFormatter.m: Fix how UDateFormat is created. Fixes - bug #52011. + * Source/NSDateFormatter.m: Fix how UDateFormat is created. Fixes + bug #52011. 2017-09-06 Richard Frith-Macdonald - * Source/NSThread.m: Improve handling in case where we try to perform - a method in a thread and it can't be woken (the pipe to awaken the run - loop is full). Instead of blocking forever, give up after a second. - Typically pipe buffers are from 4KB to 64KB so a full buffer almost - certainly indicates that the thread is hung. + * Source/NSThread.m: Improve handling in case where we try to perform + a method in a thread and it can't be woken (the pipe to awaken the run + loop is full). Instead of blocking forever, give up after a second. + Typically pipe buffers are from 4KB to 64KB so a full buffer almost + certainly indicates that the thread is hung. 2017-08-24 Stefan Bidigaray - * Source/NSLocale.m: Fix bug in ISO code methods. + * Source/NSLocale.m: Fix bug in ISO code methods. 2017-08-21 Richard Frith-Macdonald - * Source/NSURLProtocol.m: Fixed error where the presence of a - Location error was taken to indicate a redirect rather than looking - at the HTTP status code for a 3xx value. + * Source/NSURLProtocol.m: Fixed error where the presence of a + Location error was taken to indicate a redirect rather than looking + at the HTTP status code for a 3xx value. 2017-08-16 Daniel Ferreira - * Headers/Foundation/NSURLDownload.h: - As of macOS 10.7, NSURLDownloadDelegate is exposed formally as a - protocol. This adds the declaration to make this true for GNUstep. + * Headers/Foundation/NSURLDownload.h: + As of macOS 10.7, NSURLDownloadDelegate is exposed formally as a + protocol. This adds the declaration to make this true for GNUstep. 2017-08-15 Daniel Ferreira - * Headers/Foundation/NSTextCheckingResult.h: - Define missing constants in the NSTextCheckingResult header. + * Headers/Foundation/NSTextCheckingResult.h: + Define missing constants in the NSTextCheckingResult header. 2017-08-04 Daniel Ferreira - * Headers/Foundation/NSObjCRuntime.h: - Add empty definitions for OSX Availability macros for compatibility - purposes. + * Headers/Foundation/NSObjCRuntime.h: + Add empty definitions for OSX Availability macros for compatibility + purposes. 2017-07-10 Wolfgang Lux - * Source/GSString.m (lengthUTF8): - Characters outside the BMP cannot be converted to Latin 1 string - encoding either. - - * Tests/base/NSString/pairs.m (main): - * Tests/base/NSString/unichar_const.m: - Add test cases. + * Source/GSString.m (lengthUTF8): + Characters outside the BMP cannot be converted to Latin 1 string + encoding either. + * Tests/base/NSString/pairs.m (main): + * Tests/base/NSString/unichar_const.m: + Add test cases. 2017-07-07 Riccardo Mottola - * Source/NSProcessInfo.m: - Fix GetTickCount()/GetTickCount64() for different Windows versions. + * Source/NSProcessInfo.m: + Fix GetTickCount()/GetTickCount64() for different Windows versions. 2017-07-04 Richard Frith-Macdonald - * Source/NSObject.m: When an object's retain count is incremented too - far, track it so that we only raise an exception about it once (and - make the exception message more informative so we can more easily - tell what object has been leaked). + * Source/NSObject.m: When an object's retain count is incremented too + far, track it so that we only raise an exception about it once (and + make the exception message more informative so we can more easily + tell what object has been leaked). 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSFileManager.h - * Source/NSFileManager.m: - Implement a method for getting attribytes of a file system path. Reuse - the implementation of -fileSystemAttributesAtPath: for this purpose but - export the last system errors to the caller. Make - -fileSystemAttributesAtPath: use the new implementation, without - exposing error info to the caller. + * Headers/Foundation/NSFileManager.h + * Source/NSFileManager.m: + Implement a method for getting attribytes of a file system path. Reuse + the implementation of -fileSystemAttributesAtPath: for this purpose but + export the last system errors to the caller. Make + -fileSystemAttributesAtPath: use the new implementation, without + exposing error info to the caller. 2017-06-29 Daniel Ferreira - * Headers/Foundation/Foundation.h - * Headers/Foundation/NSFileCoordinator.h - * Headers/Foundation/NSFilePresenter.h - * Headers/Foundation/NSFileVersion.h - * Headers/Foundation/NSURLSession.h - * Source/GNUmakefile - * Source/NSFileCoordinator.m - * Source/NSFileVersion.m - * Source/NSURLSession.m: - Generate class stubs (without any method definition) for - NSFileCoordinator, NSFilePresenter, NSFileVersion and NSURLSession. + * Headers/Foundation/Foundation.h + * Headers/Foundation/NSFileCoordinator.h + * Headers/Foundation/NSFilePresenter.h + * Headers/Foundation/NSFileVersion.h + * Headers/Foundation/NSURLSession.h + * Source/GNUmakefile + * Source/NSFileCoordinator.m + * Source/NSFileVersion.m + * Source/NSURLSession.m: + Generate class stubs (without any method definition) for + NSFileCoordinator, NSFilePresenter, NSFileVersion and NSURLSession. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSURLConnection.h: - Currently, NSURLConnectionDelegate methods were defined as a category of - an NSObject. The same definitions were copied over to a new - NSURLConnectionDelegate protocol, introduced in OSX 10.7. + * Headers/Foundation/NSURLConnection.h: + Currently, NSURLConnectionDelegate methods were defined as a category of + an NSObject. The same definitions were copied over to a new + NSURLConnectionDelegate protocol, introduced in OSX 10.7. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSURLCredential.h - * Source/NSURLCredential.m: - Declare the NSURLCredentialPersistenceSynchronizable enumeration case to - NSURLCredential persistence options. Since GNUstep does not support - iCloud synchronization for credentials, this case will default to - NSURLCredentialPersistencePermanent. + * Headers/Foundation/NSURLCredential.h + * Source/NSURLCredential.m: + Declare the NSURLCredentialPersistenceSynchronizable enumeration case to + NSURLCredential persistence options. Since GNUstep does not support + iCloud synchronization for credentials, this case will default to + NSURLCredentialPersistencePermanent. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSURLProtectionSpace.h - * Source/GSHTTPAuthentication.m - * Source/NSURLProtectionSpace.m: - Improve handling of NSURL authentication methods. Make "HTMLForm" - authentication a no-op as it should be instead of making it fall back to - Basic authentication. + * Headers/Foundation/NSURLProtectionSpace.h + * Source/GSHTTPAuthentication.m + * Source/NSURLProtectionSpace.m: + Improve handling of NSURL authentication methods. Make "HTMLForm" + authentication a no-op as it should be instead of making it fall back to + Basic authentication. - Add stubs for NTLM and Negotiate IIS methods. They should be easily - implementable given the current framework for authentication methods. + Add stubs for NTLM and Negotiate IIS methods. They should be easily + implementable given the current framework for authentication methods. - Add stubs for ClientCertificate and ServerTrust authentication methods. - A blocker for supporting them is the lack of a Security.framework - implementation (since they rely on SecTrustRef). They would also require - additions to the current SSL handling code for GNUstep https requests. - Also stub the -distinguishedNames property of NSURLProtectionSpace, - which also deals with certificate-related authentication methods. + Add stubs for ClientCertificate and ServerTrust authentication methods. + A blocker for supporting them is the lack of a Security.framework + implementation (since they rely on SecTrustRef). They would also require + additions to the current SSL handling code for GNUstep https requests. + Also stub the -distinguishedNames property of NSURLProtectionSpace, + which also deals with certificate-related authentication methods. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSURLRequest.h: - Add new values for the NSURLCachePolicy enum. Although - NSURLRequestReloadIgnoringLocalAndRemoteCacheData and - NSURLRequestReloadRevalidatingCacheData have been left unimplemented, - the same applies for the reference platform, so not supporting it does - not break API compatibility. + * Headers/Foundation/NSURLRequest.h: + Add new values for the NSURLCachePolicy enum. Although + NSURLRequestReloadIgnoringLocalAndRemoteCacheData and + NSURLRequestReloadRevalidatingCacheData have been left unimplemented, + the same applies for the reference platform, so not supporting it does + not break API compatibility. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSZone.h: - Implement NSMakeCollectable(), an interface which makes CoreFoundation - objects eligible for garbage collection. - Since garbage collection is a totally deprecated API, and support has - now been removed from GNUstep, its implementation is a no-op. + * Headers/Foundation/NSZone.h: + Implement NSMakeCollectable(), an interface which makes CoreFoundation + objects eligible for garbage collection. + Since garbage collection is a totally deprecated API, and support has + now been removed from GNUstep, its implementation is a no-op. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSProcessInfo.h - * Source/NSProcessInfo.m: - Add stubs for sudden termination APIs and for application activity - management methods. + * Headers/Foundation/NSProcessInfo.h + * Source/NSProcessInfo.m: + Add stubs for sudden termination APIs and for application activity + management methods. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSProcessInfo.h - * Source/NSProcessInfo.m - * Tests/base/NSProcessInfo/general.m: - Introduce the systemUptime property to NSProcessInfo, which can compute - platform-independently what is the uptime of the system. + * Headers/Foundation/NSProcessInfo.h + * Source/NSProcessInfo.m + * Tests/base/NSProcessInfo/general.m: + Introduce the systemUptime property to NSProcessInfo, which can compute + platform-independently what is the uptime of the system. 2017-06-29 Daniel Ferreira - * Source/NSHTTPCookie.m - * Tests/base/NSHTTPCookie/basic.m: - Fix a bug in NSHTTPCookie's Set-Cookie parser where it would fail to - parse more than one key-only cookie (such as "Secure; HTTPOnly;") in a - header. + * Source/NSHTTPCookie.m + * Tests/base/NSHTTPCookie/basic.m: + Fix a bug in NSHTTPCookie's Set-Cookie parser where it would fail to + parse more than one key-only cookie (such as "Secure; HTTPOnly;") in a + header. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSHTTPCookie.h - * Source/NSHTTPCookie.m - * Tests/base/NSHTTPCookie/basic.m: - Add support for parsing HTTPOnly cookies (those that cannot be accessed - by clients). Implement -[NSHTTPCookie isHTTPOnly]. + * Headers/Foundation/NSHTTPCookie.h + * Source/NSHTTPCookie.m + * Tests/base/NSHTTPCookie/basic.m: + Add support for parsing HTTPOnly cookies (those that cannot be accessed + by clients). Implement -[NSHTTPCookie isHTTPOnly]. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSHTTPCookie.h: - Make -[NSHTTPCookie isSessionOnly] and -[NSHTTPCookie isSecure] methods - become properties if possible, so that they can be also queried as - `cookie.sessionOnly` and `cookie.secure`. This increases compatibility - with applications that rely on this notation. + * Headers/Foundation/NSHTTPCookie.h: + Make -[NSHTTPCookie isSessionOnly] and -[NSHTTPCookie isSecure] methods + become properties if possible, so that they can be also queried as + `cookie.sessionOnly` and `cookie.secure`. This increases compatibility + with applications that rely on this notation. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSFileManager.h - * Source/NSFileManager.m: - Create NSFileManagerDelegate, a more modern manner to verify whether to - proceed a file operation after an error or whether an operation should - actually be performed by NSFileManager. + * Headers/Foundation/NSFileManager.h + * Source/NSFileManager.m: + Create NSFileManagerDelegate, a more modern manner to verify whether to + proceed a file operation after an error or whether an operation should + actually be performed by NSFileManager. - No functionality using the delegate is yet implemented. + No functionality using the delegate is yet implemented. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSURL.h - * Source/NSURL.m - * Source/externs.m: - Create an unimplemented stub for NSURL's -getResourceValue:... method, - which can gather a numerous set of information about a URL. + * Headers/Foundation/NSURL.h + * Source/NSURL.m + * Source/externs.m: + Create an unimplemented stub for NSURL's -getResourceValue:... method, + which can gather a numerous set of information about a URL. - Define the constants which are passed into -getResourceValue:... for - requiring information so that a build that relies on this method does - not break. + Define the constants which are passed into -getResourceValue:... for + requiring information so that a build that relies on this method does + not break. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSURL.h: - Create the NSURL.fileURL property to increase compatibility with - applications that rely on this. + * Headers/Foundation/NSURL.h: + Create the NSURL.fileURL property to increase compatibility with + applications that rely on this. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSURL.h - * Source/NSURL.m: - The OSX filesystem implements "aliases", a species of symlink which - tracks its source if it was moved. Create stubs for the NSURL functions - which handle these aliases. + * Headers/Foundation/NSURL.h + * Source/NSURL.m: + The OSX filesystem implements "aliases", a species of symlink which + tracks its source if it was moved. Create stubs for the NSURL functions + which handle these aliases. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSURL.h - * Source/NSURL.m: - Implement +[NSURL fileURLWithPath:isDirectory:], a class method added in - OSX 10.5, which was missing from the implementation. + * Headers/Foundation/NSURL.h + * Source/NSURL.m: + Implement +[NSURL fileURLWithPath:isDirectory:], a class method added in + OSX 10.5, which was missing from the implementation. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSCoder.h - * Headers/Foundation/NSObject.h - * Source/NSCoder.m - * Source/NSKeyedUnarchiver.m: - Implement stubs for NSSecureCoding which do not break projects that rely - on it. + * Headers/Foundation/NSCoder.h + * Headers/Foundation/NSObject.h + * Source/NSCoder.m + * Source/NSKeyedUnarchiver.m: + Implement stubs for NSSecureCoding which do not break projects that rely + on it. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSDate.h - * Source/NSDate.m: - Declare a system clock change notification. Base still does not emit - this notification, but this allows applications that wait for it not to - have their build broken. + * Headers/Foundation/NSDate.h + * Source/NSDate.m: + Declare a system clock change notification. Base still does not emit + this notification, but this allows applications that wait for it not to + have their build broken. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSObjCRuntime.h: - Create the NS_ROOT_CLASS macro, a wrapper around the objc_root_class - compiler attribute. + * Headers/Foundation/NSObjCRuntime.h: + Create the NS_ROOT_CLASS macro, a wrapper around the objc_root_class + compiler attribute. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSObjCRuntime.h: - Make NS_AVAILABLE and NS_CLASS_AVAILABLE macros no-ops so that their - absence does not break projects that rely on it. + * Headers/Foundation/NSObjCRuntime.h: + Make NS_AVAILABLE and NS_CLASS_AVAILABLE macros no-ops so that their + absence does not break projects that rely on it. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSCalendar.h: - Update NSCalendarUnit definitions with a newer specification from Cocoa. + * Headers/Foundation/NSCalendar.h: + Update NSCalendarUnit definitions with a newer specification from Cocoa. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSCalendar.h: - Add the NSCalendarOptions enum to NSCalendar for compatibility purposes. - While NSCalendar does not yet know how to handle them, it will not - generate build errors in projects that attempt to use them. + * Headers/Foundation/NSCalendar.h: + Add the NSCalendarOptions enum to NSCalendar for compatibility purposes. + While NSCalendar does not yet know how to handle them, it will not + generate build errors in projects that attempt to use them. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSCalendar.h - * Source/NSCalendar.m - * Source/NSLocale.m: - Add new calendar identifier constants to NSCalendar, to add - compatibility for newer OSX applications. Some identifiers do not hold - parity with the older equivalents and have been left unimplemented, with - the gregorian calendar as a fallback. + * Headers/Foundation/NSCalendar.h + * Source/NSCalendar.m + * Source/NSLocale.m: + Add new calendar identifier constants to NSCalendar, to add + compatibility for newer OSX applications. Some identifiers do not hold + parity with the older equivalents and have been left unimplemented, with + the gregorian calendar as a fallback. 2017-06-29 Daniel Ferreira - * Headers/Foundation/NSGeometry.h - * Source/NSGeometry.m - * Tests/base/Functions/NSGeometry1.m: - Create the NSEdgeInsets struct in NSGeometry, introduced in OSX 10.7. - Add helper functions for creating these insets. + * Headers/Foundation/NSGeometry.h + * Source/NSGeometry.m + * Tests/base/Functions/NSGeometry1.m: + Create the NSEdgeInsets struct in NSGeometry, introduced in OSX 10.7. + Add helper functions for creating these insets. - This struct is not used in Base. Rather, it is used as part of newer - APIs in GUI. + This struct is not used in Base. Rather, it is used as part of newer + APIs in GUI. 2017-06-29 Daniel Ferreira - * Headers/Foundation/FoundationErrors.h: - Create a no-file-exists error to the FoundationErrors enums. No function - is yet implemented to throw this error, but it has been added for - compatibility with applications that handle it. + * Headers/Foundation/FoundationErrors.h: + Create a no-file-exists error to the FoundationErrors enums. No function + is yet implemented to throw this error, but it has been added for + compatibility with applications that handle it. 2017-06-29 Daniel Ferreira - * Headers/GNUstepBase/GSVersionMacros.h: - To keep compatibility with compilers prior to Objective-C 2.0 support, - added in the GCC 4.6 series, we are unable to always declare @property - attributes in classes. However, compatibility with dot-syntax - applications require us to define properties if we can. + * Headers/GNUstepBase/GSVersionMacros.h: + To keep compatibility with compilers prior to Objective-C 2.0 support, + added in the GCC 4.6 series, we are unable to always declare @property + attributes in classes. However, compatibility with dot-syntax + applications require us to define properties if we can. - We already had some checks for the GS_HAS_DECLARED_PROPERTIES macro to - see whether we could or could not declare properties (or whether we - should fall back to manual getter/setter defining). However, it seems - this macro never got defined. + We already had some checks for the GS_HAS_DECLARED_PROPERTIES macro to + see whether we could or could not declare properties (or whether we + should fall back to manual getter/setter defining). However, it seems + this macro never got defined. - This commit adds this macro, checking whether we possess either GCC >= - 4.6 or Clang. + This commit adds this macro, checking whether we possess either GCC >= + 4.6 or Clang. 2017-06-29 Daniel Ferreira - * .gitignore: - Create a .gitignore file to ease Base development using the Git version - control system. This stops object files, automake products and test - files from being accidentally inserted into the tree. + * .gitignore: + Create a .gitignore file to ease Base development using the Git version + control system. This stops object files, automake products and test + files from being accidentally inserted into the tree. 2017-06-21 Richard Frith-Macdonald - * Source/NSDistributedLock.m: Revert recent changes to use O/S - specific system calls, and depend on new behavior of the - -createDirectoryAtPath:attributes: method instead. Add comment. + * Source/NSDistributedLock.m: Revert recent changes to use O/S + specific system calls, and depend on new behavior of the + -createDirectoryAtPath:attributes: method instead. Add comment. 2017-06-18 Richard Frith-Macdonald - * Source/NSFileManager.m: Make directory creation semantics match OSX - * Tests/base/NSFileManager/general.m: Add directory creation testcases - * Tests/base/NSDistributedLock/basic.m: Cleanup lock after tests + * Source/NSFileManager.m: Make directory creation semantics match OSX + * Tests/base/NSFileManager/general.m: Add directory creation testcases + * Tests/base/NSDistributedLock/basic.m: Cleanup lock after tests 2017-06-17 Richard Frith-Macdonald - * Headers/GNUstepBase/GSIMap.h: Fix GSI_MAP_NODE_IS_EMPTY macros as - suggested by Daniel Ferreira + * Headers/GNUstepBase/GSIMap.h: Fix GSI_MAP_NODE_IS_EMPTY macros as + suggested by Daniel Ferreira 2017-06-16 Richard Frith-Macdonald - * Source/NSDistributedLock.m: Change code to create lock directory - directly rather than via the NSFileManager methods since Wolfgang - pointed out that those methods consider a pre-existing directory to - have been successfully created, but the distributed locking logic - supposes that an attempt to create an existing directory will fail. - * Tests/base/NSDistributedLock: - * Tests/base/NSDistributedLock/TestInfo: - * Tests/base/NSDistributedLock/basic.m: - Add a few simple testcases for NSDistributedLock. + * Source/NSDistributedLock.m: Change code to create lock directory + directly rather than via the NSFileManager methods since Wolfgang + pointed out that those methods consider a pre-existing directory to + have been successfully created, but the distributed locking logic + supposes that an attempt to create an existing directory will fail. + * Tests/base/NSDistributedLock: + * Tests/base/NSDistributedLock/TestInfo: + * Tests/base/NSDistributedLock/basic.m: + Add a few simple testcases for NSDistributedLock. 2017-05-19 Richard Frith-Macdonald - * Headers/Foundation/NSFileHandle.h: - * Source/GSSocketStream.m: - * Source/GSTLS.h: - * Source/GSTLS.m: - * Source/NSFileHandle.m: - Add code to make the issuer and owner of a client certificate - available when we require/verify an incoming certificate. + * Headers/Foundation/NSFileHandle.h: + * Source/GSSocketStream.m: + * Source/GSTLS.h: + * Source/GSTLS.m: + * Source/NSFileHandle.m: + Add code to make the issuer and owner of a client certificate + available when we require/verify an incoming certificate. 2017-05-10 Wolfgang Lux - * Tools/gdomap.c (nameServer, donames): Fix incorrect use - addresses returned from getaddrinfo. + * Tools/gdomap.c (nameServer, donames): Fix incorrect use + addresses returned from getaddrinfo. 2017-04-24 Richard Frith-Macdonald - * Tools/AGSOutput.m: When generating class/method links, treat '[' - as the start of a class/method only if it's the start of a comment - or is preceded by white space ... allows array syntax like foo[x] to - be used in a comment without attempting to link to a class named 'x'. + * Tools/AGSOutput.m: When generating class/method links, treat '[' + as the start of a class/method only if it's the start of a comment + or is preceded by white space ... allows array syntax like foo[x] to + be used in a comment without attempting to link to a class named 'x'. 2017-04-14 Richard Frith-Macdonald - * Version: 1.25.0 release - * Documentation/ReleaseNotes.gsdoc: update for release - * Documentation/news.texi: update for release - * ANNOUNCE: regenerate - * INSTALL: regenerate - * NEWS: regenerate - * README: regenerate + * Version: 1.25.0 release + * Documentation/ReleaseNotes.gsdoc: update for release + * Documentation/news.texi: update for release + * ANNOUNCE: regenerate + * INSTALL: regenerate + * NEWS: regenerate + * README: regenerate 2017-04-09 Richard Frith-Macdonald * Source/NSPredicate.m: * Tests/base/NSPredicate/basic.m: - Fixes for bug #47618. + Fixes for bug #47618. 2017-04-09 Richard Frith-Macdonald - * Headers/Foundation/NSTask.h: - * Source/NSTask.m: - Apply OSX compatibility fix for NSTask notifications (bug #49021) - by Larry Campbell. + * Headers/Foundation/NSTask.h: + * Source/NSTask.m: + Apply OSX compatibility fix for NSTask notifications (bug #49021) + by Larry Campbell. 2017-04-03 Richard Frith-Macdonald - * Source/NSOperation.m: Fix leak spotted by David Lobron. + * Source/NSOperation.m: Fix leak spotted by David Lobron. 2017-04-01 Riccardo Mottola - * Source/NSConnection.m - Correct format specifier to char* + * Source/NSConnection.m + Correct format specifier to char* 2017-03-17 Riccardo Mottola - * Source/NSFileManager.m:(nextObject of Enumerator) - Skip file if no valid filename could be retrieved most probably due - to Charset mismatches, this is is more a last resort: probably a - lossy conversion should be attempted before. + * Source/NSFileManager.m:(nextObject of Enumerator) + Skip file if no valid filename could be retrieved most probably due + to Charset mismatches, this is is more a last resort: probably a + lossy conversion should be attempted before. 2017-03-17 Richard Frith-Macdonald - * Source/NSTimeZones/NSTimeZones.tar: Updated with latest information. + * Source/NSTimeZones/NSTimeZones.tar: Updated with latest information. 2017-03-17 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Implement NSNonLossyASCIIStringEncoding - in a manner compatible with OSX. Added regression tests. + * Source/Additions/Unicode.m: Implement NSNonLossyASCIIStringEncoding + in a manner compatible with OSX. Added regression tests. 2017-02-11 Wolfgang Lux - * Source/GSICUString.m (UTextNSStringAccess, - UTextInitWithNSMutableString, UTextInitWithNSString): - Fix a serious misunderstanding of the icu string access API: The - value of nativeIndexingLimit must not exceed the length of the - current chunk. Otherwise icu library macros could miss to properly - reinitialize chunks, which, for instance, could lead to returning - regular expression matches outside the selected range. + * Source/GSICUString.m (UTextNSStringAccess, + UTextInitWithNSMutableString, UTextInitWithNSString): + Fix a serious misunderstanding of the icu string access API: The + value of nativeIndexingLimit must not exceed the length of the + current chunk. Otherwise icu library macros could miss to properly + reinitialize chunks, which, for instance, could lead to returning + regular expression matches outside the selected range. 2017-01-06 Richard Frith-Macdonald - * Tools/gdomap.c: Use getaddrinfo rather than gethostbyname if - available (bug #50032). + * Tools/gdomap.c: Use getaddrinfo rather than gethostbyname if + available (bug #50032). 2016-12-06 Richard Frith-Macdonald - * Tools/AGSParser.m: Fix missing line preventing documentation of - enumeration constants. + * Tools/AGSParser.m: Fix missing line preventing documentation of + enumeration constants. 2016-11-28 Wolfgang Lux - * Source/Additions/NSCalendarDate+GNUstepBase.m (weekOfYear): Fix - an off by 1 calculation which meant that weekOfYear would return 2 - for the first week of a year whenever the first Thursday of that - year is 7 Jan, for instance 2016. + * Source/Additions/NSCalendarDate+GNUstepBase.m (weekOfYear): Fix + an off by 1 calculation which meant that weekOfYear would return 2 + for the first week of a year whenever the first Thursday of that + year is 7 Jan, for instance 2016. 2016-11-10 Richard Frith-Macdonald - * Source/NSPortCoder.m: - * Source/NSUnarchiver.m: - Fix for logic error decoding archives created by a machine with a - different word size. Was checking the size of the encoded scalar - item, but not against the *local* size of the same type. + * Source/NSPortCoder.m: + * Source/NSUnarchiver.m: + Fix for logic error decoding archives created by a machine with a + different word size. Was checking the size of the encoded scalar + item, but not against the *local* size of the same type. 2016-11-08 Richard Frith-Macdonald - * Source/NSObject.m: Fix error in last mod ... was calculating opbject - layout incorrectly when fast-ARC moce used on 64bit system. - Also simplified by removing special case optimising for single-threaded - programs and use inline decrement to improve performance of release. + * Source/NSObject.m: Fix error in last mod ... was calculating opbject + layout incorrectly when fast-ARC moce used on 64bit system. + Also simplified by removing special case optimising for single-threaded + programs and use inline decrement to improve performance of release. 2016-10-28 Niels Grewe - * Source/NSObject.m: Re-enable fast-ARC mode when memory layout - and atomic operations support permit. This changes the size of the - field where the reference count is stored to the size of a pointer - in some configurations. - The effective maximum reference count is still 2^24 - 1. + * Source/NSObject.m: Re-enable fast-ARC mode when memory layout + and atomic operations support permit. This changes the size of the + field where the reference count is stored to the size of a pointer + in some configurations. + The effective maximum reference count is still 2^24 - 1. 2016-10-27 Wolfgang Lux - * Source/NSObject.m: Comment out _ARCCompliantRetainRelease for - now because the retain count representation in gnustep-base and - libobjc2 differs causing space leaks on 64-bit architectures. + * Source/NSObject.m: Comment out _ARCCompliantRetainRelease for + now because the retain count representation in gnustep-base and + libobjc2 differs causing space leaks on 64-bit architectures. 2016-10-24 Richard Frith-Macdonald - * Source/NSData.m: Only atempt to read regular files into NSData, - * Source/NSMessagePortNameServer.m: Ignore lock directories in the - 'names' directory. - * Source/NSTask.m Increase files to close from 256 to 2048 to better - reflect typical modern system limits. - All changes for problems spotted by Wolfgang. + * Source/NSData.m: Only atempt to read regular files into NSData, + * Source/NSMessagePortNameServer.m: Ignore lock directories in the + 'names' directory. + * Source/NSTask.m Increase files to close from 256 to 2048 to better + reflect typical modern system limits. + All changes for problems spotted by Wolfgang. 2016-10-21 Richard Frith-Macdonald - * Headers/Foundation/NSDate.h: Add documentation - * Source/NSDate.m: Tidy up and remove a little redundant code. - * Source/NSRunLoop.m: Tidy up and empty autorelease pool more often. - * Source/NSTimer.m: Tidy a little and improvde -description + * Headers/Foundation/NSDate.h: Add documentation + * Source/NSDate.m: Tidy up and remove a little redundant code. + * Source/NSRunLoop.m: Tidy up and empty autorelease pool more often. + * Source/NSTimer.m: Tidy a little and improvde -description 2016-10-14 Richard Frith-Macdonald - * Headers/GNUstepBase/GSTLS.h: - * Source/GSTLS.m: - Fix for double free issues when assigning certificat/key to - credentials fails. + * Headers/GNUstepBase/GSTLS.h: + * Source/GSTLS.m: + Fix for double free issues when assigning certificat/key to + credentials fails. 2016-10-12 Niels Grewe - * Source/NSRegularExpression.m: Fix crashes in libicu due to + * Source/NSRegularExpression.m: Fix crashes in libicu due to * ignored error codes. Also fix a few memory leaks. - * Tests/base/NSRegularExpression/basic.m: Test cases for this. + * Tests/base/NSRegularExpression/basic.m: Test cases for this. 2016-10-11 Niels Grewe - * Source/GSTLS.m - * configure.ac - * Headers/GNUstepBase/config.h.in: - Check for gnutls_x509_privkey_import2() and use it if - available. - * configure: Regenerate - * Tests/base/GSTLS: - Test case for loading an OpenSSL encrypted private key. + * Source/GSTLS.m + * configure.ac + * Headers/GNUstepBase/config.h.in: + Check for gnutls_x509_privkey_import2() and use it if + available. + * configure: Regenerate + * Tests/base/GSTLS: + Test case for loading an OpenSSL encrypted private key. 2016-10-05 Richard Frith-Macdonald - * Source/NSFileManager.m: Check for modification of source file - during copy. + * Source/NSFileManager.m: Check for modification of source file + during copy. 2016-10-05 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Permit noncharacter unicode codepoints - * Source/GSString.m: Permit noncharacter unicode codepoints - * Source/NSNotificationQueue.m: Call GSPrivateCheckTasks() - * Source/NSRunLoop.m: Let GSPrivateNotifyASAP() check for task exit. + * Source/Additions/Unicode.m: Permit noncharacter unicode codepoints + * Source/GSString.m: Permit noncharacter unicode codepoints + * Source/NSNotificationQueue.m: Call GSPrivateCheckTasks() + * Source/NSRunLoop.m: Let GSPrivateNotifyASAP() check for task exit. 2016-09-19 Niels Grewe > - * Source/Additions/GSMime.m (charsetForXml): - Fix detection of charset in XML document. - * Tests/base/GSMime/xml-charset.m: Test case. + * Source/Additions/GSMime.m (charsetForXml): + Fix detection of charset in XML document. + * Tests/base/GSMime/xml-charset.m: Test case. 2016-09-16 Wolfgang Lux - * Source/Additions/GSMime.m (convertTo7BitSafe): - Add missing checks to avoid calling caseInsensitiveCompare: with a - nil argument. + * Source/Additions/GSMime.m (convertTo7BitSafe): + Add missing checks to avoid calling caseInsensitiveCompare: with a + nil argument. 2016-09-16 Niels Grewe - * Source/GSTLS.m: Fix bug removing mapped certificates. + * Source/GSTLS.m: Fix bug removing mapped certificates. 2016-09-06 Richard Frith-Macdonald - * Headers/Foundation/NSScanner.h: - * Source/NSScanner.m: - * Tests/base/NSScanner/test01.m: - Add support for scanHexLongLong method inspired/based on patch from - Abbas Raza, but with minor bugfixes, reduced code duplication, and - avoiding compiler warnings. + * Headers/Foundation/NSScanner.h: + * Source/NSScanner.m: + * Tests/base/NSScanner/test01.m: + Add support for scanHexLongLong method inspired/based on patch from + Abbas Raza, but with minor bugfixes, reduced code duplication, and + avoiding compiler warnings. 2016-08-30 Abbas Raza - * Source/NSJSONSerialization.m: Generate NSError rather than raising - exception if the trailing '"' in the dsocument is missing. + * Source/NSJSONSerialization.m: Generate NSError rather than raising + exception if the trailing '"' in the dsocument is missing. 2016-08-28 Richard Frith-Macdonald - * Source/GSMime.m: Fix typo which was causing premature termination of - long headers. + * Source/GSMime.m: Fix typo which was causing premature termination of + long headers. 2016-08-19 Richard Frith-Macdonald - * config/objc-common.g: Darwin patch by David Wetzel - * Source/CompatibilityHeaders.make: Delete obsolete file - * configure.ac: Check for libdispatch runloop integration functions - * Headers/GNUstepBase/GSConfig.h.in: New define for libdispatch - * config.mak.in: New define for libdispatch - * Tests/base/NSRunLoop/dispatch.m: Use new define - * configure: Regenerate - * Source/Additions/Makefile.preamble: - * Source/GNUmakefile: - * Source/Makefile.postamble: - * Source/Makefile.preamble: - * Source/ObjectiveC2/Makefile.preamble: - * Source/unix/Makefile.preamble: - * Source/win32/Makefile.preamble: - * Tools/Makefile.preamble: - * Tools/make_strings/GNUmakefile.preamble: - Mostly tweaks for building cleanly non-flattened and removal of a few - long deprecated directories/headers. - Configuration time change by David Wetzel for building on OSX + * config/objc-common.g: Darwin patch by David Wetzel + * Source/CompatibilityHeaders.make: Delete obsolete file + * configure.ac: Check for libdispatch runloop integration functions + * Headers/GNUstepBase/GSConfig.h.in: New define for libdispatch + * config.mak.in: New define for libdispatch + * Tests/base/NSRunLoop/dispatch.m: Use new define + * configure: Regenerate + * Source/Additions/Makefile.preamble: + * Source/GNUmakefile: + * Source/Makefile.postamble: + * Source/Makefile.preamble: + * Source/ObjectiveC2/Makefile.preamble: + * Source/unix/Makefile.preamble: + * Source/win32/Makefile.preamble: + * Tools/Makefile.preamble: + * Tools/make_strings/GNUmakefile.preamble: + Mostly tweaks for building cleanly non-flattened and removal of a few + long deprecated directories/headers. + Configuration time change by David Wetzel for building on OSX 2016-07-27 Niels Grewe - * Header/Foundation/NSData.h - * Source/NSData.m: - Make the deallocator block a direct ivar of NSDataMalloc - (or NSMutableDataMalloc respectively). Breaks binary - compatibility but avoids reallocating objects based on - the initializer used. + * Header/Foundation/NSData.h + * Source/NSData.m: + Make the deallocator block a direct ivar of NSDataMalloc + (or NSMutableDataMalloc respectively). Breaks binary + compatibility but avoids reallocating objects based on + the initializer used. 2016-07-26 Niels Grewe - * Source/NSDictionary.m - * Tests/base/NSDictionary/general.m: - Fix -getObjects:andKeys: - + * Source/NSDictionary.m + * Tests/base/NSDictionary/general.m: + Fix -getObjects:andKeys: + 2016-07-26 Niels Grewe - * Headers/Foundation/NSData.h - * Source/NSData.m - * Tests/base/NSData/general.m: - Implement OS X 10.9 method -initWithBytesNoCopy:length:deallocator: - that allows customising data deallocation based on a caller - supplied block. Also adds test cases for this functionality. + * Headers/Foundation/NSData.h + * Source/NSData.m + * Tests/base/NSData/general.m: + Implement OS X 10.9 method -initWithBytesNoCopy:length:deallocator: + that allows customising data deallocation based on a caller + supplied block. Also adds test cases for this functionality. 2016-07-26 Richard Frith-Macdonald - * Source/GSStream.m: - * Source/GSSocketStream.m: - In -close we should close the underlying file descriptor (even if the - stream has not formally been opened yet) to ensure we don't leak it. - In -dealloc, if the file descriptor still exists, we should call the - -close method. + * Source/GSStream.m: + * Source/GSSocketStream.m: + In -close we should close the underlying file descriptor (even if the + stream has not formally been opened yet) to ensure we don't leak it. + In -dealloc, if the file descriptor still exists, we should call the + -close method. 2016-07-26 Richard Frith-Macdonald - * Source/Additions/NSObject+GNUstepbase.m: use separate lock to - protect at exit methods ... avoid conflict/deadlock with multithreaded - notification change. + * Source/Additions/NSObject+GNUstepbase.m: use separate lock to + protect at exit methods ... avoid conflict/deadlock with multithreaded + notification change. 2016-07-18 Larry Campbell - * Source/NSThread.m: Send notification about becoming multithreaded - when the new thread is registered from outside our API. + * Source/NSThread.m: Send notification about becoming multithreaded + when the new thread is registered from outside our API. 2016-07-18 Richard Frith-Macdonald - * Source/NSOperation.m: avoid sorting the queue ... keep the array of - waiting operations sorted by inserting new operations at the correct - position and observing the queuePriority of waiting operations (and - re-positiuoning them in the waiting array as necessary). - Fix for scalability problem (bug #47926) + * Source/NSOperation.m: avoid sorting the queue ... keep the array of + waiting operations sorted by inserting new operations at the correct + position and observing the queuePriority of waiting operations (and + re-positiuoning them in the waiting array as necessary). + Fix for scalability problem (bug #47926) 2016-07-16 Richard Frith-Macdonald - * Source/win32/GSRunLoopCtxt.m: fix bug in return value when polling. - The poll method must return YES if any input source fired, including - handling of windows messages which are already available and require - no wait. + * Source/win32/GSRunLoopCtxt.m: fix bug in return value when polling. + The poll method must return YES if any input source fired, including + handling of windows messages which are already available and require + no wait. 2016-07-15 Richard Frith-Macdonald @@ -5709,92 +5720,92 @@ * Source/GSSorting.h: * Source/GSTimSort.m: * Source/NSSortDescriptor.m: - Make sorting algorithms selectable at runtime rather than compile - time. + Make sorting algorithms selectable at runtime rather than compile + time. 2016-07-13 Richard Frith-Macdonald - * Source/NSRunLoop.m (-acceptInputForMode:beforeDate:): - Closer to OSX behavior ... when accepting input we should fire all - timers (possibly repeatedly) since a timer is not counted as an - input source. Also simplify housekeeping timer so that it will - keep loops running as it does on OSX. + * Source/NSRunLoop.m (-acceptInputForMode:beforeDate:): + Closer to OSX behavior ... when accepting input we should fire all + timers (possibly repeatedly) since a timer is not counted as an + input source. Also simplify housekeeping timer so that it will + keep loops running as it does on OSX. 2016-07-12 Niels Grewe - * Headers/Foundation/NSObjCRuntime.h - * Headers/GNUstepBase/GNUstep.h: + * Headers/Foundation/NSObjCRuntime.h + * Headers/GNUstepBase/GNUstep.h: - Add NS_DESIGNATED_INITIALIZER macro + Add NS_DESIGNATED_INITIALIZER macro 2016-07-12 Richard Frith-Macdonald - * Source/GSICUString.m (UTextNSStringAccess): - Fix to use signed integer variables so all the comparisons with zero - as a boundary actually work as intended etc (spotted by Wolfgang). - * Source/NSRunLoop.m: Closer to OSX behavior ... a nil date is treated - like a date in the distant past (ie loop terminates at once), and the - (-runUntilDate:) method fires any pending timers when given a date in - the past. + * Source/GSICUString.m (UTextNSStringAccess): + Fix to use signed integer variables so all the comparisons with zero + as a boundary actually work as intended etc (spotted by Wolfgang). + * Source/NSRunLoop.m: Closer to OSX behavior ... a nil date is treated + like a date in the distant past (ie loop terminates at once), and the + (-runUntilDate:) method fires any pending timers when given a date in + the past. 2016-07-12 Wolfgang Lux - * Source/GSICUString.m (UTextNSStringAccess): Fix unsigned - comparison to properly detect integer underflows. + * Source/GSICUString.m (UTextNSStringAccess): Fix unsigned + comparison to properly detect integer underflows. 2016-07-06 Niels Grewe - * Tests/base/NSRegularExpression/basic.m: Test for -pattern - double free. + * Tests/base/NSRegularExpression/basic.m: Test for -pattern + double free. 2016-07-06 Wolfgang Lux - * Source/NSRegularExpression.m (-pattern): Fix bug where a UText - structure owned by the icu library is incorrectly closed, which - was causing a crash when -pattern is called more than once for the - same NSRegularExpression. + * Source/NSRegularExpression.m (-pattern): Fix bug where a UText + structure owned by the icu library is incorrectly closed, which + was causing a crash when -pattern is called more than once for the + same NSRegularExpression. 2016-07-02 Richard Frith-Macdonald - * Source/NSKeyValueObserving.m: Remove some unnecessary locking - * Source/NSOperation.m: Simplify handling of finishing of operation - to avoid occasional deadlock if an operation finishes in one thread - while in another thread we are waiting for it. + * Source/NSKeyValueObserving.m: Remove some unnecessary locking + * Source/NSOperation.m: Simplify handling of finishing of operation + to avoid occasional deadlock if an operation finishes in one thread + while in another thread we are waiting for it. 2016-07-01 Richard Frith-Macdonald - * Source/GSICUString.m: For immutable strings, cache the string - length in the UText structure to avoid repeated calls to -length + * Source/GSICUString.m: For immutable strings, cache the string + length in the UText structure to avoid repeated calls to -length 2016-06-30 Richard Frith-Macdonald - * Source/GSICUString.m: Re-implement the function to let ICU access - the contents of an NSString. The original version looks like it was - broken for cases where an algorithm is moving backwards in the string - (reverse search and regular expression parsing). - I hope the new implementation is correct (or at least clearer); the - ICU documentation is minimal and I didn't find any reference/example - implementations to work from. + * Source/GSICUString.m: Re-implement the function to let ICU access + the contents of an NSString. The original version looks like it was + broken for cases where an algorithm is moving backwards in the string + (reverse search and regular expression parsing). + I hope the new implementation is correct (or at least clearer); the + ICU documentation is minimal and I didn't find any reference/example + implementations to work from. 2016-06-28 Richard Frith-Macdonald - * Source/NSDebug.m: Yse setjmp/longjmp from NSException.h - * Headers/Foundation/NSException.h: On mingw-w64 use the builtin - setjmp/longjmp provided by gcc since the mingw version sometimes - crashes. + * Source/NSDebug.m: Yse setjmp/longjmp from NSException.h + * Headers/Foundation/NSException.h: On mingw-w64 use the builtin + setjmp/longjmp provided by gcc since the mingw version sometimes + crashes. 2016-06-28 Richard Frith-Macdonald - * SSL: Openssl bundle directory deleted - * GNUmakefile: Don't build openssl bundle - * Source/NSFileHandle.m: Don't load openssl bundle - * configure.ac: remove option to build bundle - * configure: regenerate - * Documentation/ReleaseNotes.gsdoc: - * Documentation/install.texi: - * Documentation/news.texi: - * Documentation/readme.texi: - Updates to note that the obsolete openssl bundle has been removed. + * SSL: Openssl bundle directory deleted + * GNUmakefile: Don't build openssl bundle + * Source/NSFileHandle.m: Don't load openssl bundle + * configure.ac: remove option to build bundle + * configure: regenerate + * Documentation/ReleaseNotes.gsdoc: + * Documentation/install.texi: + * Documentation/news.texi: + * Documentation/readme.texi: + Updates to note that the obsolete openssl bundle has been removed. 2016-06-26 Richard Frith-Macdonald @@ -5802,27 +5813,27 @@ * Source/NSTask.m: * Tests/base/NSTask/general.m: * Tests/base/NSTask/notify.m: - Add -terminationReason method from OSX10.5 + Add -terminationReason method from OSX10.5 2016-06-25 Richard Frith-Macdonald - * Source/NSMessagePort.m: - * config/config.reuseaddr.c: - Hack to work around Hurd local domain socket bug. - Plus don't try to set SO_REUSEADDR on local domain sockets anyway. + * Source/NSMessagePort.m: + * config/config.reuseaddr.c: + Hack to work around Hurd local domain socket bug. + Plus don't try to set SO_REUSEADDR on local domain sockets anyway. 2016-06-25 Richard Frith-Macdonald - * Documentation/Base.gsdoc: - * Documentation/ReleaseNotes.gsdoc: - * Documentation/news.texi: - * Source/Makefile.postamble: - * Source/NSBundle.m: - * Source/NSPathUtilities.m: - * Source/NSTask.m: - * Source/NSThread.m: - * configure: - * configure.ac: + * Documentation/Base.gsdoc: + * Documentation/ReleaseNotes.gsdoc: + * Documentation/news.texi: + * Source/Makefile.postamble: + * Source/NSBundle.m: + * Source/NSPathUtilities.m: + * Source/NSTask.m: + * Source/NSThread.m: + * configure: + * configure.ac: When using non-flattened environment, the subdirectory name for libraries/binaries is changed for Debian compatibility (and simplicity) to use a directory whose name is of the form architecture/library-combo @@ -5838,138 +5849,138 @@ 2016-06-24 Richard Frith-Macdonald - * Source/NSDistributedNotificationCenter.m: Double timeout from five - to ten seconds when waiting for the server to become reachable. - * Tools/gdnc.m: Auto-stop 15 seconds after the last client disconnects - rather than immediately ... allowing other clients time to connect. - Changes to reduce the chance of gdnc failure on a slow system where - the server is not running as a daemon. + * Source/NSDistributedNotificationCenter.m: Double timeout from five + to ten seconds when waiting for the server to become reachable. + * Tools/gdnc.m: Auto-stop 15 seconds after the last client disconnects + rather than immediately ... allowing other clients time to connect. + Changes to reduce the chance of gdnc failure on a slow system where + the server is not running as a daemon. 2016-06-23 Richard Frith-Macdonald - * Source/GSString.m: Optimise getting ascii or utf8 characters - from a literal string. + * Source/GSString.m: Optimise getting ascii or utf8 characters + from a literal string. 2016-06-22 Richard Frith-Macdonald - * Source/NSObject.m: Make sure we treat the reference count as a - 32bit integer everywhere, so that atomic operations operate on the - correct value on big endian CPUs with different word sizes. - * Source/NSOperation.m: When starting an operation, have it retain - itself in case it'ss removed from the queue and released while - running. - * Headers/Foundation/NSDistributedLock.h: Add lock ivar. - * Source/NSDistributedLock.m: Make class thread-safe using lock. - * Source/Tests/base/KVC/mutable.m: Fix 64bit error in method types. + * Source/NSObject.m: Make sure we treat the reference count as a + 32bit integer everywhere, so that atomic operations operate on the + correct value on big endian CPUs with different word sizes. + * Source/NSOperation.m: When starting an operation, have it retain + itself in case it'ss removed from the queue and released while + running. + * Headers/Foundation/NSDistributedLock.h: Add lock ivar. + * Source/NSDistributedLock.m: Make class thread-safe using lock. + * Source/Tests/base/KVC/mutable.m: Fix 64bit error in method types. 2016-06-19 Richard Frith-Macdonald - * Source/cifframe.m: Use sizeof(NSInteger) as the buffer size for - small scalars if we are on an LP64 machine. - * Source/NSOperation.m: Retain operation while taking it from queue, - releasing after it is finished. Prevent crash if the original owner - of the operation releases it while it's in the queue. + * Source/cifframe.m: Use sizeof(NSInteger) as the buffer size for + small scalars if we are on an LP64 machine. + * Source/NSOperation.m: Retain operation while taking it from queue, + releasing after it is finished. Prevent crash if the original owner + of the operation releases it while it's in the queue. 2016-06-17 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: - * Source/NSURLprotocol.m: - When sending HTTP headers, use RFC2047 rules (as specified in HTTP/1.1 - RFC2616) to encode non-ascii characters. + * Source/GSHTTPURLHandle.m: + * Source/NSURLprotocol.m: + When sending HTTP headers, use RFC2047 rules (as specified in HTTP/1.1 + RFC2616) to encode non-ascii characters. 2016-06-17 Niels Grewe - * Headers/Foundation/NSRegularExpression.h - * Source/NSRegularExpression.m - * Tests/base/NSRegularExpression/basic.m: + * Headers/Foundation/NSRegularExpression.h + * Source/NSRegularExpression.m + * Tests/base/NSRegularExpression/basic.m: - Implement resource limits for regular expression evaluation. Tweaked - to roughly match the Cocoa behaviour, but can be changed through - the GSRegularExpressionWorkLimit user default. + Implement resource limits for regular expression evaluation. Tweaked + to roughly match the Cocoa behaviour, but can be changed through + the GSRegularExpressionWorkLimit user default. 2016-06-17 Niels Grewe - * Source/NSRegularExpression.m: Implement -isEqual: and -hash - * Tests/base/NSRegularExpression/basic.m: Test NSCopying + * Source/NSRegularExpression.m: Implement -isEqual: and -hash + * Tests/base/NSRegularExpression/basic.m: Test NSCopying 2016-06-14 Richard Frith-Macdonald - * Source/GSSocketStream.m: Fix for failure of connect() call. - * Source/GSStream.m: Fix event handling for failed streams. - * Tests/NSURLConnection/test01.m: Add testcases, fix reset of delegate. - Fixes for kfreebsd network stack being clever enough to fail the - connect() call if the remote port is on the same machine and has - no process listening on it. Reported by Heintzmann + * Source/GSSocketStream.m: Fix for failure of connect() call. + * Source/GSStream.m: Fix event handling for failed streams. + * Tests/NSURLConnection/test01.m: Add testcases, fix reset of delegate. + Fixes for kfreebsd network stack being clever enough to fail the + connect() call if the remote port is on the same machine and has + no process listening on it. Reported by Heintzmann 2016-06-08 Richard Frith-Macdonald - * Documentation/Base.gsdoc: - * Documentation/ReleaseNotes.gsdoc: - * Documentation/news.texi: - Documentation/release notes preparation for next release. - - * Source/Makefile.postamble: - * Source/NSBundle.m: - * Source/NSPathUtilities.m: - * Source/NSString.m: - * Source/NSTask.m: - * configure.ac: - Changes to use the new multiarch path component cpu-host rather - than a host subdirectory inside a cpu directory. - * configure: Regenerate + * Documentation/Base.gsdoc: + * Documentation/ReleaseNotes.gsdoc: + * Documentation/news.texi: + Documentation/release notes preparation for next release. + + * Source/Makefile.postamble: + * Source/NSBundle.m: + * Source/NSPathUtilities.m: + * Source/NSString.m: + * Source/NSTask.m: + * configure.ac: + Changes to use the new multiarch path component cpu-host rather + than a host subdirectory inside a cpu directory. + * configure: Regenerate 2016-06-07 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - Fix output conversion to 7bit to work for quoted-printable. - Also, when generating headers, generate conventionally - capitalised names. + * Source/Additions/GSMime.m: + Fix output conversion to 7bit to work for quoted-printable. + Also, when generating headers, generate conventionally + capitalised names. 2016-06-06 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - Conversion of multipart document between base64 and binary encoding - should use quoted-printable rather than base64 for text parts. - Rename -convertToBase64 to be -convertTo7BitSafe instead. + * Source/Additions/GSMime.m: + Conversion of multipart document between base64 and binary encoding + should use quoted-printable rather than base64 for text parts. + Rename -convertToBase64 to be -convertTo7BitSafe instead. 2016-05-27 Niels Grewe - * Tools/AGSParser.m: Ignore __asm__ directives + * Tools/AGSParser.m: Ignore __asm__ directives 2016-05-19 Seong Gu Lee - * GNUmakefile: - * Source/Additions/Makefile.preamble: - * Source/ObjectiveC2/Makefile.preamble: - * Source/unix/Makefile.preamble: - * Source/win32/Makefile.preamble: - mingw64 tweaks + * GNUmakefile: + * Source/Additions/Makefile.preamble: + * Source/ObjectiveC2/Makefile.preamble: + * Source/unix/Makefile.preamble: + * Source/win32/Makefile.preamble: + mingw64 tweaks 2016-05-18 Richard Frith-Macdonald - * Source/NSPredicate.m: attempt fix for bug #47619 + * Source/NSPredicate.m: attempt fix for bug #47619 2016-05-18 Eric Heintzmann - * ChangeLog.2: - * Documentation/news.texi: - * Headers/Foundation/NSAutoreleasePool.h: - * NEWS: - * Source/GSSocksParser/GSSocksParser.m: - * Source/NSAutoreleasePool.m: - * Source/NSConnection.m: - * Source/NSKeyedUnarchiver.m: - * Tools/AGSParser.m: - Fix typos andss spelling erros, including the setPoolCountThreshold: - method. + * ChangeLog.2: + * Documentation/news.texi: + * Headers/Foundation/NSAutoreleasePool.h: + * NEWS: + * Source/GSSocksParser/GSSocksParser.m: + * Source/NSAutoreleasePool.m: + * Source/NSConnection.m: + * Source/NSKeyedUnarchiver.m: + * Tools/AGSParser.m: + Fix typos andss spelling erros, including the setPoolCountThreshold: + method. 2016-05-15 Richard Frith-Macdonald - * Documentation/manual/manual.texi: - * Source/GSSocksParser/GSSocks4Parser.m: - * Source/GSSocksParser/GSSocks5Parser.m: - * Tools/pldes.1: - Trivial fixes based on debian package. + * Documentation/manual/manual.texi: + * Source/GSSocksParser/GSSocks4Parser.m: + * Source/GSSocksParser/GSSocks5Parser.m: + * Tools/pldes.1: + Trivial fixes based on debian package. 2016-05-14 Richard Frith-Macdonald @@ -5977,179 +5988,179 @@ * Source/NSException.m: * configure.ac: * configure: - Make USE_BFD control usage of libbfd and replace runtime warning with - a configure time warning about the license issue. + Make USE_BFD control usage of libbfd and replace runtime warning with + a configure time warning about the license issue. 2016-05-14 Richard Frith-Macdonald - * Headers/Foundation/NSNotification.h: - * Headers/Foundation/NSZone.h: - * Headers/GNUstepBase/GSConfig.h.in: - * Source/GSQuickSort.m: - * Source/GSString.m: - * Source/GSTimSort.m: - * Source/NSAutoreleasePool.m: - * Source/NSConcretePointerFunctions.h: - * Source/NSGarbageCollector.m: - * Source/NSNotificationCenter.m: - * Source/NSObject.m: - * Source/NSThread.m: - * Source/NSZone.m: - Completed(?) removal of GC support. - Plus various minor reorganisations to avoid compiler warnings. + * Headers/Foundation/NSNotification.h: + * Headers/Foundation/NSZone.h: + * Headers/GNUstepBase/GSConfig.h.in: + * Source/GSQuickSort.m: + * Source/GSString.m: + * Source/GSTimSort.m: + * Source/NSAutoreleasePool.m: + * Source/NSConcretePointerFunctions.h: + * Source/NSGarbageCollector.m: + * Source/NSNotificationCenter.m: + * Source/NSObject.m: + * Source/NSThread.m: + * Source/NSZone.m: + Completed(?) removal of GC support. + Plus various minor reorganisations to avoid compiler warnings. 2016-05-13 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - Fix bug encoding very long headers with no whitespace to fold on. - * Source/NSThread.m: - Avoid use of autorelease pool when setting the name of the thread - (fix pointless warnings logs spotted by Wolfgang). + * Source/Additions/GSMime.m: + Fix bug encoding very long headers with no whitespace to fold on. + * Source/NSThread.m: + Avoid use of autorelease pool when setting the name of the thread + (fix pointless warnings logs spotted by Wolfgang). 2016-05-06 18:03-EDT Gregory John Casamento - * Headers/Foundation/NSString.h: Add containsString: - * Headers/GNUstepBase/GSVersionMacros.h: Add 10.10 and 10.11 macros. - * Source/NSString.m: Add containsString: implementation. + * Headers/Foundation/NSString.h: Add containsString: + * Headers/GNUstepBase/GSVersionMacros.h: Add 10.10 and 10.11 macros. + * Source/NSString.m: Add containsString: implementation. 2016-04-28 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m: - Check for a pool being deallocated when it has already been - deallocated (and raise an exception). + * Source/NSAutoreleasePool.m: + Check for a pool being deallocated when it has already been + deallocated (and raise an exception). 2016-04-23 Marcus Mueller - * Source/GSAvahiNetService.m: Avahi-based NSNetServices did crash - upon publishing if Avahi daemon did not run. Hardened code for this - case which also works correctly if daemon is started later on. + * Source/GSAvahiNetService.m: Avahi-based NSNetServices did crash + upon publishing if Avahi daemon did not run. Hardened code for this + case which also works correctly if daemon is started later on. 2016-04-08 Richard Frith-Macdonald - * Source/NSUserDefaults.m: - Remove redundant code. Log domain names when debug is enabled. + * Source/NSUserDefaults.m: + Remove redundant code. Log domain names when debug is enabled. 2016-04-08 Riccardo Mottola - * Source/NSUserDefaults.m: - Skip nil domains explicitely and do not use nil values to look them up. + * Source/NSUserDefaults.m: + Skip nil domains explicitely and do not use nil values to look them up. 2016-04-04 Niels Grewe - * configure.ac: Check for runloop integration hooks in libdispatch - * configure - * Headers/GNUstepBase/config.h.in - * SSL/config.h.in - * SSL/configure: - Regenerate - * Source/NSRunLoop.m: If available, monitor the file descriptor for - the libdispatch main queue and drain it when it becomes readable. - * Tests/base/NSRunLoop/dispatch.m - * Tests/base/NSRunLoop/GNUmakefile.preamble: - Tests for libdispatch runloop integration + * configure.ac: Check for runloop integration hooks in libdispatch + * configure + * Headers/GNUstepBase/config.h.in + * SSL/config.h.in + * SSL/configure: + Regenerate + * Source/NSRunLoop.m: If available, monitor the file descriptor for + the libdispatch main queue and drain it when it becomes readable. + * Tests/base/NSRunLoop/dispatch.m + * Tests/base/NSRunLoop/GNUmakefile.preamble: + Tests for libdispatch runloop integration 2016-03-25 Richard Frith-Macdonald - * Headers/Foundation/NSObject.h: - * Headers/GNUstepBase/GNUstep.h: - * Headers/GNUstepBase/GSConfig.h.in: - * Headers/GNUstepBase/GSIArray.h: - * Headers/GNUstepBase/GSIMap.h: - * Source/Additions/GCDictionary.m: - * Source/Additions/GSLock.m: - * Source/Additions/GSMime.m: - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/Unicode.m: - * Source/GSArray.m: - * Source/GSAttributedString.m: - * Source/GSConcreteValueTemplate.m: - * Source/GSCountedSet.m: - * Source/GSDictionary.m: - * Source/GSHTTPAuthentication.m: - * Source/GSRunLoopCtxt.h: - * Source/GSSet.m: - * Source/GSString.m: - * Source/NSArchiver.m: - * Source/NSArray.m: - * Source/NSAutoreleasePool.m: - * Source/NSCalendar.m: - * Source/NSConcreteHashTable.m: - * Source/NSConcreteMapTable.m: - * Source/NSConcretePointerFunctions.h: - * Source/NSConcretePointerFunctions.m: - * Source/NSConnection.m: - * Source/NSCountedSet.m: - * Source/NSData.m: - * Source/NSDebug.m: - * Source/NSDictionary.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSFileManager.m: - * Source/NSGarbageCollector.m: - * Source/NSHashTable.m: - * Source/NSIndexSet.m: - * Source/NSKeyValueObserving.m: - * Source/NSKeyedArchiver.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSMapTable.m: - * Source/NSMessagePort.m: - * Source/NSNotificationCenter.m: - * Source/NSNotificationQueue.m: - * Source/NSObject.m: - * Source/NSPointerArray.m: - * Source/NSPortCoder.m: - * Source/NSProxy.m: - * Source/NSRunLoop.m: - * Source/NSSerializer.m: - * Source/NSSet.m: - * Source/NSSocketPort.m: - * Source/NSString.m: - * Source/NSThread.m: - * Source/NSTimeZone.m: - * Source/NSURL.m: - * Source/NSURLConnection.m: - * Source/NSURLProtocol.m: - * Source/NSUnarchiver.m: - * Source/NSZone.m: - * Source/callframe.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/win32/GSRunLoopCtxt.m: - * Tools/AGSHtml.m: - * Tools/AGSOutput.m: - * Tools/AGSParser.m: - * Tools/autogsdoc.m: - * Tools/gdnc.m: - * Tools/make_strings/make_strings.m: - * configure.ac: - * macosx/config.h: - Removal of garbage collection support. + * Headers/Foundation/NSObject.h: + * Headers/GNUstepBase/GNUstep.h: + * Headers/GNUstepBase/GSConfig.h.in: + * Headers/GNUstepBase/GSIArray.h: + * Headers/GNUstepBase/GSIMap.h: + * Source/Additions/GCDictionary.m: + * Source/Additions/GSLock.m: + * Source/Additions/GSMime.m: + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/Unicode.m: + * Source/GSArray.m: + * Source/GSAttributedString.m: + * Source/GSConcreteValueTemplate.m: + * Source/GSCountedSet.m: + * Source/GSDictionary.m: + * Source/GSHTTPAuthentication.m: + * Source/GSRunLoopCtxt.h: + * Source/GSSet.m: + * Source/GSString.m: + * Source/NSArchiver.m: + * Source/NSArray.m: + * Source/NSAutoreleasePool.m: + * Source/NSCalendar.m: + * Source/NSConcreteHashTable.m: + * Source/NSConcreteMapTable.m: + * Source/NSConcretePointerFunctions.h: + * Source/NSConcretePointerFunctions.m: + * Source/NSConnection.m: + * Source/NSCountedSet.m: + * Source/NSData.m: + * Source/NSDebug.m: + * Source/NSDictionary.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSFileManager.m: + * Source/NSGarbageCollector.m: + * Source/NSHashTable.m: + * Source/NSIndexSet.m: + * Source/NSKeyValueObserving.m: + * Source/NSKeyedArchiver.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSMapTable.m: + * Source/NSMessagePort.m: + * Source/NSNotificationCenter.m: + * Source/NSNotificationQueue.m: + * Source/NSObject.m: + * Source/NSPointerArray.m: + * Source/NSPortCoder.m: + * Source/NSProxy.m: + * Source/NSRunLoop.m: + * Source/NSSerializer.m: + * Source/NSSet.m: + * Source/NSSocketPort.m: + * Source/NSString.m: + * Source/NSThread.m: + * Source/NSTimeZone.m: + * Source/NSURL.m: + * Source/NSURLConnection.m: + * Source/NSURLProtocol.m: + * Source/NSUnarchiver.m: + * Source/NSZone.m: + * Source/callframe.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/win32/GSRunLoopCtxt.m: + * Tools/AGSHtml.m: + * Tools/AGSOutput.m: + * Tools/AGSParser.m: + * Tools/autogsdoc.m: + * Tools/gdnc.m: + * Tools/make_strings/make_strings.m: + * configure.ac: + * macosx/config.h: + Removal of garbage collection support. 2016-03-25 Richard Frith-Macdonald - * Source/NSNumber.m: Attempt to fix endianness archiving issue. + * Source/NSNumber.m: Attempt to fix endianness archiving issue. 2016-03-23 Richard Frith-Macdonald - * Source/NSPropertyList.m: Remove unused function. Change binary - plist generation to return NO if our index table needs to grow, - rather than raising exceptions during normal operation. + * Source/NSPropertyList.m: Remove unused function. Change binary + plist generation to return NO if our index table needs to grow, + rather than raising exceptions during normal operation. 2016-03-20 Richard Frith-Macdonald - * Documentation/ReleaseNotes.gsdoc: - * Documentation/news.texi: - * ANNOUNCE: - * NEWS: - * NSTimeZones/NSTimeZones.tar: - * Tools/AGSParser.m: - * Version: - Update version for new release. Add short news/announce entries. - Update timezone information to latest IANA data. - Add simple support for generics to autogsdoc. + * Documentation/ReleaseNotes.gsdoc: + * Documentation/news.texi: + * ANNOUNCE: + * NEWS: + * NSTimeZones/NSTimeZones.tar: + * Tools/AGSParser.m: + * Version: + Update version for new release. Add short news/announce entries. + Update timezone information to latest IANA data. + Add simple support for generics to autogsdoc. 2016-03-18 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Wait longer for locks on slow systems - Improve tracking of changes in persistent domains. + * Source/NSUserDefaults.m: Wait longer for locks on slow systems + Improve tracking of changes in persistent domains. 2016-03-17 Richard Frith-Macdonald @@ -6160,147 +6171,147 @@ * Source/NSDistantObject.m: * Source/NSURLHandle.m: * Source/NSURLRequest.m: - Make -setDebug: consistently set/return an integer even if the - underlying meaning is boolean. Avoid compiler warnings when - calling the method on an id and signature is not known. + Make -setDebug: consistently set/return an integer even if the + underlying meaning is boolean. Avoid compiler warnings when + calling the method on an id and signature is not known. 2016-03-15 Richard Frith-Macdonald - * Source/NSCalendarDate.m: - * Source/NSTimeZone.m: - Use NSInteger conmsistently (don't mix with int). + * Source/NSCalendarDate.m: + * Source/NSTimeZone.m: + Use NSInteger conmsistently (don't mix with int). 2016-03-14 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Log if we break the lock. - * Source/NSDistributedLock.m: Unlock if dealloc'ed while locked. + * Source/NSUserDefaults.m: Log if we break the lock. + * Source/NSDistributedLock.m: Unlock if dealloc'ed while locked. 2016-03-12 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Remove five year old code for converting - old style single defaults file to new style (one file per domain). - Add some thread safety locks for distriobuted locking in case some - thread issue is causing Riccardo's problem. + * Source/NSUserDefaults.m: Remove five year old code for converting + old style single defaults file to new style (one file per domain). + Add some thread safety locks for distriobuted locking in case some + thread issue is causing Riccardo's problem. -2016-03-11 Niels Grewe +2016-03-11 Niels Grewe - * Headers/Foundation/NSPredicate.h: - Include NSString.h so that we the header knows about NSString - conforming to NSCopying. + * Headers/Foundation/NSPredicate.h: + Include NSString.h so that we the header knows about NSString + conforming to NSCopying. 2016-03-10 Richard Frith-Macdonald - * Headers/GNUstepBase/NSObject+GNUstepBase.h: - * Source/Additions/GSInsensitiveDictionary.m: - * Source/Additions/GSMime.m: - * Source/Additions/NSObject+GNUstepBase.m: - * Source/GSArray.m: - * Source/GSDictionary.m: - * Source/GSSet.m: - * Source/GSString.m: - * Source/NSArray.m: - * Source/NSBundle.m: - * Source/NSFileManager.m: - * Source/NSJSONSerialization.m: - * Source/NSPointerArray.m: - * Source/NSPredicate.m: - * Source/NSPropertyList.m: - * Source/NSSerializer.m: - * Source/NSSet.m: - * Source/NSSortDescriptor.m: - * Source/NSString.m: - * Source/NSTimeZone.m: - * Source/NSUserDefaults.m: - Deprecate -makeImmutableCopyOnFail: and replace with -makeImmutable. - The new method has the essential functionality of the old one, - but omits the confusing ownership semantics and is therefore less - likely to cause errors (and more amenable to use with ARC.) + * Headers/GNUstepBase/NSObject+GNUstepBase.h: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/Additions/GSMime.m: + * Source/Additions/NSObject+GNUstepBase.m: + * Source/GSArray.m: + * Source/GSDictionary.m: + * Source/GSSet.m: + * Source/GSString.m: + * Source/NSArray.m: + * Source/NSBundle.m: + * Source/NSFileManager.m: + * Source/NSJSONSerialization.m: + * Source/NSPointerArray.m: + * Source/NSPredicate.m: + * Source/NSPropertyList.m: + * Source/NSSerializer.m: + * Source/NSSet.m: + * Source/NSSortDescriptor.m: + * Source/NSString.m: + * Source/NSTimeZone.m: + * Source/NSUserDefaults.m: + Deprecate -makeImmutableCopyOnFail: and replace with -makeImmutable. + The new method has the essential functionality of the old one, + but omits the confusing ownership semantics and is therefore less + likely to cause errors (and more amenable to use with ARC.) 2016-03-10 Wolfgang Lux - * Headers/Foundation/NSLocale.h: - * Source/NSLocale.m (+localeWithLocaleIdentifier:): - Add trivial method introduced in OS X 10.6. + * Headers/Foundation/NSLocale.h: + * Source/NSLocale.m (+localeWithLocaleIdentifier:): + Add trivial method introduced in OS X 10.6. 2016-03-09 Riccardo Mottola - * Headers/Foundation/NSPathUtilities.h - * Source/NSPathUtilities.m - Add some new path values. + * Headers/Foundation/NSPathUtilities.h + * Source/NSPathUtilities.m + Add some new path values. -2016-03-09 Niels Grewe +2016-03-09 Niels Grewe - * Headers/Foundation/NSPredicate.h - * Source/NSPredicate.m - * Tests/base/NSPredicate/basic.m: - Implementation and tests for +predicateWithBlock: and - -evaluateWithObject:substitutionVariables: + * Headers/Foundation/NSPredicate.h + * Source/NSPredicate.m + * Tests/base/NSPredicate/basic.m: + Implementation and tests for +predicateWithBlock: and + -evaluateWithObject:substitutionVariables: 2016-03-09 Richard Frith-Macdonald - * Source/NSSocketPortNameServer.m: - * Source/GSSocketStream.h: - * Source/NSTimeZone.m: - * Source/GSSocketStream.m: - * Source/NSCalendarDate.m: - * Source/NSBundle.m: - * Source/NSPathUtilities.m: - * Source/NSProcessInfo.m: - * Source/NSSocketPort.m: - * Source/GSRunLoopWatcher.m: - * Source/NSUserDefaults.m: - * Source/GSStream.m: - * Source/NSDebug.m: - * Source/GSTLS.m: - * Source/NSFileHandle.m: - * Source/GSHTTPURLHandle.m: - * Source/NSPage.m: - * Source/GSRunLoopCtxt.h: - * Source/GSPrivate.h: - * Source/NSInvocation.m: - * Source/NSFileManager.m: - * Source/objc-load.m: - * Source/NSException.m: - * Source/NSURL.m: - * Source/NSObject.m: - * Source/NSString.m: - * Source/cifframe.h: - * Source/Additions/NSData+GNUstepBase.m: - * Source/Additions/NSError+GNUstepBase.m: - * Source/Additions/NSTask+GNUstepBase.m: - * Source/NSConnection.m: - * Source/GSPortPrivate.h: - * Source/NSThread.m: - * Source/NSData.m: - * Source/NSHost.m: - * Source/GSNetwork.h: - * Source/NSPipe.m: - * Source/GSFileHandle.h: - * Source/NSLog.m: - * Source/GSFileHandle.m: - * Source/NSTask.m: - * Tests/base/NSTask/launch.m: - * Tests/base/NSURL/basic.m: - * Tests/base/NSURL/mystep.m: - * Tests/base/NSString/test02.m: - More changes to standardise on using _WIN32 define for windows. + * Source/NSSocketPortNameServer.m: + * Source/GSSocketStream.h: + * Source/NSTimeZone.m: + * Source/GSSocketStream.m: + * Source/NSCalendarDate.m: + * Source/NSBundle.m: + * Source/NSPathUtilities.m: + * Source/NSProcessInfo.m: + * Source/NSSocketPort.m: + * Source/GSRunLoopWatcher.m: + * Source/NSUserDefaults.m: + * Source/GSStream.m: + * Source/NSDebug.m: + * Source/GSTLS.m: + * Source/NSFileHandle.m: + * Source/GSHTTPURLHandle.m: + * Source/NSPage.m: + * Source/GSRunLoopCtxt.h: + * Source/GSPrivate.h: + * Source/NSInvocation.m: + * Source/NSFileManager.m: + * Source/objc-load.m: + * Source/NSException.m: + * Source/NSURL.m: + * Source/NSObject.m: + * Source/NSString.m: + * Source/cifframe.h: + * Source/Additions/NSData+GNUstepBase.m: + * Source/Additions/NSError+GNUstepBase.m: + * Source/Additions/NSTask+GNUstepBase.m: + * Source/NSConnection.m: + * Source/GSPortPrivate.h: + * Source/NSThread.m: + * Source/NSData.m: + * Source/NSHost.m: + * Source/GSNetwork.h: + * Source/NSPipe.m: + * Source/GSFileHandle.h: + * Source/NSLog.m: + * Source/GSFileHandle.m: + * Source/NSTask.m: + * Tests/base/NSTask/launch.m: + * Tests/base/NSURL/basic.m: + * Tests/base/NSURL/mystep.m: + * Tests/base/NSString/test02.m: + More changes to standardise on using _WIN32 define for windows. 2016-03-04 Richard Frith-Macdonald - * Source/NSCalendar.m: Fix 64bit issue with undefined components. - * Source/NSBundle.m: - * Source/NSFileManager.m: - * SSL/GSSSLHandle.m: - * Headers/GNUstepBase/GSConfig.h.in: - * macosx/GNUstepBase/preface.h: - Standardise on using _WIN32 and _WIN64 defines, following the - informal convention used by all the compilers we might be compiled with. - * Source/win32/GSFileHandle.m: Various network/file bugfixes. + * Source/NSCalendar.m: Fix 64bit issue with undefined components. + * Source/NSBundle.m: + * Source/NSFileManager.m: + * SSL/GSSSLHandle.m: + * Headers/GNUstepBase/GSConfig.h.in: + * macosx/GNUstepBase/preface.h: + Standardise on using _WIN32 and _WIN64 defines, following the + informal convention used by all the compilers we might be compiled with. + * Source/win32/GSFileHandle.m: Various network/file bugfixes. 2016-03-01 Richard Frith-Macdonald - Modifications to last batch of changes in order to get the code to - build again on 32bit msys/mingw + Modifications to last batch of changes in order to get the code to + build again on 32bit msys/mingw 2016-03-01 Seong Gu Lee @@ -6308,458 +6319,458 @@ * Headers/GNUstepBase/GSTypeEncoding.h: * Source/GSFileHandle.h: * Source/win32/GSFileHandle.m: - Tweaks for WIN64 build + Tweaks for WIN64 build 2016-02-29 Richard Frith-Macdonald * configure.ac: * configure: - * NSCalendar.m: - Don't require recent ICU just for the method - ([-components:fromDate:toDate:options:]). - Leave the method as a no-op if older versions are used. + * NSCalendar.m: + Don't require recent ICU just for the method + ([-components:fromDate:toDate:options:]). + Leave the method as a no-op if older versions are used. 2016-02-29 Richard Frith-Macdonald - * Source/NSFileManager.m: Based on testplant patch, fix bug with - ownership when copying subdirectories. - * Source/NSTask.m OSX compatibility tweak .. raise an exception if - the task can't be launched. - * Source/NSNumberFormatter.m: Fixes for symbol indexes. + * Source/NSFileManager.m: Based on testplant patch, fix bug with + ownership when copying subdirectories. + * Source/NSTask.m OSX compatibility tweak .. raise an exception if + the task can't be launched. + * Source/NSNumberFormatter.m: Fixes for symbol indexes. -2016-02-26 Niels Grewe +2016-02-26 Niels Grewe - * Headers/Foundation/NSObjCRuntime.h: Declare the FOUNDATION_EXPORT - macro as an alias for GS_EXPORT. + * Headers/Foundation/NSObjCRuntime.h: Declare the FOUNDATION_EXPORT + macro as an alias for GS_EXPORT. 2016-02-24 Richard Frith-Macdonald - * Headers/Foundation/NSArray.h: - * Source/NSArray.m: - Correct argument types in ([-objectAtIndexedSubscript:]) and - ([setObject:atIndexedSubscript:]) to match OSX. - Apply patch by Patrick Laurent to fix bug setting - an object at the end of the array. - -2016-02-22 Niels Grewe - - * Headers/Foundation/NSObjCRuntime.h: Add macros for backwards- - compatible generics annotations. Also define instancetype if necessary. - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSCache.h: - * Headers/Foundation/NSDictionary.h: - * Headers/Foundation/NSEnumerator.h: - * Headers/Foundation/NSSet.h: Update interfaces for instancetype and - generics. - * Source/NSCache.m: Use NSMapTable instead of NSMutableDictionary. - The API contract for NSCache stipulates that keys are not copied, so - using a dictionary wasn't apropriate. - * Source/NSConnection.m: - * Source/NSData.m: Small type safety improvements (mostly to keep the - compiler happy). - * Source/NSDictionary.m: Change id to id in a few places to - avoid compiler warnings. - * Tests/base/NSCache: - * Tests/base/NSCache/TestInfo: - * Tests/base/NSCache/basic.m: - * Tests/base/NSCache/cache.m: - Test cases eviction from NSCache. Turns out we currently only evict - NSDiscardableContent, while the API documentation seems to suggest - that cost and count based eviction without NSDiscardableContent is - also possible. + * Headers/Foundation/NSArray.h: + * Source/NSArray.m: + Correct argument types in ([-objectAtIndexedSubscript:]) and + ([setObject:atIndexedSubscript:]) to match OSX. + Apply patch by Patrick Laurent to fix bug setting + an object at the end of the array. + +2016-02-22 Niels Grewe + + * Headers/Foundation/NSObjCRuntime.h: Add macros for backwards- + compatible generics annotations. Also define instancetype if necessary. + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSCache.h: + * Headers/Foundation/NSDictionary.h: + * Headers/Foundation/NSEnumerator.h: + * Headers/Foundation/NSSet.h: Update interfaces for instancetype and + generics. + * Source/NSCache.m: Use NSMapTable instead of NSMutableDictionary. + The API contract for NSCache stipulates that keys are not copied, so + using a dictionary wasn't apropriate. + * Source/NSConnection.m: + * Source/NSData.m: Small type safety improvements (mostly to keep the + compiler happy). + * Source/NSDictionary.m: Change id to id in a few places to + avoid compiler warnings. + * Tests/base/NSCache: + * Tests/base/NSCache/TestInfo: + * Tests/base/NSCache/basic.m: + * Tests/base/NSCache/cache.m: + Test cases eviction from NSCache. Turns out we currently only evict + NSDiscardableContent, while the API documentation seems to suggest + that cost and count based eviction without NSDiscardableContent is + also possible. 2016-02-18 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - Fold using tabs between key=value tokens in structured headers - in the hope that it will improve compatibility with code which - doesn't cope well with a space as the folding character. + * Source/Additions/GSMime.m: + Fold using tabs between key=value tokens in structured headers + in the hope that it will improve compatibility with code which + doesn't cope well with a space as the folding character. 2016-02-15 Richard Frith-Macdonald - * Source/NSFileManager.m: Use NSDebugLog for most debug warnings - * Source/NSUserDefaults.m: Restructure to cache flag information - from NSProcessInfo directly on initialization, so it can be used - when parsing property lists in the argument domain, avoiding any - recursion trying to parse arguments. Remove obsolete code for - for parsing -GS and --GS argument prefixes specially. - Make sure that argument parsiong behavior matches OSX apart from - The handling of a lone '-' used as key/value, and for this case - document the difference (since the GNUstep behavior is more useful - and changing it would have a real chance of breaking existing code). + * Source/NSFileManager.m: Use NSDebugLog for most debug warnings + * Source/NSUserDefaults.m: Restructure to cache flag information + from NSProcessInfo directly on initialization, so it can be used + when parsing property lists in the argument domain, avoiding any + recursion trying to parse arguments. Remove obsolete code for + for parsing -GS and --GS argument prefixes specially. + Make sure that argument parsiong behavior matches OSX apart from + The handling of a lone '-' used as key/value, and for this case + document the difference (since the GNUstep behavior is more useful + and changing it would have a real chance of breaking existing code). 2016-02-12 Niels Grewe - * Headers/Foundation/NSObjCRuntime.h: Define macros for - non-null sections if available. + * Headers/Foundation/NSObjCRuntime.h: Define macros for + non-null sections if available. 2016-02-10 Richard Frith-Macdonald - * Source/NSThread.m: In GSCurrentThread() the check for exiting - thread needs to NOT be wrapped in an exception handler, since the - exception handling code can attempt to get the current thread, - causing recursion. + * Source/NSThread.m: In GSCurrentThread() the check for exiting + thread needs to NOT be wrapped in an exception handler, since the + exception handling code can attempt to get the current thread, + causing recursion. 2016-02-09 Richard Frith-Macdonald - * Source/NSUserDefaults.m: - Remove dependency on NSUserDefaults in order to parse property list - in program arguments ... get boolean defaults settings from the - argument domain + * Source/NSUserDefaults.m: + Remove dependency on NSUserDefaults in order to parse property list + in program arguments ... get boolean defaults settings from the + argument domain 2016-02-09 Larry Campbell - * Source/NSUserDefaults.m: Fix for bug #46956 + * Source/NSUserDefaults.m: Fix for bug #46956 2016-02-09 Richard Frith-Macdonald - * Tools/gdomap.c: Use uint32_t rather than unsigned long ... we are - actually dealing with 4 byte values (from htonl), not native longs, - and this can result in buffer overrun when we try copying a 64bit - value into a 32bit buffer on a 64bit system. + * Tools/gdomap.c: Use uint32_t rather than unsigned long ... we are + actually dealing with 4 byte values (from htonl), not native longs, + and this can result in buffer overrun when we try copying a 64bit + value into a 32bit buffer on a 64bit system. 2016-02-04 Richard Frith-Macdonald - * Source/NSData.m: Fix for decoding base64 with unknown characters - after a trailing '=' + * Source/NSData.m: Fix for decoding base64 with unknown characters + after a trailing '=' 2016-01-29 Richard Frith-Macdonald - * Source/Additions/GSMime.m: keep key=value pairs in structured fields - on the same line if possible. + * Source/Additions/GSMime.m: keep key=value pairs in structured fields + on the same line if possible. -2016-01-29 Niels Grewe +2016-01-29 Niels Grewe - * Source/NSThread.m: Automatic 'late' unregistration of thread objects: - When +exit is not called, we no longer log a warning and leak the - thread object. - Instead, we add it to a map table, keyed under the current thread ID, - and use that in GSCurrentThread() to find the correct NSThread object - if pthread_getspecific wont return it to us. - * Tests/base/NSThread/late_unregister.m: Test case for late - unregistration. + * Source/NSThread.m: Automatic 'late' unregistration of thread objects: + When +exit is not called, we no longer log a warning and leak the + thread object. + Instead, we add it to a map table, keyed under the current thread ID, + and use that in GSCurrentThread() to find the correct NSThread object + if pthread_getspecific wont return it to us. + * Tests/base/NSThread/late_unregister.m: Test case for late + unregistration. -2016-01-21 Niels Grewe +2016-01-21 Niels Grewe - * Source/Additions/GSMime.m: Fix folding of headers containing - a '_' character. + * Source/Additions/GSMime.m: Fix folding of headers containing + a '_' character. -2016-01-21 Niels Grewe +2016-01-21 Niels Grewe - * Tests/base/GSMime/general.m: Test case for quoted boundary - parameter failure. + * Tests/base/GSMime/general.m: Test case for quoted boundary + parameter failure. 2016-01-21 Richard Frith-Macdonald - * Source/GSString.m: Fix errors in conversion from a constant utf-8 - string containing non-ascii characters to latin1 encoded data. - * Source/Additions/GSMime.m: Change line folding code to preserve - exact whitespace (using encoded words if necessary). Add support - for generating more readable 'q' encoded words rather than just - base64 encoded. Uses old behavior of folding with a tab character - if the GSMimeOldStyleFolding user default is set to YES, though - it's likely that this backward compatibility feature will be removed - in future. + * Source/GSString.m: Fix errors in conversion from a constant utf-8 + string containing non-ascii characters to latin1 encoded data. + * Source/Additions/GSMime.m: Change line folding code to preserve + exact whitespace (using encoded words if necessary). Add support + for generating more readable 'q' encoded words rather than just + base64 encoded. Uses old behavior of folding with a tab character + if the GSMimeOldStyleFolding user default is set to YES, though + it's likely that this backward compatibility feature will be removed + in future. 2015-12-30 Marcus Mueller - * Source/NSNumberFormatter.m: fixed a subtle off-by-one formatter - bug in conjunction with zero padding and NSNumberFormatterBehavior10_0. + * Source/NSNumberFormatter.m: fixed a subtle off-by-one formatter + bug in conjunction with zero padding and NSNumberFormatterBehavior10_0. - * Tests/base/NSNumberFormatter/basic.m: added a test for this - particular issue + * Tests/base/NSNumberFormatter/basic.m: added a test for this + particular issue 2015-12-29 Marcus Mueller - * Source/NSUserNotification.m: "NSUserNotificationDefaultSoundName" - constant string was declared but missing, fixed + * Source/NSUserNotification.m: "NSUserNotificationDefaultSoundName" + constant string was declared but missing, fixed 2015-12-22 Richard Frith-Macdonald - * Source/NSXMLElement.m: For OSX compatibility, raise an exception - it we attempt to insert an element which is already the child of - some other element. + * Source/NSXMLElement.m: For OSX compatibility, raise an exception + it we attempt to insert an element which is already the child of + some other element. 2015-11-30: Niels Grewe - * Source/NSCalendar.m: - * Headers/Foundation/NSCalendar.h: - Implement -components:fromDate:toDate:options:. (Not handling - NSWrapCalendarComponents yet.) - * Tests/base/NSCalendar/component-diff.m: - Test case for new functionality. + * Source/NSCalendar.m: + * Headers/Foundation/NSCalendar.h: + Implement -components:fromDate:toDate:options:. (Not handling + NSWrapCalendarComponents yet.) + * Tests/base/NSCalendar/component-diff.m: + Test case for new functionality. 2015-11-22 Riccardo Mottola - * Source/NSFileManager.m (createDirectoryAtPath) - Should return success even if all path components do exist, - as by Apple spec. + * Source/NSFileManager.m (createDirectoryAtPath) + Should return success even if all path components do exist, + as by Apple spec. 2015-11-13 Riccardo Mottola - * Source/NSRange.m: (NSRangeFromString) - Parse length and location with scanInteger and not scanInt - (suggested by Fred Kiefer to fix 64bit) + * Source/NSRange.m: (NSRangeFromString) + Parse length and location with scanInteger and not scanInt + (suggested by Fred Kiefer to fix 64bit) 2015-11-02 Richard Frith-Macdonald - * Source/NSXMLElement.m: (insertChild:atIndex:) if the child already - has a parent, detach from that before adding to the new parent. - OSX compatibility fix. + * Source/NSXMLElement.m: (insertChild:atIndex:) if the child already + has a parent, detach from that before adding to the new parent. + OSX compatibility fix. 2015-11-01 Richard Frith-Macdonald - * Source/NSXMLDocument.m: When libxml2 is not enabled, create a - stub class which will raise an exception on instantiation. + * Source/NSXMLDocument.m: When libxml2 is not enabled, create a + stub class which will raise an exception on instantiation. 2015-10-31 Richard Frith-Macdonald - * Source/NSString.m: Fix for fastpath code for literal string - comparison which was ignoring the case insensititve option. - Problems spotted by Fred, triggered by a Testplant change. + * Source/NSString.m: Fix for fastpath code for literal string + comparison which was ignoring the case insensititve option. + Problems spotted by Fred, triggered by a Testplant change. 2015-10-21 Richard Frith-Macdonald - * Source/NSBundle.m: remove declaration of unused methods. + * Source/NSBundle.m: remove declaration of unused methods. 2015-10-06 Richard Frith-Macdonald - * Source/NSSocketPortNameServer.m: Fix retain/release error causing - crash on failure to launch gdomap. + * Source/NSSocketPortNameServer.m: Fix retain/release error causing + crash on failure to launch gdomap. 2015-10-05 Niels Grewe - * Headers/GNUstepBase/GNUstep.h: Define __has_extension() if the - compiler does not support it. - * Headers/Foundation/NSObjCRuntime.h: Provide definitions for - NS_ENUM and NS_OPTIONS. + * Headers/GNUstepBase/GNUstep.h: Define __has_extension() if the + compiler does not support it. + * Headers/Foundation/NSObjCRuntime.h: Provide definitions for + NS_ENUM and NS_OPTIONS. 2015-10-03 Fred Kiefer - * Source/NSPropertyList.m (GSBinaryPLGenerator-storeCount:): Use - 0x12 instead of 0x13 for integer count. - * Source/NSPropertyList.m (GSBinaryPLParser-readCountAt:): Handle - 0x12 correctly. Use same code for 0x13 to read old incorrect - written data. - Based on change by Josh Freeman + * Source/NSPropertyList.m (GSBinaryPLGenerator-storeCount:): Use + 0x12 instead of 0x13 for integer count. + * Source/NSPropertyList.m (GSBinaryPLParser-readCountAt:): Handle + 0x12 correctly. Use same code for 0x13 to read old incorrect + written data. + Based on change by Josh Freeman 2015-09-23 Wolfgang Lux - * Source/NSXMLParser.m: - * Tests/base/NSXMLParser/ParseData/quoted-entities.result - * Tests/base/NSXMLParser/ParseData/quoted-entities.xml - Turn on substitution of entities to match OSX behavior, add tests. + * Source/NSXMLParser.m: + * Tests/base/NSXMLParser/ParseData/quoted-entities.result + * Tests/base/NSXMLParser/ParseData/quoted-entities.xml + Turn on substitution of entities to match OSX behavior, add tests. 2015-09-22 Richard Frith-Macdonald - * Headers/Foundation/NSData.h: - * Source/Additions/GSObjCRuntime.m: - * Source/GSFFCallInvocation.m: - * Source/GSFormat.m: - * Source/GSValue.m: - * Source/NSArchiver.m: - * Source/NSData.m: - * Source/NSDecimalNumber.m: - * Source/NSKeyValueObserving.m: - * Source/NSKeyedArchiver.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSMethodSignature.m: - * Source/NSPortCoder.m: - * Source/NSUnarchiver.m: - * Source/cifframe.m: - Implement support for C99 _Bool type. + * Headers/Foundation/NSData.h: + * Source/Additions/GSObjCRuntime.m: + * Source/GSFFCallInvocation.m: + * Source/GSFormat.m: + * Source/GSValue.m: + * Source/NSArchiver.m: + * Source/NSData.m: + * Source/NSDecimalNumber.m: + * Source/NSKeyValueObserving.m: + * Source/NSKeyedArchiver.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSMethodSignature.m: + * Source/NSPortCoder.m: + * Source/NSUnarchiver.m: + * Source/cifframe.m: + Implement support for C99 _Bool type. 2015-09-22 Riccardo Mottola - * Headers/GNUstepBase/GSBlocks.h - Do not enable weak on mingw, because it works only with ELF. + * Headers/GNUstepBase/GSBlocks.h + Do not enable weak on mingw, because it works only with ELF. 2015-09-18 Riccardo Mottola - * Headers/Foundation/NSError.h - * Source/NSError.m - Add some 10.6 URL errors + * Headers/Foundation/NSError.h + * Source/NSError.m + Add some 10.6 URL errors 2015-09-16 Richard Frith-Macdonald - * configure.ac: fix check for pthread setname to work with older - versions of clang which object to autoconf checking for the - existence of a function by calling it without args. + * configure.ac: fix check for pthread setname to work with older + versions of clang which object to autoconf checking for the + existence of a function by calling it without args. 2015-09-16 Riccardo Mottola - * Headers/Foundation/NSFileManager.h - * Source/NSFileManager.m - Add simple (files only and no keys handling) implementation - of 10.6 method contentsOfDirectoryAtURL. + * Headers/Foundation/NSFileManager.h + * Source/NSFileManager.m + Add simple (files only and no keys handling) implementation + of 10.6 method contentsOfDirectoryAtURL. 2015-09-08 Niels Grewe - * Source/NSPropertyList.m: Fix writing base64 data. + * Source/NSPropertyList.m: Fix writing base64 data. 2015-09-04 Niels Grewe - * Source/GSString.m: Optimisation for formatting strings that are - stored as UTF-16 (use memcpy instead of looping over the characters). - * Tests/base/NSString/unichar_format.m: Test cases for formatting. + * Source/GSString.m: Optimisation for formatting strings that are + stored as UTF-16 (use memcpy instead of looping over the characters). + * Tests/base/NSString/unichar_format.m: Test cases for formatting. 2015-09-01 Niels Grewe - * Source/NSRegularExpression.m: Fix handling of empty capture groups. + * Source/NSRegularExpression.m: Fix handling of empty capture groups. 2015-08-30 Richard Frith-Macdonald - * Source/NSOperation.m: Fix potential deadlock with adding observers. - * Source/NSPropertyList.m: Fix a few mutability errors. Improve - parsing NSData performance. Add support for parsing base64 encoded - data in text property lists (delimited by <[ and ]>). + * Source/NSOperation.m: Fix potential deadlock with adding observers. + * Source/NSPropertyList.m: Fix a few mutability errors. Improve + parsing NSData performance. Add support for parsing base64 encoded + data in text property lists (delimited by <[ and ]>). 2015-08-29 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Improve descriptions for debug. - * Source/Additions/NSData+GNUstepBase.m: Add escaped representation. - * Source/GSHTTPURLHandle.m: Use escaped text format for debug log - (and plist armored format) to ensure that we safely log binary data + * Source/Additions/GSMime.m: Improve descriptions for debug. + * Source/Additions/NSData+GNUstepBase.m: Add escaped representation. + * Source/GSHTTPURLHandle.m: Use escaped text format for debug log + (and plist armored format) to ensure that we safely log binary data 2015-08-24 Richard Frith-Macdonald - * Source/win32/GSFileHandle.m: include winsock2.h earlier for msys2 + * Source/win32/GSFileHandle.m: include winsock2.h earlier for msys2 2015-08-17 Fred Kiefer - * Resources/Korean.lproj/Localizable.string: Correct encoding - * Resources/Languages/Korean: Add missing quotes. - Patch by Seong-Gu Lee + * Resources/Korean.lproj/Localizable.string: Correct encoding + * Resources/Languages/Korean: Add missing quotes. + Patch by Seong-Gu Lee 2015-08-17 Richard Frith-Macdonald - * Headers/GNUstepBase/NSData+GNUstepBase.h: Simple gzip API - * Source/Additions/NSData+GNUstepBase.m: Use zlib to zip/unzip data - * Tests/base/NSData/additions.m: tests for NSData additions (gzip) - * Tests/base/NSData/Lorum: Data file for compress/uncompress tests + * Headers/GNUstepBase/NSData+GNUstepBase.h: Simple gzip API + * Source/Additions/NSData+GNUstepBase.m: Use zlib to zip/unzip data + * Tests/base/NSData/additions.m: tests for NSData additions (gzip) + * Tests/base/NSData/Lorum: Data file for compress/uncompress tests 2015-08-16 Richard Frith-Macdonald - * configure.ac: Use the compiler provided by gnustep-make unless - it's specifically overridden in the environment. + * configure.ac: Use the compiler provided by gnustep-make unless + it's specifically overridden in the environment. 2015-08-07 Niels Grewe - * Source/NSPropertyList.m: Cope with certain malformed binary - property lists. - * Tests/PropertyLists/test01.m - * Tests/PropertyLists/cyclic.plist: - Test case for binary plists. + * Source/NSPropertyList.m: Cope with certain malformed binary + property lists. + * Tests/PropertyLists/test01.m + * Tests/PropertyLists/cyclic.plist: + Test case for binary plists. 2015-08-05 Riccardo Mottola - * Source/NSArray.m: - Minor cast fixes. + * Source/NSArray.m: + Minor cast fixes. 2015-07-27 Richard Frith-Macdonald - * Source/GSStream.m: Fix failure to unschedule from run loop if a - stream is opened more than once. + * Source/GSStream.m: Fix failure to unschedule from run loop if a + stream is opened more than once. 2015-07-24 Richard Frith-Macdonald - * Headers/GNUstepBase/GSIMap.h: add GSI_MAP_TABLE_S - * Source/NSConcreteHashTable.m: - * Source/NSConcreteMapTable.m: - Pass variable holding run time size calculation as GSI_MAP_TABLE_S + * Headers/GNUstepBase/GSIMap.h: add GSI_MAP_TABLE_S + * Source/NSConcreteHashTable.m: + * Source/NSConcreteMapTable.m: + Pass variable holding run time size calculation as GSI_MAP_TABLE_S 2015-07-22 Richard Frith-Macdonald - * Source/NSConcreteHashTable.m: - * Source/NSConcreteMapTable.m: - Get instance size at run time, so we can compile using nonfragile-abi + * Source/NSConcreteHashTable.m: + * Source/NSConcreteMapTable.m: + Get instance size at run time, so we can compile using nonfragile-abi 2015-07-16 Niels Grewe - * Source/GSSet.m - * Source/GSCountedSet.m: - Fix a few more names. + * Source/GSSet.m + * Source/GSCountedSet.m: + Fix a few more names. 2015-07-16 Richard Frith-Macdonald - * Headers/GNUstepBase/GSIMap.h: - * Headers/GNUstepBase/NSObject+GNUstepBase.h: - * Source/Additions/GSMime.m: - * Source/Additions/NSObject+GNUstepBase.m: - * Source/GSArray.m: - * Source/GSCountedSet.m: - * Source/GSDictionary.m: - * Source/GSPrivate.h: - * Source/GSSet.m: - * Source/GSString.m: - * Source/NSArray.m: - * Source/NSData.m: - * Source/NSDictionary.m: - * Source/NSObject.m: - * Source/NSSet.m: - * Source/NSString.m: - Rewriting naive implementations to improve efficiency and fix a few - bugs as well as renaming to avoid conflict with old GSCache. + * Headers/GNUstepBase/GSIMap.h: + * Headers/GNUstepBase/NSObject+GNUstepBase.h: + * Source/Additions/GSMime.m: + * Source/Additions/NSObject+GNUstepBase.m: + * Source/GSArray.m: + * Source/GSCountedSet.m: + * Source/GSDictionary.m: + * Source/GSPrivate.h: + * Source/GSSet.m: + * Source/GSString.m: + * Source/NSArray.m: + * Source/NSData.m: + * Source/NSDictionary.m: + * Source/NSObject.m: + * Source/NSSet.m: + * Source/NSString.m: + Rewriting naive implementations to improve efficiency and fix a few + bugs as well as renaming to avoid conflict with old GSCache. 2015-07-16 Niels Grewe - * Headers/GNUstepBase/NSHashTable+GNUstepBase.h - * Source/Additions/GNUmakefile - * Source/Additions/NSHashTable+GNUstepBase.m - * Source/GNUmakefile - * Tests/base/NSHashTable/additions.m: - Implement -addObjectsFromArray: on NSHashTable. + * Headers/GNUstepBase/NSHashTable+GNUstepBase.h + * Source/Additions/GNUmakefile + * Source/Additions/NSHashTable+GNUstepBase.m + * Source/GNUmakefile + * Tests/base/NSHashTable/additions.m: + Implement -addObjectsFromArray: on NSHashTable. 2015-07-15 Richard Frith-Macdonald - * Headers/GNUstepBase/GSIMap.h: - * Headers/GNUstepBase/NSObject+GNUstepBase.h: - * Source/Additions/GSMime.m: - * Source/Additions/NSObject+GNUstepBase.m: - * Source/GSArray.m: - * Source/GSCountedSet.m: - * Source/GSDictionary.m: - * Source/GSPrivate.h: - * Source/GSSet.m: - * Source/GSString.m: - * Source/NSArray.m: - * Source/NSData.m: - * Source/NSDictionary.m: - * Source/NSObject.m: - * Source/NSSet.m: - * Source/NSString.m: - Extension API to interrogate object memory usage (stolen from - GSCache and modified a bit). + * Headers/GNUstepBase/GSIMap.h: + * Headers/GNUstepBase/NSObject+GNUstepBase.h: + * Source/Additions/GSMime.m: + * Source/Additions/NSObject+GNUstepBase.m: + * Source/GSArray.m: + * Source/GSCountedSet.m: + * Source/GSDictionary.m: + * Source/GSPrivate.h: + * Source/GSSet.m: + * Source/GSString.m: + * Source/NSArray.m: + * Source/NSData.m: + * Source/NSDictionary.m: + * Source/NSObject.m: + * Source/NSSet.m: + * Source/NSString.m: + Extension API to interrogate object memory usage (stolen from + GSCache and modified a bit). 2015-07-14 Richard Frith-Macdonald - * Source/NSPropertyList.m: Write xml document headers referring to - the current location of Apple's property list dtd for compatibility - with software expecting to validate using that dtd. - Stefan Bidigaray pointed out that the heading we currently write is - very out of date. - * Source/NSThread.m: On premature thread exist, log native thread ID. - * Source/NSLog.m: Optimisations to make logging a little quicker. + * Source/NSPropertyList.m: Write xml document headers referring to + the current location of Apple's property list dtd for compatibility + with software expecting to validate using that dtd. + Stefan Bidigaray pointed out that the heading we currently write is + very out of date. + * Source/NSThread.m: On premature thread exist, log native thread ID. + * Source/NSLog.m: Optimisations to make logging a little quicker. 2015-07-09 Richard Frith-Macdonald - * Source/NSDebug.m: List memory allocation statistics in alphabetical - order (by class name) for easier interpretation. - Fix bug where the counter for differences was updated when difference - listing was not requested. + * Source/NSDebug.m: List memory allocation statistics in alphabetical + order (by class name) for easier interpretation. + Fix bug where the counter for differences was updated when difference + listing was not requested. 2015-07-08 Richard Frith-Macdonald - * Headers/Foundation/NSLock.h: - * Source/NSLock.m: - Add extension method -isLockedByCurrentThread for debug purposes. - Also make description report the OS thread id of the thread which - holds the lock (if any). + * Headers/Foundation/NSLock.h: + * Source/NSLock.m: + Add extension method -isLockedByCurrentThread for debug purposes. + Also make description report the OS thread id of the thread which + holds the lock (if any). 2015-07-08 Riccardo Mottola - * Headers/GNUstepBase/GSConfig.h.in - On NetBSD, undefine the system __weak first. + * Headers/GNUstepBase/GSConfig.h.in + On NetBSD, undefine the system __weak first. 2015-07-03 Niels Grewe @@ -6779,17 +6790,17 @@ * Headers/GNUstepBase/config.h.in: Add test for pthread_mutex_t.__data.__owner Update various tests to silence autoconf warnings. - * Source/NSLock.m: If available, use pthread_mutex_t.__data.__owner - to print the owning thread ID in the -description method. + * Source/NSLock.m: If available, use pthread_mutex_t.__data.__owner + to print the owning thread ID in the -description method. 2015-06-26 Riccardo Mottola - * Source/NSMethodSignature.m - * Source/cifframe.m - Minor include fixes to avoid malloc.h warnings on OpenBSD. + * Source/NSMethodSignature.m + * Source/cifframe.m + Minor include fixes to avoid malloc.h warnings on OpenBSD. - * Source/NSScanner.m - Remove set but unused variable. + * Source/NSScanner.m + Remove set but unused variable. 2015-06-22 Richard Frith-Macdonald @@ -6800,350 +6811,350 @@ 2015-06-14 Riccardo Mottola - * Headers/Foundation/NSData.h - * Source/NSData.m - base64EncodedDataWithOptions, base64EncodedStringWithOptions: - first implementation + * Headers/Foundation/NSData.h + * Source/NSData.m + base64EncodedDataWithOptions, base64EncodedStringWithOptions: + first implementation 2015-06-08 Richard Frith-Macdonald - * Source/NSData.m: be strict about '=' padding only occurring at end - of base64 encoded data. + * Source/NSData.m: be strict about '=' padding only occurring at end + of base64 encoded data. 2015-06-04 Richard Frith-Macdonald - * Source/NSArray.m: Use NSUInteger rather than unsigned, use memory - management macros. - * Source/NSConnection.m: Changes to avoid compiler warnings. - * Headers/Foundation/NSData.h: - * Source/NSData.m: add base64 initialisation methods (bug #45240) + * Source/NSArray.m: Use NSUInteger rather than unsigned, use memory + management macros. + * Source/NSConnection.m: Changes to avoid compiler warnings. + * Headers/Foundation/NSData.h: + * Source/NSData.m: add base64 initialisation methods (bug #45240) 2015-06-01 Riccardo Mottola - * Headers/Foundation/NSArray.h - * Source/NSArray.m - Add firstObject: method existing since 10.6 + * Headers/Foundation/NSArray.h + * Source/NSArray.m + Add firstObject: method existing since 10.6 2015-05-26 Richard Frith-Macdonald - * Source/NSURLConnection.m: Fix leak of limit date - * Source/NSXMLParser.m: Fix leak of string + * Source/NSURLConnection.m: Fix leak of limit date + * Source/NSXMLParser.m: Fix leak of string 2015-05-26: Sebastian Reitenbach - * Source/Additions/Unicode.m - * Tools/AGSOutput.m - return NULL or nil instead of NO where pointers are to - be returned + * Source/Additions/Unicode.m + * Tools/AGSOutput.m + return NULL or nil instead of NO where pointers are to + be returned 2015-05-26 Richard Frith-Macdonald - * GSString.m: Fix sign extension bug - * Source/NSXMLParser.m: Update to more exactly match OSX behavior - * Source/NSDateFormatter.m: attempt to fix functionality broken - by additional call to set date format during reset. + * GSString.m: Fix sign extension bug + * Source/NSXMLParser.m: Update to more exactly match OSX behavior + * Source/NSDateFormatter.m: attempt to fix functionality broken + by additional call to set date format during reset. 2015-05-25 Richard Frith-Macdonald - * Source/NSXMLParser.m: Use libxml2 if available. + * Source/NSXMLParser.m: Use libxml2 if available. 2015-05-24 Richard Frith-Macdonald - * GSString.m: - * NSDebug.m: - * NSZone.m: - Minor optimisations and tidyups + * GSString.m: + * NSDebug.m: + * NSZone.m: + Minor optimisations and tidyups 2015-05-23 Richard Frith-Macdonald - * Source/GSString.m: Fix failure to check free when done flag before - freeing memory. + * Source/GSString.m: Fix failure to check free when done flag before + freeing memory. 2015-05-22 Richard Frith-Macdonald - * Source/NSString.m: - * Source/GSString.m: - Some optimisation. Fix -hasPrefix: and -hasSuffix: to use literal - search as on OSX. + * Source/NSString.m: + * Source/GSString.m: + Some optimisation. Fix -hasPrefix: and -hasSuffix: to use literal + search as on OSX. 2015-05-15 Richard Frith-Macdonald - * Documentation/install.texi: - * ANNOUNCE: - * INSTALL: - * NEWS: - Final updates for 1.24.8 release + * Documentation/install.texi: + * ANNOUNCE: + * INSTALL: + * NEWS: + Final updates for 1.24.8 release 2015-05-13 Richard Frith-Macdonald - * configure.ac: Tidy compiler and preprocessor detection and use - warning for potentially broken compiler selection. - * configure: regenerate + * configure.ac: Tidy compiler and preprocessor detection and use + warning for potentially broken compiler selection. + * configure: regenerate 2015-05-13 Richard Frith-Macdonald - * Version: - * Documentation/news.texi: - * Documentation/ReleaseNotes.gsdoc: - Update in preparation for release - * Source/Makefile.postamble: - * Makefile.postamble: - * GNUmakefile: - Apply Yavor Doganov's patch to avoid re-run of configure when we do - multiple 'make distclean' invocations (bug #29730). + * Version: + * Documentation/news.texi: + * Documentation/ReleaseNotes.gsdoc: + Update in preparation for release + * Source/Makefile.postamble: + * Makefile.postamble: + * GNUmakefile: + Apply Yavor Doganov's patch to avoid re-run of configure when we do + multiple 'make distclean' invocations (bug #29730). 2015-05-12 Richard Frith-Macdonald - * Source/NSTimeZones/NSTimeZones.tar: updated + * Source/NSTimeZones/NSTimeZones.tar: updated 2015-05-05 Richard Frith-Macdonald - * Source/GSString.m: - Fix for 64bit systems using TinyString objects ... missing - implementations for common methods were making performance dire. + * Source/GSString.m: + Fix for 64bit systems using TinyString objects ... missing + implementations for common methods were making performance dire. 2015-05-02 Niels Grewe - * Source/GSSet.m - * Source/NSCountedSet.m - * Source/NSSet.m: - Implement a private method -_countForObject: that enables to correctly - check equality of NSSet and NSCountedSet (behaviour verified to match - OS X). Fixes bug #43915. - * Tests/base/NSCountedSet/equality.m: Test cases for equality behaviour. + * Source/GSSet.m + * Source/NSCountedSet.m + * Source/NSSet.m: + Implement a private method -_countForObject: that enables to correctly + check equality of NSSet and NSCountedSet (behaviour verified to match + OS X). Fixes bug #43915. + * Tests/base/NSCountedSet/equality.m: Test cases for equality behaviour. 2015-04-20 Richard Frith-Macdonald - * Source/NSTimeZone.m: Improve caching of common absolute timezones. + * Source/NSTimeZone.m: Improve caching of common absolute timezones. 2015-04-28 Niels Grewe - * Source/NSDateFormatter.m: Properly reinstall the user provided - date format when we need to recreate the icu-based date formatter. + * Source/NSDateFormatter.m: Properly reinstall the user provided + date format when we need to recreate the icu-based date formatter. 2015-04-02 Richard Frith-Macdonald - * Source/NSThread.m: If an exception occurs while performing a - selector in another thread, catch it and cleanup (and if the - caller is waiting, pass the exception back to it). + * Source/NSThread.m: If an exception occurs while performing a + selector in another thread, catch it and cleanup (and if the + caller is waiting, pass the exception back to it). 2015-04-01 Wolfgang Lux - * configure.ac: Fix comment syntax and use standard operator in - test command. + * configure.ac: Fix comment syntax and use standard operator in + test command. - * configure: Regenerated. + * configure: Regenerated. 2015-03-31 Richard Frith-Macdonald - * Source/GSPrivate.h: Internal function to get OS thread ID - * Source/NSThread.m: Report thread name and ID in description - * Source/NSLog.m: Use new function for thread ID - * configure.ac: Detect getaddrinfo and bsd thread id extensions - * Headers/GNUstepBase/config.h.in: regenerate - * configure: regenerate - * Source/NSHost.m: Start of code to use getaddrinfo + * Source/GSPrivate.h: Internal function to get OS thread ID + * Source/NSThread.m: Report thread name and ID in description + * Source/NSLog.m: Use new function for thread ID + * configure.ac: Detect getaddrinfo and bsd thread id extensions + * Headers/GNUstepBase/config.h.in: regenerate + * configure: regenerate + * Source/NSHost.m: Start of code to use getaddrinfo 2015-03-13 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m: Fix a bug leading to crashes on thread - exit in cases where deallocation of something in the thread dictionary - causes further use of the thread's autorelease pool (which has already - been deallocated). + * Source/NSAutoreleasePool.m: Fix a bug leading to crashes on thread + exit in cases where deallocation of something in the thread dictionary + causes further use of the thread's autorelease pool (which has already + been deallocated). 2015-03-10 Niels Grewe - * Source/GSTimSort.m: Fix a DoS vulnerability discovered in the - Timsort algorithm. For information about the problem please refer to - http://www.envisage-project.eu/proving-android-java-and-python-sorting - -algorithm-is-broken-and-how-to-fix-it/ + * Source/GSTimSort.m: Fix a DoS vulnerability discovered in the + Timsort algorithm. For information about the problem please refer to + http://www.envisage-project.eu/proving-android-java-and-python-sorting + -algorithm-is-broken-and-how-to-fix-it/ 2015-03-08 Richard Frith-Macdonald - * Source/NSFileHandle.m: ([-sslHandshakeEstablished:outgoing:]) - If we can't create a session, the handshake should fail rather - than being retried. Fix infinite loop establish session on closed - handle. + * Source/NSFileHandle.m: ([-sslHandshakeEstablished:outgoing:]) + If we can't create a session, the handshake should fail rather + than being retried. Fix infinite loop establish session on closed + handle. 2015-02-28 Richard Frith-Macdonald - * Headers/GNUstepBase/NSDebug+GNUstepBase.h: - Define DLog() and ALog() as suggested by Amr Aboelela + * Headers/GNUstepBase/NSDebug+GNUstepBase.h: + Define DLog() and ALog() as suggested by Amr Aboelela 2015-02-28 Richard Frith-Macdonald - * configure.ac: Check for gettid availability - * configure: Regenerate - * Headers/GNUstepBase/config.h.in: Regenerate - * Source/GSPrivate.h: Update comment on GSLogThread - * Documentation/Base.gsdoc: Update doc of GSLogThread - * Source/NSLog.m: Change to log thread ID (to match OSX which now - logs the thread ID along with the process ID). Change the meaning - of the GSLogThread user default (which used to turn on logging of - the thread ID) so that it now turns on logging of the thread name - (where a thread name has been set) and the NSThread address if no - name has been set. + * configure.ac: Check for gettid availability + * configure: Regenerate + * Headers/GNUstepBase/config.h.in: Regenerate + * Source/GSPrivate.h: Update comment on GSLogThread + * Documentation/Base.gsdoc: Update doc of GSLogThread + * Source/NSLog.m: Change to log thread ID (to match OSX which now + logs the thread ID along with the process ID). Change the meaning + of the GSLogThread user default (which used to turn on logging of + the thread ID) so that it now turns on logging of the thread name + (where a thread name has been set) and the NSThread address if no + name has been set. 2015-02-16 Wolfgang Lux - * Source/NSData.m (writeToFile:options:error:): Fix leak of open - file descriptor on systems where mkstemp is defined. + * Source/NSData.m (writeToFile:options:error:): Fix leak of open + file descriptor on systems where mkstemp is defined. 2015-02-15 Richard Frith-Macdonald - * config/objc-sys-dynamic.m4: Check for windows before anything else - * configure: regenerate - Apparently recent mingw implements headers which folled configure - into using dlopen() with doesn't support native windows paths ... - change order of checks so we still use the native API. + * config/objc-sys-dynamic.m4: Check for windows before anything else + * configure: regenerate + Apparently recent mingw implements headers which folled configure + into using dlopen() with doesn't support native windows paths ... + change order of checks so we still use the native API. 2015-02-14 Richard Frith-Macdonald - * Source/NSThread.m: Be more agressive about releasing thread - resources when a thread exists (in particular release the - thread's runloop repeatedly for bug #44240) in case of the - deallocation of objects causing re-population of thread data. + * Source/NSThread.m: Be more agressive about releasing thread + resources when a thread exists (in particular release the + thread's runloop repeatedly for bug #44240) in case of the + deallocation of objects causing re-population of thread data. 2015-02-07 Richard Frith-Macdonald - * Source/NSData.m: Simplify mingw/unixy ifdefs for writing a file. - * Source/NSThread.m: Simplify mingw/unixy ifdefs for sleeping. + * Source/NSData.m: Simplify mingw/unixy ifdefs for writing a file. + * Source/NSThread.m: Simplify mingw/unixy ifdefs for sleeping. -2015-02-05 Niels Grewe +2015-02-05 Niels Grewe - * Source/GSTLS.m: Use path standardization when setting up TLS data - to be mapped to a specific filesystem location. + * Source/GSTLS.m: Use path standardization when setting up TLS data + to be mapped to a specific filesystem location. 2015-01-13 Marcus Mueller - * Headers/Foundation/Foundation.h: added NSUUID.h + * Headers/Foundation/Foundation.h: added NSUUID.h 2014-12-28 Wolfgang Lux - * configure.ac: - * Source/NSThread.m (PTHREAD_SETNAME): - Fix detection of the proper pthread_setname_np and - pthread_set_name_np variants on FreeBSD, OpenBSD and Darwin. + * configure.ac: + * Source/NSThread.m (PTHREAD_SETNAME): + Fix detection of the proper pthread_setname_np and + pthread_set_name_np variants on FreeBSD, OpenBSD and Darwin. - * configure: Regenerated. + * configure: Regenerated. 2014-12-28 Wolfgang Lux - * Source/GSSocketStream.m: Add necessary GSTLSHandler methods when - TLS is disabled. - * Source/GSTLS.m (standardizedPath): Define private function only - when TLS is enabled. + * Source/GSSocketStream.m: Add necessary GSTLSHandler methods when + TLS is disabled. + * Source/GSTLS.m (standardizedPath): Define private function only + when TLS is enabled. 2014-12-23 Richard Frith-Macdonald - * Source/NSTimeZone.m: - * Source/nstzfile.h: - Remove unused include of (possibly) non existent file. + * Source/NSTimeZone.m: + * Source/nstzfile.h: + Remove unused include of (possibly) non existent file. 2014-12-23 Riccardo Mottola - * Source/GSSocketStream.m - Fix code-path for non AF_INET6 + * Source/GSSocketStream.m + Fix code-path for non AF_INET6 - * Source/NSDate.m - Provide NAN constant for Solaris if not available. + * Source/NSDate.m + Provide NAN constant for Solaris if not available. 2014-11-29 Sergei Golovin - * Tests/base/NSURLConnection: Test helper tool plus a load of - tests for NSURLConnection. + * Tests/base/NSURLConnection: Test helper tool plus a load of + tests for NSURLConnection. 2014-11-29 Richard Frith-Macdonald - * Source/NSScanner.m: Fixup error in scanning doubles with excess - precision (bug #43722). + * Source/NSScanner.m: Fixup error in scanning doubles with excess + precision (bug #43722). -2014-11-28 johannes@brilliantservice.co.jp +2014-11-28 - * Source/NSThread.m: Set thread name visible to OS - * configure.ac: test for pthread_set_name_np() - Integrated Johannes patch with some changes to make things work if - we set the name before starting the thread. Commend out ms-windows - code which doesn't work yet. + * Source/NSThread.m: Set thread name visible to OS + * configure.ac: test for pthread_set_name_np() + Integrated Johannes patch with some changes to make things work if + we set the name before starting the thread. Commend out ms-windows + code which doesn't work yet. 2014-11-20 Sergei Golovin - * Source/GSSocketStream.m: - * Tests/base/NSURL/Helpers/capture.m: - * Tests/base/NSURL/testKey.pem: - * Tests/base/NSURL/test02.m: - * Tests/base/NSURL/testCert.pem: - Implement TLS on server socket and make use of it in HTTPS URL helper - code. Also, permit NSStream zero length write (it seems OSX allows - it). + * Source/GSSocketStream.m: + * Tests/base/NSURL/Helpers/capture.m: + * Tests/base/NSURL/testKey.pem: + * Tests/base/NSURL/test02.m: + * Tests/base/NSURL/testCert.pem: + Implement TLS on server socket and make use of it in HTTPS URL helper + code. Also, permit NSStream zero length write (it seems OSX allows + it). 2014-11-20 Richard Frith-Macdonald - * Source/NSRunLoop.m: Avoind some unnecessary retain/release cycles. + * Source/NSRunLoop.m: Avoind some unnecessary retain/release cycles. 2014-11-05 Richard Frith-Macdonald - * Source/GSTLS.m: If a user default value is removed while running, - revert to the value from the environment or the hard coded fallback - rather than continuing to use the previous value from the defaults - system. + * Source/GSTLS.m: If a user default value is removed while running, + revert to the value from the environment or the hard coded fallback + rather than continuing to use the previous value from the defaults + system. 2014-11-04 Richard Frith-Macdonald - * Source/NSThread.m: When handling perform in another thread, check - more carefully for inter-thread communications (pipe on unix, event - on windows) and make sure we invalidate performers safely outside - the lock protected region when I/O is complete. + * Source/NSThread.m: When handling perform in another thread, check + more carefully for inter-thread communications (pipe on unix, event + on windows) and make sure we invalidate performers safely outside + the lock protected region when I/O is complete. 2014-11-01 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Fix leak of handle when starting a new - connection after an older one is dropped by the remote end. + * Source/GSHTTPURLHandle.m: Fix leak of handle when starting a new + connection after an older one is dropped by the remote end. 2014-10-30 Sergei Golovin - * Source/NSURLProtocol.m: Fix memory leak and possible hang on retry - (bug #43461). + * Source/NSURLProtocol.m: Fix memory leak and possible hang on retry + (bug #43461). 2014-10-17 Richard Frith-Macdonald - * Documentation/news.texi: - * Documentation/ReleaseNotes.gsdoc: - * Version: Bump subminor version for bugfix release - * NSTimeZones/NSTimeZones.tar: update - * Source/NSProcessInfo.m: Use separate lock for globally unique - string rather than sharing lock intended for other purposes. - * Source/GSTLS.m: Change default TLS 'priority' to disable SSLv3.0 - as it renders things open to the 'POODLE' attack. - Also, print warning if it is expressly requested from the code - (though the use of the GSTLSPriority user default will still - allow complete control without warnings). + * Documentation/news.texi: + * Documentation/ReleaseNotes.gsdoc: + * Version: Bump subminor version for bugfix release + * NSTimeZones/NSTimeZones.tar: update + * Source/NSProcessInfo.m: Use separate lock for globally unique + string rather than sharing lock intended for other purposes. + * Source/GSTLS.m: Change default TLS 'priority' to disable SSLv3.0 + as it renders things open to the 'POODLE' attack. + Also, print warning if it is expressly requested from the code + (though the use of the GSTLSPriority user default will still + allow complete control without warnings). 2014-10-11 Marcus Mueller - * Headers/GNUstepBase/GSVersionMacros.h: UNAVAILABLE_ATTRIBUTE added + * Headers/GNUstepBase/GSVersionMacros.h: UNAVAILABLE_ATTRIBUTE added 2014-08-19 Wolfgang Lux - * configure.ac: - * Headers/GNUstepBase/config.h.in: Add test for grantpt function. + * configure.ac: + * Headers/GNUstepBase/config.h.in: Add test for grantpt function. - * configure: Regenerated. + * configure: Regenerated. 2014-07-25 Richard Frith-Macdonald - * Source/Tools/gdomap.c: Unless running on windows, allow new -j - command-line argument to specify the path in which the process should - be jailed (chroot). The default remains to jail the process in /tmp - since there doesn't seem to be a general, portable alternative. + * Source/Tools/gdomap.c: Unless running on windows, allow new -j + command-line argument to specify the path in which the process should + be jailed (chroot). The default remains to jail the process in /tmp + since there doesn't seem to be a general, portable alternative. 2014-07-25 Richard Frith-Macdonald - * Source/GSSocketStream.m: Fix handling TLS handshake in the case - where there is a network failure during the handshake (bug#42781). - * Source/GSTLS.m: Fix erroneous attempt to load revocation lists. - * Tests/base/NSURLConnection/test01.m: https test contributed by - Sergei Golovin. + * Source/GSSocketStream.m: Fix handling TLS handshake in the case + where there is a network failure during the handshake (bug#42781). + * Source/GSTLS.m: Fix erroneous attempt to load revocation lists. + * Tests/base/NSURLConnection/test01.m: https test contributed by + Sergei Golovin. 2014-07-25 Richard Frith-Macdonald @@ -7156,62 +7167,62 @@ 2014-07-13 Yavor Doganov - Add large file support (LFS) for NSData. - * configure.ac: Call AC_FUNC_FSEEKO/AC_SYS_LARGEFILE. - * Source/NSData.m (readContentsOfFile): Use fseeko/ftello and - off_t as appropriate. - (-initWithContentsOfFile:): Define fileLength of type off_t. - * Source/GSFileHandle.m: - * Source/win32/GSFileHandle.m: - * Source/NSFileManager.m: Remove _FILE_OFFSET_BITS define (now - defined globally in config.h). + Add large file support (LFS) for NSData. + * configure.ac: Call AC_FUNC_FSEEKO/AC_SYS_LARGEFILE. + * Source/NSData.m (readContentsOfFile): Use fseeko/ftello and + off_t as appropriate. + (-initWithContentsOfFile:): Define fileLength of type off_t. + * Source/GSFileHandle.m: + * Source/win32/GSFileHandle.m: + * Source/NSFileManager.m: Remove _FILE_OFFSET_BITS define (now + defined globally in config.h). 2014-07-14 Richard Frith-Macdonald - * Source/NSRunLoop.m: ([-runMode:beforeDate:]) check performers as - well as notifications etc ... should fix bug #39107 + * Source/NSRunLoop.m: ([-runMode:beforeDate:]) check performers as + well as notifications etc ... should fix bug #39107 2014-02-17 Larry Campbell - * Source/NSJSONSerialization.m: - * Tests/base/NSJSONSerialization/tests00.m: - Fixes for bug #41628 + * Source/NSJSONSerialization.m: + * Tests/base/NSJSONSerialization/tests00.m: + Fixes for bug #41628 2014-07-12 Yavor Doganov - * Tests/GNUmakefile: - * Tests/base/Functions/NSGeometry1.m: - * Tests/base/NSRunLoop/performers.m: - Tweaks for running in sandbox (bug #42740) + * Tests/GNUmakefile: + * Tests/base/Functions/NSGeometry1.m: + * Tests/base/NSRunLoop/performers.m: + Tweaks for running in sandbox (bug #42740) 2014-07-07 Yunqiang Su (tiny change) - * config/config.trampoline.c: - * Source/NSObject.m (GSAtomicIncrement, GSAtomicDecrement): - Use __mips64 to distinguish MIPS64. + * config/config.trampoline.c: + * Source/NSObject.m (GSAtomicIncrement, GSAtomicDecrement): + Use __mips64 to distinguish MIPS64. 2014-06-30 Yavor Doganov - * Tools/GNUmakefile (CONFIG_SYSTEM_LIBS): - * Tools/make_strings/GNUmakefile (CONFIG_SYSTEM_LIBS): Define - to the empty string to avoid linking the tools against - external libraries. + * Tools/GNUmakefile (CONFIG_SYSTEM_LIBS): + * Tools/make_strings/GNUmakefile (CONFIG_SYSTEM_LIBS): Define + to the empty string to avoid linking the tools against + external libraries. 2014-06-30 Yavor Doganov - * base.make.in: make base dependencies explicit only when statically - linnking (bug #42423) + * base.make.in: make base dependencies explicit only when statically + linnking (bug #42423) 2014-06-30 Yavor Doganov - * GNUmakefile: Use -include for deb.make (for backward compatibility - with old versions of gnustep-make). - * Documentation/GNUmakefile: - * Documentation/General/GNUmakefile: - * Source/DocMakefile: - * Tools/DocMakefile: - Flags alterations to build documentation before base/autogsdoc is - installed. + * GNUmakefile: Use -include for deb.make (for backward compatibility + with old versions of gnustep-make). + * Documentation/GNUmakefile: + * Documentation/General/GNUmakefile: + * Source/DocMakefile: + * Tools/DocMakefile: + Flags alterations to build documentation before base/autogsdoc is + installed. * configure.ac: Test whether gnutls needs libgcrypt * Source/GSTLS.h: Use test * Source/GSTLS.m: Use test @@ -7219,19 +7230,19 @@ 2014-06-26 Riccardo Mottola - * Headers/GNUstepBase/GSTypeEncoding.h - * Headers/GNUstepBase/GSVersionMacros.h - Substitute #import with #include so that the header can be used in - a pure C file without gcc warnings. + * Headers/GNUstepBase/GSTypeEncoding.h + * Headers/GNUstepBase/GSVersionMacros.h + Substitute #import with #include so that the header can be used in + a pure C file without gcc warnings. 2014-06-20 Richard Frith-Macdonald - * Source/NSSocketPortNameServer.m: - * Source/NSMessagePortNameServer.m: - Maps of ports to names modified to treat the ports as non owned - pointers rather than non retained objects ... so we simply do - pointer comparisons (faster and also safer if we are removing - a port which is being deallocated). + * Source/NSSocketPortNameServer.m: + * Source/NSMessagePortNameServer.m: + Maps of ports to names modified to treat the ports as non owned + pointers rather than non retained objects ... so we simply do + pointer comparisons (faster and also safer if we are removing + a port which is being deallocated). 2014-06-20 Richard Frith-Macdonald @@ -7243,402 +7254,402 @@ 2014-06-19 Riccardo Mottola - * Source/common.h - Include and do not import pure-C header, guard against re-inclusion + * Source/common.h + Include and do not import pure-C header, guard against re-inclusion 2014-06-18 Riccardo Mottola - * Source/unix/NSStream.m - Add missing includes (in correct order) for open() on most OS, - including Solaris. + * Source/unix/NSStream.m + Add missing includes (in correct order) for open() on most OS, + including Solaris. 2014-06-01 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Fix buffer overrun. - * Source/GSString.m: Fix uninitialised variable. - Cure for bug #42483 + * Source/Additions/Unicode.m: Fix buffer overrun. + * Source/GSString.m: Fix uninitialised variable. + Cure for bug #42483 2014-05-28 Manuel Guesdon - * Source/NSUndoManager.m - Assert sig is not null in registerUndoWithTarget:selector:object: + * Source/NSUndoManager.m + Assert sig is not null in registerUndoWithTarget:selector:object: 2014-05-22 Richard Frith-Macdonald - * Source/GSInvocation.h: - * Source/NSInvocation.m: - * Headers/Foundation/NSInvocation.h: - * Tests/base/NSInvocation/test02.m: - Reinstate lost code for NS_MESSAGE and NS_INVOCATION macros + * Source/GSInvocation.h: + * Source/NSInvocation.m: + * Headers/Foundation/NSInvocation.h: + * Tests/base/NSInvocation/test02.m: + Reinstate lost code for NS_MESSAGE and NS_INVOCATION macros 2014-05-20 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: - * Source/NSURLProtocol.m: - When creating the 'Host' header, omit the port part if the scheme is - http/https and the port is the normal 80/443. A workaround for buggy - software which doesn't understand the spec saying that the port is - 'optional', not 'omitted' in these cases. + * Source/GSHTTPURLHandle.m: + * Source/NSURLProtocol.m: + When creating the 'Host' header, omit the port part if the scheme is + http/https and the port is the normal 80/443. A workaround for buggy + software which doesn't understand the spec saying that the port is + 'optional', not 'omitted' in these cases. 2014-05-09 Richard Frith-Macdonald - * Source/NSDebug.m: - * Headers/Foundation/NSDebug.h: - Add GSDebugAllocationRecordObjects() - and deprecate GSDebugAllocationActiveRecordingObjects() - so we can turn individual object tracking on and off. - Move documentation from source to header. + * Source/NSDebug.m: + * Headers/Foundation/NSDebug.h: + Add GSDebugAllocationRecordObjects() + and deprecate GSDebugAllocationActiveRecordingObjects() + so we can turn individual object tracking on and off. + Move documentation from source to header. 2014-05-08 Richard Frith-Macdonald - * Tools/gdomap.m: Fix ifdefs for MINGW to avoid fork relatred code. + * Tools/gdomap.m: Fix ifdefs for MINGW to avoid fork relatred code. 2014-05-05 Ivan Vucica - * GNUmakefile: gnustep-make's Master/deb.make now included. - * Tests/GNUmakefile: gnustep-tests --clean is now permitted to - fail. This helps in case 'make {dist,}clean' is called by some - automation. + * GNUmakefile: gnustep-make's Master/deb.make now included. + * Tests/GNUmakefile: gnustep-tests --clean is now permitted to + fail. This helps in case 'make {dist,}clean' is called by some + automation. 2014-05-01 Richard Frith-Macdonald - * Source/GSSocketStream.m: Set initial state of accepted incoming - connection streams to be open (otherwise we can't close them). + * Source/GSSocketStream.m: Set initial state of accepted incoming + connection streams to be open (otherwise we can't close them). 2014-04-26 Manuel Guesdon - * Source/NSKeyValueCoding.m - Fix exception msg in setValue:forUndefinedKey: + * Source/NSKeyValueCoding.m + Fix exception msg in setValue:forUndefinedKey: 2014-04-18 Richard Frith-Macdonald - * Headers/Foundation/NSHost.h: - * Source/NSHost.m: - Add OSX 10.6 -localizedName method. + * Headers/Foundation/NSHost.h: + * Source/NSHost.m: + Add OSX 10.6 -localizedName method. 2014-04-12 Richard Frith-Macdonald - * Source/NSRegularExpression.m: Check for bad range from ICU and - flag an internal error if we see it; mimic OSX behavior when a - range limited match fails. + * Source/NSRegularExpression.m: Check for bad range from ICU and + flag an internal error if we see it; mimic OSX behavior when a + range limited match fails. 2014-04-11 Fred Kiefer - * Headers/Foundation/NSXMLNodeOptions.h: Add new 10.7 options. - * Source/NSXMLDocument.m: Use XML_PARSE_NONET as the default - option for xmlReadMemory. Add XML_PARSE_NOENT when - NSXMLNodeLoadExternalEntitiesNever is set. + * Headers/Foundation/NSXMLNodeOptions.h: Add new 10.7 options. + * Source/NSXMLDocument.m: Use XML_PARSE_NONET as the default + option for xmlReadMemory. Add XML_PARSE_NOENT when + NSXMLNodeLoadExternalEntitiesNever is set. 2014-03-28 Richard Frith-Macdonald - * Source/NSXMLParser.m: If parsing something which contains data - which can't be utf-8, generate a parse error. + * Source/NSXMLParser.m: If parsing something which contains data + which can't be utf-8, generate a parse error. 2014-03-26 Richard Frith-Macdonald - * Source/NSConnection.m: handle invalidation of connection while - getting root proxy. + * Source/NSConnection.m: handle invalidation of connection while + getting root proxy. 2014-03-26 Riccardo Mottola - * Source/NSProcessInfo.m (determineOperatingSystem): - uname() on solaris may return a positive value on success, not just 0 + * Source/NSProcessInfo.m (determineOperatingSystem): + uname() on solaris may return a positive value on success, not just 0 2014-03-25 Fred Kiefer - * Tools/NSOperation.m: ([_finish]) fix logic of 'executing' flag. + * Tools/NSOperation.m: ([_finish]) fix logic of 'executing' flag. 2014-03-19 Richard Frith-Macdonald - * Tools/gdomap.c: Don't open syslog connection until after we have - forked and closed old descriptors .. fix for bug #41751 - * Headers/Foundation/NSData.h: - * Source/NSData.m: - * Source/NSString.m: - Fix for bug #41626 - * Source/Additions/GSObjCRuntime.m: patch by Mathias Bauer - for bool encoding/decoding. + * Tools/gdomap.c: Don't open syslog connection until after we have + forked and closed old descriptors .. fix for bug #41751 + * Headers/Foundation/NSData.h: + * Source/NSData.m: + * Source/NSString.m: + Fix for bug #41626 + * Source/Additions/GSObjCRuntime.m: patch by Mathias Bauer + for bool encoding/decoding. 2014-03-11 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - When generating document with a header containing adjacent non-ascii - words which need to be encoded, omit the space between those words - for consistency with the change on Fe 3rd. + * Source/Additions/GSMime.m: + When generating document with a header containing adjacent non-ascii + words which need to be encoded, omit the space between those words + for consistency with the change on Fe 3rd. 2014-02-18 Fred Kiefer - * Source/NSDateFormatter.m - (-initWithDateFormat:allowNaturalLanguage:): - Use method -setDateFormat: to get correct behaviour. - * Source/NSDateFormatter.m (-setDateFormat:): - Use ASSIGNCOPY for _dateFormat. + * Source/NSDateFormatter.m + (-initWithDateFormat:allowNaturalLanguage:): + Use method -setDateFormat: to get correct behaviour. + * Source/NSDateFormatter.m (-setDateFormat:): + Use ASSIGNCOPY for _dateFormat. 2014-02-14 Quentin Mathe - * Headers/Foundation/NSNotification.h - * Source/NSNotificationCenter.m - (-addObserverForName:selector:queue:usingBlock:): - Added new Mac OS X 10.6 method. + * Headers/Foundation/NSNotification.h + * Source/NSNotificationCenter.m + (-addObserverForName:selector:queue:usingBlock:): + Added new Mac OS X 10.6 method. 2014-02-14 Quentin Mathe - * Headers/Foundation/NSSortDescriptor.h - * Source/Foundation/NSSortDescriptor.m - (+sortDescriptorWithKey:ascending:selector:, - +sortDescriptorWithKey:ascending, - -[NSSet sortedArrayUsingDescriptors:]): Added missing Mac OS X 10.6 - methods. + * Headers/Foundation/NSSortDescriptor.h + * Source/Foundation/NSSortDescriptor.m + (+sortDescriptorWithKey:ascending:selector:, + +sortDescriptorWithKey:ascending, + -[NSSet sortedArrayUsingDescriptors:]): Added missing Mac OS X 10.6 + methods. 2014-02-13 Richard Frith-Macdonald - * Source/GSFormat.m: Fix to cope with cases where a format specifies - a field width larger than can reasonably fit on the strack ... use - the heap. + * Source/GSFormat.m: Fix to cope with cases where a format specifies + a field width larger than can reasonably fit on the strack ... use + the heap. 2014-02-13 Larry Campbell - * Source/NSCalendarDate.m: Fixup millisecond formatting to match OSX + * Source/NSCalendarDate.m: Fixup millisecond formatting to match OSX 2014-02-12 Quentin Mathe - * Tools/gsdoc-1_0_4.dtd: Added new DTD version that declares 'package' - visibility as a valid ivar qualifier. - * Tools/AGSParser.m: Added 'package' visibility parsing. - * Tools/AGSOutput.m: - * Tools/autogsdoc.m: - * Tools/GNUmakefile.m: - Updated to refer to the latest DTD version. + * Tools/gsdoc-1_0_4.dtd: Added new DTD version that declares 'package' + visibility as a valid ivar qualifier. + * Tools/AGSParser.m: Added 'package' visibility parsing. + * Tools/AGSOutput.m: + * Tools/autogsdoc.m: + * Tools/GNUmakefile.m: + Updated to refer to the latest DTD version. 2014-02-03 Richard Frith-Macdonald - * Source/NSString.m: Fix standardising a path to use unix separators - consistently with appending a pathc component ... paths should be - (as far as possible) portable, and the filesystem representation - methods convert to backslashes as necessary on windows anyway. + * Source/NSString.m: Fix standardising a path to use unix separators + consistently with appending a pathc component ... paths should be + (as far as possible) portable, and the filesystem representation + methods convert to backslashes as necessary on windows anyway. 2014-02-03 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - * Headers/GNUstepBase/GSMime.h: - Add support for stripping white space between encoded words (RFC2047) + * Source/Additions/GSMime.m: + * Headers/GNUstepBase/GSMime.h: + Add support for stripping white space between encoded words (RFC2047) 2014-02-02 Yavor Doganov - * configure.ac: Force use for fake main on kfreebsd to work around bug - handling large number of arguments. - * Documentation/coding-standards.texi: - * Documentation/manual/manual.texi: - * Tools/cvtenc.1: - * Tools/pldes.1: - * Tools/defaults.1: - * Tools/autogsdoc.1: - * Tools/gdomap.8: - Minor cosmetic tweaks + * configure.ac: Force use for fake main on kfreebsd to work around bug + handling large number of arguments. + * Documentation/coding-standards.texi: + * Documentation/manual/manual.texi: + * Tools/cvtenc.1: + * Tools/pldes.1: + * Tools/defaults.1: + * Tools/autogsdoc.1: + * Tools/gdomap.8: + Minor cosmetic tweaks 2014-02-02 Riccardo Mottola - * Source/NSString.m (stringByResolvingSymlinksInPath) - On GLIBC and FreeBSD use sysconf(_SC_SYMLOOP_MAX) instead of just - MAXSYMLINKS. For HURD this is necessary, since the latter is not - defined. + * Source/NSString.m (stringByResolvingSymlinksInPath) + On GLIBC and FreeBSD use sysconf(_SC_SYMLOOP_MAX) instead of just + MAXSYMLINKS. For HURD this is necessary, since the latter is not + defined. 2014-01-31 Marcus Mueller - * Source/NSUserNotification.m: - Implemented repetitions, moved "presented" flagging to the appropriate - method (subclassers may have different opinions about presentation, - i.e. gnustep-gui might want to prevent presentation if application - is already frontmost [the OSX behavior]). Improved -description - (similar to OSX's output, eases cross-platform debugging). - * Headers/Foundation/Foundation.h: - added NSUserNotification.h + * Source/NSUserNotification.m: + Implemented repetitions, moved "presented" flagging to the appropriate + method (subclassers may have different opinions about presentation, + i.e. gnustep-gui might want to prevent presentation if application + is already frontmost [the OSX behavior]). Improved -description + (similar to OSX's output, eases cross-platform debugging). + * Headers/Foundation/Foundation.h: + added NSUserNotification.h 2014-01-30 Marcus Mueller - * Headers/Foundation/NSUserNotification.h: - * Source/NSUserNotification.m: - Added default implementation which provides infrastructure but no real - transport mechanisms. An implementation utilizing DBus - (Desktop Notifications Specification) is provided via DBusKit. + * Headers/Foundation/NSUserNotification.h: + * Source/NSUserNotification.m: + Added default implementation which provides infrastructure but no real + transport mechanisms. An implementation utilizing DBus + (Desktop Notifications Specification) is provided via DBusKit. 2014-01-26 Fred Kiefer - * Headers/Foundation/NSKeyValueObserving.h, - * Source/NSKeyValueObserving.m: Add method - -keyPathsForValuesAffectingValueForKey:. + * Headers/Foundation/NSKeyValueObserving.h, + * Source/NSKeyValueObserving.m: Add method + -keyPathsForValuesAffectingValueForKey:. 2014-01-25 Frederik - * Source/NSKeyValueObserving.m: When using - (NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew) - as option for observeValueForKeyPath:ofObject:change:context:, - we should use -valueForKeyPath: instead of -valueForKey: to retrieve - the current (initial) value. + * Source/NSKeyValueObserving.m: When using + (NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew) + as option for observeValueForKeyPath:ofObject:change:context:, + we should use -valueForKeyPath: instead of -valueForKey: to retrieve + the current (initial) value. 2014-01-23 Richard Frith-Macdonald - * Source/GSFFCallInvocation.m: - * Source/GSFFIInvocation.m: - * Source/Additions/GSTypeEncoding.c: - * Headers/GNUstepBase/GSIArray.h: - * Headers/GNUstepBase/GSTypeEncoding.h: - * Headers/GNUstepBase/GSIMap.h: - Fixup to use GS_STATIC_INLINE consistently. - * Tools/autogsdoc.m: - Set up default work map for public macros whose use in headers - would otherwise confuse documentation generation. + * Source/GSFFCallInvocation.m: + * Source/GSFFIInvocation.m: + * Source/Additions/GSTypeEncoding.c: + * Headers/GNUstepBase/GSIArray.h: + * Headers/GNUstepBase/GSTypeEncoding.h: + * Headers/GNUstepBase/GSIMap.h: + Fixup to use GS_STATIC_INLINE consistently. + * Tools/autogsdoc.m: + Set up default work map for public macros whose use in headers + would otherwise confuse documentation generation. 2014-01-21 Pirmin Braun - * Source/NSDecimal.m: Fix for rounding precision. + * Source/NSDecimal.m: Fix for rounding precision. 2014-01-20 Quentin Mathe - * Source/NSSet.m: Added missing ([-valueForKey:]) method. + * Source/NSSet.m: Added missing ([-valueForKey:]) method. 2014-01-20 Quentin Mathe - * Source/NSKeyValueMutableArray.m: - * Source/NSKeyValueMutableSet.m: - Don't post KVO notifications if +automaticallyNotifiesObserversForKey: - returns NO, this ensures we match Cocoa behavior. + * Source/NSKeyValueMutableArray.m: + * Source/NSKeyValueMutableSet.m: + Don't post KVO notifications if +automaticallyNotifiesObserversForKey: + returns NO, this ensures we match Cocoa behavior. 2014-01-18 Quentin Mathe - * Source/NSObject.m (-respondsToSelector, - +instancesRespondToSelector:): Fixed to check +resolveInstanceMethod: - and +resolveClassMethod: as documented in Cocoa NSObject API. + * Source/NSObject.m (-respondsToSelector, + +instancesRespondToSelector:): Fixed to check +resolveInstanceMethod: + and +resolveClassMethod: as documented in Cocoa NSObject API. 2014-01-16 Niels Grewe - * Source/NSScanner.m: Implement -scanInteger: by conditionally - calling -scanInt: or -scanLongLong: based on the pointer size - detected at configure time. + * Source/NSScanner.m: Implement -scanInteger: by conditionally + calling -scanInt: or -scanLongLong: based on the pointer size + detected at configure time. 2014-01-16 Richard Frith-Macdonald - * Source/NSKeyValueObserving.m: - Path info lifetime fixups to avoid crashes of the kind reported - by Mathias Bauer + * Source/NSKeyValueObserving.m: + Path info lifetime fixups to avoid crashes of the kind reported + by Mathias Bauer 2014-01-14 Lubos Dolezel - * Source/NSBundle.m: - * Headers/Foundation/NSBundle.h: add -resourceURL + *Source/NSBundle.m: + * Headers/Foundation/NSBundle.h: add -resourceURL 2014-01-14 Richard Frith-Macdonald - * Source/NSPathUtilities.m: - * Documentation/Base.gsdoc: - Add GNUSTEP_DEVELOPER_DIR to allow definition of the native path - to the msys/mingw development tools on windows. - Also improve/fix lookup heuristics. + * Source/NSPathUtilities.m: + * Documentation/Base.gsdoc: + Add GNUSTEP_DEVELOPER_DIR to allow definition of the native path + to the msys/mingw development tools on windows. + Also improve/fix lookup heuristics. 2014-01-13 Richard Frith-Macdonald - * Source/NSString.m: Revert last change to get -isAbsolutePath working - on mingw again ... need to analyse startup problem. + * Source/NSString.m: Revert last change to get -isAbsolutePath working + on mingw again ... need to analyse startup problem. 2014-01-13 Marcus Mueller - * Source/NSString.m: absolute paths on __MINGW__ can also start - with "/" if GSPathHandlingRight() is YES, otherwise GNUstep config - paths can't be used during startup. + * Source/NSString.m: absolute paths on __MINGW__ can also start + with "/" if GSPathHandlingRight() is YES, otherwise GNUstep config + paths can't be used during startup. 2014-01-11 Marcus Mueller - * Source/GSMDNSNetServices.m: minor fixes - does now properly compile - on Windows, too. - NOTE: - If you want to link against Apple's Bonjour SDK on Windows, you have - to convert the dnssd.lib from MSVC/__stdcall format to GCC/__cdecl - and provide the result as libdns_sd.a. Also, DNSSD_API in dns_sd.h - needs to be defined empty. + * Source/GSMDNSNetServices.m: minor fixes - does now properly compile + on Windows, too. + NOTE: + If you want to link against Apple's Bonjour SDK on Windows, you have + to convert the dnssd.lib from MSVC/__stdcall format to GCC/__cdecl + and provide the result as libdns_sd.a. Also, DNSSD_API in dns_sd.h + needs to be defined empty. 2014-01-11 Richard Frith-Macdonald - * Source/NSPathUtilities.m: The NSDeveloperDirectory key is deprecated - on OSX, but lets use it for the development system root. - On windows systems this should be the native windows path at which - the msys system is installed, found relative to the current process - if possible, but otherwise with the GNUstep packages installed, - found relative to the package installation directory. - In other cases (no specific development environment found) the - system root directory is returned. + * Source/NSPathUtilities.m: The NSDeveloperDirectory key is deprecated + on OSX, but lets use it for the development system root. + On windows systems this should be the native windows path at which + the msys system is installed, found relative to the current process + if possible, but otherwise with the GNUstep packages installed, + found relative to the package installation directory. + In other cases (no specific development environment found) the + system root directory is returned. 2014-01-10 Richard Frith-Macdonald - * Source/NSFileManager.m: - On mingw a file is executable if its extension is in the list - provided by the PATHEXT environment variable. - * Source/NSTask.m: - Simplification/clarification suggested by Riccardo + * Source/NSFileManager.m: + On mingw a file is executable if its extension is in the list + provided by the PATHEXT environment variable. + * Source/NSTask.m: + Simplification/clarification suggested by Riccardo 2014-01-08 Quentin Mathe - * Source/NSValueTransformer (+valueTransformerForName:): Fixed to - automatically register any available NSValueTransformer subclass that - matches the given name and is not yet registered. This behavior is - described in the Cocoa API documentation. + * Source/NSValueTransformer (+valueTransformerForName:): Fixed to + automatically register any available NSValueTransformer subclass that + matches the given name and is not yet registered. This behavior is + described in the Cocoa API documentation. 2014-01-08 Richard Frith-Macdonald - * Source/NSUUID.m: - * Source/Additions/NSData+GNUstepBase.m: - * Headers/GNUstepBase/NSData+GNUstepBase.h: - Move random data generation out to the NSData(GNUstepBase) category. + * Source/NSUUID.m: + * Source/Additions/NSData+GNUstepBase.m: + * Headers/GNUstepBase/NSData+GNUstepBase.h: + Move random data generation out to the NSData(GNUstepBase) category. 2014-01-07 Quentin Mathe - * Source/NSJSONSerialization.m (writeObject()): Fixed double number - serialization to encode 17 significant digits (this matches the max + * Source/NSJSONSerialization.m (writeObject()): Fixed double number + serialization to encode 17 significant digits (this matches the max number of significant digits in the double-precision floating point format). This prevents a loss of precision, in case the number has more than 3 digits after the decimal point. - * Tests/base/NSJSONSerialization/json.m: Updated to test double number - serialization. + * Tests/base/NSJSONSerialization/json.m: Updated to test double number + serialization. 2014-01-07 Richard Frith-Macdonald - * Source/NSOperation.m: Make sure current queue is set for threads - owned by a queue (and return the main queue for the main thread). - Avoid needing to create the main queue in the main thread. + * Source/NSOperation.m: Make sure current queue is set for threads + owned by a queue (and return the main queue for the main thread). + Avoid needing to create the main queue in the main thread. 2014-01-07 Richard Frith-Macdonald - * Source/NSObject.m: Fixed logic error in David's libobjc2 integration - for deallocation; should use object_getClass() if the object is NOT a - small object, use isa otherwise. + * Source/NSObject.m: Fixed logic error in David's libobjc2 integration + for deallocation; should use object_getClass() if the object is NOT a + small object, use isa otherwise. 2013-12-31 Marcus Mueller - * Headers/Foundation/NSMetadata.h: use GS_PROTOCOLS_HAVE_OPTIONAL for - NSMetadataQueryDelegate. Always define the protocol, even if it's empty - (so we don't have to adjust any headers), but fallback to the informal - protocol if OS version < 10.6 OR compiler doesn't support @optional - keyword in protocols. + * Headers/Foundation/NSMetadata.h: use GS_PROTOCOLS_HAVE_OPTIONAL for + NSMetadataQueryDelegate. Always define the protocol, even if it's empty + (so we don't have to adjust any headers), but fallback to the informal + protocol if OS version < 10.6 OR compiler doesn't support @optional + keyword in protocols. 2013-12-30 Marcus Mueller - * Headers/GNUstepBase/GSVersionMacros.h: added macros - GS_GCC_MINREQ(maj,min) and GS_CLANG_MINREQ(maj,min) to check for - minimum required versions of GCC and CLANG compilers. Changed several - occurrences of previous macros to improve readability. - Added GS_PROTOCOLS_HAVE_OPTIONAL to correctly mark all appropriate - declarations. - * Headers/Foundation/NSNetServices.h, - * Headers/Foundation/NSStream.h, - * Headers/Foundation/NSXMLParser.h, - * Headers/GNUstepBase/NSNetServices+GNUstepBase.h, - * Source/GSNetServices.h: - use GS_PROTOCOLS_HAVE_OPTIONAL macro where appropriate + * Headers/GNUstepBase/GSVersionMacros.h: added macros + GS_GCC_MINREQ(maj,min) and GS_CLANG_MINREQ(maj,min) to check for + minimum required versions of GCC and CLANG compilers. Changed several + occurrences of previous macros to improve readability. + Added GS_PROTOCOLS_HAVE_OPTIONAL to correctly mark all appropriate + declarations. + * Headers/Foundation/NSNetServices.h, + * Headers/Foundation/NSStream.h, + * Headers/Foundation/NSXMLParser.h, + * Headers/GNUstepBase/NSNetServices+GNUstepBase.h, + * Source/GSNetServices.h: + use GS_PROTOCOLS_HAVE_OPTIONAL macro where appropriate 2013-12-26 Marcus Mueller - * Headers/Foundation/NSNetServices.h: - * Source/GSAvahiNetService.m: + * Headers/Foundation/NSNetServices.h: + * Source/GSAvahiNetService.m: added NSNetServiceListenForConnections option (introduced in - OSX 10.9) and accompanying delegate method, currently implemented in - GSAvahiNetService.m only. - * Headers/Foundation/NSStream.h: fixed typo (_clang_ -> __clang__) + OSX 10.9) and accompanying delegate method, currently implemented in + GSAvahiNetService.m only. + * Headers/Foundation/NSStream.h: fixed typo (_clang_ -> __clang__) 2013-12-24 Richard Frith-Macdonald @@ -7648,121 +7659,121 @@ 2013-12-20 Graham Lee - * Headers/Foundation/NSUUID.h: - * Source/NSUUID.m: implemented for unix - * Tests/base/NSUUID: testcases + * Headers/Foundation/NSUUID.h: + * Source/NSUUID.m: implemented for unix + * Tests/base/NSUUID: testcases 2013-12-20 Richard Frith-Macdonald - * Source/NSObject.m: initialise defaults system at end of NSObject - initialisation, in the hope of preventing deadlocks if the +initialize - methods of other classes in different threads try to use defaults. - May fix #39125 + * Source/NSObject.m: initialise defaults system at end of NSObject + initialisation, in the hope of preventing deadlocks if the +initialize + methods of other classes in different threads try to use defaults. + May fix #39125 2013-12-20 Marcus Müller - * Headers/Foundation/NSStream.h: OSX compatibilityy ... use formal - protocol if possible (bug #40925). - * Headers/GNUstepBase/GSVersionMacros.h: OSX 10.9 define added. - * Headers/Foundation/NSRunLoop.h: - * Source/NSRunLoop.m: Implement ([+mainRunLoop]) + * Headers/Foundation/NSStream.h: OSX compatibilityy ... use formal + protocol if possible (bug #40925). + * Headers/GNUstepBase/GSVersionMacros.h: OSX 10.9 define added. + * Headers/Foundation/NSRunLoop.h: + * Source/NSRunLoop.m: Implement ([+mainRunLoop]) 2013-12-13 Fred Kiefer - * Headers/Foundation/NSArray.h, - * Source/NSArray.m: Move -setValue:forKey: from NSMutableArray to - NSArray. - Patch by Marcian Lytwyn . + * Headers/Foundation/NSArray.h, + * Source/NSArray.m: Move -setValue:forKey: from NSMutableArray to + NSArray. + Patch by Marcian Lytwyn . 2013-12-07 Wolfgang Lux - * Source/Additions/Unicode.m (GSPrivateDefaultCStringEncoding): - Use correct feature test for presence of ucnv functions. + * Source/Additions/Unicode.m (GSPrivateDefaultCStringEncoding): + Use correct feature test for presence of ucnv functions. 2013-12-05 Quentin Mathe - * Headers/Foundation/NSDictionary.h: - * Source/NSDictionary.m: - * Source/Additions/GCDictionary.m: - * Source/Additions/GSInsensitiveDictionary.m: - * Source/GSDictionary.m: - Changed keys argument type to (const id []) in - -initWithObjects:forKeys:count: and - +dictionaryWithObjects:forKeys:count:, - to follow the current Cocoa API. + * Headers/Foundation/NSDictionary.h: + * Source/NSDictionary.m: + * Source/Additions/GCDictionary.m: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/GSDictionary.m: + Changed keys argument type to (const id []) in + -initWithObjects:forKeys:count: and + +dictionaryWithObjects:forKeys:count:, + to follow the current Cocoa API. 2013-12-04 Richard Frith-Macdonald - * Source/NSURLCredential.m: ([-isEqual:]) needs to take the password - and persistence into account, not just the username. + * Source/NSURLCredential.m: ([-isEqual:]) needs to take the password + and persistence into account, not just the username. 2013-11-29 Riccardo Mottola - * Headers/ObjectiveC2/objc/runtime.h - * Headers/Foundation/NSObjCRuntime.h - Insert some kludge for PTR stuff on systems with fake C99 - compatible headers. + * Headers/ObjectiveC2/objc/runtime.h + * Headers/Foundation/NSObjCRuntime.h + Insert some kludge for PTR stuff on systems with fake C99 + compatible headers. 2013-11-26 Riccardo Mottola - * Headers/GNUstepBase/GSConfig.h.in - * configure.ac - Detect broken PTR limits (notably solaris 8) and provide replacements + * Headers/GNUstepBase/GSConfig.h.in + * configure.ac + Detect broken PTR limits (notably solaris 8) and provide replacements - * configure - regenerated + * configure + regenerated 2013-11-25 Richard Frith-Macdonald - * Source/GNUstepBase/GSConfig.h.in: temporarily redefine BOOL while - including windows headers, so we don't get conflict between windows - and objc booleans. - * base.make.in: - Add to CONFIG_SYSTEM_LIBS, CONFIG_SYSTEM_LIB_DIR, CONFIG_SYSTEM_INCL - So that the libraries/headers used to build base are available for - software using base. + * Source/GNUstepBase/GSConfig.h.in: temporarily redefine BOOL while + including windows headers, so we don't get conflict between windows + and objc booleans. + * base.make.in: + Add to CONFIG_SYSTEM_LIBS, CONFIG_SYSTEM_LIB_DIR, CONFIG_SYSTEM_INCL + So that the libraries/headers used to build base are available for + software using base. 2013-11-22 Richard Frith-Macdonald - * Source/GSTLS.m: - Set errno to EAGAIN if TLS layer fails in a non-fatal way during - read/write. - Add more/better debug logging. + * Source/GSTLS.m: + Set errno to EAGAIN if TLS layer fails in a non-fatal way during + read/write. + Add more/better debug logging. 2013-11-20 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Fix for bug 40620 - Prevent recursion while parsing process arguments. + * Source/NSUserDefaults.m: Fix for bug 40620 + Prevent recursion while parsing process arguments. 2013-11-19 Saso Kiselkov - Releasing a GSTLSHandle (created from +[NSFileHandle sslClass]) after - the TLS handshake will result in a segfault. Fix it. + Releasing a GSTLSHandle (created from +[NSFileHandle sslClass]) after + the TLS handshake will result in a segfault. Fix it. 2013-11-18 Wolfgang Lux - * Headers/GNUstepBase/NSCalendarDate+GNUstepBase.m: - * Source/Additions/NSCalendarDate+GNUstepBase.m: - Add -isoYear method for compatibility with -weekOfYear + * Headers/GNUstepBase/NSCalendarDate+GNUstepBase.m: + * Source/Additions/NSCalendarDate+GNUstepBase.m: + Add -isoYear method for compatibility with -weekOfYear 2013-11-07 Riccardo Mottola - * Source/GSFormat.m - * Source/NSException.m - * Source/NSConnection.m - Openbsd malloc.h warning fix. + * Source/GSFormat.m + * Source/NSException.m + * Source/NSConnection.m + Openbsd malloc.h warning fix. 2013-11-05 German Arias - * Source/NSUndoManager.m (-undoActionName): Try first with the name - of current group. If not, with the name of last object in undo stack. + * Source/NSUndoManager.m (-undoActionName): Try first with the name + of current group. If not, with the name of last object in undo stack. 2013-11-03 German Arias - * Source/NSUndoManager.m (-redoMenuTitleForUndoActionName:): - * Source/NSUndoManager.m (-undoMenuTitleForUndoActionName:): - Return "Redo" and "Undo", respectively, if actionName is null. - If not, it removes the item title. + * Source/NSUndoManager.m (-redoMenuTitleForUndoActionName:): + * Source/NSUndoManager.m (-undoMenuTitleForUndoActionName:): + Return "Redo" and "Undo", respectively, if actionName is null. + If not, it removes the item title. 2013-11-01 Richard Frith-Macdonald @@ -7846,16 +7857,16 @@ 2013-10-17 Eric Wasylishen - * Source/NSException.m: - * Headers/Foundation/NSThread.h: Add trivial implementation of - +[NSThread callStackSymbols] that uses GSStackTrace. + * Source/NSException.m: + * Headers/Foundation/NSThread.h: Add trivial implementation of + +[NSThread callStackSymbols] that uses GSStackTrace. 2013-10-15 Fred Kiefer - * Headers/Foundation/NSDate.h, - * Source/NSDate.m: - Add 10.6 class method dateWithTimeInterval:sinceDate: - Patch by Marcian Lytwyn + * Headers/Foundation/NSDate.h, + * Source/NSDate.m: + Add 10.6 class method dateWithTimeInterval:sinceDate: + Patch by Marcian Lytwyn 2013-10-04 Richard Frith-Macdonald @@ -7906,8 +7917,8 @@ 2013-08-30 Fred Kiefer - * Headers/GNUstepBase/GSVersionMacros.h: Fix usage of __APPLE__ macro. - Patch by Graham Lee + * Headers/GNUstepBase/GSVersionMacros.h: Fix usage of __APPLE__ macro. + Patch by Graham Lee 2013-08-22 Richard Frith-Macdonald @@ -7919,107 +7930,107 @@ 2013-08-22 Richard Frith-Macdonald - * Source/NSIndexPath.m: - * Source/NSMapTable.m: - * Source/NSSocketPortNameServer.m: - * Source/GSLocale.m: - * Source/NSNetServices.m: - * Source/NSTimeZone.m: - * Source/NSHashTable.m: - * Source/GSSocketStream.m: - * Source/NSValueTransformer.m: - * Source/NSBundle.m: - * Source/NSURLHandle.m: - * Source/NSPropertyList.m: - * Source/NSAffineTransform.m: - * Source/NSPathUtilities.m: - * Source/NSScanner.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSProcessInfo.m: - * Source/NSNotificationQueue.m: - * Source/NSSocketPort.m: - * Source/NSAttributedString.m: - * Source/NSRunLoop.m: - * Source/NSOperation.m: - * Source/NSObject+NSComparisonMethods.m: - * Source/NSFormatter.m: - * Source/NSUserDefaults.m: - * Source/NSArray.m: - * Source/NSMessagePortNameServer.m: - * Source/GSStream.m: - * Source/NSKeyedArchiver.m: - * Source/NSDebug.m: - * Source/NSXMLPrivate.h: - * Source/NSKeyedUnarchiver.m: - * Source/NSPortMessage.m: - * Source/NSFileHandle.m: - * Source/NSDistributedLock.m: - * Source/GSTLS.m: - * Source/NSPredicate.m: - * Source/NSKeyValueObserving.m: - * Source/NSAssertionHandler.m: - * Source/GSHTTPURLHandle.m: - * Source/GSDispatch.h: - * Source/NSPort.m: - * Source/NSSortDescriptor.m: - * Source/NSMessagePort.m: - * Source/win32/NSMessagePort.m: - * Source/win32/NSMessagePortNameServer.m: - * Source/NSInvocation.m: - * Source/NSFileManager.m: - * Source/common.h: - * Source/NSURLProtocol.m: - * Source/NSURLCache.m: - * Source/NSNotificationCenter.m: - * Source/GSAttributedString.m: - * Source/externs.m: - * Source/NSCoder.m: - * Source/NSHTTPCookieStorage.m: - * Source/NSURL.m: - * Source/NSString.m: - * Source/NSObject.m: - * Source/NSDecimalNumber.m: - * Source/NSConcreteMapTable.m: - * Source/NSPointerFunctions.m: - * Source/GSSorting.h: - * Source/NSPointerArray.m: - * Source/Additions/GCObject.m: - * Source/Additions/GSMime.m: - * Source/Additions/NSObject+GNUstepBase.m: - * Source/Additions/GSXML.m: - * Source/Additions/GSObjCRuntime.m: - * Source/NSNotification.m: - * Source/NSNumber.m: - * Source/GSTimSort.m: - * Source/NSConnection.m: - * Source/GSString.m: - * Source/NSHTTPCookie.m: - * Source/NSData.m: - * Source/NSHost.m: - * Source/NSDate.m: - * Source/NSMetadata.m: - * Source/NSDictionary.m: - * Source/GSMDNSNetServices.m: - * Source/GSHTTPAuthentication.m: - * Source/NSClassDescription.m: - * Source/NSSerializer.m: - * Source/NSNull.m: - * Source/NSValue.m: - * Source/NSCountedSet.m: - * Source/GSFileHandle.h: - * Source/GSFileHandle.m: - * Source/NSLock.m: - * Source/NSSet.m: - * Source/NSLocale.m: - * Source/NSTask.m: - * Source/NSJSONSerialization.m: - * Source/NSCharacterSet.m: - * Source/NSPortNameServer.m: - * Source/NSXMLParser.m: - * Source/NSConcreteHashTable.m: - * Source/NSTextCheckingResult.m: - * Source/NSEnumerator.m: - * Source/GSFTPURLHandle.m: + * Source/NSIndexPath.m: + * Source/NSMapTable.m: + * Source/NSSocketPortNameServer.m: + * Source/GSLocale.m: + * Source/NSNetServices.m: + * Source/NSTimeZone.m: + * Source/NSHashTable.m: + * Source/GSSocketStream.m: + * Source/NSValueTransformer.m: + * Source/NSBundle.m: + * Source/NSURLHandle.m: + * Source/NSPropertyList.m: + * Source/NSAffineTransform.m: + * Source/NSPathUtilities.m: + * Source/NSScanner.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSProcessInfo.m: + * Source/NSNotificationQueue.m: + * Source/NSSocketPort.m: + * Source/NSAttributedString.m: + * Source/NSRunLoop.m: + * Source/NSOperation.m: + * Source/NSObject+NSComparisonMethods.m: + * Source/NSFormatter.m: + * Source/NSUserDefaults.m: + * Source/NSArray.m: + * Source/NSMessagePortNameServer.m: + * Source/GSStream.m: + * Source/NSKeyedArchiver.m: + * Source/NSDebug.m: + * Source/NSXMLPrivate.h: + * Source/NSKeyedUnarchiver.m: + * Source/NSPortMessage.m: + * Source/NSFileHandle.m: + * Source/NSDistributedLock.m: + * Source/GSTLS.m: + * Source/NSPredicate.m: + * Source/NSKeyValueObserving.m: + * Source/NSAssertionHandler.m: + * Source/GSHTTPURLHandle.m: + * Source/GSDispatch.h: + * Source/NSPort.m: + * Source/NSSortDescriptor.m: + * Source/NSMessagePort.m: + * Source/win32/NSMessagePort.m: + * Source/win32/NSMessagePortNameServer.m: + * Source/NSInvocation.m: + * Source/NSFileManager.m: + * Source/common.h: + * Source/NSURLProtocol.m: + * Source/NSURLCache.m: + * Source/NSNotificationCenter.m: + * Source/GSAttributedString.m: + * Source/externs.m: + * Source/NSCoder.m: + * Source/NSHTTPCookieStorage.m: + * Source/NSURL.m: + * Source/NSString.m: + * Source/NSObject.m: + * Source/NSDecimalNumber.m: + * Source/NSConcreteMapTable.m: + * Source/NSPointerFunctions.m: + * Source/GSSorting.h: + * Source/NSPointerArray.m: + * Source/Additions/GCObject.m: + * Source/Additions/GSMime.m: + * Source/Additions/NSObject+GNUstepBase.m: + * Source/Additions/GSXML.m: + * Source/Additions/GSObjCRuntime.m: + * Source/NSNotification.m: + * Source/NSNumber.m: + * Source/GSTimSort.m: + * Source/NSConnection.m: + * Source/GSString.m: + * Source/NSHTTPCookie.m: + * Source/NSData.m: + * Source/NSHost.m: + * Source/NSDate.m: + * Source/NSMetadata.m: + * Source/NSDictionary.m: + * Source/GSMDNSNetServices.m: + * Source/GSHTTPAuthentication.m: + * Source/NSClassDescription.m: + * Source/NSSerializer.m: + * Source/NSNull.m: + * Source/NSValue.m: + * Source/NSCountedSet.m: + * Source/GSFileHandle.h: + * Source/GSFileHandle.m: + * Source/NSLock.m: + * Source/NSSet.m: + * Source/NSLocale.m: + * Source/NSTask.m: + * Source/NSJSONSerialization.m: + * Source/NSCharacterSet.m: + * Source/NSPortNameServer.m: + * Source/NSXMLParser.m: + * Source/NSConcreteHashTable.m: + * Source/NSTextCheckingResult.m: + * Source/NSEnumerator.m: + * Source/GSFTPURLHandle.m: Improve atExit/leak handling to be executed with a thread and an autorelease pool in place. Record as deliberately 'leaked', objects created in +initialize @@ -8028,10 +8039,10 @@ 2013-08-14 Lubos Dolezel - * Source/NSBundle.m: add NSBundle pathForAuxiliaryExecutable: and - -privateFrameworksPath and their URL counterparts - * Headers/GNUstepBase/GSBlocks.h: Fixed the DEFINE_BLOCK_TYPE macro - for certain GCC versions + * Source/NSBundle.m: add NSBundle pathForAuxiliaryExecutable: and + -privateFrameworksPath and their URL counterparts + * Headers/GNUstepBase/GSBlocks.h: Fixed the DEFINE_BLOCK_TYPE macro + for certain GCC versions 2013-08-12 Richard Frith-Macdonald @@ -8042,22 +8053,22 @@ 2013-08-10 Ivan Vucica - * Source/NSPathUtilities.m: - Disabled check for secure temporary directories under Cygwin. Refer - to: - http://stackoverflow.com/q/9561759/39974 - for a possible cause of problems. + * Source/NSPathUtilities.m: + Disabled check for secure temporary directories under Cygwin. Refer + to: + http://stackoverflow.com/q/9561759/39974 + for a possible cause of problems. - * Source/objc-load.m: - Codepaths used for MinGW are now also used for Cygwin. Even in - case of some functionality that should be standard under UNIX systems, - it turns out that this functionality is, sadly, not present under - Cygwin (e.g. dladdr()). + * Source/objc-load.m: + Codepaths used for MinGW are now also used for Cygwin. Even in + case of some functionality that should be standard under UNIX systems, + it turns out that this functionality is, sadly, not present under + Cygwin (e.g. dladdr()). 2013-08-10 Lubos Dolezel - * Source/NSBundle.m: add NSBundle bundleURL, builtInPlugInsURL, - executableURL + * Source/NSBundle.m: add NSBundle bundleURL, builtInPlugInsURL, + executableURL 2013-07-26 Richard Frith-Macdonald @@ -8069,17 +8080,17 @@ 2013-07-14 Wolfgang Lux - * config/objc-common.g: Add +initialize to fake NSObject class - when compiling with the Apple runtime, since it expects that - method to be defined. + * config/objc-common.g: Add +initialize to fake NSObject class + when compiling with the Apple runtime, since it expects that + method to be defined. 2013-07-11 Wolfgang Lux - * Headers/GNUstepBase/GSVersionMacros.h: Fix definition of - GS_OSX_ADJUST, which got things backward (converting a GNUstep - style version into an OS X version instead of the other way - around). Also make sure that MAC_OS_X_VERSION_MAX_ALLOWED gets - converted when used in the definition of GS_OPENSTEP_V. + * Headers/GNUstepBase/GSVersionMacros.h: Fix definition of + GS_OSX_ADJUST, which got things backward (converting a GNUstep + style version into an OS X version instead of the other way + around). Also make sure that MAC_OS_X_VERSION_MAX_ALLOWED gets + converted when used in the definition of GS_OPENSTEP_V. 2013-07-09 Graham Lee @@ -8095,22 +8106,22 @@ 2013-07-09 Richard Frith-Macdonald - * Headers/GNUstepBase/GSVersionMacros.h: + * Headers/GNUstepBase/GSVersionMacros.h: Re-add define to set MAC_OS_X_VERSION_MAX_ALLOWED for OSX compatibility. 2013-07-06 Richard Frith-Macdonald - * Source/cifframe.m: Fix possible incorrect free of non-malloc'ed - memory. - * Source/NSHost.m: fix uninitialised data warning - * Source/NSMethodSignature.m: fix uninitialised variable - * Source/NSPropertyList.m: avoid static analyser warning - * Tools/gdomap.c: fix uninitialised data warning - * Source/NSObject.m: fixup error in alignment calculation; - was assuming that the alignment of a double would do but that's - not good enough. On GCC we use the __BIGGEST_ALIGNMENT__ used on - the machine, but clang has no support for that, so if it's not - defined we now guess 16 rather than __alignof__(double). + * Source/cifframe.m: Fix possible incorrect free of non-malloc'ed + memory. + * Source/NSHost.m: fix uninitialised data warning + * Source/NSMethodSignature.m: fix uninitialised variable + * Source/NSPropertyList.m: avoid static analyser warning + * Tools/gdomap.c: fix uninitialised data warning + * Source/NSObject.m: fixup error in alignment calculation; + was assuming that the alignment of a double would do but that's + not good enough. On GCC we use the __BIGGEST_ALIGNMENT__ used on + the machine, but clang has no support for that, so if it's not + defined we now guess 16 rather than __alignof__(double). 2013-07-05 Richard Frith-Macdonald @@ -8124,16 +8135,16 @@ 2013-07-05 Fred Kiefer - * Headers/GNUstepBase/GSTypeEncoding.h - Include objc.h otherwise __GNU_LIBOBJC__ isn't defined. + * Headers/GNUstepBase/GSTypeEncoding.h + Include objc.h otherwise __GNU_LIBOBJC__ isn't defined. 2013-07-04 Richard Frith-Macdonald - * Source/GSSocksParser/GSSocksParser.h: - * Source/GSSocksParser/GSSocksParserPrivate.m: - * Source/GSSocksParser/GSSocks4Parser.m: - * Source/GSSocksParser/GSSocks5Parser.m: - More portability fixes ... this time for mswindows. + * Source/GSSocksParser/GSSocksParser.h: + * Source/GSSocksParser/GSSocksParserPrivate.m: + * Source/GSSocksParser/GSSocks4Parser.m: + * Source/GSSocksParser/GSSocks5Parser.m: + More portability fixes ... this time for mswindows. 2013-07-04 Ibadinov Marat @@ -8149,7 +8160,7 @@ 2013-07-03 Sebastian Reitenbach - * Source/Additions/GSMime.m + * Source/Additions/GSMime.m 2013-07-03 Ibadinov Marat @@ -8160,53 +8171,53 @@ 2013-07-03 Richard Frith-Macdonald - * Headers/Foundation/NSException.h: - * Headers/Foundation/NSObjCRuntime.h: - * Headers/Foundation/NSString.h: - * Headers/GNUstepBase/GSVersionMacros.h: - * Headers/GNUstepBase/NSString+GNUstepBase.h: - * Source/Additions/GCArray.m: - * Source/Additions/GSMime.m: - * Source/Additions/GSXML.m: - * Source/Additions/NSObject+GNUstepBase.m: - * Source/GSArray.m: - * Source/GSHTTPURLHandle.m: - * Source/GSNetServices.h: - * Source/GSSocketStream.m: - * Source/GSStream.m: - * Source/GSString.m: - * Source/GSTLS.m: - * Source/NSAssertionHandler.m: - * Source/NSCalendarDate.m: - * Source/NSCallBacks.m: - * Source/NSConnection.m: - * Source/NSData.m: - * Source/NSFileManager.m: - * Source/NSIndexPath.m: - * Source/NSIndexSet.m: - * Source/NSJSONSerialization.m: - * Source/NSKeyValueCoding.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSLog.m: - * Source/NSMessagePort.m: - * Source/NSNetServices.m: - * Source/NSNumber.m: - * Source/NSObject.m: - * Source/NSOperation.m: - * Source/NSPointerArray.m: - * Source/NSPortCoder.m: - * Source/NSPortMessage.m: - * Source/NSRange.m: - * Source/NSSocketPort.m: - * Source/NSSortDescriptor.m: - * Source/NSString.m: - * Source/NSThread.m: - * Source/NSTimeZone.m: - * Source/NSURLResponse.m: - * Source/NSUnarchiver.m: - * Source/NSXMLParser.m: - * Source/unix/GSRunLoopCtxt.m: - * Tools/AGSParser.m: + * Headers/Foundation/NSException.h: + * Headers/Foundation/NSObjCRuntime.h: + * Headers/Foundation/NSString.h: + * Headers/GNUstepBase/GSVersionMacros.h: + * Headers/GNUstepBase/NSString+GNUstepBase.h: + * Source/Additions/GCArray.m: + * Source/Additions/GSMime.m: + * Source/Additions/GSXML.m: + * Source/Additions/NSObject+GNUstepBase.m: + * Source/GSArray.m: + * Source/GSHTTPURLHandle.m: + * Source/GSNetServices.h: + * Source/GSSocketStream.m: + * Source/GSStream.m: + * Source/GSString.m: + * Source/GSTLS.m: + * Source/NSAssertionHandler.m: + * Source/NSCalendarDate.m: + * Source/NSCallBacks.m: + * Source/NSConnection.m: + * Source/NSData.m: + * Source/NSFileManager.m: + * Source/NSIndexPath.m: + * Source/NSIndexSet.m: + * Source/NSJSONSerialization.m: + * Source/NSKeyValueCoding.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSLog.m: + * Source/NSMessagePort.m: + * Source/NSNetServices.m: + * Source/NSNumber.m: + * Source/NSObject.m: + * Source/NSOperation.m: + * Source/NSPointerArray.m: + * Source/NSPortCoder.m: + * Source/NSPortMessage.m: + * Source/NSRange.m: + * Source/NSSocketPort.m: + * Source/NSSortDescriptor.m: + * Source/NSString.m: + * Source/NSThread.m: + * Source/NSTimeZone.m: + * Source/NSURLResponse.m: + * Source/NSUnarchiver.m: + * Source/NSXMLParser.m: + * Source/unix/GSRunLoopCtxt.m: + * Tools/AGSParser.m: Fixes for errors in printf style formats, (mostly 64bit issues) inspired by work done by Ibadinov Marat. @@ -8219,57 +8230,57 @@ change in testplant branch. * Headers/GNUstepBase/GSVersionMacros.h: OSX compatibility tweak ... handle OSX style 4 digit versionn constants. - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSAutoreleasePool.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSCoder.h: - * Headers/Foundation/NSComparisonPredicate.h: - * Headers/Foundation/NSCompoundPredicate.h: - * Headers/Foundation/NSConnection.h: - * Headers/Foundation/NSData.h: - * Headers/Foundation/NSDate.h: - * Headers/Foundation/NSDictionary.h: - * Headers/Foundation/NSError.h: - * Headers/Foundation/NSException.h: - * Headers/Foundation/NSExpression.h: - * Headers/Foundation/NSHTTPCookie.h: - * Headers/Foundation/NSHTTPCookieStorage.h: - * Headers/Foundation/NSIndexPath.h: - * Headers/Foundation/NSIndexSet.h: - * Headers/Foundation/NSKeyValueObserving.h: - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSNetServices.h: - * Headers/Foundation/NSObjCRuntime.h: - * Headers/Foundation/NSOperation.h: - * Headers/Foundation/NSPathUtilities.h: - * Headers/Foundation/NSPointerArray.h: - * Headers/Foundation/NSPointerFunctions.h: - * Headers/Foundation/NSPredicate.h: - * Headers/Foundation/NSProcessInfo.h: - * Headers/Foundation/NSPropertyList.h: - * Headers/Foundation/NSScanner.h: - * Headers/Foundation/NSSet.h: - * Headers/Foundation/NSSortDescriptor.h: - * Headers/Foundation/NSSpellServer.h: - * Headers/Foundation/NSStream.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSTimeZone.h: - * Headers/Foundation/NSTimer.h: - * Headers/Foundation/NSURL.h: - * Headers/Foundation/NSURLAuthenticationChallenge.h: - * Headers/Foundation/NSURLCache.h: - * Headers/Foundation/NSURLConnection.h: - * Headers/Foundation/NSURLCredential.h: - * Headers/Foundation/NSURLCredentialStorage.h: - * Headers/Foundation/NSURLDownload.h: - * Headers/Foundation/NSURLError.h: - * Headers/Foundation/NSURLProtectionSpace.h: - * Headers/Foundation/NSURLProtocol.h: - * Headers/Foundation/NSURLRequest.h: - * Headers/Foundation/NSURLResponse.h: - * Headers/Foundation/NSValueTransformer.h: - * Headers/Foundation/NSXMLElement.h: - * Headers/Foundation/NSXMLParser.h: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSAutoreleasePool.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSCoder.h: + * Headers/Foundation/NSComparisonPredicate.h: + * Headers/Foundation/NSCompoundPredicate.h: + * Headers/Foundation/NSConnection.h: + * Headers/Foundation/NSData.h: + * Headers/Foundation/NSDate.h: + * Headers/Foundation/NSDictionary.h: + * Headers/Foundation/NSError.h: + * Headers/Foundation/NSException.h: + * Headers/Foundation/NSExpression.h: + * Headers/Foundation/NSHTTPCookie.h: + * Headers/Foundation/NSHTTPCookieStorage.h: + * Headers/Foundation/NSIndexPath.h: + * Headers/Foundation/NSIndexSet.h: + * Headers/Foundation/NSKeyValueObserving.h: + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSNetServices.h: + * Headers/Foundation/NSObjCRuntime.h: + * Headers/Foundation/NSOperation.h: + * Headers/Foundation/NSPathUtilities.h: + * Headers/Foundation/NSPointerArray.h: + * Headers/Foundation/NSPointerFunctions.h: + * Headers/Foundation/NSPredicate.h: + * Headers/Foundation/NSProcessInfo.h: + * Headers/Foundation/NSPropertyList.h: + * Headers/Foundation/NSScanner.h: + * Headers/Foundation/NSSet.h: + * Headers/Foundation/NSSortDescriptor.h: + * Headers/Foundation/NSSpellServer.h: + * Headers/Foundation/NSStream.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSTimeZone.h: + * Headers/Foundation/NSTimer.h: + * Headers/Foundation/NSURL.h: + * Headers/Foundation/NSURLAuthenticationChallenge.h: + * Headers/Foundation/NSURLCache.h: + * Headers/Foundation/NSURLConnection.h: + * Headers/Foundation/NSURLCredential.h: + * Headers/Foundation/NSURLCredentialStorage.h: + * Headers/Foundation/NSURLDownload.h: + * Headers/Foundation/NSURLError.h: + * Headers/Foundation/NSURLProtectionSpace.h: + * Headers/Foundation/NSURLProtocol.h: + * Headers/Foundation/NSURLRequest.h: + * Headers/Foundation/NSURLResponse.h: + * Headers/Foundation/NSValueTransformer.h: + * Headers/Foundation/NSXMLElement.h: + * Headers/Foundation/NSXMLParser.h: Replace numeric version constants with OSX compatibility macros. 2013-06-27 Richard Frith-Macdonald @@ -8279,7 +8290,7 @@ 2013-06-24 Wolfgang Lux - * Tools/AGSIndex.m (mergeDictionaries): Fix typo in warning. + * Tools/AGSIndex.m (mergeDictionaries): Fix typo in warning. 2013-06-23 Ivan Vucica @@ -8293,19 +8304,19 @@ 2013-06-21 Lubos Dolezel - * Headers/GSBlocks.h: weakly import _Block_copy and _Block_release + * Headers/GSBlocks.h: weakly import _Block_copy and _Block_release 2013-06-08 Lubos Dolezel - * Source/NSTimeZone.m - Implement nextDaylightSavingTimeTransitionAfterDate: + * Source/NSTimeZone.m + Implement nextDaylightSavingTimeTransitionAfterDate: 2013-06-06 Sebastian Reitenbach - * Source/Additions/Unicode.m - Headers/Foundation/NSString.h - revert my change from 2013-05-29 - breaks decoding of .gorm files in NSString for me on amd64 + * Source/Additions/Unicode.m + Headers/Foundation/NSString.h + revert my change from 2013-05-29 + breaks decoding of .gorm files in NSString for me on amd64 2013-05-31 Richard Frith-Macdonald @@ -8317,16 +8328,16 @@ 2013-05-29 Sebastian Reitenbach - * Headers/Foundation/NSString.h - make NSStringEncoding enum typdef to NSUInteger - * Source/Additions/Unicode.m - fix format string to print out NSStringEncoding + * Headers/Foundation/NSString.h + make NSStringEncoding enum typdef to NSUInteger + * Source/Additions/Unicode.m + fix format string to print out NSStringEncoding 2013-05-17 Ivan Vučica - * Source/NSDate.m: - In case NAN macro is defined in math.h, prefer that over - using the nan() function call. + * Source/NSDate.m: + In case NAN macro is defined in math.h, prefer that over + using the nan() function call. 2013-05-17 Richard Frith-Macdonald @@ -8335,19 +8346,19 @@ 2013-05-16 Ivan Vučica - * Source/GSLocale.m: - * configure.ac: - Added check for whether there is any useful information in - struct lconv. Android doesn't have anything there, despite - having locale.h, so it makes little sense to try to access - the nonexistent fields in GSLocale.m + * Source/GSLocale.m: + * configure.ac: + Added check for whether there is any useful information in + struct lconv. Android doesn't have anything there, despite + having locale.h, so it makes little sense to try to access + the nonexistent fields in GSLocale.m 2013-05-16 Ivan Vučica - * configure.ac: - * cross.config: - When cross-compiling, obeying an additional setting for - Objective-C 2.0 support. Fixed a missing '$' in cross.config. + * configure.ac: + * cross.config: + When cross-compiling, obeying an additional setting for + Objective-C 2.0 support. Fixed a missing '$' in cross.config. 2013-05-15 Richard Frith-Macdonald @@ -8355,14 +8366,14 @@ 2013-05-13 Fred Kiefer - * Headers/Foundation/NSKeyedArchiver.h, - * Source/NSKeyedUnarchiver.m: Add method - -replaceObject:withObject: from gui. + * Headers/Foundation/NSKeyedArchiver.h, + * Source/NSKeyedUnarchiver.m: Add method + -replaceObject:withObject: from gui. 2013-05-13 Fred Kiefer - * Tests/base/NSArchiver/stringEncoding.m: Use PASS_EQUAL instead - of PASS. + * Tests/base/NSArchiver/stringEncoding.m: Use PASS_EQUAL instead + of PASS. 2013-05-13 Richard Frith-Macdonald @@ -8397,77 +8408,77 @@ 2013-04-15 Richard Frith-Macdonald - * Source/GNUmakefile: - * Source/unix/GNUmakefile: - * Source/unix/NSMetadata.m: - * Source/win32/GNUmakefile: - * Source/win32/NSMetadata.m: - * Source/NSMetadata.m: - * Headers/Foundation/NSMetadata.h: - Move identical system specific metadata code to generic area so we - can have system specific subclasses inherit common functionality. - Fix instance variables so we won't break binrary compatibility in - future. + * Source/GNUmakefile: + * Source/unix/GNUmakefile: + * Source/unix/NSMetadata.m: + * Source/win32/GNUmakefile: + * Source/win32/NSMetadata.m: + * Source/NSMetadata.m: + * Headers/Foundation/NSMetadata.h: + Move identical system specific metadata code to generic area so we + can have system specific subclasses inherit common functionality. + Fix instance variables so we won't break binrary compatibility in + future. 2013-04-15 Richard Frith-Macdonald - * cifframe.m: - * GSString.m: - * GSTLS.m: - * NSArchiver.m: - * NSCalendar.m: - * NSCoder.m: - * NSData.m: - * NSDecimal.m: - * NSDictionary.m: - * NSDistantObject.m: - * NSException.m: - * NSFileManager.m: - * NSHashTable.m: - * NSIndexPath.m: - * NSLocale.m: - * NSMethodSignature.m: - * NSNotificationCenter.m: - * NSNumberFormatter.m: - * NSObject.m: - * NSPortCoder.m: - * NSProcessInfo.m: - * NSProxy.m: - * NSRunLoop.m: - * NSSocketPort.m: - * NSString.m: - * NSURL.m: - * NSURLProtocol.m: - * NSValue.m: - * NSXMLDocument.m: - * NSXMLNode.m: - * NSXMLParser.m: - More changes to avoid static analyzer false-positives/non-issues so we - can see when real issues arise. Changes remove around 60 warnings and - include about half a dozen minor bugfixes. + * cifframe.m: + * GSString.m: + * GSTLS.m: + * NSArchiver.m: + * NSCalendar.m: + * NSCoder.m: + * NSData.m: + * NSDecimal.m: + * NSDictionary.m: + * NSDistantObject.m: + * NSException.m: + * NSFileManager.m: + * NSHashTable.m: + * NSIndexPath.m: + * NSLocale.m: + * NSMethodSignature.m: + * NSNotificationCenter.m: + * NSNumberFormatter.m: + * NSObject.m: + * NSPortCoder.m: + * NSProcessInfo.m: + * NSProxy.m: + * NSRunLoop.m: + * NSSocketPort.m: + * NSString.m: + * NSURL.m: + * NSURLProtocol.m: + * NSValue.m: + * NSXMLDocument.m: + * NSXMLNode.m: + * NSXMLParser.m: + More changes to avoid static analyzer false-positives/non-issues so we + can see when real issues arise. Changes remove around 60 warnings and + include about half a dozen minor bugfixes. 2013-04-14 Richard Frith-Macdonald - * Headers/GNUstepBase/GSIMap.h: - * Headers/GNUstepBase/NSObject+GNUstepBase.h: - * Source/Additions/GSObjCRuntime.m: - * Source/GSFormat.m: - * Source/GSPrivate.h: - * Source/GSString.m: - * Source/NSBundle.m: - * Source/NSJSONSerialization.m: - * Source/NSKeyValueObserving.m: - * Source/NSScanner.m: - * Tools/gdomap.c: - Tweaks to keep static analyser happy. + * Headers/GNUstepBase/GSIMap.h: + * Headers/GNUstepBase/NSObject+GNUstepBase.h: + * Source/Additions/GSObjCRuntime.m: + * Source/GSFormat.m: + * Source/GSPrivate.h: + * Source/GSString.m: + * Source/NSBundle.m: + * Source/NSJSONSerialization.m: + * Source/NSKeyValueObserving.m: + * Source/NSScanner.m: + * Tools/gdomap.c: + Tweaks to keep static analyser happy. 2013-04-13 Richard Frith-Macdonald - * Headers/GNUstepBase/GNUstep.h: NSInteger/NSUInteger cleanup. - * Source/NSAffineTransform.m: Fix -isEqual: for subclassing. - * Source/NSObject.m: Remove previously deprecarted function - * Source/NSProxy.m: Avoid compiler warning - * Source/NSDistantObject.m: Avoid compiler warning + * Headers/GNUstepBase/GNUstep.h: NSInteger/NSUInteger cleanup. + * Source/NSAffineTransform.m: Fix -isEqual: for subclassing. + * Source/NSObject.m: Remove previously deprecarted function + * Source/NSProxy.m: Avoid compiler warning + * Source/NSDistantObject.m: Avoid compiler warning 2013-04-12 Richard Frith-Macdonald @@ -8515,17 +8526,17 @@ 2013-03-25 Richard Frith-Macdonald - * Source/NSAffineTransform.m: + * Source/NSAffineTransform.m: Fix decoding of keyed archive containing identity transform. - * Source/NSString.m: - * Tests/base/NSString/tilde.m: + * Source/NSString.m: + * Tests/base/NSString/tilde.m: Fix to standardize string if necessary to determine whether it has the home directory as a prefix. 2013-03-23 Fred Kiefer * Source/NSXMLNode.m (-XMLStringWithOptions:): Revert change I - made on 2012-12-01. + made on 2012-12-01. 2013-03-20 Richard Frith-Macdonald @@ -8541,26 +8552,26 @@ 2013-03-16 Fred Kiefer - * Tests/base/NSLocale/general.m, - * Tests/base/NSTimeZone/use.m: Mark more tests that depend on - locale setting as hopes. - * Tests/base/GSXML/basic.m: Set the timezone of the GSXMLRPC to - get the same date string in the output. + * Tests/base/NSLocale/general.m, + * Tests/base/NSTimeZone/use.m: Mark more tests that depend on + locale setting as hopes. + * Tests/base/GSXML/basic.m: Set the timezone of the GSXMLRPC to + get the same date string in the output. 2012-03-16 Richard Frith-Macdonald - * NSTimeZones/NSTimeZones.tar: - * Tools/gsdoc-1_0_0.dtd: - * Tools/gsdoc-1_0_1.dtd: - * Tools/gsdoc-1_0_2.dtd: - * Tools/gsdoc-1_0_3.dtd: - * Tools/gsdoc-0_6_5.dtd: - * Tools/gsdoc-0_6_6.dtd: - * Tools/gsdoc-0_6_7.dtd: - * Tools/plist-0_9.dtd: + * NSTimeZones/NSTimeZones.tar: + * Tools/gsdoc-1_0_0.dtd: + * Tools/gsdoc-1_0_1.dtd: + * Tools/gsdoc-1_0_2.dtd: + * Tools/gsdoc-1_0_3.dtd: + * Tools/gsdoc-0_6_5.dtd: + * Tools/gsdoc-0_6_6.dtd: + * Tools/gsdoc-0_6_7.dtd: + * Tools/plist-0_9.dtd: Update/correct FSF address. -2012-03-16 reussandras@gmail.com +2012-03-16 * base/Source/NSCalendar.m: Add simple quarter calculation. @@ -8570,7 +8581,7 @@ 2012-03-16 Richard Frith-Macdonald - * NSTimeZones/NSTimeZones.tar: Update timezone information + * NSTimeZones/NSTimeZones.tar: Update timezone information 2012-03-16 Emmanuel Maillard @@ -8599,8 +8610,8 @@ Fix some autorelease pool management issues. 2013-03-09 Sebastian Reitenbach - * Tests/base/NSFileManager/general.m - remove accidently snucked in header + * Tests/base/NSFileManager/general.m + remove accidently snucked in header 2013-03-08 Sebastian Reitenbach @@ -8625,10 +8636,10 @@ 2013-03-03 Sebastian Reitenbach - * Source/NSKeyValueObserving.m - * Source/NSXMLParser.m - char is unsigned on macppc, so don't compare it - against negative values + * Source/NSKeyValueObserving.m + * Source/NSXMLParser.m + char is unsigned on macppc, so don't compare it + against negative values 2013-03-01 Richard Frith-Macdonald @@ -8637,26 +8648,26 @@ 2013-02-28 Richard Frith-Macdonald Make release - * Version: - * Source/NSRegularExpression.m: - * Source/NSURLResponse.m: - * Source/NSString.m: - * Source/DocMakefile: - * Source/GSNetServices.h: - * Documentation/news.texi: - * Documentation/ReleaseNotes.gsdoc: - * Headers/GNUstepBase/GSVersionMacros.h: - * Headers/Foundation/NSNetServices.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSXMLDocument.h: - * Headers/Foundation/NSXMLNode.h: - * Headers/Foundation/NSObjCRuntime.h: - * Headers/Foundation/NSXMLDTD.h: - * Headers/Foundation/NSXMLDTDNode.h: - * Headers/Foundation/NSXMLElement.h: - * Headers/Foundation/NSXMLParser.h: - * Tools/DocMakefile: - * Tools/AGSParser.m: + * Version: + * Source/NSRegularExpression.m: + * Source/NSURLResponse.m: + * Source/NSString.m: + * Source/DocMakefile: + * Source/GSNetServices.h: + * Documentation/news.texi: + * Documentation/ReleaseNotes.gsdoc: + * Headers/GNUstepBase/GSVersionMacros.h: + * Headers/Foundation/NSNetServices.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSXMLDocument.h: + * Headers/Foundation/NSXMLNode.h: + * Headers/Foundation/NSObjCRuntime.h: + * Headers/Foundation/NSXMLDTD.h: + * Headers/Foundation/NSXMLDTDNode.h: + * Headers/Foundation/NSXMLElement.h: + * Headers/Foundation/NSXMLParser.h: + * Tools/DocMakefile: + * Tools/AGSParser.m: Bump version for new release, add release notes, clean up documentation. 2013-02-28 Richard Frith-Macdonald @@ -8695,7 +8706,7 @@ 2013-02-03 Richard Frith-Macdonald - * Source/NSThread.m: Fix error in check for perform on finished thread. + * Source/NSThread.m: Fix error in check for perform on finished thread. 2013-01-24 Richard Frith-Macdonald @@ -8704,7 +8715,7 @@ 2013-01-22 Fred Kiefer - * Source/NSPredicate.m: Fixup parsing of function expressions. + * Source/NSPredicate.m: Fixup parsing of function expressions. 2013-01-14 Richard Frith-Macdonald @@ -8726,9 +8737,9 @@ 2013-01-13 Fred Kiefer - * Headers/Foundation/NSDistributedNotificationCenter.h, - * Source/NSDistributedNotificationCenter.m: Correct the return - types of the factory methods. + * Headers/Foundation/NSDistributedNotificationCenter.h, + * Source/NSDistributedNotificationCenter.m: Correct the return + types of the factory methods. 2013-01-08 Richard Frith-Macdonald @@ -8741,14 +8752,14 @@ 2013-01-05 00:49-EST Gregory John Casamento - * Headers/Foundation/NSMetadata.h: Add _ to delegate. - * Source/GNUmakefile: Remove reference to NSMetadata.m - * Source/NSMetadata.m: Remove from here and add OS specific - implementations. - * Source/unix/GNUmakefile: Add new file... - * Source/unix/NSMetadata.m: UNIX implementation... - * Source/win32/GNUmakefile: Add new file.. - * Source/win32/NSMetadata.m: Windows implementation. + * Headers/Foundation/NSMetadata.h: Add _ to delegate. + * Source/GNUmakefile: Remove reference to NSMetadata.m + * Source/NSMetadata.m: Remove from here and add OS specific + implementations. + * Source/unix/GNUmakefile: Add new file... + * Source/unix/NSMetadata.m: UNIX implementation... + * Source/win32/GNUmakefile: Add new file.. + * Source/win32/NSMetadata.m: Windows implementation. 2012-12-18 Richard Frith-Macdonald @@ -8797,7 +8808,7 @@ 2012-12-01 Fred Kiefer * Source/NSXMLNode.m (-XMLStringWithOptions:): Use macros for - versions of libxml2. + versions of libxml2. 2012-11-28 Richard Frith-Macdonald @@ -8810,90 +8821,90 @@ * Source/GSHTTPURLHandle.m: Set content-length header in outgoing request if not already set. - * Headers/Additions/GNUstepBase/GSMime.h: + * Headers/Additions/GNUstepBase/GSMime.h: * Source/Additions/GSMime.m: Add methods to control line folding. 2012-11-25 14:39-EST Gregory John Casamento - * Headers/Foundation/NSMetadata.h - * Source/NSMetadata.m: Add NSMetadataQueryAttributeValueTuple and - NSMetadataQueryResultGroup classes. + * Headers/Foundation/NSMetadata.h + * Source/NSMetadata.m: Add NSMetadataQueryAttributeValueTuple and + NSMetadataQueryResultGroup classes. 2012-11-21 12:10-EST Gregory John Casamento - * Headers/Foundation/NSMetadata.h: Add ivars. - * Source/NSMetadata.m: Cleanup compilation error. + * Headers/Foundation/NSMetadata.h: Add ivars. + * Source/NSMetadata.m: Cleanup compilation error. 2012-11-20 12:50-EST Gregory John Casamento - * Headers/Foundation/NSMetadata.h: Declaratioins for constants and - NSMetadataItem. - * Source/NSMetadata.m: Implementation of NSMetadataItem and definition - of constants. + * Headers/Foundation/NSMetadata.h: Declaratioins for constants and + NSMetadataItem. + * Source/NSMetadata.m: Implementation of NSMetadataItem and definition + of constants. 2012-11-19 18:54-CET Ivan Vučica - * Source/GSInvocation.h: Renamed GSFrameInvocation to - GSDummyInvocation, to match implementation in - Source/NSInvocation.m. + * Source/GSInvocation.h: Renamed GSFrameInvocation to + GSDummyInvocation, to match implementation in + Source/NSInvocation.m. 2012-11-18 11:47-EST Gregory John Casamento - * Headers/Foundation/NSMetadataQuery.h: Remove old file. - * Source/GNUmakefile: Change name to NSMetadata.[hm]. - * Source/NSMetadata.m: Add new file with correct name. - * Source/NSMetadataQuery.m: Remove old file. + * Headers/Foundation/NSMetadataQuery.h: Remove old file. + * Source/GNUmakefile: Change name to NSMetadata.[hm]. + * Source/NSMetadata.m: Add new file with correct name. + * Source/NSMetadataQuery.m: Remove old file. 2012-11-18 11:29-EST Gregory John Casamento - * Headers/Foundation/Foundation.h: Add NSMetadataQuery.h to - include list. - * Headers/Foundation/NSMetadataQuery.h: New header for class. - * Source/GNUmakefile: Add NSMetadataQuery.[hm] to makefile. - * Source/NSMetadataQuery.m: Abstract implementation for - NSMetdataQuery. The idea is much like NSFileStream and other - classes which have operating system specific implementations. - On linux this will, most likely, interface with locate/slocate. - I'm not certain what it will talk to on Win32. + * Headers/Foundation/Foundation.h: Add NSMetadataQuery.h to + include list. + * Headers/Foundation/NSMetadataQuery.h: New header for class. + * Source/GNUmakefile: Add NSMetadataQuery.[hm] to makefile. + * Source/NSMetadataQuery.m: Abstract implementation for + NSMetdataQuery. The idea is much like NSFileStream and other + classes which have operating system specific implementations. + On linux this will, most likely, interface with locate/slocate. + I'm not certain what it will talk to on Win32. 2012-11-15 Quentin Mathe - * Source/NSAutoreleasePool.m (-emptyPool): Fixed not to push a pool to - the cache in the ARC_RUNTIME implementation, -dealloc does it already. - For the same current pool instance, the ARC_RUNTIME implementation was - calling push_pool_to_cache() twice, once in -emptyPool and another - -dealloc. Which meant a pool still in use could be reused, then it was - possible to get stuck in an infinite loop. + * Source/NSAutoreleasePool.m (-emptyPool): Fixed not to push a pool to + the cache in the ARC_RUNTIME implementation, -dealloc does it already. + For the same current pool instance, the ARC_RUNTIME implementation was + calling push_pool_to_cache() twice, once in -emptyPool and another + -dealloc. Which meant a pool still in use could be reused, then it was + possible to get stuck in an infinite loop. 2012-11-05 Wolfgang Lux - * Source/GSFFIInvocation.m (GSFFIInvocationCallback): Generate - useful error message when no best typed selector can be found. + * Source/GSFFIInvocation.m (GSFFIInvocationCallback): Generate + useful error message when no best typed selector can be found. 2012-11-02 Wolfgang Lux - * configure.ac: Use AC_FUNC_STRERROR_R to check for presence and - version of the strerror_r function. - * Source/Additions/NSError+GNUstepBase.m (-_systemError:): Add - conditional code for glibc specific version of strerror_r. - * Source/common.h: No longer redefine feature test macros as this - could invalidate the autoconf results. + * configure.ac: Use AC_FUNC_STRERROR_R to check for presence and + version of the strerror_r function. + * Source/Additions/NSError+GNUstepBase.m (-_systemError:): Add + conditional code for glibc specific version of strerror_r. + * Source/common.h: No longer redefine feature test macros as this + could invalidate the autoconf results. - * configure: - * Headers/GNUstepBase/config.h.in: - * SSL/configure: - * SSL/config.h.in: Regenerated by autoreconf. + * configure: + * Headers/GNUstepBase/config.h.in: + * SSL/configure: + * SSL/config.h.in: Regenerated by autoreconf. 2012-10-30 Richard Frith-Macdonald - * Source/Additions/NSError+GNUstepBase.m: - * Source/GSFileHandle.m: - * Source/GSMDNSNetServices.m: - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - * Source/NSSocketPortNameServer.m: - * Source/NSThread.m: - * Source/common.h: + * Source/Additions/NSError+GNUstepBase.m: + * Source/GSFileHandle.m: + * Source/GSMDNSNetServices.m: + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + * Source/NSSocketPortNameServer.m: + * Source/NSThread.m: + * Source/common.h: Changes to try to get inclusion of system specific features right. In particular, we want strerror_r() to be POSIX complient so that we get correct system erorr messages. @@ -8911,8 +8922,8 @@ 2012-10-25 Quentin Mathe - * Headers/GNUstepBase/GSConfig.h.in: Prevent redefinition warnings for - __STDC_LIMIT_MACROS and __STC_CONSTANT_MACROS (both are ObjC++ related). + * Headers/GNUstepBase/GSConfig.h.in: Prevent redefinition warnings for + __STDC_LIMIT_MACROS and __STC_CONSTANT_MACROS (both are ObjC++ related). 2012-10-22 Thomas Davie @@ -8950,14 +8961,14 @@ 2012-10-15 Eric Wasylishen - * Tests/base/NSArchiver/stringEncoding.m: add test for last commit + * Tests/base/NSArchiver/stringEncoding.m: add test for last commit 2012-10-15 Eric Wasylishen - * Source/NSPropertyList.m (-[GSBinaryPLGenerator storeString:): - Write unicode strings in big-endian instead of little-endian. - The resulting plists now load properly on OS X. Thanks to - rdemet for bug report. + * Source/NSPropertyList.m (-[GSBinaryPLGenerator storeString:): + Write unicode strings in big-endian instead of little-endian. + The resulting plists now load properly on OS X. Thanks to + rdemet for bug report. 2012-10-15 Richard Frith-Macdonald @@ -8985,8 +8996,8 @@ 2012-10-03 Wolfgang Lux - * SSL/GSSSLHandle.m (-sslSetOptions): Apply string name change - missed during TLS reorganisation. + * SSL/GSSSLHandle.m (-sslSetOptions): Apply string name change + missed during TLS reorganisation. 2012-09-30 Richard Frith-Macdonald @@ -9041,14 +9052,14 @@ 2012-09-23 Niels Grewe - * Source/GSSocketStream.m: Expose GSFileHandle ivars for compilation - with the non-fragile ABI. - * Headers/GNUstepBase/GSVersionMacros.h: Restore line that was - accidentally commented out. + * Source/GSSocketStream.m: Expose GSFileHandle ivars for compilation + with the non-fragile ABI. + * Headers/GNUstepBase/GSVersionMacros.h: Restore line that was + accidentally commented out. 2012-09-23 Niels Grewe - * Source/GSTimSort.m: Fix typo. + * Source/GSTimSort.m: Fix typo. 2012-09-21 Richard Frith-Macdonald @@ -9063,11 +9074,11 @@ 2012-09-20 Niels Grewe - * Source/GSTimSort.m: A few more timsort bugfixes. + * Source/GSTimSort.m: A few more timsort bugfixes. 2012-09-20 Niels Grewe - * Source/GSTimSort.m: Fix bugs in the timsort implementation. + * Source/GSTimSort.m: Fix bugs in the timsort implementation. 2012-09-20 Richard Frith-Macdonald @@ -9100,57 +9111,57 @@ to have timsort working). 2012-09-19 Niels Grewe - * Source/GSSorting.h - * Source/NSSortDescriptor.m: - Add new generic interface for sorting. - * Source/GSTimSort.m: Implement timsort sorting algorithm. - * Source/GSQuickSort.m - * Source/GSShellSort.m: - Factor out previously used sorting algorithms. - * Source/GSArray.m - * Source/NSArray.m: - Modify to use the new sorting interface for sorting using - functions, NSSortDescriptor, and NSComparator. Implement - NSComparator based sorting and insertion index searching - methods. - * Source/GNUmakefile: Connect new files to the build. - * configure.ac: Add configure switch to allow selection of sort - algorithm. - * Headers/GNUstepBase/GSConfig.h.in: Add defines for sort - algorithm selection. - * configure: Regenerate - * Headers/Foundation/NSObjCRuntime.h - * Headers/Foundation/NSArray.h: - Declarations for new NSComparator based sorting methods. - * Tests/base/NSArray/general.m - * Tests/base/NSArray/blocks.m: - Add tests for new functionality. - * Tests/base/NSArray/random.plist - * Tests/base/NSArray/sorted.plist: - Add sorting example data that is large enough to test more - sophisticated sorting algorithms. - - Completely overhaul how we do sorting in -base. GSSorting.h now - defines an interface that can be used for all sorting tasks in - the library. The actual sort algorithms to use are now plugable. - Timsort is the new default sorting algorithm, the existing - algorithms, shellsort and quicksort can still be selected using - a configure switch, but they do not override timsort completely - because they are unstable. - Also implement the new NSComparator (blocks) based sorting and - insertion index searching methods for NSMutableArray and - NSArray. + *Source/GSSorting.h + * Source/NSSortDescriptor.m: + Add new generic interface for sorting. + *Source/GSTimSort.m: Implement timsort sorting algorithm. + * Source/GSQuickSort.m + *Source/GSShellSort.m: + Factor out previously used sorting algorithms. + * Source/GSArray.m + *Source/NSArray.m: + Modify to use the new sorting interface for sorting using + functions, NSSortDescriptor, and NSComparator. Implement + NSComparator based sorting and insertion index searching + methods. + * Source/GNUmakefile: Connect new files to the build. + *configure.ac: Add configure switch to allow selection of sort + algorithm. + * Headers/GNUstepBase/GSConfig.h.in: Add defines for sort + algorithm selection. + *configure: Regenerate + * Headers/Foundation/NSObjCRuntime.h + *Headers/Foundation/NSArray.h: + Declarations for new NSComparator based sorting methods. + * Tests/base/NSArray/general.m + *Tests/base/NSArray/blocks.m: + Add tests for new functionality. + * Tests/base/NSArray/random.plist + * Tests/base/NSArray/sorted.plist: + Add sorting example data that is large enough to test more + sophisticated sorting algorithms. + + Completely overhaul how we do sorting in -base. GSSorting.h now + defines an interface that can be used for all sorting tasks in + the library. The actual sort algorithms to use are now plugable. + Timsort is the new default sorting algorithm, the existing + algorithms, shellsort and quicksort can still be selected using + a configure switch, but they do not override timsort completely + because they are unstable. + Also implement the new NSComparator (blocks) based sorting and + insertion index searching methods for NSMutableArray and + NSArray. 2012-09-17 12:03-EDT Gregory John Casamento - Merged from the testplant branch. + Merged from the testplant branch. - * Headers/Foundation/Foundation.h - * Headers/Foundation/NSScriptWhoseTests.h - * Source/GNUmakefile - * Source/NSObject+NSComparisonMethods.m: Move the - comparison methods to the header for NSScriptWhoseTests.h, - but don't define the abstract class since we don't support - Apple script. + * Headers/Foundation/Foundation.h + * Headers/Foundation/NSScriptWhoseTests.h + * Source/GNUmakefile + * Source/NSObject+NSComparisonMethods.m: Move the + comparison methods to the header for NSScriptWhoseTests.h, + but don't define the abstract class since we don't support + Apple script. 2012-09-16 Richard Frith-Macdonald @@ -9190,7 +9201,7 @@ 2012-09-06 Richard Frith-Macdonald - * Source/NSPropertyList.m: + * Source/NSPropertyList.m: Don't ignore whitespace in keys and values when parsing XML ... the DTD says everything apart from array and dict contains #PCDATA. @@ -9203,122 +9214,122 @@ 2012-09-04 Fred Kiefer - * Tests/base/NSXMLDocument/cdata.m: New test case for CDATA. + * Tests/base/NSXMLDocument/cdata.m: New test case for CDATA. 2012-09-03 Richard Frith-Macdonald - * Source/NSTimeZone.m: - * Source/NSBundle.m: - * Source/NSPropertyList.m: - * Source/NSProcessInfo.m: - * Source/NSSocketPort.m: - * Source/NSRunLoop.m: - * Source/NSMessagePortNameServer.m: - * Source/NSDistributedLock.m: - * Source/GSHTTPURLHandle.m: - * Source/NSZone.m: - * Source/NSPage.m: - * Source/NSMessagePort.m: - * Source/NSUnarchiver.m: - * Source/win32/GSFileHandle.m: - * Source/NSFileManager.m: - * Source/common.h: - * Source/NSString.m: - * Source/Additions/NSData+GNUstepBase.m: - * Source/Additions/Unicode.m: - * Source/Additions/NSMutableString+GNUstepBase.m: - * Source/Additions/NSError+GNUstepBase.m: - * Source/Additions/GSMime.m: - * Source/Additions/NSString+GNUstepBase.m: - * Source/Additions/GCArray.m: - * Source/Additions/GSXML.m: - * Source/Additions/NSNumber+GNUstepBase.m: - * Source/Additions/GSObjCRuntime.m: - * Source/GSString.m: - * Source/NSObjCRuntime.m: - * Source/GSFormat.m: - * Source/GSFileHandle.m: - * Source/NSTask.m: - On windows with mingw we can use strtoull() rather than _strtoui64(). - Also, remove redundant header includes since string.h is in common.h + * Source/NSTimeZone.m: + * Source/NSBundle.m: + * Source/NSPropertyList.m: + * Source/NSProcessInfo.m: + * Source/NSSocketPort.m: + * Source/NSRunLoop.m: + * Source/NSMessagePortNameServer.m: + * Source/NSDistributedLock.m: + * Source/GSHTTPURLHandle.m: + * Source/NSZone.m: + * Source/NSPage.m: + * Source/NSMessagePort.m: + * Source/NSUnarchiver.m: + * Source/win32/GSFileHandle.m: + * Source/NSFileManager.m: + * Source/common.h: + * Source/NSString.m: + * Source/Additions/NSData+GNUstepBase.m: + * Source/Additions/Unicode.m: + * Source/Additions/NSMutableString+GNUstepBase.m: + * Source/Additions/NSError+GNUstepBase.m: + * Source/Additions/GSMime.m: + * Source/Additions/NSString+GNUstepBase.m: + * Source/Additions/GCArray.m: + * Source/Additions/GSXML.m: + * Source/Additions/NSNumber+GNUstepBase.m: + * Source/Additions/GSObjCRuntime.m: + * Source/GSString.m: + * Source/NSObjCRuntime.m: + * Source/GSFormat.m: + * Source/GSFileHandle.m: + * Source/NSTask.m: + On windows with mingw we can use strtoull() rather than _strtoui64(). + Also, remove redundant header includes since string.h is in common.h 2012-09-03 Niels Grewe - * configure.ac: Fallback to the non icu-config check for ICU in - the general case. - * configure: Regenerate. + * configure.ac: Fallback to the non icu-config check for ICU in + the general case. + * configure: Regenerate. 2012-09-01 Niels Grewe - * configure.ac: Implement `--disable-icu-config' switch to - configure for platforms that ship libicu but not icu-config. - * configure: Regenerate. + * configure.ac: Implement `--disable-icu-config' switch to + configure for platforms that ship libicu but not icu-config. + * configure: Regenerate. 2012-08-27 Richard Frith-Macdonald * Source/NSSstring.m: ([-stringByAppendingPathComponent:]) fix for - append to an empty string with a windows path as an argument. + append to an empty string with a windows path as an argument. 2012-08-26 Niels Grewe - * configure.ac: Check for sys/filio.h and whether we need to - link libsocket (as on QNX). - * configure - * SSL/configure - * Headers/GNUstepBase/config.h.in: - Regenerate. - * Source/common.h - * Source/GSFileHandle.m - * Source/NSMessagePort.m - * Source/NSSocketPort.m - * Source/NSThread.m - * SSL/GSSSLHandle.m: - QNX compatibility tweaks. - * Tools/gdnc.m - * Tools/gdomap.c: - Use slog facility for logging on QNX. - - Compatibility improvements for building for QNX. + * configure.ac: Check for sys/filio.h and whether we need to + link libsocket (as on QNX). + * configure + * SSL/configure + * Headers/GNUstepBase/config.h.in: + Regenerate. + * Source/common.h + * Source/GSFileHandle.m + * Source/NSMessagePort.m + * Source/NSSocketPort.m + * Source/NSThread.m + * SSL/GSSSLHandle.m: + QNX compatibility tweaks. + * Tools/gdnc.m + * Tools/gdomap.c: + Use slog facility for logging on QNX. + + Compatibility improvements for building for QNX. 2012-08-26 Niels Grewe - * configure.ac: Check for QNX slog facilities. - * Headers/GNUstepBase/config.h.in - * configure: - Regenerate - * Source/NSLog.m: Implement logging to the QNX slog. + * configure.ac: Check for QNX slog facilities. + * Headers/GNUstepBase/config.h.in + * configure: + Regenerate + * Source/NSLog.m: Implement logging to the QNX slog. - Add support for logging to the QNX slog via NSLog(). + Add support for logging to the QNX slog via NSLog(). 2012-08-25 Niels Grewe - * configure.ac: Allow a cross-compilation configuration to be - specified using the `--with-cross-compilation-info=' switch. - Tweak configure script to behave gracefully when - cross-compiling. - * configure: Regenerate. - * cross.config: Add default values for cross-compilation. + * configure.ac: Allow a cross-compilation configuration to be + specified using the `--with-cross-compilation-info=' switch. + Tweak configure script to behave gracefully when + cross-compiling. + * configure: Regenerate. + * cross.config: Add default values for cross-compilation. - Make the configure script behave more friendly when - cross-compiling. + Make the configure script behave more friendly when + cross-compiling. 2012-08-16 Niels Grewe - * configure.ac: Check for objc_root_class attribute - * configure: Regenerate - * config/objc-common.g: Annotate root classes. - * Headers/GNUstepBase/config.h.in: Regenerate - * Headers/GNUstepBase/GSConfig.h.in: Add macro for root class - attribute availability. - * Headers/GNUstepBase/GSVersionMacros.h: Define GS_ROOT_CLASS - depending on whether the compiler supports it. - * Headers/Foundation/NSObject.h: Mark NSObject as a root class. - * Headers/Foundation/NSProxy.h: Mark NSProxy as a root class. - * Source/NSDistantObject: Mark GSDistantObjectPlaceholder as a - root class. - * Source/NSObject.m: Mark NSZombie as a root class. - - Changes to support clang's __attribute__((objc_root_class)). + * configure.ac: Check for objc_root_class attribute + * configure: Regenerate + * config/objc-common.g: Annotate root classes. + * Headers/GNUstepBase/config.h.in: Regenerate + * Headers/GNUstepBase/GSConfig.h.in: Add macro for root class + attribute availability. + * Headers/GNUstepBase/GSVersionMacros.h: Define GS_ROOT_CLASS + depending on whether the compiler supports it. + * Headers/Foundation/NSObject.h: Mark NSObject as a root class. + * Headers/Foundation/NSProxy.h: Mark NSProxy as a root class. + * Source/NSDistantObject: Mark GSDistantObjectPlaceholder as a + root class. + * Source/NSObject.m: Mark NSZombie as a root class. + + Changes to support clang's __attribute__((objc_root_class)). 2012-08-10 Richard Frith-Macdonald @@ -9333,7 +9344,7 @@ 2012-08-10 Richard Frith-Macdonald - * Source/NSPathUtilities.m: + * Source/NSPathUtilities.m: Fix permissions on temporary directory rarther than just failing ... suggestion by Wolfgang. @@ -9348,14 +9359,14 @@ 2012-08-10 Richard Frith-Macdonald - * Source/NSSpellServer.m: - * Source/NSPropertyList.m: - * Source/NSPathUtilities.m: - * Source/NSUserDefaults.m: - * Source/NSMessagePortNameServer.m: - * Source/NSDistributedLock.m: - * Source/NSMessagePort.m: - * Source/NSHTTPCookieStorage.m: + * Source/NSSpellServer.m: + * Source/NSPropertyList.m: + * Source/NSPathUtilities.m: + * Source/NSUserDefaults.m: + * Source/NSMessagePortNameServer.m: + * Source/NSDistributedLock.m: + * Source/NSMessagePort.m: + * Source/NSHTTPCookieStorage.m: Use new method for creating intermediate directories rater than depending on incorrect behavior of the old method. @@ -9370,9 +9381,9 @@ 2012-08-08 Riccardo Mottola - * Tools/AGSParser.m: - Add macro detection for MacOS version 10.1 to 10.6 and make - GS_API_LATEST the last in priority. + * Tools/AGSParser.m: + Add macro detection for MacOS version 10.1 to 10.6 and make + GS_API_LATEST the last in priority. 2012-08-08 Richard Frith-Macdonald @@ -9429,23 +9440,23 @@ 2012-07-27 Fred Kiefer - * Source/NSXMLNode.m (-description): Remove trailing newline. This - should fix #36976. + * Source/NSXMLNode.m (-description): Remove trailing newline. This + should fix #36976. 2012-07-11 Richard Frith-Macdonald - * Source/GSFFCallInvocation.m: - * Source/NSKeyValueObserving.m: - * Source/Additions/GSObjCRuntime.m: - * Source/NSProtocolChecker.m: - * Source/GSValue.m: - * Source/NSValue.m: + * Source/GSFFCallInvocation.m: + * Source/NSKeyValueObserving.m: + * Source/Additions/GSObjCRuntime.m: + * Source/NSProtocolChecker.m: + * Source/GSValue.m: + * Source/NSValue.m: Use GSSelectorTypesMatch() for type comparisons. 2012-07-12 19:26-EDT Gregory John Casamento - * Source/NSFileManager.m: Correct misspelled ASSIGN which was - causing link errors. + * Source/NSFileManager.m: Correct misspelled ASSIGN which was + causing link errors. 2012-07-11 Richard Frith-Macdonald @@ -9504,9 +9515,9 @@ 2012-07-05 Quentin Mathe - * Source/NSPathUtilities.m: Fixed constant string comparison error - reported by Clang SVN trunk r158230 or more recent. - See http://llvm.org/viewvc/llvm-project?view=rev&revision=158230 + * Source/NSPathUtilities.m: Fixed constant string comparison error + reported by Clang SVN trunk r158230 or more recent. + See http://llvm.org/viewvc/llvm-project?view=rev&revision=158230 This is a workaround for a Clang compiler bug ... 2012-07-02 Richard Frith-Macdonald @@ -9527,8 +9538,8 @@ 2012-06-07 Wolfgang Lux - * Source/unix/GSRunLoopCtxt.m (-pollUntil:within:): Fix previous - change to compile again when using select() instead of poll(). + * Source/unix/GSRunLoopCtxt.m (-pollUntil:within:): Fix previous + change to compile again when using select() instead of poll(). 2012-06-06 Richard Frith-Macdonald @@ -9542,4833 +9553,4833 @@ 2012-04-30 Riccardo Mottola - * Source/NSString: - Do not include malloc on OpenBSD to avoid warning (and include + * Source/NSString: + Do not include malloc on OpenBSD to avoid warning (and include stdlib always). 2012-04-29 Riccardo Mottola - * Source/common.h: - Extend David's hack to all known non-glibc platforms + * Source/common.h: + Extend David's hack to all known non-glibc platforms 2012-02-28 Richard Frith-Macdonald - * Source/NSArchiver.m: - * Source/NSUnarchiver.m: - * Source/NSPortCoder.m: - * Source/Coder.m: - Updates to cope with the fact that some BSD ports of gnustep-base - used incorrect versioning, and that people have released Gorm - files with versioning incompatible with current releases. - 1. dissociate coder -systemVersion from the actual system version, - so that if people mess with the gnustep-base version, their - non-standard releases will still interoperate with normal code. - 2. Implement new array encoding/decoding compatible with earlier - versions (except if the array contains exactly 0xffffffff items). - 3. Raise exception if decoding archives with an unsupported version. - 4. Add GSCoderSystemVersion user default to override the system - version used for encoding ... for testing and tweaking to generate - archives in, or communicate with DO servers using an earlier version. + * Source/NSArchiver.m: + * Source/NSUnarchiver.m: + * Source/NSPortCoder.m: + * Source/Coder.m: + Updates to cope with the fact that some BSD ports of gnustep-base + used incorrect versioning, and that people have released Gorm + files with versioning incompatible with current releases. + 1. dissociate coder -systemVersion from the actual system version, + so that if people mess with the gnustep-base version, their + non-standard releases will still interoperate with normal code. + 2. Implement new array encoding/decoding compatible with earlier + versions (except if the array contains exactly 0xffffffff items). + 3. Raise exception if decoding archives with an unsupported version. + 4. Add GSCoderSystemVersion user default to override the system + version used for encoding ... for testing and tweaking to generate + archives in, or communicate with DO servers using an earlier version. 2012-04-23 Fred Kiefer - * Tests/base/NSAutoreleasePool/autorelease_eh.m: - Get new test to run with older compilers. + * Tests/base/NSAutoreleasePool/autorelease_eh.m: + Get new test to run with older compilers. 2012-04-23 12:47 theraven - * libs/base/trunk/Source/NSAutoreleasePool.m, - libs/base/trunk/Tests/base/NSAutoreleasePool/autorelease_eh.m: - Fix a bug in the new autorelease pool implementation when pools - are destroyed in the wrong order. + * libs/base/trunk/Source/NSAutoreleasePool.m, + libs/base/trunk/Tests/base/NSAutoreleasePool/autorelease_eh.m: + Fix a bug in the new autorelease pool implementation when pools + are destroyed in the wrong order. - Test cast by Chris Armstrong! + Test cast by Chris Armstrong! 2012-04-22 Riccardo Mottola - * Source/GSString.m - Do not include malloc on OpenBSD to avoid warning. + * Source/GSString.m + Do not include malloc on OpenBSD to avoid warning. 2012-04-18 Fred Kiefer - * Tools/pl2link.m (main): Get the category from a new entry named - FreeDesktopCategories. - Patch by Philippe Roussel . + * Tools/pl2link.m (main): Get the category from a new entry named + FreeDesktopCategories. + Patch by Philippe Roussel . 2012-04-17 Richard Frith-Macdonald - * Source/ObjectiveC2/runtime.c: Fi error calculating instance - variable offset size as reported/suggested by James Cook - + * Source/ObjectiveC2/runtime.c: Fi error calculating instance + variable offset size as reported/suggested by James Cook + 2012-04-16 Richard Frith-Macdonald - * configure.ac: Add tests for lossy conversion using iconv and - provide options to disable use of iconv or allow use of iconv - where //TRANSLIT is missing. - * configure: regenerate. + * configure.ac: Add tests for lossy conversion using iconv and + provide options to disable use of iconv or allow use of iconv + where //TRANSLIT is missing. + * configure: regenerate. 2012-04-15 Richard Frith-Macdonald - * Source/Additions/Unicode.m: - Fix test for availability of lossy conversion via iconv. + * Source/Additions/Unicode.m: + Fix test for availability of lossy conversion via iconv. 2012-04-10 Sebastian Reitenbach - * Tools/make_strings/StringsFile.m - * Tools/pl.m - some NSInteger -> NSUInteger changes to match return - values of methods + * Tools/make_strings/StringsFile.m + * Tools/pl.m + some NSInteger -> NSUInteger changes to match return + values of methods 2012-04-07 13:54 theraven - * Source/NSMethodSignature.m: Fix NSMethodSignature - generating nonsense values when it encounters a type encoding - including blocks. + * Source/NSMethodSignature.m: Fix NSMethodSignature + generating nonsense values when it encounters a type encoding + including blocks. 2012-04-07 10:45 theraven - * Source/GSSocketStream.m: - * Source/NSAffineTransform.m: - * Source/NSXMLDTDNode.m: - * Tools/xmlparse.m: Fix the remaining compiler - warnings. + * Source/GSSocketStream.m: + * Source/NSAffineTransform.m: + * Source/NSXMLDTDNode.m: + * Tools/xmlparse.m: Fix the remaining compiler + warnings. 2012-04-07 Fred Kiefer - * Source/NSXMLDocument.m: - * Source/NSXMLDTD.m: - * Source/NSXMLNode.m: - * Source/NSXMLDTDNode.m: - * Source/NSXMLElement.m: Remove compiler warnings for clang - reported by David Chisnall. - * Tests/base/NSAutoreleasePool/basic.m: Get to compile again - without -C99. + * Source/NSXMLDocument.m: + * Source/NSXMLDTD.m: + * Source/NSXMLNode.m: + * Source/NSXMLDTDNode.m: + * Source/NSXMLElement.m: Remove compiler warnings for clang + reported by David Chisnall. + * Tests/base/NSAutoreleasePool/basic.m: Get to compile again + without -C99. 2012-04-06 12:37 theraven - * libs/base/trunk/Source/NSConnection.m, - libs/base/trunk/Source/NSData.m, - libs/base/trunk/Source/NSKeyValueObserving.m: Fix a few compiler - warnings caused by type mismatches in NSLog statements. + * libs/base/trunk/Source/NSConnection.m, + libs/base/trunk/Source/NSData.m, + libs/base/trunk/Source/NSKeyValueObserving.m: Fix a few compiler + warnings caused by type mismatches in NSLog statements. 2012-04-06 12:23 theraven - * libs/base/trunk/Headers/Foundation/NSArray.h, - libs/base/trunk/Headers/Foundation/NSDictionary.h, - libs/base/trunk/Headers/GNUstepBase/GSVersionMacros.h, - libs/base/trunk/Source/NSArray.m, - libs/base/trunk/Source/NSDictionary.m, - libs/base/trunk/Tests/base/NSArray/basic.m, - libs/base/trunk/Tests/base/NSDictionary/basic.m: Support for - collection subscripting (NSArray and NSDictionary). + * libs/base/trunk/Headers/Foundation/NSArray.h, + libs/base/trunk/Headers/Foundation/NSDictionary.h, + libs/base/trunk/Headers/GNUstepBase/GSVersionMacros.h, + libs/base/trunk/Source/NSArray.m, + libs/base/trunk/Source/NSDictionary.m, + libs/base/trunk/Tests/base/NSArray/basic.m, + libs/base/trunk/Tests/base/NSDictionary/basic.m: Support for + collection subscripting (NSArray and NSDictionary). - Yes, the syntax is ugly, but no doubt people will start using it - in June... + Yes, the syntax is ugly, but no doubt people will start using it + in June... 2012-04-06 12:02 theraven - * libs/base/trunk/Source/NSAutoreleasePool.m, - libs/base/trunk/Tests/base/NSAutoreleasePool, - libs/base/trunk/Tests/base/NSAutoreleasePool/TestInfo, - libs/base/trunk/Tests/base/NSAutoreleasePool/basic.m: Use the - runtime's ARC autorelease pools if available. + * libs/base/trunk/Source/NSAutoreleasePool.m, + libs/base/trunk/Tests/base/NSAutoreleasePool, + libs/base/trunk/Tests/base/NSAutoreleasePool/TestInfo, + libs/base/trunk/Tests/base/NSAutoreleasePool/basic.m: Use the + runtime's ARC autorelease pools if available. 2012-04-04 Fred Kiefer - * Source/NSXMLNode.m (+_objectForNode:): Don't create a document - object for a private document. - * Tests/base/NSXMLNode/transfer.m: New code for test case - contributed by Doug Simons. + * Source/NSXMLNode.m (+_objectForNode:): Don't create a document + object for a private document. + * Tests/base/NSXMLNode/transfer.m: New code for test case + contributed by Doug Simons. 2012-04-03 Fred Kiefer - * Source/NSXMLElement.m, - * Source/NSXMLNode.m: Fix compiler error and warning for older - version of libxml2. + * Source/NSXMLElement.m, + * Source/NSXMLNode.m: Fix compiler error and warning for older + version of libxml2. 2012-04-01 Niels Grewe - * Source/NSNumber.m: Add special small object class for floats. - Previously, NSSmallRepeatableDouble would be used which resulted in - the float being printed as a double when calling -stringValue or - -description. + * Source/NSNumber.m: Add special small object class for floats. + Previously, NSSmallRepeatableDouble would be used which resulted in + the float being printed as a double when calling -stringValue or + -description. 2012-03-27 Fred Kiefer - * Headers/Foundation/NSObject.h (-error:): Declare return type. - Patch by Benoît Garrigues + * Headers/Foundation/NSObject.h (-error:): Declare return type. + Patch by Benoît Garrigues 2012-03-27 Fred Kiefer - * Source/NSXMLNode.m (execute_xpath): Clean up. + * Source/NSXMLNode.m (execute_xpath): Clean up. 2012-03-27 Niels Grewe - * configure.ac - * config.mak.in - * Headers/GNUstepBase/GSConfig.h.in - * Headers/GNUstepBase/config.h.in: - Implement configure check for libdispatch. - * configure: Regenerate - * Source/GSDispatch.h: Add portability header with macros for compiling - with or without libdispatch. - * Source/NSArray.m - * Source/NSDictionary.m - * Source/NSIndexSet.m - * Source/NSSet.m - * Headers/Foundation/NSIndexSet.h: - Implement libdispatch support for block enumeration methods. - * Tests/base/NSMutableIndexSet/blocks.m - * Tests/base/NSDictionary/blocks.m - * Tests/base/NSArray/blocks.m: - Test cases for new code. - - Detect the presence of libdispatch and, if available, use it for - collection enumeration methods that take blocks as arguments. This - allows us to implement the NSEnumerationConcurrent option of those - methods with minimal effort. + *configure.ac + * config.mak.in + *Headers/GNUstepBase/GSConfig.h.in + * Headers/GNUstepBase/config.h.in: + Implement configure check for libdispatch. + *configure: Regenerate + * Source/GSDispatch.h: Add portability header with macros for compiling + with or without libdispatch. + *Source/NSArray.m + * Source/NSDictionary.m + *Source/NSIndexSet.m + * Source/NSSet.m + *Headers/Foundation/NSIndexSet.h: + Implement libdispatch support for block enumeration methods. + * Tests/base/NSMutableIndexSet/blocks.m + *Tests/base/NSDictionary/blocks.m + * Tests/base/NSArray/blocks.m: + Test cases for new code. + + Detect the presence of libdispatch and, if available, use it for + collection enumeration methods that take blocks as arguments. This + allows us to implement the NSEnumerationConcurrent option of those + methods with minimal effort. 2012-03-27 Niels Grewe - * Source/NSOperation.m: Remove leftover debugging statements. + * Source/NSOperation.m: Remove leftover debugging statements. 2012-03-27 Richard Frith-Macdonald - * Source/NSOperation.m: - * Source/NSRegularExpression.m: - * Headers/GNUstepBase/GSBlocks.h: - * Headers/Foundation/NSOperation.h: - Get things compiling/linking again with gcc after blocks changes. + * Source/NSOperation.m: + * Source/NSRegularExpression.m: + * Headers/GNUstepBase/GSBlocks.h: + * Headers/Foundation/NSOperation.h: + Get things compiling/linking again with gcc after blocks changes. 2012-03-27 Niels Grewe - * Headers/Foundation/NSOperation.h - * Headers/GNUstepBase/GSBlocks.h: - Fix definitions of blocks without arguments for GCC. + * Headers/Foundation/NSOperation.h + * Headers/GNUstepBase/GSBlocks.h: + Fix definitions of blocks without arguments for GCC. 2012-03-27 Fred Kiefer - * Source/NSXMLElement.m, - * Source/NSXMLNode.m: Better support for namespaces. Corrected - -_nodeFollowingInNaturalDirection:, -setStringValue: - and -XMLStringWithOptions: + * Source/NSXMLElement.m, + * Source/NSXMLNode.m: Better support for namespaces. Corrected + -_nodeFollowingInNaturalDirection:, -setStringValue: + and -XMLStringWithOptions: 2012-03-26 Niels Grewe - * Headers/Foundation/NSOperation.h - * Source/NSOperation.m: - Implement -setCompletionBlock: and -completionBlock. - * Headers/GNUstepBase/GSBlocks: Make blocks without arguments callable - * Tests/base/NSOperation/basic.m: Test whether completion blocks work. + * Headers/Foundation/NSOperation.h + * Source/NSOperation.m: + Implement -setCompletionBlock: and -completionBlock. + * Headers/GNUstepBase/GSBlocks: Make blocks without arguments callable + * Tests/base/NSOperation/basic.m: Test whether completion blocks work. 2012-03-25 Richard Frith-Macdonald - * Source/NSXMLPrivate.h: Change order of includes to ensure libxml2 - headers are seen early. + * Source/NSXMLPrivate.h: Change order of includes to ensure libxml2 + headers are seen early. 2012-03-23 Fred Kiefer - * Source/NSXMLNode.m (-rootDocument): Better test for private document. - * Source/NSXMLDTDNode.m (-initWithXMLString:): Use childAtIndex: - instead of rootElement. + * Source/NSXMLNode.m (-rootDocument): Better test for private document. + * Source/NSXMLDTDNode.m (-initWithXMLString:): Use childAtIndex: + instead of rootElement. 2012-03-23 Fred Kiefer - * Source/NSXMLNode.m (-copyWithZone_): Use value 1 instead of 2 - for deep copy. Bug found by Doug Simons . - * Source/NSXMLNode.m (-rootDocument): Don't return the private document. - * Source/NSXMLNode.m (-nextSibling, -previousSibling): Protect - against namspace nodes. - * Tests/base/NSXMLNode/transfer.m: New test case for problem - reported by Doug Simons. + * Source/NSXMLNode.m (-copyWithZone_): Use value 1 instead of 2 + for deep copy. Bug found by Doug Simons . + * Source/NSXMLNode.m (-rootDocument): Don't return the private document. + * Source/NSXMLNode.m (-nextSibling, -previousSibling): Protect + against namspace nodes. + * Tests/base/NSXMLNode/transfer.m: New test case for problem + reported by Doug Simons. 2012-03-22 Fred Kiefer - * Source/NSXMLElement.m, - * Source/NSXMLNode.m: Fix memory leak for attribute private - documents found by valgrind. - * Tests/base/NSXMLNode/namespace.m: Use drain instead of release. + * Source/NSXMLElement.m, + * Source/NSXMLNode.m: Fix memory leak for attribute private + documents found by valgrind. + * Tests/base/NSXMLNode/namespace.m: Use drain instead of release. 2012-03-22 Fred Kiefer - * Source/NSXMLDocument.m (-URI, -setURI:): Specific implementation. - * Source/NSXMLPrivate.h: Remove URI ivar. - * Source/NSXMLElement.m, - * Source/NSXMLNode.m: Full support for namespaces. - * Tests/base/NSXMLNode/namespace.m: Test code borrowed from Google - data project. + * Source/NSXMLDocument.m (-URI, -setURI:): Specific implementation. + * Source/NSXMLPrivate.h: Remove URI ivar. + * Source/NSXMLElement.m, + * Source/NSXMLNode.m: Full support for namespaces. + * Tests/base/NSXMLNode/namespace.m: Test code borrowed from Google + data project. 2012-03-21 Fred Kiefer - * Source/NSXMLDocument.m: Correct memory management. - * Source/NSXMLElement.m, - * Source/NSXMLNode.m: Add partial support for namespaces. - Try to bracket more libxml2 functions with version checks. + * Source/NSXMLDocument.m: Correct memory management. + * Source/NSXMLElement.m, + * Source/NSXMLNode.m: Add partial support for namespaces. + Try to bracket more libxml2 functions with version checks. 2012-03-21 Richard Frith-Macdonald - * Source/NSXMLDocument.m: - * Source/NSXMLDTD.m: - * Source/NSXMLNode.m: - * Source/NSXMLDTDNode.m: - * Source/NSXMLElement.m: - Bracket everything in test of HAVE_LIBXML2 - * configure.ac: - * configure: - Alter tests for major dependencies (ICU, XML, TLS) so that they all - abort configuration unless specifically disabled ... we want a - consistent build with all major features. + * Source/NSXMLDocument.m: + * Source/NSXMLDTD.m: + * Source/NSXMLNode.m: + * Source/NSXMLDTDNode.m: + * Source/NSXMLElement.m: + Bracket everything in test of HAVE_LIBXML2 + * configure.ac: + * configure: + Alter tests for major dependencies (ICU, XML, TLS) so that they all + abort configuration unless specifically disabled ... we want a + consistent build with all major features. 2012-03-20 Niels Grewe - * Headers/Foundation/NSDictionary.h - * Source/NSDictionary.m: - Implement blocks related enumeration methods. - * Tests/base/NSDictionary/blocks.m: - Test cases for blocks support. + * Headers/Foundation/NSDictionary.h + * Source/NSDictionary.m: + Implement blocks related enumeration methods. + * Tests/base/NSDictionary/blocks.m: + Test cases for blocks support. 2012-03-20 Niels Grewe - * Headers/Foundation/NSObjCRuntime.h: Define NS_REQUIRES_NIL_TERMINATION - macro. + * Headers/Foundation/NSObjCRuntime.h: Define NS_REQUIRES_NIL_TERMINATION + macro. 2012-03-20 Richard Frith-Macdonald - * Headers/Foundation/NSException.h: - Try to make error message more helpful when building with incompatible - exception handling settings. + * Headers/Foundation/NSException.h: + Try to make error message more helpful when building with incompatible + exception handling settings. 2012-03-18 Fred Kiefer - * Source/NSXMLDTDNode.m: Correct node type, at least for entity nodes. - * Source/NSXMLDTD.m: Use predefined entities from libxml2. - * Source/NSXMLNode.m: Rewrite the ownership transfer to preserve - names in dictionaries. + * Source/NSXMLDTDNode.m: Correct node type, at least for entity nodes. + * Source/NSXMLDTD.m: Use predefined entities from libxml2. + * Source/NSXMLNode.m: Rewrite the ownership transfer to preserve + names in dictionaries. 2012-03-17 Fred Kiefer - * Source/NSXMLPrivate.h: Remvoe unused ivars. - * Source/NSXMLDocument.m: Get DTD from node and and validation in - init methods. - * Source/NSXMLDTD.m: Implement. - * Source/NSXMLNode.m: No children for attribute nodes. - * Tests/base/NSXMLNode/basic.m: Test empty attribute children + * Source/NSXMLPrivate.h: Remvoe unused ivars. + * Source/NSXMLDocument.m: Get DTD from node and and validation in + init methods. + * Source/NSXMLDTD.m: Implement. + * Source/NSXMLNode.m: No children for attribute nodes. + * Tests/base/NSXMLNode/basic.m: Test empty attribute children 2012-03-16 Fred Kiefer - * Source/NSXMLNode.m (-XMLStringWithOptions:): Protect the - different format constants with version checks. + * Source/NSXMLNode.m (-XMLStringWithOptions:): Protect the + different format constants with version checks. 2012-03-14 Fred Kiefer - * Source/NSXMLDocument.m (-XMLDataWithOptions:): Correct convesion - to NSData. Add some comments. + * Source/NSXMLDocument.m (-XMLDataWithOptions:): Correct convesion + to NSData. Add some comments. 2012-03-14 Fred Kiefer - * Source/NSXMLPrivate.h: Add comments on owner policy. - * Source/NSXMLNode.m (-XMLStringWithOptions:): Reimplement to - allow closer control over output. - * Source/NSXMLDocument.m (-XMLStringWithOptions:): Remove this method. + * Source/NSXMLPrivate.h: Add comments on owner policy. + * Source/NSXMLNode.m (-XMLStringWithOptions:): Reimplement to + allow closer control over output. + * Source/NSXMLDocument.m (-XMLStringWithOptions:): Remove this method. 2012-03-14 Richard Frith-Macdonald - * Source/NSXMLPrivate.h: - * Source/NSXMLNode.m: - * Source/NSXMLElement.m: - Fixups to get the code to build on CentOS/RedHat linux. + * Source/NSXMLPrivate.h: + * Source/NSXMLNode.m: + * Source/NSXMLElement.m: + Fixups to get the code to build on CentOS/RedHat linux. 2012-03-12 Fred Kiefer - * Source/NSXMLNode.m (-detach): Don't handle the namespace case. - * Source/NSXMLElement.m (-removeNamespaceForPrefix:): Implement. - * Tests/base/NSXMLNode/basic.m: Move tests from here ... - * Tests/base/NSXMLElement/basic.m: ... to here. + * Source/NSXMLNode.m (-detach): Don't handle the namespace case. + * Source/NSXMLElement.m (-removeNamespaceForPrefix:): Implement. + * Tests/base/NSXMLNode/basic.m: Move tests from here ... + * Tests/base/NSXMLElement/basic.m: ... to here. 2012-03-12 Fred Kiefer - * Source/NSXMLElement.m: Correct used namespace field. - * Source/NSXMLNode.m: Implement special handling for namespace nodes. - * Tests/base/NSXMLNode/basic.m: Correct method name for namespace node. + * Source/NSXMLElement.m: Correct used namespace field. + * Source/NSXMLNode.m: Implement special handling for namespace nodes. + * Tests/base/NSXMLNode/basic.m: Correct method name for namespace node. 2012-03-11 Richard Frith-Macdonald & Fred Kiefer - * Source/NSXMLNamespace.m: - * Source/GNUmakefile: - * Source/NSXMLPrivate.h: - * Source/NSXMLNode.m: - Revert most of my last change in favour of Fred's changes. + * Source/NSXMLNamespace.m: + * Source/GNUmakefile: + * Source/NSXMLPrivate.h: + * Source/NSXMLNode.m: + Revert most of my last change in favour of Fred's changes. 2012-03-11 Richard Frith-Macdonald - * Source/NSXMLNamespace.m: New class for namespaces - * Source/GNUmakefile: Build with new class - * Source/NSXMLDocument.m: - * Source/NSXMLPrivate.h: - * Source/NSXMLDTD.m: - * Source/NSXMLNode.m: - * Source/NSXMLDTDNode.m: - * Source/NSXMLElement.m: - Use a new class for namespaces ... just a placeholder/skeleton so far. - Change other classes to know the correct type of their 'node' pointer. + * Source/NSXMLNamespace.m: New class for namespaces + * Source/GNUmakefile: Build with new class + * Source/NSXMLDocument.m: + * Source/NSXMLPrivate.h: + * Source/NSXMLDTD.m: + * Source/NSXMLNode.m: + * Source/NSXMLDTDNode.m: + * Source/NSXMLElement.m: + Use a new class for namespaces ... just a placeholder/skeleton so far. + Change other classes to know the correct type of their 'node' pointer. 2012-03-11 Richard Frith-Macdonald - * Source/NSXMLNode.m: Avoid crash when trying to get the parent of a - namespace ... namespaces don't have parents and in fact have a - completely different in-memory layout to other 'node' types. + * Source/NSXMLNode.m: Avoid crash when trying to get the parent of a + namespace ... namespaces don't have parents and in fact have a + completely different in-memory layout to other 'node' types. 2012-03-11 Richard Frith-Macdonald - * Source/NSURLHandle.m: - * Source/GSHTTPURLHandle.m: - * Source/NSURLProtocol.m: - * Headers/Foundation/NSURLProtocol.h: - Tweak handling of debug settings to consistently write debug output - using NSLog. + * Source/NSURLHandle.m: + * Source/GSHTTPURLHandle.m: + * Source/NSURLProtocol.m: + * Headers/Foundation/NSURLProtocol.h: + Tweak handling of debug settings to consistently write debug output + using NSLog. 2012-03-09 Fred Kiefer - * Source/NSXMLNode.m (-copyWithZone:): Don't set object value of - copy if it is nil. - * Source/NSXMLNode.m (+_objectForNode:): Use correct sub class for - decl nodes. - * Tests/base/NSXMLNode/basic.m: More tests. + * Source/NSXMLNode.m (-copyWithZone:): Don't set object value of + copy if it is nil. + * Source/NSXMLNode.m (+_objectForNode:): Use correct sub class for + decl nodes. + * Tests/base/NSXMLNode/basic.m: More tests. 2012-03-08 Fred Kiefer - * Source/NSXMLNode.m (-detach, -_insertChild:atIndex:): Maintain - doc pointer. - * Source/NSXMLDTD.m: Implement a few methods. + * Source/NSXMLNode.m (-detach, -_insertChild:atIndex:): Maintain + doc pointer. + * Source/NSXMLDTD.m: Implement a few methods. 2012-03-08 Fred Kiefer - * Source/NSXMLNode.m (+_objectForNode:): Add a few more libxml2 - node types. + * Source/NSXMLNode.m (+_objectForNode:): Add a few more libxml2 + node types. 2012-03-07 Richard Frith-Macdonald - * Source/GSStream.m: Attempt to fix logic for event handling of data - streams. + * Source/GSStream.m: Attempt to fix logic for event handling of data + streams. 2012-03-01 Jens Alfke - * Headers/GNUstepBase/NSURL+GNUstepBase.h: - * Source/Additions/NSURL+GNUstepBase.m: - * Source/NSURL.m: - New -pathWithEscapes method to enable differentiation between '/' - characters in the original path and '%2F' escapes in it. + * Headers/GNUstepBase/NSURL+GNUstepBase.h: + * Source/Additions/NSURL+GNUstepBase.m: + * Source/NSURL.m: + New -pathWithEscapes method to enable differentiation between '/' + characters in the original path and '%2F' escapes in it. 2012-03-06 Fred Kiefer - * Source/NSXMLNode.m (+initialize): Add workaround for Windows - xmlFree problem. + * Source/NSXMLNode.m (+initialize): Add workaround for Windows + xmlFree problem. 2012-03-06 Richard Frith-Macdonald - * Source/NSURLProtocol.m: check for parse complete explicitly and - remove case where complete is set to NO if using chunked coding ... - it seems to be jsut wrong. + * Source/NSURLProtocol.m: check for parse complete explicitly and + remove case where complete is set to NO if using chunked coding ... + it seems to be jsut wrong. 2012-03-06 Fred Kiefer - * Source/NSXMLNode.m (-copyWithZone:): Use objectValue ivar - directly as the subclass NSXMLElement returns a different value. + * Source/NSXMLNode.m (-copyWithZone:): Use objectValue ivar + directly as the subclass NSXMLElement returns a different value. 2012-03-05 Eric Wasylishen - * Source/NSUserDefaults.m: - * Source/NSConnection.m: - * Source/NSCharacterSet.m: - * Tools/make_strings/StringsFile.m: - * Tools/pl.m: Fix instances where NSNotFound is stored in or - compared to an unsigned or int variable. + * Source/NSUserDefaults.m: + * Source/NSConnection.m: + * Source/NSCharacterSet.m: + * Tools/make_strings/StringsFile.m: + * Tools/pl.m: Fix instances where NSNotFound is stored in or + compared to an unsigned or int variable. 2012-03-05 Eric Wasylishen - * Source/NSString.m: Factor out code for opening an ICU collator - into static function GSICUCollatorOpen. Support - NSDiacriticInsensitiveSearch. + * Source/NSString.m: Factor out code for opening an ICU collator + into static function GSICUCollatorOpen. Support + NSDiacriticInsensitiveSearch. 2012-03-05 Eric Wasylishen - * Headers/Foundation/NSString.h (-compare:options:range:locale:): - Rename locale parameter from "dict" to "locale". - * Source/NSString.m (-compare:options:range:locale:): If locale - paramater is not nil and not an NSLocale instance, substitute - +[NSLocale currentLocale]. - * Source/NSString.m: Clarify some locale related documentation. + * Headers/Foundation/NSString.h (-compare:options:range:locale:): + Rename locale parameter from "dict" to "locale". + * Source/NSString.m (-compare:options:range:locale:): If locale + paramater is not nil and not an NSLocale instance, substitute + +[NSLocale currentLocale]. + * Source/NSString.m: Clarify some locale related documentation. 2012-03-05 Fred Kiefer - * Tests/base/NSXMLElement/attributes.m: Test for changed - exception. - * Tests/base/NSXMLNode/basic.m: More tests. - * Source/NSXMLNode.m: Rewrite object value handling. - * Source/NSXMLElement.m (-objectValue): Return @"" when the value - is nil. + * Tests/base/NSXMLElement/attributes.m: Test for changed + exception. + * Tests/base/NSXMLNode/basic.m: More tests. + * Source/NSXMLNode.m: Rewrite object value handling. + * Source/NSXMLElement.m (-objectValue): Return @"" when the value + is nil. 2012-03-05 Eric Wasylishen - * Source/NSString.m (-rangeOfString:options:range:locale:): - Correct result range with ICU codepath + * Source/NSString.m (-rangeOfString:options:range:locale:): + Correct result range with ICU codepath 2012-03-05 Fred Kiefer - * Source/NSXMLElement.m (-addAttribute:): Raise correct exception. - * Tests/base/NSXMLNode/children.m: Add test cases for attributes. + * Source/NSXMLElement.m (-addAttribute:): Raise correct exception. + * Tests/base/NSXMLNode/children.m: Add test cases for attributes. 2012-03-05 Eric Wasylishen - * Tests/base/NSString/locale.m: Expand test of compare: - and rangeOfString:. Mark as hopeful for the moment. All pass - on Mac OS 10.7. + * Tests/base/NSString/locale.m: Expand test of compare: + and rangeOfString:. Mark as hopeful for the moment. All pass + on Mac OS 10.7. 2012-03-04 Fred Kiefer - * Source/NSXMLPrivate.h: Move private method declarations for - NSXMLNode to here. - * Source/NSXMLDocument.m - * Source/NSXMLDTD.m - * Source/NSXMLDTDNode.m - * Source/NSXMLElement.m - * Source/NSXMLNode.m: Clean up and add comments about missing code. + * Source/NSXMLPrivate.h: Move private method declarations for + NSXMLNode to here. + * Source/NSXMLDocument.m + * Source/NSXMLDTD.m + * Source/NSXMLDTDNode.m + * Source/NSXMLElement.m + * Source/NSXMLNode.m: Clean up and add comments about missing code. 2012-03-03 Fred Kiefer - * Source/NSXMLNode.m: Remove all the extra reference handling code - and the special retain and release methods. - * Tests/base/NSXMLNode/basic.m, - * Tests/base/NSXMLNode/children.m: A few more test - cases. Validated on MacOSX 10.6. + * Source/NSXMLNode.m: Remove all the extra reference handling code + and the special retain and release methods. + * Tests/base/NSXMLNode/basic.m, + * Tests/base/NSXMLNode/children.m: A few more test + cases. Validated on MacOSX 10.6. 2012-03-02 Eric Wasylishen - * Tests/base/NSString/locale.m: Add a simple test for locale sensitive - compare: and rangeOfString: methods. + * Tests/base/NSString/locale.m: Add a simple test for locale sensitive + compare: and rangeOfString: methods. 2012-03-02 Eric Wasylishen - * Source/NSString.m: Fix for ICU anchored backwards search + * Source/NSString.m: Fix for ICU anchored backwards search 2012-03-02 Fred Kiefer - * Source/GSLocale.m (GSDefaultLanguageLocale): Add missing check - for LC_MESSAGES definition. + * Source/GSLocale.m (GSDefaultLanguageLocale): Add missing check + for LC_MESSAGES definition. 2012-03-02 Richard Frith-Macdonald - * Source/NSFileManager.m: fix for bug #35692 + * Source/NSFileManager.m: fix for bug #35692 2012-03-02 Richard Frith-Macdonald - * Source/GSString.m: Compatribility fix ... copy strings implicitly - when taking a substring of a string whose buffer is not owned. + * Source/GSString.m: Compatribility fix ... copy strings implicitly + when taking a substring of a string whose buffer is not owned. 2012-03-02 Richard Frith-Macdonald - * Source/NSURLConnection.m: Compatibility fix for bug #35686 - In this case Cocoa breaks its own convention about delegates - not being retained, so we need to do the same. + * Source/NSURLConnection.m: Compatibility fix for bug #35686 + In this case Cocoa breaks its own convention about delegates + not being retained, so we need to do the same. 2012-03-02 Richard Frith-Macdonald - * Headers/GNUstepBase/config.h.in: add missing ICU headers - * Source/NSString.m: fix minor coding standard violations. + * Headers/GNUstepBase/config.h.in: add missing ICU headers + * Source/NSString.m: fix minor coding standard violations. 2012-03-01 Jens Alfke - * Source/NSString.m: - * Source/NSURL.m: - Fix decoding of percent escapes with uppercase hex values - (bug #35685) + * Source/NSString.m: + * Source/NSURL.m: + Fix decoding of percent escapes with uppercase hex values + (bug #35685) 2012-03-01 Eric Wasylishen - * Source/NSString.m: Implement a codepath using ICU for - -compare:options:range:locale: and - -rangeOfString:options:range:locale: when a non-nil locale - is provided. - * Headers/Foundation/NSString.h (-compare:options:range:locale:): - Change type of locale parameter to id; it can be NSDictionary or - NSLocale. - * configure.ac: add some ICU headers used in NSString change - * configure: regenerate + * Source/NSString.m: Implement a codepath using ICU for + -compare:options:range:locale: and + -rangeOfString:options:range:locale: when a non-nil locale + is provided. + * Headers/Foundation/NSString.h (-compare:options:range:locale:): + Change type of locale parameter to id; it can be NSDictionary or + NSLocale. + * configure.ac: add some ICU headers used in NSString change + * configure: regenerate 2012-03-01 Graham Lee - * Source/GSNetworks.h: import GSPrivate.h + * Source/GSNetworks.h: import GSPrivate.h 2012-03-01 Richard Frith-Macdonald - * Headers/Foundation/NSURLResponse.h: - * Source/NSURLResponse.m: - Implement new initialiser from 10.7 + * Headers/Foundation/NSURLResponse.h: + * Source/NSURLResponse.m: + Implement new initialiser from 10.7 2012-03-01 Jens Alfke - * Source/NSJSONSerialization.m: - Use %g for numeric output format. + * Source/NSJSONSerialization.m: + Use %g for numeric output format. 2012-03-01 Richard Frith-Macdonald - * Source/GSRunLoopWatcher.h: - * Source/NSXMLPrivate.h: - * Source/GSRunLoopCtxt.h: - * Source/common.h: - * Source/Additions/NSError+GNUstepBase.m: - * Source/GSURLPrivate.h: - Include config.h via common.h ... and have that turn off _GNU_SOURCE - so GNU extensions aren't used and we stick to standard strerror_r + * Source/GSRunLoopWatcher.h: + * Source/NSXMLPrivate.h: + * Source/GSRunLoopCtxt.h: + * Source/common.h: + * Source/Additions/NSError+GNUstepBase.m: + * Source/GSURLPrivate.h: + Include config.h via common.h ... and have that turn off _GNU_SOURCE + so GNU extensions aren't used and we stick to standard strerror_r 2012-03-01 Fred Kiefer - * Source/NSXMLNode.m: More cleanup. + * Source/NSXMLNode.m: More cleanup. 2012-03-01 Richard Frith-Macdonald - * Source/NSXMLDocument.m: - * Source/NSXMLNode.m: - * Source/NSXMLElement.m: - Cleanup to conform to coding standards/conventions. - Fix lots of functions to be local in scope. - Add comments about needing to implement correct object ownership - model. + * Source/NSXMLDocument.m: + * Source/NSXMLNode.m: + * Source/NSXMLElement.m: + Cleanup to conform to coding standards/conventions. + Fix lots of functions to be local in scope. + Add comments about needing to implement correct object ownership + model. 2012-02-27 Doug Simons - * Source/NSXMLNode.m: Fix a crashing bug after an invalid xpath - expression is used. + * Source/NSXMLNode.m: Fix a crashing bug after an invalid xpath + expression is used. 2012-02-29 Richard Frith-Macdonald - * Source/Additions/NSError+GNUstepBase.m: try to ensure we always get - the POSIX version of strerror_h. + * Source/Additions/NSError+GNUstepBase.m: try to ensure we always get + the POSIX version of strerror_h. 2012-02-27 Eric Wasylishen - * Source/GSLocale.m: - - Deprecate GSSetLocale and GSSetLocaleC; they now do nothing - but print a warning. - - Introduce GSDefaultLanguageLocale(), which is a - substitute for GSSetLocale(LC_MESSAGES, nil), which just returns the - current setting of LC_MESSAGES. - * Source/NSObject.m (+initialize): Remove GSSetLocaleC call, - which was changing the libc locale. - * Source/NSUserDefaults.m: Use GSDefaultLanguageLocale() instead of - GSSetLocale(LC_MESSAGES, nil) + * Source/GSLocale.m: + - Deprecate GSSetLocale and GSSetLocaleC; they now do nothing + but print a warning. + - Introduce GSDefaultLanguageLocale(), which is a + substitute for GSSetLocale(LC_MESSAGES, nil), which just returns the + current setting of LC_MESSAGES. + * Source/NSObject.m (+initialize): Remove GSSetLocaleC call, + which was changing the libc locale. + * Source/NSUserDefaults.m: Use GSDefaultLanguageLocale() instead of + GSSetLocale(LC_MESSAGES, nil) 2012-02-27 Eric Wasylishen - * Source/NSArchiver.m (-resetArchiver): Write [self systemVersion] as - the archive version instead of 0, because this is what will be stored in - the archive if -encodeRootObject: is not called. + * Source/NSArchiver.m (-resetArchiver): Write [self systemVersion] as + the archive version instead of 0, because this is what will be stored in + the archive if -encodeRootObject: is not called. 2012-02-27 Eric Wasylishen - * SSL/configure.ac: Change test for ssl2_clear in -lssl - to test for SSL_clear, which is a public function and - is acutally used by the SSL bundle. The test for ssl2_clear - was failing with OpenSSL 1.0.0e. - * SSL/configure: Regenerate + * SSL/configure.ac: Change test for ssl2_clear in -lssl + to test for SSL_clear, which is a public function and + is acutally used by the SSL bundle. The test for ssl2_clear + was failing with OpenSSL 1.0.0e. + * SSL/configure: Regenerate 2012-02-28 Richard Frith-Macdonald - * Source/NSArchiver.m: - * Source/NSUnarchiver.m: - * Source/NSPortCoder.m: - * Version: Update to 12402 - Bump subminor version as suggested by eric Wasylishen, in case there - are any archives which would be caugt by the new version number. + * Source/NSArchiver.m: + * Source/NSUnarchiver.m: + * Source/NSPortCoder.m: + * Version: Update to 12402 + Bump subminor version as suggested by eric Wasylishen, in case there + are any archives which would be caugt by the new version number. 2012-02-28 Richard Frith-Macdonald - * Source/NSArchiver.m: - * Source/NSUnarchiver.m: - Revise archive format to allow for variable sized array counts ... - original versionallowed for variable encodings of integral types in - archived data, but not for the count of the nuymber of items in the - array :-( - * Source/NSPortCoder.m: Similar fixes for encoding/decoding arrays. + * Source/NSArchiver.m: + * Source/NSUnarchiver.m: + Revise archive format to allow for variable sized array counts ... + original versionallowed for variable encodings of integral types in + archived data, but not for the count of the nuymber of items in the + array :-( + * Source/NSPortCoder.m: Similar fixes for encoding/decoding arrays. 2012-02-27 Fred Kiefer - * Source/NSXMLNode.m (-copyWithZone:): Copy name spaces as well. - * Source/NSXMLDocument.m (-copyWithZone:): Rewrite copy method. - * Source/NSXMLElement.m: Remove copy method. + * Source/NSXMLNode.m (-copyWithZone:): Copy name spaces as well. + * Source/NSXMLDocument.m (-copyWithZone:): Rewrite copy method. + * Source/NSXMLElement.m: Remove copy method. 2012-02-27 Doug Simons - Merged to trunk by: greg.casamento@gmail.com + Merged to trunk by: - * Source/NSXMLDocument.m: Fix bugs in setCharacterEncoding: and - copyWithZone: that cause a memory crash when tree is freed. - Doug Simons + * Source/NSXMLDocument.m: Fix bugs in setCharacterEncoding: and + copyWithZone: that cause a memory crash when tree is freed. + Doug Simons 2012-02-27 Fred Kiefer - * Source/NSXMLNode.m (+_objectForNode:): Get the actual class from - the document. - * Source/NSXMLNode.m (-description): Add a simple description method. - * Source/NSXMLDocument.m: Further cleanup. Exchange the contents of - -initWithData:... and initWithXMLString:... + * Source/NSXMLNode.m (+_objectForNode:): Get the actual class from + the document. + * Source/NSXMLNode.m (-description): Add a simple description method. + * Source/NSXMLDocument.m: Further cleanup. Exchange the contents of + -initWithData:... and initWithXMLString:... 2012-02-27 Richard Frith-Macdonald - * Source/NSArchiver.m: - * Source/NSUnarchiver.m: - Alter to support encoding and decoding arrays with NSUInteger counts - (ie more than 2^32 objects if on a 64bit system). + * Source/NSArchiver.m: + * Source/NSUnarchiver.m: + Alter to support encoding and decoding arrays with NSUInteger counts + (ie more than 2^32 objects if on a 64bit system). 2012-02-26 Eric Wasylishen - * Source/NSData.m: Various 64-bit compatibility fixes, mostly changing - unsgined to NSUInteger. + * Source/NSData.m: Various 64-bit compatibility fixes, mostly changing + unsgined to NSUInteger. 2012-02-26 Fred Kiefer - * Source/NSXMLNode.m (execute_xpath): Use correct node for - relative paths. - * Source/NSXMLNode.m (isEqualTree): Correct equality test to - ignore siblings. - * Source/NSXMLNode.m (+elementWithName:stringValue:): Correct - recursive call. - Patch by Ivan Vučica - * Source/NSXMLElement.m: Add FIXME comments for name space methods. + * Source/NSXMLNode.m (execute_xpath): Use correct node for + relative paths. + * Source/NSXMLNode.m (isEqualTree): Correct equality test to + ignore siblings. + * Source/NSXMLNode.m (+elementWithName:stringValue:): Correct + recursive call. + Patch by Ivan Vučica + * Source/NSXMLElement.m: Add FIXME comments for name space methods. 2012-02-23 Fred Kiefer - * Source/NSXMLElement.m: Implement namespace methods. + * Source/NSXMLElement.m: Implement namespace methods. 2012-02-22 Fred Kiefer - * Source/NSXMLNode.m (-_nodeFollowingInNaturalDirection:): Correct - this method. - * Source/NSXMLDocument.m, - * Source/NSXMLElement.m: Clean up children methods. + * Source/NSXMLNode.m (-_nodeFollowingInNaturalDirection:): Correct + this method. + * Source/NSXMLDocument.m, + * Source/NSXMLElement.m: Clean up children methods. 2012-02-22 Fred Kiefer - * Source/NSXMLNode.m: Further clean up. - * Source/NSXMLDTDNode.m (-initWithXMLString:): Move comment about - missing code to here. - * Source/NSXMLElement.m (-initWithName:stringValue:): Move subnode - creation to here. + * Source/NSXMLNode.m: Further clean up. + * Source/NSXMLDTDNode.m (-initWithXMLString:): Move comment about + missing code to here. + * Source/NSXMLElement.m (-initWithName:stringValue:): Move subnode + creation to here. 2012-02-21 Fred Kiefer - * Source/NSXMLNode.m: Clean up helper functions. + * Source/NSXMLNode.m: Clean up helper functions. 2012-02-20 Fred Kiefer - * Source/NSAffineTransform.m (-initWithCoder:, -encodeWithCoder:): - Add key coding and decoding for NSAffineTransform. + * Source/NSAffineTransform.m (-initWithCoder:, -encodeWithCoder:): + Add key coding and decoding for NSAffineTransform. 2012-02-19 22:37-EST Gregory John Casamento - Doug Simons - - * Source/NSXMLDocument.m - * Source/NSXMLDTD.m - * Source/NSXMLDTDNode.m - * Source/NSXMLElement.m - * Source/NSXMLNode.m - * Source/NSXMLPrivate.h: Reimplementation of all DOM classes based on - libxml2. Implementation of all methods using libxml2 functions. - * Tests/base/NSXMLDocument/basic.m - * Tests/base/NSXMLElement/attributes.m - * Tests/base/NSXMLElement/children.m - * Tests/base/NSXMLNode/basic.m - * Tests/base/NSXMLNode/children.m - * Tests/base/NSXMLNode/kinds.m: Changes to test for new functionality. + Doug Simons + + * Source/NSXMLDocument.m + * Source/NSXMLDTD.m + * Source/NSXMLDTDNode.m + * Source/NSXMLElement.m + * Source/NSXMLNode.m + * Source/NSXMLPrivate.h: Reimplementation of all DOM classes based on + libxml2. Implementation of all methods using libxml2 functions. + * Tests/base/NSXMLDocument/basic.m + * Tests/base/NSXMLElement/attributes.m + * Tests/base/NSXMLElement/children.m + * Tests/base/NSXMLNode/basic.m + * Tests/base/NSXMLNode/children.m + * Tests/base/NSXMLNode/kinds.m: Changes to test for new functionality. 2012-02-08 Lubomir Rintel - * Source/NSHTTPCookie.m: - * Source/NSHTTPCookieStorage.m: - * Source/NSURLConnection.m: - * Source/NSURLProtocol.m: - * Source/NSURLRequest.m: - Enable the use of cookies by default ... addse setting of cookies - in requests and improves caching/storing. Original patches rewritten - by maintainer to conform to coding standards and for clarity. + * Source/NSHTTPCookie.m: + * Source/NSHTTPCookieStorage.m: + * Source/NSURLConnection.m: + * Source/NSURLProtocol.m: + * Source/NSURLRequest.m: + Enable the use of cookies by default ... addse setting of cookies + in requests and improves caching/storing. Original patches rewritten + by maintainer to conform to coding standards and for clarity. 2012-02-08 Richard Frith-Macdonald - * Source/GSConcreteValueTemplate.m: Don't ask a non-retained object - to describe itsself (in case it has gon away) bug#35477 + * Source/GSConcreteValueTemplate.m: Don't ask a non-retained object + to describe itsself (in case it has gon away) bug#35477 2012-02-07 Niels Grewe - * configure.ac: Check for threading library on QNX. - * configure: Regenerate. + * configure.ac: Check for threading library on QNX. + * configure: Regenerate. 2012-02-04 Richard Frith-Macdonald - * Version: 1.24.1 ... still binary compatibile with 1.24.0 - * Source/NSTextCheckingResult.m: - * Headers/Foundation/NSTextCheckingResult.h: coding style tidyups + * Version: 1.24.1 ... still binary compatibile with 1.24.0 + * Source/NSTextCheckingResult.m: + * Headers/Foundation/NSTextCheckingResult.h: coding style tidyups 2012-02-03 Adam Fedor - * Bump version + * Bump version 2012-02-03 Adam Fedor - * Version 1.24.0 - * Update announcements + * Version 1.24.0 + * Update announcements 2012-02-03 Richard Frith-Macdonald - * Source/NSURL.m: Fixup for bug #35437 + * Source/NSURL.m: Fixup for bug #35437 2012-01-31 Richard Frith-Macdonald - * Source/NSJSONSerialization.m: bugfix for empty strings. - * Tests/base/NSJSONSerialization/json.m: add a few emtpy element - tests and fixup to be more readable + * Source/NSJSONSerialization.m: bugfix for empty strings. + * Tests/base/NSJSONSerialization/json.m: add a few emtpy element + tests and fixup to be more readable 2012-01-31 Richard Frith-Macdonald - * Version: revert last change as Fred pointed out I got it wrong and - we shoudl be updating version immediately *after* release. + * Version: revert last change as Fred pointed out I got it wrong and + we shoudl be updating version immediately *after* release. 2012-01-31 Fred Kiefer - * Tests/base/NSURLRequest/basic.m: Remove two astray @ characters. + * Tests/base/NSURLRequest/basic.m: Remove two astray @ characters. 2012-01-30 Richard Frith-Macdonald - * Version: Bump version to 1.24.0 in preparation for release. - * NSTimeZones/NSTimeZones.tar: Update timezone information + * Version: Bump version to 1.24.0 in preparation for release. + * NSTimeZones/NSTimeZones.tar: Update timezone information 2012-01-30 Richard Frith-Macdonald - * Source/NSJSONSerialization.m: - Fix buffer overrun reported by Lubomir Rintel + * Source/NSJSONSerialization.m: + Fix buffer overrun reported by Lubomir Rintel 2012-01-30 Richard Frith-Macdonald - * Source/NSKeyValueCoding.m: - * Source/NSAffineTransform.m: - * Source/NSNotificationCenter.m: - * Source/NSConnection.m: - * Source/GSString.m: - Avoid a few static analyser warnings. + * Source/NSKeyValueCoding.m: + * Source/NSAffineTransform.m: + * Source/NSNotificationCenter.m: + * Source/NSConnection.m: + * Source/GSString.m: + Avoid a few static analyser warnings. 2012-01-29 Richard Frith-Macdonald - * configure.ac: - * Headers/GNUstepBase/config.h.in: - * Source/GSFFIInvocation.m: - * Source/GSPrivate.h: - * Source/NSInvocation.m: - If modern ffi is available, use ffi_prep_closure_loc and ffi closure - memory management so we get the benefit of ffi library code to work - around restrictions of selinux etc. + * configure.ac: + * Headers/GNUstepBase/config.h.in: + * Source/GSFFIInvocation.m: + * Source/GSPrivate.h: + * Source/NSInvocation.m: + If modern ffi is available, use ffi_prep_closure_loc and ffi closure + memory management so we get the benefit of ffi library code to work + around restrictions of selinux etc. 2012-01-29 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Try to deal with the case where a language - has been set to the ISO standard name rather than an OpenStep name - by converting to an Openstep name as an alternative lookup key. - * Source/NSXMLNode.m: Add warning that the DOM classes are not really - functional in this release. + * Source/NSUserDefaults.m: Try to deal with the case where a language + has been set to the ISO standard name rather than an OpenStep name + by converting to an Openstep name as an alternative lookup key. + * Source/NSXMLNode.m: Add warning that the DOM classes are not really + functional in this release. 2012-01-26 Richard Frith-Macdonald - * Source/NSFileManager.m: Fix copying for large files (issue #35381) + * Source/NSFileManager.m: Fix copying for large files (issue #35381) 2012-01-25 Stefan Bidigaray - * Source/NSNumberFormatter.m: Call unum_format* only once. + * Source/NSNumberFormatter.m: Call unum_format* only once. 2012-01-25 Richard Frith-Macdonald - * Source/GSSocketStream.m: fix possible nul pointer dereference. - * Source/NSHost.m: cache failed lookup by name so that repeated - lookups for a band host name do not cause repeated DNS queries. + * Source/GSSocketStream.m: fix possible nul pointer dereference. + * Source/NSHost.m: cache failed lookup by name so that repeated + lookups for a band host name do not cause repeated DNS queries. 2012-01-24 Richard Frith-Macdonald - * Source/NSURLRequest.m: be tolerant about missing URL on init. + * Source/NSURLRequest.m: be tolerant about missing URL on init. 2012-01-10 Richard Frith-Macdonald - * Source/GSFFIInvocation.m: Fix selector types comparison to use the - correct function for checking equivalent types. + * Source/GSFFIInvocation.m: Fix selector types comparison to use the + correct function for checking equivalent types. 2012-01-10 Richard Frith-Macdonald - * config/pathtls.m4: - * config/pathxml.m4: - Remove incorrect sed call to tidy flags (as suggested by Felix Geyer - in bug #34835). + * config/pathtls.m4: + * config/pathxml.m4: + Remove incorrect sed call to tidy flags (as suggested by Felix Geyer + in bug #34835). 2012-01-16 Eric Wasylishen - * Source/NSBundle.m (addBundlePath): Handle nested subdirectories - (e.g. - [NSBundle pathForLibraryResource: - @"Generic-PostScript_Printer-Postscript" ofType: @"ppd" - inDirectory: @"PostScript/PPD"] was previously failing.) + * Source/NSBundle.m (addBundlePath): Handle nested subdirectories + (e.g. + [NSBundle pathForLibraryResource: + @"Generic-PostScript_Printer-Postscript" ofType: @"ppd" + inDirectory: @"PostScript/PPD"] was previously failing.) 2012-01-12 10:10 theraven - * libs/base/trunk/Headers/Foundation/NSException.h: Tweak the - exception mismatch handling so that if base is using native exceptions - and the user doesn't specify an exception mode then we just don't define - the NS_ macros, so code that uses @try etc. compiles without requiring - every cc line to specify a long -D flag just to be allowed to #import - Foundation.h. + * libs/base/trunk/Headers/Foundation/NSException.h: Tweak the + exception mismatch handling so that if base is using native exceptions + and the user doesn't specify an exception mode then we just don't define + the NS_ macros, so code that uses @try etc. compiles without requiring + every cc line to specify a long -D flag just to be allowed to #import + Foundation.h. 2012-01-10 Richard Frith-Macdonald - * Source/NSBundle.m: Remove cached paths when the owning bundle is - deallocated. Use cache to determine which resource directories to - search. + * Source/NSBundle.m: Remove cached paths when the owning bundle is + deallocated. Use cache to determine which resource directories to + search. 2012-01-09 Richard Frith-Macdonald - * Source/NSBundle.m: Crude/simple caching of directory contents to - test impact on theme loading ... needs reverting or improving. + * Source/NSBundle.m: Crude/simple caching of directory contents to + test impact on theme loading ... needs reverting or improving. 2012-01-09 Richard Frith-Macdonald - * Source/NSConcretePointerFunctions.m: - * Source/NSSocketPort.m: - * Source/unix/NSStream.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSZone.m: - * Source/NSMessagePort.m: - * Source/win32/GSFileHandle.m: - * Source/NSInvocation.m: - * Source/NSURLProtocol.m: - * Source/Additions/GSMime.m: - * Source/Additions/GSXML.m: - * Source/NSData.m: - * Source/GSAvahiNetService.m: - * Source/NSTextCheckingResult.m: - Use PRIdPTR and PRIuPTR rather than ld and lu for printf formatting - of NSInteger and NSUInteger values. + * Source/NSConcretePointerFunctions.m: + * Source/NSSocketPort.m: + * Source/unix/NSStream.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSZone.m: + * Source/NSMessagePort.m: + * Source/win32/GSFileHandle.m: + * Source/NSInvocation.m: + * Source/NSURLProtocol.m: + * Source/Additions/GSMime.m: + * Source/Additions/GSXML.m: + * Source/NSData.m: + * Source/GSAvahiNetService.m: + * Source/NSTextCheckingResult.m: + Use PRIdPTR and PRIuPTR rather than ld and lu for printf formatting + of NSInteger and NSUInteger values. 2012-01-08 Richard Frith-Macdonald - * Headers/ObjectiveC2/objc/capabilities.h: - * Headers/ObjectiveC2/objc/Availability.h: - * Headers/ObjectiveC2/objc/blocks_runtime.h: - * Headers/ObjectiveC2/objc/runtime.h: - Moved to subdirectory. - * Source/Makefile.postamble: - * Source/ObjectiveC2/runtime.c: - * Source/ObjectiveC2/caps.c: - * Source/ObjectiveC2/NSBlocks.m: - * Source/ObjectiveC2/blocks_runtime.m: - * Headers/GNUstepBase/GSObjCRuntime.h: - * Tests/GNUmakefile: - * base.make.in: - Move ObjectiveC2 headers to objc subdirectory so that we can refer - to them using the same objc/headername path as OSX, and use a -I - directive to point to the ObjectiveC2 directory to avoid installing - on top of the real objc2 library or vie versa. Should make it easier - to figure out how to cleanly swith between raeal/emulated objc2 - runtimes. This should also mean that old emulated objc2 headers are - *not* found at configure time, so configure should be able to tell if - a real objc2 runtime has been installed on a system which previously - used the old objc runtime. + * Headers/ObjectiveC2/objc/capabilities.h: + * Headers/ObjectiveC2/objc/Availability.h: + * Headers/ObjectiveC2/objc/blocks_runtime.h: + * Headers/ObjectiveC2/objc/runtime.h: + Moved to subdirectory. + * Source/Makefile.postamble: + * Source/ObjectiveC2/runtime.c: + * Source/ObjectiveC2/caps.c: + * Source/ObjectiveC2/NSBlocks.m: + * Source/ObjectiveC2/blocks_runtime.m: + * Headers/GNUstepBase/GSObjCRuntime.h: + * Tests/GNUmakefile: + * base.make.in: + Move ObjectiveC2 headers to objc subdirectory so that we can refer + to them using the same objc/headername path as OSX, and use a -I + directive to point to the ObjectiveC2 directory to avoid installing + on top of the real objc2 library or vie versa. Should make it easier + to figure out how to cleanly swith between raeal/emulated objc2 + runtimes. This should also mean that old emulated objc2 headers are + *not* found at configure time, so configure should be able to tell if + a real objc2 runtime has been installed on a system which previously + used the old objc runtime. 2012-01-05 Richard Frith-Macdonald - * Source/NSXMLDocument.m: - * Source/NSXMLPrivate.h: - * Source/NSXMLNode.m: - * Source/NSXMLElement.m: - Replace missing assertion (needed for OSX compatibility) also fix - several other issues in node hierarchy handling ... all rather - academic since greg's going to rewrite, but these fixes do mean - the current code passes the testsuite. It's a bad idea to leave - the code and testsuite in an inconsistent state, and the testsuite - represents accumulated information about OSX, so we want our code - to pass all tests rather than removing tests. + * Source/NSXMLDocument.m: + * Source/NSXMLPrivate.h: + * Source/NSXMLNode.m: + * Source/NSXMLElement.m: + Replace missing assertion (needed for OSX compatibility) also fix + several other issues in node hierarchy handling ... all rather + academic since greg's going to rewrite, but these fixes do mean + the current code passes the testsuite. It's a bad idea to leave + the code and testsuite in an inconsistent state, and the testsuite + represents accumulated information about OSX, so we want our code + to pass all tests rather than removing tests. 2012-01-06 17:57-EST Gregory John Casamento - * Source/NSXMLElement.m: Removing assertion that - parent must not be nil per Cocoa documentation for - -(id)parent method in NSXMLNode. + * Source/NSXMLElement.m: Removing assertion that + parent must not be nil per Cocoa documentation for + -(id)parent method in NSXMLNode. 2012-01-05 Richard Frith-Macdonald - * Source/NSXMLDocument.m: - * Source/NSXMLElement.m: - * Source/NSXMLNode.m: - * Source/NSXMLPrivate.h: - Rewrote node hierarchy handling to match OSX documentation and - behaviors. Also implemented -hash and -isEqual: to match OSX for - NSXMLNode. + * Source/NSXMLDocument.m: + * Source/NSXMLElement.m: + * Source/NSXMLNode.m: + * Source/NSXMLPrivate.h: + Rewrote node hierarchy handling to match OSX documentation and + behaviors. Also implemented -hash and -isEqual: to match OSX for + NSXMLNode. 2012-01-05 22:20-EST Doug Simons - * Source/NSXMLDocument.m: Modify XMLStringWithOptions: to only include - the header when version, encoding, or standalone has been set. + * Source/NSXMLDocument.m: Modify XMLStringWithOptions: to only include + the header when version, encoding, or standalone has been set. 2012-01-05 22:20-EST Gregory John Casamento - * Source/NSXMLElement.m: in setChildren: set the childCount. + * Source/NSXMLElement.m: in setChildren: set the childCount. 2012-01-05 22:07-EST Gregory John Casamento - * Source/NSXMLElement.m: Correct warning in copyWithZone: added - return. Correct issue with childCount being out of sync. + * Source/NSXMLElement.m: Correct warning in copyWithZone: added + return. Correct issue with childCount being out of sync. 2012-01-05 21:33-EST Gregory John Casamento - * ChangeLog - * Source/NSXMLDocument.m - * Source/NSXMLElement.m - * Source/NSXMLNode.m: Implement copyWithZone:, correct issues - with previous revert. + * ChangeLog + * Source/NSXMLDocument.m + * Source/NSXMLElement.m + * Source/NSXMLNode.m: Implement copyWithZone:, correct issues + with previous revert. 2012-01-05 Richard Frith-Macdonald - * Source/NSXMLDocument.m: - * Source/NSXMLElement.m: - Replace a few lines accidentally lost. + * Source/NSXMLDocument.m: + * Source/NSXMLElement.m: + Replace a few lines accidentally lost. 2012-01-04 Richard Frith-Macdonald - * Headers/Foundation/NSXMLDocument.h: - * Headers/Foundation/NSXMLNode.h: - * Headers/Foundation/NSXMLDTD.h: - * Headers/Foundation/NSXMLDTDNode.h: - * Headers/Foundation/NSXMLElement.h: - * Source/NSXMLDocument.m: - * Source/NSXMLPrivate.h: - * Source/NSXMLDTD.m: - * Source/GSInternal.h: - * Source/NSXMLNode.m: - * Source/NSXMLDTDNode.m: - * Source/NSXMLElement.m: - The last revert still left lot's of ABI breakage, but reverting much - further would lose a lot of work ... so here's an attempt to fix the - ABI breakage by re-hiding instance variables again. + * Headers/Foundation/NSXMLDocument.h: + * Headers/Foundation/NSXMLNode.h: + * Headers/Foundation/NSXMLDTD.h: + * Headers/Foundation/NSXMLDTDNode.h: + * Headers/Foundation/NSXMLElement.h: + * Source/NSXMLDocument.m: + * Source/NSXMLPrivate.h: + * Source/NSXMLDTD.m: + * Source/GSInternal.h: + * Source/NSXMLNode.m: + * Source/NSXMLDTDNode.m: + * Source/NSXMLElement.m: + The last revert still left lot's of ABI breakage, but reverting much + further would lose a lot of work ... so here's an attempt to fix the + ABI breakage by re-hiding instance variables again. 2012-01-04 Richard Frith-Macdonald - * Source/GSMDNSNetServices.m: - * Source/NSJSONSerialization.m: - Cosmetic tweaks (whitespace) + * Source/GSMDNSNetServices.m: + * Source/NSJSONSerialization.m: + Cosmetic tweaks (whitespace) 2012-01-04 Richard Frith-Macdonald - * Source/NSXMLDocument.m: - * Source/NSXMLNode.m: - * Source/NSXMLElement.m: - * Headers/Foundation/NSXMLDocument.h: - * Headers/Foundation/NSXMLNode.h: - * Headers/Foundation/NSXMLDTD.h: - * Headers/Foundation/NSXMLElement.h: - Revert latest changes to restore scheme for preventing ABI breakage - and supporting both fragile and non-fragile ABIs.. + * Source/NSXMLDocument.m: + * Source/NSXMLNode.m: + * Source/NSXMLElement.m: + * Headers/Foundation/NSXMLDocument.h: + * Headers/Foundation/NSXMLNode.h: + * Headers/Foundation/NSXMLDTD.h: + * Headers/Foundation/NSXMLElement.h: + Revert latest changes to restore scheme for preventing ABI breakage + and supporting both fragile and non-fragile ABIs.. 2012-01-04 Fred Kiefer - * Headers/Foundation/NSXMLDocument.h, - * Headers/Foundation/NSXMLDTD.h: Comment out duplicate declaration of - ivars to get base to compile again. + * Headers/Foundation/NSXMLDocument.h, + * Headers/Foundation/NSXMLDTD.h: Comment out duplicate declaration of + ivars to get base to compile again. 2012-01-03 16:33-EST Gregory John Casamento - * Headers/Foundation/NSXMLDocument.h - * Headers/Foundation/NSXMLElement.h - * Headers/Foundation/NSXMLNode.h: Move declarations. - * Source/NSXMLDocument.m: Correct parsing issues. - * Source/NSXMLElement.m: Remove local declaration of _children - * Source/NSXMLNode.m: Remove internal. Move all declarations here - directly. + * Headers/Foundation/NSXMLDocument.h + * Headers/Foundation/NSXMLElement.h + * Headers/Foundation/NSXMLNode.h: Move declarations. + * Source/NSXMLDocument.m: Correct parsing issues. + * Source/NSXMLElement.m: Remove local declaration of _children + * Source/NSXMLNode.m: Remove internal. Move all declarations here + directly. 2012-01-03 14:22-EST Gregory John Casamento - * Source/NSXMLDocument.m: Implement XMLStringWithOptions: + * Source/NSXMLDocument.m: Implement XMLStringWithOptions: 2012-01-03 13:03-EST Gregory John Casamento - * Headers/Foundation/NSXMLElement.h - * Headers/Foundation/NSXMLNode.h - * Source/NSXMLElement.m - * Source/NSXMLNode.m: Move _URI to NSXMLNode. - change dealloc accordingly. + * Headers/Foundation/NSXMLElement.h + * Headers/Foundation/NSXMLNode.h + * Source/NSXMLElement.m + * Source/NSXMLNode.m: Move _URI to NSXMLNode. + change dealloc accordingly. 2012-01-03 12:42-EST Gregory John Casamento - * Source/NSXMLNode.m: Implement copyWithZone: + * Source/NSXMLNode.m: Implement copyWithZone: 2012-01-03 12:17-EST Gregory John Casamento - * Headers/Foundation/NSXMLNode.h: Add _stringValue - * Source/NSXMLNode.m: Change stringValue and setStringValue: - resolvingEntities: to assign to _stringValue instead of _objectValue. + * Headers/Foundation/NSXMLNode.h: Add _stringValue + * Source/NSXMLNode.m: Change stringValue and setStringValue: + resolvingEntities: to assign to _stringValue instead of _objectValue. 2012-01-03 12:06-EST Gregory John Casamento - * Source/NSXMLDocument.m: Change stack implementation to - use lastObject/removeLastObject to implement the stack instead - of inserting and deleting at index 0. - * Source/NSXMLElement.m: Implemented XMLStringWithOptions: - * Source/NSXMLNode.m: Implemented XMLStringWithOptions:, - skeletal implementation of setStringValue:resolvingEntities: + * Source/NSXMLDocument.m: Change stack implementation to + use lastObject/removeLastObject to implement the stack instead + of inserting and deleting at index 0. + * Source/NSXMLElement.m: Implemented XMLStringWithOptions: + * Source/NSXMLNode.m: Implemented XMLStringWithOptions:, + skeletal implementation of setStringValue:resolvingEntities: 2012-01-03 Fred Kiefer - * Source/NSException.m (-raise): Only set the stack when the - exception gets first raised. This fixes bug #35192 - Patch by Larry Campbell + * Source/NSException.m (-raise): Only set the stack when the + exception gets first raised. This fixes bug #35192 + Patch by Larry Campbell 2012-01-02 22:26-EST Gregory John Casamento - * Headers/Foundation/NSXMLElement.h: Change _attributes to be - a NSMutableDictionary instead of an NSMutableArray. - * Source/NSXMLElement.m: Change implementation of some methods - to use an NSMutableDictionary instead of arrays. Initialize - ivars in initializer. - * Source/NSXMLPrivate.h: Remove redundant method. + * Headers/Foundation/NSXMLElement.h: Change _attributes to be + a NSMutableDictionary instead of an NSMutableArray. + * Source/NSXMLElement.m: Change implementation of some methods + to use an NSMutableDictionary instead of arrays. Initialize + ivars in initializer. + * Source/NSXMLPrivate.h: Remove redundant method. 2012-01-02 Fred Kiefer - * Source/GSSocketStream.m (-initWithInput:output:): Attempt to - replace deprecated GNUTLS functions with newer ones for GNUTLS >= 2.12. + * Source/GSSocketStream.m (-initWithInput:output:): Attempt to + replace deprecated GNUTLS functions with newer ones for GNUTLS >= 2.12. 2012-01-02 Fred Kiefer - * Source/NSArray.m (-objectsAtIndexes:): Fix comparision of - unsigned variable with NSNotFound. + * Source/NSArray.m (-objectsAtIndexes:): Fix comparision of + unsigned variable with NSNotFound. 2012-01-02 02:26-EST Gregory John Casamento - * Source/NSXMLNode.m: Minor correction. Move setName out of - private category. - * Tests/base/NSXMLNode/children.m: Update test. + * Source/NSXMLNode.m: Minor correction. Move setName out of + private category. + * Tests/base/NSXMLNode/children.m: Update test. 2012-01-01 Fred Kiefer - * Headers/Foundation/NSXMLDTDNode.h, - * Headers/Foundation/NSXMLDTD.h: Remove duplicate declaration of - ivar _name to get base to compile again. + * Headers/Foundation/NSXMLDTDNode.h, + * Headers/Foundation/NSXMLDTD.h: Remove duplicate declaration of + ivar _name to get base to compile again. 2011-12-30 Doug Simons - * Source/NSXMLElement.m: Set Elements to be NSXMLElementKind. + * Source/NSXMLElement.m: Set Elements to be NSXMLElementKind. 2011-12-30 14:22-EST Gregory John Casamento - * Headers/Foundation/NSXMLDocument.h - * Headers/Foundation/NSXMLElement.h - * Headers/Foundation/NSXMLNode.h - * Source/NSXMLDocument.m - * Source/NSXMLElement.m - * Source/NSXMLNode.m - * Source/NSXMLPrivate.h - * Tests/base/NSXMLNode/children.m - * Tests/base/NSXMLNode/kinds.m: First cut at NSXMLDocument - implementation. + * Headers/Foundation/NSXMLDocument.h + * Headers/Foundation/NSXMLElement.h + * Headers/Foundation/NSXMLNode.h + * Source/NSXMLDocument.m + * Source/NSXMLElement.m + * Source/NSXMLNode.m + * Source/NSXMLPrivate.h + * Tests/base/NSXMLNode/children.m + * Tests/base/NSXMLNode/kinds.m: First cut at NSXMLDocument + implementation. 2011-12-29 Doug Simons - * Source/NSCalendarDate.m: Fix -addTimeInterval: to copy calendarFormat - of original date. + * Source/NSCalendarDate.m: Fix -addTimeInterval: to copy calendarFormat + of original date. 2011-12-24 Richard Frith-Macdonald - * Source/NSConnection.m: Fix retain rount error spotted by - (bug #35164) + * Source/NSConnection.m: Fix retain rount error spotted by + (bug #35164) 2011-12-23 Wolfgang Lux - * Headers/Foundation/NSTextCheckingResult.h: - * Source/NSTextCheckingResult.m (-resultByAdjustingRangesWithOffset:): - Implement method. + * Headers/Foundation/NSTextCheckingResult.h: + * Source/NSTextCheckingResult.m (-resultByAdjustingRangesWithOffset:): + Implement method. 2011-12-23 Wolfgang Lux - * Headers/Foundation/NSTextCheckingResult.h: - * Source/NSTextCheckingResult.m: Add copyright notice. + * Headers/Foundation/NSTextCheckingResult.h: + * Source/NSTextCheckingResult.m: Add copyright notice. - * Source/NSTextCheckingResult.m(-result, -range): Raise exception - in abstract base class implementation. This is what OS X does. + * Source/NSTextCheckingResult.m(-result, -range): Raise exception + in abstract base class implementation. This is what OS X does. - * Source/NSTextCheckingResult.m(-rangeAtIndex): Implement in - abstract base class. Raise exception in both method - implementations when the index is too big. + * Source/NSTextCheckingResult.m(-rangeAtIndex): Implement in + abstract base class. Raise exception in both method + implementations when the index is too big. - * Source/NSTextCheckingResult.m(-numberOfRanges): Change incorrect - name rangeCount into numberOfRanges. + * Source/NSTextCheckingResult.m(-numberOfRanges): Change incorrect + name rangeCount into numberOfRanges. - * Source/NSTextCheckingResult.m(-regularExpression): Implement - method in the concrete subclass where it was omitted. + * Source/NSTextCheckingResult.m(-regularExpression): Implement + method in the concrete subclass where it was omitted. 2011-12-23 Wolfgang Lux - * Source/NSRegularExpression.m (-rangeOfFirstMatchInString:...): - Return range (NSNotFound, 0) when no match is found. + * Source/NSRegularExpression.m (-rangeOfFirstMatchInString:...): + Return range (NSNotFound, 0) when no match is found. 2011-12-22 Wolfgang Lux - * Source/NSRegularExpression.m (-initWithPattern:options:error:, - -pattern, setupRegex, -enumerateMatchesInString:options:range:, - FAKE_BLOCK_HACK, -replaceMatchesInString:options:range:, - -stringByReplacingMatchesInString:options:range:withTemplate:, - replacementStringForResult:inString:offset:template:): Introduce - support for libicu versions prior to 4.4, which don't provide the - UText interface to regular expressions. + * Source/NSRegularExpression.m (-initWithPattern:options:error:, + -pattern, setupRegex, -enumerateMatchesInString:options:range:, + FAKE_BLOCK_HACK, -replaceMatchesInString:options:range:, + -stringByReplacingMatchesInString:options:range:withTemplate:, + replacementStringForResult:inString:offset:template:): Introduce + support for libicu versions prior to 4.4, which don't provide the + UText interface to regular expressions. 2011-12-22 Wolfgang Lux - * Source/NSSocketPort.m (+portNumber:onHost:forceAddress:listener): - Fix an uninitialized variable bug, which could lead to returning - ports with an incorrect port number. + * Source/NSSocketPort.m (+portNumber:onHost:forceAddress:listener): + Fix an uninitialized variable bug, which could lead to returning + ports with an incorrect port number. 2011-12-19 Riccardo Mottola - * Source/GSString.m: - Fix blocking compiler warning (ggc 4.5.3) + * Source/GSString.m: + Fix blocking compiler warning (ggc 4.5.3) 2011-12-17 Richard Frith-Macdonald - * configure.ac: Try to make detection of compilers which don't support - locale/characterset handling for string literals somewhat friendly. - * configure: regenerate + * configure.ac: Try to make detection of compilers which don't support + locale/characterset handling for string literals somewhat friendly. + * configure: regenerate 2011-12-17 Fred Kiefer - * Source/NSPortCoder.m (-versionForClassName:): Use NSInteger for - version to avoid compiler warning on 64-bit system. + * Source/NSPortCoder.m (-versionForClassName:): Use NSInteger for + version to avoid compiler warning on 64-bit system. 2011-12-17 Richard Frith-Macdonald - * Source/NSUserDefaults.m: - Whenever we synchronize in a state where we have changes to write, - but are in read-only mode (no database existed on startup, or we - couldn't create the lock file on startup), check to see if the - database is now writable (we can create the lock file). - Should fix problem where new defaults files were not getting created. + * Source/NSUserDefaults.m: + Whenever we synchronize in a state where we have changes to write, + but are in read-only mode (no database existed on startup, or we + couldn't create the lock file on startup), check to see if the + database is now writable (we can create the lock file). + Should fix problem where new defaults files were not getting created. 2011-12-15 Richard Frith-Macdonald - * Source/NSProcessInfo.m: - * Source/NSSocketPort.m: - * Source/NSMessagePortNameServer.m: - * Source/NSDebug.m: - * Source/NSDistributedLock.m: - * Source/GSHTTPURLHandle.m: - * Source/NSMessagePort.m: - * Source/NSFileManager.m: - * Source/NSString.m: - * Source/NSObject.m: - * Source/NSThread.m: - * Source/NSData.m: - * Source/GSNetwork.h: - * Source/GSFormat.m: - * Source/GSFileHandle.m: - * Source/NSTask.m: - * SSL/GSSSLHandle.m: - * SSL/configure.ac: - * SSL/configure: - * SSL/config.h.in: - * configure.ac: - * configure: - * Headers/GNUstepBase/config.h.in: - * Tools/gdnc.m: - Support fcntl.h and signal.h not being in the 'sys' subdirectory - (for android and any other systems with that header layout). + * Source/NSProcessInfo.m: + * Source/NSSocketPort.m: + * Source/NSMessagePortNameServer.m: + * Source/NSDebug.m: + * Source/NSDistributedLock.m: + * Source/GSHTTPURLHandle.m: + * Source/NSMessagePort.m: + * Source/NSFileManager.m: + * Source/NSString.m: + * Source/NSObject.m: + * Source/NSThread.m: + * Source/NSData.m: + * Source/GSNetwork.h: + * Source/GSFormat.m: + * Source/GSFileHandle.m: + * Source/NSTask.m: + * SSL/GSSSLHandle.m: + * SSL/configure.ac: + * SSL/configure: + * SSL/config.h.in: + * configure.ac: + * configure: + * Headers/GNUstepBase/config.h.in: + * Tools/gdnc.m: + Support fcntl.h and signal.h not being in the 'sys' subdirectory + (for android and any other systems with that header layout). 2011-12-15 Richard Frith-Macdonald - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSObjCRuntime.h: - Move a few declarations between headers to match OSX, and update - NSNotFound to be NSIntegerMax for compatibility on 64bit platforms. + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSObjCRuntime.h: + Move a few declarations between headers to match OSX, and update + NSNotFound to be NSIntegerMax for compatibility on 64bit platforms. 2011-12-13 Richard Frith-Macdonald - * SSL/GSSSLHandle.m: Allow cipher list to be set using GSCipherList - default. + * SSL/GSSSLHandle.m: Allow cipher list to be set using GSCipherList + default. 2011-12-08 Wolfgang Lux - * configure.ac: Fix pkg-config configuration for libffi to make it - really work on systems where additional include options are - needed. - * configure: Regenerated. + * configure.ac: Fix pkg-config configuration for libffi to make it + really work on systems where additional include options are + needed. + * configure: Regenerated. 2011-12-06 Richard Frith-Macdonald - * Tools/AGSParser.m: Fix suggested by Daniel Santos (ifStack was - created with incorrect initial content). + * Tools/AGSParser.m: Fix suggested by Daniel Santos (ifStack was + created with incorrect initial content). 2011-12-06 Richard Frith-Macdonald - * configure.ac: use pkg-config for libffi if/when available. - * configure: regenerate + * configure.ac: use pkg-config for libffi if/when available. + * configure: regenerate 2011-12-05 Eric Wasylishen - * Source/NSFileManager.m: - * Headers/Foundation/NSFileManager.h: Add removeItemAtPath:error: - method, as a simple wrapper around removeFileAtPath:handler: with - no handler. + * Source/NSFileManager.m: + * Headers/Foundation/NSFileManager.h: Add removeItemAtPath:error: + method, as a simple wrapper around removeFileAtPath:handler: with + no handler. 2011-12-02 Richard Frith-Macdonald - * config/config.constant-string-encoding.c: test for string literal - encoding behavior ... irrespective of source encoding we need to put - utf-8 in the executable. Can't check all cases, so just check the - most common one ... that building latin1 source in a latin1 locale - produces a utf8 string literal in the executable. - * configure.ac: add check for encoding. - * config.mak.in: specify charset for string literal in source - * base.make.in: specify charset for string literal in executable - * configure: regenerate - Check compiler behavior ... if well behaved, that's OK, no action to - take. If well behaved when given specific options to control input - and output encodings, then note the options to be used when building. - If neither, then abort with an error message giving the option of - disabling unicode string literal checks. + * config/config.constant-string-encoding.c: test for string literal + encoding behavior ... irrespective of source encoding we need to put + utf-8 in the executable. Can't check all cases, so just check the + most common one ... that building latin1 source in a latin1 locale + produces a utf8 string literal in the executable. + * configure.ac: add check for encoding. + * config.mak.in: specify charset for string literal in source + * base.make.in: specify charset for string literal in executable + * configure: regenerate + Check compiler behavior ... if well behaved, that's OK, no action to + take. If well behaved when given specific options to control input + and output encodings, then note the options to be used when building. + If neither, then abort with an error message giving the option of + disabling unicode string literal checks. 2011-11-21 Richard Frith-Macdonald - * Source/NSUserDefaults.m: rewrite to store defaults in multiple files, - one for each persistent domain. - Probably needs lots of testing and performance tuning. + * Source/NSUserDefaults.m: rewrite to store defaults in multiple files, + one for each persistent domain. + Probably needs lots of testing and performance tuning. 2011-11-18 Richard Frith-Macdonald - * Source/NSJSONSerialization.m: Fix errors in BOM handling and tidy. + * Source/NSJSONSerialization.m: Fix errors in BOM handling and tidy. 2011-11-17 Richard Frith-Macdonald - * Source/GSString.m: Fix to compile again (use ifdef to consistently - have/not-have tiny strings), and tidy use of whitespace for readability - and coding standards. - I like the experimental tiny strings idea... will definitely save - space, but will need a lot of optimisation (like that of literal - strings) to stop it being slow. - Until it's about as fast as literal strings, we should probably only - enable it on platforms where memory footprint is an issue. - Not sure how to do that though. + * Source/GSString.m: Fix to compile again (use ifdef to consistently + have/not-have tiny strings), and tidy use of whitespace for readability + and coding standards. + I like the experimental tiny strings idea... will definitely save + space, but will need a lot of optimisation (like that of literal + strings) to stop it being slow. + Until it's about as fast as literal strings, we should probably only + enable it on platforms where memory footprint is an issue. + Not sure how to do that though. 2011-11-16 20:48 theraven - * Source/GSString.m: Store tiny strings (up to 8 - ASCII characters) inside the pointer. Strings of this length are - fairly common, and this makes them very cheap to store/copy/compare - (pointer comparisons test for equality). 8 characters seems to be - enough for quite a lot of common uses, such as path components and - tokens. - There are possibly still some things constructing tiny strings and not - using these. + * Source/GSString.m: Store tiny strings (up to 8 + ASCII characters) inside the pointer. Strings of this length are + fairly common, and this makes them very cheap to store/copy/compare + (pointer comparisons test for equality). 8 characters seems to be + enough for quite a lot of common uses, such as path components and + tokens. + There are possibly still some things constructing tiny strings and not + using these. 2011-11-16 17:29 theraven - * Source/NSNumber.m: Implement the double boxing - techniques used by Smalltalk/X and Cincom Smalltalk. Now we can - conceal most doubles inside a pointer. This is most useful for - LanguageKit, but should save some memory / malloc overhead / heap - fragmentation in any code that uses a lot of NSNumbers (e.g. - anything that deals with big plists). OS X 10.7 employs a similar - trick. + * Source/NSNumber.m: Implement the double boxing + techniques used by Smalltalk/X and Cincom Smalltalk. Now we can + conceal most doubles inside a pointer. This is most useful for + LanguageKit, but should save some memory / malloc overhead / heap + fragmentation in any code that uses a lot of NSNumbers (e.g. + anything that deals with big plists). OS X 10.7 employs a similar + trick. 2011-11-15 Adam Fedor - * Source/win32/GSFileHandle.m: Fix include location + * Source/win32/GSFileHandle.m: Fix include location 2011-11-04 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Deal with old FIXME saying that whether - we create the GNUstep/Library directory should be configurable. - Also, break long lines to confiorm to coding standards and for - consistency. + * Source/NSPathUtilities.m: Deal with old FIXME saying that whether + we create the GNUstep/Library directory should be configurable. + Also, break long lines to confiorm to coding standards and for + consistency. 2011-11-09 Richard Frith-Macdonald - * Source/NSUserDefaults.m: ([-setObject:forKey:]) replace missing - return statement after removing object. + * Source/NSUserDefaults.m: ([-setObject:forKey:]) replace missing + return statement after removing object. 2011-11-07 Fred Kiefer - * Headers/Foundation/NSXMLParser.h: Turn the - NSXMLParserDelegateEventAdditions informal protocol into the - protocol NSXMLParserDelegate. + * Headers/Foundation/NSXMLParser.h: Turn the + NSXMLParserDelegateEventAdditions informal protocol into the + protocol NSXMLParserDelegate. 2011-11-07 Fred Kiefer - * Source/NSValueTransformer.m - ([NSUnarchiveFromDataTransformer-reverseTransformedValue]) - ([NSUnarchiveFromDataTransformer-transformedValue]): Use archiver - instead of keyed archiver. + * Source/NSValueTransformer.m + ([NSUnarchiveFromDataTransformer-reverseTransformedValue]) + ([NSUnarchiveFromDataTransformer-transformedValue]): Use archiver + instead of keyed archiver. 2011-11-07 Richard Frith-Macdonald - * Source/Additions/GSMime.m: ([+decodeBase64:]) tolerate missing - padding and also use of '-' and '_' rather than '+' and '/' as - permitted in the "URL and Filename safe" variation given in RFC 4648 + * Source/Additions/GSMime.m: ([+decodeBase64:]) tolerate missing + padding and also use of '-' and '_' rather than '+' and '/' as + permitted in the "URL and Filename safe" variation given in RFC 4648 2011-11-04 Richard Frith-Macdonald - * Source/NSDate.m: ([-timeIntervalSinceDate:]) return NaN if other - date is nil (OSX compatibility). + * Source/NSDate.m: ([-timeIntervalSinceDate:]) return NaN if other + date is nil (OSX compatibility). 2011-11-02 Richard Frith-Macdonald - * Source/NSNumber.m: Fix alignment error when encoding/decoding ... - buffer must be aligned so that any datatype can go in it. - * Source/cifframe.m: Fix buffer size for small scalar values on - 64bit sparc - * Source/GSFileHandle.m: Modify read/write to cope with interrupts. + * Source/NSNumber.m: Fix alignment error when encoding/decoding ... + buffer must be aligned so that any datatype can go in it. + * Source/cifframe.m: Fix buffer size for small scalar values on + 64bit sparc + * Source/GSFileHandle.m: Modify read/write to cope with interrupts. 2011-11-01 Richard Frith-Macdonald - * Source/GSString.m: Partial restructuring suggested by Fred, plus - some more minor optimisation of equality checks for literal strings. + * Source/GSString.m: Partial restructuring suggested by Fred, plus + some more minor optimisation of equality checks for literal strings. 2011-10-28 Richard Frith-Macdonald - * Source/GSString.m: Fix error (spotted by Fred) in check of UTF-8 - string length against fixed character size string length. + * Source/GSString.m: Fix error (spotted by Fred) in check of UTF-8 + string length against fixed character size string length. 2011-10-28 Richard Frith-Macdonald - * Source/GSString.m: Implement more efficient equality tests for - utf-8 literal strings and strings in internal representation. - Implement rangeOfComposedCharacterSequenceAtIndex: for utf8 literal - strings. + * Source/GSString.m: Implement more efficient equality tests for + utf-8 literal strings and strings in internal representation. + Implement rangeOfComposedCharacterSequenceAtIndex: for utf8 literal + strings. 2011-10-29 Fred Kiefer - * Source/GSeq.h: Replace unsigned with NSUInteger. + * Source/GSeq.h: Replace unsigned with NSUInteger. 2011-10-28 Richard Frith-Macdonald - * Source/NSString.m: Fix bug when widening mutable string in + * Source/NSString.m: Fix bug when widening mutable string in replaceOccurrencesOfString:...range: - * Source/GSString.m: more efficient check to see if a literal string - can be converted to ascii or latin1. Remove unnecessary constraint - on when we need to widen strings. + * Source/GSString.m: more efficient check to see if a literal string + can be converted to ascii or latin1. Remove unnecessary constraint + on when we need to widen strings. 2011-10-28 Fred Kiefer - * Tests/base/NSMutableString/basic.m: Add test for - replaceOccurrencesOfString:...range: + * Tests/base/NSMutableString/basic.m: Add test for + replaceOccurrencesOfString:...range: 2011-10-27 Richard Frith-Macdonald - * configure.ac: Do not redefine GNUSTEP_CONFIG_FILE in case it confuses - gnustep-config. Add check that gnustep-config returns something when - asked for the objc libraries. - * configure: Regenerate - * base.make.in: Add flag to tell compiler to use UTF-8 for literal - string constants. + * configure.ac: Do not redefine GNUSTEP_CONFIG_FILE in case it confuses + gnustep-config. Add check that gnustep-config returns something when + asked for the objc libraries. + * configure: Regenerate + * base.make.in: Add flag to tell compiler to use UTF-8 for literal + string constants. 2011-10-25 Richard Frith-Macdonald - * configure.ac: fix erroneous define of HAVE_GNUTLS to zero, and add - check for building with a different compiler from that used by make. + * configure.ac: fix erroneous define of HAVE_GNUTLS to zero, and add + check for building with a different compiler from that used by make. 2011-10-24 Fred Kiefer - * Source/NSAffineTransform.m (-initWithCoder:, encodeWithCoder:): - Don't do anything for the keyed coding case. - * Source/NSDictionary.m (-initWithCoder:): Add another keyed - coding case. + * Source/NSAffineTransform.m (-initWithCoder:, encodeWithCoder:): + Don't do anything for the keyed coding case. + * Source/NSDictionary.m (-initWithCoder:): Add another keyed + coding case. 2011-10-22 Fred Kiefer - * Source/NSProcessInfo.m: Add includes needed for the HAVE_PROCFS - case. - * Source/common.h: Correct last commit, the #endif was placed - incorrectly. + * Source/NSProcessInfo.m: Add includes needed for the HAVE_PROCFS + case. + * Source/common.h: Correct last commit, the #endif was placed + incorrectly. 2011-10-20 Richard Frith-Macdonald - * Source/common.h: Attempt to workaround clang __block problem + * Source/common.h: Attempt to workaround clang __block problem 2011-10-20 Richard Frith-Macdonald - * Source/NSPathUtilities.m: - Fix for bug #34603 + * Source/NSPathUtilities.m: + Fix for bug #34603 2011-10-19 Richard Frith-Macdonald - * configure.ac: fixes for gnutls detection and to use the objc - libraries provided by gnustep-config. + * configure.ac: fixes for gnutls detection and to use the objc + libraries provided by gnustep-config. 2011-10-19 Richard Frith-Macdonald - * Headers/GNUstepBase/GSFileHandle.h: remove - * Source/GSFileHandle.h: add - * Source/GNUmakefile: Don't install private header - * Source/NSFileHandle.m: - * Source/GSFileHandle.m: - * SSL/GSSSLHandle.m: - Update to make GSFileHandle.h: private as it should be. + * Headers/GNUstepBase/GSFileHandle.h: remove + * Source/GSFileHandle.h: add + * Source/GNUmakefile: Don't install private header + * Source/NSFileHandle.m: + * Source/GSFileHandle.m: + * SSL/GSSSLHandle.m: + Update to make GSFileHandle.h: private as it should be. 2011-10-19 Sebastian Reitenbach - * configure.ac: fix typo on gnutls detection. + * configure.ac: fix typo on gnutls detection. 2011-10-19 Richard Frith-Macdonald - * Source/NSPathUtilities.m: - Fix failure to load global defaults when system layout/config is - locked down (problem reported by Julian Mayer). + * Source/NSPathUtilities.m: + Fix failure to load global defaults when system layout/config is + locked down (problem reported by Julian Mayer). 2011-10-18 Richard Frith-Macdonald - * standalone.conf: example configuration file for a standalone - package installation. - * Documentation/Base.gsdoc: - Documentation improvements for packaging + * standalone.conf: example configuration file for a standalone + package installation. + * Documentation/Base.gsdoc: + Documentation improvements for packaging 2011-10-17 Richard Frith-Macdonald - * configure.ac: Make sourcing of default config file more reliable. - * configure: regenerate. + * configure.ac: Make sourcing of default config file more reliable. + * configure: regenerate. 2011-10-17 Richard Frith-Macdonald - * Source/NSBundle.m: - * Source/NSPropertyList.m: - * Source/NSFileHandle.m: - * Source/NSString.m: - * Source/DocMakefile: - * Documentation/Base.gsdoc: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSBundle.h: - Documentation cleanups. + * Source/NSBundle.m: + * Source/NSPropertyList.m: + * Source/NSFileHandle.m: + * Source/NSString.m: + * Source/DocMakefile: + * Documentation/Base.gsdoc: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSBundle.h: + Documentation cleanups. 2011-10-17 Quentin Mathe - * Headers/Foundation/NSXMLNode.h: - * Source/NSXMLNode.m: - Fixed NSXMLNode compilation when using the "pure" non-fragile ABI - (--disable-mixedabi was passed to Base configure). + * Headers/Foundation/NSXMLNode.h: + * Source/NSXMLNode.m: + Fixed NSXMLNode compilation when using the "pure" non-fragile ABI + (--disable-mixedabi was passed to Base configure). 2011-10-17 Fred Kiefer - * Source/NSString.m (-initWithCoder:): In keyed coding the key - "NS.bytes" may contain either an NSData or an NSString object. Not - sure about the encoding, I am using UTF8. + * Source/NSString.m (-initWithCoder:): In keyed coding the key + "NS.bytes" may contain either an NSData or an NSString object. Not + sure about the encoding, I am using UTF8. 2011-10-17 Richard Frith-Macdonald - * standalone.conf: First draft at a layout for standalone system - deployment. + * standalone.conf: First draft at a layout for standalone system + deployment. 2011-10-15 Richard Frith-Macdonald - * Source/common.h: Added Quentin's fix to get Clang to compile this - without warnings. + * Source/common.h: Added Quentin's fix to get Clang to compile this + without warnings. 2011-10-15 Richard Frith-Macdonald - * Source/ObjectiveC2/NSBlocks.m: - * Source/Additions/GSObjCRuntime.m: - Fixes to build with latest gcc. + * Source/ObjectiveC2/NSBlocks.m: + * Source/Additions/GSObjCRuntime.m: + Fixes to build with latest gcc. 2011-10-15 Gregory Casamento - * Documentation/GNUmakefile: - * Documentation/README.initialize: Documentation referred to by - NSThread warning. + * Documentation/GNUmakefile: + * Documentation/README.initialize: Documentation referred to by + NSThread warning. 2011-10-15 Richard Frith-Macdonald - * config.mak.in: - Shift the responsibility for setting up macros controlling thread - safety to gnustep-make, and use the compiler -pthread option there. + * config.mak.in: + Shift the responsibility for setting up macros controlling thread + safety to gnustep-make, and use the compiler -pthread option there. 2011-10-15 Richard Frith-Macdonald - * Source/unix/Makefile.preamble: - * Source/win32/Makefile.preamble: - * Source/ObjectiveC2/Makefile.preamble: - * Source/Additions/Makefile.preamble: - * Source/Makefile.preamble: - * config.mak.in: - It seems various BSD operating systems have bugs in their _XOPEN_SOURCE - implementation, so we can't generally use it. Try _POSIX_C_SOURCE - instead. + * Source/unix/Makefile.preamble: + * Source/win32/Makefile.preamble: + * Source/ObjectiveC2/Makefile.preamble: + * Source/Additions/Makefile.preamble: + * Source/Makefile.preamble: + * config.mak.in: + It seems various BSD operating systems have bugs in their _XOPEN_SOURCE + implementation, so we can't generally use it. Try _POSIX_C_SOURCE + instead. 2011-10-14 Richard Frith-Macdonald - * Source/unix/Makefile.preamble: - * Source/win32/Makefile.preamble: - * Source/ObjectiveC2/Makefile.preamble: - * Source/Additions/Makefile.preamble: - * Source/Makefile.preamble: - Define _REENTRANT as well as _XOPEN_SOURCE for maximum portability. + * Source/unix/Makefile.preamble: + * Source/win32/Makefile.preamble: + * Source/ObjectiveC2/Makefile.preamble: + * Source/Additions/Makefile.preamble: + * Source/Makefile.preamble: + Define _REENTRANT as well as _XOPEN_SOURCE for maximum portability. 2011-10-14 Richard Frith-Macdonald - * Source/NSBundle.m: - * Source/NSPathUtilities.m: - * Source/NSProcessInfo.m: - * Source/NSSocketPort.m: - * Source/NSRunLoop.m: - * Source/NSMessagePortNameServer.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/unix/NSStream.m: - * Source/GSHTTPURLHandle.m: - * Source/NSPage.m: - * Source/NSMessagePort.m: - * Source/win32/GSFileHandle.m: - * Source/NSInvocation.m: - * Source/NSFileManager.m: - * Source/common.h: - * Source/NSString.m: - * Source/NSThread.m: - * Source/NSData.m: - * Source/NSHost.m: - * Source/GSNetwork.h: - * Source/NSPipe.m: - * Source/NSLog.m: - * Source/GSFormat.m: - * Source/GSFileHandle.m: - * Source/NSTask.m: - * SSL/GSSSLHandle.m: - * Tools/gdnc.m: - Move/wrap include of unistd.h to work around clang problem. + * Source/NSBundle.m: + * Source/NSPathUtilities.m: + * Source/NSProcessInfo.m: + * Source/NSSocketPort.m: + * Source/NSRunLoop.m: + * Source/NSMessagePortNameServer.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/unix/NSStream.m: + * Source/GSHTTPURLHandle.m: + * Source/NSPage.m: + * Source/NSMessagePort.m: + * Source/win32/GSFileHandle.m: + * Source/NSInvocation.m: + * Source/NSFileManager.m: + * Source/common.h: + * Source/NSString.m: + * Source/NSThread.m: + * Source/NSData.m: + * Source/NSHost.m: + * Source/GSNetwork.h: + * Source/NSPipe.m: + * Source/NSLog.m: + * Source/GSFormat.m: + * Source/GSFileHandle.m: + * Source/NSTask.m: + * SSL/GSSSLHandle.m: + * Tools/gdnc.m: + Move/wrap include of unistd.h to work around clang problem. 2011-10-14 Richard Frith-Macdonald - * Source/Additions/Unicode.m: - Fix test for availability of lossy conversion via iconv. + * Source/Additions/Unicode.m: + Fix test for availability of lossy conversion via iconv. 2011-10-14 Richard Frith-Macdonald - * Source/GSString.m: Implement -hash for literal UTF-8 performance. - * Source/NSScanner.m: Fix initialisation bug which could cause - scanning to fail on some strings. - * Source/inet_pton.m: - * Source/NSProcessInfo.m: - * Source/NSSocketPort.m: - * Source/NSUserDefaults.m: - * Source/unix/NSStream.m: - * Source/inet_ntop.m: - * Source/GSHTTPURLHandle.m: - * Source/NSMessagePort.m: - * Source/GSPrivate.h: - * Source/win32/GSFileHandle.m: - * Source/win32/NSMessagePort.m: - * Source/win32/NSMessagePortNameServer.m: - * Source/NSFileManager.m: - * Source/Additions/Unicode.m: - * Source/Additions/NSError+GNUstepBase.m: - * Source/NSThread.m: - * Source/GSNetwork.h: - * Source/GSFileHandle.m: - * Source/NSLock.m: - * Source/Makefile.preamble: - Fix for thread-safe errno on solaris ... define _XOPEN_SOURCE to 600 + * Source/GSString.m: Implement -hash for literal UTF-8 performance. + * Source/NSScanner.m: Fix initialisation bug which could cause + scanning to fail on some strings. + * Source/inet_pton.m: + * Source/NSProcessInfo.m: + * Source/NSSocketPort.m: + * Source/NSUserDefaults.m: + * Source/unix/NSStream.m: + * Source/inet_ntop.m: + * Source/GSHTTPURLHandle.m: + * Source/NSMessagePort.m: + * Source/GSPrivate.h: + * Source/win32/GSFileHandle.m: + * Source/win32/NSMessagePort.m: + * Source/win32/NSMessagePortNameServer.m: + * Source/NSFileManager.m: + * Source/Additions/Unicode.m: + * Source/Additions/NSError+GNUstepBase.m: + * Source/NSThread.m: + * Source/GSNetwork.h: + * Source/GSFileHandle.m: + * Source/NSLock.m: + * Source/Makefile.preamble: + Fix for thread-safe errno on solaris ... define _XOPEN_SOURCE to 600 2011-10-12 Richard Frith-Macdonald - * Source/GSPrivate.h: - * Source/NSString.m: - * Source/GSString.m: Use UTF-8 literal constant strings now that we - require a compiler version which supports them. - * Tests/base/NSString/test07.m: Simple test for UTF-8 in literal. - * Tests/base/GNUmakefile.super: Ensure all tests are compiled with - UTF-8 set as the source code characterset. - Shuld fix bug #34486 + * Source/GSPrivate.h: + * Source/NSString.m: + * Source/GSString.m: Use UTF-8 literal constant strings now that we + require a compiler version which supports them. + * Tests/base/NSString/test07.m: Simple test for UTF-8 in literal. + * Tests/base/GNUmakefile.super: Ensure all tests are compiled with + UTF-8 set as the source code characterset. + Shuld fix bug #34486 2011-10-11 Richard Frith-Macdonald - * Source/NSString.m: Fix boundary error when getting cString into a - buffer. Fix floatValue and doubleValue to support arbitrary length - of leading white space. - * Source/GSNetwork.h: Check for EAGAIN on nonblocking socket. + * Source/NSString.m: Fix boundary error when getting cString into a + buffer. Fix floatValue and doubleValue to support arbitrary length + of leading white space. + * Source/GSNetwork.h: Check for EAGAIN on nonblocking socket. 2011-10-08 Niels Grewe - * Source/Additions/GSMime.m (GSMimeParser -scanToken:): Return an empty - string instead of nil when parsing an empty quoted string. + * Source/Additions/GSMime.m (GSMimeParser -scanToken:): Return an empty + string instead of nil when parsing an empty quoted string. 2011-10-08 Richard Frith-Macdonald - * Source/GSFileHandle.m: - * Source/GSNetwork.h: - * Source/GSSocketStream.m: - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - * Source/NSURLProtocol.m: - Check for EALREADY as well as EINPROGRESS as an indicator of an - incomplete system call on a non-blocking descriptor. + * Source/GSFileHandle.m: + * Source/GSNetwork.h: + * Source/GSSocketStream.m: + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + * Source/NSURLProtocol.m: + Check for EALREADY as well as EINPROGRESS as an indicator of an + incomplete system call on a non-blocking descriptor. 2011-10-07 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: - Be aggressive about checking for close n the 'connection' header - and shutting down the network connection immediately. + * Source/GSHTTPURLHandle.m: + Be aggressive about checking for close n the 'connection' header + and shutting down the network connection immediately. 2011-10-07 Richard Frith-Macdonald - * Source/NSURLProtocol.m: - * Source/NSURLConnection.m: - Ensure that a synchronous load returns the response. - * Tests/base/NSURLConnection/basic.m: add test for above change. + * Source/NSURLProtocol.m: + * Source/NSURLConnection.m: + Ensure that a synchronous load returns the response. + * Tests/base/NSURLConnection/basic.m: add test for above change. 2011-10-04 Richard Frith-Macdonald - * Headers/Foundation/NSURL.h: Document that methods creating file URLs - raise an exception on being given a nil argument. - * Source/NSURL.m: Make file URL initialisers raise on nil argument. - * Source/NSBundle.m: Fix to check for nil path when reating file - URLs (fix for bug #34468). + * Headers/Foundation/NSURL.h: Document that methods creating file URLs + raise an exception on being given a nil argument. + * Source/NSURL.m: Make file URL initialisers raise on nil argument. + * Source/NSBundle.m: Fix to check for nil path when reating file + URLs (fix for bug #34468). 2011-10-03 Fred Kiefer - * Source/NSPropertyList.m (GSBinaryPLParser -objectAtIndex:): Use - long long for all integer types. Before we used signed types which - resulted wrong values for negative integers. - * Source/NSKeyedUnarchiver.m (-_decodeObject:): Handle the string - "$null" as nil all the times. + * Source/NSPropertyList.m (GSBinaryPLParser -objectAtIndex:): Use + long long for all integer types. Before we used signed types which + resulted wrong values for negative integers. + * Source/NSKeyedUnarchiver.m (-_decodeObject:): Handle the string + "$null" as nil all the times. 2011-10-03 Richard Frith-Macdonald - * Source/NSHost.m: Update to use inet_pton() and inet_ntop() and to - understand IPV6 addresses. - * Source/GSNetwork.h: New private functions to work with the internals - of a sockaddr irrespective of whether it's IP v4 or v6 - * Source/GSSocketStream.h: Move a declaration to GSNetwork.h - * Source/GSSocketStream.m: Use new functions. - * Source/NSSocketPort.m: Change to be IP v4/v6 agnostic - * Source/NSMessagePort.m: Fix header include order. - * Source/GSFileHandle.m: Changes to be IP v4/v6 agnostic - * Headers/GNUstepBase/GSFileHandle.h: make setter use sockaddr type - rather than sockaddr_in so we can use it for ipv6 + * Source/NSHost.m: Update to use inet_pton() and inet_ntop() and to + understand IPV6 addresses. + * Source/GSNetwork.h: New private functions to work with the internals + of a sockaddr irrespective of whether it's IP v4 or v6 + * Source/GSSocketStream.h: Move a declaration to GSNetwork.h + * Source/GSSocketStream.m: Use new functions. + * Source/NSSocketPort.m: Change to be IP v4/v6 agnostic + * Source/NSMessagePort.m: Fix header include order. + * Source/GSFileHandle.m: Changes to be IP v4/v6 agnostic + * Headers/GNUstepBase/GSFileHandle.h: make setter use sockaddr type + rather than sockaddr_in so we can use it for ipv6 2011-10-03 Fred Kiefer - * Source/NSData.m (-initWithCoder:, -encodeWithCoder): Correct - keyed encoding/decoding. + * Source/NSData.m (-initWithCoder:, -encodeWithCoder): Correct + keyed encoding/decoding. 2011-10-02 Richard Frith-Macdonald - * Headers/Foundation/NSFileManager.h - * Source/NSFileManager.m - * Tests/base/NSFileManager/general.m - * Headers/Foundation/NSUserDefaults.h - * Source/NSUserDefaults.m - * Tests/base/NSUserDefaults/basic.m - Add a few newer OSX methods for compatibility. + * Headers/Foundation/NSFileManager.h + * Source/NSFileManager.m + * Tests/base/NSFileManager/general.m + * Headers/Foundation/NSUserDefaults.h + * Source/NSUserDefaults.m + * Tests/base/NSUserDefaults/basic.m + Add a few newer OSX methods for compatibility. 2011-10-01 Niels Grewe * Source/NSXMLNode.m: Properly implement -initWithKind: initializer. Stub out some tree traversal stuff. - * Tests/base/NSXMLNode/basic.m: Fix test. + * Tests/base/NSXMLNode/basic.m: Fix test. - Initial work on NSXMLNode. + Initial work on NSXMLNode. 2011-10-01 Niels Grewe - * Tests/base/NSXMLNode/children.m: Test for child de-/re-attachment - behaviour. + * Tests/base/NSXMLNode/children.m: Test for child de-/re-attachment + behaviour. 2011-09-29 julian - * Source/NSBundle.m: ([objectForInfoDictionaryKey:]) - Add missing one-line implementation. + * Source/NSBundle.m: ([objectForInfoDictionaryKey:]) + Add missing one-line implementation. 2011-09-29 Richard Frith-Macdonald - * Source/NSNumberFormatter.m: Check for _C_BOOL definition. + * Source/NSNumberFormatter.m: Check for _C_BOOL definition. 2011-09-07 Eric Wasylishen - * Source/NSUserDefaults.m: - - Refactoring of the code to read the system language list - into a separate function, systemLanguages(). - - Add support for the LANGUAGE environment variable, a GNU extension. - It holds a colon-separated list of locales, and is intended to let - the user specify a list of their preferred languages in order. - For example, the language settings GUI in Ubuntu modifies the - LANGUAGE variable. - - More info here: - http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable - - When populating NSLanguages, "expand" locales into a list of - related variants, formed by stripping off region suffixes. This - ensures that if a user's environment is set to a regional version - of a language (say CanadaFrench) but an application is only - traslated into French, the plain French translation will still be used. - - e.g. if the system locales are {fr_CA, en_CA}, expand the list to - {fr_CA, fr, en_CA, en}. - * Headers/GNUstepBase/GSLocale.h: - * Source/GSLocale.m: - New functions GSLocaleVariants and GSLanguagesFromLocale + * Source/NSUserDefaults.m: + - Refactoring of the code to read the system language list + into a separate function, systemLanguages(). + - Add support for the LANGUAGE environment variable, a GNU extension. + It holds a colon-separated list of locales, and is intended to let + the user specify a list of their preferred languages in order. + For example, the language settings GUI in Ubuntu modifies the + LANGUAGE variable. + + More info here: + http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable + - When populating NSLanguages, "expand" locales into a list of + related variants, formed by stripping off region suffixes. This + ensures that if a user's environment is set to a regional version + of a language (say CanadaFrench) but an application is only + traslated into French, the plain French translation will still be used. + + e.g. if the system locales are {fr_CA, en_CA}, expand the list to + {fr_CA, fr, en_CA, en}. + * Headers/GNUstepBase/GSLocale.h: + * Source/GSLocale.m: + New functions GSLocaleVariants and GSLanguagesFromLocale 2011-09-28 Niels Grewe - * Tests/base/NSXMLNode/*: Some initial tests for NSXMLNode. Passes on - Mac OS X, marked as hopes until GNUstep implements this. + * Tests/base/NSXMLNode/*: Some initial tests for NSXMLNode. Passes on + Mac OS X, marked as hopes until GNUstep implements this. 2011-09-19 Richard Frith-Macdonald - * Version: Bump version and set required gcc to 4.0.0 + * Version: Bump version and set required gcc to 4.0.0 2011-09-18 Richard Frith-Macdonald - * Documentation/news.texi: - * Documentation/ReleaseNotes.gsdoc: - Update release notes for ... - Version 1.23.0 + * Documentation/news.texi: + * Documentation/ReleaseNotes.gsdoc: + Update release notes for ... + Version 1.23.0 2011-09-12 Richard Frith-Macdonald - * Source/NSConnection.m: When getting the local type information for - comparison with that supplied by the remote system, do so by sending - -methodSignatureForSelector: to the receiver of the message. + * Source/NSConnection.m: When getting the local type information for + comparison with that supplied by the remote system, do so by sending + -methodSignatureForSelector: to the receiver of the message. 2011-09-07 Richard Frith-Macdonald - * Source/GSFFIInvocation.m: Check that we have a typed selector - during invocation (copy types from method signature if necessary) - so that forwarding won't fail if the runtime does a callback to - us without providing the receiver for us to check ... workaround - for proxying issues with very old runtimes. + * Source/GSFFIInvocation.m: Check that we have a typed selector + during invocation (copy types from method signature if necessary) + so that forwarding won't fail if the runtime does a callback to + us without providing the receiver for us to check ... workaround + for proxying issues with very old runtimes. 2011-08-27 Richard Frith-Macdonald - * Source/NSLock.m: Fix bug #34154 ... logic error locking before date. + * Source/NSLock.m: Fix bug #34154 ... logic error locking before date. 2011-08-26 Richard Frith-Macdonald - * libs/base/trunk/config/config.objc.m: If we don't assume Object + * libs/base/trunk/config/config.objc.m: If we don't assume Object exists in libobjc, we must implement +initialize so that the runtime won't crash when it tries to initialize our class. 2011-08-25 Fred Kiefer - * Tests/base/NSObject/test01.m: Only test for -isClass on GNUstep base. - * Tests/base/NSObject/initialize.m: Make test compile on MinGW. + * Tests/base/NSObject/test01.m: Only test for -isClass on GNUstep base. + * Tests/base/NSObject/initialize.m: Make test compile on MinGW. 2011-08-22 Fred Kiefer - * Source/NSObject.m (__builtin_offsetof): Add - workaround for build in missing in old versions of gcc. + * Source/NSObject.m (__builtin_offsetof): Add + workaround for build in missing in old versions of gcc. 2011-08-20 Fred Kiefer - * Source/Additions/GSMime.m, - * Source/unix/NSStream.m, - * Source/NSData.m, - * Source/NSDistantObject.m, - * Source/NSInvocation.m, - * Source/NSMessagePort.m, - * Source/NSNumber.m, - * Source/NSSocketPort.m, - * Source/NSURLProtocol.m, - * Tools/autogsdoc.m: - Temporary revert David's change to use PRIxPTR, PRIuPTR and - PRIdPTR. Old compilers don't handled these well. (That change - didn't have a ChangeLog entry) + * Source/Additions/GSMime.m, + * Source/unix/NSStream.m, + * Source/NSData.m, + * Source/NSDistantObject.m, + * Source/NSInvocation.m, + * Source/NSMessagePort.m, + * Source/NSNumber.m, + * Source/NSSocketPort.m, + * Source/NSURLProtocol.m, + * Tools/autogsdoc.m: + Temporary revert David's change to use PRIxPTR, PRIuPTR and + PRIdPTR. Old compilers don't handled these well. (That change + didn't have a ChangeLog entry) 2011-08-17 Fred Kiefer - * Source/Additions/GSMime.m: Use specific IMP type for method - returning BOOL value. + * Source/Additions/GSMime.m: Use specific IMP type for method + returning BOOL value. 2011-08-17 Niels Grewe - * config/objc-common.h: Include stdlib.h for the prototype of calloc(). + * config/objc-common.h: Include stdlib.h for the prototype of calloc(). 2011-08-17 Riccardo Mottola - * Headers/GSIMap.h - Additional cast to void* to keep OpenBSD compiler happy. + * Headers/GSIMap.h + Additional cast to void* to keep OpenBSD compiler happy. 2011-08-15 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - Redo fix for incorrect handling of documents with empty headers. + * Source/Additions/GSMime.m: + Redo fix for incorrect handling of documents with empty headers. 2011-08-14 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - Revert attempted fix for header end parsing error. + * Source/Additions/GSMime.m: + Revert attempted fix for header end parsing error. 2011-08-06 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - Attempt fix for recording of excess data in the case where we are - parsing mime headers only and the headers are incomplete. + * Source/Additions/GSMime.m: + Attempt fix for recording of excess data in the case where we are + parsing mime headers only and the headers are incomplete. 2011-08-13 15:28 David Chisnall - * libs/base/trunk/Source/NSBundle.m, - libs/base/trunk/Source/NSDateFormatter.m, - libs/base/trunk/Source/NSLocale.m, - libs/base/trunk/Source/NSNumberFormatter.m, - libs/base/trunk/Source/NSRegularExpression.m: Fix the build with - the pure non-fragile ABI by declaring macros before using them. + * libs/base/trunk/Source/NSBundle.m, + libs/base/trunk/Source/NSDateFormatter.m, + libs/base/trunk/Source/NSLocale.m, + libs/base/trunk/Source/NSNumberFormatter.m, + libs/base/trunk/Source/NSRegularExpression.m: Fix the build with + the pure non-fragile ABI by declaring macros before using them. 2011-08-13 13:28 David Chisnall - * libs/base/trunk/config/config.objc.m: Don't assume Object exists - in libobjc. + * libs/base/trunk/config/config.objc.m: Don't assume Object exists + in libobjc. 2011-08-11 Fred Kiefer - * Source/NSAffineTransform.m (-appendTransform:) - (-prependTransform:): Fix bug in optimisation code by using a - local variable. + * Source/NSAffineTransform.m (-appendTransform:) + (-prependTransform:): Fix bug in optimisation code by using a + local variable. 2011-08-09 08:43 David Chisnall - * libs/base/trunk/Source/NSConcreteHashTable.m, - libs/base/trunk/Source/NSConcreteMapTable.m: Replace the - implementations of NSFastEnumeration in NSConcrete{Hash,Map}Table - with ones that work and don't cause people to dereference - pointers that are set to random integer values. + * libs/base/trunk/Source/NSConcreteHashTable.m, + libs/base/trunk/Source/NSConcreteMapTable.m: Replace the + implementations of NSFastEnumeration in NSConcrete{Hash,Map}Table + with ones that work and don't cause people to dereference + pointers that are set to random integer values. 2011-08-07 18:00 David Chisnall - * libs/base/trunk/Source/NSObject.m: In -finalize, we're pretending - to be the Objective-C runtime, so we need to - actually use isa directly, rather than the safe version. A better - solution - would be to call object_dispose(), but this only works for - objects created with - class_createInstance(). + * libs/base/trunk/Source/NSObject.m: In -finalize, we're pretending + to be the Objective-C runtime, so we need to + actually use isa directly, rather than the safe version. A better + solution + would be to call object_dispose(), but this only works for + objects created with + class_createInstance(). 2011-08-07 16:56 David Chisnall - * libs/base/trunk/Source/NSObject.m: When calling -.cxx_dealloc, - look up the superclass before calling. This method - may destroy the receiver's class, if it's a user-generated one, - so we can't - guarantee that it is valid after the call. + * libs/base/trunk/Source/NSObject.m: When calling -.cxx_dealloc, + look up the superclass before calling. This method + may destroy the receiver's class, if it's a user-generated one, + so we can't + guarantee that it is valid after the call. 2011-08-05 17:34 David Chisnall - * libs/base/trunk/Source/NSNumber.m: Bracket the runtime.h include - in a check. + * libs/base/trunk/Source/NSNumber.m: Bracket the runtime.h include + in a check. 2011-08-03 12:04 David Chisnall - * libs/base/trunk/Headers/Foundation/NSRegularExpression.h, - libs/base/trunk/Source/NSRegularExpression.m, - libs/base/trunk/Source/NSString.m, - libs/base/trunk/Tests/base/NSString/regex.m: Clean up - NSRegularExpression, so that it compiles without warnings with or - without ICU, but we don't pretend that we support things that we - don't and silently return nonsense results to make debugging - difficult for GNUstep users. + * libs/base/trunk/Headers/Foundation/NSRegularExpression.h, + libs/base/trunk/Source/NSRegularExpression.m, + libs/base/trunk/Source/NSString.m, + libs/base/trunk/Tests/base/NSString/regex.m: Clean up + NSRegularExpression, so that it compiles without warnings with or + without ICU, but we don't pretend that we support things that we + don't and silently return nonsense results to make debugging + difficult for GNUstep users. 2011-08-03 Fred Kiefer - * Tests/base/NSMutableData/general.m - * Tests/base/NSData/general.m - * Tests/base/NSFileManager/unrepresentable_filenames.m - * Tests/base/NSDate/create.m - * Tests/base/GSMime/test01.m - * Tests/base/Functions/runtime.m - * Tests/base/NSInvocation/general.m - * Tests/base/KVC/mutable.m - * Tests/base/KVC/path.m - * Tests/base/KVC/array.m - * Tests/base/NSMapTable/create.m - * Tests/base/NSHashTable/create.m - * Tests/base/GenericTests/generic.m - * Tests/base/NSBundle/resources.m: Remove warnings generated by tests. + * Tests/base/NSMutableData/general.m + * Tests/base/NSData/general.m + * Tests/base/NSFileManager/unrepresentable_filenames.m + * Tests/base/NSDate/create.m + * Tests/base/GSMime/test01.m + * Tests/base/Functions/runtime.m + * Tests/base/NSInvocation/general.m + * Tests/base/KVC/mutable.m + * Tests/base/KVC/path.m + * Tests/base/KVC/array.m + * Tests/base/NSMapTable/create.m + * Tests/base/NSHashTable/create.m + * Tests/base/GenericTests/generic.m + * Tests/base/NSBundle/resources.m: Remove warnings generated by tests. 2011-08-02 Fred Kiefer - * Tests/base/NSJSONSerialization/json.m: Get it compile without - C99. - * Tests/base/NSString/regex.m: Use an autorelease pool. + * Tests/base/NSJSONSerialization/json.m: Get it compile without + C99. + * Tests/base/NSString/regex.m: Use an autorelease pool. 2011-08-02 Fred Kiefer - * Source/NSThread.m (GSCurrentThread): Use C string in assert, not - ObjC string. - * Headers/Foundation/NSRegularExpression.h: Add the pattern as ivar. - * Source/NSRegularExpression.m: Rewrite to compile with less - warnings on systems not supporting ICU. + * Source/NSThread.m (GSCurrentThread): Use C string in assert, not + ObjC string. + * Headers/Foundation/NSRegularExpression.h: Add the pattern as ivar. + * Source/NSRegularExpression.m: Rewrite to compile with less + warnings on systems not supporting ICU. 2011-07-31 16:19 David Chisnall - * libs/base/trunk/Headers/Foundation/NSObject.h: Remove the - duplicate definition of the NSObject protocol methods in the - NSObject class (redundant since they are implicitly added by the - class adopting - the protocol, and stupid because there was already one - copy-and-paste error - where they differed slightly). Also replaced all of the - references to - nonexistent documentation with actual documentation. + * libs/base/trunk/Headers/Foundation/NSObject.h: Remove the + duplicate definition of the NSObject protocol methods in the + NSObject class (redundant since they are implicitly added by the + class adopting + the protocol, and stupid because there was already one + copy-and-paste error + where they differed slightly). Also replaced all of the + references to + nonexistent documentation with actual documentation. 2011-07-31 15:31 David Chisnall - * libs/base/trunk/Headers/Foundation/NSAutoreleasePool.h, - libs/base/trunk/Headers/Foundation/NSException.h, - libs/base/trunk/Headers/Foundation/NSObjCRuntime.h, - libs/base/trunk/Headers/Foundation/NSObject.h, - libs/base/trunk/Source/GSArray.m, - libs/base/trunk/Source/GSBlocks.m, - libs/base/trunk/Source/GSString.m, - libs/base/trunk/Source/NSBundle.m, - libs/base/trunk/Source/NSConnection.m, - libs/base/trunk/Source/NSDate.m, - libs/base/trunk/Source/NSIndexPath.m, - libs/base/trunk/Source/NSMessagePort.m, - libs/base/trunk/Source/NSNull.m, - libs/base/trunk/Source/NSNumber.m, - libs/base/trunk/Source/NSPort.m, - libs/base/trunk/Source/NSSocketPort.m, - libs/base/trunk/Source/NSTimeZone.m, - libs/base/trunk/Source/NSURLProtocol.m, - libs/base/trunk/Source/NSValue.m: Cleanup: - - (void)release; - to - - (oneway void)release; - so everything implementing -release actually implements the one - declared in the NSObject protocol. - - Start marking things that are unavailable in ARC mode as - unavailable in ARC mode. + * libs/base/trunk/Headers/Foundation/NSAutoreleasePool.h, + libs/base/trunk/Headers/Foundation/NSException.h, + libs/base/trunk/Headers/Foundation/NSObjCRuntime.h, + libs/base/trunk/Headers/Foundation/NSObject.h, + libs/base/trunk/Source/GSArray.m, + libs/base/trunk/Source/GSBlocks.m, + libs/base/trunk/Source/GSString.m, + libs/base/trunk/Source/NSBundle.m, + libs/base/trunk/Source/NSConnection.m, + libs/base/trunk/Source/NSDate.m, + libs/base/trunk/Source/NSIndexPath.m, + libs/base/trunk/Source/NSMessagePort.m, + libs/base/trunk/Source/NSNull.m, + libs/base/trunk/Source/NSNumber.m, + libs/base/trunk/Source/NSPort.m, + libs/base/trunk/Source/NSSocketPort.m, + libs/base/trunk/Source/NSTimeZone.m, + libs/base/trunk/Source/NSURLProtocol.m, + libs/base/trunk/Source/NSValue.m: Cleanup: + - (void)release; + to + - (oneway void)release; + so everything implementing -release actually implements the one + declared in the NSObject protocol. + + Start marking things that are unavailable in ARC mode as + unavailable in ARC mode. 2011-07-26 David Chisnall - * Source/NSObject.m: - Change the order of the retain count and the padding, so the retain count - is always the word before isa. + * Source/NSObject.m: + Change the order of the retain count and the padding, so the retain count + is always the word before isa. - Switch to using the correct kind of alignof (the ABI alignment in - structures, not the preferred alignment of the type - this stops us from - allocating 4 bytes of padding on x86-32 where there is no need for any) + Switch to using the correct kind of alignof (the ABI alignment in + structures, not the preferred alignment of the type - this stops us from + allocating 4 bytes of padding on x86-32 where there is no need for any) - * Source/NSNumber.m: - Use the small object support in libobjc2 trunk for 31 / 61-bit signed - NSNumbers on 32 / 64-bit platforms respectively. Still to do: add an - NSSmallFloat equivalent for 64-bit platforms, storing a float. + * Source/NSNumber.m: + Use the small object support in libobjc2 trunk for 31 / 61-bit signed + NSNumbers on 32 / 64-bit platforms respectively. Still to do: add an + NSSmallFloat equivalent for 64-bit platforms, storing a float. 2011-07-26 Quentin Mathe - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSProxy.h: - * Source/NSProxy.m: - Fixed missing oneway qualifier on -release return type. Recent Clang - trunk complains about it. + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSProxy.h: + * Source/NSProxy.m: + Fixed missing oneway qualifier on -release return type. Recent Clang + trunk complains about it. 2011-07-25 Fred Kiefer - * Source/NSJSONSerialization.m: Get this file to compile with - standard gcc settings fro GNUstep. + * Source/NSJSONSerialization.m: Get this file to compile with + standard gcc settings fro GNUstep. 2011-07-25 15:50 David Chisnall - * libs/base/trunk/Headers/Foundation/Foundation.h, - libs/base/trunk/Headers/Foundation/NSJSONSerialization.h, - libs/base/trunk/Source/GNUmakefile, - libs/base/trunk/Source/NSJSONSerialization.m, - libs/base/trunk/Tests/base/NSJSONSerialization, - libs/base/trunk/Tests/base/NSJSONSerialization/TestInfo, - libs/base/trunk/Tests/base/NSJSONSerialization/json.m: Added - NSJSONSerialization (10.7) implementation. The code path reading - from an NSInputStream is not well tested - please try and break - it! + * libs/base/trunk/Headers/Foundation/Foundation.h, + libs/base/trunk/Headers/Foundation/NSJSONSerialization.h, + libs/base/trunk/Source/GNUmakefile, + libs/base/trunk/Source/NSJSONSerialization.m, + libs/base/trunk/Tests/base/NSJSONSerialization, + libs/base/trunk/Tests/base/NSJSONSerialization/TestInfo, + libs/base/trunk/Tests/base/NSJSONSerialization/json.m: Added + NSJSONSerialization (10.7) implementation. The code path reading + from an NSInputStream is not well tested - please try and break + it! 2011-07-25 Fred Kiefer - * libs/base/trunk/Headers/GNUstepBase/GSIMap.h - (GSIMapAddKeyNoRetain): Correct previous change. + * libs/base/trunk/Headers/GNUstepBase/GSIMap.h + (GSIMapAddKeyNoRetain): Correct previous change. 2011-07-24 Fred Kiefer - * Source/NSAssertionHandler.m, - * Headers/GNUstepBase/GSConfig.h.in: Clean up after last commit. - * Headers/GNUstepBase/preface.h.in: Remove this obsolete file. + * Source/NSAssertionHandler.m, + * Headers/GNUstepBase/GSConfig.h.in: Clean up after last commit. + * Headers/GNUstepBase/preface.h.in: Remove this obsolete file. 2011-07-24 13:09 David Chisnall - * Headers/Foundation/NSArray.h, - Headers/Foundation/NSDictionary.h, - Headers/Foundation/NSEnumerator.h, - Headers/Foundation/NSInvocation.h, - Headers/GNUstepBase/GSFileHandle.h, - Headers/GNUstepBase/GSIMap.h, - Headers/GNUstepBase/preface.h.in, - Source/Additions/GCDictionary.m, - Source/Additions/GSInsensitiveDictionary.m, - Source/Additions/GSLock.m, - Source/Additions/NSData+GNUstepBase.m, - Source/GSArray.m, - Source/GSDictionary.m, - Source/GSInvocation.h, - Source/NSArray.m, - Source/NSAssertionHandler.m, - Source/NSCharacterSet.m, - Source/NSConcreteHashTable.m, - Source/NSConcreteMapTable.m, - Source/NSConcretePointerFunctions.h, - Source/NSConnection.m, - Source/NSCountedSet.m, - Source/NSData.m, libs/base/trunk/Source/NSDate.m, - Source/NSDebug.m, - Source/NSDictionary.m, - Source/NSDistantObject.m, - Source/NSHost.m, - Source/NSIndexPath.m, - Source/NSInvocation.m, - Source/NSKeyValueObserving.m, - Source/NSPointerArray.m, - Source/NSProcessInfo.m, - Source/NSPropertyList.m, - Source/NSTimeZone.m, - Source/NSValue.m, - Source/unix/NSStream.m, - Tests/base/NSHashTable/weak.m, - Tests/base/NSPointerArray/weak.m: Lots of little - fixes to make -base compile with -Werror (now builds without - warnings). - - Richard: I'm unsure about three of these, which were fixes in - memset() calls in: - - NSConcreteMapTable.m - - NSConcreteHashTable.m - - Additions/NSData+GNUstepBase.m - - Please can you check them? I think they are intended to zero the - entire object - (rather than the first word), but the lack of comments makes me - unsure. - - Most changes were just tweaks to variable types. I've also - removed some dead code from NSInvocation. This was small group of - things that were marked for internal use only, but not actually - referenced in the code anywhere. - - Other improvements: - - - NSArray / NSDictionary fixed up to use the 10.7 (ARC-friendly) - prototypes. - - getObjects:andKeys: implemented for NSDictionary (10.5 method) - - NSPointerArray and NSHashTable now properly support weak - objects. - - Tests for weak objects in collections. + * Headers/Foundation/NSArray.h, + Headers/Foundation/NSDictionary.h, + Headers/Foundation/NSEnumerator.h, + Headers/Foundation/NSInvocation.h, + Headers/GNUstepBase/GSFileHandle.h, + Headers/GNUstepBase/GSIMap.h, + Headers/GNUstepBase/preface.h.in, + Source/Additions/GCDictionary.m, + Source/Additions/GSInsensitiveDictionary.m, + Source/Additions/GSLock.m, + Source/Additions/NSData+GNUstepBase.m, + Source/GSArray.m, + Source/GSDictionary.m, + Source/GSInvocation.h, + Source/NSArray.m, + Source/NSAssertionHandler.m, + Source/NSCharacterSet.m, + Source/NSConcreteHashTable.m, + Source/NSConcreteMapTable.m, + Source/NSConcretePointerFunctions.h, + Source/NSConnection.m, + Source/NSCountedSet.m, + Source/NSData.m, libs/base/trunk/Source/NSDate.m, + Source/NSDebug.m, + Source/NSDictionary.m, + Source/NSDistantObject.m, + Source/NSHost.m, + Source/NSIndexPath.m, + Source/NSInvocation.m, + Source/NSKeyValueObserving.m, + Source/NSPointerArray.m, + Source/NSProcessInfo.m, + Source/NSPropertyList.m, + Source/NSTimeZone.m, + Source/NSValue.m, + Source/unix/NSStream.m, + Tests/base/NSHashTable/weak.m, + Tests/base/NSPointerArray/weak.m: Lots of little + fixes to make -base compile with -Werror (now builds without + warnings). + + Richard: I'm unsure about three of these, which were fixes in + memset() calls in: + - NSConcreteMapTable.m + - NSConcreteHashTable.m + - Additions/NSData+GNUstepBase.m + + Please can you check them? I think they are intended to zero the + entire object + (rather than the first word), but the lack of comments makes me + unsure. + + Most changes were just tweaks to variable types. I've also + removed some dead code from NSInvocation. This was small group of + things that were marked for internal use only, but not actually + referenced in the code anywhere. + + Other improvements: + + - NSArray / NSDictionary fixed up to use the 10.7 (ARC-friendly) + prototypes. + - getObjects:andKeys: implemented for NSDictionary (10.5 method) + - NSPointerArray and NSHashTable now properly support weak + objects. + - Tests for weak objects in collections. 2011-07-23 16:16 David Chisnall - * libs/base/trunk/Headers/GNUstepBase/GSIMap.h, - libs/base/trunk/Source/NSConcreteMapTable.m, - libs/base/trunk/Source/NSConcretePointerFunctions.h, - libs/base/trunk/Tests/base/NSMapTable/weak.m: Add support (and - test) for weak keys and values in NSMapTable. This support should - work in GC mode. It also works if the runtime supports ARC, even - if the compiler does not use this support. + * libs/base/trunk/Headers/GNUstepBase/GSIMap.h, + libs/base/trunk/Source/NSConcreteMapTable.m, + libs/base/trunk/Source/NSConcretePointerFunctions.h, + libs/base/trunk/Tests/base/NSMapTable/weak.m: Add support (and + test) for weak keys and values in NSMapTable. This support should + work in GC mode. It also works if the runtime supports ARC, even + if the compiler does not use this support. 2011-07-23 12:19 David Chisnall - * libs/base/trunk/Source/NSObject.m: Remove the zone pointer from - objects. Now we always query the zones to find the relevant - pointer. Zones are still supported, but we now optimise for the - case where they are not used. + * libs/base/trunk/Source/NSObject.m: Remove the zone pointer from + objects. Now we always query the zones to find the relevant + pointer. Zones are still supported, but we now optimise for the + case where they are not used. - To disable zone support completely, NSAllocateObject() should - ignore the zone and NSDeallocateObject() should skip the zone - lookup. + To disable zone support completely, NSAllocateObject() should + ignore the zone and NSDeallocateObject() should skip the zone + lookup. 2011-07-22 16:07 David Chisnall - * libs/base/trunk/Headers/Foundation/NSArray.h, - libs/base/trunk/Source/GSArray.m, - libs/base/trunk/Source/NSArray.m: Change id* -> id[] for OS X - 10.7 compatibility in NSArray. This change is required for ARC: - now, id* means pointer to a single object, id[] means array. + * libs/base/trunk/Headers/Foundation/NSArray.h, + libs/base/trunk/Source/GSArray.m, + libs/base/trunk/Source/NSArray.m: Change id* -> id[] for OS X + 10.7 compatibility in NSArray. This change is required for ARC: + now, id* means pointer to a single object, id[] means array. 2011-07-22 14:38 David Chisnall - * Source/NSRegularExpression.m: - Added stub implementation for when GNUstep is built without ICU. + * Source/NSRegularExpression.m: + Added stub implementation for when GNUstep is built without ICU. 2011-07-20 Eric Wasylishen - * Source/NSNumberFormatter.m - (-attributedStringForObjectValue:withDefaultAttributes:): - Guard against initializing an NSAttributedString with a nil string. + * Source/NSNumberFormatter.m + (-attributedStringForObjectValue:withDefaultAttributes:): + Guard against initializing an NSAttributedString with a nil string. 2011-07-20 Eric Wasylishen - * Source/GSAttributedString.m: Throw an exception if the string object - passed to -initWithString:attributes: doesn't respond to -length, or if - it is nil. This is the same behaviour as OS X. - * Source/NSAttributedString.m (-init): Call -initWithString:attributes: - with @"" instead of nil, since passing nil now causes an exception - to be thrown. + * Source/GSAttributedString.m: Throw an exception if the string object + passed to -initWithString:attributes: doesn't respond to -length, or if + it is nil. This is the same behaviour as OS X. + * Source/NSAttributedString.m (-init): Call -initWithString:attributes: + with @"" instead of nil, since passing nil now causes an exception + to be thrown. 2011-07-19 Richard Frith-Macdonald - * Source/Makefile.postamble: - Install ObjectiveC2 compatibility headers only if that is built (which - should be only if no 'real' objc2 library is available). - Also generate an objc/runtime.h header to include objectiveC2/runtime.h - so that people can just include objc/runtime.h to use the new runtime - API irrespective of whether the API is provided by the actual runtime - library or by the compatibility library. + * Source/Makefile.postamble: + Install ObjectiveC2 compatibility headers only if that is built (which + should be only if no 'real' objc2 library is available). + Also generate an objc/runtime.h header to include objectiveC2/runtime.h + so that people can just include objc/runtime.h to use the new runtime + API irrespective of whether the API is provided by the actual runtime + library or by the compatibility library. 2011-07-15 Richard Frith-Macdonald - * Source/GNUmakefile: - * Source/GSRunLoopWatcher.h: - * Source/NSXMLPrivate.h: - * Source/unix/GSRunLoopCtxt.m: - * Source/win32/GSFileHandle.m: - * Source/win32/NSMessagePort.m: - * Source/win32/GSRunLoopCtxt.m: - * Source/win32/NSStream.m: - * Source/common.h: - * Source/Additions/GSXML.m: - * Source/Additions/GSFunctions.m: - * Source/Additions/GSObjCRuntime.m: - * Source/GSURLPrivate.h: - * SSL/GSSSLHandle.m: - * Makefile.postamble: - * configure.ac: - * Headers/GNUstepBase/GSConfig.h.in: - * Headers/GNUstepBase/GSFunctions.h: - * Headers/GNUstepBase/GSObjCRuntime.h: - * Headers/Foundation/NSZone.h: - * Tools/make_strings/make_strings.m: - * configure: regenerate - Remove references to obsolete header. + * Source/GNUmakefile: + * Source/GSRunLoopWatcher.h: + * Source/NSXMLPrivate.h: + * Source/unix/GSRunLoopCtxt.m: + * Source/win32/GSFileHandle.m: + * Source/win32/NSMessagePort.m: + * Source/win32/GSRunLoopCtxt.m: + * Source/win32/NSStream.m: + * Source/common.h: + * Source/Additions/GSXML.m: + * Source/Additions/GSFunctions.m: + * Source/Additions/GSObjCRuntime.m: + * Source/GSURLPrivate.h: + * SSL/GSSSLHandle.m: + * Makefile.postamble: + * configure.ac: + * Headers/GNUstepBase/GSConfig.h.in: + * Headers/GNUstepBase/GSFunctions.h: + * Headers/GNUstepBase/GSObjCRuntime.h: + * Headers/Foundation/NSZone.h: + * Tools/make_strings/make_strings.m: + * configure: regenerate + Remove references to obsolete header. 2011-07-15 Richard Frith-Macdonald - * Source/NSThread.m: Fix faulty assert. + * Source/NSThread.m: Fix faulty assert. 2011-07-12 Richard Frith-Macdonald - * Source/NSFileHandle.m: - * SSL/GSSSLHandle.m: - * Headers/Foundation/NSFileHandle.h: - Fixup to let certificate information contain a chaing with intermediate - certificate authorities. Simplify handshake using common routine for - non-blocking handshake attempt. + * Source/NSFileHandle.m: + * SSL/GSSSLHandle.m: + * Headers/Foundation/NSFileHandle.h: + Fixup to let certificate information contain a chaing with intermediate + certificate authorities. Simplify handshake using common routine for + non-blocking handshake attempt. 2011-07-11 14:31 David Chisnall - * Source/NSAutoreleasePool.m, - Source/NSThread.m: Lazily initialize POSIX - threads, matching OS X behaviour and stopping us from crashing - when calling autorelease from a thread that was not previously - registered explicitly (yuck!) + * Source/NSAutoreleasePool.m, + Source/NSThread.m: Lazily initialize POSIX + threads, matching OS X behaviour and stopping us from crashing + when calling autorelease from a thread that was not previously + registered explicitly (yuck!) - Also do some quite hacky (and not totally correct) things to try - to make sure that we aren't confused into thinking that the first - NSThread is the main thread, if it's created on a separate - thread. Currently only supported on FreeBSD and OpenBSD. + Also do some quite hacky (and not totally correct) things to try + to make sure that we aren't confused into thinking that the first + NSThread is the main thread, if it's created on a separate + thread. Currently only supported on FreeBSD and OpenBSD. 2011-07-11 12:36 David Chisnall - * Source/NSNumber.m: [NSNumber -init] should not - destroy itself when called as [super init]. This behaviour was - breaking anything that subclassed NSNumber in user code (e.g. - PyObjC). + * Source/NSNumber.m: [NSNumber -init] should not + destroy itself when called as [super init]. This behaviour was + breaking anything that subclassed NSNumber in user code (e.g. + PyObjC). 2011-07-11 Fred Kiefer - * Source/GSLocale.m (GSLanguageFromLocale): Handle local "C.UTF-8" - correctly. Needed for Cygwin. + * Source/GSLocale.m (GSLanguageFromLocale): Handle local "C.UTF-8" + correctly. Needed for Cygwin. 2011-07-11 Fred Kiefer - * config/config.ffi.c: Move declaration of g_dbl to begin of - function. - Patch by Sebastian Reitenbach + * config/config.ffi.c: Move declaration of g_dbl to begin of + function. + Patch by Sebastian Reitenbach 2011-07-11 Fred Kiefer - * Source/NSTimeZone.m (+systemTimeZone): Support the OpenSuse key - TIMEZONE in /etc/sysconfig/clock. + * Source/NSTimeZone.m (+systemTimeZone): Support the OpenSuse key + TIMEZONE in /etc/sysconfig/clock. 2011-07-10 Wolfgang Lux - * Source/NSObject.m (+zone): Override to ensure that -zone returns - a valid zone pointer when it is called on a class object. + * Source/NSObject.m (+zone): Override to ensure that -zone returns + a valid zone pointer when it is called on a class object. 2011-07-05 Fred Kiefer - * macosx/gnustep.pbproj/project.pbxproj, - * Tools/make_strings/GNUmakefile.preamble: Remove references to - obsolete directory Headers/Additions. + * macosx/gnustep.pbproj/project.pbxproj, + * Tools/make_strings/GNUmakefile.preamble: Remove references to + obsolete directory Headers/Additions. 2011-07-05 Fred Kiefer - * Headers/GNUstepBase/GNUstep.h: Define the __has_feature macro, - as this file may be used without preface.h being included first. - Fixes bug #33708. Patch by Tim Kack . + * Headers/GNUstepBase/GNUstep.h: Define the __has_feature macro, + as this file may be used without preface.h being included first. + Fixes bug #33708. Patch by Tim Kack . 2011-07-04 11:31 David Chisnall - * Source/NSObject.m: - Switch the order of the reference count and the zone so that the - reference count (in reference counted mode) is always immediately in - front of the object. Please test this!! + * Source/NSObject.m: + Switch the order of the reference count and the zone so that the + reference count (in reference counted mode) is always immediately in + front of the object. Please test this!! - Opt NSObject into the fast path for ARC. ARC will now not call - the retain / release / autorelease methods on NSObject or any - classes that inherit their implementation of these methods from - NSObject. In quick and dirty testing, this gives about a 10-20% - speedup. + Opt NSObject into the fast path for ARC. ARC will now not call + the retain / release / autorelease methods on NSObject or any + classes that inherit their implementation of these methods from + NSObject. In quick and dirty testing, this gives about a 10-20% + speedup. 2011-06-30 14:44 David Chisnall - * Headers/Foundation/NSArray.h, - Headers/Foundation/NSProxy.h, - Headers/GNUstepBase/GSVersionMacros.h, - Headers/GNUstepBase/preface.h.in, - Source/NSProxy.m: Rewrote NSProxy's -retain / - -release to be the same as NSObject, not its own ad-hoc thing. + * Headers/Foundation/NSArray.h, + Headers/Foundation/NSProxy.h, + Headers/GNUstepBase/GSVersionMacros.h, + Headers/GNUstepBase/preface.h.in, + Source/NSProxy.m: Rewrote NSProxy's -retain / + -release to be the same as NSObject, not its own ad-hoc thing. - Added declaration of __bridge for use in non-ARC mode. + Added declaration of __bridge for use in non-ARC mode. - Tweaked arrayWithObjects:count: to take a const id* parameter, to - avoid ARC - treating it as a write-back parameter. + Tweaked arrayWithObjects:count: to take a const id* parameter, to + avoid ARC + treating it as a write-back parameter. 2011-06-29 15:21 David Chisnall - * Headers/Foundation/NSNotification.h, - Headers/Foundation/NSZone.h, - Headers/GNUstepBase/preface.h.in, - Tools/make_strings/make_strings.m: More ARC - fixes. We don't want to be using __strong void* in ARC mode (it - only makes sense in GC mode and is invalid in ARC mode). + * Headers/Foundation/NSNotification.h, + Headers/Foundation/NSZone.h, + Headers/GNUstepBase/preface.h.in, + Tools/make_strings/make_strings.m: More ARC + fixes. We don't want to be using __strong void* in ARC mode (it + only makes sense in GC mode and is invalid in ARC mode). 2011-06-29 13:13 David Chisnall - * Source/NSObject.m: Add support to NSObject for - automatically zeroing __weak references when using ARC. + * Source/NSObject.m: Add support to NSObject for + automatically zeroing __weak references when using ARC. 2011-06-29 11:50 David Chisnall - * Headers/Foundation/NSAutoreleasePool.h, - Headers/Foundation/NSEnumerator.h, - Headers/Foundation/NSException.h, - Headers/Foundation/NSZone.h, - Headers/GNUstepBase/preface.h.in: - ARC-compatibility tweaks in the headers. ARC will not track - objects inside structures and rejects code that uses object types - that are not __unsafe_unretained qualified inside structures. + * Headers/Foundation/NSAutoreleasePool.h, + Headers/Foundation/NSEnumerator.h, + Headers/Foundation/NSException.h, + Headers/Foundation/NSZone.h, + Headers/GNUstepBase/preface.h.in: + ARC-compatibility tweaks in the headers. ARC will not track + objects inside structures and rejects code that uses object types + that are not __unsafe_unretained qualified inside structures. - This quick fix just added this type qualifier on all such - structures. Several of these should probably not be in headers at - all. + This quick fix just added this type qualifier on all such + structures. Several of these should probably not be in headers at + all. 2011-06-26 Wolfgang Lux - * Source/NSString.m(-_getStart:end:contentsEnd:forRange:lineSep:, - -getLineStart:end:contentsEnd:forRange:, - -getParagraphStart:end:contentsEnd:forRange): - Fix implementation of getParagraphStart:end:contentsEnd:forRange:. + * Source/NSString.m(-_getStart:end:contentsEnd:forRange:lineSep:, + -getLineStart:end:contentsEnd:forRange:, + -getParagraphStart:end:contentsEnd:forRange): + Fix implementation of getParagraphStart:end:contentsEnd:forRange:. 2011-06-26 Wolfgang Lux - * configure.ac: - * config/config.ffi.c (cls_struct_combined_fn): Fix the broken - test whether libffi works. The test program always failed, but - this failure was masked by an incorrect use of AC_TRY_RUN. + * configure.ac: + * config/config.ffi.c (cls_struct_combined_fn): Fix the broken + test whether libffi works. The test program always failed, but + this failure was masked by an incorrect use of AC_TRY_RUN. - * configure: Regenerated. + * configure: Regenerated. 2011-06-23 Fred Kiefer - * Headers/Foundation/NSBundle.h, - * Source/NSBundle.m: Add a few 10.6 NSURL methods. - Based on patch by julian. + * Headers/Foundation/NSBundle.h, + * Source/NSBundle.m: Add a few 10.6 NSURL methods. + Based on patch by julian. 2011-06-20 Sebastian Reitenbach - * SSL/GSSSLHandle.m: - * Headers/GNUstepBase/GSFileHandle.h: - Avoid compiler warnings + * SSL/GSSSLHandle.m: + * Headers/GNUstepBase/GSFileHandle.h: + Avoid compiler warnings 2011-06-20 Richard Frith-Macdonald - * Source/NSObject.m: Keep zombie working until after atext stuff has - run. - * Source/NSUserDefaults.m: fix possible deref of nul pointer. - * Source/Additions/NSObject+GNUstepBase.m: - * Headers/GNUstepBase/NSObject+GNUstepBase.h: - Make clanup code a bit more flexible by allowin different cleanup - methods to be registered. + * Source/NSObject.m: Keep zombie working until after atext stuff has + run. + * Source/NSUserDefaults.m: fix possible deref of nul pointer. + * Source/Additions/NSObject+GNUstepBase.m: + * Headers/GNUstepBase/NSObject+GNUstepBase.h: + Make clanup code a bit more flexible by allowin different cleanup + methods to be registered. 2011-06-19 Richard Frith-Macdonald - * Headers/GNUstepBase/NSObject+GNUstepBase.h: - * Source/Additions/NSObject+GNUstepBase.m: - * Source/NSArray.m: - * Source/NSNotificationCenter.m: - * Source/NSObject.m: - * Source/NSString.m: - * Source/NSTimeZone.m: - * Source/NSUserDefaults.m: - * Source/NSValue.m: - More leak cleanup. + * Headers/GNUstepBase/NSObject+GNUstepBase.h: + * Source/Additions/NSObject+GNUstepBase.m: + * Source/NSArray.m: + * Source/NSNotificationCenter.m: + * Source/NSObject.m: + * Source/NSString.m: + * Source/NSTimeZone.m: + * Source/NSUserDefaults.m: + * Source/NSValue.m: + More leak cleanup. 2011-06-19 Richard Frith-Macdonald - * Headers/GNUstepBase/NSObject+GNUstepBase.h: - * Source/Additions/NSObject+GNUstepBase.m: - Add new category with methods for cleanup of long-lived data structures - on process exit. - * Source/NSObject.m: Check GNUSTEP_SHOULD_CLEAN_UP environment variable - and call +shouldCleanUp: if it is set. - * Documentation/Base.gsdoc: Document new environment variable. - * Source/GSLocale.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSUserDefaults.m: - * Source/NSNotificationCenter.m: - * Source/GSPrivate.h: - * Source/externs.m: - * Source/NSString.m: - Add some cleanup support. - - Classes may perform cleanup in a +atExit method which is automatically - called on process exit. - Classes may use [NSObject+leak:] to 'leak' an object so that it is - retained for the life of the process, but released immediately before - the +atExit methods are called if GNUSTEP_SHOULD_CLEAN_UP is YES. - See the NSObject(AtExit) category documentation for details. + * Headers/GNUstepBase/NSObject+GNUstepBase.h: + * Source/Additions/NSObject+GNUstepBase.m: + Add new category with methods for cleanup of long-lived data structures + on process exit. + * Source/NSObject.m: Check GNUSTEP_SHOULD_CLEAN_UP environment variable + and call +shouldCleanUp: if it is set. + * Documentation/Base.gsdoc: Document new environment variable. + * Source/GSLocale.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSUserDefaults.m: + * Source/NSNotificationCenter.m: + * Source/GSPrivate.h: + * Source/externs.m: + * Source/NSString.m: + Add some cleanup support. + + Classes may perform cleanup in a +atExit method which is automatically + called on process exit. + Classes may use [NSObject+leak:] to 'leak' an object so that it is + retained for the life of the process, but released immediately before + the +atExit methods are called if GNUSTEP_SHOULD_CLEAN_UP is YES. + See the NSObject(AtExit) category documentation for details. 2011-06-18 Sebastian Reitenbach - * Source/NSObject.m: fix for clang - * SSL/GNUmakefile: don't link libobjc ... depend on gnustep-make + * Source/NSObject.m: fix for clang + * SSL/GNUmakefile: don't link libobjc ... depend on gnustep-make 2011-06-18 Richard Frith-Macdonald - * Headers/Foundation/NSURL.h: - * Source/NSURL.m: more 10.6 methods + * Headers/Foundation/NSURL.h: + * Source/NSURL.m: more 10.6 methods 2011-06-17 Richard Frith-Macdonald - * Source/NSXMLParser.m: Fix error with whitespace at end of attributes. - * Headers/GNUstepBase/NSURL+GNUstepBase.h: Add method to build a URL - from separate components. - * Headers/Foundation/NSURL.h: Add some OSX 10.6 methods for path - handling, and incorporate documentation from source file. - * Source/NSURL.m: Add some OSX 10.6 methods for path handling, fix - minor bug checking resource availability, and move documentation to - header. - * Source/Additions/NSURL+GNUstepBase.m: Add method to build a URL from - components. - We NEED testcases for these. + * Source/NSXMLParser.m: Fix error with whitespace at end of attributes. + * Headers/GNUstepBase/NSURL+GNUstepBase.h: Add method to build a URL + from separate components. + * Headers/Foundation/NSURL.h: Add some OSX 10.6 methods for path + handling, and incorporate documentation from source file. + * Source/NSURL.m: Add some OSX 10.6 methods for path handling, fix + minor bug checking resource availability, and move documentation to + header. + * Source/Additions/NSURL+GNUstepBase.m: Add method to build a URL from + components. + We NEED testcases for these. 2011-06-13 Fred Kiefer - * Source/GSAvahiRunLoopIntegration.m: Declare the local methods in - the interface. - Patch by Sebastian Reitenbach + * Source/GSAvahiRunLoopIntegration.m: Declare the local methods in + the interface. + Patch by Sebastian Reitenbach 2011-06-11 Fred Kiefer - * Source/NSDateFormatter.m, - * Source/NSTimeZone.m, - * Source/NSCalendar.m: Protect the name id. - Patch by Sebastian Reitenbach + * Source/NSDateFormatter.m, + * Source/NSTimeZone.m, + * Source/NSCalendar.m: Protect the name id. + Patch by Sebastian Reitenbach 2011-06-09 Richard Frith-Macdonald - * configure: Regenerate - * config.mak.in: - * configure.ac: - * Source/Makefile.preamble: - * Tools/Makefile.postamble: - * Tools/Makefile.preamble: - Add --with-gdomap-port= to specify an alternative port + * configure: Regenerate + * config.mak.in: + * configure.ac: + * Source/Makefile.preamble: + * Tools/Makefile.postamble: + * Tools/Makefile.preamble: + Add --with-gdomap-port= to specify an alternative port 2011-06-07 Richard Frith-Macdonald - * Source/Additions/GSLock.m: - Remove notification observation on dealloc. + * Source/Additions/GSLock.m: + Remove notification observation on dealloc. 2011-06-04 Fred Kiefer - * Headers/Foundation/NSURL.h, - * Source/NSURL.m: Add -checkResourceIsReachableAndReturnError: + * Headers/Foundation/NSURL.h, + * Source/NSURL.m: Add -checkResourceIsReachableAndReturnError: 2011-06-03 Wolfgang Lux - * Source/NSString.m: [(-getLineStart:end:contentsEnd:forRange:)] - Fix off-by-one error in reported contents end for DOS style lines. + * Source/NSString.m: [(-getLineStart:end:contentsEnd:forRange:)] + Fix off-by-one error in reported contents end for DOS style lines. 2011-06-02 Riccardo Mottola - * Source/NSTimeZone.m: Disable use of tzname on OpenBSD too. + * Source/NSTimeZone.m: Disable use of tzname on OpenBSD too. 2011-06-02 Richard Frith-Macdonald - * Source/NSTimeZone.m: Allow for quotes around zone name in - /etc/sysconfig/time on redhat/centos. + * Source/NSTimeZone.m: Allow for quotes around zone name in + /etc/sysconfig/time on redhat/centos. 2011-06-01 Richard Frith-Macdonald - * Source/NSTimeZone.m: Disable use of tzname on FreeBSD as it's not - fully implemented there. Add a couple of new mechanisms for - guessing the timezone on debina and redhat. + * Source/NSTimeZone.m: Disable use of tzname on FreeBSD as it's not + fully implemented there. Add a couple of new mechanisms for + guessing the timezone on debina and redhat. 2011-06-01 Richard Frith-Macdonald - * Headers/Foundation/NSString.h: Add explicit warnings about OSX - compatible modifications to values returned by path methods. - * Source/NSTimeZone.m: Don't guess at tzname[0] if the value of - daylight shows it's not valid. + * Headers/Foundation/NSString.h: Add explicit warnings about OSX + compatible modifications to values returned by path methods. + * Source/NSTimeZone.m: Don't guess at tzname[0] if the value of + daylight shows it's not valid. 2011-05-31 Niels Grewe - * Source/NSCallBacks.h: Adjust callback prototypes to use - NSUInteger. + * Source/NSCallBacks.h: Adjust callback prototypes to use + NSUInteger. 2011-05-31 Richard Frith-Macdonald - * Headers/GNUstepBase/GNUstep.h: - Deprecate autorelease pool macros and make them always create the - pool. + * Headers/GNUstepBase/GNUstep.h: + Deprecate autorelease pool macros and make them always create the + pool. 2011-05-31 Richard Frith-Macdonald - * Headers/Foundation/NSHashTable.h: - * Headers/Foundation/NSMapTable.h: - * Source/Additions/GSMime.m: - * Source/Additions/GSXML.m: - * Source/GSAvahiNetService.m: - * Source/NSCallBacks.m: - * Source/NSConcreteHashTable.m: - * Source/NSConcreteMapTable.m: - * Source/NSConnection.m: - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - * Source/NSTask.m: - * Source/NSTimeZone.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/win32/GSRunLoopCtxt.m: - Update to use new NSInteger... callback names rather than NSInt... - for compatibility with OSX - * Source/NSNotificationCenter.m: revert/rewrite recent GC changes to - simplify code and preprocessor conditionals and to avoid overheads - of using a class as an observation except for GC with cland/libobc2. - Is it really needed even then? I guess it would be if we weren't - using the Boehm GC library, and were stuck with a GC system which - didn't support zeroing weak pointers in unscanned memory. + * Headers/Foundation/NSHashTable.h: + * Headers/Foundation/NSMapTable.h: + * Source/Additions/GSMime.m: + * Source/Additions/GSXML.m: + * Source/GSAvahiNetService.m: + * Source/NSCallBacks.m: + * Source/NSConcreteHashTable.m: + * Source/NSConcreteMapTable.m: + * Source/NSConnection.m: + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + * Source/NSTask.m: + * Source/NSTimeZone.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/win32/GSRunLoopCtxt.m: + Update to use new NSInteger... callback names rather than NSInt... + for compatibility with OSX + * Source/NSNotificationCenter.m: revert/rewrite recent GC changes to + simplify code and preprocessor conditionals and to avoid overheads + of using a class as an observation except for GC with cland/libobc2. + Is it really needed even then? I guess it would be if we weren't + using the Boehm GC library, and were stuck with a GC system which + didn't support zeroing weak pointers in unscanned memory. 2011-05-29 Richard Frith-Macdonald - * configure.ac: Fix broken atomic ops again. - * configure: regenerate + * configure.ac: Fix broken atomic ops again. + * configure: regenerate 2011-05-30 11:40 David Chisnall - * Source/NSData.m: - Add a couple of __strong annotations to pointers. Any non-id pointer - that can store GC'd memory must be __strong. Currently, this annotation - is largely ignored, because the runtime is a lot more lax about what - may store pointers than Apple's, but this will be tightened up in the - future. + * Source/NSData.m: + Add a couple of __strong annotations to pointers. Any non-id pointer + that can store GC'd memory must be __strong. Currently, this annotation + is largely ignored, because the runtime is a lot more lax about what + may store pointers than Apple's, but this will be tightened up in the + future. 2011-05-28 Fred Kiefer - * Source/NSNotificationCenter.m, - * Source/NSUserDefaults.m: Remove compiler warnings. + * Source/NSNotificationCenter.m, + * Source/NSUserDefaults.m: Remove compiler warnings. 2011-05-28 18:05 David Chisnall - * Source/NSPointerArray.m: - Make NSPointerArray insert the correct read / write barriers in GC mode. - * Source/NSConcretePointerFunctions.h: - Add some helper functions to NSConcretePointerFunctions.h that make it - easier to do this in the other collections that need to support GC. + * Source/NSPointerArray.m: + Make NSPointerArray insert the correct read / write barriers in GC mode. + * Source/NSConcretePointerFunctions.h: + Add some helper functions to NSConcretePointerFunctions.h that make it + easier to do this in the other collections that need to support GC. 2011-05-28 Eric Wasylishen - * configure.ac: Tweak atomic ops detection - * Sourcen/NSObject.m: Re-enable atomic ops + * configure.ac: Tweak atomic ops detection + * Sourcen/NSObject.m: Re-enable atomic ops 2011-05-28 14:51 David Chisnall - * Source/NSAutoreleasePool.m, - * Source/NSObject.m, - * Source/NSZone.m: - First pass at hybrid GC mode. This will try use retain-release mode if - the collector is not running. Code will run in retain/release mode - unless something compiled with -fobjc-gc-only is loaded. + * Source/NSAutoreleasePool.m, + * Source/NSObject.m, + * Source/NSZone.m: + First pass at hybrid GC mode. This will try use retain-release mode if + the collector is not running. Code will run in retain/release mode + unless something compiled with -fobjc-gc-only is loaded. 2011-05-28 Fred Kiefer - * Source/NSString.m (-initWithFormat:locale:): Make sure va_end() - gets called. - Patch by Stefan Bidigaray . + * Source/NSString.m (-initWithFormat:locale:): Make sure va_end() + gets called. + Patch by Stefan Bidigaray . 2011-05-28 12:49 David Chisnall - * Source/NSNotificationCenter.m: - __weak is only allowed on ivars and globals, so we need to turn the - Observation structure into a class. + * Source/NSNotificationCenter.m: + __weak is only allowed on ivars and globals, so we need to turn the + Observation structure into a class. 2011-05-28 Niels Grewe - * Source/NSObject.m: Disable atomic ops detection for the time being. + * Source/NSObject.m: Disable atomic ops detection for the time being. 2011-05-27 11:48 David Chisnall - * Source/NSAutoreleasePool.m: - Make -drain and -release in NSAutoreleasePool do the same thing (rather - than one calling the other) in non-GC mode. - - * Source/Additions/GSMime.m, - * Source/Additions/GSObjCRuntime.m, - * Source/Additions/NSCalendarDate+GNUstepBase.m, - * Source/Additions/NSData+GNUstepBase.m, - * Source/NSBundle.m, - * Source/NSConnection.m, - * Source/NSDebug.m, - * Source/NSDistributedNotificationCenter.m, - * Source/NSException.m, - * Source/NSFileManager.m, - * Source/NSKeyedArchiver.m, - * Source/NSLog.m, - * Source/NSMessagePort.m, - * Source/NSMessagePortNameServer.m, - * Source/NSPort.m, - * Source/NSProcessInfo.m, - * Source/NSRunLoop.m, - * Source/NSTask.m, - * Source/NSTimeZone.m, - * Source/NSUserDefaults.m, - * Tools/AGSHtml.m, - * Tools/AGSIndex.m, - * Tools/AGSOutput.m, - * Tools/AGSParser.m, - * Tools/HTMLLinker.m, - * Tools/gspath.m - * Tools/pl.m: - Replace all -release messages sent to autorelease pools with -drain. In - non-GC mode, these are equivalent. - In GC mode, these trigger a collection. + * Source/NSAutoreleasePool.m: + Make -drain and -release in NSAutoreleasePool do the same thing (rather + than one calling the other) in non-GC mode. + + * Source/Additions/GSMime.m, + * Source/Additions/GSObjCRuntime.m, + * Source/Additions/NSCalendarDate+GNUstepBase.m, + * Source/Additions/NSData+GNUstepBase.m, + * Source/NSBundle.m, + * Source/NSConnection.m, + * Source/NSDebug.m, + * Source/NSDistributedNotificationCenter.m, + * Source/NSException.m, + * Source/NSFileManager.m, + * Source/NSKeyedArchiver.m, + * Source/NSLog.m, + * Source/NSMessagePort.m, + * Source/NSMessagePortNameServer.m, + * Source/NSPort.m, + * Source/NSProcessInfo.m, + * Source/NSRunLoop.m, + * Source/NSTask.m, + * Source/NSTimeZone.m, + * Source/NSUserDefaults.m, + * Tools/AGSHtml.m, + * Tools/AGSIndex.m, + * Tools/AGSOutput.m, + * Tools/AGSParser.m, + * Tools/HTMLLinker.m, + * Tools/gspath.m + * Tools/pl.m: + Replace all -release messages sent to autorelease pools with -drain. In + non-GC mode, these are equivalent. + In GC mode, these trigger a collection. 2011-05-26 Richard Frith-Macdonald - * Source/NSObject.m: Remove useless leftover #define. - * configure.ac: Get -march flag passed to build process - * configure: regenerate + * Source/NSObject.m: Remove useless leftover #define. + * configure.ac: Get -march flag passed to build process + * configure: regenerate 2011-05-26 Niels Grewe - * configure.ac: Add test to check for availability of atomic builtins. - * configure: Regenerate. - * Headers/GNUstepBase/config.h.in: Regenerate. - * Source/NSObject.m: Fix typo. + * configure.ac: Add test to check for availability of atomic builtins. + * configure: Regenerate. + * Headers/GNUstepBase/config.h.in: Regenerate. + * Source/NSObject.m: Fix typo. - Attempt to set the compiler and linker flags needed to enable compiler - intrinsics for atomic operations on platforms where those are available. + Attempt to set the compiler and linker flags needed to enable compiler + intrinsics for atomic operations on platforms where those are available. 2011-05-26 18:29 David Chisnall - * Source/simple-load.h: - Use RTLD_NOLOAD, if it's supported. + * Source/simple-load.h: + Use RTLD_NOLOAD, if it's supported. 2011-05-26 13:24 David Chisnall - * Headers/Foundation/NSNotification.h, - * Source/Additions/GSLock.m, - * Source/Additions/GSObjCRuntime.m, - * Source/Additions/Unicode.m, - * Source/GSString.m, - * Source/NSThread.m, - * Source/NSZone.m: - More GC fixes. Most notably, - mark the thread object as not collectable, since it's hidden away - in TLS where the GC can't find it. + * Headers/Foundation/NSNotification.h, + * Source/Additions/GSLock.m, + * Source/Additions/GSObjCRuntime.m, + * Source/Additions/Unicode.m, + * Source/GSString.m, + * Source/NSThread.m, + * Source/NSZone.m: + More GC fixes. Most notably, + mark the thread object as not collectable, since it's hidden away + in TLS where the GC can't find it. 2011-05-25 Richard Frith-Macdonald - * Source/NSObject.m: - Further tweak of atomic assembly code ... don't really know what I'm - doing here ... perhaps theoriginal author (mostly David?) knows more - about this assmebly stuff and implementation of atomic primitives on - different architectures? + * Source/NSObject.m: + Further tweak of atomic assembly code ... don't really know what I'm + doing here ... perhaps theoriginal author (mostly David?) knows more + about this assmebly stuff and implementation of atomic primitives on + different architectures? 2011-05-25 11:15 David Chisnall - * Headers/Foundation/NSZone.h, - * Source/GSString.m, - * Source/NSData.m, - * Source/NSMethodSignature.m, - * Source/NSNotificationCenter.m, - * Source/NSObject.m, - * Source/NSZone.m: - More tweaks for garbage collection mode, including making - NSNotificationCenter use weak pointers (things are never removed if it - uses strong pointers because they remove themselves in the -dealloc - method, which is never called, and can't remove themselves in the - -finalize method because the -finalize method would not be called - until after they have been removed - this is consistent with Apple - behaviour). - Gorm now works correctly when built with GC enabled. + * Headers/Foundation/NSZone.h, + * Source/GSString.m, + * Source/NSData.m, + * Source/NSMethodSignature.m, + * Source/NSNotificationCenter.m, + * Source/NSObject.m, + * Source/NSZone.m: + More tweaks for garbage collection mode, including making + NSNotificationCenter use weak pointers (things are never removed if it + uses strong pointers because they remove themselves in the -dealloc + method, which is never called, and can't remove themselves in the + -finalize method because the -finalize method would not be called + until after they have been removed - this is consistent with Apple + behaviour). + Gorm now works correctly when built with GC enabled. 2011-05-25 Richard Frith-Macdonald - * Source/NSObject.m: - Attempt fix for atomic assembler on x86 (bug #33392) + * Source/NSObject.m: + Attempt fix for atomic assembler on x86 (bug #33392) 2011-05-24 David Chisnall - * Source/NSBundle.m - * Source/NSGarbageCollector.m - * Source/NSKeyValueObserving.m - * Source/NSZone.m - * Source/NSObject.m - * Source/NSAutoreleasePool.m - First pass at supporting fully Apple-compatible GC in -base. - Code sitting - on top of -base should not require modifying (in theory, at least, and - unless it does the sort of evil tricks that LanguageKit does for - performance). + * Source/NSBundle.m + * Source/NSGarbageCollector.m + * Source/NSKeyValueObserving.m + * Source/NSZone.m + * Source/NSObject.m + * Source/NSAutoreleasePool.m + First pass at supporting fully Apple-compatible GC in -base. + Code sitting + on top of -base should not require modifying (in theory, at least, and + unless it does the sort of evil tricks that LanguageKit does for + performance). 2011-05-24 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m: - Try to better cope with bad code which leaks autorelease pools. - 1. check number of pools in thread when creating a new one, and - raise an exception if too many are created. - 2. when deallocating a pool, avoid recursively deallocating child - pools so that a large number of pools won't cause stack overflow. + * Source/NSAutoreleasePool.m: + Try to better cope with bad code which leaks autorelease pools. + 1. check number of pools in thread when creating a new one, and + raise an exception if too many are created. + 2. when deallocating a pool, avoid recursively deallocating child + pools so that a large number of pools won't cause stack overflow. 2011-05-23 Richard Frith-Macdonald - * Source/NSBundle.m: - Fix to resolve links and standardize path to current executable. + * Source/NSBundle.m: + Fix to resolve links and standardize path to current executable. 2011-05-22 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - Fixes for encoding quoted-printable document body content. + * Source/Additions/GSMime.m: + Fixes for encoding quoted-printable document body content. 2011-05-19 Richard Frith-Macdonald - * Source/NSPortCoder.m: - * Source/NSMethodSignature.m: - * Source/GSFFCallInvocation.m: - * Source/GSFFIInvocation.m: - * Source/NSUnarchiver.m: - * Source/NSCoder.m: - * Source/cifframe.m: - * Source/Additions/GSObjCRuntime.m: - * Source/NSConnection.m: - * Source/NSData.m: - * Source/NSObjCRuntime.m: - * Source/NSArchiver.m: - Fixup objc header includes for gcc-4.6 + * Source/NSPortCoder.m: + * Source/NSMethodSignature.m: + * Source/GSFFCallInvocation.m: + * Source/GSFFIInvocation.m: + * Source/NSUnarchiver.m: + * Source/NSCoder.m: + * Source/cifframe.m: + * Source/Additions/GSObjCRuntime.m: + * Source/NSConnection.m: + * Source/NSData.m: + * Source/NSObjCRuntime.m: + * Source/NSArchiver.m: + Fixup objc header includes for gcc-4.6 2011-05-12 Richard Frith-Macdonald - * Source/GSFileHandle.m: - * Source/GSHTTPURLHandle.m: - * Source/win32/NSMessagePort.m: - * Source/win32/NSMessagePortNameServer.m: - Include/use errno.h for thread-safe errno support. + * Source/GSFileHandle.m: + * Source/GSHTTPURLHandle.m: + * Source/win32/NSMessagePort.m: + * Source/win32/NSMessagePortNameServer.m: + Include/use errno.h for thread-safe errno support. 2011-05-12 Richard Frith-Macdonald - * Source/NSPortCoder.m: - * Source/GSConcreteValueTemplate.m: - * Source/GSFFCallInvocation.m: - * Source/NSKeyedUnarchiver.m: - * Source/GSFFIInvocation.m: - * Source/NSUnarchiver.m: - * Source/NSCoder.m: - * Source/NSURL.m: - * Source/cifframe.m: - * Source/NSConnection.m: - * Source/NSData.m: - * Source/NSObjCRuntime.m: - * Source/GSValue.m: - * Source/NSValue.m: - * Source/NSArchiver.m: - updates for old/new objc api change. + * Source/NSPortCoder.m: + * Source/GSConcreteValueTemplate.m: + * Source/GSFFCallInvocation.m: + * Source/NSKeyedUnarchiver.m: + * Source/GSFFIInvocation.m: + * Source/NSUnarchiver.m: + * Source/NSCoder.m: + * Source/NSURL.m: + * Source/cifframe.m: + * Source/NSConnection.m: + * Source/NSData.m: + * Source/NSObjCRuntime.m: + * Source/GSValue.m: + * Source/NSValue.m: + * Source/NSArchiver.m: + updates for old/new objc api change. 2011-05-12 Fred Kiefer - * Source/GSArray.m: Fix keyed decoding for GSMutableArray and - GSPlaceholderArray. + * Source/GSArray.m: Fix keyed decoding for GSMutableArray and + GSPlaceholderArray. 2011-05-09 Richard Frith-Macdonald - * Source/NSXMLParser.m: treat unknown/undefined encodings as utf-8 - so we tolerate bad xml documents better. + * Source/NSXMLParser.m: treat unknown/undefined encodings as utf-8 + so we tolerate bad xml documents better. 2011-05-02 Eric Wasylishen - * Source/Additions/GSObjCRuntime.m (GSSelectorFromNameAndTypes): - With gcc 4.6 libobjc, GSSelectorFromNameAndTypes was calling some - functions like sel_get_any_typed_uid that were not declared (they're - declared in objc/objc-api.h which cannot be imported). I had to copy - over these function declarations, otherwise incorrect function calls - are generated which corrupt selectors (at least on x86-64). + * Source/Additions/GSObjCRuntime.m (GSSelectorFromNameAndTypes): + With gcc 4.6 libobjc, GSSelectorFromNameAndTypes was calling some + functions like sel_get_any_typed_uid that were not declared (they're + declared in objc/objc-api.h which cannot be imported). I had to copy + over these function declarations, otherwise incorrect function calls + are generated which corrupt selectors (at least on x86-64). 2011-05-02 Richard Frith-Macdonald - * Source/NSNumberFormatter.m: Fix broken copying of formatters, - cleanup/simplify decoding, cleanup/simplify by removif macros. + * Source/NSNumberFormatter.m: Fix broken copying of formatters, + cleanup/simplify decoding, cleanup/simplify by removif macros. 2011-04-30 Quentin Mathe - * Tools/autogsdoc.m: Fixed OrderedSymbolDeclarations.plist content to - take in account that existing .gsdoc files are usually not regenerated. - We now create the plist by merging it with the previously output plist - file. + * Tools/autogsdoc.m: Fixed OrderedSymbolDeclarations.plist content to + take in account that existing .gsdoc files are usually not regenerated. + We now create the plist by merging it with the previously output plist + file. 2011-04-26 Eric Wasylishen - * Source/NSNumberFormatter.m: Move the body of -init to a method called - -_NSNumberFormatterInit, and call this in -initWithCoder: so that - instances created with -initWithCoder: are initialized correctly. + * Source/NSNumberFormatter.m: Move the body of -init to a method called + -_NSNumberFormatterInit, and call this in -initWithCoder: so that + instances created with -initWithCoder: are initialized correctly. 2011-04-26 Eric Wasylishen - * Headers/Foundation/NSObjCRuntime.h: Add CGFLOAT_MIN and CGFLOAT_MAX + * Headers/Foundation/NSObjCRuntime.h: Add CGFLOAT_MIN and CGFLOAT_MAX 2011-04-14 Adam Fedor - * VERSION: Bump version + * VERSION: Bump version 2011-04-14 Adam Fedor - * Version 1.22.0 + * Version 1.22.0 2011-04-12 Richard Frith-Macdonald - * Source/Additions/GSObjCRuntime.m (GSSelectorFromNameAndTypes): - Comment out case for __GNU_LIBOBJC__ to avoid breakage with gcc-4.6 - * Source/NSPathUtilities.m: Minor tweak for running testcases. - * Tests/base/NSBundle/resources.m: - * Tests/base/NSBundle/basic.m: - Skip gnustep library bundle tests if not installed. - * Tests/base/NSNumberFormatter/basic.m: - Changed a test to a hope for the next release + * Source/Additions/GSObjCRuntime.m (GSSelectorFromNameAndTypes): + Comment out case for __GNU_LIBOBJC__ to avoid breakage with gcc-4.6 + * Source/NSPathUtilities.m: Minor tweak for running testcases. + * Tests/base/NSBundle/resources.m: + * Tests/base/NSBundle/basic.m: + Skip gnustep library bundle tests if not installed. + * Tests/base/NSNumberFormatter/basic.m: + Changed a test to a hope for the next release 2011-04-10 Quentin Mathe - * Tools/AGSOutput.m (-fitWords:from:to:maxSize:output:): Ensure all - paragraphs are output in the same way. Each paragraph starts on a new - line now, which results in a GSDoc output that looks a bit better and - is easier to parse. + * Tools/AGSOutput.m (-fitWords:from:to:maxSize:output:): Ensure all + paragraphs are output in the same way. Each paragraph starts on a new + line now, which results in a GSDoc output that looks a bit better and + is easier to parse. 2011-04-09 Nicola Pero - * Source/Additions/GSObjCRuntime.m (GSSelectorFromNameAndTypes): - Uncommented case for __GNU_LIBOBJC__. + * Source/Additions/GSObjCRuntime.m (GSSelectorFromNameAndTypes): + Uncommented case for __GNU_LIBOBJC__. 2011-04-09 Nicola Pero - * configure.ac: Updated the checks to enable native Objective-C - exceptions. If native exceptions were enabled in gnustep-make - - because the compiler supports them -, but are disabled here - because there is no uncaught exception handler in the runtime, - print an explanation without aborting; we now disable them via - base.make. - * configure: Regnerated. - * base.make.in: Set USE_OBJC_EXCEPTIONS to no if we disabled - native exceptions when configuring. + * configure.ac: Updated the checks to enable native Objective-C + exceptions. If native exceptions were enabled in gnustep-make - + because the compiler supports them -, but are disabled here + because there is no uncaught exception handler in the runtime, + print an explanation without aborting; we now disable them via + base.make. + * configure: Regnerated. + * base.make.in: Set USE_OBJC_EXCEPTIONS to no if we disabled + native exceptions when configuring. 2011-04-09 Nicola Pero - * Tests/GNUmakefile: Updated comments. + * Tests/GNUmakefile: Updated comments. 2011-04-08 Nicola Pero - * Tests/GNUmakefile: Include rules.make instead of test-tool.make. - (TOP_DIR): Define using ':=' instead of '='. - (TEST_TOOL_NAMES): Variable removed. + * Tests/GNUmakefile: Include rules.make instead of test-tool.make. + (TOP_DIR): Define using ':=' instead of '='. + (TEST_TOOL_NAMES): Variable removed. 2011-04-08 Nicola Pero - * Tools/pl2link.m (main): Fixed determining the installation - location with the current filesystem layout (Problem reported by - "Philippe Roussel" ). + * Tools/pl2link.m (main): Fixed determining the installation + location with the current filesystem layout (Problem reported by + "Philippe Roussel" ). 2011-04-07 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Fix failure to connect to mail server. + * Source/Additions/GSMime.m: Fix failure to connect to mail server. 2011-04-07 Richard Frith-Macdonald - * Source/NSNmberFormatter.m: Tweak macros to avoid compiler warnings. + * Source/NSNmberFormatter.m: Tweak macros to avoid compiler warnings. 2011-04-07 Chris Armstrong - * Source/NSFileManager.m: Fix bug creating intermediary directories. - * Tests/base/NSFileManager/general.m: Add test for whether intermediary - directories are created. + * Source/NSFileManager.m: Fix bug creating intermediary directories. + * Tests/base/NSFileManager/general.m: Add test for whether intermediary + directories are created. 2011-04-06 Richard Frith-Macdonald - * Tools/AGSparser.m: ignore __attribute__ in declarator to fix bug - #33008 + * Tools/AGSparser.m: ignore __attribute__ in declarator to fix bug + #33008 2011-04-05 Wolfgang Lux - * Tests/base/coding/decoding.m: Fix bogus byte swap code for - big-endian hosts. + * Tests/base/coding/decoding.m: Fix bogus byte swap code for + big-endian hosts. 2011-04-05 Richard Frith-Macdonald - * Source/NSObject.m: Attempt to fixup C++ constructor/destructor - handling to work for all setups. + * Source/NSObject.m: Attempt to fixup C++ constructor/destructor + handling to work for all setups. 2011-04-04 Richard Frith-Macdonald - * Source/NSTimeZone.m: on mingw release self and return nil if - initialiser can't find named timezone. + * Source/NSTimeZone.m: on mingw release self and return nil if + initialiser can't find named timezone. 2011-04-04 Richard Frith-Macdonald - * Source/NSBundle.m: ([+initialize]) change to use 'right' path - handling so that our core paths are established correctly even if - an app has set the wrong path handling mode for the currenty platform. - * Tests/base/NSURL/basic.m: - * Tests/base/NSString/test02.m: - Fix path portability bugs in tests. + * Source/NSBundle.m: ([+initialize]) change to use 'right' path + handling so that our core paths are established correctly even if + an app has set the wrong path handling mode for the currenty platform. + * Tests/base/NSURL/basic.m: + * Tests/base/NSString/test02.m: + Fix path portability bugs in tests. 2011-04-03 Richard Frith-Macdonald - * Source/NSThread.m: fix leak spotted by Fred. + * Source/NSThread.m: fix leak spotted by Fred. 2011-04-03 Sebastian Reitenbach - * Source/GNUmakefile: - * Source/NSObject.m: - * Source/NSTask.m: - Tweaks for OpenBSD build + * Source/GNUmakefile: + * Source/NSObject.m: + * Source/NSTask.m: + Tweaks for OpenBSD build 2011-04-03 Richard Frith-Macdonald - * Source/unix/GSRunLoopCtxt.m: - * Source/win32/GSRunLoopCtxt.m: - Fix pointer ownership issue in callbacks in GC environment so we let - the garbage collector handle watchers rather than trying to free them - explicitly when we shouldn't. + * Source/unix/GSRunLoopCtxt.m: + * Source/win32/GSRunLoopCtxt.m: + Fix pointer ownership issue in callbacks in GC environment so we let + the garbage collector handle watchers rather than trying to free them + explicitly when we shouldn't. 2011-04-03 Richard Frith-Macdonald - * Source/NSObject.m: Fix problem with finalization of proxies and - remove obsolete runtime call to see if a class respons to selector. + * Source/NSObject.m: Fix problem with finalization of proxies and + remove obsolete runtime call to see if a class respons to selector. 2011-03-31 Riccardo Mottola - * Source/ObjectiveC2/Makefile.preamble - Add directory of the local headers. + * Source/ObjectiveC2/Makefile.preamble + Add directory of the local headers. 2011-03-31 Richard Frith-Macdonald - * Source/Additions/unicode/gsm0338.h: - Fix error mapping capital C-cedilla. + * Source/Additions/unicode/gsm0338.h: + Fix error mapping capital C-cedilla. 2011-03-29 Richard Frith-Macdonald - * Headers/GNUstepBase/GSUnion.h: Remove problematic types. - * Source/unix/Makefile.preamble: Remove unused include directory - * Source/win32/Makefile.preamble: ditto - * Source/ObjectiveC2/Makefile.preamble: ditto - * Source/Additions/Makefile.preamble: ditto - * Source/Additions/Makefile.postamble: link to extra headers for apple - so we can build the additons library on a pure apple system again. + * Headers/GNUstepBase/GSUnion.h: Remove problematic types. + * Source/unix/Makefile.preamble: Remove unused include directory + * Source/win32/Makefile.preamble: ditto + * Source/ObjectiveC2/Makefile.preamble: ditto + * Source/Additions/Makefile.preamble: ditto + * Source/Additions/Makefile.postamble: link to extra headers for apple + so we can build the additons library on a pure apple system again. 2011-03-29 Richard Frith-Macdonald - * Headers/GNUstepBase/GSIMap.h: - * Headers/GNUstepBase/GSUnion.h: - * Source/GSAttributedString.m: - * Source/NSArchiver.m: - * Source/NSConnection.m: - * Source/NSKeyedArchiver.m: - * Source/NSNotificationCenter.m: - * Source/NSPortCoder.m: - * Source/NSSerializer.m: - Fixes for problem spotted by David Chisnall ... on a 64bit system where - the size of an integer is not the same as the size of a pointer the - union holding map keys and values will have undefined content if we - assign an integer to it and then use it as a pointer! - So, we change to use the .nsu accessor for a pointer sized integer - throughout, and we remove all the odd sized union members. + * Headers/GNUstepBase/GSIMap.h: + * Headers/GNUstepBase/GSUnion.h: + * Source/GSAttributedString.m: + * Source/NSArchiver.m: + * Source/NSConnection.m: + * Source/NSKeyedArchiver.m: + * Source/NSNotificationCenter.m: + * Source/NSPortCoder.m: + * Source/NSSerializer.m: + Fixes for problem spotted by David Chisnall ... on a 64bit system where + the size of an integer is not the same as the size of a pointer the + union holding map keys and values will have undefined content if we + assign an integer to it and then use it as a pointer! + So, we change to use the .nsu accessor for a pointer sized integer + throughout, and we remove all the odd sized union members. 2011-03-28 Riccardo Mottola - * Source/NSPathUtilities.m: - safer and more portable pointer access + * Source/NSPathUtilities.m: + safer and more portable pointer access - * Headers/Foundation/NSNetServices.h - Remove forward protocol declarations as they break gcc 2.95. + * Headers/Foundation/NSNetServices.h + Remove forward protocol declarations as they break gcc 2.95. 2011-03-24 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m: Clarify/add to comments about linked - list operation and remove redundant/useless line of code. + * Source/NSAutoreleasePool.m: Clarify/add to comments about linked + list operation and remove redundant/useless line of code. 2011-03-23 Fred Kiefer - * Source/NSNumberFormatter.m (-stringForObjectValue:): Swapped a - few lines of fraction handling code to get the test suite to pass. + * Source/NSNumberFormatter.m (-stringForObjectValue:): Swapped a + few lines of fraction handling code to get the test suite to pass. 2011-03-22 Wolfgang Lux - * Source/NSObject.m (-methodSignatureForSelector:): Get method - right again in case the method is called on a class object and the - old runtime is used. + * Source/NSObject.m (-methodSignatureForSelector:): Get method + right again in case the method is called on a class object and the + old runtime is used. 2011-03-21 Riccardo Mottola - * Tests/base/NSNumberFormatter/basic.m: - Added new test. + * Tests/base/NSNumberFormatter/basic.m: + Added new test. 2011-03-18 Nicola Pero - * Documentation/GNUmakefile (CODING-STANDARDS_TEXI_FILES, - CODING-STANDARDS_DOC_INSTALL_DIR, CODING-STANDARDS_TEXT_MAIN): - Removed. - (DOCUMENT_TEXT_NAME, TOP_DOC_FILES): Fixed names of files to - generate; for example, INSTALL instead of install. + * Documentation/GNUmakefile (CODING-STANDARDS_TEXI_FILES, + CODING-STANDARDS_DOC_INSTALL_DIR, CODING-STANDARDS_TEXT_MAIN): + Removed. + (DOCUMENT_TEXT_NAME, TOP_DOC_FILES): Fixed names of files to + generate; for example, INSTALL instead of install. 2011-03-18 Riccardo Mottola - * Source/NSSortDescriptor.m: - Use Cocoa values for the coding keys. + * Source/NSSortDescriptor.m: + Use Cocoa values for the coding keys. 2011-03-18 Richard Frith-Macdonald - * Source/Additions/GSObjCRuntime.m: Use old API to work around bug in - current sel_registerTypedName(). - * Source/GSFFIInvocation.m: Use sel_getTypedName() to safely get a - typed selector. + * Source/Additions/GSObjCRuntime.m: Use old API to work around bug in + current sel_registerTypedName(). + * Source/GSFFIInvocation.m: Use sel_getTypedName() to safely get a + typed selector. 2011-03-17 Wolfgang Lux - * Source/NSProcessInfo.m (_gnu_process_args): Use C runtime system - functions to access command line arguments and the environment - under Darwin/Mac OS X. + * Source/NSProcessInfo.m (_gnu_process_args): Use C runtime system + functions to access command line arguments and the environment + under Darwin/Mac OS X. - * configure.ac: Add special case to disable fake-main by default - on Darwin/OS X. + * configure.ac: Add special case to disable fake-main by default + on Darwin/OS X. - * configure: Regenerated. + * configure: Regenerated. 2011-03-17 15:02 David Chisnall - * Source/NSObject.m: Correctly call C++ - constructors / destructors for C++ 'objects' in ObjC++ ivars. + * Source/NSObject.m: Correctly call C++ + constructors / destructors for C++ 'objects' in ObjC++ ivars. 2011-03-16 Richard Frith-Macdonald - * NSTimeZones/NSTimeZones.tar: regenerated wityh latest zone info. - * Tests/base/NSCalendarDate: Updated to use standardised locale + * NSTimeZones/NSTimeZones.tar: regenerated wityh latest zone info. + * Tests/base/NSCalendarDate: Updated to use standardised locale 2011-03-16 Richard Frith-Macdonald - * Source/NSThread.m: Make +initialize thread safety warning optional - (disabled using GSSilenceInitializeWarning user default) and more - informative. + * Source/NSThread.m: Make +initialize thread safety warning optional + (disabled using GSSilenceInitializeWarning user default) and more + informative. 2011-03-15 Richard Frith-Macdonald - * Source/NSNumberFormatter.m: Padding for fractional part comes at the - start rather than at the end. + * Source/NSNumberFormatter.m: Padding for fractional part comes at the + start rather than at the end. 2011-03-14 Stefan Bidigaray - * Source/NSNumberFormatter.m (-getObjectValue:forString:errorDescription:): - Add implementation. + * Source/NSNumberFormatter.m (-getObjectValue:forString:errorDescription:): + Add implementation. 2011-03-14 Stefan Bidigaray - * Source/NSNumberFormatter.m (-getObjectValue:forString:range:error:): - Added implementation. - * Headers/NSNumberFormatter.h: Fixed a couple of typos. + * Source/NSNumberFormatter.m (-getObjectValue:forString:range:error:): + Added implementation. + * Headers/NSNumberFormatter.h: Fixed a couple of typos. 2011-03-14 Nicola Pero - * Resources/GNUmakefile - (base-resources_RESOURCE_FILES_INSTALL_DIR): Removed. + * Resources/GNUmakefile + (base-resources_RESOURCE_FILES_INSTALL_DIR): Removed. 2011-03-13 Richard Frith-Macdonald - * configure.ac: - * configure: - * Headers/Additions/GNUstepBase: - * Headers/Additions/GNUstepBase/Additions.h: - * Headers/Additions/GNUstepBase/config.h.in: - * Headers/Additions/GNUstepBase/.cvsignore: - * Headers/Additions/GNUstepBase/CXXException.h: - * Headers/Additions/GNUstepBase/DistributedObjects.h: - * Headers/Additions/GNUstepBase/GCObject.h: - * Headers/Additions/GNUstepBase/GNUstep.h: - * Headers/Additions/GNUstepBase/GSBlocks.h: - * Headers/Additions/GNUstepBase/GSConfig.h.in: - * Headers/Additions/GNUstepBase/GSFileHandle.h: - * Headers/Additions/GNUstepBase/GSFunctions.h: - * Headers/Additions/GNUstepBase/GSIArray.h: - * Headers/Additions/GNUstepBase/GSIMap.h: - * Headers/Additions/GNUstepBase/GSLocale.h: - * Headers/Additions/GNUstepBase/GSLock.h: - * Headers/Additions/GNUstepBase/GSMime.h: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - * Headers/Additions/GNUstepBase/GSUnion.h: - * Headers/Additions/GNUstepBase/GSVersionMacros.h: - * Headers/Additions/GNUstepBase/GSXML.h: - * Headers/Additions/GNUstepBase/NSArray+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSAttributedString+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSBundle+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSCalendarDate+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSData+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSDebug+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSFileHandle+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSLock+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSMutableString+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSNetServices+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSNumber+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSObject+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSProcessInfo+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSStream+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSString+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSTask+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSThread+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSURL+GNUstepBase.h: - * Headers/Additions/GNUstepBase/preface.h.in: - * Headers/Additions/GNUstepBase/Unicode.h: - * Headers/GNUstepBase: - * Headers/GNUstepBase/config.h.in: - * Headers/ObjectiveC2: - * Headers/ObjectiveC2/Availability.h: - * Headers/ObjectiveC2/blocks_runtime.h: - * Headers/ObjectiveC2/capabilities.h: - * Headers/ObjectiveC2/runtime.h: - * Makefile.postamble: - * Source/DocMakefile: - * Source/GNUmakefile: - * Source/Makefile.postamble: - * Source/Makefile.preamble: - * Source/ObjectiveC2/Availability.h: - * Source/ObjectiveC2/blocks_runtime.h: - * Source/ObjectiveC2/capabilities.h: - * Source/ObjectiveC2/caps.c: - * Source/ObjectiveC2/GNUmakefile: - * Source/ObjectiveC2/NSBlocks.m: - * Source/ObjectiveC2/runtime.h: - * SSL/Makefile.preamble: - * Tests/GNUmakefile: - * Tools/Makefile.preamble: - Simplify header layout. + * configure.ac: + * configure: + * Headers/Additions/GNUstepBase: + * Headers/Additions/GNUstepBase/Additions.h: + * Headers/Additions/GNUstepBase/config.h.in: + * Headers/Additions/GNUstepBase/.cvsignore: + * Headers/Additions/GNUstepBase/CXXException.h: + * Headers/Additions/GNUstepBase/DistributedObjects.h: + * Headers/Additions/GNUstepBase/GCObject.h: + * Headers/Additions/GNUstepBase/GNUstep.h: + * Headers/Additions/GNUstepBase/GSBlocks.h: + * Headers/Additions/GNUstepBase/GSConfig.h.in: + * Headers/Additions/GNUstepBase/GSFileHandle.h: + * Headers/Additions/GNUstepBase/GSFunctions.h: + * Headers/Additions/GNUstepBase/GSIArray.h: + * Headers/Additions/GNUstepBase/GSIMap.h: + * Headers/Additions/GNUstepBase/GSLocale.h: + * Headers/Additions/GNUstepBase/GSLock.h: + * Headers/Additions/GNUstepBase/GSMime.h: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + * Headers/Additions/GNUstepBase/GSUnion.h: + * Headers/Additions/GNUstepBase/GSVersionMacros.h: + * Headers/Additions/GNUstepBase/GSXML.h: + * Headers/Additions/GNUstepBase/NSArray+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSAttributedString+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSBundle+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSCalendarDate+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSData+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSDebug+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSFileHandle+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSLock+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSMutableString+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSNetServices+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSNumber+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSObject+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSProcessInfo+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSStream+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSString+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSTask+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSThread+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSURL+GNUstepBase.h: + * Headers/Additions/GNUstepBase/preface.h.in: + * Headers/Additions/GNUstepBase/Unicode.h: + * Headers/GNUstepBase: + * Headers/GNUstepBase/config.h.in: + * Headers/ObjectiveC2: + * Headers/ObjectiveC2/Availability.h: + * Headers/ObjectiveC2/blocks_runtime.h: + * Headers/ObjectiveC2/capabilities.h: + * Headers/ObjectiveC2/runtime.h: + * Makefile.postamble: + * Source/DocMakefile: + * Source/GNUmakefile: + * Source/Makefile.postamble: + * Source/Makefile.preamble: + * Source/ObjectiveC2/Availability.h: + * Source/ObjectiveC2/blocks_runtime.h: + * Source/ObjectiveC2/capabilities.h: + * Source/ObjectiveC2/caps.c: + * Source/ObjectiveC2/GNUmakefile: + * Source/ObjectiveC2/NSBlocks.m: + * Source/ObjectiveC2/runtime.h: + * SSL/Makefile.preamble: + * Tests/GNUmakefile: + * Tools/Makefile.preamble: + Simplify header layout. 2011-03-13 Richard Frith-Macdonald - * Source/CXXException.m: fix error in include - * Tests/GNUmakefile: add info for testing local copy of library + * Source/CXXException.m: fix error in include + * Tests/GNUmakefile: add info for testing local copy of library 2011-03-13 Richard Frith-Macdonald - * configure.ac: - * configure: - * config.mak.in: - * Source/GNUmakefile: - * Headers/Additions/GNUstepBase/config.h.in: - Add config check for blocks support. - * Source/NSObject.m: - * Source/ObjectiveC2/blocks_runtime.m: - Fixups for mingw + * configure.ac: + * configure: + * config.mak.in: + * Source/GNUmakefile: + * Headers/Additions/GNUstepBase/config.h.in: + Add config check for blocks support. + * Source/NSObject.m: + * Source/ObjectiveC2/blocks_runtime.m: + Fixups for mingw 2011-03-12 Stefan Bidigaray - * Source/NSNumberFormatter.m: Cache property values and reset them - along with the formatter. - * Source/NSLocale.m: Add 2 missing unlocks. + * Source/NSNumberFormatter.m: Cache property values and reset them + along with the formatter. + * Source/NSLocale.m: Add 2 missing unlocks. 2011-03-11 Richard Frith-Macdonald - * Source/GSBlocks.m: Added header - * Headers/Additions/GNUstepBase/GSBlocks.h: Added header - * Headers/Foundation/NSRegularExpression.h: Added header - Added missing copyright headers etc. + * Source/GSBlocks.m: Added header + * Headers/Additions/GNUstepBase/GSBlocks.h: Added header + * Headers/Foundation/NSRegularExpression.h: Added header + Added missing copyright headers etc. 2011-03-09 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Fix bug in resetting ... was ending up - with an immutable dictionary for the registration domain. - * Source/NSObject.m: fix references to isa. - * Source/NSPropertyList.m: Fix unused increments. - * Source/NSRunLoop.m: Remove unused code. - * Source/NSSocketPort.m: Remove unused code. - * Source/NSSocketPortNameServer.m: Remove unused code. - * Source/NSTimeZone.m: Fix unused increment. - * Source/NSUnarchiver.m: Fix unused assignment. + * Source/NSUserDefaults.m: Fix bug in resetting ... was ending up + with an immutable dictionary for the registration domain. + * Source/NSObject.m: fix references to isa. + * Source/NSPropertyList.m: Fix unused increments. + * Source/NSRunLoop.m: Remove unused code. + * Source/NSSocketPort.m: Remove unused code. + * Source/NSSocketPortNameServer.m: Remove unused code. + * Source/NSTimeZone.m: Fix unused increment. + * Source/NSUnarchiver.m: Fix unused assignment. 2011-03-08 Richard Frith-Macdonald - * Source/GSAttributedString.m: remove unused assignment - * Source/GSFormat.m: remove unused increments - * Source/GSHTTPAuthentication.m: remove unused assignment, fix possible - use of nil as a dictionary key. - * Source/GSHTTPURLHandle.m: remove unused assignment, check length. - * Source/GSSocketStream.m: remove unused assignments - * Source/GSString.m: remove unused assignments - * Source/NSAttributedString.m: (-description) fix leak - * Source/NSAutoreleasePool.m: tweak for clang static analyser - * Source/NSBundle.m: fix memory leak - * Source/NSCachedURLResponse.m: fix error in -copy - * Source/NSCalendarDate.m: remove unused increments. - * Source/NSDate.m: fix parsing string with ordering too long - * Source/NSHTTPCookie.m: remove unused assignments - * Source/GSMime.m: fix unused assignments - * Source/NSInvocation.m: remove unused code - * Source/unix/NSStream.m: remove unused ivar - * Tools/gdomap.c: remove unused code + * Source/GSAttributedString.m: remove unused assignment + * Source/GSFormat.m: remove unused increments + * Source/GSHTTPAuthentication.m: remove unused assignment, fix possible + use of nil as a dictionary key. + * Source/GSHTTPURLHandle.m: remove unused assignment, check length. + * Source/GSSocketStream.m: remove unused assignments + * Source/GSString.m: remove unused assignments + * Source/NSAttributedString.m: (-description) fix leak + * Source/NSAutoreleasePool.m: tweak for clang static analyser + * Source/NSBundle.m: fix memory leak + * Source/NSCachedURLResponse.m: fix error in -copy + * Source/NSCalendarDate.m: remove unused increments. + * Source/NSDate.m: fix parsing string with ordering too long + * Source/NSHTTPCookie.m: remove unused assignments + * Source/GSMime.m: fix unused assignments + * Source/NSInvocation.m: remove unused code + * Source/unix/NSStream.m: remove unused ivar + * Tools/gdomap.c: remove unused code 2011-03-08 Richard Frith-Macdonald - * Source/GSInternal.h: - * Source/NSDateFormatter.m: - * Source/NSNumberFormatter.m: - Fix for object copying in non-fragile-ivar build spotted by - Chris Armstrong. + * Source/GSInternal.h: + * Source/NSDateFormatter.m: + * Source/NSNumberFormatter.m: + Fix for object copying in non-fragile-ivar build spotted by + Chris Armstrong. 2011-03-06 Richard Frith-Macdonald - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/GSXML.m: - * Source/Additions/NSData+GNUstepBase.m: - * Source/Additions/NSError+GNUstepBase.m: - * Source/Additions/Unicode.m: - * Source/dld-load.h: - * Source/GSFormat.m: - * Source/GSMDNSNetServices.m: - * Source/GSSocketStream.m: - * Source/GSValue.m: - * Source/NSArchiver.m: - * Source/NSCalendarDate.m: - * Source/NSData.m: - * Source/NSDebug.m: - * Source/NSFileManager.m: - * Source/NSHost.m: - * Source/NSInvocation.m: - * Source/NSKeyValueCoding.m: - * Source/NSMessagePort.m: - * Source/NSMessagePortNameServer.m: - * Source/NSMethodSignature.m: - * Source/NSObject.m: - * Source/NSPathUtilities.m: - * Source/NSPortCoder.m: - * Source/NSProcessInfo.m: - * Source/NSString.m: - * Source/NSTask.m: - * Source/NSTimeZone.m: - * Source/NSUnarchiver.m: - * Source/NSURL.m: - * Tools/cvtenc.m: - * Tools/defaults.m: - * Tools/locale_alias.m: - Avoid strcpy and strcat to get rid if some bsd warnings. + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/GSXML.m: + * Source/Additions/NSData+GNUstepBase.m: + * Source/Additions/NSError+GNUstepBase.m: + * Source/Additions/Unicode.m: + * Source/dld-load.h: + * Source/GSFormat.m: + * Source/GSMDNSNetServices.m: + * Source/GSSocketStream.m: + * Source/GSValue.m: + * Source/NSArchiver.m: + * Source/NSCalendarDate.m: + * Source/NSData.m: + * Source/NSDebug.m: + * Source/NSFileManager.m: + * Source/NSHost.m: + * Source/NSInvocation.m: + * Source/NSKeyValueCoding.m: + * Source/NSMessagePort.m: + * Source/NSMessagePortNameServer.m: + * Source/NSMethodSignature.m: + * Source/NSObject.m: + * Source/NSPathUtilities.m: + * Source/NSPortCoder.m: + * Source/NSProcessInfo.m: + * Source/NSString.m: + * Source/NSTask.m: + * Source/NSTimeZone.m: + * Source/NSUnarchiver.m: + * Source/NSURL.m: + * Tools/cvtenc.m: + * Tools/defaults.m: + * Tools/locale_alias.m: + Avoid strcpy and strcat to get rid if some bsd warnings. 2011-03-06 Richard Frith-Macdonald - * config/config.initialize.m: Correct formatting. Increase time - allowed for threads to do their job, to minimise the chance of a - heavily loaded machine giving a wrong result because threads - don't get scheduled in time. - * configure.ac: check for stck return address extraction - * configure: regenerate - * Headers/Additions/GNUstepBase/config.h.in: regenerate - * Source/NSDebug.m: use function to get return address. + * config/config.initialize.m: Correct formatting. Increase time + allowed for threads to do their job, to minimise the chance of a + heavily loaded machine giving a wrong result because threads + don't get scheduled in time. + * configure.ac: check for stck return address extraction + * configure: regenerate + * Headers/Additions/GNUstepBase/config.h.in: regenerate + * Source/NSDebug.m: use function to get return address. 2011-03-06 Thomas Gamper - * config/config.initialize.m: add missing include to fix build. - Use correct thread handles, adapt sleep times to worst case. - Remove C99-ism. + * config/config.initialize.m: add missing include to fix build. + Use correct thread handles, adapt sleep times to worst case. + Remove C99-ism. 2011-03-06 Richard Frith-Macdonald - * Source/NSThread.m: remove obsolete call to objc_set_thread_callback(). - * Source/NSDebug.m: Try to improve getting return addresses from stack. + * Source/NSThread.m: remove obsolete call to objc_set_thread_callback(). + * Source/NSDebug.m: Try to improve getting return addresses from stack. 2011-03-05 Richard Frith-Macdonald - * Source/GSInternal.h: - * Source/NSDateFormatter.m: - * Source/NSNumberFormatter.m: - * Headers/Foundation/NSPortCoder.h: - * Headers/Foundation/NSCache.h: - * Headers/Foundation/NSSpellServer.h: - * Headers/Foundation/NSDecimalNumber.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSTimer.h: - * Headers/Foundation/NSScanner.h: - * Headers/Foundation/NSDistributedNotificationCenter.h: - * Headers/Foundation/NSComparisonPredicate.h: - * Headers/Foundation/NSUndoManager.h: - * Headers/Foundation/NSDateFormatter.h: - * Headers/Foundation/NSAutoreleasePool.h: - * Headers/Foundation/NSUserDefaults.h: - * Headers/Foundation/NSXMLNode.h: - * Headers/Foundation/NSThread.h: - * Headers/Foundation/NSHost.h: - * Headers/Foundation/NSRegularExpression.h: - * Headers/Foundation/NSKeyedArchiver.h: - * Headers/Foundation/NSProtocolChecker.h: - * Headers/Foundation/NSError.h: - * Headers/Foundation/NSPortMessage.h: - * Headers/Foundation/NSFileHandle.h: - * Headers/Foundation/NSDistributedLock.h: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSSortDescriptor.h: - * Headers/Foundation/NSLocale.h: - * Headers/Foundation/NSTask.h: - * Headers/Foundation/NSArchiver.h: - * Headers/Foundation/NSInvocation.h: - * Headers/Foundation/NSFileManager.h: - * Headers/Foundation/NSNumberFormatter.h: - * Headers/Foundation/NSPortNameServer.h: - * Headers/Foundation/NSXMLParser.h: - * Headers/Foundation/NSIndexPath.h: - * Headers/Additions/GNUstepBase/GSMime.h: - Tweaks for running in a garbage collecting environment. + * Source/GSInternal.h: + * Source/NSDateFormatter.m: + * Source/NSNumberFormatter.m: + * Headers/Foundation/NSPortCoder.h: + * Headers/Foundation/NSCache.h: + * Headers/Foundation/NSSpellServer.h: + * Headers/Foundation/NSDecimalNumber.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSTimer.h: + * Headers/Foundation/NSScanner.h: + * Headers/Foundation/NSDistributedNotificationCenter.h: + * Headers/Foundation/NSComparisonPredicate.h: + * Headers/Foundation/NSUndoManager.h: + * Headers/Foundation/NSDateFormatter.h: + * Headers/Foundation/NSAutoreleasePool.h: + * Headers/Foundation/NSUserDefaults.h: + * Headers/Foundation/NSXMLNode.h: + * Headers/Foundation/NSThread.h: + * Headers/Foundation/NSHost.h: + * Headers/Foundation/NSRegularExpression.h: + * Headers/Foundation/NSKeyedArchiver.h: + * Headers/Foundation/NSProtocolChecker.h: + * Headers/Foundation/NSError.h: + * Headers/Foundation/NSPortMessage.h: + * Headers/Foundation/NSFileHandle.h: + * Headers/Foundation/NSDistributedLock.h: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSSortDescriptor.h: + * Headers/Foundation/NSLocale.h: + * Headers/Foundation/NSTask.h: + * Headers/Foundation/NSArchiver.h: + * Headers/Foundation/NSInvocation.h: + * Headers/Foundation/NSFileManager.h: + * Headers/Foundation/NSNumberFormatter.h: + * Headers/Foundation/NSPortNameServer.h: + * Headers/Foundation/NSXMLParser.h: + * Headers/Foundation/NSIndexPath.h: + * Headers/Additions/GNUstepBase/GSMime.h: + Tweaks for running in a garbage collecting environment. 2011-03-05 Richard Frith-Macdonald - * Source/NSBundle.m: AbsolutePathOfExecutable() attempt to fix this - to return a fully standardised path without symbolic links. - * Source/NSFileManager.m: - * Headers/Foundation/NSFileManager.h: - Rudimentary implementation of a couple of new methods. + * Source/NSBundle.m: AbsolutePathOfExecutable() attempt to fix this + to return a fully standardised path without symbolic links. + * Source/NSFileManager.m: + * Headers/Foundation/NSFileManager.h: + Rudimentary implementation of a couple of new methods. 2011-03-05 Tom Davie - * Source/NSSet.m: - * Headers/Foundation/NSSet.h: - Add block enumeration. + * Source/NSSet.m: + * Headers/Foundation/NSSet.h: + Add block enumeration. 2011-03-05 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Small optimisation suggested by Fred. - * config/config.initialize.m: Test for working +initialize - * configure.ac: Use test for +initialize thread safety - * Headers/Additions/GNUstepBase/config.h.in: regenerate - * configure: regenerate - * Source/NSThread.m: Log warning when going multithreaded without - a reliable runtime. + * Source/NSUserDefaults.m: Small optimisation suggested by Fred. + * config/config.initialize.m: Test for working +initialize + * configure.ac: Use test for +initialize thread safety + * Headers/Additions/GNUstepBase/config.h.in: regenerate + * configure: regenerate + * Source/NSThread.m: Log warning when going multithreaded without + a reliable runtime. 2011-03-05 Richard Frith-Macdonald - * Source/NSNumberFormatter.m: Make error text compatible with OSX - * Source/NSSpellServer.m: Use NSLanguages user default - * Source/NSBundle.m: Use NSLanguages user default - * Source/NSUserDefaults.m: - Revert recent attempt to avoid deadlocks (broke thread-safety). - Rewrite shared defaults initialisation and user language management - to break the complicated interrelationshp between methods which - made the initialisation fragile and incomprehensible. - Language information derived from operating system or environment - variables (rather than the defaults database) is now stored in a - new volatile domain. - The +userLanguages method just returns the NSLanguages default, - and +setUserLanguages: now sets NSLanguages in the new volatile domain. - Simplify setup of shared user defaults to avoid deadlocks. + * Source/NSNumberFormatter.m: Make error text compatible with OSX + * Source/NSSpellServer.m: Use NSLanguages user default + * Source/NSBundle.m: Use NSLanguages user default + * Source/NSUserDefaults.m: + Revert recent attempt to avoid deadlocks (broke thread-safety). + Rewrite shared defaults initialisation and user language management + to break the complicated interrelationshp between methods which + made the initialisation fragile and incomprehensible. + Language information derived from operating system or environment + variables (rather than the defaults database) is now stored in a + new volatile domain. + The +userLanguages method just returns the NSLanguages default, + and +setUserLanguages: now sets NSLanguages in the new volatile domain. + Simplify setup of shared user defaults to avoid deadlocks. 2011-03-04 Richard Frith-Macdonald - * Source/NSOperation.m: retain operation while finishing so that it - doesn't get deallocated too soon (when the queue removes it). + * Source/NSOperation.m: retain operation while finishing so that it + doesn't get deallocated too soon (when the queue removes it). 2011-03-04 Richard Frith-Macdonald - * Source/NSNumberFormatter.m: Fix -setAllowsFloats to only operate - in input strings. + * Source/NSNumberFormatter.m: Fix -setAllowsFloats to only operate + in input strings. 2011-03-03 Richard Frith-Macdonald - * Source/NSKeyValueObserving.m: Fix possible thread race condition. - * Source/ObjectiveC2/runtime.c: Fix bogus warning messages. + * Source/NSKeyValueObserving.m: Fix possible thread race condition. + * Source/ObjectiveC2/runtime.c: Fix bogus warning messages. 2011-03-03 Richard Frith-Macdonald - * Source/NSOperation.m: re-introduce per-queue thread pool. + * Source/NSOperation.m: re-introduce per-queue thread pool. 2011-03-03 Richard Frith-Macdonald - * Source/NSOperation.m: reorganise and simplify code, removing the - pool of threads for handling operations (need to re-add this at a - later point, but probably as a separate class) ... implement - support for 'concurrent' operations (ones which manage their own - executions rather than running in a thread provided by the queue. + * Source/NSOperation.m: reorganise and simplify code, removing the + pool of threads for handling operations (need to re-add this at a + later point, but probably as a separate class) ... implement + support for 'concurrent' operations (ones which manage their own + executions rather than running in a thread provided by the queue. 2011-03-03 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Review memory management ... fix possible - free of non-heap memory. + * Source/Additions/Unicode.m: Review memory management ... fix possible + free of non-heap memory. 2011-03-02 Riccardo Mottola - * base/NSNumberFormatter/basic.m: - Add test for checking leading zeroes in fractional part. + * base/NSNumberFormatter/basic.m: + Add test for checking leading zeroes in fractional part. 2011-03-02 Richard Frith-Macdonald - * Source/NSObject.m: ([-isMemberOfClass:]) test the class returned - by the -class method rather than using the runtime to get the actual - class pointer ... fixes for when one class is pretending to be - another (key value observing). + * Source/NSObject.m: ([-isMemberOfClass:]) test the class returned + by the -class method rather than using the runtime to get the actual + class pointer ... fixes for when one class is pretending to be + another (key value observing). 2011-03-01 Richard Frith-Macdonald - * Source/NSKeyValueObserving.m: - Retain object while sending notifications so we don't get deallocated - during the process. + * Source/NSKeyValueObserving.m: + Retain object while sending notifications so we don't get deallocated + during the process. 2011-03-01 Niels Grewe - * Source/GSNetServices.h - * Headers/Additions/GNUstepBase/NSNetServices+GNUstepBase.h: - Declare a protocol for GNUstep specific delegate methods in - NSNetServices. + * Source/GSNetServices.h + * Headers/Additions/GNUstepBase/NSNetServices+GNUstepBase.h: + Declare a protocol for GNUstep specific delegate methods in + NSNetServices. 2011-02-28 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m: - Implement dummy version for use with garbage collecting runtime. + * Source/NSAutoreleasePool.m: + Implement dummy version for use with garbage collecting runtime. 2011-02-28 Richard Frith-Macdonald - * Source/NSTimeZone.m: - * Source/NSPortCoder.m: - * Source/NSBundle.m: - * Source/NSPropertyList.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSProcessInfo.m: - * Source/NSRunLoop.m: - * Source/NSOperation.m: - * Source/NSUserDefaults.m: - * Source/GSArray.m: - * Source/NSMessagePortNameServer.m: - * Source/NSKeyedArchiver.m: - * Source/NSDebug.m: - * Source/NSPort.m: - * Source/NSMessagePort.m: - * Source/win32/NSMessagePortNameServer.m: - * Source/NSFileManager.m: - * Source/NSException.m: - * Source/NSString.m: - * Source/Additions/NSData+GNUstepBase.m: - * Source/Additions/GSMime.m: - * Source/Additions/NSCalendarDate+GNUstepBase.m: - * Source/Additions/GSXML.m: - * Source/Additions/GSObjCRuntime.m: - * Source/GSSet.m: - * Source/NSConnection.m: - * Source/NSThread.m: - * Source/GSeq.h: - * Source/NSLog.m: - * Source/NSTask.m: - Tweaks to avoid compiler warnings in garbage collecting environment. + * Source/NSTimeZone.m: + * Source/NSPortCoder.m: + * Source/NSBundle.m: + * Source/NSPropertyList.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSProcessInfo.m: + * Source/NSRunLoop.m: + * Source/NSOperation.m: + * Source/NSUserDefaults.m: + * Source/GSArray.m: + * Source/NSMessagePortNameServer.m: + * Source/NSKeyedArchiver.m: + * Source/NSDebug.m: + * Source/NSPort.m: + * Source/NSMessagePort.m: + * Source/win32/NSMessagePortNameServer.m: + * Source/NSFileManager.m: + * Source/NSException.m: + * Source/NSString.m: + * Source/Additions/NSData+GNUstepBase.m: + * Source/Additions/GSMime.m: + * Source/Additions/NSCalendarDate+GNUstepBase.m: + * Source/Additions/GSXML.m: + * Source/Additions/GSObjCRuntime.m: + * Source/GSSet.m: + * Source/NSConnection.m: + * Source/NSThread.m: + * Source/GSeq.h: + * Source/NSLog.m: + * Source/NSTask.m: + Tweaks to avoid compiler warnings in garbage collecting environment. 2011-02-27 Richard Frith-Macdonald - * Tests/GNUmakefile: Use gnustep-make to supply targets. + * Tests/GNUmakefile: Use gnustep-make to supply targets. 2011-02-27 Richard Frith-Macdonald - * Source/GSFFCallInvocation.m: - * Source/ObjectiveC2/runtime.c: - * Source/ObjectiveC2/runtime.h: - * Source/Additions/GSObjCRuntime.m: - Avoid messy runtime differences by using old runtime api for typed - selector features not in the Apple runtime. + * Source/GSFFCallInvocation.m: + * Source/ObjectiveC2/runtime.c: + * Source/ObjectiveC2/runtime.h: + * Source/Additions/GSObjCRuntime.m: + Avoid messy runtime differences by using old runtime api for typed + selector features not in the Apple runtime. 2011-02-27 Banlu Kemiyatorn - * Source/NSOperation.m: Fix error checking condition for dependencies. + * Source/NSOperation.m: Fix error checking condition for dependencies. 2011-02-27 Richard Frith-Macdonald - * configure.ac: Look for gc.h in gc subdirectory - * configure: regenerate - * Headers/Additions/GNUstepBase/config.h.in: regenerate - * Source/GNUmakefile: Don't attempt to build GSBlocks.m until it works - without causing link failures. - * Source/NSPortCoder.m: - * Source/NSKeyedArchiver.m: - * Source/NSGarbageCollector.m: - * Source/NSZone.m: - * Source/GSDictionary.m: - * Source/GSCountedSet.m: - * Source/NSNotificationCenter.m: - * Source/GSAttributedString.m: - * Source/NSObject.m: - * Source/NSConcreteMapTable.m: - * Source/Additions/GSMime.m: - * Source/Additions/GSObjCRuntime.m: - * Source/GSSet.m: - * Source/NSConnection.m: - * Source/NSThread.m: - * Source/NSConcreteHashTable.m: - Modify location of gc.h header. + * configure.ac: Look for gc.h in gc subdirectory + * configure: regenerate + * Headers/Additions/GNUstepBase/config.h.in: regenerate + * Source/GNUmakefile: Don't attempt to build GSBlocks.m until it works + without causing link failures. + * Source/NSPortCoder.m: + * Source/NSKeyedArchiver.m: + * Source/NSGarbageCollector.m: + * Source/NSZone.m: + * Source/GSDictionary.m: + * Source/GSCountedSet.m: + * Source/NSNotificationCenter.m: + * Source/GSAttributedString.m: + * Source/NSObject.m: + * Source/NSConcreteMapTable.m: + * Source/Additions/GSMime.m: + * Source/Additions/GSObjCRuntime.m: + * Source/GSSet.m: + * Source/NSConnection.m: + * Source/NSThread.m: + * Source/NSConcreteHashTable.m: + Modify location of gc.h header. 2011-02-27 Richard Frith-Macdonald - * Source/ObjectiveC2/runtime.c: - * Headers/Additions/GNUstepBase/preface.h.in: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - Remove last vestiges of runtime specific memory allocation apart from - obsolete macros (marked as deprecated). + * Source/ObjectiveC2/runtime.c: + * Headers/Additions/GNUstepBase/preface.h.in: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + Remove last vestiges of runtime specific memory allocation apart from + obsolete macros (marked as deprecated). 2011-02-26 Richard Frith-Macdonald - * Source/NSDecimal.m: - Fix NaN comparison in GSDecimalCompare() - * Source/NSNumber.m: - Better match OSX for double comparison. + * Source/NSDecimal.m: + Fix NaN comparison in GSDecimalCompare() + * Source/NSNumber.m: + Better match OSX for double comparison. 2011-02-24 Richard Frith-Macdonald - * Source/NSNumber.m: - Fix error in float comparison. + * Source/NSNumber.m: + Fix error in float comparison. 2011-02-24 Niels Grewe - * Source/NSUserDefaults.m - * Source/NSKeyValueObserving.m: - Fix typos. + * Source/NSUserDefaults.m + * Source/NSKeyValueObserving.m: + Fix typos. 2011-02-23 Richard Frith-Macdonald - * Source/NSCalendarDate.m: - * Source/NSArray.m: - * Source/NSDebug.m: - * Source/NSCalendar.m: - * Source/NSURLResponse.m: - * Source/NSObject.m: - * Source/NSDecimalNumber.m: - * Source/Additions/GSMime.m: - * Source/NSDateFormatter.m: - * Source/NSDate.m: - * Source/NSDictionary.m: - * Source/NSSet.m: - * Headers/Foundation/NSCalendarDate.h: - * Headers/Foundation/NSDecimalNumber.h: - * Headers/Foundation/NSDate.h: - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSDictionary.h: - * Headers/Foundation/NSSet.h: - Tweaks to avoid compiler warnings on mingw and to make the - -descriptionWithLocale: method consistently take an id argument - as it now does on OSX. + * Source/NSCalendarDate.m: + * Source/NSArray.m: + * Source/NSDebug.m: + * Source/NSCalendar.m: + * Source/NSURLResponse.m: + * Source/NSObject.m: + * Source/NSDecimalNumber.m: + * Source/Additions/GSMime.m: + * Source/NSDateFormatter.m: + * Source/NSDate.m: + * Source/NSDictionary.m: + * Source/NSSet.m: + * Headers/Foundation/NSCalendarDate.h: + * Headers/Foundation/NSDecimalNumber.h: + * Headers/Foundation/NSDate.h: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSDictionary.h: + * Headers/Foundation/NSSet.h: + Tweaks to avoid compiler warnings on mingw and to make the + -descriptionWithLocale: method consistently take an id argument + as it now does on OSX. 2011-02-23 Richard Frith-Macdonald - * Source/GSString.m: Fix bugs in upper and lower casing of constant - strings. - * Source/NSTask.m: Force check of termination status when we call - -isRunning. + * Source/GSString.m: Fix bugs in upper and lower casing of constant + strings. + * Source/NSTask.m: Force check of termination status when we call + -isRunning. 2011-02-22 Nicola Pero - * Source/GSFFIInvocation.m (gs_find_best_typed_sel): Implemented - for __GNU_LIBOBJC__. Tidied up documentation. + * Source/GSFFIInvocation.m (gs_find_best_typed_sel): Implemented + for __GNU_LIBOBJC__. Tidied up documentation. 2011-02-22 Richard Frith-Macdonald - * Source/NSBundle.m: Make private executable path be an absolute path. - * Source/NSDateFormatter.m: - * Source/NSLocale.m: - * Source/NSNumberFormatter.m: - * Source/NSTimeZone.m: - Remove a few bogus underscores (pointed out by David) which could - potentially cause problems with compiler/linker etc. + * Source/NSBundle.m: Make private executable path be an absolute path. + * Source/NSDateFormatter.m: + * Source/NSLocale.m: + * Source/NSNumberFormatter.m: + * Source/NSTimeZone.m: + Remove a few bogus underscores (pointed out by David) which could + potentially cause problems with compiler/linker etc. 2011-02-21 Richard Frith-Macdonald - * Source/NSString.m: Modified stringByStandardizingPath and - stringByDeletingLastPathComponent to better match OSX behavior. + * Source/NSString.m: Modified stringByStandardizingPath and + stringByDeletingLastPathComponent to better match OSX behavior. 2011-02-21 Richard Frith-Macdonald - * Source/NSNumberFormatter.m: - * Headers/Foundation/NSNumberFormatter.h: - If we don't have ICU then the actual behavior is 10.0 style - irrespective of the formatter behavior setting. + * Source/NSNumberFormatter.m: + * Headers/Foundation/NSNumberFormatter.h: + If we don't have ICU then the actual behavior is 10.0 style + irrespective of the formatter behavior setting. 2011-02-21 11:05 David Chisnall - * Source/GSFFIInvocation.m: Some changes to method - type lookup when forwarding. Alway use the compiler-supplied type - information if it exists - this is guaranteed to by the correct - type encoding for the call frame and lets us deconstruct it - correctly. We can then fail gracefully later on when trying to - invoke the selector if the types in the callee don't match, - rather than by reading nonsense from the stack now. - - When using the GNUstep runtime, use the safe mechanism for - checking whether there is more than one typed selector, and only - use that as a guess if it is safe to do so. With the GCC runtime, - we are still stuck using the API that it is impossible to use - safely (we might be better off just giving up at this point), but - now we call this after -methodSignatureForSelector:, so the app - developer gets a chance to do the right thing before we do the - wrong thing. - - Also changed the assert to throw an exception if no type - signature can be found. This behaviour is consistent with Mac OS - X. + * Source/GSFFIInvocation.m: Some changes to method + type lookup when forwarding. Alway use the compiler-supplied type + information if it exists - this is guaranteed to by the correct + type encoding for the call frame and lets us deconstruct it + correctly. We can then fail gracefully later on when trying to + invoke the selector if the types in the callee don't match, + rather than by reading nonsense from the stack now. + + When using the GNUstep runtime, use the safe mechanism for + checking whether there is more than one typed selector, and only + use that as a guess if it is safe to do so. With the GCC runtime, + we are still stuck using the API that it is impossible to use + safely (we might be better off just giving up at this point), but + now we call this after -methodSignatureForSelector:, so the app + developer gets a chance to do the right thing before we do the + wrong thing. + + Also changed the assert to throw an exception if no type + signature can be found. This behaviour is consistent with Mac OS + X. 2011-02-20 Richard Frith-Macdonald - * Source/NSMethodSignature.m: - * Source/GSArray.m: - * Source/NSKeyValueObserving.m: - * Source/GSPrivate.h: - * Source/GSDictionary.m: - * Source/NSURLProtocol.m: - * Source/NSURL.m: - * Source/NSObject.m: - * Source/NSDecimalNumber.m: - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/GSInsensitiveDictionary.m: - * Source/Additions/GSLock.m: - * Source/GSSet.m: - * Source/GSString.m: - * Source/NSConnection.m: - * Source/NSData.m: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - Expose class pointer swizzling function in GSObjCRuntime. - Replace direct references to 'isa' pointer with objc_getClass() and - objcSetClass() calls (or occasionally calls to the -class method if - it seems more appropriate). + * Source/NSMethodSignature.m: + * Source/GSArray.m: + * Source/NSKeyValueObserving.m: + * Source/GSPrivate.h: + * Source/GSDictionary.m: + * Source/NSURLProtocol.m: + * Source/NSURL.m: + * Source/NSObject.m: + * Source/NSDecimalNumber.m: + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/Additions/GSLock.m: + * Source/GSSet.m: + * Source/GSString.m: + * Source/NSConnection.m: + * Source/NSData.m: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + Expose class pointer swizzling function in GSObjCRuntime. + Replace direct references to 'isa' pointer with objc_getClass() and + objcSetClass() calls (or occasionally calls to the -class method if + it seems more appropriate). 2011-02-20 Fred Kiefer - * Source/NSNumberFormatter.m (-init): Only check the formatter in - the ICU case. + * Source/NSNumberFormatter.m (-init): Only check the formatter in + the ICU case. 2011-02-20 Richard Frith-Macdonald - * Source/GSFFIInvocation.m: - * Source/NSCopyObject.m: - * Source/NSObject.m: - Replace old code directly referencing class_pointer ivar with calls - to the new runtime API treating objects as opaque pointers. + * Source/GSFFIInvocation.m: + * Source/NSCopyObject.m: + * Source/NSObject.m: + Replace old code directly referencing class_pointer ivar with calls + to the new runtime API treating objects as opaque pointers. 2011-02-20 Richard Frith-Macdonald - * Source/NSPortCoder.m: - * Source/common.h: - * Source/NSObject.m: - * Source/NSAutoreleasePool.m: - * Source/NSProxy.m: - * Source/NSSerializer.m: - Replace all calls to get_imp() with the new runtime API - class_getMethodImplementation(). + * Source/NSPortCoder.m: + * Source/common.h: + * Source/NSObject.m: + * Source/NSAutoreleasePool.m: + * Source/NSProxy.m: + * Source/NSSerializer.m: + Replace all calls to get_imp() with the new runtime API + class_getMethodImplementation(). 2011-02-20 Richard Frith-Macdonald - * Source/NSDistributedNotificationCenter.m: - * Source/GSFFCallInvocation.m: - * Source/GSFFIInvocation.m: - * Source/common.h: - * Source/NSConnection.m: - * Source/NSData.m: - Use GSObjCRuntime functions for selector types until/unless we can get - a standard runtime API that handles them. + * Source/NSDistributedNotificationCenter.m: + * Source/GSFFCallInvocation.m: + * Source/GSFFIInvocation.m: + * Source/common.h: + * Source/NSConnection.m: + * Source/NSData.m: + Use GSObjCRuntime functions for selector types until/unless we can get + a standard runtime API that handles them. 2011-02-19 Richard Frith-Macdonald - * Source/NSBundle.m: - * Source/NSProcessInfo.m: - * Source/NSConcretePointerFunctions.m: - * Source/GSFFCallInvocation.m: - * Source/NSZone.m: - * Source/NSCallBacks.m: - * Source/win32/NSMessagePortNameServer.m: - * Source/NSFileManager.m: - * Source/NSURLProtocol.m: - * Source/objc-load.m: - * Source/NSException.m: - * Source/cifframe.m: - * Source/NSLog.m: - * Tools/defaults.m: - * Tests/base/NSInvocation/Resources/InvokeProxy.m: - Remove obsolete calls to objc_malloc() in favour of NSZoneMalloc() or - malloc() where using zones is not appropriate. + * Source/NSBundle.m: + * Source/NSProcessInfo.m: + * Source/NSConcretePointerFunctions.m: + * Source/GSFFCallInvocation.m: + * Source/NSZone.m: + * Source/NSCallBacks.m: + * Source/win32/NSMessagePortNameServer.m: + * Source/NSFileManager.m: + * Source/NSURLProtocol.m: + * Source/objc-load.m: + * Source/NSException.m: + * Source/cifframe.m: + * Source/NSLog.m: + * Tools/defaults.m: + * Tests/base/NSInvocation/Resources/InvokeProxy.m: + Remove obsolete calls to objc_malloc() in favour of NSZoneMalloc() or + malloc() where using zones is not appropriate. 2011-02-19 Richard Frith-Macdonald - * Source/GSFFCallInvocation.m: Updated two obsolete runtime calls - * Source/common.h: Revert last change as it seemed pointless to - define macros within a private header which reproduce functions - we don't actually use (or want to use) within base. I think/hope - that the tiny change to GSFFcallInvocation.m is all that was needed. + * Source/GSFFCallInvocation.m: Updated two obsolete runtime calls + * Source/common.h: Revert last change as it seemed pointless to + define macros within a private header which reproduce functions + we don't actually use (or want to use) within base. I think/hope + that the tiny change to GSFFcallInvocation.m is all that was needed. 2011-02-19 16:02 David Chisnall - * Source/common.h: Add some macros that map some - libobjc functions to their runtime-specific variants. - This avoids the need for ugly #ifdefs everywhere (the next commit - will try to clean up some of this mess), and lets us use the _np - function names everywhere to explicitly note that we are using - runtime functions that are not present on OS X - apparently the - new GCC runtime does not add this suffix for some reason. + * Source/common.h: Add some macros that map some + libobjc functions to their runtime-specific variants. + This avoids the need for ugly #ifdefs everywhere (the next commit + will try to clean up some of this mess), and lets us use the _np + function names everywhere to explicitly note that we are using + runtime functions that are not present on OS X - apparently the + new GCC runtime does not add this suffix for some reason. 2011-02-16 Richard Frith-Macdonald - * Source/NSDecimalNumber.m: - * Source/NSNumber.m: - Quick hacks to try to get NaN comparison working. + * Source/NSDecimalNumber.m: + * Source/NSNumber.m: + Quick hacks to try to get NaN comparison working. 2011-02-16 Richard Frith-Macdonald - * Source/NSDateFormatter.m: - * Source/NSNumberFormatter.m: - Fix -initWithCoder: methods to create internal ivar storage. + * Source/NSDateFormatter.m: + * Source/NSNumberFormatter.m: + Fix -initWithCoder: methods to create internal ivar storage. 2011-02-16 Richard Frith-Macdonald - * Source/NSFileManager.m: - * Documentation/coding-standards.texi: - * Headers/Foundation/NSXMLParser.h: - Documentation tweaks. + * Source/NSFileManager.m: + * Documentation/coding-standards.texi: + * Headers/Foundation/NSXMLParser.h: + Documentation tweaks. 2011-02-16 Jens Ayton - * Source/NSPropertyList.m: Fix to support 64bit integers when parsing - an XML property list. + * Source/NSPropertyList.m: Fix to support 64bit integers when parsing + an XML property list. 2011-02-16 Richard Frith-Macdonald - * Tests/base: import the testsuite here - * Tests/GNUmakefile: add trivial makefile to run tests + * Tests/base: import the testsuite here + * Tests/GNUmakefile: add trivial makefile to run tests 2011-02-16 Wolfgang Lux - * Resources/German.lproj/Localizable.strings: Add translation for - undo menu item strings. + * Resources/German.lproj/Localizable.strings: Add translation for + undo menu item strings. 2011-02-16 Wolfgang Lux - * Source/NSDateFormatter.m (-initWithCoder:, -initWithDateFormat:): - Add missing calls to super/self initialization. + * Source/NSDateFormatter.m (-initWithCoder:, -initWithDateFormat:): + Add missing calls to super/self initialization. 2011-02-16 Richard Frith-Macdonald - * Source/common.h: - * Headers/Additions/GNUstepBase/GNUstep.h: - Implement David's idea of allowing some generalisation of the _() - macro by using a preprocessor define to set the bundle to be used - to lookup localisation information. + * Source/common.h: + * Headers/Additions/GNUstepBase/GNUstep.h: + Implement David's idea of allowing some generalisation of the _() + macro by using a preprocessor define to set the bundle to be used + to lookup localisation information. 2011-02-16 Richard Frith-Macdonald - * Source/GSInternal.h: - * Source/NSDateFormatter.m: - * Source/NSNumberFormatter.m: - * Headers/Foundation/NSPortCoder.h: - * Headers/Foundation/NSCache.h: - * Headers/Foundation/NSSpellServer.h: - * Headers/Foundation/NSDecimalNumber.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSTimer.h: - * Headers/Foundation/NSScanner.h: - * Headers/Foundation/NSDistributedNotificationCenter.h: - * Headers/Foundation/NSComparisonPredicate.h: - * Headers/Foundation/NSUndoManager.h: - * Headers/Foundation/NSDateFormatter.h: - * Headers/Foundation/NSAutoreleasePool.h: - * Headers/Foundation/NSXMLNode.h: - * Headers/Foundation/NSUserDefaults.h: - * Headers/Foundation/NSThread.h: - * Headers/Foundation/NSHost.h: - * Headers/Foundation/NSRegularExpression.h: - * Headers/Foundation/NSKeyedArchiver.h: - * Headers/Foundation/NSProtocolChecker.h: - * Headers/Foundation/NSError.h: - * Headers/Foundation/NSPortMessage.h: - * Headers/Foundation/NSFileHandle.h: - * Headers/Foundation/NSDistributedLock.h: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSSortDescriptor.h: - * Headers/Foundation/NSLocale.h: - * Headers/Foundation/NSTask.h: - * Headers/Foundation/NSArchiver.h: - * Headers/Foundation/NSInvocation.h: - * Headers/Foundation/NSFileManager.h: - * Headers/Foundation/NSNumberFormatter.h: - * Headers/Foundation/NSPortNameServer.h: - * Headers/Foundation/NSXMLParser.h: - * Headers/Foundation/NSIndexPath.h: - * Headers/Additions/GNUstepBase/GSMime.h: - * Headers/Additions/GNUstepBase/GSVersionMacros.h: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - More work on clarifying the use of the reserved/private data - pointer. Reinstate accidentally lost '@private', and add the - GS_UNUSED_IVAR attribute as requested by David to avoid static - analyser warnings where the reserved pointer is not actually used - yet. Tidy up latest files to use GSInternal.h + * Source/GSInternal.h: + * Source/NSDateFormatter.m: + * Source/NSNumberFormatter.m: + * Headers/Foundation/NSPortCoder.h: + * Headers/Foundation/NSCache.h: + * Headers/Foundation/NSSpellServer.h: + * Headers/Foundation/NSDecimalNumber.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSTimer.h: + * Headers/Foundation/NSScanner.h: + * Headers/Foundation/NSDistributedNotificationCenter.h: + * Headers/Foundation/NSComparisonPredicate.h: + * Headers/Foundation/NSUndoManager.h: + * Headers/Foundation/NSDateFormatter.h: + * Headers/Foundation/NSAutoreleasePool.h: + * Headers/Foundation/NSXMLNode.h: + * Headers/Foundation/NSUserDefaults.h: + * Headers/Foundation/NSThread.h: + * Headers/Foundation/NSHost.h: + * Headers/Foundation/NSRegularExpression.h: + * Headers/Foundation/NSKeyedArchiver.h: + * Headers/Foundation/NSProtocolChecker.h: + * Headers/Foundation/NSError.h: + * Headers/Foundation/NSPortMessage.h: + * Headers/Foundation/NSFileHandle.h: + * Headers/Foundation/NSDistributedLock.h: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSSortDescriptor.h: + * Headers/Foundation/NSLocale.h: + * Headers/Foundation/NSTask.h: + * Headers/Foundation/NSArchiver.h: + * Headers/Foundation/NSInvocation.h: + * Headers/Foundation/NSFileManager.h: + * Headers/Foundation/NSNumberFormatter.h: + * Headers/Foundation/NSPortNameServer.h: + * Headers/Foundation/NSXMLParser.h: + * Headers/Foundation/NSIndexPath.h: + * Headers/Additions/GNUstepBase/GSMime.h: + * Headers/Additions/GNUstepBase/GSVersionMacros.h: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + More work on clarifying the use of the reserved/private data + pointer. Reinstate accidentally lost '@private', and add the + GS_UNUSED_IVAR attribute as requested by David to avoid static + analyser warnings where the reserved pointer is not actually used + yet. Tidy up latest files to use GSInternal.h 2011-02-15 Richard Frith-Macdonald - * Source/GSLocale.m: - * Source/NSTimeZone.m: - * Source/NSBundle.m: - * Source/NSProcessInfo.m: - * Source/NSUndoManager.m: - * Source/NSFileHandle.m: - * Source/NSSortDescriptor.m: - * Source/NSFileManager.m: - * Source/common.h: - * Source/externs.m: - * Source/NSException.m: - * Source/NSString.m: - * Source/Additions/Unicode.m: - * Source/Additions/GSXML.m: - * Source/NSLocale.m: - * Source/NSTask.m: - As suggested by Wolfgang, change the _() macro for localization when - used inside base to use the base library bundle rather than the main - bundle. + * Source/GSLocale.m: + * Source/NSTimeZone.m: + * Source/NSBundle.m: + * Source/NSProcessInfo.m: + * Source/NSUndoManager.m: + * Source/NSFileHandle.m: + * Source/NSSortDescriptor.m: + * Source/NSFileManager.m: + * Source/common.h: + * Source/externs.m: + * Source/NSException.m: + * Source/NSString.m: + * Source/Additions/Unicode.m: + * Source/Additions/GSXML.m: + * Source/NSLocale.m: + * Source/NSTask.m: + As suggested by Wolfgang, change the _() macro for localization when + used inside base to use the base library bundle rather than the main + bundle. 2011-02-14 Stefan Bidigaray - * Headers/Foundation/NSDateFormatter.m: - * Source/NSDateFormatter.m: Changes for ABI compatibility. - * Source/NSNumberFormatter.m: Use unum_clone to copy formatter. + * Headers/Foundation/NSDateFormatter.m: + * Source/NSDateFormatter.m: Changes for ABI compatibility. + * Source/NSNumberFormatter.m: Use unum_clone to copy formatter. 2011-02-14 German Arias - * Resources/Spanish.lproj/Localizable.strings: Added localized strings - for undo/redo. - * Source/NSUndoManager.m: Added GSBaseLocalizedString() function. + * Resources/Spanish.lproj/Localizable.strings: Added localized strings + for undo/redo. + * Source/NSUndoManager.m: Added GSBaseLocalizedString() function. 2011-02-14 Richard Frith-Macdonald - * Source/NSFileManager.m: - * Source/GSInternal.h: - * Source/DocMakefile: - * Source/Additions/GSMime.m: - * Source/Additions/GSObjCRuntime.m: - * Source/NSConnection.m: - * Source/NSDateFormatter.m: - * Documentation/coding-standards.texi: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSPropertyList.h: - * Headers/Foundation/NSConnection.h: - * Headers/Foundation/NSObjCRuntime.h: - * Headers/Foundation/NSFileHandle.h: - * Headers/Additions/GNUstepBase/GSMime.h: - * Tools/DocMakefile: - * Tools/AGSParser.m: - Documentation cleanups and fixes ... add new macros to list of symbols - to ignore. Add support for @optional and @required. Add support for - method attributes. + * Source/NSFileManager.m: + * Source/GSInternal.h: + * Source/DocMakefile: + * Source/Additions/GSMime.m: + * Source/Additions/GSObjCRuntime.m: + * Source/NSConnection.m: + * Source/NSDateFormatter.m: + * Documentation/coding-standards.texi: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSPropertyList.h: + * Headers/Foundation/NSConnection.h: + * Headers/Foundation/NSObjCRuntime.h: + * Headers/Foundation/NSFileHandle.h: + * Headers/Additions/GNUstepBase/GSMime.h: + * Tools/DocMakefile: + * Tools/AGSParser.m: + Documentation cleanups and fixes ... add new macros to list of symbols + to ignore. Add support for @optional and @required. Add support for + method attributes. 2011-02-14 Richard Frith-Macdonald - * Headers/Foundation/NSPortCoder.h: - * Headers/Foundation/NSCache.h: - * Headers/Foundation/NSSpellServer.h: - * Headers/Foundation/NSDecimalNumber.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSTimer.h: - * Headers/Foundation/NSScanner.h: - * Headers/Foundation/NSDistributedNotificationCenter.h: - * Headers/Foundation/NSComparisonPredicate.h: - * Headers/Foundation/NSUndoManager.h: - * Headers/Foundation/NSDateFormatter.h: - * Headers/Foundation/NSAutoreleasePool.h: - * Headers/Foundation/NSUserDefaults.h: - * Headers/Foundation/NSXMLNode.h: - * Headers/Foundation/NSThread.h: - * Headers/Foundation/NSHost.h: - * Headers/Foundation/NSRegularExpression.h: - * Headers/Foundation/NSKeyedArchiver.h: - * Headers/Foundation/NSProtocolChecker.h: - * Headers/Foundation/NSError.h: - * Headers/Foundation/NSPortMessage.h: - * Headers/Foundation/NSFileHandle.h: - * Headers/Foundation/NSDistributedLock.h: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSSortDescriptor.h: - * Headers/Foundation/NSLocale.h: - * Headers/Foundation/NSTask.h: - * Headers/Foundation/NSArchiver.h: - * Headers/Foundation/NSInvocation.h: - * Headers/Foundation/NSFileManager.h: - * Headers/Foundation/NSNumberFormatter.h: - * Headers/Foundation/NSPortNameServer.h: - * Headers/Foundation/NSXMLParser.h: - * Headers/Foundation/NSIndexPath.h: - * Headers/Additions/GNUstepBase/GSMime.h: - * Headers/Additions/GNUstepBase/GSVersionMacros.h: - Make the presence of the pointer for reserved/private data clearer - and more explicit to try to ensure we actually remember to use it - to prevent ABI breakage. - * Source/NSNumberFormatter.m: - Modified to store new/extra ivars via the _reserved pointer so that - NSNumberFormatter can be safely subclassed by code outside the - library. + * Headers/Foundation/NSPortCoder.h: + * Headers/Foundation/NSCache.h: + * Headers/Foundation/NSSpellServer.h: + * Headers/Foundation/NSDecimalNumber.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSTimer.h: + * Headers/Foundation/NSScanner.h: + * Headers/Foundation/NSDistributedNotificationCenter.h: + * Headers/Foundation/NSComparisonPredicate.h: + * Headers/Foundation/NSUndoManager.h: + * Headers/Foundation/NSDateFormatter.h: + * Headers/Foundation/NSAutoreleasePool.h: + * Headers/Foundation/NSUserDefaults.h: + * Headers/Foundation/NSXMLNode.h: + * Headers/Foundation/NSThread.h: + * Headers/Foundation/NSHost.h: + * Headers/Foundation/NSRegularExpression.h: + * Headers/Foundation/NSKeyedArchiver.h: + * Headers/Foundation/NSProtocolChecker.h: + * Headers/Foundation/NSError.h: + * Headers/Foundation/NSPortMessage.h: + * Headers/Foundation/NSFileHandle.h: + * Headers/Foundation/NSDistributedLock.h: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSSortDescriptor.h: + * Headers/Foundation/NSLocale.h: + * Headers/Foundation/NSTask.h: + * Headers/Foundation/NSArchiver.h: + * Headers/Foundation/NSInvocation.h: + * Headers/Foundation/NSFileManager.h: + * Headers/Foundation/NSNumberFormatter.h: + * Headers/Foundation/NSPortNameServer.h: + * Headers/Foundation/NSXMLParser.h: + * Headers/Foundation/NSIndexPath.h: + * Headers/Additions/GNUstepBase/GSMime.h: + * Headers/Additions/GNUstepBase/GSVersionMacros.h: + Make the presence of the pointer for reserved/private data clearer + and more explicit to try to ensure we actually remember to use it + to prevent ABI breakage. + * Source/NSNumberFormatter.m: + Modified to store new/extra ivars via the _reserved pointer so that + NSNumberFormatter can be safely subclassed by code outside the + library. 2011-02-13 Stefan Bidigaray - * Source/NSNumberFormatter.m: Moved 10.4+ functionality to a subclass. + * Source/NSNumberFormatter.m: Moved 10.4+ functionality to a subclass. 2011-02-13 Richard Frith-Macdonald - * Source/NSPathUtilities.m: NSFullUserName() ... use short name if - no long one is available. + * Source/NSPathUtilities.m: NSFullUserName() ... use short name if + no long one is available. 2011-02-13 Philippe Roussel - * Source/NSPointerArray.m: replace memcpy with memmove for safety. + * Source/NSPointerArray.m: replace memcpy with memmove for safety. 2011-02-13 Richard Frith-Macdonald - * Source/Additions/NSObject+GNUstepBase.m: - Use more runtime functions directly. Standardise exception formats. - * Source/ObjectiveC2/runtime.c: Fix some cases of dereferencing null - pointers. + * Source/Additions/NSObject+GNUstepBase.m: + Use more runtime functions directly. Standardise exception formats. + * Source/ObjectiveC2/runtime.c: Fix some cases of dereferencing null + pointers. 2011-02-12 Richard Frith-Macdonald - * Source/NSObject.m: Obtain NSZombie class pointer using - objc_lookUpClass() to avoid the use of NSString inside the NSObject - initialize method. Re-order code for safety. Add lots of comments. + * Source/NSObject.m: Obtain NSZombie class pointer using + objc_lookUpClass() to avoid the use of NSString inside the NSObject + initialize method. Re-order code for safety. Add lots of comments. 2011-02-12 Richard Frith-Macdonald - * Source/NSPortCoder.m: - * Source/GSPrivate.h: - * Source/NSNotificationCenter.m: - * Source/NSConcreteMapTable.m: - * Source/NSThread.m: - * Source/NSSerializer.m: - * Headers/Additions/GNUstepBase/GSVersionMacros.h: - Update with new GS_CONSUMED macro to try to avoid static analyzer - false positives. + * Source/NSPortCoder.m: + * Source/GSPrivate.h: + * Source/NSNotificationCenter.m: + * Source/NSConcreteMapTable.m: + * Source/NSThread.m: + * Source/NSSerializer.m: + * Headers/Additions/GNUstepBase/GSVersionMacros.h: + Update with new GS_CONSUMED macro to try to avoid static analyzer + false positives. 2011-02-12 Richard Frith-Macdonald - * Source/NSLocale.m: fix memory leak - * Source/NSThread.m: - * Source/NSNotificationCenter.m: - * Source/NSPortCoder.m: - * Source/NSSerializer.m: - * Source/NSUserDefaults.m: - * Source/GSPrivate.h: - * Source/Additions/NSObject+GNUstepBase.m: - Add code to try to prevent clang static analyser false warnings. + * Source/NSLocale.m: fix memory leak + * Source/NSThread.m: + * Source/NSNotificationCenter.m: + * Source/NSPortCoder.m: + * Source/NSSerializer.m: + * Source/NSUserDefaults.m: + * Source/GSPrivate.h: + * Source/Additions/NSObject+GNUstepBase.m: + Add code to try to prevent clang static analyser false warnings. 2011-02-12 Richard Frith-Macdonald - * Source/GSPrivate.h: - * Source/NSObject.m: - * Source/Additions/NSObject+GNUstepBase.m: - Remove (unused) code for cleanup at program exit. Let's think of a - better way (eg runtime support to call a +atExit method). + * Source/GSPrivate.h: + * Source/NSObject.m: + * Source/Additions/NSObject+GNUstepBase.m: + Remove (unused) code for cleanup at program exit. Let's think of a + better way (eg runtime support to call a +atExit method). 2011-02-11 Richard Frith-Macdonald - * Source/NSThread.m: Avoid some unnecessary locking. - I think this completes recommitting of all the changes made with - bugfixes to get them all to at least compile/link on my centos and - windowsxp systems and to pass the testsuite on centos. + * Source/NSThread.m: Avoid some unnecessary locking. + I think this completes recommitting of all the changes made with + bugfixes to get them all to at least compile/link on my centos and + windowsxp systems and to pass the testsuite on centos. 2011-02-11 Richard Frith-Macdonald - * Source/GSPrivate.h: Fixed the new GS_BEGINITEMBUF() - code ... was causing hard-to-track-down memory corruption which - unfortunately didn't show up in the testsuite (or I'd not have - re-comitted this code in the first place). + * Source/GSPrivate.h: Fixed the new GS_BEGINITEMBUF() + code ... was causing hard-to-track-down memory corruption which + unfortunately didn't show up in the testsuite (or I'd not have + re-comitted this code in the first place). 2_011-02-11 Richard Frith-Macdonald - * Source/NSKeyValueObserving.m: Recommit - Reviewed and tested. - * Source/NAutoreleasePool.m: Make +initialize do nothing so that it - won't interfere with anythign else when called by [NSObject+initialize] + * Source/NSKeyValueObserving.m: Recommit + Reviewed and tested. + * Source/NAutoreleasePool.m: Make +initialize do nothing so that it + won't interfere with anythign else when called by [NSObject+initialize] 2011-02-11 Richard Frith-Macdonald - * Source/NSLocale.m: Recommit - * Source/NSUnarchiver.m: Recommit - I have now test these two and recommited them as working. - * Source/NSPropertyList.m: Revert - These was quietly modified/broken since my last commit ... - reverting to the previous tested/working version. + * Source/NSLocale.m: Recommit + * Source/NSUnarchiver.m: Recommit + I have now test these two and recommited them as working. + * Source/NSPropertyList.m: Revert + These was quietly modified/broken since my last commit ... + reverting to the previous tested/working version. 2011-02-11 Richard Frith-Macdonald - * Source/NSArray.m: Recommit fixed version - * Source/GSICUString.h: Formatting fixups - * Source/GSICUString.m: Recommit - * Source/NSAttributedString.m: Recommit - * Source/NSData.m: Recommit - * Source/NSMethodSignature.m: Recommit + * Source/NSArray.m: Recommit fixed version + * Source/GSICUString.h: Formatting fixups + * Source/GSICUString.m: Recommit + * Source/NSAttributedString.m: Recommit + * Source/NSData.m: Recommit + * Source/NSMethodSignature.m: Recommit 2011-02-11 Richard Frith-Macdonald - * Source/NSPropertyList.m: Recommit with modification fixed and tested. - * Source/NSOperation.m: new tweak to avoid compiler warning. - * Source/GSPrivate.h: Recommit most recent version after testing. + * Source/NSPropertyList.m: Recommit with modification fixed and tested. + * Source/NSOperation.m: new tweak to avoid compiler warning. + * Source/GSPrivate.h: Recommit most recent version after testing. 2011-02-11 Richard Frith-Macdonald - Revert everything back from boken code at 32071 to wrking code at 32051 - due to loads of commits of code which have been occurring to fast for - anyone to review, and either don't compile or fail the testsuite. - Lets go through things checking that they at least compile with gcc - and pass the testsuite before we recommit them! + Revert everything back from boken code at 32071 to wrking code at 32051 + due to loads of commits of code which have been occurring to fast for + anyone to review, and either don't compile or fail the testsuite. + Lets go through things checking that they at least compile with gcc + and pass the testsuite before we recommit them! 2011-02-11 Richard Frith-Macdonald - * Source/GSICUString.m: - Fix leak spotted by static analyser. - * Source/NSArray.m: - Fix error in enumeration changes causing compile failure. + * Source/GSICUString.m: + Fix leak spotted by static analyser. + * Source/NSArray.m: + Fix error in enumeration changes causing compile failure. 2011-02-11 12:06 David Chisnall - * Source/GSPrivate.h: Added exception-safe version - of the GS_BEGINITEMBUF() macro. As a side effect, this should - silence the zero-sized VLA warnings in the static analyser. + * Source/GSPrivate.h: Added exception-safe version + of the GS_BEGINITEMBUF() macro. As a side effect, this should + silence the zero-sized VLA warnings in the static analyser. - Note: This macro is currently only used on GCC 4+ and clang. It - depends on __attribute__((cleanup)), which was introduced some - time in the 3.x series, but I'm not sure exactly when (3.2 / 3.3 - I think), so someone who cares about gcc 3.x can tweak this if - they want (not sure if anyone does - I think most people use - 2.95, 4.x, or clang). + Note: This macro is currently only used on GCC 4+ and clang. It + depends on __attribute__((cleanup)), which was introduced some + time in the 3.x series, but I'm not sure exactly when (3.2 / 3.3 + I think), so someone who cares about gcc 3.x can tweak this if + they want (not sure if anyone does - I think most people use + 2.95, 4.x, or clang). 2011-02-11 Richard Frith-Macdonald - * Source/NSArray.m: - * Source/NSString.m: - * Source/NSPointerArray.m: - * Source/NSAttributedString.m: - * Source/Additions/GSXML.m: - * Source/NSData.m: - * Tools/AGSParser.m: - Tweaks to try to avoid clang analyser warnings. - * Source/NSPropertyList.m: - Revert last change. - * Source/NSObject.m: - Rewrite zombie setup code to avoid crashes caused by latest change. + * Source/NSArray.m: + * Source/NSString.m: + * Source/NSPointerArray.m: + * Source/NSAttributedString.m: + * Source/Additions/GSXML.m: + * Source/NSData.m: + * Tools/AGSParser.m: + Tweaks to try to avoid clang analyser warnings. + * Source/NSPropertyList.m: + Revert last change. + * Source/NSObject.m: + Rewrite zombie setup code to avoid crashes caused by latest change. 2011-02-11 Stefan Bidigaray - * Source/NSDateFormatter.m: Avoid multiple memory copy operations. + * Source/NSDateFormatter.m: Avoid multiple memory copy operations. 2011-02-10 18:54 David Chisnall - * trunk/config/config.joinable.m, - trunk/config/objc-common.g: Don't use Object in - configure tests (not present in GNUstep runtime). + * trunk/config/config.joinable.m, + trunk/config/objc-common.g: Don't use Object in + configure tests (not present in GNUstep runtime). 2011-02-10 18:53 David Chisnall - * Source/NSObject.m: Use NSClassFromString() to - look up NSZombie class. This has two advantages: + * Source/NSObject.m: Use NSClassFromString() to + look up NSZombie class. This has two advantages: - 1) Doesn't rely on Apple-incompatible behaviour in the GCC - runtime that introduces fun heisenbugs. - 2) Doesn't require constructing the dtable for NSZombie if we're - not actually using it. + 1) Doesn't rely on Apple-incompatible behaviour in the GCC + runtime that introduces fun heisenbugs. + 2) Doesn't require constructing the dtable for NSZombie if we're + not actually using it. 2011-02-10 Richard Frith-Macdonald - * Source/NSSpellServer.m: Avoid compiler warning. - * Source/NSPathUtilities.m: - * Source/NSMessagePortNameServer.m: - * Source/NSKeyValueObserving.m: - * Source/NSURLProtocol.m: - * Source/NSString.m: - * Source/NSNumberFormatter.m: - * Source/NSXMLParser.m: - Fix memory leaks + * Source/NSSpellServer.m: Avoid compiler warning. + * Source/NSPathUtilities.m: + * Source/NSMessagePortNameServer.m: + * Source/NSKeyValueObserving.m: + * Source/NSURLProtocol.m: + * Source/NSString.m: + * Source/NSNumberFormatter.m: + * Source/NSXMLParser.m: + Fix memory leaks 2011-02-10 11:02 David Chisnall - * Headers/Additions/GNUstepBase/GSMime.h, - Headers/Additions/GNUstepBase/GSVersionMacros.h, - Headers/Foundation/NSArchiver.h, - Headers/Foundation/NSAutoreleasePool.h, - Headers/Foundation/NSBundle.h, - Headers/Foundation/NSCache.h, - Headers/Foundation/NSComparisonPredicate.h, - Headers/Foundation/NSDateFormatter.h, - Headers/Foundation/NSDecimalNumber.h, - Headers/Foundation/NSDistributedLock.h, - Headers/Foundation/NSDistributedNotificationCenter.h, - Headers/Foundation/NSError.h, - Headers/Foundation/NSFileHandle.h, - Headers/Foundation/NSFileManager.h, - Headers/Foundation/NSHost.h, - Headers/Foundation/NSIndexPath.h, - Headers/Foundation/NSInvocation.h, - Headers/Foundation/NSKeyedArchiver.h, - Headers/Foundation/NSLocale.h, - Headers/Foundation/NSNumberFormatter.h, - Headers/Foundation/NSPort.h, - Headers/Foundation/NSPortCoder.h, - Headers/Foundation/NSPortMessage.h, - Headers/Foundation/NSPortNameServer.h, - Headers/Foundation/NSProtocolChecker.h, - Headers/Foundation/NSRegularExpression.h, - Headers/Foundation/NSScanner.h, - Headers/Foundation/NSSortDescriptor.h, - Headers/Foundation/NSTask.h, - Headers/Foundation/NSThread.h, - Headers/Foundation/NSTimer.h, - Headers/Foundation/NSUndoManager.h, - Headers/Foundation/NSUserDefaults.h, - Headers/Foundation/NSXMLNode.h, - Headers/Foundation/NSXMLParser.h: Add a - GS_PADDING_IVAR macro. This defines the void *gs_unused; instance - variable with __attribute__((unused)) on clang so that the static - analyser only reports unused ivars that we expect to be used. - This also makes it slightly easier to add the padding ivar to new - classes. - - Note: The padding ivar has been added to NSRegularExpression. - This will break the ABI for anyone subclassing - NSRegularExpression, but hopefully that's no one (done before the - next release, to make sure that we don't break the ABI between - releases, only for people following -trunk). + * Headers/Additions/GNUstepBase/GSMime.h, + Headers/Additions/GNUstepBase/GSVersionMacros.h, + Headers/Foundation/NSArchiver.h, + Headers/Foundation/NSAutoreleasePool.h, + Headers/Foundation/NSBundle.h, + Headers/Foundation/NSCache.h, + Headers/Foundation/NSComparisonPredicate.h, + Headers/Foundation/NSDateFormatter.h, + Headers/Foundation/NSDecimalNumber.h, + Headers/Foundation/NSDistributedLock.h, + Headers/Foundation/NSDistributedNotificationCenter.h, + Headers/Foundation/NSError.h, + Headers/Foundation/NSFileHandle.h, + Headers/Foundation/NSFileManager.h, + Headers/Foundation/NSHost.h, + Headers/Foundation/NSIndexPath.h, + Headers/Foundation/NSInvocation.h, + Headers/Foundation/NSKeyedArchiver.h, + Headers/Foundation/NSLocale.h, + Headers/Foundation/NSNumberFormatter.h, + Headers/Foundation/NSPort.h, + Headers/Foundation/NSPortCoder.h, + Headers/Foundation/NSPortMessage.h, + Headers/Foundation/NSPortNameServer.h, + Headers/Foundation/NSProtocolChecker.h, + Headers/Foundation/NSRegularExpression.h, + Headers/Foundation/NSScanner.h, + Headers/Foundation/NSSortDescriptor.h, + Headers/Foundation/NSTask.h, + Headers/Foundation/NSThread.h, + Headers/Foundation/NSTimer.h, + Headers/Foundation/NSUndoManager.h, + Headers/Foundation/NSUserDefaults.h, + Headers/Foundation/NSXMLNode.h, + Headers/Foundation/NSXMLParser.h: Add a + GS_PADDING_IVAR macro. This defines the void *gs_unused; instance + variable with __attribute__((unused)) on clang so that the static + analyser only reports unused ivars that we expect to be used. + This also makes it slightly easier to add the padding ivar to new + classes. + + Note: The padding ivar has been added to NSRegularExpression. + This will break the ABI for anyone subclassing + NSRegularExpression, but hopefully that's no one (done before the + next release, to make sure that we don't break the ABI between + releases, only for people following -trunk). 2011-02-10 Richard Frith-Macdonald - * Source/GSSocketStream.m: - * Source/NSPropertyList.m: - * Source/NSUserDefaults.m: - * Source/NSException.m: - * Source/NSURL.m: - * Source/NSDecimalNumber.m: - * Source/Additions/GSMime.m: - * Source/GSFileHandle.m: - * Source/NSNumberFormatter.m: - * Tools/gdomap.c: - * Tools/HTMLLinker.m: - Fix a couple of minor/theoretical memory leaks and make other code - alterations to try to avoid clang static analyser reporting some - issues. - * Source/GSPrivate.h: - * Source/NSObject.m: - * Source/Additions/NSObject+GNUstepBase.m: - New code to provide a single location to cache information which - should exist for the lifetime of the process, and a function to - clean it up on process exit. Just a placeholder so far. + * Source/GSSocketStream.m: + * Source/NSPropertyList.m: + * Source/NSUserDefaults.m: + * Source/NSException.m: + * Source/NSURL.m: + * Source/NSDecimalNumber.m: + * Source/Additions/GSMime.m: + * Source/GSFileHandle.m: + * Source/NSNumberFormatter.m: + * Tools/gdomap.c: + * Tools/HTMLLinker.m: + Fix a couple of minor/theoretical memory leaks and make other code + alterations to try to avoid clang static analyser reporting some + issues. + * Source/GSPrivate.h: + * Source/NSObject.m: + * Source/Additions/NSObject+GNUstepBase.m: + New code to provide a single location to cache information which + should exist for the lifetime of the process, and a function to + clean it up on process exit. Just a placeholder so far. 2011-02-09 Stefan Bidigaray - * Source/NSTimeZone.m: ([-daylightSavingTimeOffsetForDate:]) Implement. + * Source/NSTimeZone.m: ([-daylightSavingTimeOffsetForDate:]) Implement. 2011-02-09 Stefan Bidigaray - * Source/NSTimeZone.m: ([-localizedName:locale:]) Implemented method. + * Source/NSTimeZone.m: ([-localizedName:locale:]) Implemented method. 2011-02-09 Stefan Bidigaray - * configure: - * configure.ac: - * Headers/Additions/GNUstepBase/config.h.in: - * Source/NSDateFormatter.m: ([-dateFormatFromTemplate:options:locale:]) - Fix completely broken method using unicode/udatpg.h. + * configure: + * configure.ac: + * Headers/Additions/GNUstepBase/config.h.in: + * Source/NSDateFormatter.m: ([-dateFormatFromTemplate:options:locale:]) + Fix completely broken method using unicode/udatpg.h. 2011-02-07 Richard Frith-Macdonald - * Source/NSLocale.m: Fix canonical identifiers to return the input - string if no other value is found. Refrain from putting nil locale - identifier in dictionary. Fix leak of components dictionary when - returning an existing locale by id. + * Source/NSLocale.m: Fix canonical identifiers to return the input + string if no other value is found. Refrain from putting nil locale + identifier in dictionary. Fix leak of components dictionary when + returning an existing locale by id. 2011-02-04 Richard Frith-Macdonald - * Source/NSConcretePointerFunctions.m: objects with weak memory should - not be retained. + * Source/NSConcretePointerFunctions.m: objects with weak memory should + not be retained. 2011-02-03 Philippe Roussel - * Source/NSPropertyList.m: Fix memory leaks. + * Source/NSPropertyList.m: Fix memory leaks. 2011-02-03 Richard Frith-Macdonald - * Source/GSNetServices.h: - * Source/GSMDNSNetServices.m: - * Headers/Foundation/NSNetServices.h: - Tweaks to get MDNS code to compile again. + * Source/GSNetServices.h: + * Source/GSMDNSNetServices.m: + * Headers/Foundation/NSNetServices.h: + Tweaks to get MDNS code to compile again. 2011-02-02 Stefan Bidigaray - * Source/NSDateFormatter.m: ([-doesRelativeDateFormatting]) - ([-setDoesRelativeDateFormatting:]) Implemented methods. + * Source/NSDateFormatter.m: ([-doesRelativeDateFormatting]) + ([-setDoesRelativeDateFormatting:]) Implemented methods. 2011-02-01 Richard Frith-Macdonald - * Source/NSPointerArray.m: ([-allObjects]) implement missing method. + * Source/NSPointerArray.m: ([-allObjects]) implement missing method. 2011-01-29 Stefan Bidigaray - * Source/NSCalendar.m: Handle current calendar updates. + * Source/NSCalendar.m: Handle current calendar updates. 2011-01-29 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Fix bug with notifications ... was not always - sending them when a domain was modified. + * Source/NSUserDefaults.m: Fix bug with notifications ... was not always + sending them when a domain was modified. 2011-01-29 Stefan Bidigaray - * Headers/Foundation/NSLocale.h: Use GS_EXPOSE(NSLocale). - * Source/NSLocale.m: ([-autoupdatingCurrentLocale]) Handle locale - updates. - ([-currentLocale]) Check Locale default for current user's locale. - ([-preferredLanguages]) Do not add same language multiple times. + * Headers/Foundation/NSLocale.h: Use GS_EXPOSE(NSLocale). + * Source/NSLocale.m: ([-autoupdatingCurrentLocale]) Handle locale + updates. + ([-currentLocale]) Check Locale default for current user's locale. + ([-preferredLanguages]) Do not add same language multiple times. 2011-01-28 Stefan Bidigaray - * Source/NSNumberFormatter.m: Fixed errors found by test suite. + * Source/NSNumberFormatter.m: Fixed errors found by test suite. 2011-01-27 Stefan Bidigaray - * Source/NSCalendar.m: Add -isEqual:. + * Source/NSCalendar.m: Add -isEqual:. 2011-01-27 Stefan Bidigaray - * Source/NSCalendar.m: Open UCalendar before use. + * Source/NSCalendar.m: Open UCalendar before use. 2011-01-27 Stefan Bidigaray - * Source/NSNumberFormatter.m: Set some sensible defaults. + * Source/NSNumberFormatter.m: Set some sensible defaults. 2011-01-26 Stefan Bidigaray - * Source/NSLocale.m: Add currency code to locale identifier, if present. - * Source/NSDateFormatter.m: Fix crash on dealloc because of autoreleased - object. + * Source/NSLocale.m: Add currency code to locale identifier, if present. + * Source/NSDateFormatter.m: Fix crash on dealloc because of autoreleased + object. 2011-01-26 Stefan Bidigaray - * Source/NSLocale.m: Minor memory mgt fixes. + * Source/NSLocale.m: Minor memory mgt fixes. 2011-01-24 Stefan Bidigaray - * Source/NSNumberFormatter.m: Fixes for formatter behavior. + * Source/NSNumberFormatter.m: Fixes for formatter behavior. 2011-01-24 Stefan Bidigaray - * Source/NSDateFormatter.m: Check ICU presence in private function. + * Source/NSDateFormatter.m: Check ICU presence in private function. 2011-01-23 Stefan Bidigaray - * Headers/Foundation/NSDateFormatter.h: - * Source/NSDateFormatter.m: Redo the calendar code. + * Headers/Foundation/NSDateFormatter.h: + * Source/NSDateFormatter.m: Redo the calendar code. 2011-01-23 Stefan Bidigaray - * Headers/Foundation/NSDateFormatter.h: - * Source/NSDateFormatter.m: Add calendar. - * Source/NSNumberFormatter.m: Compile again. + * Headers/Foundation/NSDateFormatter.h: + * Source/NSDateFormatter.m: Add calendar. + * Source/NSNumberFormatter.m: Compile again. 2011-01-23 Stefan Bidigaray - * Source/NSDateFormatter.m: - * Source/NSNumberFormatter.m: - * Source/NSCalendar.m: Remove use of OS_API_VERSION() in .m files. + * Source/NSDateFormatter.m: + * Source/NSNumberFormatter.m: + * Source/NSCalendar.m: Remove use of OS_API_VERSION() in .m files. 2011-01-23 15:42 David Chisnall - * Source/NSNumberFormatter.m: Some small fixes in - NSNumberFormatter. Mostly stop using == to compare C strings. + * Source/NSNumberFormatter.m: Some small fixes in + NSNumberFormatter. Mostly stop using == to compare C strings. 2011-01-23 Stefan Bidigaray - * Source/NSDateFormatter.m: Initialize UDateFormat before using it. - * Source/NSCalendar.m: Implement -components:fromDate:. + * Source/NSDateFormatter.m: Initialize UDateFormat before using it. + * Source/NSCalendar.m: Implement -components:fromDate:. 2011-01-23 Stefan Bidigaray - * Source/NSDateFormatter.m: Implemented a few more methods. + * Source/NSDateFormatter.m: Implemented a few more methods. 2011-01-22 Stefan Bidigaray - * configure: - * configure.ac: - * Headers/Additions/GNUstepBase/config.h.in: Added check for - unicode/udat.h. - * Headers/Foundation/NSDateFormatter.h: - * Source/NSDateFormatter.m: Implemented a few methods. + * configure: + * configure.ac: + * Headers/Additions/GNUstepBase/config.h.in: Added check for + unicode/udat.h. + * Headers/Foundation/NSDateFormatter.h: + * Source/NSDateFormatter.m: Implemented a few methods. 2011-01-22 Stefan Bidigaray - * Headers/Foundation/NSDateFormatter.h: - * Source/NSDateFormatter.m: Added stub for 10.4 and above methods. + * Headers/Foundation/NSDateFormatter.h: + * Source/NSDateFormatter.m: Added stub for 10.4 and above methods. 2011-01-21 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Add support for GlobalDefaults directory - * Source/NSUserDefaults.m: Document GlobalDefaults directory - * Documentation/Base.gsdoc: Document GlobalDefaults directory - Implement suggestion by David Chisnall. - New GlobalDefaults directory support ... if there are .plist files - in this subdirectory, merge them in before merging in the contents of the GlobalDefaults.plist file. - Deprecate use of the old GNUSTEP_EXTRA config file entry. + * Source/NSPathUtilities.m: Add support for GlobalDefaults directory + * Source/NSUserDefaults.m: Document GlobalDefaults directory + * Documentation/Base.gsdoc: Document GlobalDefaults directory + Implement suggestion by David Chisnall. + New GlobalDefaults directory support ... if there are .plist files + in this subdirectory, merge them in before merging in the contents of the GlobalDefaults.plist file. + Deprecate use of the old GNUSTEP_EXTRA config file entry. 2011-01-18 Richard Frith-Macdonald - * Source/NSPropertyList.m: Fix to cope with NSXMLParser reporting - whitespace as character data. + * Source/NSPropertyList.m: Fix to cope with NSXMLParser reporting + whitespace as character data. 2011-01-18 Richard Frith-Macdonald - * Source/NSPropertyList.m: For OSX compatibility we now quote strings - in property lists of they contain non-alphanumerics. We also warn - when we parse a dictionary with a missing semicolon at the end. - * Source/NSXMLParser.m: For OSX compatibility we report all character - data as characters and never as ignorable whitespace, though this - seems perverse. - Implement insertion of default attribute values into elements if we - have parsed an !ATTLIST which defines them. + * Source/NSPropertyList.m: For OSX compatibility we now quote strings + in property lists of they contain non-alphanumerics. We also warn + when we parse a dictionary with a missing semicolon at the end. + * Source/NSXMLParser.m: For OSX compatibility we report all character + data as characters and never as ignorable whitespace, though this + seems perverse. + Implement insertion of default attribute values into elements if we + have parsed an !ATTLIST which defines them. 2011-01-17 Richard Frith-Macdonald - * Source/GSFormat.m: Print '(null)' rather than '(nil)' for a nil - object as this seems to be what OSX does now. - * Source/NSXMLParser.m: Implement partial support for declarations. + * Source/GSFormat.m: Print '(null)' rather than '(nil)' for a nil + object as this seems to be what OSX does now. + * Source/NSXMLParser.m: Implement partial support for declarations. 2011-01-12 Stefan Bidigaray - * Source/NSNumberFormatter.m: Implemented more methods. - ([-stringForObjectValue:]): Add code for NSNumberFormatterBehavior10_4. + * Source/NSNumberFormatter.m: Implemented more methods. + ([-stringForObjectValue:]): Add code for NSNumberFormatterBehavior10_4. 2011-01-11 Stefan Bidigaray - * Source/NSLocale.m: Removed NSLog used for debugging. - * Source/NSNumberFormatter.m: Fixed decimal separator behavior - for OS X > 10.4. + * Source/NSLocale.m: Removed NSLog used for debugging. + * Source/NSNumberFormatter.m: Fixed decimal separator behavior + for OS X > 10.4. 2011-01-11 Richard Frith-Macdonald - * Source/NSString.m: ([-stringByStandardizingPath]) Fix bug when - dealing with three or more separators at the start of a path ... - should condense them to a single separator. Thanks to Robert Slover - for pointing this out. + * Source/NSString.m: ([-stringByStandardizingPath]) Fix bug when + dealing with three or more separators at the start of a path ... + should condense them to a single separator. Thanks to Robert Slover + for pointing this out. 2011-01-10 Richard Frith-Macdonald - * configure: regenerate - * Headers/Additions/GNUstepBase/config.h.in: regenerate + * configure: regenerate + * Headers/Additions/GNUstepBase/config.h.in: regenerate 2011-01-09 Stefan Bidigaray - * Source/NSNumberFormatter.m: Implemented a few more methods. - * Source/NSLocale.m: Added code requiring NSNumberFormatter code. + * Source/NSNumberFormatter.m: Implemented a few more methods. + * Source/NSLocale.m: Added code requiring NSNumberFormatter code. 2011-01-09 Stefan Bidigaray - * Headers/Additions/GNUstepBase/config.h.in: - * Headers/Foundation/NSNumberFormatter.h: - * Source/NSNumberFormatter.m: Started adding code for new methods. + * Headers/Additions/GNUstepBase/config.h.in: + * Headers/Foundation/NSNumberFormatter.h: + * Source/NSNumberFormatter.m: Started adding code for new methods. 2011-01-08 Stefan Bidigaray - * Source/NSLocale.m: Fixed a few bugs exposed by testsuite. + * Source/NSLocale.m: Fixed a few bugs exposed by testsuite. 2011-01-07 Stefan Bidigaray - * configure: - * configure.ac: Added check for unicode/unum.h. - * Headers/Foundation/NSNumberFormatter.h: - * Source/NSNumberFormatter.m: Added stub for 10.4+ methods. + * configure: + * configure.ac: Added check for unicode/unum.h. + * Headers/Foundation/NSNumberFormatter.h: + * Source/NSNumberFormatter.m: Added stub for 10.4+ methods. 2011-01-07 Richard Frith-Macdonald - * Source/NSObject.m: Make zombie log message match current OSX. - * Source/NSURL.m: Fix -resourceSpecifier by removing incorrect - special handling for file URLs. - * Source/NSXMLParser.m: Maketolerant of whitespace around the '=' - in an attribute. Fix check for xml header being at start of doc. + * Source/NSObject.m: Make zombie log message match current OSX. + * Source/NSURL.m: Fix -resourceSpecifier by removing incorrect + special handling for file URLs. + * Source/NSXMLParser.m: Maketolerant of whitespace around the '=' + in an attribute. Fix check for xml header being at start of doc. 2011-01-06 Fred Kiefer - * Source/NSObject.m (GSAtomicIncrement, GSAtomicDecrement): MIPS64 - specific adjustment of atomic functions for mips. - Patch by Sebastian Reitenbach . + * Source/NSObject.m (GSAtomicIncrement, GSAtomicDecrement): MIPS64 + specific adjustment of atomic functions for mips. + Patch by Sebastian Reitenbach . 2011-01-01 Stefan Bidigaray - * Headers/Foundation/NSCalendar.h: - * Source/NSCalendar.m: Added NSCoding and NSCopying. - * Source/NSLocale.m: Implement -isEqual: and do a better job of copying. + * Headers/Foundation/NSCalendar.h: + * Source/NSCalendar.m: Added NSCoding and NSCopying. + * Source/NSLocale.m: Implement -isEqual: and do a better job of copying. 2011-01-01 Stefan Bidigaray - * Headers/Foundation/NSCalendar.h: - * Source/NSLocale.m: Minor fixes. - * Source/NSCalendar.m: Implemented +currentCalendar. + * Headers/Foundation/NSCalendar.h: + * Source/NSLocale.m: Minor fixes. + * Source/NSCalendar.m: Implemented +currentCalendar. 2011-01-01 Stefan Bidigaray - * Source/NSLocale.m: Fixed typos found by testsuite. + * Source/NSLocale.m: Fixed typos found by testsuite. 2010-12-31 Stefan Bidigaray - * Source/NSCalendar.m: Implemented -dateByAddingComponents:toDate:options: - and -dateFromComponents:. + * Source/NSCalendar.m: Implemented -dateByAddingComponents:toDate:options: + and -dateFromComponents:. 2010-12-31 Stefan Bidigaray - * Headers/Foundation/NSCalendar.h: - * Source/NSCalendar.m: Added iOS 4.0 and later methods - to NSDateComponents. + * Headers/Foundation/NSCalendar.h: + * Source/NSCalendar.m: Added iOS 4.0 and later methods + to NSDateComponents. 2010-12-31 Stefan Bidigaray - * Resources/GNUmakefile: - * Resources/Languages/Locale.canonical: Added mapping to go from long - locale identifiers to the shorter identifiers used by ICU. - * Source/NSLocale.m: Implemented -canonical* and -preferredLanaguges - methods. + * Resources/GNUmakefile: + * Resources/Languages/Locale.canonical: Added mapping to go from long + locale identifiers to the shorter identifiers used by ICU. + * Source/NSLocale.m: Implemented -canonical* and -preferredLanaguges + methods. 2010-12-31 14:03 David Chisnall - * Headers/Foundation/NSBundle.h: Add __attribute__ - ((format_arg)) to [NSBundle -localizedStringForKey:value:table:]. - This informs the compiler that the output can be used anywhere - that the first argument can be used, and should silence all of - the non-constant format string warnings that we get anywhere that - _(@"foo") or similar is used. + * Headers/Foundation/NSBundle.h: Add __attribute__ + ((format_arg)) to [NSBundle -localizedStringForKey:value:table:]. + This informs the compiler that the output can be used anywhere + that the first argument can be used, and should silence all of + the non-constant format string warnings that we get anywhere that + _(@"foo") or similar is used. 2010-12-27 Nicola Pero - * Source/GSString.m ([GSCString -encodeWithCoder:]): Explicitly - encode NSStringEncoding variables as 'int' so that we can - read/write archives across compiler versions. "enum - _NSStringEncoding" is an unsigned int, but GCC <= 4.5 incorrectly - encodes all enums, regardless of the actual integer type they - represent, as a signed int. - ([GSMutableString -encodeWithCoder:]): Same change. - ([GSUnicodeString -encodeWithCoder:]): Same change. - * Source/NSString.m ([NSString -encodeWithCoder:]): Same change. - ([NSString -initWithCoder:]): Same change. + * Source/GSString.m ([GSCString -encodeWithCoder:]): Explicitly + encode NSStringEncoding variables as 'int' so that we can + read/write archives across compiler versions. "enum + _NSStringEncoding" is an unsigned int, but GCC <= 4.5 incorrectly + encodes all enums, regardless of the actual integer type they + represent, as a signed int. + ([GSMutableString -encodeWithCoder:]): Same change. + ([GSUnicodeString -encodeWithCoder:]): Same change. + * Source/NSString.m ([NSString -encodeWithCoder:]): Same change. + ([NSString -initWithCoder:]): Same change. 2010-12-27 Richard Frith-Macdonald - * Source/GSPrivate.h: - * Source/NSCalendarDate.m: - * Source/NSDate.m: - * Source/NSProcessInfo.m: - * Source/NSRunLoop.m: - Change GSTimeNow() to GSPrivateTimeNow() to indicate scope of function. - * Source/NSThread.m: - Remove duplicate declaration of obbjc thread callback. - * Source/NSXMLParser.m: - Try to duplicate OSX behavior in handling start of document. + * Source/GSPrivate.h: + * Source/NSCalendarDate.m: + * Source/NSDate.m: + * Source/NSProcessInfo.m: + * Source/NSRunLoop.m: + Change GSTimeNow() to GSPrivateTimeNow() to indicate scope of function. + * Source/NSThread.m: + Remove duplicate declaration of obbjc thread callback. + * Source/NSXMLParser.m: + Try to duplicate OSX behavior in handling start of document. 2010-12-26 Richard Frith-Macdonald - * Source/NSString.m: - ([-stringByReplacingCharactersInRange:withString:]) fix memory leak. - ([-stringByReplacingOccurrencesOfString:withString:options:range:]) - ditto. + * Source/NSString.m: + ([-stringByReplacingCharactersInRange:withString:]) fix memory leak. + ([-stringByReplacingOccurrencesOfString:withString:options:range:]) + ditto. 2010-12-25 Quentin Mathe - Improved autogsdoc to output symbols such as methods in their header - declaration order along the gsdoc files. - Useful for third-party tools that want to generate final documentation - from the GSDoc ouput and how the original headers were organized. - * Tools/autogsdoc.m: - Added OrderedSymbolDeclarations.plist file output and cleaning. - * Tools/AGSParser.h: - * Tools/AGSParser.m: - Added orderedSymbolDecls ivar. - (-addOrderedSymbolDeclaration:toUnit:, - -orderedSymbolDeclarationsByUnit): Added. - (-parseMethodsAsDeclarations:): Modified to call - -addOrderedSymbolDeclaration:toUnit:. + Improved autogsdoc to output symbols such as methods in their header + declaration order along the gsdoc files. + Useful for third-party tools that want to generate final documentation + from the GSDoc ouput and how the original headers were organized. + * Tools/autogsdoc.m: + Added OrderedSymbolDeclarations.plist file output and cleaning. + * Tools/AGSParser.h: + * Tools/AGSParser.m: + Added orderedSymbolDecls ivar. + (-addOrderedSymbolDeclaration:toUnit:, + -orderedSymbolDeclarationsByUnit): Added. + (-parseMethodsAsDeclarations:): Modified to call + -addOrderedSymbolDeclaration:toUnit:. 2010-12-25 Quentin Mathe - * Headers/Foundation/NSString.h: - * Source/NSString.m: - Added -stringByReplacingCharactersInRange:withString: (Mac OS 10.5 - method). + * Headers/Foundation/NSString.h: + * Source/NSString.m: + Added -stringByReplacingCharactersInRange:withString: (Mac OS 10.5 + method). 2010-12-25 12:13-EST Gregory John Casamento - * Tools/pl2link.m: Changes to better integrate with the GNOME - desktop. Removed dummy version number. Added code to - find the correct locations of the application and it's icon. + * Tools/pl2link.m: Changes to better integrate with the GNOME + desktop. Removed dummy version number. Added code to + find the correct locations of the application and it's icon. 2010-12-24 Nicola Pero - * Headers/Foundation/NSPropertList.h: Forward-declare the NSError - class if appropriate. + * Headers/Foundation/NSPropertList.h: Forward-declare the NSError + class if appropriate. 2010-12-24 Nicola Pero - * Source/NSObject.m ([+conformsToProtocol:]): Use the new code - only if __GNU_LIBOBJC__ is defined. - * Source/Additions/GSObjCRuntime.m (GSTypesFromSelector): Updated - usage of Modern typed selector API with __GNU_LIBOBJC__. - * Source/GSFFIInvocation.m (gs_find_best_typed_sel): Same. - (gs_objc_msg_forward2): Same. - (GSFFIInvocationCallback): Same. + * Source/NSObject.m ([+conformsToProtocol:]): Use the new code + only if __GNU_LIBOBJC__ is defined. + * Source/Additions/GSObjCRuntime.m (GSTypesFromSelector): Updated + usage of Modern typed selector API with __GNU_LIBOBJC__. + * Source/GSFFIInvocation.m (gs_find_best_typed_sel): Same. + (gs_objc_msg_forward2): Same. + (GSFFIInvocationCallback): Same. 2010-12-24 Nicola Pero - * Source/NSObject.m ([+conformsToProtocol:]): Fixed to iterate - over superclasses. Just calling class_conformsToProtcol() is not - enough as class_conformsToProtocol() does not iterate over - superclasses. - ([-conformsToProtocol:]): Updated. + * Source/NSObject.m ([+conformsToProtocol:]): Fixed to iterate + over superclasses. Just calling class_conformsToProtcol() is not + enough as class_conformsToProtocol() does not iterate over + superclasses. + ([-conformsToProtocol:]): Updated. 2010-12-23 Nicola Pero - * configure.ac: Check for objc_setUncaughtExceptionHandler(). - * configure: Regenerated. - * Headers/Additions/GNUstepBase/config.h.in: Regenerated. - * config/config..setUncaughtExceptionHandler.m: New. - * Source/Additions/GSObjCRuntime.m (GSTypesFromSelector): Use - sel_getType, not sel_getType_np, if __GNU_LIBOBJC__. - (GSSelectorFromNameAndTypes): Use sel_registerTypedName, not - sel_registerTypedName_np, if __GNU_LIBOBJC__. - * Source/objc-load.h: Do not include objc-api.h. - * Source/NSBundle.m (_bundle_load_callback): Use the new API to - iterate over classes when __GNU_LIBOBJC__. - * Source/NSConnection.m ([NSConnection - -forwardInvocation:forProxy:]): Use sel_registerTypedName, not - sel_registerTypedName_np, if __GNU_LIBOBJC__. - * Source/NSData.m ([NSData - -deserializeDataAt:ofObjCType:atCursor:context:]): Use - sel_registerTypedName, not sel_registerTypedName_np, if - __GNU_LIBOBJC__. Use sel_registerName, not - sel_registerTypedName_np, if the type is 0. - ([NSDataStatic -deserializeDataAt:ofObjCType:atCursor:context:]): - Use sel_registerTypedName, not sel_registerTypedName_np, if - __GNU_LIBOBJC__. - * Source/NSDistributedNotificationCenter.m - ([NSDistributedNotificationCenter - -postNotificationName:object:userInfo:selector:to:]): - Use sel_registerTypedName, not sel_registerTypedName_np, if - __GNU_LIBOBJC__. - * Source/NSException.m: Include if - HAVE_SET_UNCAUGHT_EXCEPTION_HANDLER. - ([NSException +initialize]): Use objc_setUncaughtExceptionHandler - if HAVE_SET_UNCAUGHT_EXCEPTION_HANDLER. - * Source/NSMethodSignature.m: Do not include objc/encoding.h when - __GNU_LIBOBJC__. - * Source/NSObject.m ([NSObject -methodSignatureForSelector:]): Use - method_getTypeEncoding instead of accessing directly the 'types' - field. - ([NSObject +poseAsClass:]): Always throw an exception since - class_pose_as is now deprecated or unavailable in most Objective-C - runtimes. If you need pose-as, and your runtime supports it, call - class_pose_as directly. - ([NSObject -error:]): Use vprintf and abort directly instead of - trying to call objc_verror. - * Source/NSThread.m: Define objc_thread_callback if we are later - using it. - * Source/objc-load.m: Never include objc-api.h or objc-list.h. - (GSPrivateLoadModule): Removed 'dynamic_handles' variable, no - longer used. Do not call __objc_resolve_class_links if - __GNU_LIBOBJC__. - * Source/GSFFIInvocation.m: Include when - __GNU_LIBOBJC__. - (gs_find_best_typed_sel): Use sel_getType instead of - sel_getType_np if __GNU_LIBOBJC__. - (gs_objc_msg_forward2): Same change. - (GSFFIInvocationCallback): Same change. - - * Source/NSValue.m ([NSValue +valueFromString:]): Added missing - return for NSRange values. + * configure.ac: Check for objc_setUncaughtExceptionHandler(). + * configure: Regenerated. + * Headers/Additions/GNUstepBase/config.h.in: Regenerated. + * config/config..setUncaughtExceptionHandler.m: New. + * Source/Additions/GSObjCRuntime.m (GSTypesFromSelector): Use + sel_getType, not sel_getType_np, if __GNU_LIBOBJC__. + (GSSelectorFromNameAndTypes): Use sel_registerTypedName, not + sel_registerTypedName_np, if __GNU_LIBOBJC__. + * Source/objc-load.h: Do not include objc-api.h. + * Source/NSBundle.m (_bundle_load_callback): Use the new API to + iterate over classes when __GNU_LIBOBJC__. + * Source/NSConnection.m ([NSConnection + -forwardInvocation:forProxy:]): Use sel_registerTypedName, not + sel_registerTypedName_np, if __GNU_LIBOBJC__. + * Source/NSData.m ([NSData + -deserializeDataAt:ofObjCType:atCursor:context:]): Use + sel_registerTypedName, not sel_registerTypedName_np, if + __GNU_LIBOBJC__. Use sel_registerName, not + sel_registerTypedName_np, if the type is 0. + ([NSDataStatic -deserializeDataAt:ofObjCType:atCursor:context:]): + Use sel_registerTypedName, not sel_registerTypedName_np, if + __GNU_LIBOBJC__. + * Source/NSDistributedNotificationCenter.m + ([NSDistributedNotificationCenter + -postNotificationName:object:userInfo:selector:to:]): + Use sel_registerTypedName, not sel_registerTypedName_np, if + __GNU_LIBOBJC__. + * Source/NSException.m: Include if + HAVE_SET_UNCAUGHT_EXCEPTION_HANDLER. + ([NSException +initialize]): Use objc_setUncaughtExceptionHandler + if HAVE_SET_UNCAUGHT_EXCEPTION_HANDLER. + * Source/NSMethodSignature.m: Do not include objc/encoding.h when + __GNU_LIBOBJC__. + * Source/NSObject.m ([NSObject -methodSignatureForSelector:]): Use + method_getTypeEncoding instead of accessing directly the 'types' + field. + ([NSObject +poseAsClass:]): Always throw an exception since + class_pose_as is now deprecated or unavailable in most Objective-C + runtimes. If you need pose-as, and your runtime supports it, call + class_pose_as directly. + ([NSObject -error:]): Use vprintf and abort directly instead of + trying to call objc_verror. + * Source/NSThread.m: Define objc_thread_callback if we are later + using it. + * Source/objc-load.m: Never include objc-api.h or objc-list.h. + (GSPrivateLoadModule): Removed 'dynamic_handles' variable, no + longer used. Do not call __objc_resolve_class_links if + __GNU_LIBOBJC__. + * Source/GSFFIInvocation.m: Include when + __GNU_LIBOBJC__. + (gs_find_best_typed_sel): Use sel_getType instead of + sel_getType_np if __GNU_LIBOBJC__. + (gs_objc_msg_forward2): Same change. + (GSFFIInvocationCallback): Same change. + + * Source/NSValue.m ([NSValue +valueFromString:]): Added missing + return for NSRange values. 2010-12-22 Nicola Pero - * Headers/Additions/GNUstepBase/preface.h.in: When using the new - GNU Objective-C Runtime library, include instead - of and . - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: When - OBJC2RUNTIME, do not include . - * Headers/Additions/GNUstepBase/GSVersionMacros.h: Added FIXME. + * Headers/Additions/GNUstepBase/preface.h.in: When using the new + GNU Objective-C Runtime library, include instead + of and . + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: When + OBJC2RUNTIME, do not include . + * Headers/Additions/GNUstepBase/GSVersionMacros.h: Added FIXME. 2010-12-22 Nicola Pero - * config/objc-common.g: Include the correct headers to use the new - API if using the GNU Objective-C Runtime library from GCC 4.6. + * config/objc-common.g: Include the correct headers to use the new + API if using the GNU Objective-C Runtime library from GCC 4.6. 2010-12-22 Nicola Pero - * configure.ac (objc_thread_add): Check removed. - * configure: Regenerated. - * Headers/Additions/GNUstepBase/config.h.in: Regenerated. - * Source/NSThread.m (objc_thread_add): Unused static function removed. + * configure.ac (objc_thread_add): Check removed. + * configure: Regenerated. + * Headers/Additions/GNUstepBase/config.h.in: Regenerated. + * Source/NSThread.m (objc_thread_add): Unused static function removed. 2010-12-22 Adam Fedor - * Headers/Foundation/NSCalendar.h: Add NSCopying protocol - * Source/NSCalendar.m: Retain ivar. Add copyWithZone: - * Source/NSURL.m (-resourceSpecifier): Separate behavior for - file scheme vs other schemes. + * Headers/Foundation/NSCalendar.h: Add NSCopying protocol + * Source/NSCalendar.m: Retain ivar. Add copyWithZone: + * Source/NSURL.m (-resourceSpecifier): Separate behavior for + file scheme vs other schemes. 2010-12-17 Richard Frith-Macdonald - * Source/NSCalendar.m: Fix to build with ICU 4.0 - * configure.ac: Permit ICU version as old as 4.0 - * configure: regenerate + * Source/NSCalendar.m: Fix to build with ICU 4.0 + * configure.ac: Permit ICU version as old as 4.0 + * configure: regenerate 2010-12-16 Stefan Bidigaray - * Source/NSCalendar.m: Added code for -maximumRangeOfUnit: and - -minimumRangeofUnit:. + * Source/NSCalendar.m: Added code for -maximumRangeOfUnit: and + -minimumRangeofUnit:. 2010-12-16 Richard Frith-Macdonald - * Source/NSRegularExpression.m: Move towards coding standards compliance - * Source/GSICUString.m: ditto + * Source/NSRegularExpression.m: Move towards coding standards compliance + * Source/GSICUString.m: ditto 2010-12-16 Richard Frith-Macdonald - * configure.ac: Remove redundant/incorrect define of HAVE_ICU. - Require ICU version 4.6 or later. - Add comments describing how external dependencies are handled. - * configure: Regenerate - * Headers/Additions/GNUstepBase/config.h.in: Regenerate - * config.mak.in: Update for consistency - * base.make.in: ditto - * Headers/Additions/GNUstepBase/GSConfig.h.in: ditto - * Source/GSHTTPURLHandle.m: Improve debug logging a little - * Source/NSXMLParser.m: Improve error handling. Use sloppy parser. - * Source/NSRegularExpression.m: Use GS_USE_ICU and nnever HAVE_ICU - * Source/NSCalendar.m: ditto - * Source/NSLocale.m: ditto - * Source/GSICUString.m: ditto + * configure.ac: Remove redundant/incorrect define of HAVE_ICU. + Require ICU version 4.6 or later. + Add comments describing how external dependencies are handled. + * configure: Regenerate + * Headers/Additions/GNUstepBase/config.h.in: Regenerate + * config.mak.in: Update for consistency + * base.make.in: ditto + * Headers/Additions/GNUstepBase/GSConfig.h.in: ditto + * Source/GSHTTPURLHandle.m: Improve debug logging a little + * Source/NSXMLParser.m: Improve error handling. Use sloppy parser. + * Source/NSRegularExpression.m: Use GS_USE_ICU and nnever HAVE_ICU + * Source/NSCalendar.m: ditto + * Source/NSLocale.m: ditto + * Source/GSICUString.m: ditto 2010-12-15 Stefan Bidigaray - * Source/GNUmakefile: Install NSCalendar.h. - * Headers/Foundation/NSCalendar.h: - * Source/NSCalendar.m: Started adding code to NSCalendar. + * Source/GNUmakefile: Install NSCalendar.h. + * Headers/Foundation/NSCalendar.h: + * Source/NSCalendar.m: Started adding code to NSCalendar. 2010-12-15 Stefan Bidigaray - * configure: Regenerate. - * Headers/Additions/GNUstepBase/config.h.in: Update for unicode/ucal.h. - * Headers/Foundation/NSLocale.h: Added NSLocaleCalendarIdentifier key. - * Source/NSLocale.m: Added handling of locale keywords and a few other - minor changes. + * configure: Regenerate. + * Headers/Additions/GNUstepBase/config.h.in: Update for unicode/ucal.h. + * Headers/Foundation/NSLocale.h: Added NSLocaleCalendarIdentifier key. + * Source/NSLocale.m: Added handling of locale keywords and a few other + minor changes. 2010-12-14 Stefan Bidigaray - * Source/NSLocale.m: Added NSCalendar dependent code. + * Source/NSLocale.m: Added NSCalendar dependent code. 2010-12-14 Stefan Bidigaray - * Headers/Foundation/Foundation.h: - * Source/GNUmakefile: Include NSCalendar. - * configure.ac: Check for unicode/ucal.h. - * Headers/Foundation/NSCalendar.h: - * Source/NSCalendar.m: Add completely empty NSCalendar and - NSDateCompoennts classes. + * Headers/Foundation/Foundation.h: + * Source/GNUmakefile: Include NSCalendar. + * configure.ac: Check for unicode/ucal.h. + * Headers/Foundation/NSCalendar.h: + * Source/NSCalendar.m: Add completely empty NSCalendar and + NSDateCompoennts classes. 2010-12-14 Stefan Bidigaray - * Source/NSLocale.m: Initialize _components before using it and initilize - allLocales class variable in +initialize. Also stop adding blank entries - to _components dictionary. + * Source/NSLocale.m: Initialize _components before using it and initilize + allLocales class variable in +initialize. Also stop adding blank entries + to _components dictionary. 2010-12-12 Stefan Bidigaray - * Headers/Foundation/NSLocale.h: Added missing constant. - * Source/NSLocale.m: Implemented more functionality. + * Headers/Foundation/NSLocale.h: Added missing constant. + * Source/NSLocale.m: Implemented more functionality. 2010-12-06 Riccardo Mottola - * Source/NSPathUtilities.m: - Make the Desktop directory relative to the user home. + * Source/NSPathUtilities.m: + Make the Desktop directory relative to the user home. 2010-12-03 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Fix possible memory corruption when asked - to base64 decode corrupt data with too many '=' characters. + * Source/Additions/GSMime.m: Fix possible memory corruption when asked + to base64 decode corrupt data with too many '=' characters. 2010-12-02 Eric Wasylishen - * Source/NSRegularExpression.m: Add a guard so this file isn't compiled - if the ICU version is older than 4.4. + * Source/NSRegularExpression.m: Add a guard so this file isn't compiled + if the ICU version is older than 4.4. 2010-11-29 Fred Kiefer - * Headers/Foundation/NSPropertyList.h, - * Source/NSPropertyList.m: Add a few OSX 10.6 methods. + * Headers/Foundation/NSPropertyList.h, + * Source/NSPropertyList.m: Add a few OSX 10.6 methods. 2010-11-28 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Remove unnecessary include of Foundation.h - * Source/Additions/GCDictionary.m: ditto - * Source/Additions/GCObject.m: ditto - * Source/Additions/GCArray.m: ditto - * Source/Additions/GSXML.m: ditto - * Source/Additions/GSFunctions.m: ditto - * Source/Additions/GSObjCRuntime.m: ditto - * Headers/Foundation/Foundation.h.install: obsolete file ... removed - * Source/Makefile.postamble: Don't install obsolete Foundation.h.install - header ... we no longer include Foundation.h anywhere so there's no - need to protect against getting the installed version. + * Source/Additions/Unicode.m: Remove unnecessary include of Foundation.h + * Source/Additions/GCDictionary.m: ditto + * Source/Additions/GCObject.m: ditto + * Source/Additions/GCArray.m: ditto + * Source/Additions/GSXML.m: ditto + * Source/Additions/GSFunctions.m: ditto + * Source/Additions/GSObjCRuntime.m: ditto + * Headers/Foundation/Foundation.h.install: obsolete file ... removed + * Source/Makefile.postamble: Don't install obsolete Foundation.h.install + header ... we no longer include Foundation.h anywhere so there's no + need to protect against getting the installed version. 2010-11-19 Niels Grewe - * Source/NSRegularExpression.m: Rearrange for non-C99 compliant + * Source/NSRegularExpression.m: Rearrange for non-C99 compliant compilers. 2010-11-18 Richard Frith-Macdonald - * Source/NSPredicate.m: Fixup use of preprocessor constants. + * Source/NSPredicate.m: Fixup use of preprocessor constants. 2010-11-17 Eric Wasylishen - * Source/NSPredicate.m: Implement MATCHES and LIKE using ICU - * configure.ac: Check for unicode/uregex.h in ICU checks + * Source/NSPredicate.m: Implement MATCHES and LIKE using ICU + * configure.ac: Check for unicode/uregex.h in ICU checks 2010-11-13 Riccardo Mottola - * Source/NSPathUtilities.m: - Make NSDownloadDirectory and NSDocumentDIrectory relative to the - user home and for the user domain only. Behaviour checked on the Mac. + * Source/NSPathUtilities.m: + Make NSDownloadDirectory and NSDocumentDIrectory relative to the + user home and for the user domain only. Behaviour checked on the Mac. 2010-11-05 Richard Frith-Macdonald - * Tools/AGSIndex.m: ([-setUnitRef:type:]) Fix incorrect special - handling of category methods. + * Tools/AGSIndex.m: ([-setUnitRef:type:]) Fix incorrect special + handling of category methods. 2010-11-02 Larry Campbell - * Tools/make_strings/make_strings.m: Fix line missed in last patch. - * Source/NSPropertyList.m: Fixes for date serialization byte swaps. + * Tools/make_strings/make_strings.m: Fix line missed in last patch. + * Source/NSPropertyList.m: Fixes for date serialization byte swaps. 2010-10-31 Larry Campbell - * Tools/make_strings/make_strings.m: Permits tool to take nil as the - table name argument in NSLocalizedStringFromTable and - NSLocalizedStringFromTableInBundle (as does the corresponding OSX - utility, genstrings). + * Tools/make_strings/make_strings.m: Permits tool to take nil as the + table name argument in NSLocalizedStringFromTable and + NSLocalizedStringFromTableInBundle (as does the corresponding OSX + utility, genstrings). 2010-10-30 German Arias - * Documentation/GNUmakefile: Changes in some files names to - correspond with the files provided in the Documentation directory. + * Documentation/GNUmakefile: Changes in some files names to + correspond with the files provided in the Documentation directory. 2010-10-28 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSMime.h - * Source/Additions/GSMime.m: Add support for delivery receipts. - * Source/NSURLConnection.m: Fix simple leak in - ([+sendSynchronousRequest:returningResponse:error:]) + * Headers/Additions/GNUstepBase/GSMime.h + * Source/Additions/GSMime.m: Add support for delivery receipts. + * Source/NSURLConnection.m: Fix simple leak in + ([+sendSynchronousRequest:returningResponse:error:]) 2010-10-27 Richard Frith-Macdonald - * Source/GSFFIInvocation.m: Revert David's last change ,which caused - crashes by dereferencing a null pointer, even though I had put a - comment in the code warning that the pointer could be null! + * Source/GSFFIInvocation.m: Revert David's last change ,which caused + crashes by dereferencing a null pointer, even though I had put a + comment in the code warning that the pointer could be null! 2010-10-27 Richard Frith-Macdonald - * configure.ac: Fix definition of HAVE_ICU - * configure: - * Headers/Additions/GNUstepBase/config.h.in: regenerate - * Headers/Additions/GNUstepBase/GSMime.h - * Source/Additions/GSMime.m: wrap long lines - * Source/NSLocale.m: Use HAVE_ICU + * configure.ac: Fix definition of HAVE_ICU + * configure: + * Headers/Additions/GNUstepBase/config.h.in: regenerate + * Headers/Additions/GNUstepBase/GSMime.h + * Source/Additions/GSMime.m: wrap long lines + * Source/NSLocale.m: Use HAVE_ICU 2010-10-26 Niels Grewe - * Source/NSLocale.m: Fix -displayNameForKey:value: to interact properly - with libicu for some common cases. + * Source/NSLocale.m: Fix -displayNameForKey:value: to interact properly + with libicu for some common cases. 2010-10-22 Richard Frith-Macdonald - * Source/ObjectiveC2/GNUmakefile: - Do not set -march=i686 when on an x86 system as it breaks compilation - for other cpu types. + * Source/ObjectiveC2/GNUmakefile: + Do not set -march=i686 when on an x86 system as it breaks compilation + for other cpu types. 2010-10-19 Jonathan Gillaspie - * Source/Additions/NSError+GNUstepBase.m: Prevent SegFault when - FormatMessageW doesn't return a string on Windows. + * Source/Additions/NSError+GNUstepBase.m: Prevent SegFault when + FormatMessageW doesn't return a string on Windows. 2010-10-19 Wolfgang Lux - * Source/NSURL.m (-absoluteURL): Fix test for an absolute URL, - which got things backward. + * Source/NSURL.m (-absoluteURL): Fix test for an absolute URL, + which got things backward. 2010-10-19 Richard Frith-Macdonald - * Source/NSURL.m: When making a relative file URL copy the host from - the base URL for OSX compatibility. + * Source/NSURL.m: When making a relative file URL copy the host from + the base URL for OSX compatibility. 2010-10-16 16:53-EDT Gregory John Casamento - * config/objc-common.g: Correct test. The previous version didn't - include the { and the } in the ivar section. This is not correct. - * Source/ObjectiveC2/sync.m: Correct license text. + * config/objc-common.g: Correct test. The previous version didn't + include the { and the } in the ivar section. This is not correct. + * Source/ObjectiveC2/sync.m: Correct license text. 2010-10-13 Richard Frith-Macdonald - * Source/NSURL.m: Match OSX behavior with file scheme URLS (treat - them like http/https rather than accorinding to the RFCs). + * Source/NSURL.m: Match OSX behavior with file scheme URLS (treat + them like http/https rather than accorinding to the RFCs). 2010-10-12 Richard Frith-Macdonald - * Source/Additions/GSXML.m: If we receive an attribute name with no - corresponding value, assume it's a minimised attribute in html ... - and we should set the value to be the same as the name. + * Source/Additions/GSXML.m: If we receive an attribute name with no + corresponding value, assume it's a minimised attribute in html ... + and we should set the value to be the same as the name. 2010-10-12 Richard Frith-Macdonald - * Source/Additions/GSObjCRuntime.m: Add support for arbitrary struct - get/set since OSX has it at last (not just well-known structs). + * Source/Additions/GSObjCRuntime.m: Add support for arbitrary struct + get/set since OSX has it at last (not just well-known structs). 2010-10-12 David Chisnall - * Source/Additions/GSObjCRuntime.m: - Add special case to KVC accessors for libobjc2: If there is a method - with the wrong types, try calling the method with the correct types. - This enables the TDD-fixup code to run and generate a KVC-compliant - version of an existing method. + * Source/Additions/GSObjCRuntime.m: + Add special case to KVC accessors for libobjc2: If there is a method + with the wrong types, try calling the method with the correct types. + This enables the TDD-fixup code to run and generate a KVC-compliant + version of an existing method. 2010-10-12 Richard Frith-Macdonald - * Source/NSURL.m: Exactly match the percent escaping used by OSX. + * Source/NSURL.m: Exactly match the percent escaping used by OSX. 2010-10-08 Eric Wasylishen - * Source/GSAvahiRunLoopIntegration.m: Fix some bugs: - - Remove an extra retain of the NSTimer which was leaking memory. - - When passed a NULL struct timeval * from avahi, invalidate - the timer and don't schedule a new one. + * Source/GSAvahiRunLoopIntegration.m: Fix some bugs: + - Remove an extra retain of the NSTimer which was leaking memory. + - When passed a NULL struct timeval * from avahi, invalidate + the timer and don't schedule a new one. 2010-10-04 Richard Frith-Macdonald - * Source/NSPredicate.m: Add simple implementation of - evalutedObjectExpression + * Source/NSPredicate.m: Add simple implementation of + evalutedObjectExpression 2010-10-01 Richard Frith-Macdonald - * Source/Additions/GSObjCRuntime.m: Revert to the working version - from the last release. - Can't see a changelog for the last change, I guess some local - hack was accidentally committed... it broke KVC, which showed up - when the testsuite was run. + * Source/Additions/GSObjCRuntime.m: Revert to the working version + from the last release. + Can't see a changelog for the last change, I guess some local + hack was accidentally committed... it broke KVC, which showed up + when the testsuite was run. 2010-10-01 Richard Frith-Macdonald @@ -14378,633 +14389,633 @@ 2010-10-01 Richard Frith-Macdonald - * Source/GSSocketStream.m: - * Source/NSSocketPort.m: - * Source/NSMessagePort.m: - * Source/win32/GSFileHandle.m: - * Source/GSNetwork.h: - * Source/GSFileHandle.m: - Standardise the backlog parameter to listen() calls. + * Source/GSSocketStream.m: + * Source/NSSocketPort.m: + * Source/NSMessagePort.m: + * Source/win32/GSFileHandle.m: + * Source/GSNetwork.h: + * Source/GSFileHandle.m: + Standardise the backlog parameter to listen() calls. 2010-10-01 Richard Frith-Macdonald - * Source/NSURL.m: Fix for bug #31153 ... allow hash in path when - initialising. - * Source/NSURLProtocol.m: Fix thread related crash with deallocation - of placeholder object. + * Source/NSURL.m: Fix for bug #31153 ... allow hash in path when + initialising. + * Source/NSURLProtocol.m: Fix thread related crash with deallocation + of placeholder object. 2010-09-30 Richard Frith-Macdonald - * Source/GSFileHandle.m: - Increase the backlog for the listen() call to allow more incoming - network connections. + * Source/GSFileHandle.m: + Increase the backlog for the listen() call to allow more incoming + network connections. 2010-09-30 Richard Frith-Macdonald - * Source/NSURLProtocol.m: Remove excess release pointed out by - Sergey Golovin (bug 31168) + * Source/NSURLProtocol.m: Remove excess release pointed out by + Sergey Golovin (bug 31168) 2010-09-30 Richard Frith-Macdonald - * Source/Additions/GSMime.m: restore standardisation of header name - lost in last optimisation. Fixes bug #31166 + * Source/Additions/GSMime.m: restore standardisation of header name + lost in last optimisation. Fixes bug #31166 2010-09-28 Eric Wasylishen - * Source/objc-load.m: Don't include objc-list with libobjc2 + * Source/objc-load.m: Don't include objc-list with libobjc2 2010-09-28 Eric Wasylishen - * Source/GSFFIInvocation.m: Remove dead code - (gs_find_by_receiver_best_typed_sel was static inline and never - called anywhere) + * Source/GSFFIInvocation.m: Remove dead code + (gs_find_by_receiver_best_typed_sel was static inline and never + called anywhere) 2010-09-28 Richard Frith-Macdonald - * Source/GSString.m: implement lowercaseString and uppercaseString - for improved performance. - * Source/Additions/GSMime.m: optimise header searches + * Source/GSString.m: implement lowercaseString and uppercaseString + for improved performance. + * Source/Additions/GSMime.m: optimise header searches 2010-09-25 Richard Frith-Macdonald - * Source/NSTimer.m: ([-fire]) make firing more robust by retaining - the target so it cannot be deallocated while we are performing a - method on it. Do nothing if timer is already invalidated. + * Source/NSTimer.m: ([-fire]) make firing more robust by retaining + the target so it cannot be deallocated while we are performing a + method on it. Do nothing if timer is already invalidated. 2010-09-24 Richard Frith-Macdonald - * Source/NSCharacterSet.m: Build using the faster but more memory - hungry implementation. Add comments to say why we are doing so. + * Source/NSCharacterSet.m: Build using the faster but more memory + hungry implementation. Add comments to say why we are doing so. 2010-09-20 Wolfgang Lux - * Source/ObjectiveC2/runtime.c (method_getImplementation, - method_getName): Fix unchecked pointer dereferences, which could - cause crashes when attempting to invoke a selector which is not - implemented by the target. + * Source/ObjectiveC2/runtime.c (method_getImplementation, + method_getName): Fix unchecked pointer dereferences, which could + cause crashes when attempting to invoke a selector which is not + implemented by the target. 2010-09-19 Quentin Mathe - * Headers/Additions/GNUstepBase/preface.h.in: - Added standard C headers included by CoreFoundation.h. + * Headers/Additions/GNUstepBase/preface.h.in: + Added standard C headers included by CoreFoundation.h. 2010-09-17 Wolfgang Lux - * Source/NSBundle.m (+bundleForLibrary:version:): Use proper - suffix for dynamic libraries on Darwin (.dylib instead of .so). + * Source/NSBundle.m (+bundleForLibrary:version:): Use proper + suffix for dynamic libraries on Darwin (.dylib instead of .so). - * Source/NSTask.m (-launch): Use fork instead of vfork on Darwin, - since setsid will fail while the child process is in the vfork. + * Source/NSTask.m (-launch): Use fork instead of vfork on Darwin, + since setsid will fail while the child process is in the vfork. 2010-09-17 Wolfgang Lux - * Source/NSObject.m (-methodSignatureForSelector:): Fix bug were - this method would return an incorrect result or crash when asking - a class object for the signature of one of its class methods. + * Source/NSObject.m (-methodSignatureForSelector:): Fix bug were + this method would return an incorrect result or crash when asking + a class object for the signature of one of its class methods. 2010-09-15 Eric Wasylishen - * Source/GSSocketStream.m: - * Source/NSPortCoder.m: - * Source/NSSocketPort.m: - * Source/NSAttributedString.m: - * Source/NSKeyValueMutableSet.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSUnarchiver.m: - * Source/GSAttributedString.m: - * Source/NSKeyValueMutableArray.m: - * Source/NSXMLParser.m: Fix more unsigned int / ints that should - be NSUInteger/NSInteger + * Source/GSSocketStream.m: + * Source/NSPortCoder.m: + * Source/NSSocketPort.m: + * Source/NSAttributedString.m: + * Source/NSKeyValueMutableSet.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSUnarchiver.m: + * Source/GSAttributedString.m: + * Source/NSKeyValueMutableArray.m: + * Source/NSXMLParser.m: Fix more unsigned int / ints that should + be NSUInteger/NSInteger 2010-09-15 Eric Wasylishen - * Source/objc-load.m: Don't compile the dynamic_handles code with - libobjc2. - Note that this appears to be dead code anyway, so maybe it should - be removed altogether? + * Source/objc-load.m: Don't compile the dynamic_handles code with + libobjc2. + Note that this appears to be dead code anyway, so maybe it should + be removed altogether? 2010-09-15 Eric Wasylishen - * Source/NSMessagePort.m: - * Source/NSFileManager.m: - * Source/NSCharacterSet.m: Fix some method type mismatches. - Generally when a private subclass overrides a public method - taking a NSUInteger with a method taking an "unsigned" parameter. + * Source/NSMessagePort.m: + * Source/NSFileManager.m: + * Source/NSCharacterSet.m: Fix some method type mismatches. + Generally when a private subclass overrides a public method + taking a NSUInteger with a method taking an "unsigned" parameter. 2010-09-12 Riccardo Mottola - * Source/GSAttributedString.m: Removed dead assignments and unused variable attrs. - * Source/GSFormant.m: Removed useless len recalculation. + * Source/GSAttributedString.m: Removed dead assignments and unused variable attrs. + * Source/GSFormant.m: Removed useless len recalculation. 2010-09-12 Richard Frith-Macdonald - * Source/GSConcreteValueTemplate.m: - * Source/NSSocketPort.m: - * Source/NSSortDescriptor.m: - * Source/NSMessagePort.m: - * Source/GSAttributedString.m: - * Source/NSNumber.m: - * Source/GSString.m: - * Source/NSHost.m: - * Source/NSDate.m: - * Source/GSValue.m: - Fix return types. + * Source/GSConcreteValueTemplate.m: + * Source/NSSocketPort.m: + * Source/NSSortDescriptor.m: + * Source/NSMessagePort.m: + * Source/GSAttributedString.m: + * Source/NSNumber.m: + * Source/GSString.m: + * Source/NSHost.m: + * Source/NSDate.m: + * Source/GSValue.m: + Fix return types. 2010-09-10 Richard Frith-Macdonald - * Source/NSSocketPort.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/NSPort.m: - * Source/NSMessagePort.m: - * Source/win32/GSRunLoopCtxt.m: - Remove redundant check for responding to getFds:count: since it's - always true. Fix usage of method to correspond to prototype - (NSInteger arguments rather than int arguments). - * Source/ObjectiveC2/runtime.c: Fix class_getMethodImplementation() - and class_getMethodImplementation_stret() so that they don't cause - a crash when used with proxies. - * Source/NSKeyValueCoding.m: - * Source/cifframe.m: - * Source/Additions/GSLock.m: - * Source/NSDate.m: - Tweaks to avoid clang static analyser warnings. + * Source/NSSocketPort.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/NSPort.m: + * Source/NSMessagePort.m: + * Source/win32/GSRunLoopCtxt.m: + Remove redundant check for responding to getFds:count: since it's + always true. Fix usage of method to correspond to prototype + (NSInteger arguments rather than int arguments). + * Source/ObjectiveC2/runtime.c: Fix class_getMethodImplementation() + and class_getMethodImplementation_stret() so that they don't cause + a crash when used with proxies. + * Source/NSKeyValueCoding.m: + * Source/cifframe.m: + * Source/Additions/GSLock.m: + * Source/NSDate.m: + Tweaks to avoid clang static analyser warnings. 2010-09-09 Eric Wasylishen - * Source/NSProtocolChecker.m: Replace a -[Protocol name] with - protocol_getName() + * Source/NSProtocolChecker.m: Replace a -[Protocol name] with + protocol_getName() 2010-09-09 Eric Wasylishen - * Source/NSDistantObject.m: #ifdef to disable category - on Object was forgotten around the interface + * Source/NSDistantObject.m: #ifdef to disable category + on Object was forgotten around the interface 2010-09-09 Riccardo Mottola - * Source/unix/GSRunLoopCtxt.m: only access array if port responds - to selector, or it is not initialized - * Source/NSDate.m: - * Source/NSScanner.m: use init return value + * Source/unix/GSRunLoopCtxt.m: only access array if port responds + to selector, or it is not initialized + * Source/NSDate.m: + * Source/NSScanner.m: use init return value 2010-09-09 Richard Frith-Macdonald - * Source/NSString.m: Fix retain/release bugs spotted by clang. - * Source/GSFFIInvocation.m: Revert one line in order to get lookup - of types working again so that proxies can still be used. + * Source/NSString.m: Fix retain/release bugs spotted by clang. + * Source/GSFFIInvocation.m: Revert one line in order to get lookup + of types working again so that proxies can still be used. 2010-09-09 Adam Fedor - * configure.ac: Check for dladdr without requiring -ldl - * configure, Headers/Additions/GNUstepBase/config.h.in: Regen + * configure.ac: Check for dladdr without requiring -ldl + * configure, Headers/Additions/GNUstepBase/config.h.in: Regen 2010-09-09 Eric Wasylishen - * Source/ObjectiveC2/runtime.c: fix a typo - * Source/NSObject.m: c90 compatibliity + * Source/ObjectiveC2/runtime.c: fix a typo + * Source/NSObject.m: c90 compatibliity 2010-09-09 Eric Wasylishen - * Source/ObjectiveC2/runtime.c: - Change sel_getUid to call sel_registerName, in line with OS X - behaviour since 10.0 + * Source/ObjectiveC2/runtime.c: + Change sel_getUid to call sel_registerName, in line with OS X + behaviour since 10.0 2010-09-02 David Chisnall - * Source/NSBundle.m - * Source/NSMethodSignature.m - * Source/NSDebug.m - * Source/GSFFIInvocation.m - * Source/GSPrivate.h - * Source/NSInvocation.m - * Source/NSCopyObject.m - * Source/NSObject.m - * Source/Additions/GSXML.m - * Source/Additions/GSObjCRuntime.m - * Source/NSConnection.m - * Source/NSObjCRuntime.m - * Source/NSProxy.m - * Source/NSProtocolChecker.m - * Source/NSSerializer.m - * Source/NSDistantObject.m - * Headers/Foundation/NSInvocation.h - * Headers/Additions/GNUstepBase/DistributedObjects.h - - A huge blob of changes to make -base build with libobjc2, without - using the old libobjc2 headers. - - Most of these changes involve simply removing direct manipulation - of any runtime structures and replacing them with runtime function - calls. For example class->name becomes class_getName(class) and so on. - - libobjc2, like the Apple runtime, the NeXT runtime, and every - version of the Objective-C spec, calls the class pointer in id isa. - A few files now have #define class_pointer isa at the top. - This line replaces class_pointer in the old GNU libobjc headers - with isa so either class_pointer or isa can be used for accessing - the class of an object. Note: object_getClass() should be used - in most cases because, in some future version of the runtime, - this will skip things like lock classes and other hidden classes - (e.g. KVO classes). - - All of the old forwarding stuff has been removed. Most of this - stuff followed convoluted code paths that ended with an exception. - A few simply broke in exciting ways. Hopefully no one has used - them for the last ten years or so, but we can bring them back - with some #ifndef stuff if they're really needed by anyone. - - There is currently a bug in configure, which prevents dladdr() from - being detected, so you need to manually tweak config.h to build - - I have not fixed the fall-back code in objc-load.m to work with - libobjc2, I just added a new version that uses the loader's - functionality directly. - - Although -base now builds, it builds with a lot of warnings. - is missing from a lot of files, so memcpy() and strlen() - generate implicit function declaration warnings. - - Additionally, libobjc2 does still provide the sel_{get,register}_*() - functions, but they're wrappers around the newer API ones. These are - deprecated and are not exposed in the headers. Although they work, - we should be replacing them with the libobjc2 versions as soon as - possible. - - This incorporates a patch by Eric. + * Source/NSBundle.m + * Source/NSMethodSignature.m + * Source/NSDebug.m + * Source/GSFFIInvocation.m + * Source/GSPrivate.h + * Source/NSInvocation.m + * Source/NSCopyObject.m + * Source/NSObject.m + * Source/Additions/GSXML.m + * Source/Additions/GSObjCRuntime.m + * Source/NSConnection.m + * Source/NSObjCRuntime.m + * Source/NSProxy.m + * Source/NSProtocolChecker.m + * Source/NSSerializer.m + * Source/NSDistantObject.m + * Headers/Foundation/NSInvocation.h + * Headers/Additions/GNUstepBase/DistributedObjects.h + + A huge blob of changes to make -base build with libobjc2, without + using the old libobjc2 headers. + + Most of these changes involve simply removing direct manipulation + of any runtime structures and replacing them with runtime function + calls. For example class->name becomes class_getName(class) and so on. + + libobjc2, like the Apple runtime, the NeXT runtime, and every + version of the Objective-C spec, calls the class pointer in id isa. + A few files now have #define class_pointer isa at the top. + This line replaces class_pointer in the old GNU libobjc headers + with isa so either class_pointer or isa can be used for accessing + the class of an object. Note: object_getClass() should be used + in most cases because, in some future version of the runtime, + this will skip things like lock classes and other hidden classes + (e.g. KVO classes). + + All of the old forwarding stuff has been removed. Most of this + stuff followed convoluted code paths that ended with an exception. + A few simply broke in exciting ways. Hopefully no one has used + them for the last ten years or so, but we can bring them back + with some #ifndef stuff if they're really needed by anyone. + + There is currently a bug in configure, which prevents dladdr() from + being detected, so you need to manually tweak config.h to build - + I have not fixed the fall-back code in objc-load.m to work with + libobjc2, I just added a new version that uses the loader's + functionality directly. + + Although -base now builds, it builds with a lot of warnings. + is missing from a lot of files, so memcpy() and strlen() + generate implicit function declaration warnings. + + Additionally, libobjc2 does still provide the sel_{get,register}_*() + functions, but they're wrappers around the newer API ones. These are + deprecated and are not exposed in the headers. Although they work, + we should be replacing them with the libobjc2 versions as soon as + possible. + + This incorporates a patch by Eric. 2010-09-08 Eric Wasylishen - * Source/ObjectiveC2/runtime.h: - * Source/ObjectiveC2/runtime.m: - Implement protocol_copyMethodDescriptionList, protocol_copyProtocolList, - protocol_getMethodDescription, as well as a dummy version of - objc_copyProtocolList. - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - * Source/Additions/GSObjCRuntime.m: - Implement a convenience method, GSProtocolGetMethodDescriptionRecursive + * Source/ObjectiveC2/runtime.h: + * Source/ObjectiveC2/runtime.m: + Implement protocol_copyMethodDescriptionList, protocol_copyProtocolList, + protocol_getMethodDescription, as well as a dummy version of + objc_copyProtocolList. + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + * Source/Additions/GSObjCRuntime.m: + Implement a convenience method, GSProtocolGetMethodDescriptionRecursive 2010-09-08 Richard Frith-Macdonald - * Headers/Foundation/NSObject.h: - * Source/NSObject.m: - Remove old TypedStream methods - * Source/NSFileManager.m: - Warn if filesystem support is not available. + * Headers/Foundation/NSObject.h: + * Source/NSObject.m: + Remove old TypedStream methods + * Source/NSFileManager.m: + Warn if filesystem support is not available. 2010-09-07 Eric Wasylishen - * Headers/Additions/GNUstepBase/preface.h.in: Remove include of - objc/sarray.h + * Headers/Additions/GNUstepBase/preface.h.in: Remove include of + objc/sarray.h 2010-09-04 Niels Grewe - * config/config.non-fragile-ivars.m: Remove useless include of - objc-common.g (__has_feature is a built-in clang macro). + * config/config.non-fragile-ivars.m: Remove useless include of + objc-common.g (__has_feature is a built-in clang macro). 2010-09-02 David Chisnall - * Source/NSObject.m + * Source/NSObject.m - Improve the efficiency of NSObject's methodSignatureForSelector by: + Improve the efficiency of NSObject's methodSignatureForSelector by: - - Moving the linear search over all of the method lists in the class hierarchy to the end. If we found the type info in the protocol list, we were throwing this info away. Doing something expensive and then discarding the result is generally not a good idea. + - Moving the linear search over all of the method lists in the class hierarchy to the end. If we found the type info in the protocol list, we were throwing this info away. Doing something expensive and then discarding the result is generally not a good idea. - - Replacing the linear search of the method lists with a dtable lookup on libobjc2. The type info for methods is part of the slot, so we only need to do the expensive search at all on the old runtime. With libobjc2, type info lookup costs as little as IMP lookup, so doing things the slow way is not required. + - Replacing the linear search of the method lists with a dtable lookup on libobjc2. The type info for methods is part of the slot, so we only need to do the expensive search at all on the old runtime. With libobjc2, type info lookup costs as little as IMP lookup, so doing things the slow way is not required. 2010-08-31 Richard Frith-Macdonald - * Tools/cvtenc.m: Add -Unicode option. Fix to allow reading from stdin - * Tools/cvtenc.1: update + * Tools/cvtenc.m: Add -Unicode option. Fix to allow reading from stdin + * Tools/cvtenc.1: update 2010-08-30 Richard Frith-Macdonald - * Source/NSThread.m: try to make inter-thread notification via - pipe more robust. - * Source/NSTask.m: make windows thread waiting for task into an - NSThread so that any thread-dependent code can work. + * Source/NSThread.m: try to make inter-thread notification via + pipe more robust. + * Source/NSTask.m: make windows thread waiting for task into an + NSThread so that any thread-dependent code can work. 2010-08-25 Jonathan Gillaspie - * Source/Objective2/sync.m: Removed weak declarations + * Source/Objective2/sync.m: Removed weak declarations 2010-08-24 Wolfgang Lux - * Source/GSFileHandle.m (-initWithStandardError, - -initWithStandardInput, -initWithStandardOutput): Restore lost - assignments which ensure that only one file handle exists for each - of the standard channels. This fixes a bug where a run loop might - unexpectedly stop watching the standard channels. + * Source/GSFileHandle.m (-initWithStandardError, + -initWithStandardInput, -initWithStandardOutput): Restore lost + assignments which ensure that only one file handle exists for each + of the standard channels. This fixes a bug where a run loop might + unexpectedly stop watching the standard channels. 2010-08-23 Riccardo Mottola (patch by Yavor Doganov) - * configure.ac: Include pthread.h in check program - * configure: Regenerate + * configure.ac: Include pthread.h in check program + * configure: Regenerate 2010-08-20 Richard Frith-Macdonald - * Source/ObjectiveC2/runtime.c: Made objc_disposeClassPair() a no-op - if the class pair is already registered .. to prevent it from causing - crashes. Made objc_registerClassPair() log error if there is already - a class of the name. - * Source/ObjectiveC2/sync.m: Replace with Greg's implementation - (reported as working though I haven't tested it). + * Source/ObjectiveC2/runtime.c: Made objc_disposeClassPair() a no-op + if the class pair is already registered .. to prevent it from causing + crashes. Made objc_registerClassPair() log error if there is already + a class of the name. + * Source/ObjectiveC2/sync.m: Replace with Greg's implementation + (reported as working though I haven't tested it). 2010-08-19 Richard Frith-Macdonald - * configure.ac: Check alignment of pthread types - * configure: Regenerate - * Headers/Additions/GNUstepBase/GSConfig.h.in: Record alignment + * configure.ac: Check alignment of pthread types + * configure: Regenerate + * Headers/Additions/GNUstepBase/GSConfig.h.in: Record alignment 2010-08-18 Richard Frith-Macdonald - * Source/NSNumber.m: Modifications to permit generation of NIBs that - OSX can read again ... functionality was lost in recent rewrite. + * Source/NSNumber.m: Modifications to permit generation of NIBs that + OSX can read again ... functionality was lost in recent rewrite. 2010-08-17 Richard Frith-Macdonald - * Source/NSObject.m: - * Source/NSDistantObject.m: - Return nil from (methodSignatureForSelector:) if the selector is null. - * Source/NSObjcRuntime.m: - Register new selector as needed. + * Source/NSObject.m: + * Source/NSDistantObject.m: + Return nil from (methodSignatureForSelector:) if the selector is null. + * Source/NSObjcRuntime.m: + Register new selector as needed. 2010-08-17 Wolfgang Lux - * Source/NSNotificationQueue.m: remove_from_queue_no_release() - Add assertions instead of existing hack when removing an item - from a corrupted list. + * Source/NSNotificationQueue.m: remove_from_queue_no_release() + Add assertions instead of existing hack when removing an item + from a corrupted list. 2010-08-17 Richard Frith-Macdonald - * Source/NSNotificationQueue.m: notify() .. buffer notifications - and remove from list before posting them. - Prevents re-entrancy problems where another call to notify() could - post (and remove from the list) notifications. + * Source/NSNotificationQueue.m: notify() .. buffer notifications + and remove from list before posting them. + Prevents re-entrancy problems where another call to notify() could + post (and remove from the list) notifications. 2010-08-13 Eric Wasylishen - * Headers/Foundation/NSLocale.h: - * Headers/Foundation/NSUserDefaults.h: - Fix typo (GSAPI_LAST -> GS_API_LATEST) + * Headers/Foundation/NSLocale.h: + * Headers/Foundation/NSUserDefaults.h: + Fix typo (GSAPI_LAST -> GS_API_LATEST) 2010-08-12 Nicola Pero - * Resources/Languages/Locale.aliases: Added many languages which - were missing from the list. Data taken from - gettext-0.18.1.1/gettext-tools/doc/ISO_639 and - gettext-0.18.1.1/gettext-tools/doc/ISO_639-2. + * Resources/Languages/Locale.aliases: Added many languages which + were missing from the list. Data taken from + gettext-0.18.1.1/gettext-tools/doc/ISO_639 and + gettext-0.18.1.1/gettext-tools/doc/ISO_639-2. 2010-08-10 Richard Frith-Macdonald - * Source/NSTask.m: thread-safety fix. + * Source/NSTask.m: thread-safety fix. 2010-08-10 Richard Frith-Macdonald - * Source/NSRunLoop.m: - * Source/NSURLProtocol.m: - * Source/GSAttributedString.m: - * Source/ObjectiveC2/properties.m: - * Source/NSProtocolChecker.m: - * Source/NSDistantObject.m: - * Tools/gdomap.c: - Functionless changes to avoid compiler warnings reported by Fred. + * Source/NSRunLoop.m: + * Source/NSURLProtocol.m: + * Source/GSAttributedString.m: + * Source/ObjectiveC2/properties.m: + * Source/NSProtocolChecker.m: + * Source/NSDistantObject.m: + * Tools/gdomap.c: + Functionless changes to avoid compiler warnings reported by Fred. 2010-08-07 Richard Frith-Macdonald - * Source/NSCalendarDate.m: Fix for %p AM/PM parsing to implicitly set - us to use twelve hour clock. + * Source/NSCalendarDate.m: Fix for %p AM/PM parsing to implicitly set + us to use twelve hour clock. 2010-08-06 Doug Simons - * Source/NSCalendarDate.m: Fix to AM/PM parsing to recognize - 12 AM as midnight, not noon. When format calls for a time zone, - return nil if no time zone is given (the same as Cocoa). + * Source/NSCalendarDate.m: Fix to AM/PM parsing to recognize + 12 AM as midnight, not noon. When format calls for a time zone, + return nil if no time zone is given (the same as Cocoa). 2010-07-31 Quentin Mathe - * Tools/AGSParser.h: - * Tools/AGSParser.m: - (-canWrapWithParagraphMarkup:, -generateParagraphMarkupForString:): - Tweaked paragraph generation to ignore /n/n sequences inside - markup. - (-parseDeclaration): Added enum documentation parsing. + * Tools/AGSParser.h: + * Tools/AGSParser.m: + (-canWrapWithParagraphMarkup:, -generateParagraphMarkupForString:): + Tweaked paragraph generation to ignore /n/n sequences inside + markup. + (-parseDeclaration): Added enum documentation parsing. 2010-07-26 Nicola Pero - * Documentation/GNUmakefile (REF_DOC_INSTALL_DIR): Use - GNUSTEP_DOC, not GNUSTEP_DOCUMENTATION, which has been deprecated - for over 3 years. - * Documentation/Makefile.postamble (after-uninstall): Rewritten to - be more accurate. + * Documentation/GNUmakefile (REF_DOC_INSTALL_DIR): Use + GNUSTEP_DOC, not GNUSTEP_DOCUMENTATION, which has been deprecated + for over 3 years. + * Documentation/Makefile.postamble (after-uninstall): Rewritten to + be more accurate. 2010-07-26 Nicola Pero - * Source/NSBundle.m ([+_addFrameworkFromClass:]): Added support - for class lists of frameworks with a relative path. If the - framework path is relative, convert it to absolute by prepending - the launch directory to it, since that must be how the dynamic - linker located the framework to load it. + * Source/NSBundle.m ([+_addFrameworkFromClass:]): Added support + for class lists of frameworks with a relative path. If the + framework path is relative, convert it to absolute by prepending + the launch directory to it, since that must be how the dynamic + linker located the framework to load it. 2010-07-22 Richard Frith-Macdonald - * Source/NSString.m: Change to use ([-isKindOfClass:]) in a couple - of places. Revert David's last change entirely ... in the svn log - he said: 'Do the same stupid thing Apple does (return NO), rather - than the stupid thing we were doing (segfault), when passing a proxy - as the argument to [NSString isEqualToString:]', but this comment - seems to be almost entirely wrong as: - 1. we don't segfault (on my machines ... perhaps we do on other - systems but if so we should find the underlying bug and fix it) - 2. Apple (OSX Snow Leopard) doesn't behave that way ... the testsuite - (NSProxy test00.m) shows it behaving the saem way as GNUstep. - 3. The change also broke string subclasses (bug #30511) + * Source/NSString.m: Change to use ([-isKindOfClass:]) in a couple + of places. Revert David's last change entirely ... in the svn log + he said: 'Do the same stupid thing Apple does (return NO), rather + than the stupid thing we were doing (segfault), when passing a proxy + as the argument to [NSString isEqualToString:]', but this comment + seems to be almost entirely wrong as: + 1. we don't segfault (on my machines ... perhaps we do on other + systems but if so we should find the underlying bug and fix it) + 2. Apple (OSX Snow Leopard) doesn't behave that way ... the testsuite + (NSProxy test00.m) shows it behaving the saem way as GNUstep. + 3. The change also broke string subclasses (bug #30511) 2010-07-19 Niels Grewe - * Source/ObjectiveC2/runtime.c: - * Source/ObjectiveC2/runtime.h: - Add sel_getType_np(), which just calls sel_get_type(). + * Source/ObjectiveC2/runtime.c: + * Source/ObjectiveC2/runtime.h: + Add sel_getType_np(), which just calls sel_get_type(). 2010-07-19 Richard Frith-Macdonald - * Source/NSPathUtilities.m: User domain handling improvements. - Match gnustep-make in allowing absolute paths to be specified for the - user domain directories rather than always treating user domain paths - as being within the user's home directory. - Also, add support for simple field substitution into the path: - '%u' --> user name - '%i' --> user id - '%%' --> '%' - * Documentation/Base.gsdoc: Document the new behavior. + * Source/NSPathUtilities.m: User domain handling improvements. + Match gnustep-make in allowing absolute paths to be specified for the + user domain directories rather than always treating user domain paths + as being within the user's home directory. + Also, add support for simple field substitution into the path: + '%u' --> user name + '%i' --> user id + '%%' --> '%' + * Documentation/Base.gsdoc: Document the new behavior. 2010-07-19 Niels Grewe - * Headers/Additions/GNUstepBase/GSConfig.h: Define GS_USE_ICU when - the configure script indicates libicu availablity. - * Headers/Foundation/Foundation.h: Import NSLocale.h - * Source/NSLocale.m: Change tests to use GS_USE_ICU. - Make sure that the parts of NSLocale relying on ICU actually get built - when libicu is available. + * Headers/Additions/GNUstepBase/GSConfig.h: Define GS_USE_ICU when + the configure script indicates libicu availablity. + * Headers/Foundation/Foundation.h: Import NSLocale.h + * Source/NSLocale.m: Change tests to use GS_USE_ICU. + Make sure that the parts of NSLocale relying on ICU actually get built + when libicu is available. 2010-07-17 Quentin Mathe - * Tools/autogsdoc.m: - * Tools/AGSParser.m: - Added the ability to generate paragraph markup. Turned off by default. - For each paragraph break ('/n/n' sequence) and when no incompatible - elements exist in the scanned paragraph,

tags can be automatically - inserted (more explanations in -canWrapWithParagraphMarkup: doc). + * Tools/autogsdoc.m: + * Tools/AGSParser.m: + Added the ability to generate paragraph markup. Turned off by default. + For each paragraph break ('/n/n' sequence) and when no incompatible + elements exist in the scanned paragraph,

tags can be automatically + inserted (more explanations in -canWrapWithParagraphMarkup: doc). 2010-07-13 Richard Frith-Macdonald - * Headers/Foundation/NSNetServices.h: - * Source/GSAvahiClient.h: - * Source/GSNetServices.h: - * Source/GSAvahiNetService.m: - Attempt to get ahavi code working without breaking ABI. + * Headers/Foundation/NSNetServices.h: + * Source/GSAvahiClient.h: + * Source/GSNetServices.h: + * Source/GSAvahiNetService.m: + Attempt to get ahavi code working without breaking ABI. 2010-07-13 Niels Grewe - * Headers/Foundation/NSNetServices.h: Update to a version working with - both mDNSResponder and Avahi. - * Source/GSAvahiNetService.m: Fix leftover duplicate variables. - * Source/GSNetServices.h: Revert to r30954, but add padding ivars to - the Avahi classes. - Make Avahi-NSNetServices work again. + * Headers/Foundation/NSNetServices.h: Update to a version working with + both mDNSResponder and Avahi. + * Source/GSAvahiNetService.m: Fix leftover duplicate variables. + * Source/GSNetServices.h: Revert to r30954, but add padding ivars to + the Avahi classes. + Make Avahi-NSNetServices work again. 2010-07-13 Niels Grewe - * Source/NSNetServices.m: Replace with the new version. - * Source/GSNetServices.h: Add missing header. - Add code missing from the previous patch. + * Source/NSNetServices.m: Replace with the new version. + * Source/GSNetServices.h: Add missing header. + Add code missing from the previous patch. 2010-03-27 Niels Grewe - * configure.ac: Add check for avahi-client. - * configure: Regenerate - * base.make.in: Add build-variables for Avahi. - * Source/GNUmakefile: Add avahi-based NSNetServices to build - * Source/GSAvahiRunLoopIntegration.h: - * Source/GSAvahiRunLoopIntegration.m: - * Source/GSAvahiClient.h: - * Source/GSAvahiClient.m: - * Source/GSAvahiNetService.m: - * Source/GSAvahiNetServiceBrowser.m: Add avahi-based NSNetServices - implementation - * Source/GSMDNSNetServies.m: Move mDNS-implementation to this file - * Source/GSNetServices.h: New private header for NSNetServices - * Source/NSNetServices.m: Abstract superclasses - * Headers/Foundation/NSNetServices.h: Adopt to new class structure - * Headers/Additions/GNUstepBase/GSConfig.h.in: Add zeroconf related - variables. - * Header/Additions/GNUstepBase/Additions.h: - * Headers/Additions/GNUstepBase/NSNetServices+GNUstepBase.h: Add header - with extensions for the avahi-based NSNetService class. - Implement NSNetService and NSNetServiceBrowser on top of the - avahi-client API. Both classes are now abstract superclasses of the - concrete implementations based on the mDNSResponder or avahi-client - APIs. The API to be used can be configured with the - --with-zeroconf-api=API (mdns, avahi, or any) configure-switch. If both - APIs are available, the avahi API will be preferred. + * configure.ac: Add check for avahi-client. + * configure: Regenerate + * base.make.in: Add build-variables for Avahi. + * Source/GNUmakefile: Add avahi-based NSNetServices to build + * Source/GSAvahiRunLoopIntegration.h: + * Source/GSAvahiRunLoopIntegration.m: + * Source/GSAvahiClient.h: + * Source/GSAvahiClient.m: + * Source/GSAvahiNetService.m: + * Source/GSAvahiNetServiceBrowser.m: Add avahi-based NSNetServices + implementation + * Source/GSMDNSNetServies.m: Move mDNS-implementation to this file + * Source/GSNetServices.h: New private header for NSNetServices + * Source/NSNetServices.m: Abstract superclasses + * Headers/Foundation/NSNetServices.h: Adopt to new class structure + * Headers/Additions/GNUstepBase/GSConfig.h.in: Add zeroconf related + variables. + * Header/Additions/GNUstepBase/Additions.h: + * Headers/Additions/GNUstepBase/NSNetServices+GNUstepBase.h: Add header + with extensions for the avahi-based NSNetService class. + Implement NSNetService and NSNetServiceBrowser on top of the + avahi-client API. Both classes are now abstract superclasses of the + concrete implementations based on the mDNSResponder or avahi-client + APIs. The API to be used can be configured with the + --with-zeroconf-api=API (mdns, avahi, or any) configure-switch. If both + APIs are available, the avahi API will be preferred. 2010-07-12 Richard Frith-Macdonald - * Tools/gdomap.c: Fix logic error in recnt mod. Add some debug. + * Tools/gdomap.c: Fix logic error in recnt mod. Add some debug. 2010-07-03 Richard Frith-Macdonald - * Source/Addictions/NSError+GNUstepBase.m: - Declare _XOPEN_SOURCE so that glibc gives us the correct version of - the strerror_r function. + * Source/Addictions/NSError+GNUstepBase.m: + Declare _XOPEN_SOURCE so that glibc gives us the correct version of + the strerror_r function. 2010-01-07 Niels Grewe - * Source/GNUmakefile - * Source/Makefile.postamble: - Fix makefile to copy common.h into $GNUSTEP_TARGET_DIR so that it is - found when building with a non-flattened namespace. + * Source/GNUmakefile + * Source/Makefile.postamble: + Fix makefile to copy common.h into $GNUSTEP_TARGET_DIR so that it is + found when building with a non-flattened namespace. 2010-07-01 Richard Frith-Macdonald - * Source/CXXException.m: Fixup to get base to compile again. - I think this API needs improving ... this should be an NSException - subclass or category, and catching it should be transparent to the - developer. + * Source/CXXException.m: Fixup to get base to compile again. + I think this API needs improving ... this should be an NSException + subclass or category, and catching it should be transparent to the + developer. 2010-06-29 Richard Frith-Macdonald - * Source/NSKeyedUnarchiver.m: Workaround for buggy inttypes.h on older - Solaris systems. + * Source/NSKeyedUnarchiver.m: Workaround for buggy inttypes.h on older + Solaris systems. 2010-06-28 Richard Frith-Macdonald - * Source/NSSet.m: Fix incorrect return value in NSMutableSet's - -classForCoder method. + * Source/NSSet.m: Fix incorrect return value in NSMutableSet's + -classForCoder method. 2010-06-28 Quentin Mathe - * Tools/autogsdoc.m: Improved to search for .m files among the - command-line arguments in addition to the current directory and - documentation directory. + * Tools/autogsdoc.m: Improved to search for .m files among the + command-line arguments in addition to the current directory and + documentation directory. 2010-06-26 Richard Frith-Macdonald - * Source/NSObject.m: Remove the Object(NSObjectCompat) category as the - use of the Object class is *really* obsolete, and also there appears - to be an objc runtime bug whaich adds the category methods to NSZombie - even though NSZombie is not a subclass of Object. - * Tools/gdomap.c: Avoid strange hang when trying to register on port 0 + * Source/NSObject.m: Remove the Object(NSObjectCompat) category as the + use of the Object class is *really* obsolete, and also there appears + to be an objc runtime bug whaich adds the category methods to NSZombie + even though NSZombie is not a subclass of Object. + * Tools/gdomap.c: Avoid strange hang when trying to register on port 0 2010-06-25 Richard Frith-Macdonald - * Source/NSURL.m: Implement keyed coding - * Source/NSBundle.m: When fetching a localised resource for a specific - language, ignore the language list in the user preferences, and just - look for that language asn for unlocalised data. + * Source/NSURL.m: Implement keyed coding + * Source/NSBundle.m: When fetching a localised resource for a specific + language, ignore the language list in the user preferences, and just + look for that language asn for unlocalised data. 2010-06-25 Richard Frith-Macdonald - * Source/NSKeyedArchiver.m: - * Source/NSKeyedUnarchiver.m: - Implement NSInteger methods and add range checking when decoding. + * Source/NSKeyedArchiver.m: + * Source/NSKeyedUnarchiver.m: + Implement NSInteger methods and add range checking when decoding. 2010-06-25 Richard Frith-Macdonald - * Source/NSLocale.m - * Headers/Additions/GNUstepBase/config.h.in - * config/icu.m4 - * configure.ac - * configure - * config.mak.in - Autoconf support for ICU + * Source/NSLocale.m + * Headers/Additions/GNUstepBase/config.h.in + * config/icu.m4 + * configure.ac + * configure + * config.mak.in + Autoconf support for ICU 2010-06-25 Richard Frith-Macdonald - * Headers/Foundation/Foundation.h: add NSLocale - * Headers/Foundation/NSLocale.h: rewrite/document - * Source/GNUmakefile: add NSLocale - * Source/NSLocale.m: fixup headers and disable temporarily (so that - base will still build) + * Headers/Foundation/Foundation.h: add NSLocale + * Headers/Foundation/NSLocale.h: rewrite/document + * Source/GNUmakefile: add NSLocale + * Source/NSLocale.m: fixup headers and disable temporarily (so that + base will still build) 2010-06-25 Stef Bidi - * Headers/Foundation/NSLocale.h - * Source/NSLocale.m - Partial NSLocale implementation wrapping ICU + * Headers/Foundation/NSLocale.h + * Source/NSLocale.m + Partial NSLocale implementation wrapping ICU 2010-06-23 Richard Frith-Macdonald - * Source/NSBundle.m: When looking up paths, if no extension is provided - then try to obtain it from the name. Mimics OSX behavior. + * Source/NSBundle.m: When looking up paths, if no extension is provided + then try to obtain it from the name. Mimics OSX behavior. 2010-06-22 David Wetzel - * Headers/Foundation/NSFileManager.h - * Source/NSFileManager.m - add attributesOfItemAtPath:error: + * Headers/Foundation/NSFileManager.h + * Source/NSFileManager.m + add attributesOfItemAtPath:error: 2010-06-22 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSVersionMacros.h: - Include header for ObjC2 blocks support if the compiler had that. + * Headers/Additions/GNUstepBase/GSVersionMacros.h: + Include header for ObjC2 blocks support if the compiler had that. 2010-06-20 Richard Frith-Macdonald @@ -15016,351 +15027,351 @@ 2010-06-19 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Remove inappropriate warning (when library - used without resources). + * Source/NSUserDefaults.m: Remove inappropriate warning (when library + used without resources). 2010-06-16 Sergey Golovin - * Source/NSTimeZone.m: find timezone from localtime file when it's - a copy rather than a link to a file whose name is a timezone name. + * Source/NSTimeZone.m: find timezone from localtime file when it's + a copy rather than a link to a file whose name is a timezone name. 2010-06-16 Richard Frith-Macdonald - * configure.ac: better control over constant string class - * configure: regenerate - Don't allow build if compiler doesn't let us set the constant string - class ... unless explicitly overridden (add warning). - Explicitly deprecate ffcall + * configure.ac: better control over constant string class + * configure: regenerate + Don't allow build if compiler doesn't let us set the constant string + class ... unless explicitly overridden (add warning). + Explicitly deprecate ffcall 2010-06-15 Richard Frith-Macdonald - * Source/NSInvocation: For portability, use NSPageSize() to find - size for page alignment. - * Source/NSString.m: Raise exception on pul pointer passed to - +stringWithCString:encoding: as per OSX. - * Source/Additions/GSXML.m: Fix minor memory leak - * Source/NSArray.m: ([-valueForKey:]) for for @count + * Source/NSInvocation: For portability, use NSPageSize() to find + size for page alignment. + * Source/NSString.m: Raise exception on pul pointer passed to + +stringWithCString:encoding: as per OSX. + * Source/Additions/GSXML.m: Fix minor memory leak + * Source/NSArray.m: ([-valueForKey:]) for for @count 2010-06-15 Riccardo Mottola - * Source/NSInvocation: - Protect page-aligned and unprotect before freeing. + * Source/NSInvocation: + Protect page-aligned and unprotect before freeing. 2010-06-13 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Fix indirect through null pointer. + * Source/Additions/Unicode.m: Fix indirect through null pointer. 2010-06-12 Richard Frith-Macdonald - * Source/NSNumber.m: Fix breakage of +numberWith... in subclasses. + * Source/NSNumber.m: Fix breakage of +numberWith... in subclasses. 2010-06-12 Yavor Doganov - * Source/NSZone.m: - * Source/GSPThread.h: - * Source/objc-load.h: - * Source/objc-load.m: - * Source/NSException.m: - * Source/ObjectiveC2/sync.m: - * Source/NSString.m: - * Source/NSDecimalNumber.m: - * Source/NSDecimal.m: - * Source/NSLock.m: - * configure.ac: Use autoconf AC_USE_SYSTEM_EXTENSIONS - * configure: Regenerate - * Headers/Additions/GNUstepBase/config.h.in: Regenerate - Simplification of source code by using autoconf to enable extensions - for Unix98 thread handling etc. + * Source/NSZone.m: + * Source/GSPThread.h: + * Source/objc-load.h: + * Source/objc-load.m: + * Source/NSException.m: + * Source/ObjectiveC2/sync.m: + * Source/NSString.m: + * Source/NSDecimalNumber.m: + * Source/NSDecimal.m: + * Source/NSLock.m: + * configure.ac: Use autoconf AC_USE_SYSTEM_EXTENSIONS + * configure: Regenerate + * Headers/Additions/GNUstepBase/config.h.in: Regenerate + Simplification of source code by using autoconf to enable extensions + for Unix98 thread handling etc. 2010-06-11 Riccardo Mottola - * Source/NSZone.m - * Source/GSPThread.h - * Source/NSLock.m - * Source/ObjectiveC2/sync.m: Attempt of fixing test for defining - _XOPEN_SOURCE again + * Source/NSZone.m + * Source/GSPThread.h + * Source/NSLock.m + * Source/ObjectiveC2/sync.m: Attempt of fixing test for defining + _XOPEN_SOURCE again 2010-06-10 Richard Frith-Macdonald - * Source/NSSocketPortNameServer.m: Improve automated gdomap startup log - * configure.ac: Don't install gdomap setuid by default. - * configure: regenerate + * Source/NSSocketPortNameServer.m: Improve automated gdomap startup log + * configure.ac: Don't install gdomap setuid by default. + * configure: regenerate 2010-06-10 Richard Frith-Macdonald - * Source/NSString.m: Raise exception if a null pointer is passed to - +stringWithUTF8String: for compatibility with OSX. - * Source/Additions/GSMime.m: Alter hash and isEqual implementations - for headers and document so that copies are equal to the original - and can be stored and looked up in maps. + * Source/NSString.m: Raise exception if a null pointer is passed to + +stringWithUTF8String: for compatibility with OSX. + * Source/Additions/GSMime.m: Alter hash and isEqual implementations + for headers and document so that copies are equal to the original + and can be stored and looked up in maps. 2010-06-09 David Wetzel - * Source/Additions/GSXML.m: - check for NULL string - stringWithUTF8String: raises on OSX if you feed it with a NULL string. + * Source/Additions/GSXML.m: + check for NULL string + stringWithUTF8String: raises on OSX if you feed it with a NULL string. 2010-06-09 Richard Frith-Macdonald - * configure.ac: Check for gcrypt library for TLS - * configure: Regenerate - * Headers/Additions/GNUstepBase/GSConfig.h.in: Remove unused declaration - * Source/NSProcessInfo.m: log and exit rather than raising exception on - failure to call internal method to set up argv/envp. - * Source/Additions/GSMime.m: Rewrite header parsing to avoid copying - email body unnecessarily. Also attempt to parse multipart body - without copying too much. + * configure.ac: Check for gcrypt library for TLS + * configure: Regenerate + * Headers/Additions/GNUstepBase/GSConfig.h.in: Remove unused declaration + * Source/NSProcessInfo.m: log and exit rather than raising exception on + failure to call internal method to set up argv/envp. + * Source/Additions/GSMime.m: Rewrite header parsing to avoid copying + email body unnecessarily. Also attempt to parse multipart body + without copying too much. 2010-06-09 Yavor Doganov - *Source/ObjectiveC2/sync.m: Fix test for defining _XOPEN_SOURCE + *Source/ObjectiveC2/sync.m: Fix test for defining _XOPEN_SOURCE 2010-06-08 Richard Frith-Macdonald - * Source/NSPropertyList.m: When encoding OSX binary property list, - try to differentiate between integer and float items which have the - same numeric value (bug #30040). + * Source/NSPropertyList.m: When encoding OSX binary property list, + try to differentiate between integer and float items which have the + same numeric value (bug #30040). 2010-06-08 Richard Frith-Macdonald - * Source/NSURL.m: - Return nil for -path if initialised with empty string ... OSX compat. + * Source/NSURL.m: + Return nil for -path if initialised with empty string ... OSX compat. 2010-06-08 Richard Frith-Macdonald - * Source/GSFFIInvocation.m: - Further fixup to earlier invocation breakage ... my previous attempt - didn't cover all cases. + * Source/GSFFIInvocation.m: + Further fixup to earlier invocation breakage ... my previous attempt + didn't cover all cases. 2010-06-08 Richard Frith-Macdonald - * Source/GSFFIInvocation.m: - * Source/cifframe.h: - * Source/cifframe.m: - Removed distinction between GC and non-GC code. + * Source/GSFFIInvocation.m: + * Source/cifframe.h: + * Source/cifframe.m: + Removed distinction between GC and non-GC code. 2010-06-07 Richard Frith-Macdonald - * Source/GSInvocation.h: - * Source/GSFFIInvocation.m: - * Source/NSInvocation.m: - * Source/cifframe.h: - * Source/cifframe.m: - Rework memory management for frame used in FFI invocation so that - the memory has a retain count and multiple invocations can use the - same frame since it looks like the way FFI works, if you cache the - method implementation of a proxy, the same frame memory is re-used - in multiple invocations. + * Source/GSInvocation.h: + * Source/GSFFIInvocation.m: + * Source/NSInvocation.m: + * Source/cifframe.h: + * Source/cifframe.m: + Rework memory management for frame used in FFI invocation so that + the memory has a retain count and multiple invocations can use the + same frame since it looks like the way FFI works, if you cache the + method implementation of a proxy, the same frame memory is re-used + in multiple invocations. 2010-06-07 Richard Frith-Macdonald - * Source/GSFFIInvocation.m: Fix breakage caused by David's changes. - * Source/ObjectiveC2/runtime.m: Fix handling of nul arguments in - class_sespondsToSelector(). + * Source/GSFFIInvocation.m: Fix breakage caused by David's changes. + * Source/ObjectiveC2/runtime.m: Fix handling of nul arguments in + class_sespondsToSelector(). 2010-06-05 Richard Frith-Macdonald - * Tools/Makefile.postamble: Fix breakage of instalation of gdomap - (was installing setuid to wrong user ID!). + * Tools/Makefile.postamble: Fix breakage of instalation of gdomap + (was installing setuid to wrong user ID!). 2010-06-02 Richard Frith-Macdonald - * Source/NSTimeZone.m: revert change of order of sources for zone - info since tzname does not appear to be more reliable than filename. - Allof timezone to be specified as an abbreviation rather than a name. + * Source/NSTimeZone.m: revert change of order of sources for zone + info since tzname does not appear to be more reliable than filename. + Allof timezone to be specified as an abbreviation rather than a name. 2010-06-02 Nicola Pero - * configure.ac: Added --disable-setuid-gdomap option to disable - installing gdomap as setuid. - * configure: Regenerated. - * config.mak.in (GNUSTEP_INSTALL_GDOMAP_AS_SETUID): New variable. - * Tools/Makefile.postamble: - (after-install): Instal gdomap as setuid only if - GNUSTEP_INSTALL_GDOMAP_AS_SETUID is set to 'yes'. Updated - messages for the changes and generally tidied messages up. + * configure.ac: Added --disable-setuid-gdomap option to disable + installing gdomap as setuid. + * configure: Regenerated. + * config.mak.in (GNUSTEP_INSTALL_GDOMAP_AS_SETUID): New variable. + * Tools/Makefile.postamble: + (after-install): Instal gdomap as setuid only if + GNUSTEP_INSTALL_GDOMAP_AS_SETUID is set to 'yes'. Updated + messages for the changes and generally tidied messages up. 2010-06-01 Richard Frith-Macdonald - * Source/NSTimeZone.m: add diagnostic to report the source of the - timezone name when we can't create the local timezone. - Use tzset()/tzname in preference to the name of the default timezone - file ... in case of evil systems where the file has the wrong name. + * Source/NSTimeZone.m: add diagnostic to report the source of the + timezone name when we can't create the local timezone. + Use tzset()/tzname in preference to the name of the default timezone + file ... in case of evil systems where the file has the wrong name. 2010-06-01 Richard Frith-Macdonald - * Source/Additions/NSPropertyList+GNUstepBase.m: - New category to replace property list write functionality no longer - present in OSX. - * base.make.in: Link with base additions library on OSX + * Source/Additions/NSPropertyList+GNUstepBase.m: + New category to replace property list write functionality no longer + present in OSX. + * base.make.in: Link with base additions library on OSX 2010-05-30 Richard Frith-Macdonald - * Source/Additions/GSMime.m: ([+encodingFromCharset:]) - Experimental extension to support NSStringEncoding symbolic constants - in string form, in addition to more common characterset names - (primarily for gdl2/gsweb). + * Source/Additions/GSMime.m: ([+encodingFromCharset:]) + Experimental extension to support NSStringEncoding symbolic constants + in string form, in addition to more common characterset names + (primarily for gdl2/gsweb). 2010-05-30 Richard Frith-Macdonald - * Source/NSString.m: - * Source/Additions/NSString+GNUstepBase.m: - * Headers/Foundation/NSString.h: - * Headers/Additions/GNUstepBase/NSString+GNUstepBase.h: - Revert last change ... there's no such method as +encodingNamed: - in OSX/OpenStep, so it definitely shouldn't be in NSString.[hm] - I think we can debate whether to add it to the additions library, - though I'm not sure that it's actually a generally useful addition - (if I understand correctly, it's used only in gdl2/gsweb and ought - probably to be a category there ... assuming that there's really - no existing/standard mechanism to do the job). + * Source/NSString.m: + * Source/Additions/NSString+GNUstepBase.m: + * Headers/Foundation/NSString.h: + * Headers/Additions/GNUstepBase/NSString+GNUstepBase.h: + Revert last change ... there's no such method as +encodingNamed: + in OSX/OpenStep, so it definitely shouldn't be in NSString.[hm] + I think we can debate whether to add it to the additions library, + though I'm not sure that it's actually a generally useful addition + (if I understand correctly, it's used only in gdl2/gsweb and ought + probably to be a category there ... assuming that there's really + no existing/standard mechanism to do the job). 2010-05-30 David Wetzel - * Source/NSString.m - * Source/Additions/NSString+GNUstepBase.m - * Headers/Foundation/NSString.h - * Headers/Additions/GNUstepBase/NSString+GNUstepBase.h - added encodingNamed: + * Source/NSString.m + * Source/Additions/NSString+GNUstepBase.m + * Headers/Foundation/NSString.h + * Headers/Additions/GNUstepBase/NSString+GNUstepBase.h + added encodingNamed: 2010-05-30 Richard Frith-Macdonald - * Source/NSObject.h: - Floating point fix for openbsd suggested by Sebastian Reitenbach + * Source/NSObject.h: + Floating point fix for openbsd suggested by Sebastian Reitenbach 2010-05-30 Wolfgang Lux - * Source/NSAttributedString.m (-initWithCoder:, -encodeWithCoder:): - Fix keyed archiving and unarchiving of (mutable) attributed - strings with multiple attribute ranges. + * Source/NSAttributedString.m (-initWithCoder:, -encodeWithCoder:): + Fix keyed archiving and unarchiving of (mutable) attributed + strings with multiple attribute ranges. 2010-05-30 Richard Frith-Macdonald - * NSTimeZones/NSTimeZones.tar: Update to latest zone info. + * NSTimeZones/NSTimeZones.tar: Update to latest zone info. 2010-05-29 Richard Frith-Macdonald - * Source/NSData.m: Attempted fix for bug #29920 + * Source/NSData.m: Attempted fix for bug #29920 2010-05-29 Richard Frith-Macdonald - * Source/NSConcreteHashTable.m: - * Source/NSHashTable.m: In ([-allObjects]) fix buf overrun (bug #29980). - * Source/NSXMLParser.m: Fix off-by-one error handling whitespace. - * Headers/Additions/GNUstepBase/GSMime.h: Revert xml charset method. - * Source/NSURL.m: Allow a URL made from an empty string (OSX compat). + * Source/NSConcreteHashTable.m: + * Source/NSHashTable.m: In ([-allObjects]) fix buf overrun (bug #29980). + * Source/NSXMLParser.m: Fix off-by-one error handling whitespace. + * Headers/Additions/GNUstepBase/GSMime.h: Revert xml charset method. + * Source/NSURL.m: Allow a URL made from an empty string (OSX compat). 2010-05-28 Quentin Mathe - * Source/NSKeyValueCoding.m: Added missing support to ValueForKey() as - described in Apple Key-Value-Coding guide. -isKey is now treated as a - KVC-compliant getter, and _isKey and isKey as KVC-compliant ivars. + * Source/NSKeyValueCoding.m: Added missing support to ValueForKey() as + described in Apple Key-Value-Coding guide. -isKey is now treated as a + KVC-compliant getter, and _isKey and isKey as KVC-compliant ivars. 2010-05-25 Richard Frith-Macdonald - * Source/NSPropertyList.m: ([-parser:foundCharacters:]) don't trim - the supplied string ... we need to retain whitespace around entities - in value test. If inside a element, treat ignorable - whitespace as normal whitespace. - * Source/NSXMLParser.m: Add support for ignorable whitespace so that - it doesn't get handed to the delegate as normal characters. + * Source/NSPropertyList.m: ([-parser:foundCharacters:]) don't trim + the supplied string ... we need to retain whitespace around entities + in value test. If inside a element, treat ignorable + whitespace as normal whitespace. + * Source/NSXMLParser.m: Add support for ignorable whitespace so that + it doesn't get handed to the delegate as normal characters. 2010-05-22 Richard Frith-Macdonald - * Headers/Foundation/NSObjCRuntime.h: - Remove include of stdint.h ... already included by GSConfig.h - * Source/ObjectiveC2/runtime.h: - Revert 'guarding' of stdint.h inclusion to get things to compile - again ... we *require* stdint.h to be present. - I guess on any system old enough not to have it, the solution - would be to generate and install our own version. + * Headers/Foundation/NSObjCRuntime.h: + Remove include of stdint.h ... already included by GSConfig.h + * Source/ObjectiveC2/runtime.h: + Revert 'guarding' of stdint.h inclusion to get things to compile + again ... we *require* stdint.h to be present. + I guess on any system old enough not to have it, the solution + would be to generate and install our own version. 2010-05-21 Riccardo Mottola - * Source/ObjectiveC2/runtime.h: - correctly import config.h + * Source/ObjectiveC2/runtime.h: + correctly import config.h 2010-05-21 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSMime.h: Expose xml charset method. - * Source/NSXMLParser.m: Determine correct charset when parsing. + * Headers/Additions/GNUstepBase/GSMime.h: Expose xml charset method. + * Source/NSXMLParser.m: Determine correct charset when parsing. 2010-05-21 Riccardo Mottola - * Source/inet_pton.c - Source/ObjectiveC2/runtime.h - Headers/Foundation/NSObjCRuntime.h: - Guarded stdint.h inclusion. + * Source/inet_pton.c + Source/ObjectiveC2/runtime.h + Headers/Foundation/NSObjCRuntime.h: + Guarded stdint.h inclusion. 2010-05-19 Richard Frith-Macdonald - * Source/Additions/GSObjCRuntime.m: GSObjCMethodNames() fix for - bug #29910 + * Source/Additions/GSObjCRuntime.m: GSObjCMethodNames() fix for + bug #29910 2010-05-10 Adam Fedor - * Fix typos, clarify unstable release documentation + * Fix typos, clarify unstable release documentation 2010-05-08 Adam Fedor - * Unstable Version 1.21.0 + * Unstable Version 1.21.0 2010-05-08 Adam Fedor - * Version 1.20.0 + * Version 1.20.0 2010-05-06 Richard Frith-Macdonald - * Tools/gdomap.c: Limit config files to containing a thousand entries - for safety/security. + * Tools/gdomap.c: Limit config files to containing a thousand entries + for safety/security. 2010-05-05 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: - * Source/NSURLProtocol.m: - Fix for bug #29764 ... add percent escapes to the path when generating - the URI in the HTTP request. + * Source/GSHTTPURLHandle.m: + * Source/NSURLProtocol.m: + Fix for bug #29764 ... add percent escapes to the path when generating + the URI in the HTTP request. 2010-05-05 Richard Frith-Macdonald - * Source/Tools/gdomap.c: security updates. - * Tools/Makefile.postamble: make warning messages a bit clearer and - more informative about gdomap being best started at system boot. + * Source/Tools/gdomap.c: security updates. + * Tools/Makefile.postamble: make warning messages a bit clearer and + more informative about gdomap being best started at system boot. 2010-05-03 Richard Frith-Macdonald - * Headers/Foundation/NSString.h, - * Source/NSString.m: Add 10.4 write methods. - Fixes part of bug report #29736. + * Headers/Foundation/NSString.h, + * Source/NSString.m: Add 10.4 write methods. + Fixes part of bug report #29736. 2010-05-02 Fred Kiefer - * Headers/Foundation/NSString.h, - * Source/NSString.m: Add a few missing 10.4 initWithContentsOfXXX: - methods. Fixes part of bug report #29736. + * Headers/Foundation/NSString.h, + * Source/NSString.m: Add a few missing 10.4 initWithContentsOfXXX: + methods. Fixes part of bug report #29736. 2010-05-01 Wolfgang Lux - * Source/Additions/GSObjCRuntime.m (GSObjCAllSubclassesOfClass): - Fix bug in previous change that made GSObjCAllSubclassesOfClass - return all superclasses instead of all subclasses. + * Source/Additions/GSObjCRuntime.m (GSObjCAllSubclassesOfClass): + Fix bug in previous change that made GSObjCAllSubclassesOfClass + return all superclasses instead of all subclasses. 2010-04-30 Richard Frith-Macdonald - * Source/Additions/GSObjCRuntime.m: - Attempt fix for bug #29720 + * Source/Additions/GSObjCRuntime.m: + Attempt fix for bug #29720 2010-04-26 Wolfgang Lux - * Source/NSObject.m (GSAtomicIncrement, GSAtomicDecrement): Use - local labels in PowerPC assembler code to avoid a compile error - when this code is inlined more than once. In addition, use the - optimized assembler definitions also on PowerPC machines running - Darwin/Mac OS X. + * Source/NSObject.m (GSAtomicIncrement, GSAtomicDecrement): Use + local labels in PowerPC assembler code to avoid a compile error + when this code is inlined more than once. In addition, use the + optimized assembler definitions also on PowerPC machines running + Darwin/Mac OS X. 2010-04-23 Richard Frith-Macdonald - * Source/Additions/NSFileHandle+GNUstepBase.m: fix to only build on OSX + * Source/Additions/NSFileHandle+GNUstepBase.m: fix to only build on OSX 2010-04-22 David Wetzel @@ -15374,250 +15385,249 @@ * Headers/Additions/GNUstepBase/GSObjCRuntime.h: replace objc_malloc with NSZoneMalloc and objc_free with NSZoneFree - 2010-04-21 Richard Frith-Macdonald - * Source/NSBundle.m: ([mainBundle]) Fix error determining whether - the bundle is an app or not ... was breaking lookup of tool resources. + * Source/NSBundle.m: ([mainBundle]) Fix error determining whether + the bundle is an app or not ... was breaking lookup of tool resources. 2010-04-19 Richard Frith-Macdonald - * Source/cifframe.m (cifframe_type): Fix the cached information - for the NSRange type. Was causing incorrect forwarding of NSRange + * Source/cifframe.m (cifframe_type): Fix the cached information + for the NSRange type. Was causing incorrect forwarding of NSRange arguments on 64bit systems. 2010-04-18 Nicola Pero - Fixed inefficiencies in building the SSL bundle. - * SSL/Makefile.postable: Do not create GNUSTEP_TARGET_DIR/config.h - from config.h; do not depend on config.status. - * SSL/Makefile.preamble: Corresponding updates to includes. + Fixed inefficiencies in building the SSL bundle. + * SSL/Makefile.postable: Do not create GNUSTEP_TARGET_DIR/config.h + from config.h; do not depend on config.status. + * SSL/Makefile.preamble: Corresponding updates to includes. 2010-04-18 Nicola Pero - Fixed bug 25356 ("make ignoring installation domain configuration - on windows"). - * configure.ac: Moved the path configuration here so that it is - executed at the right time. Removed duplicated code for all the - path config options. (AC_CONFIG_SUBDIRS): Removed - Source/pathconfig. - * configure: Regenerated. - * config.mak.in: Merged code from - Source/pathconfig/pathconfig.mak.in. - * Source/pathconfig: Removed. - * GNUmakefile: Do not include - Source/pathconfig/pathconfig.mak. - * Documentation/GNUmakefile: Same change. - * NSTimeZones/GNUmakefile: Same change. - * Source/GNUmakefile: Same change. - * SSL/GNUmakefile: Same change. - * Tools/GNUmakefile: Same change. - * Source/Makefile.postamble (after-distclean): Do not remove - files in pathconfig/. - * Source/NSPathUtilities.m: Do not include pathconfig.h. - * GNUmakefile: Include config.mak after common.make. - - * configure.ac: Exit immediately if GNUSTEP_MAKEFILES can not be - determined. - * configure.ac: Fixed determining GNUSTEP_LOCAL_HEADERS and - GNUSTEP_LOCAL_LIBRARIES when adding them to CPPFLAGS and LDFLAGS. - Add GNUSTEP_NETWORK_HEADERS and GNUSTEP_NETWORK_LIBRARIES as well. + Fixed bug 25356 ("make ignoring installation domain configuration + on windows"). + * configure.ac: Moved the path configuration here so that it is + executed at the right time. Removed duplicated code for all the + path config options. (AC_CONFIG_SUBDIRS): Removed + Source/pathconfig. + * configure: Regenerated. + * config.mak.in: Merged code from + Source/pathconfig/pathconfig.mak.in. + * Source/pathconfig: Removed. + * GNUmakefile: Do not include + Source/pathconfig/pathconfig.mak. + * Documentation/GNUmakefile: Same change. + * NSTimeZones/GNUmakefile: Same change. + * Source/GNUmakefile: Same change. + * SSL/GNUmakefile: Same change. + * Tools/GNUmakefile: Same change. + * Source/Makefile.postamble (after-distclean): Do not remove + files in pathconfig/. + * Source/NSPathUtilities.m: Do not include pathconfig.h. + * GNUmakefile: Include config.mak after common.make. + + * configure.ac: Exit immediately if GNUSTEP_MAKEFILES can not be + determined. + * configure.ac: Fixed determining GNUSTEP_LOCAL_HEADERS and + GNUSTEP_LOCAL_LIBRARIES when adding them to CPPFLAGS and LDFLAGS. + Add GNUSTEP_NETWORK_HEADERS and GNUSTEP_NETWORK_LIBRARIES as well. 2010-04-18 Nicola Pero - * configure.ac (AC_CONFIG_SUBDIRS): Fixed list of subdirs by - removing Source/mframe, which no longer exists. - * configure: Regenerated. + * configure.ac (AC_CONFIG_SUBDIRS): Fixed list of subdirs by + removing Source/mframe, which no longer exists. + * configure: Regenerated. 2010-04-16 Richard Frith-Macdonald - * Source/NSThread.m: Fix unregistering of threads to properly clean - up and deallocate, avoiding descriptor and memory leak. + * Source/NSThread.m: Fix unregistering of threads to properly clean + up and deallocate, avoiding descriptor and memory leak. 2010-04-15 Richard Frith-Macdonald - * Source/NSConnection.m: when decoding a pointer to an object, - autorelease the object to avoid a leak. + * Source/NSConnection.m: when decoding a pointer to an object, + autorelease the object to avoid a leak. 2010-04-14 Richard Frith-Macdonald - * Source/ObjectiveC2/runtime.c: work around buggy objc_skip_argspec() - * Source/NSConnection.m: work around buggy objc_skip_argspec() - * Source/NSObjCRuntime.m: Fix NSGetSizeAndAlignment() so it's OSX - compatible and can be used to replace objc_skip_argspec() (as that - function calls objc_skip_offset() which can skip a character too far). + * Source/ObjectiveC2/runtime.c: work around buggy objc_skip_argspec() + * Source/NSConnection.m: work around buggy objc_skip_argspec() + * Source/NSObjCRuntime.m: Fix NSGetSizeAndAlignment() so it's OSX + compatible and can be used to replace objc_skip_argspec() (as that + function calls objc_skip_offset() which can skip a character too far). 2010-04-13 Richard Frith-Macdonald - * Source/NSArray.m: ([-initWithContentsOfFile:]) added ugly OSX - compatibility hack ... return the mutable array deserialized from - the property list rather than an instance of the same class as - the receiver. The original GNUstep behavior made more sense. + * Source/NSArray.m: ([-initWithContentsOfFile:]) added ugly OSX + compatibility hack ... return the mutable array deserialized from + the property list rather than an instance of the same class as + the receiver. The original GNUstep behavior made more sense. 2010-04-13 Richard Frith-Macdonald - * Source/NSNotificationQueue.m: Fix error traversing queue. - Reverse direction of links in queue to be intuitive/consistent - with other linked lists. + * Source/NSNotificationQueue.m: Fix error traversing queue. + Reverse direction of links in queue to be intuitive/consistent + with other linked lists. 2010-04-12 Nicola Pero - * configure.ac: Rewritten test for -Wdeclaration-after-statement - to be more accurate. - * configure: Regenerated. + * configure.ac: Rewritten test for -Wdeclaration-after-statement + to be more accurate. + * configure: Regenerated. 2010-04-12 Richard Frith-Macdonald - * Source/NSObject.m: - * Headers/Foundation/NSObject.h: Document behavior of +load and - +initialize to preserve information I'm sure I once knew but had - forgotten. Obscure details. + * Source/NSObject.m: + * Headers/Foundation/NSObject.h: Document behavior of +load and + +initialize to preserve information I'm sure I once knew but had + forgotten. Obscure details. 2010-04-07 Doug Simons - * Source/NSPathUtilities.m: Prefer USERPROFILE for the - NSHomeDirectory() on Windows if HOMEPATH is set to '/'. + * Source/NSPathUtilities.m: Prefer USERPROFILE for the + NSHomeDirectory() on Windows if HOMEPATH is set to '/'. 2010-04-07 Richard Frith-Macdonald - * configure.ac: Fix for bug #29291 based on suggestion by Niels Grewe - * Source/GSFileHandle.m: Fix possible descriptor leak. + * configure.ac: Fix for bug #29291 based on suggestion by Niels Grewe + * Source/GSFileHandle.m: Fix possible descriptor leak. 2010-04-06 Wolfgang Lux - * Source/cifframe.m (cifframe_type): Fix the defunct test for the - standard structure types. The failure to detect those types was - causing a substantial space leak in some gui applications. + * Source/cifframe.m (cifframe_type): Fix the defunct test for the + standard structure types. The failure to detect those types was + causing a substantial space leak in some gui applications. 2010-03-29 Richard Frith-Macdonald - * config/config.ffi.c: add test for libffi functionality - * configure.ac: use new test - * configure: regenerate - Greg had the good idea of testing libffi version to make sure it - works ... unfortunately I couldn't see an easy way to test the - version, so I added a test for functionality adapted from the - test case I made for the libffi people to demonstrate a bug in - passing floats on 64bit intel. + * config/config.ffi.c: add test for libffi functionality + * configure.ac: use new test + * configure: regenerate + Greg had the good idea of testing libffi version to make sure it + works ... unfortunately I couldn't see an easy way to test the + version, so I added a test for functionality adapted from the + test case I made for the libffi people to demonstrate a bug in + passing floats on 64bit intel. 2010-03-28 Richard Frith-Macdonald - * Source/NSDecimalNumber.m: override getter methods of superclass + * Source/NSDecimalNumber.m: override getter methods of superclass 2010-03-27 Richard Frith-Macdonald - * Headers/Foundation/NSException.h: - Fix typos in last change (spotted by Eddie McCreary). + * Headers/Foundation/NSException.h: + Fix typos in last change (spotted by Eddie McCreary). 2010-03-03 Doug Simons - * Source/ObjectiveC2/sync.m: Avoid crash on Windows. + * Source/ObjectiveC2/sync.m: Avoid crash on Windows. 2010-03-25 Riccardo Mottola - * Source/GSPThread.h - * Source/NSZone.m - * Source/ObjectiveC2/sync.m - * Source/NSLock.m: - change defines for GNU/HURD + * Source/GSPThread.h + * Source/NSZone.m + * Source/ObjectiveC2/sync.m + * Source/NSLock.m: + change defines for GNU/HURD 2010-03-23 Riccardo Mottola - * Source/NSObject.m: Atomic increment and decrement functions for mips + * Source/NSObject.m: Atomic increment and decrement functions for mips 2010-03-19 Richard Frith-Macdonald - * config/config.reuseaddr.c: - * Examples/nsconnection_client.m: - * Examples/nsconnection_server.m: - * Headers/Additions/GNUstepBase/GSConfig.h.in: - * Headers/Additions/GNUstepBase/GSFileHandle.h: - * Headers/Additions/GNUstepBase/GSVersionMacros.h: - * Headers/Additions/GNUstepBase/preface.h.in: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSRunLoop.h: - * Source/Additions/NSError+GNUstepBase.m: - * Source/Additions/NSTask+GNUstepBase.m: - * Source/cifframe.h: - * Source/GSFileHandle.m: - * Source/GSHTTPURLHandle.m: - * Source/GSNetwork.h: - * Source/GSPortPrivate.h: - * Source/GSPrivate.h: - * Source/GSRunLoopCtxt.h: - * Source/GSRunLoopWatcher.m: - * Source/GSSocketStream.m: - * Source/GSStream.m: - * Source/NSBundle.m: - * Source/NSCalendarDate.m: - * Source/NSConnection.m: - * Source/NSData.m: - * Source/NSDebug.m: - * Source/NSException.m: - * Source/NSFileManager.m: - * Source/NSHost.m: - * Source/NSInvocation.m: - * Source/NSLog.m: - * Source/NSObject.m: - * Source/NSPage.m: - * Source/NSPathUtilities.m: - * Source/NSPipe.m: - * Source/NSProcessInfo.m: - * Source/NSSocketPort.m: - * Source/NSSocketPortNameServer.m: - * Source/NSString.m: - * Source/NSTask.m: - * Source/NSThread.m: - * Source/NSTimeZone.m: - * Source/NSURL.m: - * Source/NSUserDefaults.m: - * Source/objc-load.m: - * Source/ObjectiveC2/blocks_runtime.m: - * SSL/GSSSLHandle.m: - * Tools/gdnc.m: - * Tools/gdomap.c: - * Tools/gspath.m: - Use __MINGW__ rather than __MINGW32__ for windows tests. + * config/config.reuseaddr.c: + * Examples/nsconnection_client.m: + * Examples/nsconnection_server.m: + * Headers/Additions/GNUstepBase/GSConfig.h.in: + * Headers/Additions/GNUstepBase/GSFileHandle.h: + * Headers/Additions/GNUstepBase/GSVersionMacros.h: + * Headers/Additions/GNUstepBase/preface.h.in: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSRunLoop.h: + * Source/Additions/NSError+GNUstepBase.m: + * Source/Additions/NSTask+GNUstepBase.m: + * Source/cifframe.h: + * Source/GSFileHandle.m: + * Source/GSHTTPURLHandle.m: + * Source/GSNetwork.h: + * Source/GSPortPrivate.h: + * Source/GSPrivate.h: + * Source/GSRunLoopCtxt.h: + * Source/GSRunLoopWatcher.m: + * Source/GSSocketStream.m: + * Source/GSStream.m: + * Source/NSBundle.m: + * Source/NSCalendarDate.m: + * Source/NSConnection.m: + * Source/NSData.m: + * Source/NSDebug.m: + * Source/NSException.m: + * Source/NSFileManager.m: + * Source/NSHost.m: + * Source/NSInvocation.m: + * Source/NSLog.m: + * Source/NSObject.m: + * Source/NSPage.m: + * Source/NSPathUtilities.m: + * Source/NSPipe.m: + * Source/NSProcessInfo.m: + * Source/NSSocketPort.m: + * Source/NSSocketPortNameServer.m: + * Source/NSString.m: + * Source/NSTask.m: + * Source/NSThread.m: + * Source/NSTimeZone.m: + * Source/NSURL.m: + * Source/NSUserDefaults.m: + * Source/objc-load.m: + * Source/ObjectiveC2/blocks_runtime.m: + * SSL/GSSSLHandle.m: + * Tools/gdnc.m: + * Tools/gdomap.c: + * Tools/gspath.m: + Use __MINGW__ rather than __MINGW32__ for windows tests. 2010-03-18 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - * Headers/Additions/GNUstepBase/GSMime.h: - GSMimeSMTPClient code to send emails now working ... but still very - experimental. + * Source/Additions/GSMime.m: + * Headers/Additions/GNUstepBase/GSMime.h: + GSMimeSMTPClient code to send emails now working ... but still very + experimental. 2010-03-18 Richard Frith-Macdonald - * configure.ac: - * config.mak.in: - * Source/ObjectiveC2/GNUmakefile: - Only build objc synchronisation compatibility code if it is not - already in runtime. + * configure.ac: + * config.mak.in: + * Source/ObjectiveC2/GNUmakefile: + Only build objc synchronisation compatibility code if it is not + already in runtime. 2010-03-17 Richard Frith-Macdonald - * Source/Additions/GSMime.m: - Added preliminary/experimental code for SMTP send. + * Source/Additions/GSMime.m: + Added preliminary/experimental code for SMTP send. 2010-03-17 Richard Frith-Macdonald - * configure: - * configure.ac: - * Headers/Additions/GNUstepBase/GSConfig.h.in: - * Headers/Additions/GNUstepBase/GSVersionMacros.h: - Add experimental --enable-mixedabi configure option for building - with the nonfragile abi, but able to link with other code which - is built with the fragile abi. + * configure: + * configure.ac: + * Headers/Additions/GNUstepBase/GSConfig.h.in: + * Headers/Additions/GNUstepBase/GSVersionMacros.h: + Add experimental --enable-mixedabi configure option for building + with the nonfragile abi, but able to link with other code which + is built with the fragile abi. 2010-03-17 Richard Frith-Macdonald - * Source/NSConnection.m: Fix for memory leak ... autorelease - objects returned by method in remote process because the invocation - won't do it for us (we call -setReturnValue: which will have the - invocation retain the object, so when it releases it again later - the retain count is the same as at the point when we decoded the - object, and another release is needed). - I'm not certain this fix is right, but it seems ok. + * Source/NSConnection.m: Fix for memory leak ... autorelease + objects returned by method in remote process because the invocation + won't do it for us (we call -setReturnValue: which will have the + invocation retain the object, so when it releases it again later + the retain count is the same as at the point when we decoded the + object, and another release is needed). + I'm not certain this fix is right, but it seems ok. 2010-03-13 Yavor Doganov (tiny change) @@ -15628,1851 +15638,1850 @@ 2010-03-17 Anibal Rindisbacher - * Headers/Additions/GNUstep/GNUstep.h: Tidy up casts + * Headers/Additions/GNUstep/GNUstep.h: Tidy up casts 2010-03-16 Vincent Richomme - * Source/Additions/NSFileHandle+GNUstepBase.m: - * Tools/gdomap.c: - Minor tweaks porting to mingw64 + * Source/Additions/NSFileHandle+GNUstepBase.m: + * Tools/gdomap.c: + Minor tweaks porting to mingw64 2010-03-16 Richard Frith-Macdonald - * Source/NSCharacterSet.m: Optimise for cases when huge ranges of - characters are added to a set (as suggested by Fred). + * Source/NSCharacterSet.m: Optimise for cases when huge ranges of + characters are added to a set (as suggested by Fred). 2010-03-15 Adam Fedor - Source/Additions/NSFileHandle+GNUstepBase.m: Define INADDR_NONE - for Solaris. + Source/Additions/NSFileHandle+GNUstepBase.m: Define INADDR_NONE + for Solaris. 2010-03-15 Fred Kiefer - * Source/NSString.m (-initWithCoder:): Handle format used for - XIB encoding. + * Source/NSString.m (-initWithCoder:): Handle format used for + XIB encoding. 2010-03-14 Adam Fedor - * Source/NSHTTPCookie.m (+requestHeaderFieldsWithCookies:): - Correct format syntax. + * Source/NSHTTPCookie.m (+requestHeaderFieldsWithCookies:): + Correct format syntax. 2010-03-13 Richard Frith-Macdonald - * configure.ac: Note use of nonfragile abi - * configure: regenerate - * Headers/Additions/GNUstepBase/GSConfig.h.in: save nonfragile abi state - * Headers/Additions/GNUstepBase/GSVersionMacros.h: - Fix check for nonfragile-abi state, and raise an error if the current - compile doesn't atch the state used to build the base library. + * configure.ac: Note use of nonfragile abi + * configure: regenerate + * Headers/Additions/GNUstepBase/GSConfig.h.in: save nonfragile abi state + * Headers/Additions/GNUstepBase/GSVersionMacros.h: + Fix check for nonfragile-abi state, and raise an error if the current + compile doesn't atch the state used to build the base library. 2010-03-12 Richard Frith-Macdonald - * Source/NSKeyedArchiver.m: - Create _+clsMap lazily so it's there for subclasses even if the - initialiser was not called. + * Source/NSKeyedArchiver.m: + Create _+clsMap lazily so it's there for subclasses even if the + initialiser was not called. 2010-03-11 12:14-EST Gregory John Casamento - * Source/GNUmakefile: Remove reference to synchonization.m. - * Source/synchronization.m: Remove, since ObjectiveC2 has been - merged. + * Source/GNUmakefile: Remove reference to synchonization.m. + * Source/synchronization.m: Remove, since ObjectiveC2 has been + merged. 2010-03-11 Richard Frith-Macdonald - * configure: - * config.mak.in: - * NSCharacterSets/GNUmakefile: - * Source/unix/Makefile.preamble: - * Source/win32/Makefile.preamble: - * Source/ObjectiveC2/Makefile.preamble: - * Source/Additions/Makefile.preamble: - * Source/Makefile.preamble: - * SSL/Makefile.preamble: - * configure.ac: - * Documentation/manual/GNUmakefile: - * Resources/GNUmakefile: - * Examples/Makefile.preamble: - * Examples/GNUmakefile: - * Tools/Makefile.preamble: - * Tools/make_strings/GNUmakefile.preamble: + * configure: + * config.mak.in: + * NSCharacterSets/GNUmakefile: + * Source/unix/Makefile.preamble: + * Source/win32/Makefile.preamble: + * Source/ObjectiveC2/Makefile.preamble: + * Source/Additions/Makefile.preamble: + * Source/Makefile.preamble: + * SSL/Makefile.preamble: + * configure.ac: + * Documentation/manual/GNUmakefile: + * Resources/GNUmakefile: + * Examples/Makefile.preamble: + * Examples/GNUmakefile: + * Tools/Makefile.preamble: + * Tools/make_strings/GNUmakefile.preamble: Improve setting of warning flags. 2010-03-11 Richard Frith-Macdonald - * Source/NSException.m: - * configure.ac: - * configure: - * Headers/Foundation/NSException.h: - * Headers/Additions/GNUstepBase/GSConfig.h.in: + * Source/NSException.m: + * configure.ac: + * configure: + * Headers/Foundation/NSException.h: + * Headers/Additions/GNUstepBase/GSConfig.h.in: Improve checks for native-objc-exception support and try to ensure that user code is build with the same settings as base. 2010-03-10 Adam Fedor - * Source/NSURLProtocol.m ([_NSHTTPURLProtocol -stream:stream:event]): - Add default Content-Type to POST methods if none is present. + * Source/NSURLProtocol.m ([_NSHTTPURLProtocol -stream:stream:event]): + Add default Content-Type to POST methods if none is present. 2010-03-09 Adam Fedor - * Source/NSHTTPCookie.m: Finish off implementation - * Source/HSHTTPCookieStorage.m: Finish off implementation. + * Source/NSHTTPCookie.m: Finish off implementation + * Source/HSHTTPCookieStorage.m: Finish off implementation. 2010-03-10 Riccardo Mottola - * /Source/ObjectiveC2/sync.m, - * /Source/NSZone.h, - * /Source/GSPThread.h : use proper _XOPEN_SOURCE - instead of __USE_UNIX98 to enable needed thread features on glibc + * /Source/ObjectiveC2/sync.m, + * /Source/NSZone.h, + * /Source/GSPThread.h : use proper _XOPEN_SOURCE + instead of __USE_UNIX98 to enable needed thread features on glibc 2010-03-08 Roland Schwingel - * Source/NSFileManager.m: implement fileSystemNumber for mswindows. + * Source/NSFileManager.m: implement fileSystemNumber for mswindows. 2010-03-08 Richard Frith-Macdonald - * Source/NSObject.m: - * Source/Additions/GSObjCRuntime.m: - * Documentation/Base.gsdoc: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - Add GNUSTEP_BEHAVIOR_DEBUG enovironment variable to turn on logging - of the use of behaviors/overrides of class methds by a list of - methods from another class. + * Source/NSObject.m: + * Source/Additions/GSObjCRuntime.m: + * Documentation/Base.gsdoc: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + Add GNUSTEP_BEHAVIOR_DEBUG enovironment variable to turn on logging + of the use of behaviors/overrides of class methds by a list of + methods from another class. 2010-03-08 Richard Frith-Macdonald - * Source/GSArray.m: Re-remove [GSMutableArray count] (GSMutableArray - uses the GSArray implementation). - * Source/GSDictionary.m: - * Source/GSCountedSet.m: - * Source/GSSet.m: - Add the same sort of NSUInteger fixups that Fred added to GSArray.m - * Headers/Additions/GNUstepBase/GSUnion.h: - Add support for NSInteger and NSUInteger (so GSCountedSet can use them). + * Source/GSArray.m: Re-remove [GSMutableArray count] (GSMutableArray + uses the GSArray implementation). + * Source/GSDictionary.m: + * Source/GSCountedSet.m: + * Source/GSSet.m: + Add the same sort of NSUInteger fixups that Fred added to GSArray.m + * Headers/Additions/GNUstepBase/GSUnion.h: + Add support for NSInteger and NSUInteger (so GSCountedSet can use them). 2010-03-07 Fred Kiefer - * Source/GSArray.m: Re-add [GSMutableArray count]. Change all - method parameters from int or unsigned to NSUInteger to match - super classes. + * Source/GSArray.m: Re-add [GSMutableArray count]. Change all + method parameters from int or unsigned to NSUInteger to match + super classes. 2010-03-07 Richard Frith-Macdonald - * Source/Additions/GSObjCRuntime.m: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - Add function to add 'overrides' as a form of programmatically - controlled category similar to behaviors, giving an app control - over the order in which methods are added to a class. + * Source/Additions/GSObjCRuntime.m: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + Add function to add 'overrides' as a form of programmatically + controlled category similar to behaviors, giving an app control + over the order in which methods are added to a class. 2010-03-05 Richard Frith-Macdonald - * Source/Additions/GSCompatibility.h: - * Source/Additions/GSCompatibility.m: - * Source/Additions/GSNextRuntime.m: - Remove obsolete OSX compatibility files. + * Source/Additions/GSCompatibility.h: + * Source/Additions/GSCompatibility.m: + * Source/Additions/GSNextRuntime.m: + Remove obsolete OSX compatibility files. 2010-03-05 Richard Frith-Macdonald - * Source/GSArray.m: - * Source/GSDictionary.m: - * Source/NSURLProtocol.m: - * Source/NSNotificationCenter.m: - * Source/GSAttributedString.m: - * Source/NSURL.m: - * Source/NSObject.m: - * Source/NSString.m: - * Source/Additions/NSAttributedString+GNUstepBase.m: - * Source/Additions/GSInsensitiveDictionary.m: - * Source/GSString.m: - * Source/NSData.m: - * Source/GSValue.m: - * Source/NSValue.m: - * Source/NSArchiver.m: - * Source/NSURLConnection.m: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - Remove reference to GSObjCZone and use -zone instead. + * Source/GSArray.m: + * Source/GSDictionary.m: + * Source/NSURLProtocol.m: + * Source/NSNotificationCenter.m: + * Source/GSAttributedString.m: + * Source/NSURL.m: + * Source/NSObject.m: + * Source/NSString.m: + * Source/Additions/NSAttributedString+GNUstepBase.m: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/GSString.m: + * Source/NSData.m: + * Source/GSValue.m: + * Source/NSValue.m: + * Source/NSArchiver.m: + * Source/NSURLConnection.m: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + Remove reference to GSObjCZone and use -zone instead. 2010-03-05 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - * Source/Additions/GSObjCRuntime.m: - Old 'experimental/work-in-progress' functions mostly removed ... - GSAllocMethodList() GSAppendMethodToList() GSRemoveMethodFromList() - GSMethodListForSelector() GSMethodFromList() GSAddMethodList() - GSRemoveMethodList() - Other functions rewritten in terms of the new runtime API and marked - as deprecated if they add nothing. + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + * Source/Additions/GSObjCRuntime.m: + Old 'experimental/work-in-progress' functions mostly removed ... + GSAllocMethodList() GSAppendMethodToList() GSRemoveMethodFromList() + GSMethodListForSelector() GSMethodFromList() GSAddMethodList() + GSRemoveMethodList() + Other functions rewritten in terms of the new runtime API and marked + as deprecated if they add nothing. 2010-03-04 Richard Frith-Macdonald - * Source/NSKeyValueObserving.m: use class_addMethod() to add setters - to replacement class. + * Source/NSKeyValueObserving.m: use class_addMethod() to add setters + to replacement class. 2010-03-03 Richard Frith-Macdonald - * Source/NSDate.m: Fix last change to conform to coding standards. - * Source/NSCalendarDate.m: Fix last change to avoid attempts to - access beyond the end of the format string. + * Source/NSDate.m: Fix last change to conform to coding standards. + * Source/NSCalendarDate.m: Fix last change to avoid attempts to + access beyond the end of the format string. 2010-03-03 Richard Frith-Macdonald - * Source/ObjectiveC2/runtime.c: Fix class data copying functions to - match OSX. - * Source/Additions/GSObjCRuntime.m: Implement adding classes using - new runtime functions. + * Source/ObjectiveC2/runtime.c: Fix class data copying functions to + match OSX. + * Source/Additions/GSObjCRuntime.m: Implement adding classes using + new runtime functions. 2010-03-03 Doug Simons - * Source/NSDate.m: Fix natural language date parsing to handle AM/PM. - * Source/NSCalendarDate.m: Fix to %I (12-hour clock) to show midnight - hour as 12, not 00. Skip over field widths while parsing in init. + * Source/NSDate.m: Fix natural language date parsing to handle AM/PM. + * Source/NSCalendarDate.m: Fix to %I (12-hour clock) to show midnight + hour as 12, not 00. Skip over field widths while parsing in init. 2010-03-03 Richard Frith-Macdonald - * Source/ObjectiveC2/runtime.c: Bugfixes for getting superclass and - for adding ivars to a class. - * Source/Additions/GSObjCRuntime.m: Rewrite class creation code in - terms of the new runtime api. + * Source/ObjectiveC2/runtime.c: Bugfixes for getting superclass and + for adding ivars to a class. + * Source/Additions/GSObjCRuntime.m: Rewrite class creation code in + terms of the new runtime api. 2010-03-01 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/behavior.h: - * Source/Additions/behavior.m: - * Source/Additions/GNUmakefile: - Remove obsolete, unused, and long deprecated code. - The functionality is still present in GSObjCRuntime.[hm] + * Headers/Additions/GNUstepBase/behavior.h: + * Source/Additions/behavior.m: + * Source/Additions/GNUmakefile: + Remove obsolete, unused, and long deprecated code. + The functionality is still present in GSObjCRuntime.[hm] 2010-03-01 Richard Frith-Macdonald - * Headers/Foundation/NSObjCRuntime.h: - * Source/NSObjCRuntime.m: - Fix NSGetSizeAndAlignment() update argument types to match lates OSX + * Headers/Foundation/NSObjCRuntime.h: + * Source/NSObjCRuntime.m: + Fix NSGetSizeAndAlignment() update argument types to match lates OSX 2010-02-28 Richard Frith-Macdonald - Update header files with further changes for non-fragile-abi. - Also fixup some GSObjCRuntime.m functions for using the new runtime - API. + Update header files with further changes for non-fragile-abi. + Also fixup some GSObjCRuntime.m functions for using the new runtime + API. 2010-02-28 Thomas Gamper - * runtime.c: - Backport another one of David's fixes for @synchronize(class), all - necessary flags now are set in objc_allocateMetaClass. + * runtime.c: + Backport another one of David's fixes for @synchronize(class), all + necessary flags now are set in objc_allocateMetaClass. 2010-02-27 Richard Frith-Macdonald - * runtime.c: - * sync.m: - * runtime.h: - Backport David's fixes for @synchronize(class), suitably modified to - build with older compilers. + * runtime.c: + * sync.m: + * runtime.h: + Backport David's fixes for @synchronize(class), suitably modified to + build with older compilers. 2010-02-27 Richard Frith-Macdonald - * Source/NSObject.m: ([methodSignatureForSelector:]) remote the check - (and exception) to see if the sel types are the same as the signature - types, since this method is used precisesly when we think we may have - a selector with the wrong type information (eg we are using KVC and - generated the selector name to access an ivar and the runtime gave us - a selector with the type infor for accessing an ivar of another class). - Should fix bug #29015 + * Source/NSObject.m: ([methodSignatureForSelector:]) remote the check + (and exception) to see if the sel types are the same as the signature + types, since this method is used precisesly when we think we may have + a selector with the wrong type information (eg we are using KVC and + generated the selector name to access an ivar and the runtime gave us + a selector with the type infor for accessing an ivar of another class). + Should fix bug #29015 2010-02-26 Richard Frith-Macdonald - * Source/NSBundle.m: Apply suggested fix for bug #29012 + * Source/NSBundle.m: Apply suggested fix for bug #29012 2010-02-26 Richard Frith-Macdonald - * Source/NSOperation.m: - * Source/GSInternal.h: - * Source/NSConnection.m: - * Headers/Foundation/NSConnection.h: - * Headers/Foundation/NSOperation.h: - * Headers/Additions/GNUstepBase/GSVersionMacros.h: - Rework hiding of instance variables for big classes (lots of ivars) - where we expect the class lifetime to be long enough that it makes - sense to hod the ivars in a private subclass. + * Source/NSOperation.m: + * Source/GSInternal.h: + * Source/NSConnection.m: + * Headers/Foundation/NSConnection.h: + * Headers/Foundation/NSOperation.h: + * Headers/Additions/GNUstepBase/GSVersionMacros.h: + Rework hiding of instance variables for big classes (lots of ivars) + where we expect the class lifetime to be long enough that it makes + sense to hod the ivars in a private subclass. 2010-02-26 Richard Frith-Macdonald - * Source/NSNetServices.m: - * Source/NSURLHandle.m: - * Source/NSMethodSignature.m: - * Source/NSInvocation.m: - * Source/NSURL.m: - * Source/Additions/Makefile.preamble: - * Source/Additions/NSObject+GNUstepBase.m: - * Source/Additions/GSFunctions.m: - * Source/Additions/NSAttributedString+GNUstepBase.m: - * Source/Additions/GSInsensitiveDictionary.m: - * Source/NSConnection.m: - * Source/NSLock.m: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - Alterations to build additions with NO_GNUSTEP defined ... after all, - they should be able to build like that on OSX with the Apple Foundation. + * Source/NSNetServices.m: + * Source/NSURLHandle.m: + * Source/NSMethodSignature.m: + * Source/NSInvocation.m: + * Source/NSURL.m: + * Source/Additions/Makefile.preamble: + * Source/Additions/NSObject+GNUstepBase.m: + * Source/Additions/GSFunctions.m: + * Source/Additions/NSAttributedString+GNUstepBase.m: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/NSConnection.m: + * Source/NSLock.m: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + Alterations to build additions with NO_GNUSTEP defined ... after all, + they should be able to build like that on OSX with the Apple Foundation. 2010-02-25 Richard Frith-Macdonald - * Source/NSIndexPath.m: - * Source/NSTimeZone.m: - * Source/NSURLCredential.m: - * Source/GSSocketStream.m: - * Source/NSURLHandle.m: - * Source/NSTimer.m: - * Source/NSScanner.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSSocketPort.m: - * Source/NSAttributedString.m: - * Source/NSRunLoop.m: - * Source/NSMethodSignature.m: - * Source/GSRunLoopWatcher.m: - * Source/GSArray.m: - * Source/GSFFCallInvocation.m: - * Source/NSKeyValueMutableSet.m: - * Source/GSStream.m: - * Source/NSKeyedArchiver.m: - * Source/unix/NSStream.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSDistributedLock.m: - * Source/NSKeyValueObserving.m: - * Source/GSHTTPURLHandle.m: - * Source/NSURLCredentialStorage.m: - * Source/NSPort.m: - * Source/GSFFIInvocation.m: - * Source/NSMessagePort.m: - * Source/GSDictionary.m: - * Source/win32/GSFileHandle.m: - * Source/win32/NSMessagePort.m: - * Source/win32/NSStream.m: - * Source/GSCountedSet.m: - * Source/NSUnarchiver.m: - * Source/NSInvocation.m: - * Source/NSURLProtocol.m: - * Source/GSAttributedString.m: - * Source/NSKeyValueMutableArray.m: - * Source/NSException.m: - * Source/NSCopyObject.m: - * Source/NSURL.m: - * Source/NSObject.m: - * Source/NSString.m: - * Source/Additions/NSFileHandle+GNUstepBase.m: - * Source/Additions/GCDictionary.m: - * Source/Additions/GCArray.m: - * Source/Additions/GSXML.m: - * Source/Additions/GSInsensitiveDictionary.m: - * Source/Additions/GSLock.m: - * Source/GSSet.m: - * Source/NSNotification.m: - * Source/NSNumber.m: - * Source/GSString.m: - * Source/NSConnection.m: - * Source/NSAutoreleasePool.m: - * Source/NSThread.m: - * Source/NSData.m: - * Source/NSHost.m: - * Source/NSDate.m: - * Source/GSValue.m: - * Source/NSValue.m: - * Source/NSCountedSet.m: - * Source/GSFileHandle.m: - * Source/NSLock.m: - * Source/NSSet.m: - * Source/NSCharacterSet.m: - * SSL/GSSSLHandle.m: - Always DESTROY(self) rather than RELEASE(self) so that the pointer - is nil if/when another method is called from the method where self - was potentially deallocated. This is so that the libobjc2 runtime - doesn't try dereferencing self when it points to a deallocated - object. + * Source/NSIndexPath.m: + * Source/NSTimeZone.m: + * Source/NSURLCredential.m: + * Source/GSSocketStream.m: + * Source/NSURLHandle.m: + * Source/NSTimer.m: + * Source/NSScanner.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSSocketPort.m: + * Source/NSAttributedString.m: + * Source/NSRunLoop.m: + * Source/NSMethodSignature.m: + * Source/GSRunLoopWatcher.m: + * Source/GSArray.m: + * Source/GSFFCallInvocation.m: + * Source/NSKeyValueMutableSet.m: + * Source/GSStream.m: + * Source/NSKeyedArchiver.m: + * Source/unix/NSStream.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSDistributedLock.m: + * Source/NSKeyValueObserving.m: + * Source/GSHTTPURLHandle.m: + * Source/NSURLCredentialStorage.m: + * Source/NSPort.m: + * Source/GSFFIInvocation.m: + * Source/NSMessagePort.m: + * Source/GSDictionary.m: + * Source/win32/GSFileHandle.m: + * Source/win32/NSMessagePort.m: + * Source/win32/NSStream.m: + * Source/GSCountedSet.m: + * Source/NSUnarchiver.m: + * Source/NSInvocation.m: + * Source/NSURLProtocol.m: + * Source/GSAttributedString.m: + * Source/NSKeyValueMutableArray.m: + * Source/NSException.m: + * Source/NSCopyObject.m: + * Source/NSURL.m: + * Source/NSObject.m: + * Source/NSString.m: + * Source/Additions/NSFileHandle+GNUstepBase.m: + * Source/Additions/GCDictionary.m: + * Source/Additions/GCArray.m: + * Source/Additions/GSXML.m: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/Additions/GSLock.m: + * Source/GSSet.m: + * Source/NSNotification.m: + * Source/NSNumber.m: + * Source/GSString.m: + * Source/NSConnection.m: + * Source/NSAutoreleasePool.m: + * Source/NSThread.m: + * Source/NSData.m: + * Source/NSHost.m: + * Source/NSDate.m: + * Source/GSValue.m: + * Source/NSValue.m: + * Source/NSCountedSet.m: + * Source/GSFileHandle.m: + * Source/NSLock.m: + * Source/NSSet.m: + * Source/NSCharacterSet.m: + * SSL/GSSSLHandle.m: + Always DESTROY(self) rather than RELEASE(self) so that the pointer + is nil if/when another method is called from the method where self + was potentially deallocated. This is so that the libobjc2 runtime + doesn't try dereferencing self when it points to a deallocated + object. 2010-02-25 Richard Frith-Macdonald - * configure.ac: - * configure: - * Headers/Additions/GNUstepBase/config.h.in: - * Source/NSString.m: + * configure.ac: + * configure: + * Headers/Additions/GNUstepBase/config.h.in: + * Source/NSString.m: Update printf handling for very latest glibc 2010-02-25 Richard Frith-Macdonald - * configure.ac: Add test for socklen_t type - * configure: regenerate - * Headers/Additions/GNUstepBase/config.h.in: regenerate - * Source/GSNetwork.h: - * Source/NSSocketPort.m: Fix for socklen_t - * Source/NSMapTable.m: - * Source/GSHTTPURLHandle.m: - * Source/NSConcreteMapTable.m: - * Source/NSConcreteHashTable.m: - * Headers/Foundation/NSHashTable.h: - * Headers/Foundation/NSMapTable.h: + * configure.ac: Add test for socklen_t type + * configure: regenerate + * Headers/Additions/GNUstepBase/config.h.in: regenerate + * Source/GSNetwork.h: + * Source/NSSocketPort.m: Fix for socklen_t + * Source/NSMapTable.m: + * Source/GSHTTPURLHandle.m: + * Source/NSConcreteMapTable.m: + * Source/NSConcreteHashTable.m: + * Headers/Foundation/NSHashTable.h: + * Headers/Foundation/NSMapTable.h: Use NSUInteger values for OSX API compatibility 2010-02-25 Richard Frith-Macdonald - * Source/ObjectiveC2/runtime.c: - * Source/ObjectiveC2/blocks_runtime.m: - Avoid compiler warnings. + * Source/ObjectiveC2/runtime.c: + * Source/ObjectiveC2/blocks_runtime.m: + Avoid compiler warnings. 2010-02-25 Richard Frith-Macdonald - * Source/NSAssertionHandler.m: - * Source/NSObject.m: - * Source/Additions/NSDebug+GNUstepBase.m: - * Source/Additions/GSMime.m: - * Source/Additions/NSObject+GNUstepBase.m: - * Headers/Foundation/NSObject.h: - * Headers/Additions/GNUstepBase/NSObject+GNUstepBase.h: - Remove a few old deprecated methods and move others to the - additions library. - Make GSMime build on OSX + * Source/NSAssertionHandler.m: + * Source/NSObject.m: + * Source/Additions/NSDebug+GNUstepBase.m: + * Source/Additions/GSMime.m: + * Source/Additions/NSObject+GNUstepBase.m: + * Headers/Foundation/NSObject.h: + * Headers/Additions/GNUstepBase/NSObject+GNUstepBase.h: + Remove a few old deprecated methods and move others to the + additions library. + Make GSMime build on OSX 2010-02-23 Riccardo Mottola - * Source/ObjectiveC2/runtime.h: provide gcc-style macros - * Source/ObjectiveC2/sync.m: removed c99-ism + * Source/ObjectiveC2/runtime.h: provide gcc-style macros + * Source/ObjectiveC2/sync.m: removed c99-ism 2010-02-23 Fred Kiefer - * Source/NSNumber.m: Autorelease the values returned by the - numberWithXXX: methods. + * Source/NSNumber.m: Autorelease the values returned by the + numberWithXXX: methods. 2010-02-22 Wolfgang Lux - * Source/NSSpellServer.m (-isWordInUserDictionaries:caseSensitive:): - Make sure word is checked against the current list of ignored - words regardless of whether the user (already) has a set of - learned words in the current language. + * Source/NSSpellServer.m (-isWordInUserDictionaries:caseSensitive:): + Make sure word is checked against the current list of ignored + words regardless of whether the user (already) has a set of + learned words in the current language. 2010-02-22 Wolfgang Lux - * Source/Additions/Unicode.m (GSToUnicode): Fix my own bug fix to - avoid potential null pointer dereferences, as that fix could lead - to attempts to free() memory on the stack. + * Source/Additions/Unicode.m (GSToUnicode): Fix my own bug fix to + avoid potential null pointer dereferences, as that fix could lead + to attempts to free() memory on the stack. 2010-02-22 Richard Frith-Macdonald - * Source/NSIndexPath.m: - * Source/NSPortCoder.m: - * Source/NSCalendarDate.m: - * Source/NSPropertyList.m: - * Source/GSConcreteValueTemplate.m: - * Source/NSScanner.m: - * Source/GSFFCallInvocation.m: - * Source/NSKeyValueObserving.m: - * Source/NSSortDescriptor.m: - * Source/GSFFIInvocation.m: - * Source/NSUnarchiver.m: - * Source/NSInvocation.m: - * Source/NSFileManager.m: - * Source/NSString.m: - * Source/NSObject.m: - * Source/NSConcreteMapTable.m: - * Source/Additions/GSObjCRuntime.m: - * Source/GSSet.m: - * Source/GSString.m: - * Source/NSConnection.m: - * Source/NSAutoreleasePool.m: - * Source/NSData.m: - * Source/NSDate.m: - * Source/NSProxy.m: - * Source/NSObjCRuntime.m: - * Source/NSProtocolChecker.m: - * Source/GSValue.m: - * Source/NSSerializer.m: - * Source/NSCountedSet.m: - * Source/NSSet.m: - * Source/NSDistantObject.m: - * Source/NSArchiver.m: - * Source/NSCharacterSet.m: - * Source/NSConcreteHashTable.m: - * Headers/Additions/GNUstepBase/NSDebug+GNUstepBase.h: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - Deprecate some GS... runtime wrappers in favour of using the new - ObjC2 API where we have emulation for systems which are actually - usig the old API. Work in progress. + * Source/NSIndexPath.m: + * Source/NSPortCoder.m: + * Source/NSCalendarDate.m: + * Source/NSPropertyList.m: + * Source/GSConcreteValueTemplate.m: + * Source/NSScanner.m: + * Source/GSFFCallInvocation.m: + * Source/NSKeyValueObserving.m: + * Source/NSSortDescriptor.m: + * Source/GSFFIInvocation.m: + * Source/NSUnarchiver.m: + * Source/NSInvocation.m: + * Source/NSFileManager.m: + * Source/NSString.m: + * Source/NSObject.m: + * Source/NSConcreteMapTable.m: + * Source/Additions/GSObjCRuntime.m: + * Source/GSSet.m: + * Source/GSString.m: + * Source/NSConnection.m: + * Source/NSAutoreleasePool.m: + * Source/NSData.m: + * Source/NSDate.m: + * Source/NSProxy.m: + * Source/NSObjCRuntime.m: + * Source/NSProtocolChecker.m: + * Source/GSValue.m: + * Source/NSSerializer.m: + * Source/NSCountedSet.m: + * Source/NSSet.m: + * Source/NSDistantObject.m: + * Source/NSArchiver.m: + * Source/NSCharacterSet.m: + * Source/NSConcreteHashTable.m: + * Headers/Additions/GNUstepBase/NSDebug+GNUstepBase.h: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + Deprecate some GS... runtime wrappers in favour of using the new + ObjC2 API where we have emulation for systems which are actually + usig the old API. Work in progress. 2010-02-21 Richard Frith-Macdonald - * Source/GSString.m: Fix incorrectly initialized zone ivar. - Foixes bug #28939 + * Source/GSString.m: Fix incorrectly initialized zone ivar. + Foixes bug #28939 2010-02-20 Richard Frith-Macdonald - * Headers/Foundation/NSURL.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSCalendarDate.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSProcessInfo.h: - * Headers/Foundation/NSAttributedString.h: - * Headers/Foundation/NSUserDefaults.h: - * Headers/Foundation/NSThread.h: - * Headers/Foundation/NSData.h: - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSDebug.h: - * Headers/Foundation/NSFileHandle.h: - * Headers/Foundation/NSValue.h: - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSTask.h: - * Headers/Additions/GNUstepBase/GSVersionMacros.h: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - Modified the sense of the 'NO_GNUSTEP' preprocessor constant slightly. - It is now always defined (GSVersionMacros.h defines it to zero if it - was not defined externally). A sbefore, defining it to 1 should prevent - the inclusion of GNUstep specific headers. - This change should make it easy for us to change the default behavior - at a later date. + * Headers/Foundation/NSURL.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSCalendarDate.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSProcessInfo.h: + * Headers/Foundation/NSAttributedString.h: + * Headers/Foundation/NSUserDefaults.h: + * Headers/Foundation/NSThread.h: + * Headers/Foundation/NSData.h: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSDebug.h: + * Headers/Foundation/NSFileHandle.h: + * Headers/Foundation/NSValue.h: + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSTask.h: + * Headers/Additions/GNUstepBase/GSVersionMacros.h: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + Modified the sense of the 'NO_GNUSTEP' preprocessor constant slightly. + It is now always defined (GSVersionMacros.h defines it to zero if it + was not defined externally). A sbefore, defining it to 1 should prevent + the inclusion of GNUstep specific headers. + This change should make it easy for us to change the default behavior + at a later date. 2010-02-20 Richard Frith-Macdonald - * Source/Makefile.postamble: - * Source/GNUmakefile: - * configure.ac: - * configure: - * Headers/Additions/GNUstepBase/GSConfig.h.in: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - Make runtime.h objc2 compatibility header available in installed - headers if we are using objc2 compatibility in base. + * Source/Makefile.postamble: + * Source/GNUmakefile: + * configure.ac: + * configure: + * Headers/Additions/GNUstepBase/GSConfig.h.in: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + Make runtime.h objc2 compatibility header available in installed + headers if we are using objc2 compatibility in base. 2010-02-19 Richard Frith-Macdonald - * Source/NSConcreteNumber.h: Remove unused file - * Source/NSNumberMethods.h: - * Source/NSNumber.m: - * Source/GSNumberTypes.h: - Updates to match OSX behavior. + * Source/NSConcreteNumber.h: Remove unused file + * Source/NSNumberMethods.h: + * Source/NSNumber.m: + * Source/GSNumberTypes.h: + Updates to match OSX behavior. 2010-02-19 Richard Frith-Macdonald - * configure.ac: Add check for ObjC2 support in runtime. - * config.mak.in: define OBJC2RUNTIME to yes or no - * configure: regenerate - * Source/GNUmakefile: Build/link ObjectiveC2 compat code if needed - * Source/ObjectiveC2/Availability.h: - * Source/ObjectiveC2/runtime.c: - * Source/ObjectiveC2/GNUmakefile: - * Source/ObjectiveC2/properties.m: - * Source/ObjectiveC2/sync.m: - * Source/ObjectiveC2/blocks_runtime.m: - Attempt to build in ObjectiveC2 compatibility functions when we don't - have an ObjC2 runtime. + * configure.ac: Add check for ObjC2 support in runtime. + * config.mak.in: define OBJC2RUNTIME to yes or no + * configure: regenerate + * Source/GNUmakefile: Build/link ObjectiveC2 compat code if needed + * Source/ObjectiveC2/Availability.h: + * Source/ObjectiveC2/runtime.c: + * Source/ObjectiveC2/GNUmakefile: + * Source/ObjectiveC2/properties.m: + * Source/ObjectiveC2/sync.m: + * Source/ObjectiveC2/blocks_runtime.m: + Attempt to build in ObjectiveC2 compatibility functions when we don't + have an ObjC2 runtime. 2010-02-19 Richard Frith-Macdonald - Simplify header imports with common headers handled in the correct - order. + Simplify header imports with common headers handled in the correct + order. 2010-02-18 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/NSDebug+GNUstepBase.h: - * Headers/Additions/GNUstepBase/NSThread+GNUstepBase.h: - * Source/Additions/NSDebug+GNUstepBase.m: - * Source/Additions/NSThread+GNUstepBase.m: - * Headers/Additions/GNUstepBase/Additions.h: - * Headers/Foundation/Foundation.h: - * Headers/Foundation/NSDebug.h: - * Headers/Foundation/NSThread.h: - * Source/Additions/GNUmakefile: - * Source/DocMakefile: - * Source/GNUmakefile: - * Source/NSDebug.m: - * Source/NSOperation.m: - Move some gnustep specific extensions into additions library so they - can be used to port apps to OSX in future (when the additions library - builds on OSX again). + * Headers/Additions/GNUstepBase/NSDebug+GNUstepBase.h: + * Headers/Additions/GNUstepBase/NSThread+GNUstepBase.h: + * Source/Additions/NSDebug+GNUstepBase.m: + * Source/Additions/NSThread+GNUstepBase.m: + * Headers/Additions/GNUstepBase/Additions.h: + * Headers/Foundation/Foundation.h: + * Headers/Foundation/NSDebug.h: + * Headers/Foundation/NSThread.h: + * Source/Additions/GNUmakefile: + * Source/DocMakefile: + * Source/GNUmakefile: + * Source/NSDebug.m: + * Source/NSOperation.m: + Move some gnustep specific extensions into additions library so they + can be used to port apps to OSX in future (when the additions library + builds on OSX again). 2010-02-18 Richard Frith-Macdonald - * SSL/configure.ac: Check for latest thread ID callback - * SSL/configure: regenerate - * SSL/GSSSLHandle.m: Add thread-safety support callbacks. + * SSL/configure.ac: Check for latest thread ID callback + * SSL/configure: regenerate + * SSL/GSSSLHandle.m: Add thread-safety support callbacks. 2010-02-18 Richard Frith-Macdonald - * Source/GNUmakefile: - * Headers/Foundation/NSURL.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSCalendarDate.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/Foundation.h.install: - * Headers/Foundation/NSProcessInfo.h: - * Headers/Foundation/NSAttributedString.h: - * Headers/Foundation/NSData.h: - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSFileHandle.h: - * Headers/Foundation/NSValue.h: - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSTask.h: - * Tools/GNUmakefile: - Have standard foundation headers include any corresponding GNUstep - extension headers unless NO_GNUSTEP is defined (building code with - strict OSX compatibility) or GNUSTEP_BASE_INTERNAL is defined - (building the base library etc itsself, and needing to ensure we - don't accidentally include installed headers from a previous version). + * Source/GNUmakefile: + * Headers/Foundation/NSURL.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSCalendarDate.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/Foundation.h.install: + * Headers/Foundation/NSProcessInfo.h: + * Headers/Foundation/NSAttributedString.h: + * Headers/Foundation/NSData.h: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSFileHandle.h: + * Headers/Foundation/NSValue.h: + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSTask.h: + * Tools/GNUmakefile: + Have standard foundation headers include any corresponding GNUstep + extension headers unless NO_GNUSTEP is defined (building code with + strict OSX compatibility) or GNUSTEP_BASE_INTERNAL is defined + (building the base library etc itsself, and needing to ensure we + don't accidentally include installed headers from a previous version). 2010-02-18 Richard Frith-Macdonald - * Source/NSSpellServer.m: - * Source/NSMethodSignature.m: - * Source/NSString.m: - * Headers/Foundation/NSSpellServer.h: - * Headers/Foundation/NSObjCRuntime.h: - Fix minor 64bit compatribility errors spotted by Fred. + * Source/NSSpellServer.m: + * Source/NSMethodSignature.m: + * Source/NSString.m: + * Headers/Foundation/NSSpellServer.h: + * Headers/Foundation/NSObjCRuntime.h: + Fix minor 64bit compatribility errors spotted by Fred. 2010-02-18 Richard Frith-Macdonald - * configure.ac: remove obsolete checks for integer limits constants - * Headers/Additions/GNUstepBase/config.h.in: regenerate - * configure: regenerate - * Source/NSScanner.m: - * Source/NSNumber.m: - * Source/GSFormat.m: - New code to define LLONG_MAX,LLONG_MIN,ULLONG_MAX in terms of - __LONG_LONG_MAX__ where they are not found in the normal location. + * configure.ac: remove obsolete checks for integer limits constants + * Headers/Additions/GNUstepBase/config.h.in: regenerate + * configure: regenerate + * Source/NSScanner.m: + * Source/NSNumber.m: + * Source/GSFormat.m: + New code to define LLONG_MAX,LLONG_MIN,ULLONG_MAX in terms of + __LONG_LONG_MAX__ where they are not found in the normal location. 2010-02-16 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSXML.h: - * Source/Additions/GSXML.m: new method to allow an additional DTD - directory to be set for the parser. - * Tools/autogsdoc.m: Add flag to allow command line setting of extra - DTD directory. - * Source/DocMakefile: Set extra DTD directory to the Tools directory - so that gsdoc DTDs can be found even when they haven't been installed. + * Headers/Additions/GNUstepBase/GSXML.h: + * Source/Additions/GSXML.m: new method to allow an additional DTD + directory to be set for the parser. + * Tools/autogsdoc.m: Add flag to allow command line setting of extra + DTD directory. + * Source/DocMakefile: Set extra DTD directory to the Tools directory + so that gsdoc DTDs can be found even when they haven't been installed. 2010-02-16 Niels Grewe - * Source/Additions/GSXML.m: - Modify to use default catalog when GNUstep specific information - cannot be found. + * Source/Additions/GSXML.m: + Modify to use default catalog when GNUstep specific information + cannot be found. 2010-02-16 Richard Frith-Macdonald - * Source/NSDistantObject.m: - Cache method signatures to avoid asking remote end for them - repeatedly. + * Source/NSDistantObject.m: + Cache method signatures to avoid asking remote end for them + repeatedly. 2010-02-16 Wolfgang Lux - * Source/Additions/Unicode.m (GSToUnicode): Fix bug where - GSToUnicode attempted to read from a null pointer. + * Source/Additions/Unicode.m (GSToUnicode): Fix bug where + GSToUnicode attempted to read from a null pointer. 2010-02-15 Richard Frith-Macdonald - Various reorganisation tweaks. - Enable NSInteger/NSUInteger/CGFloat support at last. + Various reorganisation tweaks. + Enable NSInteger/NSUInteger/CGFloat support at last. 2010-02-15 Fred Kiefer - * Source/NSAttributedString.m: Implement keyed decoding for - multiple attributes correctly. - Based on code by Nikolaus Schaller . + * Source/NSAttributedString.m: Implement keyed decoding for + multiple attributes correctly. + Based on code by Nikolaus Schaller . 2010-02-14 David Chisnall - Rewrote NSNumber implementation. + Rewrote NSNumber implementation. 2010-02-14 Richard Frith-Macdonald - Major change merge back of 'reorg' branch into trunk. - The gross changes are: - 1. reorganisation of categories for additional non OSX methods into - separate files in the Additions library. - 2. changes to headers to hide instance variables if we are using - the non-fragile-abi with clang. - 3. additions of a void* instance variable for future expansion to - almost all classes (avoid the fragile ivar issue). - 4. various code changes to support the nonfragile-abi (the use of - @defs is no longer allowed). - NB. This revision breaks binary compatibility ... all code using base - needs to be rebuilt. However, future releases of the base library - should all maintain abi compatibility with the first release based - on these changes (at least, as far as class instance size issues - are concerned). + Major change merge back of 'reorg' branch into trunk. + The gross changes are: + 1. reorganisation of categories for additional non OSX methods into + separate files in the Additions library. + 2. changes to headers to hide instance variables if we are using + the non-fragile-abi with clang. + 3. additions of a void* instance variable for future expansion to + almost all classes (avoid the fragile ivar issue). + 4. various code changes to support the nonfragile-abi (the use of + @defs is no longer allowed). + NB. This revision breaks binary compatibility ... all code using base + needs to be rebuilt. However, future releases of the base library + should all maintain abi compatibility with the first release based + on these changes (at least, as far as class instance size issues + are concerned). 2010-02-12 Richard Frith-Macdonald - * configure.ac: Remove a couple of obsolete tests and add a couple for - new runtime features. - * config/config.objc_condition_timed_wait.c: remove - * config/config.non-fragile-ivars.m: add - * configure: regenerate - * Headers/Additions/GNUstepBase/config.h.in: regenerate + * configure.ac: Remove a couple of obsolete tests and add a couple for + new runtime features. + * config/config.objc_condition_timed_wait.c: remove + * config/config.non-fragile-ivars.m: add + * configure: regenerate + * Headers/Additions/GNUstepBase/config.h.in: regenerate 2010-02-11 Nicola Pero - * Source/Makefile.postamble: Removed obsolete manual dependency - rules. Dependencies of object files on header files are - automatically computed by gnustep-make, so these rules were - superfluous. - * Source/GNUmakefile: Compile Additions as a subproject before the - two libraries that are built on top of it. This will prevent - problems when libraries from the same GNUmakefile are built in - parallel. - * Source/GNUmakefile (GNUmakefile.local): Do not try including - this non-existing file. - * Examples/GNUmakefile: Same change. - * NSTimeZones/GNUmakefile: Same change. - * Resources/GNUmakefile: Same change. - * SSL/GNUmakefile: Same change. - * Tools/GNUmakefile: Same change. + * Source/Makefile.postamble: Removed obsolete manual dependency + rules. Dependencies of object files on header files are + automatically computed by gnustep-make, so these rules were + superfluous. + * Source/GNUmakefile: Compile Additions as a subproject before the + two libraries that are built on top of it. This will prevent + problems when libraries from the same GNUmakefile are built in + parallel. + * Source/GNUmakefile (GNUmakefile.local): Do not try including + this non-existing file. + * Examples/GNUmakefile: Same change. + * NSTimeZones/GNUmakefile: Same change. + * Resources/GNUmakefile: Same change. + * SSL/GNUmakefile: Same change. + * Tools/GNUmakefile: Same change. 2010-02-11 07:37-EST Gregory John Casamento - * install.sh: Removed configure. + * install.sh: Removed configure. 2010-02-09 Riccardo Mottola - * Source/NSOperation.m: Move declaration upwards to fix compile error. + * Source/NSOperation.m: Move declaration upwards to fix compile error. 2010-02-09 Richard Frith-Macdonald - * Source/GSAttributedString.m: - * Source/Additions/GSCategories.m: - * Headers/Foundation/NSString.h: - * Headers/Additions/GNUstepBase/GSCategories.h: - Re-instated the immutableProxy mathod, but as a clean category on - NSMutableString in the additions library. - Use for the -string method of NSAttributedString + * Source/GSAttributedString.m: + * Source/Additions/GSCategories.m: + * Headers/Foundation/NSString.h: + * Headers/Additions/GNUstepBase/GSCategories.h: + Re-instated the immutableProxy mathod, but as a clean category on + NSMutableString in the additions library. + Use for the -string method of NSAttributedString 2010-02-08 Richard Frith-Macdonald - * Source/NSAttributedString.m: minor cosmetic change - * Source/GSAttributedString.m: Re-introduce proxy for -string - and comment to try to avoid it being accidentally removed again. - * Source/GSString.m: Fixups to work properly with string proxies. - * Source/NSException.m: Re-instate correct behavior and make the - comment about it more emphatic. + * Source/NSAttributedString.m: minor cosmetic change + * Source/GSAttributedString.m: Re-introduce proxy for -string + and comment to try to avoid it being accidentally removed again. + * Source/GSString.m: Fixups to work properly with string proxies. + * Source/NSException.m: Re-instate correct behavior and make the + comment about it more emphatic. 2010-02-08 Jonathan Gillaspie - * Source/NSException.m - * Removed redundant call to _NSFoundationUncaughtExceptionHandler - and added else blocks to allow a set uncaught exception handler - to NOT exit if capable of recovering. + * Source/NSException.m + * Removed redundant call to _NSFoundationUncaughtExceptionHandler + and added else blocks to allow a set uncaught exception handler + to NOT exit if capable of recovering. 2010-02-08 Richard Frith-Macdonald - * Headers/Foundation/NSOperation.h: - * Source/NSOperation.m: - Complete implementation of NSOperationQueue (OSX 10.6 apart from the - methods using objc2 blocks). + * Headers/Foundation/NSOperation.h: + * Source/NSOperation.m: + Complete implementation of NSOperationQueue (OSX 10.6 apart from the + methods using objc2 blocks). 2010-02-06 Richard Frith-Macdonald - * Headers/Foundation/NSOperation.h: - * Source/NSOperation.m: - Partial implementation of NSOperationQueue (OSX Leopard functionality - plus a little of Snow Leopard). + * Headers/Foundation/NSOperation.h: + * Source/NSOperation.m: + Partial implementation of NSOperationQueue (OSX Leopard functionality + plus a little of Snow Leopard). 2010-02-05 Riccardo Mottola - * Headers/Additions/GNUstepBase/GSIMap.h: fixed c99-ism - * Headers/Additions/GNUstepBase/GSBlocks.h : provide gcc 2.95 - variadic macro + * Headers/Additions/GNUstepBase/GSIMap.h: fixed c99-ism + * Headers/Additions/GNUstepBase/GSBlocks.h : provide gcc 2.95 + variadic macro 2010-02-04 Richard Frith-Macdonald - * Headers/Foundation/NSOperation.h: - * Source/NSOperation.m: - Implement and document the NSOperation class. - As OSX 10.6 minus the objc2 specific 'block' methods. + * Headers/Foundation/NSOperation.h: + * Source/NSOperation.m: + Implement and document the NSOperation class. + As OSX 10.6 minus the objc2 specific 'block' methods. 2010-02-04 Richard Frith-Macdonald - * Source/NSLock.m: cleanup indentation etc, and apply fix suggested - by David Ayers + * Source/NSLock.m: cleanup indentation etc, and apply fix suggested + by David Ayers 2010-02-04 Jonathan Gillaspie - * Source/NSLock.m: - ([lockWhenCondition:beforeDate:]) - Switched to use timeIntervalSince1970. - added a loop to lockWhenCondition since pthread_cond_timedwait can - return to delay expiring. Hold the lock on a delayed acquire - (and YES return). - ([tryLockWhenCondition:]) No longer reports a deadlock when we - already have the lock, now just returns NO. + * Source/NSLock.m: + ([lockWhenCondition:beforeDate:]) + Switched to use timeIntervalSince1970. + added a loop to lockWhenCondition since pthread_cond_timedwait can + return to delay expiring. Hold the lock on a delayed acquire + (and YES return). + ([tryLockWhenCondition:]) No longer reports a deadlock when we + already have the lock, now just returns NO. 2010-02-03 Richard Frith-Macdonald - * Source/NSThread.m: - Don't use usleep() on windows .. it performas a busy wait so the - Sleep() function is better. + * Source/NSThread.m: + Don't use usleep() on windows .. it performas a busy wait so the + Sleep() function is better. 2010-02-01 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m: - * Source/NSThread.m: - Tweaks to try and get default thread correctly terminated on exit. + * Source/NSAutoreleasePool.m: + * Source/NSThread.m: + Tweaks to try and get default thread correctly terminated on exit. 2010-01-30 Fred Kiefer - * Source/NSPropertyList.m (GSBinaryPLParser -rootObject, - -initWithData:mutability:): Get root index from the binary - property list data and use this to return the root object. + * Source/NSPropertyList.m (GSBinaryPLParser -rootObject, + -initWithData:mutability:): Get root index from the binary + property list data and use this to return the root object. 2010-01-24 Richard Frith-Macdonald - * configure.ac: Option for using libbfd for stack traces - * configure: regenerate - * Headers/Additions/GNUstepBase/config.h.in: regenerate - * Source/NSException.m: Re-instate code for using libbfd to provide - symbolic stack traces (because the backtrace_symbols function doesn't - work on most platforms). Add warning about the fact that this alters - the license of the library. + * configure.ac: Option for using libbfd for stack traces + * configure: regenerate + * Headers/Additions/GNUstepBase/config.h.in: regenerate + * Source/NSException.m: Re-instate code for using libbfd to provide + symbolic stack traces (because the backtrace_symbols function doesn't + work on most platforms). Add warning about the fact that this alters + the license of the library. 2010-01-23 Niels Grewe - * Source/GSFFCallInvocation.m: - * Source/NSZone.m: - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/GCObject.m: - * Source/synchronization.m: - * Source/GSPThread.h: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - Updates for switch to using pthreads + * Source/GSFFCallInvocation.m: + * Source/NSZone.m: + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/GCObject.m: + * Source/synchronization.m: + * Source/GSPThread.h: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + Updates for switch to using pthreads 2010-01-21 Eric Wasylishen - * Headers/Foundation/NSObjCRuntime.h: define CGFLOAT_DEFINED when - defining CGFloat. - Also check that NSINTEGER_DEFINED and CGFLOAT_DEFINED are undefined - before defining NSInterger and CGFloat. + * Headers/Foundation/NSObjCRuntime.h: define CGFLOAT_DEFINED when + defining CGFloat. + Also check that NSINTEGER_DEFINED and CGFLOAT_DEFINED are undefined + before defining NSInterger and CGFloat. 2010-01-21 16:20-EST Gregory John Casamento - * install.sh: Add --with-installation-domain=SYSTEM to the script - to allow automated build on Windows. + * install.sh: Add --with-installation-domain=SYSTEM to the script + to allow automated build on Windows. 2010-01-20 Richard Frith-Macdonald - * Source/NSTask.m: - Always remove task from controlling terminal, not just when using - pseudo-terminals. This is compatible with OSX behavior - (testcase added to the testsuite). - Also remove some redundant/duplicate code + * Source/NSTask.m: + Always remove task from controlling terminal, not just when using + pseudo-terminals. This is compatible with OSX behavior + (testcase added to the testsuite). + Also remove some redundant/duplicate code 2010-01-11 Quentin Mathe - * Source/NSFormatter.m (-copyWithZone:, -initWithCoder:, - -encodeWithCoder:): Removed the subclass responsibility, - in order to have subclasses automatically coding and copying - compliant as Cocoa does. - You can also now safely call [super copyWithZone:/initWithCoder:] in a - subclass. + * Source/NSFormatter.m (-copyWithZone:, -initWithCoder:, + -encodeWithCoder:): Removed the subclass responsibility, + in order to have subclasses automatically coding and copying + compliant as Cocoa does. + You can also now safely call [super copyWithZone:/initWithCoder:] in a + subclass. 2010-01-11 Richard Frith-Macdonald - * Source/NSMapTable.m: - * Source/NSHashTable.m: - * Source/NSPropertyList.m: - * Source/GSStream.m: - * Source/NSURLResponse.m: - * Source/NSPointerArray.m: - * Source/Additions/GSMime.m: - * Source/NSURLRequest.m: - Fix mistaken strategy for avoiding clang warnings. + * Source/NSMapTable.m: + * Source/NSHashTable.m: + * Source/NSPropertyList.m: + * Source/GSStream.m: + * Source/NSURLResponse.m: + * Source/NSPointerArray.m: + * Source/Additions/GSMime.m: + * Source/NSURLRequest.m: + Fix mistaken strategy for avoiding clang warnings. 2010-01-11 Fred Kiefer - * Source/NSConcreteMapTable.m (NSCreateMapTableWithZone): Set the - concreteClass, when this isn't already set. + * Source/NSConcreteMapTable.m (NSCreateMapTableWithZone): Set the + concreteClass, when this isn't already set. 2010-01-10 Richard Frith-Macdonald - * Source/NSMapTable.m: - * Source/NSHashTable.m: - * Source/NSPropertyList.m: - * Source/NSScanner.m: - * Source/GSArray.m: - * Source/GSStream.m: - * Source/NSPredicate.m: - * Source/GSHTTPURLHandle.m: - * Source/NSURLResponse.m: - * Source/NSPointerArray.m: - * Source/Additions/GSCategories.m: - * Source/Additions/GSMime.m: - * Source/NSData.m: - * Source/NSSerializer.m: - * Source/NSURLRequest.m: - * Source/GSFormat.m: - * Source/NSXMLParser.m: - * SSL/GSSSLHandle.m: - * Tools/sfparse.m: - * Tools/gdnc.m: - * Tools/gdomap.c: - * Tools/pl.m: - * config/config.loadtest.m: - Tweaks towards making base build/work better with clang + * Source/NSMapTable.m: + * Source/NSHashTable.m: + * Source/NSPropertyList.m: + * Source/NSScanner.m: + * Source/GSArray.m: + * Source/GSStream.m: + * Source/NSPredicate.m: + * Source/GSHTTPURLHandle.m: + * Source/NSURLResponse.m: + * Source/NSPointerArray.m: + * Source/Additions/GSCategories.m: + * Source/Additions/GSMime.m: + * Source/NSData.m: + * Source/NSSerializer.m: + * Source/NSURLRequest.m: + * Source/GSFormat.m: + * Source/NSXMLParser.m: + * SSL/GSSSLHandle.m: + * Tools/sfparse.m: + * Tools/gdnc.m: + * Tools/gdomap.c: + * Tools/pl.m: + * config/config.loadtest.m: + Tweaks towards making base build/work better with clang 2010-01-09 Richard Frith-Macdonald - * Source/NSCharacterSetData.h: - * NSCharacterSets/newlineCharSet.dat: - Add VT ad FF as newline characters for OSX compatibility as suggested - by Eric. + * Source/NSCharacterSetData.h: + * NSCharacterSets/newlineCharSet.dat: + Add VT ad FF as newline characters for OSX compatibility as suggested + by Eric. 2010-01-09 Richard Frith-Macdonald - * configure.ac: - * Source/NSException.m: - * Headers/Additions/GNUstepBase/config.h.in: - * config/config.unexpected.m: - * config/config.set_unexpected.m: - * configure: - Modified to suppport native exceptions with libobjc2 which is missing - the objc_set_unexpected() function and just uses direct assignment of - a function pointer. + * configure.ac: + * Source/NSException.m: + * Headers/Additions/GNUstepBase/config.h.in: + * config/config.unexpected.m: + * config/config.set_unexpected.m: + * configure: + Modified to suppport native exceptions with libobjc2 which is missing + the objc_set_unexpected() function and just uses direct assignment of + a function pointer. 2010-01-05 Eric Wasylishen - * Headers/Foundation/NSCharacterSet.h - * Source/NSCharacterSet.m - * Source/NSCharacterSetData.h: - Implement +[NSCharacterSet newlineCharacterSet]. This includes - rebuilding NSCharacterSetData as described in the mkcharsets - README. - Note that the Apple docs count 0x000B (vertical tab) and 0x000C - (form feed) as newline characters, and include them in - newlineCharacterSet and whitespaceAndNewlineCharacterSet, while - GNUstep does not at the moment. + * Headers/Foundation/NSCharacterSet.h + * Source/NSCharacterSet.m + * Source/NSCharacterSetData.h: + Implement +[NSCharacterSet newlineCharacterSet]. This includes + rebuilding NSCharacterSetData as described in the mkcharsets + README. + Note that the Apple docs count 0x000B (vertical tab) and 0x000C + (form feed) as newline characters, and include them in + newlineCharacterSet and whitespaceAndNewlineCharacterSet, while + GNUstep does not at the moment. 2009-12-29 David Chisnall - * Source/GSDictionary.m - * Source/NSDictionary.m - * Headers/Foundation/NSDictionary.h - Added fast enumeration support to GSDictionary, and GSMutableSet. - * Source/GSSet.m - * Source/GSCountedSet.m - * Source/NSSet.m - * Headers/Foundation/NSSet.h - Added fast enumeration support to GSSet, GSMutableSet, and GSCountedSet - * Headers/Additions/GNUstepBase/GSIMap.h - Added function for implementing fast enumeration with GSIMaps. + * Source/GSDictionary.m + * Source/NSDictionary.m + * Headers/Foundation/NSDictionary.h + Added fast enumeration support to GSDictionary, and GSMutableSet. + * Source/GSSet.m + * Source/GSCountedSet.m + * Source/NSSet.m + * Headers/Foundation/NSSet.h + Added fast enumeration support to GSSet, GSMutableSet, and GSCountedSet + * Headers/Additions/GNUstepBase/GSIMap.h + Added function for implementing fast enumeration with GSIMaps. 2009-12-27 David Chisnall - * Source/NSArray.m - * Headers/Foundation/NSArray.h - Added some block method implementations. - - * Headers/Foundation/NSObjCRuntime.h - Added constants for enumeration. + * Source/NSArray.m + * Headers/Foundation/NSArray.h + Added some block method implementations. + * Headers/Foundation/NSObjCRuntime.h + Added constants for enumeration. 2009-12-27 David Chisnall - * Source/GSFastEnumeration.h: Added macros implementing for..in loops. + * Source/GSFastEnumeration.h: Added macros implementing for..in loops. 2009-12-27 David Chisnall - * Headers/Additions/GNUstepBase/GSBlocks.h: Added block macros. + * Headers/Additions/GNUstepBase/GSBlocks.h: Added block macros. 2009-12-23 Wolfgang Lux - * Source/NSUndoManager.m (_canCoalesceUndoWithTarget:selector:object): - Auxiliary method to support coalescing undo operations in - NSTextView. + * Source/NSUndoManager.m (_canCoalesceUndoWithTarget:selector:object): + Auxiliary method to support coalescing undo operations in + NSTextView. 2009-12-22 17:15-EST Gregory John Casamento - * Source/NSObject.m: Conditionally compile weak attribute for - Windows since it is not supported by the win32 linker. + * Source/NSObject.m: Conditionally compile weak attribute for + Windows since it is not supported by the win32 linker. 2009-12-20 David Chisnall - * Source/NSObject.m: Set block superclass. + * Source/NSObject.m: Set block superclass. 2009-12-19 13:53-EST Gregory John Casamento - * Source/GNUmakefile: Add synchronization.m to GNU_MFILES - and correct some formatting. - * Source/synchronization.m: Fix @synchronize support on - Windows. The __weak__ attribute doesn't work on Windows. + * Source/GNUmakefile: Add synchronization.m to GNU_MFILES + and correct some formatting. + * Source/synchronization.m: Fix @synchronize support on + Windows. The __weak__ attribute doesn't work on Windows. 2009-12-11 01:44-EST Gregory John Casamento - * Source/synchronization.m: Corrected header text. + * Source/synchronization.m: Corrected header text. 2009-12-07 Richard Frith-Macdonald - * Source/GSString.m: Use -hash from GSString rather than from NSString - to optimise hashing. Fix string comparison error as pointed out by - Doug Simons. + * Source/GSString.m: Use -hash from GSString rather than from NSString + to optimise hashing. Fix string comparison error as pointed out by + Doug Simons. 2009-12-02 Richard Frith-Macdonald - * Source/NSMessagePortNameServer.m: - * Source/NSMessagePort.m: - On initialisation, remove any old ports/names for the current process - idntifier. Also remove ports/names for processes which don't exist. - Avoids any possibility of nameserver confusion between two processes - with the same ID. + * Source/NSMessagePortNameServer.m: + * Source/NSMessagePort.m: + On initialisation, remove any old ports/names for the current process + idntifier. Also remove ports/names for processes which don't exist. + Avoids any possibility of nameserver confusion between two processes + with the same ID. 2009-12-01 Richard Frith-Macdonald - * Source/NSMessagePortNameServer.m: Tolerate '*' host name. - * Source/NSConnection.m: Clarify documentation slightly. - * NSSocketPort.m: - * win32/GSFileHandle.m: - Fixup missing notification changes. + * Source/NSMessagePortNameServer.m: Tolerate '*' host name. + * Source/NSConnection.m: Clarify documentation slightly. + * NSSocketPort.m: + * win32/GSFileHandle.m: + Fixup missing notification changes. 2009-11-27 Richard Frith-Macdonald - * Source/NSNotificationQueue.m: Rewrite queue handling to attempt to - fix bug #28104 by posting notifications matching the current run loop - mode and leaving others queued. - Also, change the meanining of a nil modes argument when enqueing a - notification to match OSX and assume NSDefaultRunLoopMode. - * Source/Additions/GSXML.m: Fix minor sax callback bug. - * Source/NSConnection.m: Don't send a response packet if the method - is oneway void return type and has no output parameters. + * Source/NSNotificationQueue.m: Rewrite queue handling to attempt to + fix bug #28104 by posting notifications matching the current run loop + mode and leaving others queued. + Also, change the meanining of a nil modes argument when enqueing a + notification to match OSX and assume NSDefaultRunLoopMode. + * Source/Additions/GSXML.m: Fix minor sax callback bug. + * Source/NSConnection.m: Don't send a response packet if the method + is oneway void return type and has no output parameters. 2009-11-27 Richard Frith-Macdonald - * Source/NSPropertyList.m: When serializing 'xml' style property lists - call -description to ensure that dictionary keys are strings since no - other option is permitted in the dtd. + * Source/NSPropertyList.m: When serializing 'xml' style property lists + call -description to ensure that dictionary keys are strings since no + other option is permitted in the dtd. 2009-11-27 Richard Frith-Macdonald - * Source/NSNotificationQueue.m: - * Source/NSRunLoop.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/win32/GSRunLoopCtxt.m: - * Source/GSPrivate.h: - Pass current runloop mode to notification functions. Next we need - to add code to use this information. + * Source/NSNotificationQueue.m: + * Source/NSRunLoop.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/win32/GSRunLoopCtxt.m: + * Source/GSPrivate.h: + Pass current runloop mode to notification functions. Next we need + to add code to use this information. 2009-11-26 Richard Frith-Macdonald - * Source/NSPropertyList.m: Revert last change, which broke XML - generation by placing illegal character entities in the output. - Fix menu position problem by adding missing code to unescape - the /U escapes we put in the output when we read back in again. - NB. should check that we use character entities for all legal - characters and only use the escape mechanism for *really* illegal - ones (such as the menu location key). + * Source/NSPropertyList.m: Revert last change, which broke XML + generation by placing illegal character entities in the output. + Fix menu position problem by adding missing code to unescape + the /U escapes we put in the output when we read back in again. + NB. should check that we use character entities for all legal + characters and only use the escape mechanism for *really* illegal + ones (such as the menu location key). 2009-11-26 Wolfgang Lux - * Source/NSPropertyList.m (XString): Write out proper XML encoding - for control characters. Fixes a bug where menu positions in GUI - programs would appear not persistent. + * Source/NSPropertyList.m (XString): Write out proper XML encoding + for control characters. Fixes a bug where menu positions in GUI + programs would appear not persistent. 2009-11-24 Richard Frith-Macdonald - * Source/GSFFIInvocation.m: make better guess when forward2 is not - available in runtime. + * Source/GSFFIInvocation.m: make better guess when forward2 is not + available in runtime. 2009-11-23 Richard Frith-Macdonald - * Source/NSObject.m: Remove spurious semicolons - * Source/NSConnection.m: autogsdoc ignore confusing section - * Source/NSLock.m: autogsdoc ignore (just use header) - * Tools/AGSParser.m: add feature to ignore sections - * Tools/autogsdoc.m: document new ignore markup + * Source/NSObject.m: Remove spurious semicolons + * Source/NSConnection.m: autogsdoc ignore confusing section + * Source/NSLock.m: autogsdoc ignore (just use header) + * Tools/AGSParser.m: add feature to ignore sections + * Tools/autogsdoc.m: document new ignore markup 2009-11-04 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m: ([-drain]) Copy undocumented OSX behavior - calling -release (suggested by Christopher James Elphinstone Chandler). + * Source/NSAutoreleasePool.m: ([-drain]) Copy undocumented OSX behavior + calling -release (suggested by Christopher James Elphinstone Chandler). 2009-10-26 Adam Fedor - * Source/Makefile.postamble: Add flag filter for - libgnustep-base-entry.m (for GCC 4.4 on MinGW). + * Source/Makefile.postamble: Add flag filter for + libgnustep-base-entry.m (for GCC 4.4 on MinGW). 2009-10-20 Wolfgang Lux - * Source/NSObject.m (NSIncrementExtraRefCount): Properly release - allocation lock. + * Source/NSObject.m (NSIncrementExtraRefCount): Properly release + allocation lock. 2009-10-12 Richard Frith-Macdonald - * Source/NSProcessInfo.m: - * Headers/Foundation/NSProcessInfo.h: - * Tools/gspath.m: - * Tools/plmerge.m: - * Tools/xmlparse.m: - * Tools/sfparse.m: - * Tools/plparse.m: - * Tools/pldes.m: - * Tools/defaults.m: - * Tools/plget.m: - * Tools/pl2link.m: - * Tools/gdnc.m: - * Tools/plser.m: - * Tools/autogsdoc.m: - * Tools/HTMLLinker.m: - * Tools/cvtenc.m: - Add function for easy process initialisation when the automatic - mechanisms don't work (eg calling ObjC code from within a C or C++ - application). + * Source/NSProcessInfo.m: + * Headers/Foundation/NSProcessInfo.h: + * Tools/gspath.m: + * Tools/plmerge.m: + * Tools/xmlparse.m: + * Tools/sfparse.m: + * Tools/plparse.m: + * Tools/pldes.m: + * Tools/defaults.m: + * Tools/plget.m: + * Tools/pl2link.m: + * Tools/gdnc.m: + * Tools/plser.m: + * Tools/autogsdoc.m: + * Tools/HTMLLinker.m: + * Tools/cvtenc.m: + Add function for easy process initialisation when the automatic + mechanisms don't work (eg calling ObjC code from within a C or C++ + application). 2009-10-11 Eric Wasylishen - * Source/NSKeyValueObserving.m: add setters for common structures. + * Source/NSKeyValueObserving.m: add setters for common structures. 2009-10-10 Richard Frith-Macdonald - * Headers/Foundation/NSString.h: - * Source/NSString.m: - * Source/GSString.m: - Remove obsolete immutable proxy method. - * Source/NSIndexPath.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSAttributedString.m: - * Source/GSArray.m: - * Source/GSFFCallInvocation.m: - * Source/GSFFIInvocation.m: - * Source/GSAttributedString.m: - * Source/NSConnection.m: - * Source/NSThread.m: - Replace unnecessary calls to NSDeallocateObject(). + * Headers/Foundation/NSString.h: + * Source/NSString.m: + * Source/GSString.m: + Remove obsolete immutable proxy method. + * Source/NSIndexPath.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSAttributedString.m: + * Source/GSArray.m: + * Source/GSFFCallInvocation.m: + * Source/GSFFIInvocation.m: + * Source/GSAttributedString.m: + * Source/NSConnection.m: + * Source/NSThread.m: + Replace unnecessary calls to NSDeallocateObject(). 2009-10-07 Adam Fedor - * configure.ac: Add librt for sched_yield on solaris. + * configure.ac: Add librt for sched_yield on solaris. 2009-10-05 Richard Frith-Macdonald - * configure.ac: enable ffcall if ffi is disabled - * configure: Regenerate - * Source/mframe:delete - * Source/mframe.m: delete - * Source/GSInvocation.h: - * Source/GNUmakefile: - * Source/NSMethodSignature.m: - * Source/GSFFCallInvocation.m: - * Source/NSKeyValueObserving.m: - * Source/GSFFIInvocation.m: - * Source/NSInvocation.m: - * Source/cifframe.m: - * Source/NSConnection.m: - * Source/callframe.m: - * Source/NSDistantObject.m: - * Headers/Foundation/NSMethodSignature.h: - * Headers/Foundation/NSInvocation.h: - Update for removal of mframe code. + * configure.ac: enable ffcall if ffi is disabled + * configure: Regenerate + * Source/mframe:delete + * Source/mframe.m: delete + * Source/GSInvocation.h: + * Source/GNUmakefile: + * Source/NSMethodSignature.m: + * Source/GSFFCallInvocation.m: + * Source/NSKeyValueObserving.m: + * Source/GSFFIInvocation.m: + * Source/NSInvocation.m: + * Source/cifframe.m: + * Source/NSConnection.m: + * Source/callframe.m: + * Source/NSDistantObject.m: + * Headers/Foundation/NSMethodSignature.h: + * Headers/Foundation/NSInvocation.h: + Update for removal of mframe code. 2009-10-04 Richard Frith-Macdonald - * Source/GNUmakefile: - * Source/NSMethodSignature.m: - * Source/GSFFCallInvocation.m: - * Source/mframe/mframe.head: - * Source/GSFFIInvocation.m: - * Source/NSInvocation.m: - * Source/cifframe.h: - * Source/mframe.m: - * Source/cifframe.m: - * Source/NSConnection.m: - * Source/callframe.h: - * Source/NSObjCRuntime.m: - * Source/callframe.m: - * Headers/Additions/GNUstepBase/DistributedObjects.h: - * Headers/Additions/GNUstepBase/preface.h.in: - Remove lots of obsolete code as part of the ong term process of - scrapping the old mframe stuff. + * Source/GNUmakefile: + * Source/NSMethodSignature.m: + * Source/GSFFCallInvocation.m: + * Source/mframe/mframe.head: + * Source/GSFFIInvocation.m: + * Source/NSInvocation.m: + * Source/cifframe.h: + * Source/mframe.m: + * Source/cifframe.m: + * Source/NSConnection.m: + * Source/callframe.h: + * Source/NSObjCRuntime.m: + * Source/callframe.m: + * Headers/Additions/GNUstepBase/DistributedObjects.h: + * Headers/Additions/GNUstepBase/preface.h.in: + Remove lots of obsolete code as part of the ong term process of + scrapping the old mframe stuff. 2009-10-04 Richard Frith-Macdonald - * Source/cifframe.h: Remove unused code - * Source/cifframe.m: ditto - * Source/callframe.h: ditto - * Source/callframe.m: ditto - * Source/NSConnection.m: Use NSInvocation functionality directly - rather than duplicated versions of the code in ffi/ffcall/mframe - specific files. Should simplify things and make maintenance easier. + * Source/cifframe.h: Remove unused code + * Source/cifframe.m: ditto + * Source/callframe.h: ditto + * Source/callframe.m: ditto + * Source/NSConnection.m: Use NSInvocation functionality directly + rather than duplicated versions of the code in ffi/ffcall/mframe + specific files. Should simplify things and make maintenance easier. 2009-10-03 Richard Frith-Macdonald - * Source/GSInvocation.h: - * Source/GSFFIInvocation.m: - * Source/NSInvocation.m: - Fix to always store return value in memory owned by the GSFFIInvocation - object. Fix for bug #27233 + * Source/GSInvocation.h: + * Source/GSFFIInvocation.m: + * Source/NSInvocation.m: + Fix to always store return value in memory owned by the GSFFIInvocation + object. Fix for bug #27233 2009-10-03 Richard Frith-Macdonald - * Source/NSConnection.m: - Don't allow the root object of a connection to be released simply - because the remote proxy is released ... the connection itsself - may have been retained at the remote end, and the code there may - call the -rootProxy method and start sending messages to it again. - Fix for bug #27128 + * Source/NSConnection.m: + Don't allow the root object of a connection to be released simply + because the remote proxy is released ... the connection itsself + may have been retained at the remote end, and the code there may + call the -rootProxy method and start sending messages to it again. + Fix for bug #27128 2009-10-01 Richard Frith-Macdonald - * Source/NSPortCoder.m: - * Source/NSKeyedArchiver.m: - * Source/NSConcreteMapTable.m: - * Source/NSConnection.m: - * Source/NSSerializer.m: - * Source/NSArchiver.m: - * Source/NSConcreteHashTable.m: - * Headers/Additions/GNUstepBase/GSIMap.h: - Explicitly specify types present in GSIUnion + * Source/NSPortCoder.m: + * Source/NSKeyedArchiver.m: + * Source/NSConcreteMapTable.m: + * Source/NSConnection.m: + * Source/NSSerializer.m: + * Source/NSArchiver.m: + * Source/NSConcreteHashTable.m: + * Headers/Additions/GNUstepBase/GSIMap.h: + Explicitly specify types present in GSIUnion 2009-09-30 Richard Frith-Macdonald - * Source/NSLock.m: Fix BOOL methods to return YES or NO. - * Source/win32/GSFileHandle.m: Implement nul device handle. - * Source/NSTask.m: Try to avoid annoying colsole window with mingw32 - * Source/GSLocale.m: Try to handle locale setup in non-utf8 locales. + * Source/NSLock.m: Fix BOOL methods to return YES or NO. + * Source/win32/GSFileHandle.m: Implement nul device handle. + * Source/NSTask.m: Try to avoid annoying colsole window with mingw32 + * Source/GSLocale.m: Try to handle locale setup in non-utf8 locales. 2009-09-27 Richard Frith-Macdonald - * Source/win32/GSFileHandle.m: - * Source/win32/NSMessagePort.m: - * Source/win32/GSRunLoopCtxt.m: - * Source/win32/NSStream.m: - * Source/win32/NSMessagePortNameServer.m: - * Source/NSPipe.m: - * Source/NSTask.m: - Fixes to try and improve subtask handling on windows. - 1. change scheme to create all handles as not inheritable, and - just make the handles we want the child to have inheritable while - we are launching the child. - 2. peek the data on pipes and refrain from notifying about data - availability if the pipe doesn't really have data. This is horrid and - means we poll pipes ... I guess we really need to be doing async - reads instead ... perhaps someone can do that based on the code in - Source/win32/NSMessagePort.m which already does it. + * Source/win32/GSFileHandle.m: + * Source/win32/NSMessagePort.m: + * Source/win32/GSRunLoopCtxt.m: + * Source/win32/NSStream.m: + * Source/win32/NSMessagePortNameServer.m: + * Source/NSPipe.m: + * Source/NSTask.m: + Fixes to try and improve subtask handling on windows. + 1. change scheme to create all handles as not inheritable, and + just make the handles we want the child to have inheritable while + we are launching the child. + 2. peek the data on pipes and refrain from notifying about data + availability if the pipe doesn't really have data. This is horrid and + means we poll pipes ... I guess we really need to be doing async + reads instead ... perhaps someone can do that based on the code in + Source/win32/NSMessagePort.m which already does it. 2009-09-23 Richard Frith-Macdonald - * Source/NSURL.m: OSX compatibility tweaks ... allows initialisation - using a string containing a simple path without any scheme. + * Source/NSURL.m: OSX compatibility tweaks ... allows initialisation + using a string containing a simple path without any scheme. 2009-09-17 Richard Frith-Macdonald - * Source/NSIndexSet.m: - ([-shiftIndexesStartingAtIndex:by:]) fix to properly merge index - ranges when shifting left. + * Source/NSIndexSet.m: + ([-shiftIndexesStartingAtIndex:by:]) fix to properly merge index + ranges when shifting left. 2009-09-15 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSMime.h: - * Source/Additions/GSMime.m: - Add new -excess method to return any excess data left over from parsing. - Previously the code just used to NSLog() this data as a warning. + * Headers/Additions/GNUstepBase/GSMime.h: + * Source/Additions/GSMime.m: + Add new -excess method to return any excess data left over from parsing. + Previously the code just used to NSLog() this data as a warning. 2009-09-14 Richard Frith-Macdonald - * Source/NSCalendarDate.m: Workaround for bug in some linux SMP systems - * Source/NSConnection.m: fix for bug #27446 + * Source/NSCalendarDate.m: Workaround for bug in some linux SMP systems + * Source/NSConnection.m: fix for bug #27446 2009-09-12 Richard Frith-Macdonald - * Source/NSCalendarDate.m: Add optional diagnostics to detect system - time changes and warn about them. - * Source/NSException.m: Clean up to match coding standards. - Fix uninitialised variable bug. - * Source/NSObject.m: clean up and fix missing dealloc. - * Headers/Foundation/NSURLCredential.h: - * Headers/Foundation/NSHTTPCookieStorage.h: - * Headers/Foundation/NSException.h: - * Headers/Foundation/NSValueTransformer.h: - * Headers/Foundation/NSURLAuthenticationChallenge.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSStream.h: - * Headers/Foundation/NSThread.h: - * Headers/Foundation/NSHTTPCookie.h: - * Headers/Foundation/NSURLError.h: - * Headers/Foundation/NSURLProtectionSpace.h: - * Headers/Foundation/NSURLDownload.h: - * Headers/Foundation/NSKeyValueObserving.h: - * Headers/Foundation/NSURLRequest.h: - * Headers/Foundation/NSURLCredentialStorage.h: - * Headers/Foundation/NSInvocation.h: - * Headers/Foundation/NSURLResponse.h: - * Headers/Foundation/NSURLConnection.h: - * Headers/Foundation/NSIndexPath.h: - * Headers/Foundation/NSURLProtocol.h: - * Headers/Foundation/NSURLCache.h: - * Headers/Additions/GNUstepBase/GSVersionMacros.h: - Fix up errors in version of feature addition to GNUstep. Some - GNUstep version constants had leading zeros so they were interpreted - as octal rather than decimal. + * Source/NSCalendarDate.m: Add optional diagnostics to detect system + time changes and warn about them. + * Source/NSException.m: Clean up to match coding standards. + Fix uninitialised variable bug. + * Source/NSObject.m: clean up and fix missing dealloc. + * Headers/Foundation/NSURLCredential.h: + * Headers/Foundation/NSHTTPCookieStorage.h: + * Headers/Foundation/NSException.h: + * Headers/Foundation/NSValueTransformer.h: + * Headers/Foundation/NSURLAuthenticationChallenge.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSStream.h: + * Headers/Foundation/NSThread.h: + * Headers/Foundation/NSHTTPCookie.h: + * Headers/Foundation/NSURLError.h: + * Headers/Foundation/NSURLProtectionSpace.h: + * Headers/Foundation/NSURLDownload.h: + * Headers/Foundation/NSKeyValueObserving.h: + * Headers/Foundation/NSURLRequest.h: + * Headers/Foundation/NSURLCredentialStorage.h: + * Headers/Foundation/NSInvocation.h: + * Headers/Foundation/NSURLResponse.h: + * Headers/Foundation/NSURLConnection.h: + * Headers/Foundation/NSIndexPath.h: + * Headers/Foundation/NSURLProtocol.h: + * Headers/Foundation/NSURLCache.h: + * Headers/Additions/GNUstepBase/GSVersionMacros.h: + Fix up errors in version of feature addition to GNUstep. Some + GNUstep version constants had leading zeros so they were interpreted + as octal rather than decimal. 2009-09-11 David Chisnall - * Source/NSException.m: - *Headers/Foundation/NSException.h: + * Source/NSException.m: + *Headers/Foundation/NSException.h: - Rewrote exception callstack generation to use the backtrace() and - backtrace_symbols() code. Implemented the -callStackSymbols method from - 10.5 using this. For this to be enabled, the configure script will - require a small modification, which Gregory will add later. + Rewrote exception callstack generation to use the backtrace() and + backtrace_symbols() code. Implemented the -callStackSymbols method from + 10.5 using this. For this to be enabled, the configure script will + require a small modification, which Gregory will add later. 2009-09-10 David Chisnall - * Source/GSFFIInvocation.m: - * Source/NSObject.m: - * Headers/Foundation/NSObject.h: - Added implementations of the hooks provided by the new runtime. This - brings NSObject up to feature-parity with the OS X 10.5 implementation - when using the new runtime and up to feature-parity with the 10.6 - implementation if you are using the new runtime and compiling with - clang. + * Source/GSFFIInvocation.m: + * Source/NSObject.m: + * Headers/Foundation/NSObject.h: + Added implementations of the hooks provided by the new runtime. This + brings NSObject up to feature-parity with the OS X 10.5 implementation + when using the new runtime and up to feature-parity with the 10.6 + implementation if you are using the new runtime and compiling with + clang. - Also removes the objc_mutex_wibble stuff from NSObject in favour of just - using NSLocks (which, with the new implementation, are now faster than - using objc_mutex_stuff). + Also removes the objc_mutex_wibble stuff from NSObject in favour of just + using NSLocks (which, with the new implementation, are now faster than + using objc_mutex_stuff). 2009-09-10 Richard Frith-Macdonald - * Source/NSRunLoop.m: ([-limitDateForMode:]) on OSX it seems that only - one timer fires each time this method is invoked ... so I rewrote this - method to only fire one timer (excluding the private housekeeping one). - Changing to only fire one timer actually allows the code to be simpler - so it's a good update in its own right, not just a OSX compatibility - tweak. I also made incrementing repeated timers a bit more robust, - checking that they provide a valid increment time interval and - removing them from the loop if they don't. - * Source/NSTimer.m: slightly tidy/clarify initialisation code and - documentation. + * Source/NSRunLoop.m: ([-limitDateForMode:]) on OSX it seems that only + one timer fires each time this method is invoked ... so I rewrote this + method to only fire one timer (excluding the private housekeeping one). + Changing to only fire one timer actually allows the code to be simpler + so it's a good update in its own right, not just a OSX compatibility + tweak. I also made incrementing repeated timers a bit more robust, + checking that they provide a valid increment time interval and + removing them from the loop if they don't. + * Source/NSTimer.m: slightly tidy/clarify initialisation code and + documentation. 2009-09-08 Richard Frith-Macdonald - * configure.ac: - * configure: - * config.mak.in: - * Source/GNUmakefile: - Attempt to tidy up config now that pthreads are mandatory. - * Source/NSThread.m: - Fix various bugs related to thread exit, Prevent crashes at program - termination ...nastily obvious on mingw. - * Source/Additions/GSLock.m: - Remove -dealloc implementations which called -finalize, since the - superclass implementationd does that too, and finalizing twice is - a bad, bad thing. + * configure.ac: + * configure: + * config.mak.in: + * Source/GNUmakefile: + Attempt to tidy up config now that pthreads are mandatory. + * Source/NSThread.m: + Fix various bugs related to thread exit, Prevent crashes at program + termination ...nastily obvious on mingw. + * Source/Additions/GSLock.m: + Remove -dealloc implementations which called -finalize, since the + superclass implementationd does that too, and finalizing twice is + a bad, bad thing. 2009-09-07 Richard Frith-Macdonald - * Headers/Foundation/NSConnection.h: - * Source/NSConnection.m: - Remove ivars from public header. - Improve debug by reporting the connections's registered name and/or - the name of the remote port it is connecting to. + * Headers/Foundation/NSConnection.h: + * Source/NSConnection.m: + Remove ivars from public header. + Improve debug by reporting the connections's registered name and/or + the name of the remote port it is connecting to. 2009-09-07 Richard Frith-Macdonald - * Source/NSRunLoop.m: - * Source/GSRunLoopCtxt.h: - Add some logging to help debug problems where code is adding too - many events into a run loop. + * Source/NSRunLoop.m: + * Source/GSRunLoopCtxt.h: + Add some logging to help debug problems where code is adding too + many events into a run loop. 2009-09-06 Richard Frith-Macdonald - * Source/NSLock.m: Fix the ([-tryLock]) and [(-lockBeforeDate:]) - implementations for NSLock and NSCondictionLock to return NO for - recursive locking. Fix to only initialise mutex attributes once - (to avoid leaking a set of attributes with every lock created on - platforms where attributes need to be destroyed when no longer used). - Reorganise to make it easy to replace method implementations. - Fix for bug #25444 ... OSX compatibility change. + * Source/NSLock.m: Fix the ([-tryLock]) and [(-lockBeforeDate:]) + implementations for NSLock and NSCondictionLock to return NO for + recursive locking. Fix to only initialise mutex attributes once + (to avoid leaking a set of attributes with every lock created on + platforms where attributes need to be destroyed when no longer used). + Reorganise to make it easy to replace method implementations. + Fix for bug #25444 ... OSX compatibility change. 2009-09-06 Richard Frith-Macdonald - * Source/NSRunLoop.m: Fix for rare problem if someone changes the - system time backwards. - * configure.ac: Check for pthread.h and type sizes. Insist on having - pthread.h in order to build, now that it is a requirement. - * configure: Regenerate - * Headers/Additions/GNUstepBase/GSConfig.h.in: Declare abstract types. - * Source/NSLock.m: including pthread.h - * Headers/Foundation/NSLock.h: Avoid including pthread.h - Basically, insist on finding pthread.h at configure time, and get size - of essential types so we can avoid exposing them directly in our - public headers. This should discourage developers from using things - they shouldn't, but it does not solve the issue that copies of the base - library built with different pthread implementations on the same - platform may have binary incompatible NSLock classes (with respect to - subclassing as the pthread specific ivars differ in size). However - this is *really* unlikely to be an issue in practice. + * Source/NSRunLoop.m: Fix for rare problem if someone changes the + system time backwards. + * configure.ac: Check for pthread.h and type sizes. Insist on having + pthread.h in order to build, now that it is a requirement. + * configure: Regenerate + * Headers/Additions/GNUstepBase/GSConfig.h.in: Declare abstract types. + * Source/NSLock.m: including pthread.h + * Headers/Foundation/NSLock.h: Avoid including pthread.h + Basically, insist on finding pthread.h at configure time, and get size + of essential types so we can avoid exposing them directly in our + public headers. This should discourage developers from using things + they shouldn't, but it does not solve the issue that copies of the base + library built with different pthread implementations on the same + platform may have binary incompatible NSLock classes (with respect to + subclassing as the pthread specific ivars differ in size). However + this is *really* unlikely to be an issue in practice. 2009-09-05 David Chisnall - * Source/NSEnumeration.m: Added enumeration mutation callback. + * Source/NSEnumeration.m: Added enumeration mutation callback. 2009-09-03 Richard Frith-Macdonald - * Source/NSLock.m: Fix a few variable declarations to work with older - compilers. Fix indentation/whitespace for coding standards consistency. - * Source/NSURLProtocol.m: Fix attempt to use deallocated stream. + * Source/NSLock.m: Fix a few variable declarations to work with older + compilers. Fix indentation/whitespace for coding standards consistency. + * Source/NSURLProtocol.m: Fix attempt to use deallocated stream. 2009-09-01 David Chisnall - * Source/NSLock.m - * Headers/Foundation/NSLock.h - Completely rewritten implementations of NSLock.h classes. These are now - faster, more complete, OS X-compatible, and most importantly actually - work. The old ones, for example, called functions that were not - implemented on Windows. - * Source/NSThread.m - Call pthread functions directly in NSThread instead of via the libobjc - abstraction layer. Also fixed a few issues, such as GC not being - initialized properly for NSThread subclasses that override -main - (Javaism supported by OS X) and tidies up the code in several places, - removing premature optimizations, especially those that introduce a - test for an unlikely case at the start of a method and thus slow - everything down. - - As a result of this change, GNUstep now depends on an implementation of - POSIX threads. This is included as standard on all modern UNIX systems, - and as an option on less-modern UNIX systems and non-UNIX systems, - including Windows. If you are building GNUstep on Windows, - please install the pthreads-win32 package, available from: - - http://sourceware.org/pthreads-win32/ - - PLEASE TEST THIS! There may be some code that depended on the old - behaviour. I have been running the new NSLock implementation on FreeBSD - for a few weeks without issue; please report to me any problems that you - have on your platform. + * Source/NSLock.m + * Headers/Foundation/NSLock.h + Completely rewritten implementations of NSLock.h classes. These are now + faster, more complete, OS X-compatible, and most importantly actually + work. The old ones, for example, called functions that were not + implemented on Windows. + * Source/NSThread.m + Call pthread functions directly in NSThread instead of via the libobjc + abstraction layer. Also fixed a few issues, such as GC not being + initialized properly for NSThread subclasses that override -main + (Javaism supported by OS X) and tidies up the code in several places, + removing premature optimizations, especially those that introduce a + test for an unlikely case at the start of a method and thus slow + everything down. + + As a result of this change, GNUstep now depends on an implementation of + POSIX threads. This is included as standard on all modern UNIX systems, + and as an option on less-modern UNIX systems and non-UNIX systems, + including Windows. If you are building GNUstep on Windows, + please install the pthreads-win32 package, available from: + + http://sourceware.org/pthreads-win32/ + + PLEASE TEST THIS! There may be some code that depended on the old + behaviour. I have been running the new NSLock implementation on FreeBSD + for a few weeks without issue; please report to me any problems that you + have on your platform. 2009-09-01 Richard Frith-Macdonald - * Version: bump to 1.19.3 - * Documentation/news.texi: update - * Documentation/ReleaseNotes.gsdoc: update - Make 1.19.3 release. + * Version: bump to 1.19.3 + * Documentation/news.texi: update + * Documentation/ReleaseNotes.gsdoc: update + Make 1.19.3 release. 2009-09-01 Richard Frith-Macdonald - * Headers/Foundation/NSCache.h: - * Source/NSCache.m: - Great additions... tweaked with whitespace changes to conform to - coding standards, addition of copyright headers, addition of standard - prevention of multiple inclusion, include changes to build independant - of any existing installation. + * Headers/Foundation/NSCache.h: + * Source/NSCache.m: + Great additions... tweaked with whitespace changes to conform to + coding standards, addition of copyright headers, addition of standard + prevention of multiple inclusion, include changes to build independant + of any existing installation. 2009-08-31 David Chisnall - * Headers/Foundation/NSCache.h: - * Headers/Foundation/Foundation.h: - * Source/NSCache.m: - * Source/GNUmakefile: - Added NSCache implementation. + * Headers/Foundation/NSCache.h: + * Headers/Foundation/Foundation.h: + * Source/NSCache.m: + * Source/GNUmakefile: + Added NSCache implementation. 2009-08-31 Richard Frith-Macdonald - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - * Source/NSConnection.m: - Improve -description to include the registered names (if any) of ports. - Include full port description in connection description. + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + * Source/NSConnection.m: + Improve -description to include the registered names (if any) of ports. + Include full port description in connection description. 2009-08-30 David Chisnall - * Headers/Foundation/NSObject.h: Added NSDicardableContent protocol from - Snow Leopard. + * Headers/Foundation/NSObject.h: Added NSDicardableContent protocol from + Snow Leopard. 2009-08-27 Richard Frith-Macdonald - * Source/Additions/GSCategories.m: - * Source/Additions/GSCompatibility.m: - Move -fullPath to correct place to build on OSX + * Source/Additions/GSCategories.m: + * Source/Additions/GSCompatibility.m: + Move -fullPath to correct place to build on OSX 2009-08-27 Richard Frith-Macdonald - * Source/NSAttributedString.m: ([-string]) was returning proxy to - mutable string ... bad if calling code does not expect it. + * Source/NSAttributedString.m: ([-string]) was returning proxy to + mutable string ... bad if calling code does not expect it. 2009-08-26 Richard Frith-Macdonald - * Headers/Foundation/NSURL.h: - * Headers/Additions/GNUstepBase/GSCategories.h: - * Source/NSURL.m: - * Source/Additions/GSCategories.m: - Add new -fulPath method to do what -path used to do, because for OSX - compatibility the -path method now returns a path without any - trailing slash, making it impossible to reconsitute a URL string - from its individual parts :-( - * Source/GSHTTPURLHandle.m: - * Source/NSURLProtocol.m: - Use the new -fullPath method to build the request line sent to the - remote web server. + * Headers/Foundation/NSURL.h: + * Headers/Additions/GNUstepBase/GSCategories.h: + * Source/NSURL.m: + * Source/Additions/GSCategories.m: + Add new -fulPath method to do what -path used to do, because for OSX + compatibility the -path method now returns a path without any + trailing slash, making it impossible to reconsitute a URL string + from its individual parts :-( + * Source/GSHTTPURLHandle.m: + * Source/NSURLProtocol.m: + Use the new -fullPath method to build the request line sent to the + remote web server. 2009-08-25 Richard Frith-Macdonald - * Version: bump to 1.19.2 - * Documentation/news.texi: update - * Documentation/ReleaseNotes.gsdoc: update - * Source/DocMakefile: Avoid warning about WINAPI - * Source/NSURLDownload.m: Documentation cleanups - * Source/NSFileManager.m: ditto - * Source/Additions/GSCategories.m: ditto - * Source/Additions/GSMime.m: ditto - * Source/NSURLConnection.m: ditto - * Headers/Foundation/NSTimeZone.h: ditto - * Headers/Foundation/NSURLDownload.h: ditto - Make 1.19.2 release + * Version: bump to 1.19.2 + * Documentation/news.texi: update + * Documentation/ReleaseNotes.gsdoc: update + * Source/DocMakefile: Avoid warning about WINAPI + * Source/NSURLDownload.m: Documentation cleanups + * Source/NSFileManager.m: ditto + * Source/Additions/GSCategories.m: ditto + * Source/Additions/GSMime.m: ditto + * Source/NSURLConnection.m: ditto + * Headers/Foundation/NSTimeZone.h: ditto + * Headers/Foundation/NSURLDownload.h: ditto + Make 1.19.2 release 2009-08-24 Richard Frith-Macdonald - * Source/NSString.m: - * Source/GSString.m: - * Headers/Foundation/NSString.h: - Tweak boolValue behavior to better match OSX and document exact - behavior. + * Source/NSString.m: + * Source/GSString.m: + * Headers/Foundation/NSString.h: + Tweak boolValue behavior to better match OSX and document exact + behavior. 2009-08-23 Richard Frith-Macdonald - * Source/win32/GSFileHandle.m: Fix for write in background on windows - if a write is not already in progress, do it immediately because - winsock won't tell us when we can write. Also, improve the test to - see if a handle is a socket, as the previous code was not working for - incoming connections, resulting in a busy poll rather than a blocking - poll, and thus loading the system unnecessarily. + * Source/win32/GSFileHandle.m: Fix for write in background on windows + if a write is not already in progress, do it immediately because + winsock won't tell us when we can write. Also, improve the test to + see if a handle is a socket, as the previous code was not working for + incoming connections, resulting in a busy poll rather than a blocking + poll, and thus loading the system unnecessarily. 2009-08-21 Riccardo Mottola - * Source/NSConnection.m: Joined split-line string constant + * Source/NSConnection.m: Joined split-line string constant 2009-08-21 Doug Simons - * Source/NSUserDefaults.m: Remove one of the locks in +userLanguages - to avoid a deadlock. - Patch applied by: Gregory Casamento + * Source/NSUserDefaults.m: Remove one of the locks in +userLanguages + to avoid a deadlock. + Patch applied by: Gregory Casamento 2009-08-21 Doug Simons - * Source/NSUserDefaults.m: Changes to bulletproof NSUserDefaults from - deadlocks when it is accessed by more than one thread. - Patch applied by: Gregory Casamento + * Source/NSUserDefaults.m: Changes to bulletproof NSUserDefaults from + deadlocks when it is accessed by more than one thread. + Patch applied by: Gregory Casamento 2009-08-19 Eric Wasylishen - * Source/Additions/GSObjCRuntime.m: - Behave consistently with MacOS-X when a getter or setter method - returns a type of data which is not supported by KVC. + * Source/Additions/GSObjCRuntime.m: + Behave consistently with MacOS-X when a getter or setter method + returns a type of data which is not supported by KVC. 2009-08-15 David Chisnall - * Source/NSObject: - - Tweaked NSObject to use atomic ops with LLVM as well as gcc (this - probably isn't actually needed) - - Fixed SIGFPE problem on FreeBSD using proper interfaces instead of - an asm hack. - * Removes various mframe things from being compiled when ffcall/libffi - is used (mframe.m, NSConnection.m, NSInvocation.m) - * Turned a nested function in make_strings.m into a macro. + * Source/NSObject: + - Tweaked NSObject to use atomic ops with LLVM as well as gcc (this + probably isn't actually needed) + - Fixed SIGFPE problem on FreeBSD using proper interfaces instead of + an asm hack. + * Removes various mframe things from being compiled when ffcall/libffi + is used (mframe.m, NSConnection.m, NSInvocation.m) + * Turned a nested function in make_strings.m into a macro. 2009-08-12 Richard Frith-Macdonald - * Source/NSData.m: Remove some redundant methods and add checks for - attempts to use a null pointer to set bytes in the data. - * Source/NSCharacterSet.m: Save mem with index set rather than - bitmap set + * Source/NSData.m: Remove some redundant methods and add checks for + attempts to use a null pointer to set bytes in the data. + * Source/NSCharacterSet.m: Save mem with index set rather than + bitmap set 2009-08-11 Fred Kiefer - * Source/NSAttributedString.m: Fix keyeded encodgin decoding for - both NSAttributedString and NSMutableAttributedString. + * Source/NSAttributedString.m: Fix keyeded encodgin decoding for + both NSAttributedString and NSMutableAttributedString. 2009-08-11 Richard Frith-Macdonald - * Source/NSData.m: Fix memory leak introduced with GC changes. - * Source/Additions/GSMime.m: Use memmove() as fix for bug #27224 + * Source/NSData.m: Fix memory leak introduced with GC changes. + * Source/Additions/GSMime.m: Use memmove() as fix for bug #27224 2009-08-10 Richard Frith-Macdonald - * Source/NSData.m: Fix memory leak introduced with GC changes. + * Source/NSData.m: Fix memory leak introduced with GC changes. 2009-08-05 Richard Frith-Macdonald - * Source/NSFileManager.m: - * Headers/Foundation/NSFileManager.h: - Updated comments/documentation to say that directory enumeration order - is undefined. + * Source/NSFileManager.m: + * Headers/Foundation/NSFileManager.h: + Updated comments/documentation to say that directory enumeration order + is undefined. 2009-08-04 Richard Frith-Macdonald - * Tools/AGSHtml.m: Escape non-ascii characters etc in author. + * Tools/AGSHtml.m: Escape non-ascii characters etc in author. 2009-08-04 Richard Frith-Macdonald - * Source/NSPropertyList.m: Fix for handling empty key values in - XML property lists. + * Source/NSPropertyList.m: Fix for handling empty key values in + XML property lists. 2009-08-03 Richard Frith-Macdonald - * Source/NSObject.m: Fix error in memory allocation debug when - swizzling a class. + * Source/NSObject.m: Fix error in memory allocation debug when + swizzling a class. 2009-07-30 Quentin Mathe - * Headers/Foundation/Foundation.h: Included NSKeyValueObserving.h. + * Headers/Foundation/Foundation.h: Included NSKeyValueObserving.h. 2009-07-28 Richard Frith-Macdonald - * Source/NSConnection.m: Correct the text in exception when attempting - to read a response on an invalidated connection. - * Source/Additions/GSMime.m: - Fixup incorrect declaration of method in wrong class implementation. + * Source/NSConnection.m: Correct the text in exception when attempting + to read a response on an invalidated connection. + * Source/Additions/GSMime.m: + Fixup incorrect declaration of method in wrong class implementation. 2009-07-27 David Ayers - * Source/Additions/GSCompatibility.m ([-boolValue]): Only compile - for OS X Versions below 10.5 and sync implementation with -base. - Reported by: Georg Fleischmann + * Source/Additions/GSCompatibility.m ([-boolValue]): Only compile + for OS X Versions below 10.5 and sync implementation with -base. + Reported by: Georg Fleischmann 2009-07-23 Richard Frith-Macdonald - * GSHTTPURLHandle.m: - * NSURLProtocol.m: - Include the port in the 'Host' header if it's specified in the URL. + * GSHTTPURLHandle.m: + * NSURLProtocol.m: + Include the port in the 'Host' header if it's specified in the URL. 2009-07-21 Richard Frith-Macdonald - * Source/GSInternal.h: New macros for CLANG/non-fragile ivar compat. - * Source/NSOperation.m: Use new macros. + * Source/GSInternal.h: New macros for CLANG/non-fragile ivar compat. + * Source/NSOperation.m: Use new macros. 2009-07-17 Richard Frith-Macdonald - * Source/NSOperation.m: Fix includes and text of comments at start - of document. + * Source/NSOperation.m: Fix includes and text of comments at start + of document. 2009-07-16 Richard Frith-Macdonald - * Headers/Foundation/NSOperation.h: - * Source/NSOperation.m: - Various changes for maintainability and coding standards ... nothing - which should effect functionality. + * Headers/Foundation/NSOperation.h: + * Source/NSOperation.m: + Various changes for maintainability and coding standards ... nothing + which should effect functionality. 2009-07-14 20:02-EDT Gregory John Casamento - * Headers/Foundation/NSOperation.h - * Source/NSOperation.m: Added initial implementation of - NSOperationQueue. + * Headers/Foundation/NSOperation.h + * Source/NSOperation.m: Added initial implementation of + NSOperationQueue. 2009-07-13 14:15-EDT Gregory John Casamento - * Headers/Foundation/Foundation.h - * Headers/Foundation/NSOperation.h - * Source/GNUmakefile - * Source/NSOperation.m: Initial implementation of NSOperation - class. + * Headers/Foundation/Foundation.h + * Headers/Foundation/NSOperation.h + * Source/GNUmakefile + * Source/NSOperation.m: Initial implementation of NSOperation + class. 2009-07-11 Richard Frith-Macdonald - * Source/NSConcreteMapTable.m: Add some comments. - * Source/NSConcreteHashTable.m: Dito - * Headers/Additions/GNUstepBase/GSIMap.h: Make explicit that fields in - enumerator are all big enough to hold pointers. + * Source/NSConcreteMapTable.m: Add some comments. + * Source/NSConcreteHashTable.m: Dito + * Headers/Additions/GNUstepBase/GSIMap.h: Make explicit that fields in + enumerator are all big enough to hold pointers. 2009-07-04 Richard Frith-Macdonald - * Source/NSProcessInfo.m: Add daignostic check. - * Source/NSSocketPort.m: Make sure socklen_t is defined. - Shoudl fix bug #26856 + * Source/NSProcessInfo.m: Add daignostic check. + * Source/NSSocketPort.m: Make sure socklen_t is defined. + Shoudl fix bug #26856 2009-06-30 Wolfgang Lux - * configure.ac: - * configure: - * config/config.poll-dev.c: Add test to configure to avoid using - the broken poll implementation on Mac OS X 10.4 and later, which - does not support devices. + * configure.ac: + * configure: + * config/config.poll-dev.c: Add test to configure to avoid using + the broken poll implementation on Mac OS X 10.4 and later, which + does not support devices. 2009-06-24 Richard Frith-Macdonald - * Source/NSXMLParser.m: ([-parse]) don't split whitespace strings - at newline. + * Source/NSXMLParser.m: ([-parse]) don't split whitespace strings + at newline. 2009-06-19 Richard Frith-Macdonald - * Source/win32/GSRunLoopCtxt.m: Fix error sending received event - handle to watcher. Had broken TCP/IP ports. + * Source/win32/GSRunLoopCtxt.m: Fix error sending received event + handle to watcher. Had broken TCP/IP ports. 2009-06-19 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Fix incorrect attempt to free memory - we shouldn't. Should fix bug #26843 + * Source/Additions/Unicode.m: Fix incorrect attempt to free memory + we shouldn't. Should fix bug #26843 2009-06-16 Richard Frith-Macdonald - * Source/win32/NSMessagePort.m: Don't use NSLog() to report error - when writing to mailslot ... it's usually just that the remote - end has terminated, so invalidating the port silently is better. - * Source/GSFileHandle.m: Adjust code to deal with fstat() returning - a failure on windows if the descriptor is a pipe/socket. + * Source/win32/NSMessagePort.m: Don't use NSLog() to report error + when writing to mailslot ... it's usually just that the remote + end has terminated, so invalidating the port silently is better. + * Source/GSFileHandle.m: Adjust code to deal with fstat() returning + a failure on windows if the descriptor is a pipe/socket. 2009-06-13 Richard Frith-Macdonald - * Headers/Foundation/NSKeyedArchiver.h: - * Headers/Foundation/NSArchiver.h: - Fix error cleaning up a define. + * Headers/Foundation/NSKeyedArchiver.h: + * Headers/Foundation/NSArchiver.h: + Fix error cleaning up a define. 2009-06-12 Richard Frith-Macdonald - * Source/NSDistributedNotificationCenter.m: add explicit size casts - to avoid compiler warnings. - * Source/NSUserDefaults.m: Save defaults in xml format and add some - error checking. - * Source/NSPropertyList.m: tolerate NSNumber values used as dictionary - keys, by using their string representation. + * Source/NSDistributedNotificationCenter.m: add explicit size casts + to avoid compiler warnings. + * Source/NSUserDefaults.m: Save defaults in xml format and add some + error checking. + * Source/NSPropertyList.m: tolerate NSNumber values used as dictionary + keys, by using their string representation. 2009-06-09 Richard Frith-Macdonald - * SSL/Source/GSSSLHandle.m: Disable v2 by default due to - security issues. GSPermitSSLv2 user default can enable it again. + * SSL/Source/GSSSLHandle.m: Disable v2 by default due to + security issues. GSPermitSSLv2 user default can enable it again. 2009-06-08 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Optimise somewhat for converting - from unicode (UTF-2) to UTF-8 - * Source/GSString.m: Optimise 8 bit string equality tests a little. + * Source/Additions/Unicode.m: Optimise somewhat for converting + from unicode (UTF-2) to UTF-8 + * Source/GSString.m: Optimise 8 bit string equality tests a little. 2009-06-06 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Optimise case where we are converting - from unicode to latin1 or ascii. - * Source/GSString.m: Optimise -hash method of NXConstantString too. + * Source/Additions/Unicode.m: Optimise case where we are converting + from unicode to latin1 or ascii. + * Source/GSString.m: Optimise -hash method of NXConstantString too. 2009-06-06 Wolfgang Lux - * Source/GSFFIInvocation.m - (-initWithCallback:returnp:values:frame:signature:): Fix bug - #26419 by removing bogus code which was used on targets where - MFRAME_STRUCT_BYREF is defined. + * Source/GSFFIInvocation.m + (-initWithCallback:returnp:values:frame:signature:): Fix bug + #26419 by removing bogus code which was used on targets where + MFRAME_STRUCT_BYREF is defined. 2009-06-06 Richard Frith-Macdonald - * Source/Additions/Unicode.m: When converting from a characterset - to unicode, and we know that there is a one to one correspondence - between the characterset values and unicode values, shift the - buffer sizing outsize the loop through the characters to avoid - unnecessary checks for the end of the buffer in each iteration. - Optimisation suggested by Fred Kiefer + * Source/Additions/Unicode.m: When converting from a characterset + to unicode, and we know that there is a one to one correspondence + between the characterset values and unicode values, shift the + buffer sizing outsize the loop through the characters to avoid + unnecessary checks for the end of the buffer in each iteration. + Optimisation suggested by Fred Kiefer 2009-06-05 18:12-EDT Gregory John Casamento - * Source/NSDistantObject.m: NSProxy subclasses must override -init - or an exception will be thrown. This change calls the forwarding - mechanism to invoke -init on the remote object. - Patch by David Chisnall + * Source/NSDistantObject.m: NSProxy subclasses must override -init + or an exception will be thrown. This change calls the forwarding + mechanism to invoke -init on the remote object. + Patch by David Chisnall 2009-06-04 Georg Fleischmann - * Source/Additions/unicode/nextstep.h: Fixups for encoding mapping. + * Source/Additions/unicode/nextstep.h: Fixups for encoding mapping. 2009-06-02 Wolfgang Lux - * Source/NSUndoManager.m (-undo, -redo): Call -_begin instead of - -beginUndoGrouping to avoid creation of a spurious top-level group - while performing undo or redo operations, which was causing the - recorded actions to be dropped silently. + * Source/NSUndoManager.m (-undo, -redo): Call -_begin instead of + -beginUndoGrouping to avoid creation of a spurious top-level group + while performing undo or redo operations, which was causing the + recorded actions to be dropped silently. - * Source/NSUndoManager.m (-beginUndoGrouping): Post - NSUndoManagerCheckpointNotification also during undo as on OS X. + * Source/NSUndoManager.m (-beginUndoGrouping): Post + NSUndoManagerCheckpointNotification also during undo as on OS X. - * Source/NSUndoManager.m (-endUndoGrouping): Post - NSUndoManagerWillCloseUndoGroupNotification before changing the - group so that clients see the same grouping level as on OS X. + * Source/NSUndoManager.m (-endUndoGrouping): Post + NSUndoManagerWillCloseUndoGroupNotification before changing the + group so that clients see the same grouping level as on OS X. 2009-05-29 Riccardo Mottola - * Source/NSObject.m: Atomic increment and decrement functions for m68k + * Source/NSObject.m: Atomic increment and decrement functions for m68k 2009-05-29 Nicola Pero - * GNUmakefile: Use $(warning ...) instead of $(info ...) since - $(info ...) exists only in GNU make >= 3.81. - * NSCharacterSets/GNUmakefile: Same change. - * Source/GNUmakefile: Same change. - * SSL/GNUmakefile: Same change. - * Documentation/GNUmakefile: Same change. - * Resources/GNUmakefile: Same change. - * NSTimeZones/GNUmakefile: Same change. - * Examples/GNUmakefile: Same change. - * Tools/GNUmakefile: Same change. + * GNUmakefile: Use $(warning ...) instead of $(info ...) since + $(info ...) exists only in GNU make >= 3.81. + * NSCharacterSets/GNUmakefile: Same change. + * Source/GNUmakefile: Same change. + * SSL/GNUmakefile: Same change. + * Documentation/GNUmakefile: Same change. + * Resources/GNUmakefile: Same change. + * NSTimeZones/GNUmakefile: Same change. + * Examples/GNUmakefile: Same change. + * Tools/GNUmakefile: Same change. 2009-05-27 Richard Frith-Macdonald - * Source/NSRunLoop.m: Updates to match latest MacOS-X behavior. - The +new and -init methods now return nil. - Timers are now treated like input sources for purposes of deciding - whether the loop will block and whether performerds will execute. - * Source/NSTimer.m: Updates to match latest MacOS-X behavior. - The +new and -init methods now return nil. + * Source/NSRunLoop.m: Updates to match latest MacOS-X behavior. + The +new and -init methods now return nil. + Timers are now treated like input sources for purposes of deciding + whether the loop will block and whether performerds will execute. + * Source/NSTimer.m: Updates to match latest MacOS-X behavior. + The +new and -init methods now return nil. 2009-05-24 Richard Frith-Macdonald - * Source/NSThread.m: Use lock to prevent race condition setting up - runloop info for thread. + * Source/NSThread.m: Use lock to prevent race condition setting up + runloop info for thread. 2009-05-23 Richard Frith-Macdonald - * Source/NSKeyValueObserving.m: - Permit setters which return values. + * Source/NSKeyValueObserving.m: + Permit setters which return values. 2009-05-22 Richard Frith-Macdonald - * Source/NSFileManager.m: - * Source/NSBundle.m: - Try to get the path right for loading dynamic library code on windows - when NSExecutable doesn't have the .dll path extension. + * Source/NSFileManager.m: + * Source/NSBundle.m: + Try to get the path right for loading dynamic library code on windows + when NSExecutable doesn't have the .dll path extension. 2009-05-16 Doug Simons - * Source/NSCalendarDate.m: - Implement field widths for numeric fields in a date format for - MacOS-X compatibility. + * Source/NSCalendarDate.m: + Implement field widths for numeric fields in a date format for + MacOS-X compatibility. 2009-05-16 Richard Frith-Macdonald - * Source/NSURL.m: Add support for file URLs on mswindows. The path - may be of the form C:/... rather than /... (and the colon might be - a vertical bar). - Also makefile fixes for bug #26446 + * Source/NSURL.m: Add support for file URLs on mswindows. The path + may be of the form C:/... rather than /... (and the colon might be + a vertical bar). + Also makefile fixes for bug #26446 2009-05-11 Adam Fedor - * Source/NSXMLParser.m: Fix include location + * Source/NSXMLParser.m: Fix include location 2009-05-10 Adam Fedor - * Version 1.19.1 + * Version 1.19.1 2009-05-06 Adam Fedor - * Documentation/news.texi, Documentation/releasenotes.texi: Update. + * Documentation/news.texi, Documentation/releasenotes.texi: Update. 2009-05-04 Fred Kiefer - * Source/NSObject.m: Correct asm for PPC. - Patch by Eric Wasylishen - * Source/NSObject.m: Add support for new gcc atomic build - ins. Currently still disabled. - Patch by David Chisnall + * Source/NSObject.m: Correct asm for PPC. + Patch by Eric Wasylishen + * Source/NSObject.m: Add support for new gcc atomic build + ins. Currently still disabled. + Patch by David Chisnall 2009-05-04 Richard Frith-Macdonald - * NSCharacterSets/GNUmakefile: - * Source/GNUmakefile: - * SSL/GNUmakefile: - * Documentation/GNUmakefile: - * Resources/GNUmakefile: - * Examples/GNUmakefile: - * NSTimeZones/GNUmakefile: - * GNUmakefile: - * Tools/GNUmakefile: + * NSCharacterSets/GNUmakefile: + * Source/GNUmakefile: + * SSL/GNUmakefile: + * Documentation/GNUmakefile: + * Resources/GNUmakefile: + * Examples/GNUmakefile: + * NSTimeZones/GNUmakefile: + * GNUmakefile: + * Tools/GNUmakefile: Add help info for the case when gnustep-config can't tell us the location of the makefiles. 2009-05-03 Riccardo Mottola - * Source/NSURLProtocol.m: Removed c99-ism + * Source/NSURLProtocol.m: Removed c99-ism 2009-05-03 Richard Frith-Macdonald @@ -17481,467 +17490,467 @@ 2009-04-27 Richard Frith-Macdonald - * Source/NSCalendarDate.m: Fix bug #26360 plus optimise a little. - * Source/NSURL.m: Send over DO bycopy as default. + * Source/NSCalendarDate.m: Fix bug #26360 plus optimise a little. + * Source/NSURL.m: Send over DO bycopy as default. 2009-04-27 Richard Frith-Macdonald - * Headers/Foundation/NSData.h: - * Source/NSData.m: - Implement new MacOS-X methods for writing data (no support for - returning NSError objects yet). + * Headers/Foundation/NSData.h: + * Source/NSData.m: + Implement new MacOS-X methods for writing data (no support for + returning NSError objects yet). 2009-04-26 Richard Frith-Macdonald - * Source/GSFTPURLHandle.m: Implement full support for multiline - responses. Fix for bug #26348 + * Source/GSFTPURLHandle.m: Implement full support for multiline + responses. Fix for bug #26348 2009-04-26 Richard Frith-Macdonald - * Headers/Foundation/NSTimeZone.h: - * Headers/Foundation/NSPropertyList.h: - * Headers/Foundation/NSZone.h: - * Source/NSHashTable.m: - * Source/NSZone.m: - * Source/NSDecimal.m: - Fix errors generating documentation. + * Headers/Foundation/NSTimeZone.h: + * Headers/Foundation/NSPropertyList.h: + * Headers/Foundation/NSZone.h: + * Source/NSHashTable.m: + * Source/NSZone.m: + * Source/NSDecimal.m: + Fix errors generating documentation. 2009-04-26 Richard Frith-Macdonald - * Source/NSFileManager.m: ([changeFileAttributes:atPath:]) optimise - to avoid unnecessary creation of NSNumber objects as suggested by - Greg. + * Source/NSFileManager.m: ([changeFileAttributes:atPath:]) optimise + to avoid unnecessary creation of NSNumber objects as suggested by + Greg. 2009-04-25 Richard Frith-Macdonald - * Source/NSFileManager.m: Reinstate incorrectly reverted changes. - Fix actual bug in Fred's patched version ... some code incorrectly - returning an integer when it should return an NSNumber. + * Source/NSFileManager.m: Reinstate incorrectly reverted changes. + Fix actual bug in Fred's patched version ... some code incorrectly + returning an integer when it should return an NSNumber. 2009-04-25 08:35-EDT Gregory John Casamento - * Source/NSFileManager.m: Partial reversion of previous patch. - The calls in the method changeAttribues:atPath: to the GSAttrDictionary - which is used there were erroneously changed to assume an NSNumber. - This was causing a crash in various applications. + * Source/NSFileManager.m: Partial reversion of previous patch. + The calls in the method changeAttribues:atPath: to the GSAttrDictionary + which is used there were erroneously changed to assume an NSNumber. + This was causing a crash in various applications. 2009-04-24 Fred Morcos - * Headers/Foundation/NSFileManager.h: - * Source/NSFileManager.m: - Fix -fileOwnerAccountID and -fileGroupOwnerAccountID to return the - correct type. Also fix return type of HFS methods (though these are - Apple filesystem specific and do nothing in GNUstep). + * Headers/Foundation/NSFileManager.h: + * Source/NSFileManager.m: + Fix -fileOwnerAccountID and -fileGroupOwnerAccountID to return the + correct type. Also fix return type of HFS methods (though these are + Apple filesystem specific and do nothing in GNUstep). 2009-04-19 Richard Frith-Macdonald - * Source/NSHashTable.m: - * Source/NSConcreteHashTable.m: - * Source/NSMapTable.m: - * Source/NSConcreteMapTable.m: - * Headers/Additions/GNUstepBase/GSIMap.h: - Changes for GC zeroing weak pointers. Implement enumeration stuff for - new classes. Add code to support subclassing. + * Source/NSHashTable.m: + * Source/NSConcreteHashTable.m: + * Source/NSMapTable.m: + * Source/NSConcreteMapTable.m: + * Headers/Additions/GNUstepBase/GSIMap.h: + Changes for GC zeroing weak pointers. Implement enumeration stuff for + new classes. Add code to support subclassing. 2009-04-18 Richard Frith-Macdonald - * Source/NSArray.m: Implement the - ([countByEnumeratingWithState:objects:count:]) method. + * Source/NSArray.m: Implement the + ([countByEnumeratingWithState:objects:count:]) method. 2009-04-18 10:15-EDT Gregory John Casamento - * Source/GSURLPrivate.h: Addition of private method to NSURLProtocol - category. - * Source/NSURLConnection.m: Changes to use the new method and to correct - bug #26107. Patch by: doug@riverrock.org - * Source/NSURLProtocol.m: Addition of static method to look up class - which can handle the given connection protocol. - Patch by: doug@riverrock.org + * Source/GSURLPrivate.h: Addition of private method to NSURLProtocol + category. + * Source/NSURLConnection.m: Changes to use the new method and to correct + bug #26107. Patch by: doug@riverrock.org + * Source/NSURLProtocol.m: Addition of static method to look up class + which can handle the given connection protocol. + Patch by: doug@riverrock.org 2009-04-16 Richard Frith-Macdonald - * Headers/Foundation/NSHasTable.h: new OSX 10.5 API - * Source/NSHashTable.m: New abstract class - * Source/NSConcreteHashTable.m: concrete implementation - * Source/NSKeyValueObserving.m: Fix incorrect hash table references. + * Headers/Foundation/NSHasTable.h: new OSX 10.5 API + * Source/NSHashTable.m: New abstract class + * Source/NSConcreteHashTable.m: concrete implementation + * Source/NSKeyValueObserving.m: Fix incorrect hash table references. 2009-04-13 Richard Frith-Macdonald - * Source/GSString.m: Change placeholder string initialisation so that, - in a GC world, it checks to see if the buffer passed to it is - collectable and forces a copy if it isn't. This prevents memory leaks - when a malloc'ed buffer is passed to the initialiser. + * Source/GSString.m: Change placeholder string initialisation so that, + in a GC world, it checks to see if the buffer passed to it is + collectable and forces a copy if it isn't. This prevents memory leaks + when a malloc'ed buffer is passed to the initialiser. 2009-04-11 Richard Frith-Macdonald - * Source/GSPrivate.h: New private functions. - * Source/NSObject.m: Add function to swizzle isa pointer safely. - * Source/NSZone.m: Add function to check for collectable memory. - * Source/NSData.m: Add finalisation for shared memory and mapped - files. Add finalized subclasses to deal with memory which must be - freed when the NSData is collected. + * Source/GSPrivate.h: New private functions. + * Source/NSObject.m: Add function to swizzle isa pointer safely. + * Source/NSZone.m: Add function to check for collectable memory. + * Source/NSData.m: Add finalisation for shared memory and mapped + files. Add finalized subclasses to deal with memory which must be + freed when the NSData is collected. 2009-04-11 01:12-EDT Gregory John Casamento - * Source/NSLock.m: Move the warning to a debug log. + * Source/NSLock.m: Move the warning to a debug log. 2009-04-10 Richard Frith-Macdonald - * Source/cifframe.m: - * Source/callrame.m: - Update for GC to use scanned memory to hold pointers we got from - the stack so that memory will persist as long as the invocation - needs it. + * Source/cifframe.m: + * Source/callrame.m: + Update for GC to use scanned memory to hold pointers we got from + the stack so that memory will persist as long as the invocation + needs it. 2009-04-10 Richard Frith-Macdonald - * Source/GSPrivate.h: - * Source/NSString.m: - * Source/NSObject.m: - * Source/GSString.m: - * Source/NSZone.m: - GC tweaks ... Improve realloc when in gc world. + * Source/GSPrivate.h: + * Source/NSString.m: + * Source/NSObject.m: + * Source/GSString.m: + * Source/NSZone.m: + GC tweaks ... Improve realloc when in gc world. 2009-04-03 Adam Fedor - * Source/NSObject.m: Revert previous patch (David to fix up later). + * Source/NSObject.m: Revert previous patch (David to fix up later). 2009-03-31 Richard Frith-Macdonald - * Headers/Foundation/NSInvocation.h: - * Source/NSInvocation.m: - Remove unused private method pointed out by David Chisnall. + * Headers/Foundation/NSInvocation.h: + * Source/NSInvocation.m: + Remove unused private method pointed out by David Chisnall. 2009-03-31 Richard Frith-Macdonald - * Headers/Foundation/NSDebug.h: - * Source/mframe.m: - * Source/NSObject.m: - Cleanups for building with other compilers as suggested/provided - by David Chisnall. + * Headers/Foundation/NSDebug.h: + * Source/mframe.m: + * Source/NSObject.m: + Cleanups for building with other compilers as suggested/provided + by David Chisnall. 2009-03-29 Richard Frith-Macdonald - * Source/NSString.m: Fix error in parsing root of UNC path + * Source/NSString.m: Fix error in parsing root of UNC path 2009-03-28 Fred Kiefer - * Source/NSSocketPort.m (-receivedEvent:...forMode:): Fix usage of - ET_WDESC for MINGW32. + * Source/NSSocketPort.m (-receivedEvent:...forMode:): Fix usage of + ET_WDESC for MINGW32. 2009-03-24 Richard Frith-Macdonald - * Source/GSSocketStream.h: - * Source/GSSocketStream.m: - Avoid unnecessary memory allocation. - Use weak pointers to break finalisation cycles. - * Source/NSZone.m: Use GC debug unless built with 'debug=no' - Allocate memory ignoring pointers into the allocated data. + * Source/GSSocketStream.h: + * Source/GSSocketStream.m: + Avoid unnecessary memory allocation. + Use weak pointers to break finalisation cycles. + * Source/NSZone.m: Use GC debug unless built with 'debug=no' + Allocate memory ignoring pointers into the allocated data. 2009-03-21 Richard Frith-Macdonald - * configure.ac: - * configure: - * Headers/Additions/GNUstepBase/config.h.in: - * Source/NSDebug.m: - Try using sigsetjmp for dealing with signals during stack trace, - in case it helps work arouns bugs in signal handling. + * configure.ac: + * configure: + * Headers/Additions/GNUstepBase/config.h.in: + * Source/NSDebug.m: + Try using sigsetjmp for dealing with signals during stack trace, + in case it helps work arouns bugs in signal handling. 2009-03-21 Richard Frith-Macdonald - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - Fix to treat exceptional (out of band) event as meaning a readable - rather than a writable descriptor. + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + Fix to treat exceptional (out of band) event as meaning a readable + rather than a writable descriptor. 2009-03-20 Richard Frith-Macdonald - * Source/NSURLCredential.m: - * Source/NSURLAuthenticationChallenge.m: - * Source/NSURLDownload.m: - * Source/NSURLCredentialStorage.m: - * Source/NSURLResponse.m: - * Source/NSURLProtocol.m: - * Source/NSURLCache.m: - * Source/NSHTTPCookieStorage.m: - * Source/NSCachedURLResponse.m: - * Source/NSHTTPCookie.m: - * Source/NSURLProtectionSpace.m: - * Source/GSHTTPAuthentication.m: - * Source/NSURLRequest.m: - * Source/NSXMLParser.m: - * Source/NSURLConnection.m: - Fix some errors in header comments. + * Source/NSURLCredential.m: + * Source/NSURLAuthenticationChallenge.m: + * Source/NSURLDownload.m: + * Source/NSURLCredentialStorage.m: + * Source/NSURLResponse.m: + * Source/NSURLProtocol.m: + * Source/NSURLCache.m: + * Source/NSHTTPCookieStorage.m: + * Source/NSCachedURLResponse.m: + * Source/NSHTTPCookie.m: + * Source/NSURLProtectionSpace.m: + * Source/GSHTTPAuthentication.m: + * Source/NSURLRequest.m: + * Source/NSXMLParser.m: + * Source/NSURLConnection.m: + Fix some errors in header comments. 2009-03-18 Richard Frith-Macdonald - * Source/NSNotificationQueue.m: Fix dealloc bug pointed out by - Larry Campbell. + * Source/NSNotificationQueue.m: Fix dealloc bug pointed out by + Larry Campbell. 2009-03-18 Richard Frith-Macdonald - * Source/win32/GSFileHandle.m: - * Source/win32/NSMessagePort.m: - * Source/win32/NSMessagePortNameServer.m: - * Source/NSConcreteMapTable.m: - * Source/Additions/GSCompatibility.m: - * Source/Additions/GSCategories.m: - * Source/NSData.m: - Fixes for windows and changes to GC code, plus changes for old - compilers which don't support anonymous unions, plus improvement - to error reporting on windows, plus fix to correctly rename - protected files if possible. + * Source/win32/GSFileHandle.m: + * Source/win32/NSMessagePort.m: + * Source/win32/NSMessagePortNameServer.m: + * Source/NSConcreteMapTable.m: + * Source/Additions/GSCompatibility.m: + * Source/Additions/GSCategories.m: + * Source/NSData.m: + Fixes for windows and changes to GC code, plus changes for old + compilers which don't support anonymous unions, plus improvement + to error reporting on windows, plus fix to correctly rename + protected files if possible. 2009-03-16 Richard Frith-Macdonald - * Source/NSConcretePointerFunctions.h: Minor GC tweaks - * Source/NSMessagePortNameServer.m: Fix map table declaration - * Source/NSKeyedUnarchiver.m: ditto - * Source/NSKeyValueObserving.m: ditto - * Source/NSObject.m: ditto - * Source/GNUmakefile: Add NSConcreteMapTable.m - * Source/NSConcreteMapTable.m: New file for new class - * Source/NSMapTable.m: Change to be an abstract class - * Headers/Foundation/NSMapTable.h: Add new MacOS-X 10.5 API - * Headers/Additions/GNUstepBase/GSIMap.h: Some changes for - new map table API. + * Source/NSConcretePointerFunctions.h: Minor GC tweaks + * Source/NSMessagePortNameServer.m: Fix map table declaration + * Source/NSKeyedUnarchiver.m: ditto + * Source/NSKeyValueObserving.m: ditto + * Source/NSObject.m: ditto + * Source/GNUmakefile: Add NSConcreteMapTable.m + * Source/NSConcreteMapTable.m: New file for new class + * Source/NSMapTable.m: Change to be an abstract class + * Headers/Foundation/NSMapTable.h: Add new MacOS-X 10.5 API + * Headers/Additions/GNUstepBase/GSIMap.h: Some changes for + new map table API. 2009-03-12 Bernard Cafferelli - * configure.ac: Add --disable-zeroconf option to control whether - NSNetServices (and a dependency on libdns_sd) is enabled. + * configure.ac: Add --disable-zeroconf option to control whether + NSNetServices (and a dependency on libdns_sd) is enabled. 2009-03-10 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSIArray.h: - * Source/NSNotificationCenter.m: - * Source/NSRunLoop.m: - * Source/NSZone.m: - Various small GC bugfixes to get more of testsuite passing. + * Headers/Additions/GNUstepBase/GSIArray.h: + * Source/NSNotificationCenter.m: + * Source/NSRunLoop.m: + * Source/NSZone.m: + Various small GC bugfixes to get more of testsuite passing. 2009-03-09 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSIArray.h: - * Headers/Additions/GNUstepBase/GSIMap.h: - * Headers/Foundation/NSZone.h: - * Source/Additions/GSInsensitiveDictionary.m: - * Source/Additions/Unicode.m: - * Source/GSAttributedString.m: - * Source/GSCountedSet.m: - * Source/GSDictionary.m: - * Source/GSPrivate.h: - * Source/GSSet.m: - * Source/NSArchiver.m: - * Source/NSConnection.m: - * Source/NSHashTable.m: - * Source/NSKeyedArchiver.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSMapTable.m: - * Source/NSNotificationCenter.m: - * Source/NSPortCoder.m: - * Source/NSRunLoop.m: - * Source/NSSerializer.m: - * Source/NSURL.m: - * Source/NSZone.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/win32/GSRunLoopCtxt.m: - More moves towards OSX 10.5 GC compatibility. - With GC add some use of typed memory and remove the old - GNUstep specific GSAtomicMallocZone() from public API. - Still needs new NSHashTable and NSMaptable implementations. + * Headers/Additions/GNUstepBase/GSIArray.h: + * Headers/Additions/GNUstepBase/GSIMap.h: + * Headers/Foundation/NSZone.h: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/Additions/Unicode.m: + * Source/GSAttributedString.m: + * Source/GSCountedSet.m: + * Source/GSDictionary.m: + * Source/GSPrivate.h: + * Source/GSSet.m: + * Source/NSArchiver.m: + * Source/NSConnection.m: + * Source/NSHashTable.m: + * Source/NSKeyedArchiver.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSMapTable.m: + * Source/NSNotificationCenter.m: + * Source/NSPortCoder.m: + * Source/NSRunLoop.m: + * Source/NSSerializer.m: + * Source/NSURL.m: + * Source/NSZone.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/win32/GSRunLoopCtxt.m: + More moves towards OSX 10.5 GC compatibility. + With GC add some use of typed memory and remove the old + GNUstep specific GSAtomicMallocZone() from public API. + Still needs new NSHashTable and NSMaptable implementations. 2009-03-08 Richard Frith-Macdonald - * Source/GSSocketStream.m: - * Source/GSStream.m: - * Source/NSConnection.m: - * Source/NSKeyedArchiver.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSObject.m: - * Source/NSPort.m: - * Source/NSXMLParser.m: - GC tweaks to use new API. + * Source/GSSocketStream.m: + * Source/GSStream.m: + * Source/NSConnection.m: + * Source/NSKeyedArchiver.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSObject.m: + * Source/NSPort.m: + * Source/NSXMLParser.m: + GC tweaks to use new API. 2009-03-06 Richard Frith-Macdonald - * Source/NSObject.m: Remove unused code for holding reference counts - in an external map. + * Source/NSObject.m: Remove unused code for holding reference counts + in an external map. 2009-03-02 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Implement new mechanism for handling - SOAP responses with HTTP status 500. Interim measure lntil the - NSURLConnection family of class is more complete. + * Source/GSHTTPURLHandle.m: Implement new mechanism for handling + SOAP responses with HTTP status 500. Interim measure lntil the + NSURLConnection family of class is more complete. 2009-03-01 Fred Kiefer - * Source/NSBundle.m (-localizedStringForKey:value:table): Correct - output when NSShowNonLocalizedStrings is YES. + * Source/NSBundle.m (-localizedStringForKey:value:table): Correct + output when NSShowNonLocalizedStrings is YES. 2009-02-28 Richard Frith-Macdonald - * Source/NSURLProtocol.m: - Fix for retry with authentication based on patch by Philippe Roussel + * Source/NSURLProtocol.m: + Fix for retry with authentication based on patch by Philippe Roussel 2009-02-27 Richard Frith-Macdonald - * Source/NSKeyValueCoding.m: - Fix for bug #25720 as suggested by Michael Johnston + * Source/NSKeyValueCoding.m: + Fix for bug #25720 as suggested by Michael Johnston 2009-02-26 Richard Frith-Macdonald - * Source/NSCharacterSetData.h: - * Source/GSRunLoopWatcher.h: - * Source/GSRunLoopWatcher.m: - * Source/GSRunLoopCtxt.h: - Add missing copyright/license comments. + * Source/NSCharacterSetData.h: + * Source/GSRunLoopWatcher.h: + * Source/GSRunLoopWatcher.m: + * Source/GSRunLoopCtxt.h: + Add missing copyright/license comments. 2009-02-25 Richard Frith-Macdonald - * Source/NSUndoManager.m: Revert last change (to match OSX 10.5) - Also rework a little to recreate undocumented OSX behavior of - implicitly creating a top-level undo group if -beginUndoGroup - is called for a manager configured with groupByEvent. + * Source/NSUndoManager.m: Revert last change (to match OSX 10.5) + Also rework a little to recreate undocumented OSX behavior of + implicitly creating a top-level undo group if -beginUndoGroup + is called for a manager configured with groupByEvent. 2009-02-23 Richard Frith-Macdonald - * Source/NSIndexPath.m: - * Source/GSSocketStream.h: - * Source/NSTimeZone.m: - * Source/NSNetServices.m: - * Source/NSURLCredential.m: - * Source/GSSocketStream.m: - * Source/NSURLAuthenticationChallenge.m: - * Source/NSCalendarDate.m: - * Source/NSPropertyList.m: - * Source/GSConcreteValueTemplate.m: - * Source/NSAffineTransform.m: - * Source/NSConcretePointerFunctions.h: - * Source/NSPathUtilities.m: - * Source/NSScanner.m: - * Source/NSProcessInfo.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSNotificationQueue.m: - * Source/NSGeometry.m: - * Source/NSConcretePointerFunctions.m: - * Source/NSRunLoop.m: - * Source/NSAttributedString.m: - * Source/NSUndoManager.m: - * Source/NSMethodSignature.m: - * Source/NSUserDefaults.m: - * Source/NSArray.m: - * Source/GSStream.h: - * Source/GSStream.m: - * Source/NSKeyedArchiver.m: - * Source/NSDebug.m: - * Source/unix/NSStream.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSURLDownload.m: - * Source/NSPredicate.m: - * Source/NSAssertionHandler.m: - * Source/NSZone.m: - * Source/NSPort.m: - * Source/GSPrivate.h: - * Source/win32/NSStream.m: - * Source/NSInvocation.m: - * Source/NSFileManager.m: - * Source/NSURLResponse.m: - * Source/NSURLCache.m: - * Source/NSCoder.m: - * Source/NSException.m: - * Source/NSCopyObject.m: - * Source/NSURL.m: - * Source/NSString.m: - * Source/NSObject.m: - * Source/NSDecimalNumber.m: - * Source/cifframe.m: - * Source/Additions/GCArray.m: - * Source/Additions/GSXML.m: - * Source/Additions/GCDictionary.m: - * Source/Additions/GSCategories.m: - * Source/Additions/GSMime.m: - * Source/NSNumber.m: - * Source/NSDecimal.m: - * Source/GSString.m: - * Source/NSThread.m: - * Source/NSHTTPCookie.m: - * Source/NSData.m: - * Source/NSProxy.m: - * Source/NSURLProtectionSpace.m: - * Source/NSError.m: - * Source/NSDictionary.m: - * Source/NSURLRequest.m: - * Source/NSValue.m: - * Source/NSCountedSet.m: - * Source/NSIndexSet.m: - * Source/GSFileHandle.m: - * Source/NSLock.m: - * Source/NSSet.m: - * Source/NSArchiver.m: - * Source/NSXMLParser.m: - * Source/GSURLPrivate.h: - * Headers/Foundation/NSTimeZone.h: - * Headers/Foundation/NSNetServices.h: - * Headers/Foundation/NSCoder.h: - * Headers/Foundation/NSException.h: - * Headers/Foundation/NSHTTPCookieStorage.h: - * Headers/Foundation/NSURLAuthenticationChallenge.h: - * Headers/Foundation/NSCompoundPredicate.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSSpellServer.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSCalendarDate.h: - * Headers/Foundation/NSDecimalNumber.h: - * Headers/Foundation/NSURLHandle.h: - * Headers/Foundation/NSPropertyList.h: - * Headers/Foundation/NSAffineTransform.h: - * Headers/Foundation/NSPathUtilities.h: - * Headers/Foundation/NSScanner.h: - * Headers/Foundation/NSProcessInfo.h: - * Headers/Foundation/NSDistributedNotificationCenter.h: - * Headers/Foundation/NSStream.h: - * Headers/Foundation/NSComparisonPredicate.h: - * Headers/Foundation/NSGeometry.h: - * Headers/Foundation/NSNotificationQueue.h: - * Headers/Foundation/NSRunLoop.h: - * Headers/Foundation/NSDecimal.h: - * Headers/Foundation/NSAttributedString.h: - * Headers/Foundation/NSUndoManager.h: - * Headers/Foundation/NSMethodSignature.h: - * Headers/Foundation/NSUserDefaults.h: - * Headers/Foundation/NSThread.h: - * Headers/Foundation/NSData.h: - * Headers/Foundation/NSHTTPCookie.h: - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSObjCRuntime.h: - * Headers/Foundation/NSProxy.h: - * Headers/Foundation/NSURLProtectionSpace.h: - * Headers/Foundation/NSKeyedArchiver.h: - * Headers/Foundation/NSDebug.h: - * Headers/Foundation/NSError.h: - * Headers/Foundation/NSURLDownload.h: - * Headers/Foundation/NSKeyValueObserving.h: - * Headers/Foundation/NSDictionary.h: - * Headers/Foundation/NSURLRequest.h: - * Headers/Foundation/NSZone.h: - * Headers/Foundation/NSValue.h: - * Headers/Foundation/NSIndexSet.h: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSSet.h: - * Headers/Foundation/NSExpression.h: - * Headers/Foundation/NSInvocation.h: - * Headers/Foundation/NSFileManager.h: - * Headers/Foundation/NSXMLParser.h: - * Headers/Foundation/NSURLResponse.h: - * Headers/Foundation/NSIndexPath.h: - * Headers/Foundation/NSURLCache.h: - * Headers/Additions/GNUstepBase/GSXML.h: - * Headers/Additions/GNUstepBase/GSCategories.h: - * Headers/Additions/GNUstepBase/GSMime.h: - * Headers/Additions/GNUstepBase/GSFileHandle.h: - * Tools/gdnc.h: - * Tools/gdnc.m: + * Source/NSIndexPath.m: + * Source/GSSocketStream.h: + * Source/NSTimeZone.m: + * Source/NSNetServices.m: + * Source/NSURLCredential.m: + * Source/GSSocketStream.m: + * Source/NSURLAuthenticationChallenge.m: + * Source/NSCalendarDate.m: + * Source/NSPropertyList.m: + * Source/GSConcreteValueTemplate.m: + * Source/NSAffineTransform.m: + * Source/NSConcretePointerFunctions.h: + * Source/NSPathUtilities.m: + * Source/NSScanner.m: + * Source/NSProcessInfo.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSNotificationQueue.m: + * Source/NSGeometry.m: + * Source/NSConcretePointerFunctions.m: + * Source/NSRunLoop.m: + * Source/NSAttributedString.m: + * Source/NSUndoManager.m: + * Source/NSMethodSignature.m: + * Source/NSUserDefaults.m: + * Source/NSArray.m: + * Source/GSStream.h: + * Source/GSStream.m: + * Source/NSKeyedArchiver.m: + * Source/NSDebug.m: + * Source/unix/NSStream.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSURLDownload.m: + * Source/NSPredicate.m: + * Source/NSAssertionHandler.m: + * Source/NSZone.m: + * Source/NSPort.m: + * Source/GSPrivate.h: + * Source/win32/NSStream.m: + * Source/NSInvocation.m: + * Source/NSFileManager.m: + * Source/NSURLResponse.m: + * Source/NSURLCache.m: + * Source/NSCoder.m: + * Source/NSException.m: + * Source/NSCopyObject.m: + * Source/NSURL.m: + * Source/NSString.m: + * Source/NSObject.m: + * Source/NSDecimalNumber.m: + * Source/cifframe.m: + * Source/Additions/GCArray.m: + * Source/Additions/GSXML.m: + * Source/Additions/GCDictionary.m: + * Source/Additions/GSCategories.m: + * Source/Additions/GSMime.m: + * Source/NSNumber.m: + * Source/NSDecimal.m: + * Source/GSString.m: + * Source/NSThread.m: + * Source/NSHTTPCookie.m: + * Source/NSData.m: + * Source/NSProxy.m: + * Source/NSURLProtectionSpace.m: + * Source/NSError.m: + * Source/NSDictionary.m: + * Source/NSURLRequest.m: + * Source/NSValue.m: + * Source/NSCountedSet.m: + * Source/NSIndexSet.m: + * Source/GSFileHandle.m: + * Source/NSLock.m: + * Source/NSSet.m: + * Source/NSArchiver.m: + * Source/NSXMLParser.m: + * Source/GSURLPrivate.h: + * Headers/Foundation/NSTimeZone.h: + * Headers/Foundation/NSNetServices.h: + * Headers/Foundation/NSCoder.h: + * Headers/Foundation/NSException.h: + * Headers/Foundation/NSHTTPCookieStorage.h: + * Headers/Foundation/NSURLAuthenticationChallenge.h: + * Headers/Foundation/NSCompoundPredicate.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSSpellServer.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSCalendarDate.h: + * Headers/Foundation/NSDecimalNumber.h: + * Headers/Foundation/NSURLHandle.h: + * Headers/Foundation/NSPropertyList.h: + * Headers/Foundation/NSAffineTransform.h: + * Headers/Foundation/NSPathUtilities.h: + * Headers/Foundation/NSScanner.h: + * Headers/Foundation/NSProcessInfo.h: + * Headers/Foundation/NSDistributedNotificationCenter.h: + * Headers/Foundation/NSStream.h: + * Headers/Foundation/NSComparisonPredicate.h: + * Headers/Foundation/NSGeometry.h: + * Headers/Foundation/NSNotificationQueue.h: + * Headers/Foundation/NSRunLoop.h: + * Headers/Foundation/NSDecimal.h: + * Headers/Foundation/NSAttributedString.h: + * Headers/Foundation/NSUndoManager.h: + * Headers/Foundation/NSMethodSignature.h: + * Headers/Foundation/NSUserDefaults.h: + * Headers/Foundation/NSThread.h: + * Headers/Foundation/NSData.h: + * Headers/Foundation/NSHTTPCookie.h: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSObjCRuntime.h: + * Headers/Foundation/NSProxy.h: + * Headers/Foundation/NSURLProtectionSpace.h: + * Headers/Foundation/NSKeyedArchiver.h: + * Headers/Foundation/NSDebug.h: + * Headers/Foundation/NSError.h: + * Headers/Foundation/NSURLDownload.h: + * Headers/Foundation/NSKeyValueObserving.h: + * Headers/Foundation/NSDictionary.h: + * Headers/Foundation/NSURLRequest.h: + * Headers/Foundation/NSZone.h: + * Headers/Foundation/NSValue.h: + * Headers/Foundation/NSIndexSet.h: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSSet.h: + * Headers/Foundation/NSExpression.h: + * Headers/Foundation/NSInvocation.h: + * Headers/Foundation/NSFileManager.h: + * Headers/Foundation/NSXMLParser.h: + * Headers/Foundation/NSURLResponse.h: + * Headers/Foundation/NSIndexPath.h: + * Headers/Foundation/NSURLCache.h: + * Headers/Additions/GNUstepBase/GSXML.h: + * Headers/Additions/GNUstepBase/GSCategories.h: + * Headers/Additions/GNUstepBase/GSMime.h: + * Headers/Additions/GNUstepBase/GSFileHandle.h: + * Tools/gdnc.h: + * Tools/gdnc.m: Conversion of everything to use the new MacOS-X 10.5 API where return values and arguments use the NSInteger, NSUInteger, and CGFloat types. For now, as suggesed by David, the proper 10.5 behavior is turned off @@ -17952,37 +17961,37 @@ 2009-02-23 Richard Frith-Macdonald - * Source/NSPortCoder.m: - make float and double interchangable to cope with MacOS-X 10.5 - API which can use either for CGFloat. + * Source/NSPortCoder.m: + make float and double interchangable to cope with MacOS-X 10.5 + API which can use either for CGFloat. 2009-02-23 Richard Frith-Macdonald - * Headers/Foundation/NSGeometry.h: - * Source/NSGeometry.m: - Inspired by Matt Rice's comments on NSEqualRects(), moved the - equality testing functions from the header to the implementation - file and added conditionally compiled code to allow us to do a - fuzzy equality test. Still need to decide whether this is actually - the correct thing to do though. + * Headers/Foundation/NSGeometry.h: + * Source/NSGeometry.m: + Inspired by Matt Rice's comments on NSEqualRects(), moved the + equality testing functions from the header to the implementation + file and added conditionally compiled code to allow us to do a + fuzzy equality test. Still need to decide whether this is actually + the correct thing to do though. 2009-02-22 Richard Frith-Macdonald - * Source/NSUnarchiver.m: - make float and double interchangable to cope with MacOS-X 10.5 - API which can use either for CGFloat. - * Source/NSXMLParser.m: optimize sloppy parser somewhat. + * Source/NSUnarchiver.m: + make float and double interchangable to cope with MacOS-X 10.5 + API which can use either for CGFloat. + * Source/NSXMLParser.m: optimize sloppy parser somewhat. 2009-02-21 Richard Frith-Macdonald - * Source/mframe/i386/linux: - * Source/mframe/i386/sysv4.2MP: - * Source/mframe/i386/linux-gnu: - * Source/mframe/i386/sysv4.2uw2.1.3: - * Source/mframe/i386/freebsd: - * Source/mframe/i386/openbsd: - * Source/mframe/i386/generic: - Update/fix macro to build method signature information. + * Source/mframe/i386/linux: + * Source/mframe/i386/sysv4.2MP: + * Source/mframe/i386/linux-gnu: + * Source/mframe/i386/sysv4.2uw2.1.3: + * Source/mframe/i386/freebsd: + * Source/mframe/i386/openbsd: + * Source/mframe/i386/generic: + Update/fix macro to build method signature information. 2009-02-20 Richard Frith-Macdonald @@ -17997,1099 +18006,1099 @@ 2009-02-17 Richard Frith-Macdonald - * Source/NSUndoManager.m: Don't post checkpoint notification when - beginning top level group. Fix for #25607 + * Source/NSUndoManager.m: Don't post checkpoint notification when + beginning top level group. Fix for #25607 2009-02-16 Adam Fedor - * configure.ac: Look in LOCAL for headers/libs + * configure.ac: Look in LOCAL for headers/libs - * Headers/Foundation/NSObjCRuntime.h: Define NSINTEGER_DEFINED. - * Headers/Additions/GNUstepBase/GSCategories.h, - Headers/Additions/GNUstepBase/GSUnion.h: Additional definitions to compile - with apple-apple-apple. + * Headers/Foundation/NSObjCRuntime.h: Define NSINTEGER_DEFINED. + * Headers/Additions/GNUstepBase/GSCategories.h, + Headers/Additions/GNUstepBase/GSUnion.h: Additional definitions to compile + with apple-apple-apple. 2009-02-16 Richard Frith-Macdonald - * Source/pathconfig/configure.ac: Warn if gnustep-config not found. - * Source/pathconfig/configure: regenerate - * Headers/Foundation/NSPointerArray.h: Add more comments. + * Source/pathconfig/configure.ac: Warn if gnustep-config not found. + * Source/pathconfig/configure: regenerate + * Headers/Foundation/NSPointerArray.h: Add more comments. 2009-02-15 Richard Frith-Macdonald - * Source/NSPointerArray.m: Initial implementation. Untested. - No coding/decoding support. + * Source/NSPointerArray.m: Initial implementation. Untested. + No coding/decoding support. 2009-02-14 Richard Frith-Macdonald - * Source/NSPointerFunctions.m: Add some more functions to be set by - options. + * Source/NSPointerFunctions.m: Add some more functions to be set by + options. 2009-02-12 Richard Frith-Macdonald - * Source/NSPortCoder.m: Use scanned memory to hold array - * Source/NSKeyedUnarchiver.m: ditto - * Source/NSFileManager.m: ditto + * Source/NSPortCoder.m: Use scanned memory to hold array + * Source/NSKeyedUnarchiver.m: ditto + * Source/NSFileManager.m: ditto 2009-02-11 Richard Frith-Macdonald - * Source/NSUnarchiver.m: - * Source/NSString.m: - * Source/Additions/GSMime.m: - * Source/NSData.m: - * Source/GSHTTPAuthentication.m: - * Source/NSSerializer.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/win32/GSRunLoopCtxt.m: - Various changes to use unscanned collectable memory with GC. + * Source/NSUnarchiver.m: + * Source/NSString.m: + * Source/Additions/GSMime.m: + * Source/NSData.m: + * Source/GSHTTPAuthentication.m: + * Source/NSSerializer.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/win32/GSRunLoopCtxt.m: + Various changes to use unscanned collectable memory with GC. 2009-02-11 Richard Frith-Macdonald - * Source/NSNotificationCenter.m: Fix bug removing observations for - collected observers. - * Headers/Foundation/NSGarbageCollector.h: - * Source/NSGarbageCollector.m: - * Source/NSObject.m: - Update the behavior of the -zone method to match MacOS-X 10.5 and - always return the default zone when used with GC. + * Source/NSNotificationCenter.m: Fix bug removing observations for + collected observers. + * Headers/Foundation/NSGarbageCollector.h: + * Source/NSGarbageCollector.m: + * Source/NSObject.m: + Update the behavior of the -zone method to match MacOS-X 10.5 and + always return the default zone when used with GC. 2009-02-10 Richard Frith-Macdonald - * Source/NSConcretePointerFunctions.h: - * Source/NSConcretePointerFunctions.m: - * Source/NSPointerFunctions.m: - * Source/NSPointerArray.m: - * Source/GNUmakefile: - Partial implementation of concrete pointer functions class. + * Source/NSConcretePointerFunctions.h: + * Source/NSConcretePointerFunctions.m: + * Source/NSPointerFunctions.m: + * Source/NSPointerArray.m: + * Source/GNUmakefile: + Partial implementation of concrete pointer functions class. 2009-02-09 Xavier Glattard - * Headers/Foundation/NSPredicate.h: - * Source/NSPredicate.m: Declare and implement two new methods for - filtering NSSet: - * [-filterUsingPredicate:] - * [+filteredSetUsingPredicate:] + * Headers/Foundation/NSPredicate.h: + * Source/NSPredicate.m: Declare and implement two new methods for + filtering NSSet: + * [-filterUsingPredicate:] + * [+filteredSetUsingPredicate:] 2009-02-09 Richard Frith-Macdonald - * Source/win32/NSMessagePortNameServer.m: Fix GC error on windows - as reported by Ly Liyi - * configure.ac: Check for new GC_allow_register_threads() function. - * Source/NSThread.m: Attempt to fix thread registration for GC. - * Source/NSObject.m: Initialise finalize on mingw as well as unix. - * Source/NSZone.m: Remove unnecessary casts. + * Source/win32/NSMessagePortNameServer.m: Fix GC error on windows + as reported by Ly Liyi + * configure.ac: Check for new GC_allow_register_threads() function. + * Source/NSThread.m: Attempt to fix thread registration for GC. + * Source/NSObject.m: Initialise finalize on mingw as well as unix. + * Source/NSZone.m: Remove unnecessary casts. 2009-02-09 Matt Rice - * Headers/Foundation/NSZone.h (GSMakeWeakPointer): Rename class - variable to theClass for objc++. + * Headers/Foundation/NSZone.h (GSMakeWeakPointer): Rename class + variable to theClass for objc++. 2009-02-09 Richard Frith-Macdonald - * Source/NSArray.m: Implement new methods for inserting and replacing - objects at indexes in an NSIndexSet. - * Headers/Foundation/NSObject.h: Minor whitespace fix - * Source/NSNetServices.m: Mark unimplemented method. - * Headers/Foundation/NSXMLDocument.h: new class - * Headers/Foundation/NSXMLNode.h: new class - * Headers/Foundation/NSXMLNodeOptions.h: new class - * Headers/Foundation/NSXMLDTD.h: new class - * Headers/Foundation/NSXMLDTDNode.h: new class - * Headers/Foundation/NSXMLElement.h: new class - * Headers/Foundation/Foundation.h: Add new class headers - * Source/NSXMLDocument.m: skeleton of class - * Source/NSXMLDTD.m: skeleton of class - * Source/NSXMLNode.m: skeleton of class - * Source/NSXMLDTDNode.m: skeleton of class - * Source/NSXMLElement.m: skeleton of class - * Source/NSXMLPrivate.h: Private header for all NSXMLNode based stuff. - * Source/GNUmakefile: Add new NSXML classes - * Source/DocMakefile: ditto - Mostly, add the (unimplemented) XML classes introduced in the latest - version of MacOS-X. Currently the classes are unimplemented method - stubs, but the idea is to wrap libxml2 in a similar way to that in - which GSXML does it. - NB. The current ivar layout is reverse engineered from MacOS-X on the - assumption that we will try to be extremely compatible and use the - same (inferred) mechanism of having the libxml2 tree be the master - data and only using the objc ivars to cache information when we - retrieve it in the form of NSStrings etc. Maybe we will chose to - do something different later. + * Source/NSArray.m: Implement new methods for inserting and replacing + objects at indexes in an NSIndexSet. + * Headers/Foundation/NSObject.h: Minor whitespace fix + * Source/NSNetServices.m: Mark unimplemented method. + * Headers/Foundation/NSXMLDocument.h: new class + * Headers/Foundation/NSXMLNode.h: new class + * Headers/Foundation/NSXMLNodeOptions.h: new class + * Headers/Foundation/NSXMLDTD.h: new class + * Headers/Foundation/NSXMLDTDNode.h: new class + * Headers/Foundation/NSXMLElement.h: new class + * Headers/Foundation/Foundation.h: Add new class headers + * Source/NSXMLDocument.m: skeleton of class + * Source/NSXMLDTD.m: skeleton of class + * Source/NSXMLNode.m: skeleton of class + * Source/NSXMLDTDNode.m: skeleton of class + * Source/NSXMLElement.m: skeleton of class + * Source/NSXMLPrivate.h: Private header for all NSXMLNode based stuff. + * Source/GNUmakefile: Add new NSXML classes + * Source/DocMakefile: ditto + Mostly, add the (unimplemented) XML classes introduced in the latest + version of MacOS-X. Currently the classes are unimplemented method + stubs, but the idea is to wrap libxml2 in a similar way to that in + which GSXML does it. + NB. The current ivar layout is reverse engineered from MacOS-X on the + assumption that we will try to be extremely compatible and use the + same (inferred) mechanism of having the libxml2 tree be the master + data and only using the objc ivars to cache information when we + retrieve it in the form of NSStrings etc. Maybe we will chose to + do something different later. 2009-02-09 Richard Frith-Macdonald - * Source/Additions/GSObjCRuntime.m: Correct error comparing method - signatures. Fixes bug #25520 + * Source/Additions/GSObjCRuntime.m: Correct error comparing method + signatures. Fixes bug #25520 2009-02-04 Richard Frith-Macdonald - * Source/NSBundle.m: Use pointerValue rather than - nonretainedObjectValue to hold classes ... because the garbage - collector might collect the latter, and we really just need to - hold references to classes without sending messages to them. - * Headers/Additions/GNUstepBase/GSIArray.h: Alterations for noe - Apple GC API - * Source/NSIndexSet.m: Use scanned memory for arrays. + * Source/NSBundle.m: Use pointerValue rather than + nonretainedObjectValue to hold classes ... because the garbage + collector might collect the latter, and we really just need to + hold references to classes without sending messages to them. + * Headers/Additions/GNUstepBase/GSIArray.h: Alterations for noe + Apple GC API + * Source/NSIndexSet.m: Use scanned memory for arrays. 2009-02-04 15:00-EST Gregory John Casamento - * Source/NSUnarchiver.m: Correct issue with printing class name - when the unarchiver can't find the class. + * Source/NSUnarchiver.m: Correct issue with printing class name + when the unarchiver can't find the class. 2009-02-04 Richard Frith-Macdonald - * Source/NSMapTable.m: - * Source/NSHashTable.m: - * Source/NSPortCoder.m: - * Source/NSKeyedArchiver.m: - * Source/NSGarbageCollector.m: - * Source/NSZone.m: - * Source/GSDictionary.m: - * Source/GSCountedSet.m: - * Source/GSAttributedString.m: - * Source/NSNotificationCenter.m: - * Source/Additions/GSInsensitiveDictionary.m: - * Source/GSSet.m: - * Source/NSConnection.m: - * Source/NSSerializer.m: - * Source/NSArchiver.m: - * Headers/Foundation/NSZone.h: - * Headers/Additions/GNUstepBase/GSIMap.h: - Scrap GSScannedMallocZone().. not really needed. + * Source/NSMapTable.m: + * Source/NSHashTable.m: + * Source/NSPortCoder.m: + * Source/NSKeyedArchiver.m: + * Source/NSGarbageCollector.m: + * Source/NSZone.m: + * Source/GSDictionary.m: + * Source/GSCountedSet.m: + * Source/GSAttributedString.m: + * Source/NSNotificationCenter.m: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/GSSet.m: + * Source/NSConnection.m: + * Source/NSSerializer.m: + * Source/NSArchiver.m: + * Headers/Foundation/NSZone.h: + * Headers/Additions/GNUstepBase/GSIMap.h: + Scrap GSScannedMallocZone().. not really needed. 2009-02-04 Richard Frith-Macdonald - * Source/NSURLProtocol.m: Add some diagnostics and ensure that - delegates are removed from streams. - * Source/NSURLConnection.m: Add diagnostics for redirect. - * Source/GSStream.m: Set delegate to nil after failure. + * Source/NSURLProtocol.m: Add some diagnostics and ensure that + delegates are removed from streams. + * Source/NSURLConnection.m: Add diagnostics for redirect. + * Source/GSStream.m: Set delegate to nil after failure. 2009-02-04 David Chisnall - * Source/GSArray.m: Further fast enumeration bugfixes. - * Source/GSEnumerator.m: ditto. + * Source/GSArray.m: Further fast enumeration bugfixes. + * Source/GSEnumerator.m: ditto. 2009-02-03 Richard Frith-Macdonald - * Source/NSZone.m: Restore binary compatibility with earlier code. - Thanks to David Chisnall for the idea. + * Source/NSZone.m: Restore binary compatibility with earlier code. + Thanks to David Chisnall for the idea. 2009-01-30 Richard Frith-Macdonald - * Source/NSURL.m: For file URL, make relative path absolute. - * Source/GSHTTPURLHandle.m: - * Source/Additions/GSMime.m: - Change HTTP status code to be an NSNumber rather than NSString - for MacOS-X compatibility + * Source/NSURL.m: For file URL, make relative path absolute. + * Source/GSHTTPURLHandle.m: + * Source/Additions/GSMime.m: + Change HTTP status code to be an NSNumber rather than NSString + for MacOS-X compatibility 2009-01-30 Richard Frith-Macdonald - * Documentation/readme.texi: - * README: Remove reference to Testing - * Examples/nsconnection_server.m: - * Examples/diningPhilosophers.m: - * Examples/nsconnection_client.m: - * Examples/nsconnection.m: Transferred from Testing - * Testing: removed - Removed Testing subdirectory. Now that locking tests are in the - testsuite all the code here is probably obsolete. If we find any - cases where that's not the case, we should recover anything we - need from svn and add it to the testsuite. + * Documentation/readme.texi: + * README: Remove reference to Testing + * Examples/nsconnection_server.m: + * Examples/diningPhilosophers.m: + * Examples/nsconnection_client.m: + * Examples/nsconnection.m: Transferred from Testing + * Testing: removed + Removed Testing subdirectory. Now that locking tests are in the + testsuite all the code here is probably obsolete. If we find any + cases where that's not the case, we should recover anything we + need from svn and add it to the testsuite. 2009-01-30 Richard Frith-Macdonald - * Source/NSLock.m: Fixed last change to match MacOS-X behavior. + * Source/NSLock.m: Fixed last change to match MacOS-X behavior. 2009-01-29 17:49-EST Gregory John Casamento - * Source/NSLock.m: Change to correct documented/tested and observed - inconsistency between Cocoa (and OpenStep) and GNUstep. - Reinstatement of correction for bug #25307. Testing on both OpenStep - and on Cocoa clearly illustrates that throwing an exception in this - case was incorrect. It now emits a warning when the lock is attempted - again, but does not throw an exception. - * Testing/locktest/locktest.m: Change to test to correctly test - [NSConditionLock lock] + * Source/NSLock.m: Change to correct documented/tested and observed + inconsistency between Cocoa (and OpenStep) and GNUstep. + Reinstatement of correction for bug #25307. Testing on both OpenStep + and on Cocoa clearly illustrates that throwing an exception in this + case was incorrect. It now emits a warning when the lock is attempted + again, but does not throw an exception. + * Testing/locktest/locktest.m: Change to test to correctly test + [NSConditionLock lock] 2009-01-28 21:48-EST Gregory John Casamento - * Testing/locktest/GNUmakefile - * Testing/locktest/GNUmakefile.preamble - * Testing/locktest/locktest.1 - * Testing/locktest/LockTestInfo.plist - * Testing/locktest/locktest.m - * Testing/locktest/locktest_Prefix.pch - * Testing/locktest/locktest.xcodeproj/project.pbxproj - * Testing/locktest/PC.project: Test which confirms the behavior - observed on Mac OS X/Cocoa. + * Testing/locktest/GNUmakefile + * Testing/locktest/GNUmakefile.preamble + * Testing/locktest/locktest.1 + * Testing/locktest/LockTestInfo.plist + * Testing/locktest/locktest.m + * Testing/locktest/locktest_Prefix.pch + * Testing/locktest/locktest.xcodeproj/project.pbxproj + * Testing/locktest/PC.project: Test which confirms the behavior + observed on Mac OS X/Cocoa. 2009-01-28 Richard Frith-Macdonald - * Source/NSEnumerator.m: Fix bug in fast enumeration code. - * Source/GSArray.m: Fix bug in array insertion introduced by last - patch. + * Source/NSEnumerator.m: Fix bug in fast enumeration code. + * Source/GSArray.m: Fix bug in array insertion introduced by last + patch. 2009-01-28 David Chisnall - * Headers/Foundation/NSEnumerator.h: - * Source/NSEnumerator.m: - * Source/GSArray.m: - * Source/GSprivate.h: - Add Apple's fast enumeration protocol. + * Headers/Foundation/NSEnumerator.h: + * Source/NSEnumerator.m: + * Source/GSArray.m: + * Source/GSprivate.h: + Add Apple's fast enumeration protocol. 2009-01-28 Richard Frith-Macdonald - * Source/NSException.m: Fix problem preventing stack traccces from - being generated. + * Source/NSException.m: Fix problem preventing stack traccces from + being generated. 2009-01-27 Richard Frith-Macdonald - * Source/NSValue.m: ([valueWithNonretainedObject:]) zero the reference - when the object is collected. + * Source/NSValue.m: ([valueWithNonretainedObject:]) zero the reference + when the object is collected. 2009-01-25 Richard Frith-Macdonald - * Source/NSURL.m: Compatibility tweaks for a few MacOS-X oddities... - Initialise file URLs with a host of 'localhost' even though they - should really have none. - Return paths without a trailing slash, even when they were set - with one. + * Source/NSURL.m: Compatibility tweaks for a few MacOS-X oddities... + Initialise file URLs with a host of 'localhost' even though they + should really have none. + Return paths without a trailing slash, even when they were set + with one. 2009-01-25 Richard Frith-Macdonald - * Source/NSString.m: Fix for bug #25400 - * Tools/gdnc.m: Fix failure to log exception (bug #25396) - * Tools/gdomap.c: Use snprintf for paranoid double check - of data in log buffer. + * Source/NSString.m: Fix for bug #25400 + * Tools/gdnc.m: Fix failure to log exception (bug #25396) + * Tools/gdomap.c: Use snprintf for paranoid double check + of data in log buffer. 2009-01-23 Riccardo Mottola - * Source/NSPointerFunctions.m, - * Headers/Foundation/NSPointerFunctions.h: Fix return pointer type + * Source/NSPointerFunctions.m, + * Headers/Foundation/NSPointerFunctions.h: Fix return pointer type 2009-01-23 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GNUstep.h: - Optimise retain/release management macros for the case where they - are dealing with none-nil values. - * Headers/Additions/GNUstepBase/GSIMap.h: - Some changes moving towards use of typed memory for gc. - * Headers/Foundation/NSPointerArray.h: New class header. - * Source/NSPointerArray.m: Skeletal (non-working) implementation + * Headers/Additions/GNUstepBase/GNUstep.h: + Optimise retain/release management macros for the case where they + are dealing with none-nil values. + * Headers/Additions/GNUstepBase/GSIMap.h: + Some changes moving towards use of typed memory for gc. + * Headers/Foundation/NSPointerArray.h: New class header. + * Source/NSPointerArray.m: Skeletal (non-working) implementation 2009-01-22 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: - Improve debug logging by including the address of the actual - handle concerned so that you can see which handle is doing what - when there are multiple handles in use. - * Source/NSGarbageCollector.m: Implement last methods. - * Headers/Foundation/NSGarbageCollector.h: Improve documentation. - * Source/NSAutoreleasePool.m: ([-drain[) Implemented. - * Headers/Foundation/NSAutoreleasePool.m: ([-drain]) fix comment. - * Source/NSPointerFunctions.m: New class implementation - * Headers/Foundation/NSPointerFunctions.h: Fix some declarations - * Headers/Foundation/Foundation.h: Include NSPointerFunctions.h - * Source/GNUmakefile: Build and install NSPointerFunctions + * Source/GSHTTPURLHandle.m: + Improve debug logging by including the address of the actual + handle concerned so that you can see which handle is doing what + when there are multiple handles in use. + * Source/NSGarbageCollector.m: Implement last methods. + * Headers/Foundation/NSGarbageCollector.h: Improve documentation. + * Source/NSAutoreleasePool.m: ([-drain[) Implemented. + * Headers/Foundation/NSAutoreleasePool.m: ([-drain]) fix comment. + * Source/NSPointerFunctions.m: New class implementation + * Headers/Foundation/NSPointerFunctions.h: Fix some declarations + * Headers/Foundation/Foundation.h: Include NSPointerFunctions.h + * Source/GNUmakefile: Build and install NSPointerFunctions 2009-01-21 Richard Frith-Macdonald - * Source/NSUserDefaults.m: ([setObject:forKey:]) copy the object - rather than just retaining it. Fixes bug #23570 + * Source/NSUserDefaults.m: ([setObject:forKey:]) copy the object + rather than just retaining it. Fixes bug #23570 2009-01-20 Richard Frith-Macdonald - * Documentation/manual/ExceptionHandling.texi: Fix error in - example of use of NS_VALUERETURN spotted by David Chisnall. + * Documentation/manual/ExceptionHandling.texi: Fix error in + example of use of NS_VALUERETURN spotted by David Chisnall. 2009-01-20 Richard Frith-Macdonald - * Source/NSKeyValueObserving.m: Automtically remove collected observers - In a garbage collecting environment. - * Headers/Foundation/NSZone.h: - * Source/NSZone.m: - Add new functions for handling weak pointers. This allows all code - which uses the boehm garbage collector header to be localised in - NSZone.m and NSGarbageCollector.m - * Source/NSNotificationCenter.m: - Update to use new functions. - * Source/Additions/GSInsensitiveDictionary.m: - Fix to use scanned memory in a garbage collecting environment. + * Source/NSKeyValueObserving.m: Automtically remove collected observers + In a garbage collecting environment. + * Headers/Foundation/NSZone.h: + * Source/NSZone.m: + Add new functions for handling weak pointers. This allows all code + which uses the boehm garbage collector header to be localised in + NSZone.m and NSGarbageCollector.m + * Source/NSNotificationCenter.m: + Update to use new functions. + * Source/Additions/GSInsensitiveDictionary.m: + Fix to use scanned memory in a garbage collecting environment. 2009-01-19 Richard Frith-Macdonald - * configure.ac: Add options from pathconfig - * configure: regenerate + * configure.ac: Add options from pathconfig + * configure: regenerate 2009-01-19 Richard Frith-Macdonald - * Headers/Foundation/NSZone.h: - * Source/NSZone.m: - Add NSAllocateCollectable() and NSReallocateCollectable() functions. - Move inline stuff from header to source fle so that GC differences - are hidden. Change behavior under GC so that the default malloc - zone is non-collectable (as under MacOS-X). - * Headers/Additions/GNUstepBase/GSIMap.h: - Use scanned collectable memory for map. - * Source/Additions/GSObjCRuntime.m: - Use NSAllocateCollectable() for fast buffer. - * Source/GSArray.m: - * Source/GSCountedSet.m: - * Source/GSDictionary.m: - * Source/GSSet.m: - * Source/NSArchiver.m: - * Source/NSConnection.m: - * Source/NSHashTable.m: - * Source/NSKeyedArchiver.m: - * Source/NSMapTable.m: - * Source/NSNotificationCenter.m: - * Source/NSObject.m: - * Source/NSPortCoder.m: - * Source/NSSerializer.m: - * Source/NSPropertyList.m: - Use scanned collectable memory in places where we allocate memory to - hold pointers. This change is needed because of the switch to have - the default zone use unscanned uncollectable memory as in MacOS-X. - These changes probably just scratch the surface ... we need to review - all memory allocation as, anywhere we allocate memory now will need - to be done differently under GC. This does mean that all existing - code needs more work to port to GC than it otherwise would. On the - other hand, a switch to GC is really quite a major design change. + * Headers/Foundation/NSZone.h: + * Source/NSZone.m: + Add NSAllocateCollectable() and NSReallocateCollectable() functions. + Move inline stuff from header to source fle so that GC differences + are hidden. Change behavior under GC so that the default malloc + zone is non-collectable (as under MacOS-X). + * Headers/Additions/GNUstepBase/GSIMap.h: + Use scanned collectable memory for map. + * Source/Additions/GSObjCRuntime.m: + Use NSAllocateCollectable() for fast buffer. + * Source/GSArray.m: + * Source/GSCountedSet.m: + * Source/GSDictionary.m: + * Source/GSSet.m: + * Source/NSArchiver.m: + * Source/NSConnection.m: + * Source/NSHashTable.m: + * Source/NSKeyedArchiver.m: + * Source/NSMapTable.m: + * Source/NSNotificationCenter.m: + * Source/NSObject.m: + * Source/NSPortCoder.m: + * Source/NSSerializer.m: + * Source/NSPropertyList.m: + Use scanned collectable memory in places where we allocate memory to + hold pointers. This change is needed because of the switch to have + the default zone use unscanned uncollectable memory as in MacOS-X. + These changes probably just scratch the surface ... we need to review + all memory allocation as, anywhere we allocate memory now will need + to be done differently under GC. This does mean that all existing + code needs more work to port to GC than it otherwise would. On the + other hand, a switch to GC is really quite a major design change. 2009-01-17 Wolfgang Lux - * Source/unix/GSRunLoopCtxt.m (+awakenedBefore): Fix typo. + * Source/unix/GSRunLoopCtxt.m (+awakenedBefore): Fix typo. 2009-01-17 Richard Frith-Macdonald - * Source/NSLock.m: Revert last change. - The Cocoa documentation actually says nothing about exceptions either - way. I recall there was some discussion about lock behavior a few - years ago, which concluded that the GNUstep behavior was the best - available ... it returns NO if the lock is unavailable, but raises an - exception if you try to lock the lock twice from the same thread, - since locking twice from the same thread is almost guaranteed to be - a programming error. - If we want to remove this check, we need to do it consistently for - all locks and document the new behavior. + * Source/NSLock.m: Revert last change. + The Cocoa documentation actually says nothing about exceptions either + way. I recall there was some discussion about lock behavior a few + years ago, which concluded that the GNUstep behavior was the best + available ... it returns NO if the lock is unavailable, but raises an + exception if you try to lock the lock twice from the same thread, + since locking twice from the same thread is almost guaranteed to be + a programming error. + If we want to remove this check, we need to do it consistently for + all locks and document the new behavior. 2009-01-16 17:26-EST Gregory John Casamento - * Source/NSLock.m: Correction for bug #25307. According to Cocoa - documentation, NSConditionLock should return NO, if the lock is - unavailable. No exception should be thrown. + * Source/NSLock.m: Correction for bug #25307. According to Cocoa + documentation, NSConditionLock should return NO, if the lock is + unavailable. No exception should be thrown. 2009-01-16 Richard Frith-Macdonald - * Source/NSRunLoop.m: Revert temporary hack to work around bug in - NSAnimation, hopefully fixed in NSAnimation now. + * Source/NSRunLoop.m: Revert temporary hack to work around bug in + NSAnimation, hopefully fixed in NSAnimation now. 2009-01-15 Richard Frith-Macdonald - * Source/NSRunLoop.m: Cleaned up a little and added hack as a temporary - fix for #25327, though I'm suspecting that the actual problme is in the - NSAnimation code. + * Source/NSRunLoop.m: Cleaned up a little and added hack as a temporary + fix for #25327, though I'm suspecting that the actual problme is in the + NSAnimation code. 2009-01-15 Richard Frith-Macdonald - * Source/NSRunLoop.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/GSRunLoopCtxt.h: - * Source/win32/GSRunLoopCtxt.m: - Introduce new method to quickly check for notification of methods - to perform in the current loop. + * Source/NSRunLoop.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/GSRunLoopCtxt.h: + * Source/win32/GSRunLoopCtxt.m: + Introduce new method to quickly check for notification of methods + to perform in the current loop. 2009-01-14 Richard Frith-Macdonald - * Source/NSGarbageCollector.m: Avoid compiler warning - * Source/pathconfig/pathconfig.mak.in: Fix syntax error in warning - * Headers/Additions/GNUstepBase/GSCategories.h: remove obsolete methods - * GNUmakefile: Fix order of includes - * Source/GSArray.m: Remove unused line from last change - * Source/NSNotificationCenter.m: Remove unused line + * Source/NSGarbageCollector.m: Avoid compiler warning + * Source/pathconfig/pathconfig.mak.in: Fix syntax error in warning + * Headers/Additions/GNUstepBase/GSCategories.h: remove obsolete methods + * GNUmakefile: Fix order of includes + * Source/GSArray.m: Remove unused line from last change + * Source/NSNotificationCenter.m: Remove unused line 2009-01-13 18:35-EST Gregory John Casamento - * Source/GSArray.m - * Source/NSNotificationCenter.m: Quick fixes for two compiler - errors introduced by previous change. + * Source/GSArray.m + * Source/NSNotificationCenter.m: Quick fixes for two compiler + errors introduced by previous change. 2009-01-13 Richard Frith-Macdonald - * Source/NSGarbageCollector.m: Mark the two unimplemented methods. - * Source/NSNotificationCenter.m: Automatically remove observers if - they are collected by the GC system. - * Source/NSThread.m: Make the GC system aware of each thread if poss. - * Source/GSArray.m: Don't use inline array class with GC. - * configure.ac: Add check for GC_register_my_thread + * Source/NSGarbageCollector.m: Mark the two unimplemented methods. + * Source/NSNotificationCenter.m: Automatically remove observers if + they are collected by the GC system. + * Source/NSThread.m: Make the GC system aware of each thread if poss. + * Source/GSArray.m: Don't use inline array class with GC. + * configure.ac: Add check for GC_register_my_thread 2009-01-12 Richard Frith-Macdonald - * Source/GNUmakefile: - * Headers/Foundation/NSGarbageCollector.h: - * Source/NSGarbageCollector.m: - * Headers/Foundation/Foundation.h: - Add new MacOS-X class. + * Source/GNUmakefile: + * Headers/Foundation/NSGarbageCollector.h: + * Source/NSGarbageCollector.m: + * Headers/Foundation/Foundation.h: + Add new MacOS-X class. 2009-01-12 Richard Frith-Macdonald - * Source/NSSocketPort.m: - * Source/NSRunLoop.m: - * Source/NSMessagePort.m: - * Source/NSNotificationCenter.m: - * Source/GSAttributedString.m: - * Source/NSObject.m: - * Source/Additions/GSLock.m: - * Source/NSConnection.m: - * Source/GSFileHandle.m: - * Source/NSLock.m: - * Source/NSDistantObject.m: - * Source/NSTask.m: - * SSL/GSSSLHandle.m: - * Documentation/Base.ispell: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSNotification.h: - * Headers/Foundation/NSRunLoop.h: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSTask.h: - * Headers/Additions/GNUstepBase/GSFileHandle.h: - Change GC finalization API to match MacOS-X ... abandon libFoundation - compatibility in GC behavior. + * Source/NSSocketPort.m: + * Source/NSRunLoop.m: + * Source/NSMessagePort.m: + * Source/NSNotificationCenter.m: + * Source/GSAttributedString.m: + * Source/NSObject.m: + * Source/Additions/GSLock.m: + * Source/NSConnection.m: + * Source/GSFileHandle.m: + * Source/NSLock.m: + * Source/NSDistantObject.m: + * Source/NSTask.m: + * SSL/GSSSLHandle.m: + * Documentation/Base.ispell: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSNotification.h: + * Headers/Foundation/NSRunLoop.h: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSTask.h: + * Headers/Additions/GNUstepBase/GSFileHandle.h: + Change GC finalization API to match MacOS-X ... abandon libFoundation + compatibility in GC behavior. 2009-01-12 Richard Frith-Macdonald - * Source/NSIndexPath.m: - * Source/NSSocketPortNameServer.m: - * Source/NSTimeZone.m: - * Source/GSInvocation.h: - * Source/GSSocketStream.m: - * Source/NSValueTransformer.m: - * Source/NSPortCoder.m: - * Source/NSSpellServer.m: - * Source/NSBundle.m: - * Source/NSURLHandle.m: - * Source/NSPropertyList.m: - * Source/NSPathUtilities.m: - * Source/NSProcessInfo.m: - * Source/NSDistributedNotificationCenter.m: - * Source/GNUmakefile: - * Source/NSSocketPort.m: - * Source/NSRunLoop.m: - * Source/NSUserDefaults.m: - * Source/NSArray.m: - * Source/NSMessagePortNameServer.m: - * Source/NSDebug.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSKeyValueObserving.m: - * Source/GSHTTPURLHandle.m: - * Source/GSFFIInvocation.m: - * Source/NSMessagePort.m: - * Source/NSInvocation.m: - * Source/NSFileManager.m: - * Source/NSURLResponse.m: - * Source/NSURLProtocol.m: - * Source/NSException.m: - * Source/NSURL.m: - * Source/NSString.m: - * Source/NSObject.m: - * Source/NSDecimalNumber.m: - * Source/Additions/GSXML.m: - * Source/Additions/GNUmakefile: - * Source/Additions/GSCategories.m: - * Source/Additions/GCDictionary.m: - * Source/Additions/GSMime.m: - * Source/GSString.m: - * Source/NSConnection.m: - * Source/NSThread.m: - * Source/NSHost.m: - * Source/NSProtocolChecker.m: - * Source/GSHTTPAuthentication.m: - * Source/NSSerializer.m: - * Source/NSClassDescription.m: - * Source/GSFileHandle.m: - * Source/NSSet.m: - * Source/NSDistantObject.m: - * Source/NSTask.m: - * Source/NSNumberFormatter.m: - * Source/GSFTPURLHandle.m: - * SSL/GSSSLHandle.m: - * configure.ac: - * configure: - * base.make.in: - * Tools/sfparse.m: - * Tools/plget.m: - * Tools/AGSParser.m: - * Tools/autogsdoc.m: - * Tools/AGSOutput.m: - * Tools/HTMLLinker.m: - Tweaks to get things to compile with garbage collection again - and (mostly) compile without warnings. + * Source/NSIndexPath.m: + * Source/NSSocketPortNameServer.m: + * Source/NSTimeZone.m: + * Source/GSInvocation.h: + * Source/GSSocketStream.m: + * Source/NSValueTransformer.m: + * Source/NSPortCoder.m: + * Source/NSSpellServer.m: + * Source/NSBundle.m: + * Source/NSURLHandle.m: + * Source/NSPropertyList.m: + * Source/NSPathUtilities.m: + * Source/NSProcessInfo.m: + * Source/NSDistributedNotificationCenter.m: + * Source/GNUmakefile: + * Source/NSSocketPort.m: + * Source/NSRunLoop.m: + * Source/NSUserDefaults.m: + * Source/NSArray.m: + * Source/NSMessagePortNameServer.m: + * Source/NSDebug.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSKeyValueObserving.m: + * Source/GSHTTPURLHandle.m: + * Source/GSFFIInvocation.m: + * Source/NSMessagePort.m: + * Source/NSInvocation.m: + * Source/NSFileManager.m: + * Source/NSURLResponse.m: + * Source/NSURLProtocol.m: + * Source/NSException.m: + * Source/NSURL.m: + * Source/NSString.m: + * Source/NSObject.m: + * Source/NSDecimalNumber.m: + * Source/Additions/GSXML.m: + * Source/Additions/GNUmakefile: + * Source/Additions/GSCategories.m: + * Source/Additions/GCDictionary.m: + * Source/Additions/GSMime.m: + * Source/GSString.m: + * Source/NSConnection.m: + * Source/NSThread.m: + * Source/NSHost.m: + * Source/NSProtocolChecker.m: + * Source/GSHTTPAuthentication.m: + * Source/NSSerializer.m: + * Source/NSClassDescription.m: + * Source/GSFileHandle.m: + * Source/NSSet.m: + * Source/NSDistantObject.m: + * Source/NSTask.m: + * Source/NSNumberFormatter.m: + * Source/GSFTPURLHandle.m: + * SSL/GSSSLHandle.m: + * configure.ac: + * configure: + * base.make.in: + * Tools/sfparse.m: + * Tools/plget.m: + * Tools/AGSParser.m: + * Tools/autogsdoc.m: + * Tools/AGSOutput.m: + * Tools/HTMLLinker.m: + Tweaks to get things to compile with garbage collection again + and (mostly) compile without warnings. 2009-01-09 Richard Frith-Macdonald - * Source/NSTimer.m: ([invalidate]) release target and user info. + * Source/NSTimer.m: ([invalidate]) release target and user info. 2009-01-07 Richard Frith-Macdonald - * Source/NSBundle.m: Revert last change. Remove undocumented code - which looked for operating system specific files. Also changed - behavior when given a nil/empty extension to match MacOS-X. - Also optimised and simplified code and changed a private method - which was missing the leading underscore. + * Source/NSBundle.m: Revert last change. Remove undocumented code + which looked for operating system specific files. Also changed + behavior when given a nil/empty extension to match MacOS-X. + Also optimised and simplified code and changed a private method + which was missing the leading underscore. 2009-01-07 16:33-EST Gregory John Casamento - * Source/NSBundle.m: Correct issue where *-gnustep.* is not - searched for when explicitly calling pathForResource:... + * Source/NSBundle.m: Correct issue where *-gnustep.* is not + searched for when explicitly calling pathForResource:... 2009-01-06 Richard Frith-Macdonald - * configure: - * config.mak.in: - * Source/NSPathUtilities.m: - * Source/GNUmakefile: - * Source/pathconfig: - * Source/pathconfig/configure: - * Source/pathconfig/configure.ac: - * Source/pathconfig/pathconfig.h.in: - * Source/pathconfig/pathconfig.mak.in: - * SSL/GNUmakefile: - * configure.ac: - * Documentation/GNUmakefile: - * NSTimeZones/GNUmakefile: - * GNUmakefile: - * Tools/GNUmakefile: - * Testing/GNUmakefile: - Move path configuration stuff into separate subdirectry/file so that - we can hack it more easily and so that only the code that needs it - will include it. + * configure: + * config.mak.in: + * Source/NSPathUtilities.m: + * Source/GNUmakefile: + * Source/pathconfig: + * Source/pathconfig/configure: + * Source/pathconfig/configure.ac: + * Source/pathconfig/pathconfig.h.in: + * Source/pathconfig/pathconfig.mak.in: + * SSL/GNUmakefile: + * configure.ac: + * Documentation/GNUmakefile: + * NSTimeZones/GNUmakefile: + * GNUmakefile: + * Tools/GNUmakefile: + * Testing/GNUmakefile: + Move path configuration stuff into separate subdirectry/file so that + we can hack it more easily and so that only the code that needs it + will include it. 2009-01-06 Nicola Pero - * config.mak.in: Check here if GNUSTEP_BASE_DOMAIN and - GNUSTEP_INSTALLATION_DOMAIN do not match when using relative - paths. If they do not match, print a long explanation of how to - fix the problem, and abort. If relative paths are not used, - automatically set GNUSTEP_INSTALLATION_DOMAIN to the domain that - was chosen at configure time - unless overridden on the command - line. - * Makefile.postamble: Removed before-all rule that was doing the - check now in config.mak.in. - - * SSL/Makefile.postamble (config.mak): Touch config.mak after - running config.status to prevent spurious invocations of - config.status. - (config.h): Always touch config.h after running config.status for - the same reason. + * config.mak.in: Check here if GNUSTEP_BASE_DOMAIN and + GNUSTEP_INSTALLATION_DOMAIN do not match when using relative + paths. If they do not match, print a long explanation of how to + fix the problem, and abort. If relative paths are not used, + automatically set GNUSTEP_INSTALLATION_DOMAIN to the domain that + was chosen at configure time - unless overridden on the command + line. + * Makefile.postamble: Removed before-all rule that was doing the + check now in config.mak.in. + + * SSL/Makefile.postamble (config.mak): Touch config.mak after + running config.status to prevent spurious invocations of + config.status. + (config.h): Always touch config.h after running config.status for + the same reason. 2009-01-06 Nicola Pero - * configure.ac: Detect relative paths in the paths that we - hardcode into gnustep-base, and set the - GNUSTEP_BASE_RELATIVE_PATHS variable if any is found. - * configure: Regenerated. - * config.mak.in: Added GNUSTEP_BASE_RELATIVE_PATHS. - * Makefile.postamble: Only do the automatic reconfiguration at - install time if GNUSTEP_BASE_RELATIVE_PATHS is set. Make the - message printed when we reconfigure more prominent. + * configure.ac: Detect relative paths in the paths that we + hardcode into gnustep-base, and set the + GNUSTEP_BASE_RELATIVE_PATHS variable if any is found. + * configure: Regenerated. + * config.mak.in: Added GNUSTEP_BASE_RELATIVE_PATHS. + * Makefile.postamble: Only do the automatic reconfiguration at + install time if GNUSTEP_BASE_RELATIVE_PATHS is set. Make the + message printed when we reconfigure more prominent. 2009-01-05 17:58-EST Gregory John Casamento - * Source/NSBundle.m: Use CFBundleExecutable if NSExecutable isn't - present when loading the bundle object code. + * Source/NSBundle.m: Use CFBundleExecutable if NSExecutable isn't + present when loading the bundle object code. 2009-01-05 Fred Kiefer - * Source/NSKeyValueObserving.m (-overrideSetterFor:): Only output - a NSDebugLLog() not an NSLog() when the class has no setter for - the key. + * Source/NSKeyValueObserving.m (-overrideSetterFor:): Only output + a NSDebugLLog() not an NSLog() when the class has no setter for + the key. 2009-01-05 Fred Kiefer - * Source/NSString.m (-paragraphRangeForRange:, - -getParagraphStart:...): Basic implementation of these methods. + * Source/NSString.m (-paragraphRangeForRange:, + -getParagraphStart:...): Basic implementation of these methods. 2009-01-05 Richard Frith-Macdonald - * Source/NSRunLoop.m: check for performers in thread even if there are - no input sources available. - * Source/unix/GSRunLoopCtxt.m: Add diagnostics - * Source/win32/GSRunLoopCtxt.m: Add diagnostics - * Testing/thread.m: Change to allow perform in maion thrad to take - place and program to terminate. + * Source/NSRunLoop.m: check for performers in thread even if there are + no input sources available. + * Source/unix/GSRunLoopCtxt.m: Add diagnostics + * Source/win32/GSRunLoopCtxt.m: Add diagnostics + * Testing/thread.m: Change to allow perform in maion thrad to take + place and program to terminate. 2009-01-04 Richard Frith-Macdonald - * Source/mframe/sparc64/generic: guess at a config - * Source/mframe/sparc64/openbsd: guess at a config - * Source/mframe/configure.ac: add sparc64 - * Source/mframe/configure: regenerate - Guess at config for sparc64 openbsd + * Source/mframe/sparc64/generic: guess at a config + * Source/mframe/sparc64/openbsd: guess at a config + * Source/mframe/configure.ac: add sparc64 + * Source/mframe/configure: regenerate + Guess at config for sparc64 openbsd 2009-01-02 Richard Frith-Macdonald - * Source/NSBundle.m: ([+bundleForLibrary:]) return nil if the - supplied library name is empty. + * Source/NSBundle.m: ([+bundleForLibrary:]) return nil if the + supplied library name is empty. 2008-12-31 Fred Kiefer - * Source/NSDecimalNumber.m (-initWithBytes:objCType:): Avoid - memory leak and memory corruption by retaining notANumber before - returning it. + * Source/NSDecimalNumber.m (-initWithBytes:objCType:): Avoid + memory leak and memory corruption by retaining notANumber before + returning it. 2008-12-29 Richard Frith-Macdonald - * Makefile.postamble (before-all): Remove test for mingw on situation - which can occur on all systems, not just mingw. + * Makefile.postamble (before-all): Remove test for mingw on situation + which can occur on all systems, not just mingw. 2008-12-25 11:10-EST Gregory John Casamento - * Source/GNUmakefile: Add new NSObjectNSComparisonMethods.m - category to the makefile. - * Source/NSObject+NSComparisonMethods.m: Added to implement - Mac OS X specific methods for comparison of objects. On Cocoa these - are in NSScriptWhoseTests.h, but since GNUstep doesn't support - Apple Script I've put them in a separate category for now. Some - applications use these to do comparisons (even though they are for - scripting). The location of these may change in the future depending - on if we implement scripting. + * Source/GNUmakefile: Add new NSObjectNSComparisonMethods.m + category to the makefile. + * Source/NSObject+NSComparisonMethods.m: Added to implement + Mac OS X specific methods for comparison of objects. On Cocoa these + are in NSScriptWhoseTests.h, but since GNUstep doesn't support + Apple Script I've put them in a separate category for now. Some + applications use these to do comparisons (even though they are for + scripting). The location of these may change in the future depending + on if we implement scripting. 2008-12-24 Nicola Pero - * configure.ac: Improved help for --with-installation-domain=xxx. - If no --with-installation-domain=xxx option is used, and - gnustep-config supports the new option - --installation-domain-for=gnustep-base, use it to determine the - installation domain as accurately as possible (including - supporting the environment variable GNUSTEP_INSTALLATION_DOMAIN - and the installation-domains.conf file). Otherwise fall back to - LOCAL. If an invalid installation domain is provided on the - command-line, abort with an error. - * configure: Regenerated. - * GNUmakefile: Set PACKAGE_NAME before importing common.make. Do - not try to set GNUSTEP_BASE_DOMAIN or GNUSTEP_INSTALLATION_DOMAIN. - * Makefile.postamble (before-all): Only check that - GNUSTEP_BASE_DOMAIN matches GNUSTEP_INSTALLATION_DOMAIN on MinGW. - Quote GNUSTEP_BASE_DOMAIN and GNUSTEP_INSTALLATION_DOMAIN to catch - the case when one of them is empty. Added ECHO_NOTHING to the - rule to suppress ugly code output. Print an error message when - reconfiguring automatically. + * configure.ac: Improved help for --with-installation-domain=xxx. + If no --with-installation-domain=xxx option is used, and + gnustep-config supports the new option + --installation-domain-for=gnustep-base, use it to determine the + installation domain as accurately as possible (including + supporting the environment variable GNUSTEP_INSTALLATION_DOMAIN + and the installation-domains.conf file). Otherwise fall back to + LOCAL. If an invalid installation domain is provided on the + command-line, abort with an error. + * configure: Regenerated. + * GNUmakefile: Set PACKAGE_NAME before importing common.make. Do + not try to set GNUSTEP_BASE_DOMAIN or GNUSTEP_INSTALLATION_DOMAIN. + * Makefile.postamble (before-all): Only check that + GNUSTEP_BASE_DOMAIN matches GNUSTEP_INSTALLATION_DOMAIN on MinGW. + Quote GNUSTEP_BASE_DOMAIN and GNUSTEP_INSTALLATION_DOMAIN to catch + the case when one of them is empty. Added ECHO_NOTHING to the + rule to suppress ugly code output. Print an error message when + reconfiguring automatically. 2008-12-22 Richard Frith-Macdonald - * Version 1.19.0 - * Documentation/news.texi: - * Documentation/ReleaseNotes.gsdoc: - Update for new release. - * configure.ac: Fix error checking for objc_set_unexpected - * configure: regenerate + * Version 1.19.0 + * Documentation/news.texi: + * Documentation/ReleaseNotes.gsdoc: + Update for new release. + * configure.ac: Fix error checking for objc_set_unexpected + * configure: regenerate 2008-12-22 Richard Frith-Macdonald - * config.mak.in: - * configure: - * Makefile.postamble: - * configure.ac: - * GNUmakefile: - Update from stable branch. + * config.mak.in: + * configure: + * Makefile.postamble: + * configure.ac: + * GNUmakefile: + Update from stable branch. 2008-12-21 Adam Fedor - * Update documentation for version 1.18.0 + * Update documentation for version 1.18.0 2008-12-19 Nicola Pero - * All GNUmakefiles: removed GNUSTEP_CORE_SOFTWARE=YES and - added PACKAGE_NAME=gnustep-base. - * GNUmakefile: Export PACKAGE_NAME to reduce chances of a problem - if a GNUmakefile in a subdirectory is missing it. - * Tools/make_strings/GNUmakefile: Do not set PACKAGE_NAME to - make_strings. - * Testing/synctest/GNUmakefile: Do not set PACKAGE_NAME to Synctest. + * All GNUmakefiles: removed GNUSTEP_CORE_SOFTWARE=YES and + added PACKAGE_NAME=gnustep-base. + * GNUmakefile: Export PACKAGE_NAME to reduce chances of a problem + if a GNUmakefile in a subdirectory is missing it. + * Tools/make_strings/GNUmakefile: Do not set PACKAGE_NAME to + make_strings. + * Testing/synctest/GNUmakefile: Do not set PACKAGE_NAME to Synctest. 2008-12-19 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Merge in bugfixes from stable branch. + * Source/NSPathUtilities.m: Merge in bugfixes from stable branch. 2008-12-18 Nicola Pero - * All GNUmakefiles: added GNUSTEP_CORE_SOFTWARE=YES at the - beginning. - * GNUmakefile: Export GNUSTEP_CORE_SOFTWARE to reduce chances of a - problem if a GNUmakefile in a subdirectory is missing it. - * Documentation/General/GNUmakefile: Removed setting - GNUSTEP_INSTALLATION_DOMAIN to SYSTEM. + * All GNUmakefiles: added GNUSTEP_CORE_SOFTWARE=YES at the + beginning. + * GNUmakefile: Export GNUSTEP_CORE_SOFTWARE to reduce chances of a + problem if a GNUmakefile in a subdirectory is missing it. + * Documentation/General/GNUmakefile: Removed setting + GNUSTEP_INSTALLATION_DOMAIN to SYSTEM. 2008-12-17 Richard Frith-Macdonald - * Source/NSConnection.m: - * Tools/gdnc.m: - Enable keepalive only on mswindows and for server connections using - NSMessagePort. + * Source/NSConnection.m: + * Tools/gdnc.m: + Enable keepalive only on mswindows and for server connections using + NSMessagePort. 2008-12-16 Richard Frith-Macdonald - * Source/NSLock.m: Tiny cleanup of lock finalisation process. + * Source/NSLock.m: Tiny cleanup of lock finalisation process. 2008-12-15 Richard Frith-Macdonald - * Source/NSURL.m: When initialising with schem, host and path, allow - the host to contain username, password and port as well as just the - host. Document this change (which seems to be how MacOS-X works). + * Source/NSURL.m: When initialising with schem, host and path, allow + the host to contain username, password and port as well as just the + host. Document this change (which seems to be how MacOS-X works). 2008-12-09 Wolfgang Lux - * Source/unix/GSRunLoopCtxt.m (-pollUntil:within): Add missing - local variable declaration and fix incorrect arguments for some - receivedEvent:type:extra:forMode: messages in the select based - implementation. + * Source/unix/GSRunLoopCtxt.m (-pollUntil:within): Add missing + local variable declaration and fix incorrect arguments for some + receivedEvent:type:extra:forMode: messages in the select based + implementation. 2008-12-08 Richard Frith-Macdonald - * Source/NSKeyedUnarchiver.m: ([versionForClassName:]) implement - * Source/NSUnarchiver.m: - * Source/NSCoder.m: - * Headers/Foundation/NSCoder.h: - Update method to return NSInteger. + * Source/NSKeyedUnarchiver.m: ([versionForClassName:]) implement + * Source/NSUnarchiver.m: + * Source/NSCoder.m: + * Headers/Foundation/NSCoder.h: + Update method to return NSInteger. 2008-12-07 Adam Fedor - * configure.ac: Add custom objc library check from gnustep-make - (So we can find libobjc in LOCAL domain). + * configure.ac: Add custom objc library check from gnustep-make + (So we can find libobjc in LOCAL domain). 2008-12-07 Richard Frith-Macdonald - * Headers/Foundation/NSConnection.h: - * Source/NSConnection.m: - Fix keepalive bugs. + * Headers/Foundation/NSConnection.h: + * Source/NSConnection.m: + Fix keepalive bugs. 2008-12-07 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/NSTask+GS.h: NSTask category - * Headers/Additions/GNUstepBase/GSCategories.h: remove NSTask - * Source/NSDistributedNotificationCenter.m: Use new header - * Source/NSSocketPortNameServer.m: Use new header - Reorganise so we have a lightweight header for the category of - NSTask containing additional gnustep specific methods. + * Headers/Additions/GNUstepBase/NSTask+GS.h: NSTask category + * Headers/Additions/GNUstepBase/GSCategories.h: remove NSTask + * Source/NSDistributedNotificationCenter.m: Use new header + * Source/NSSocketPortNameServer.m: Use new header + Reorganise so we have a lightweight header for the category of + NSTask containing additional gnustep specific methods. 2008-12-06 Wolfgang Lux - * Source/NSBundle.m (+bundleForLibrary:version:): Fix infinite - loop in code dropping the extension from the library name. + * Source/NSBundle.m (+bundleForLibrary:version:): Fix infinite + loop in code dropping the extension from the library name. 2008-12-06 Richard Frith-Macdonald - * Source/Additions/GSXML.m: - Hack to avoid issues on systems where the xml headers use the reserved - word 'id'. + * Source/Additions/GSXML.m: + Hack to avoid issues on systems where the xml headers use the reserved + word 'id'. 2008-12-06 Richard Frith-Macdonald - * Source/Additions/GSCategories.m: ([+launchPathForTool:]) - Convenience method to locate a tool in the standard locations or in the - PATH so that it can be used as the launch path of a task. + * Source/Additions/GSCategories.m: ([+launchPathForTool:]) + Convenience method to locate a tool in the standard locations or in the + PATH so that it can be used as the launch path of a task. 2008-12-05 Nicola Pero - * configure.ac: On mingw32, set GNUSTEP_BASE_PATH to - GNUSTEP_LOCAL_TOOLS by default to match the new default - installation domain. Added new option --with-installation-domain - allowing to override this setting. - * configure: Regenerated. + * configure.ac: On mingw32, set GNUSTEP_BASE_PATH to + GNUSTEP_LOCAL_TOOLS by default to match the new default + installation domain. Added new option --with-installation-domain + allowing to override this setting. + * configure: Regenerated. 2008-12-05 Richard Frith-Macdonald - * Source/NSBundle.m: ([bundleForLibrary:version:]) extract version - from end of library name if possible. - ([_addFrameworkFromClass:]) find the framework directory from path to - the dll on windows. + * Source/NSBundle.m: ([bundleForLibrary:version:]) extract version + from end of library name if possible. + ([_addFrameworkFromClass:]) find the framework directory from path to + the dll on windows. 2008-12-04 Richard Frith-Macdonald - * Source/Additions/GSObjCRuntime.m: Fix minor thread-safety issue - with behaviors ... lock the runtime while modifying method lists. - * Source/NSDictionary.m: Fix initialisation order so that if two - threads are initialising the cached class info should always be - set up in the correct order. - * Source/NSSet.m: ditto. + * Source/Additions/GSObjCRuntime.m: Fix minor thread-safety issue + with behaviors ... lock the runtime while modifying method lists. + * Source/NSDictionary.m: Fix initialisation order so that if two + threads are initialising the cached class info should always be + set up in the correct order. + * Source/NSSet.m: ditto. 2008-12-04 Richard Frith-Macdonald - * Source/NSURL.m: Implement ipv6 addresses as per RFC2732 - Fixes #25003 + * Source/NSURL.m: Implement ipv6 addresses as per RFC2732 + Fixes #25003 2008-12-02 Richard Frith-Macdonald - * Source/NSURLProtocol.m: - Add class for caching pairs of socket streams so we can eventually - implement connection keepalive. + * Source/NSURLProtocol.m: + Add class for caching pairs of socket streams so we can eventually + implement connection keepalive. 2008-12-01 Richard Frith-Macdonald - * Source/NSKeyValueCoding.m: - * Source/NSURLProtocol.m: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - * Testing/nsconnection_client.m: - When working with abstract selectors, try to use untyped ones so that - we don't confuse checks we put into the method signature code. + * Source/NSKeyValueCoding.m: + * Source/NSURLProtocol.m: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + * Testing/nsconnection_client.m: + When working with abstract selectors, try to use untyped ones so that + we don't confuse checks we put into the method signature code. 2008-11-30 Wolfgang Lux - * install.sh: Fix header syntax and provide default for make - command argument. + * install.sh: Fix header syntax and provide default for make + command argument. 2008-11-28 Richard Frith-Macdonald - * config/config.unexpected.m: Add check for objc_set_unexpected - * configure.ac: Use new check - * configure: Regenerate - * Headers/Additions/GNUstepBase/config.h.in: Regenerate - * Source/GSSocketStream.m: Fix reliabce on expression evaluation order - * Source/NSException.m: Implement uncaught exception handler for - when native objc exceptions are enabled. + * config/config.unexpected.m: Add check for objc_set_unexpected + * configure.ac: Use new check + * configure: Regenerate + * Headers/Additions/GNUstepBase/config.h.in: Regenerate + * Source/GSSocketStream.m: Fix reliabce on expression evaluation order + * Source/NSException.m: Implement uncaught exception handler for + when native objc exceptions are enabled. 2008-11-27 Fred Kiefer - * configure.ac: Correct typing error in last change. - * configure: regenerate + * configure.ac: Correct typing error in last change. + * configure: regenerate 2008-11-27 Richard Frith-Macdonald - * configure.ac: check for native exceptions use. - * configure: regenerate - Disable the use of ffcall with native exceptions as the two are - incompatible (ffcall changes the stack so that throwing an exception - will crash the process). + * configure.ac: check for native exceptions use. + * configure: regenerate + Disable the use of ffcall with native exceptions as the two are + incompatible (ffcall changes the stack so that throwing an exception + will crash the process). 2008-11-27 Richard Frith-Macdonald - * Source/NSDistributedNotificationCenter.m: - * Tools/gdnc.h: - * Tools/gdnc.m: - Use NSUInteger for the observer ID. + * Source/NSDistributedNotificationCenter.m: + * Tools/gdnc.h: + * Tools/gdnc.m: + Use NSUInteger for the observer ID. 2008-11-27 Richard Frith-Macdonald - * Documentation/GNUmakefile: - * GNUmakefile: - * NSCharacterSets/GNUmakefile: - * NSTimeZones/GNUmakefile: - * Resources/GNUmakefile: - * Source/GNUmakefile: - * SSL/GNUmakefile: - * Tools/GNUmakefile: - Removed GNUSTEP_INSTALLATION_DOMAIN. - NB. This means that gnustep-base will now install in the local domain - by default, and to get the old behavior you will need to do - 'make GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install' - The rationale for this change is that the system domain is for - resources installed by the operating system packagers, but the - local domain is for add-ons you install yourself (to be used by - all users of the system), and you don't normally want to overwrite - the operating system supplied version by accident. + * Documentation/GNUmakefile: + * GNUmakefile: + * NSCharacterSets/GNUmakefile: + * NSTimeZones/GNUmakefile: + * Resources/GNUmakefile: + * Source/GNUmakefile: + * SSL/GNUmakefile: + * Tools/GNUmakefile: + Removed GNUSTEP_INSTALLATION_DOMAIN. + NB. This means that gnustep-base will now install in the local domain + by default, and to get the old behavior you will need to do + 'make GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install' + The rationale for this change is that the system domain is for + resources installed by the operating system packagers, but the + local domain is for add-ons you install yourself (to be used by + all users of the system), and you don't normally want to overwrite + the operating system supplied version by accident. 2008-11-26 10:09-EST Gregory John Casamento - * Headers/Additions/GNUstepBase/GSVersionMacros.h: Add - defines for earlier version of Mac OS X back to 10.0. - * Source/synchronization.m: Correct a problem found during testing. - * Testing/synctest/main.m: Updated test. + * Headers/Additions/GNUstepBase/GSVersionMacros.h: Add + defines for earlier version of Mac OS X back to 10.0. + * Source/synchronization.m: Correct a problem found during testing. + * Testing/synctest/main.m: Updated test. 2008-11-24 Richard Frith-Macdonald - * Source/NSObject.m: ([methodSignatureForSelector:]) Check that the - types of the selector (if known) and the types of the actual method - match. Raise an NSInternalInconsistencyException if they don't. + * Source/NSObject.m: ([methodSignatureForSelector:]) Check that the + types of the selector (if known) and the types of the actual method + match. Raise an NSInternalInconsistencyException if they don't. 2008-11-23 Richard Frith-Macdonald - * Source/Additions/unicode/gsm0338.h: Add more mappings from unicode - characters representing accented letters to simple letters in the gsm - alphabet for lossy conversion. + * Source/Additions/unicode/gsm0338.h: Add more mappings from unicode + characters representing accented letters to simple letters in the gsm + alphabet for lossy conversion. 2008-11-22 Richard Frith-Macdonald - * re-bump version to 1.17.0 for next release when we make a new - unstable branch. + * re-bump version to 1.17.0 for next release when we make a new + unstable branch. 2008-11-21 Richard Frith-Macdonald - * Version: set to 1.15.4 for new release on unstable branch. - * Documentation/ReleaseNotes.gsdoc: Document the 1.15.4 release - Make new release on unstable branch to that it's keeping up with - the bugfixes in the stable branch. + * Version: set to 1.15.4 for new release on unstable branch. + * Documentation/ReleaseNotes.gsdoc: Document the 1.15.4 release + Make new release on unstable branch to that it's keeping up with + the bugfixes in the stable branch. 2008-11-20 Richard Frith-Macdonald - * Headers/Foundation/NSConnection.h: New ivars - * Source/NSConnection.m: Add diuagnostic information and implement - private mechanism for keepalive (for mswindows, where the NSMessagePort - implementation doesn;t know if the remote end has gone away until it - attempts to send to it). - * Tools/gdnc..m: Use private keepalive mechanism. + * Headers/Foundation/NSConnection.h: New ivars + * Source/NSConnection.m: Add diuagnostic information and implement + private mechanism for keepalive (for mswindows, where the NSMessagePort + implementation doesn;t know if the remote end has gone away until it + attempts to send to it). + * Tools/gdnc..m: Use private keepalive mechanism. 2008-11-19 Richard Frith-Macdonald - * Source/NSData.m: Fix bug #24883 - * Headers/Foundation/NSRange.h: Update to use NSUInteger + * Source/NSData.m: Fix bug #24883 + * Headers/Foundation/NSRange.h: Update to use NSUInteger 2008-11-19 Richard Frith-Macdonald - * configure.ac: Changes to tolerate older version of gnutls - * configure: regenerate - * config/pathtls.m4: Fix typos - * Headers/Additions/GNUstepBase/config.h.in: regenerate - * Source/GSSocketStream.m: Fix to send required events to handler - after SSL or SOCKS module has dealt with them. - * Source/GSStream.h: New method to reset sent events mask - * Source/GSStream.m: ditto - * Source/GSString.m: Fix nil pointer reference + * configure.ac: Changes to tolerate older version of gnutls + * configure: regenerate + * config/pathtls.m4: Fix typos + * Headers/Additions/GNUstepBase/config.h.in: regenerate + * Source/GSSocketStream.m: Fix to send required events to handler + after SSL or SOCKS module has dealt with them. + * Source/GSStream.h: New method to reset sent events mask + * Source/GSStream.m: ditto + * Source/GSString.m: Fix nil pointer reference 2008-11-18 Richard Frith-Macdonald - * Source/NSURL.m: Check class of arguments to designated initialiser - * configure.ac: Warn about bug in libkvm - * configure: Regenerate - * Source/NSProcessInfo.m: Report problem in libkvm and suggest - workarounds. + * Source/NSURL.m: Check class of arguments to designated initialiser + * configure.ac: Warn about bug in libkvm + * configure: Regenerate + * Source/NSProcessInfo.m: Report problem in libkvm and suggest + workarounds. 2008-11-17 Roland Schwingel - * Source/GSSocketStream.m: - * Source/NSPropertyList.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSSocketPort.m: - * Source/NSRunLoop.m: - * Source/GSFFCallInvocation.m: - * Source/NSArray.m: - * Source/inet_ntop.c: - * Source/NSDebug.m: - * Source/NSPredicate.m: - * Source/GSHTTPURLHandle.m: - * Source/GSFFIInvocation.m: - * Source/NSMessagePort.m: - * Source/win32/GSFileHandle.m: - * Source/win32/NSUserDefaults.m: - * Source/win32/NSMessagePort.m: - * Source/win32/GSRunLoopCtxt.m: - * Source/win32/NSMessagePortNameServer.m: - * Source/NSKeyValueMutableArray.m: - * Source/NSURL.m: - * Source/mframe.m: - * Source/NSObject.m: - * Source/NSString.m: - * Source/NSDecimalNumber.m: - * Source/cifframe.m: - * Source/Additions/GSXML.m: - * Source/GSString.m: - * Source/NSConnection.m: - * Source/NSProxy.m: - * Source/GSFormat.m: - * Source/NSSet.m: - * Source/NSTask.m: - * Source/NSCharacterSet.m: - * Source/NSNumberFormatter.m: - Cosmetic changes plus a couple of fixes for 64bit mswindows. + * Source/GSSocketStream.m: + * Source/NSPropertyList.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSSocketPort.m: + * Source/NSRunLoop.m: + * Source/GSFFCallInvocation.m: + * Source/NSArray.m: + * Source/inet_ntop.c: + * Source/NSDebug.m: + * Source/NSPredicate.m: + * Source/GSHTTPURLHandle.m: + * Source/GSFFIInvocation.m: + * Source/NSMessagePort.m: + * Source/win32/GSFileHandle.m: + * Source/win32/NSUserDefaults.m: + * Source/win32/NSMessagePort.m: + * Source/win32/GSRunLoopCtxt.m: + * Source/win32/NSMessagePortNameServer.m: + * Source/NSKeyValueMutableArray.m: + * Source/NSURL.m: + * Source/mframe.m: + * Source/NSObject.m: + * Source/NSString.m: + * Source/NSDecimalNumber.m: + * Source/cifframe.m: + * Source/Additions/GSXML.m: + * Source/GSString.m: + * Source/NSConnection.m: + * Source/NSProxy.m: + * Source/GSFormat.m: + * Source/NSSet.m: + * Source/NSTask.m: + * Source/NSCharacterSet.m: + * Source/NSNumberFormatter.m: + Cosmetic changes plus a couple of fixes for 64bit mswindows. 2008-11-15 Richard Frith-Macdonald - * Source/NSProcessInfo.m: Remove useless sysctl command. - * Source/NSMessagePort.m: Ensure port is not deallocated while - being invalidated. Fix memory leak of port lock. - * Source/NSSocketPort.m: ditto + * Source/NSProcessInfo.m: Remove useless sysctl command. + * Source/NSMessagePort.m: Ensure port is not deallocated while + being invalidated. Fix memory leak of port lock. + * Source/NSSocketPort.m: ditto 2008-11-15 Wolfgang Lux - * Source/NSMessagePort.m (-invalidate, -removeHandle:): Fix - potential crash while closing a message port. + * Source/NSMessagePort.m (-invalidate, -removeHandle:): Fix + potential crash while closing a message port. 2008-11-14 Wolfgang Lux - * Source/NSProcessInfo.m (-processorCount, -activeProcessorCount): - Improve portability. + * Source/NSProcessInfo.m (-processorCount, -activeProcessorCount): + Improve portability. - * Source/NSPathUtilities.m (NSTemporaryDirectory): Use /var/tmp on - Darwin since /tmp is cleaned regularly. + * Source/NSPathUtilities.m (NSTemporaryDirectory): Use /var/tmp on + Darwin since /tmp is cleaned regularly. 2008-10-13 Richard Frith-Macdonald - * Source/NSPage.m: Update to use NSUInteger and to cope with large - address space in windows. - * Headers/Foundation/NSObjCRuntime.h: typedef NSUInteger earlier - * Headers/Foundation/NSZone.h: Update to use NSUInteger. - * Source/NSProcessInfo.m; implement new MacOS-x 5 methods based on - Fred's suggestion and Scotts code as fallback and wiht a version - for mswindows too. + * Source/NSPage.m: Update to use NSUInteger and to cope with large + address space in windows. + * Headers/Foundation/NSObjCRuntime.h: typedef NSUInteger earlier + * Headers/Foundation/NSZone.h: Update to use NSUInteger. + * Source/NSProcessInfo.m; implement new MacOS-x 5 methods based on + Fred's suggestion and Scotts code as fallback and wiht a version + for mswindows too. 2008-10-11 Richard Frith-Macdonald - * Source/NSUserDefaults.m: implement KVC methods to get and set values - as these appear to be an undocumented feature of MacOS-X (bug #24807). + * Source/NSUserDefaults.m: implement KVC methods to get and set values + as these appear to be an undocumented feature of MacOS-X (bug #24807). 2008-11-05 17:27-EST Gregory John Casamento - * Testing/synctest/GNUmakefile - * Testing/synctest/GNUmakefile.postamble - * Testing/synctest/GNUmakefile.preamble - * Testing/synctest/main.m - * Testing/synctest/PC.project - * Testing/synctest/PC.project.backup - * Testing/synctest/SyncTestInfo.plist: Added test tool for - @synchronize. + * Testing/synctest/GNUmakefile + * Testing/synctest/GNUmakefile.postamble + * Testing/synctest/GNUmakefile.preamble + * Testing/synctest/main.m + * Testing/synctest/PC.project + * Testing/synctest/PC.project.backup + * Testing/synctest/SyncTestInfo.plist: Added test tool for + @synchronize. 2008-10-30 Richard Frith-Macdonald - * Tools/gdomap.c: Improve error messages and information about - the -a option. - * Source/NSPredicate.m: parse literal strings + * Tools/gdomap.c: Improve error messages and information about + the -a option. + * Source/NSPredicate.m: parse literal strings 2008-10-29 Richard Frith-Macdonald - * Source/NSException.m: Fix stacktrace to be available when built - without DEBUG=YES. Check environment variable to activate/deactivate. - * Documentation/Basegsdoc: Improve documentation of stack trace. + * Source/NSException.m: Fix stacktrace to be available when built + without DEBUG=YES. Check environment variable to activate/deactivate. + * Documentation/Basegsdoc: Improve documentation of stack trace. 2008-10-28 Richard Frith-Macdonald - * Source/GSString.m: Cope with loads of leading space in - intValue and doubleValue. + * Source/GSString.m: Cope with loads of leading space in + intValue and doubleValue. 2008-10-27 Richard Frith-Macdonald - * Source/GSFormat.m: Fix possible problem when current unix locale - does not use '.' as the decimal separator. + * Source/GSFormat.m: Fix possible problem when current unix locale + does not use '.' as the decimal separator. 2008-10-27 Nicola Pero - * Headers/Foundation/NSFileManager.h: Fixed typo - declare NSError - class before referencing it. + * Headers/Foundation/NSFileManager.h: Fixed typo - declare NSError + class before referencing it. 2008-10-26 20:59-EDT Gregory John Casamento - * Headers/Foundation/NSFileManager.h: Added declaration for new method - here. - * Source/NSFileManager.m: Added implementation for the method - -(BOOL)createDirectoryAtPath:withIntermediateDirectories:attributes: - error:. + * Headers/Foundation/NSFileManager.h: Added declaration for new method + here. + * Source/NSFileManager.m: Added implementation for the method + -(BOOL)createDirectoryAtPath:withIntermediateDirectories:attributes: + error:. 2008-10-19 Wolfgang Lux - * configure.ac: fix test for sychronization in objc runtime. + * configure.ac: fix test for sychronization in objc runtime. 2008-10-19 Richard Frith-Macdonald - * Source/synchronization.m: make internal functions private. + * Source/synchronization.m: make internal functions private. 2008-10-16 Richard Frith-Macdonald - * Source/NSCalendarDate.m: Fix typo (bug #24573) + * Source/NSCalendarDate.m: Fix typo (bug #24573) 2008-10-14 Richard Frith-Macdonald * Source/GSSocketStream.m: Fix for #24564 - * Source/inet_pton.c: Fix for #24563 - * Source/inet_ntop.c: Fix for #24563 + * Source/inet_pton.c: Fix for #24563 + * Source/inet_ntop.c: Fix for #24563 2008-10-12 Larry Campbelln @@ -19101,147 +19110,147 @@ 2008-10-10 Richard Frith-Macdonald - * Source/NSTimeZones/NSTimeZones.tar: updated. + * Source/NSTimeZones/NSTimeZones.tar: updated. 2008-10-03 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Ensure that we always return NO when we - need mo more data to complete parsing. - * Source/GSHTTPURLHandle.mL: Fix check for response parse completion. + * Source/Additions/GSMime.m: Ensure that we always return NO when we + need mo more data to complete parsing. + * Source/GSHTTPURLHandle.mL: Fix check for response parse completion. 2008-10-01 Adam Fedor - * Source/DocMakefile: Add NSAffineTranform + * Source/DocMakefile: Add NSAffineTranform 2008-09-29 22:54-EDT Gregory John Casamento - * Source/synchronization.m: Remove uneeded objc_sync_remove_node - function. + * Source/synchronization.m: Remove uneeded objc_sync_remove_node + function. 2008-09-26 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Fix compilation problem on systems - without iconv. + * Source/Additions/Unicode.m: Fix compilation problem on systems + without iconv. 2008-09-25 00:18-EDT Gregory John Casamento - * Source/synchronization.m: Correct issue in objc_sync_remove_node() - method where it could do a NULL dereference. Also moved the locks on - the tables to the highest level so to reduce the possibility of - threading issues. + * Source/synchronization.m: Correct issue in objc_sync_remove_node() + method where it could do a NULL dereference. Also moved the locks on + the tables to the highest level so to reduce the possibility of + threading issues. 2008-09-24 17:26-EDT Gregory John Casamento - * Source/NSUserDefaults.m: Corrected previous change. + * Source/NSUserDefaults.m: Corrected previous change. 2008-09-24 08:25-EDT Gregory John Casamento - * Source/NSUserDefaults.m: -addSuiteNamed change so that we don't - rely on the value of NSNotFound being -(2^32)-1 and a rollover to - 0. + * Source/NSUserDefaults.m: -addSuiteNamed change so that we don't + rely on the value of NSNotFound being -(2^32)-1 and a rollover to + 0. 2008-09-23 20:31-EDT Gregory John Casamento - * config.mak.in: Added reference to HAVE_OBJC_SYNC_ENTER - * configure: Recompiled script - * configure.ac: Changed configure to check for objc_sync_enter - function. - * Headers/Additions/GNUstepBase/config.h.in: Added #define here for - HAVE_OBJC_SYNC_ENTER - * Source/GNUmakefile: Added check for the value, if no, then compile - synchronization.m - * Source/synchronization.m: Implementation for @synchronize support. + * config.mak.in: Added reference to HAVE_OBJC_SYNC_ENTER + * configure: Recompiled script + * configure.ac: Changed configure to check for objc_sync_enter + function. + * Headers/Additions/GNUstepBase/config.h.in: Added #define here for + HAVE_OBJC_SYNC_ENTER + * Source/GNUmakefile: Added check for the value, if no, then compile + synchronization.m + * Source/synchronization.m: Implementation for @synchronize support. 2008-09-23 Richard Frith-Macdonald - * Source/NSThread.m: add a couple of checks to ensure correct - initialisation of class. - * Source/NSDate.m: - * Source/NSCalendarDate.m: Check for time interval since reference - date being NaN, and raise an exception. + * Source/NSThread.m: add a couple of checks to ensure correct + initialisation of class. + * Source/NSDate.m: + * Source/NSCalendarDate.m: Check for time interval since reference + date being NaN, and raise an exception. 2008-09-21 00:05-EDT Gregory John Casamento - * COPYINGv3: Adding back in. + * COPYINGv3: Adding back in. 2008-09-19 Richard Frith-Macdonald - * Source/NSDistributedLock.m: Standardise the path we are given for - the lock file. + * Source/NSDistributedLock.m: Standardise the path we are given for + the lock file. 2008-09-18 Richard Frith-Macdonald - * Source/NSThread.m: try to make firing of thread performers - more robust. - * Source/Additions/GSMime.m: make some NSLog() calls be debug only. + * Source/NSThread.m: try to make firing of thread performers + more robust. + * Source/Additions/GSMime.m: make some NSLog() calls be debug only. 2008-09-14 13:20-EDT Gregory John Casamento - * install.sh: Install script for use by compile-all. + * install.sh: Install script for use by compile-all. 2008-08-25 18:55-EDT Gregory John Casamento - * COPYINGv3: Remove since GNUstep is now GPLv2 again. - * Headers/Foundation/NSNumberFormatter.h - * Source/NSNumberFormatter.m: Added methods missing from GNUstep - that are present in 10.4 (stringFromNumber:, numberFromString:) + * COPYINGv3: Remove since GNUstep is now GPLv2 again. + * Headers/Foundation/NSNumberFormatter.h + * Source/NSNumberFormatter.m: Added methods missing from GNUstep + that are present in 10.4 (stringFromNumber:, numberFromString:) 2008-08-25 Fred Kiefer - * Source/NSAutoreleasePool.m (-drain): Implement. - * Source/NSAutoreleasePool.m (-dealloc): Reset _parent and _child. - * Source/NSAutoreleasePool.m (-_endThread:): Free cache of ended - thread not of current. + * Source/NSAutoreleasePool.m (-drain): Implement. + * Source/NSAutoreleasePool.m (-dealloc): Reset _parent and _child. + * Source/NSAutoreleasePool.m (-_endThread:): Free cache of ended + thread not of current. 2008-08-20 Yavor Doganov (tiny change) - * config/procfs.m4: Check for `proc' in /proc/mounts rather than - relying on the output of `mount'; fixes build issue in - chroots. Reported by Funda Wang (bug #23876). + * config/procfs.m4: Check for `proc' in /proc/mounts rather than + relying on the output of `mount'; fixes build issue in + chroots. Reported by Funda Wang (bug #23876). 2008-07-17 Richard Frith-Macdonald - * Source/Additions/GSCategories.m: littleEndian() fix to work on - systems with other word sizes. + * Source/Additions/GSCategories.m: littleEndian() fix to work on + systems with other word sizes. 2008-07-15 Richard Frith-Macdonald - * Source/GSPrivate.h: New private function to get range of string func. - * Source/NSString.m: Optimise replacing string in string. - * Source/GSString.m: New function to return range getting function. - * Source/GSeq.h: Fixup comment - * Testing/string.m: Add trival check. - Optimise ([replaceOccurrencesOfString:withString:options:range:]) + * Source/GSPrivate.h: New private function to get range of string func. + * Source/NSString.m: Optimise replacing string in string. + * Source/GSString.m: New function to return range getting function. + * Source/GSeq.h: Fixup comment + * Testing/string.m: Add trival check. + Optimise ([replaceOccurrencesOfString:withString:options:range:]) 2008-07-11 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Add support for byte order specific - unicode (including 32bit) via iconv. Change encoding lookup - mechanism to cope with new Mac-OS-X encoding values. + * Source/Additions/Unicode.m: Add support for byte order specific + unicode (including 32bit) via iconv. Change encoding lookup + mechanism to cope with new Mac-OS-X encoding values. 2008-07-06 Richard Frith-Macdonald - * Source/NSRunLoop.m: - * Source/NSArray.m: - * Source/NSSortDescriptor.m: - * Source/Additions/GSCompatibility.m: - * Source/NSDictionary.m: - * Source/NSSerializer.m: - * Source/NSSet.m: - Wherever ([-getObjects:]) is called, check to see if the receiver is - a proxy, and if so we populate the buffer by calling ([-objectAtIndex:]) - instead. This because a proxy via DO does not know how many itesm are - in the buffer and assumes it's only one. + * Source/NSRunLoop.m: + * Source/NSArray.m: + * Source/NSSortDescriptor.m: + * Source/Additions/GSCompatibility.m: + * Source/NSDictionary.m: + * Source/NSSerializer.m: + * Source/NSSet.m: + Wherever ([-getObjects:]) is called, check to see if the receiver is + a proxy, and if so we populate the buffer by calling ([-objectAtIndex:]) + instead. This because a proxy via DO does not know how many itesm are + in the buffer and assumes it's only one. 2008-07-06 Richard Frith-Macdonald - * configure.ac: use libffi in preference to ffcall as it doesn't mess - up the stack. - * configure: regenerate + * configure.ac: use libffi in preference to ffcall as it doesn't mess + up the stack. + * configure: regenerate 2008-07-02 Richard Frith-Macdonald - * Source/NSIndexSet.m: Implement ([-countOfIndexesInRange:]) + * Source/NSIndexSet.m: Implement ([-countOfIndexesInRange:]) 2008-06-30 Richard Frith-Macdonald @@ -19249,630 +19258,630 @@ * Source/NSInvocation.m: * Source/cifframe.h: * Source/cifframe.m: - Tweaks to get NS_MESSAGE and NS_INVOCATION working on my 64bit - system. + Tweaks to get NS_MESSAGE and NS_INVOCATION working on my 64bit + system. 2008-06-28 Richard Frith-Macdonald - * configure.ac: Check for sys/mman.h and mprotect - * configure: regenerate - * Headers/Additions/GNUstepBase/config.h.in: regenerate - * Source/GSFFIInvocation.m: Use mmap and mprotect to ensure that - closure memory is executable. + * configure.ac: Check for sys/mman.h and mprotect + * configure: regenerate + * Headers/Additions/GNUstepBase/config.h.in: regenerate + * Source/GSFFIInvocation.m: Use mmap and mprotect to ensure that + closure memory is executable. 2008-06-27 17:22-EDT Gregory John Casamento - * Source/NSUnarchiver.m: Issue a warning when the class can't be - resolved by the runtime in decodeValueOfObjCType:at:. + * Source/NSUnarchiver.m: Issue a warning when the class can't be + resolved by the runtime in decodeValueOfObjCType:at:. 2008-06-27 Richard Frith-Macdonald - * Source/NSPropertyList.m: sort dictionary keys only if they are - strings. This is the new MacOS-X behavior (old behavior was to sort - if all responded to compare:). - Fixes bug #23727 + * Source/NSPropertyList.m: sort dictionary keys only if they are + strings. This is the new MacOS-X behavior (old behavior was to sort + if all responded to compare:). + Fixes bug #23727 2008-06-21 Richard Frith-Macdonald - * Headers/Foundation/NSException.h - * Source/NSException.h - Change macros for setting uncaught handler to be functions (to match - MacOS-X) and make the pointer itsself be private. + * Headers/Foundation/NSException.h + * Source/NSException.h + Change macros for setting uncaught handler to be functions (to match + MacOS-X) and make the pointer itsself be private. 2008-06-18 Richard Frith-Macdonald - * Source/NSConnection.m: Fix error getting run loop for current - thread when it has not already been set. + * Source/NSConnection.m: Fix error getting run loop for current + thread when it has not already been set. 2008-06-16 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSUnion.h: add NSUInteger type as addr - * Headers/Additions/GNUstepBase/GSIMap.h: use addr for - GSIMapNodeForSimpleKey() so that it works for pointers on machines - where sizeof(int) != sizeof(void*) + * Headers/Additions/GNUstepBase/GSUnion.h: add NSUInteger type as addr + * Headers/Additions/GNUstepBase/GSIMap.h: use addr for + GSIMapNodeForSimpleKey() so that it works for pointers on machines + where sizeof(int) != sizeof(void*) 2008-06-15 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Be more tolerant of illegal data in - quoted printable words. + * Source/Additions/GSMime.m: Be more tolerant of illegal data in + quoted printable words. 2008-06-13 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Fix incorrect adjustment of buffer - when handling large string containing multibyte utf-8 data. + * Source/Additions/Unicode.m: Fix incorrect adjustment of buffer + when handling large string containing multibyte utf-8 data. 2008-06-12 Richard Frith-Macdonald - * Update timezones, bump version to 1.17.0 for next release. + * Update timezones, bump version to 1.17.0 for next release. 2008-06-12 Richard Frith-Macdonald - * Documentation/ReleaseNotes.gsdoc: Add information about movement - to MacOS-X compatibility. + * Documentation/ReleaseNotes.gsdoc: Add information about movement + to MacOS-X compatibility. 2008-06-11 David Ayers - * Source/NSNumberFormatter.m ([-stringForObjectValue:]): Implement - handling of localizesFormat. - Return string value of attributedStringForZero if applicable so that - formatting for the common case is not short circuted for zero. + * Source/NSNumberFormatter.m ([-stringForObjectValue:]): Implement + handling of localizesFormat. + Return string value of attributedStringForZero if applicable so that + formatting for the common case is not short circuted for zero. 2008-06-10 Richard Frith-Macdonald - * Tools/AGSHtml.m: if something is scheduled for removal, mark it as - 'Likely to be changed/moved/removed' rather than 'deprecated'. + * Tools/AGSHtml.m: if something is scheduled for removal, mark it as + 'Likely to be changed/moved/removed' rather than 'deprecated'. 2008-06-10 Richard Frith-Macdonald - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSSerialization.h: - * Headers/Foundation/NSProcessInfo.h: - * Headers/Foundation/NSMethodSignature.h: - * Headers/Foundation/NSHost.h: - * Headers/Foundation/NSArchiver.h: - * Headers/Foundation/NSInvocation.h: - Fix typo in macro name + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSSerialization.h: + * Headers/Foundation/NSProcessInfo.h: + * Headers/Foundation/NSMethodSignature.h: + * Headers/Foundation/NSHost.h: + * Headers/Foundation/NSArchiver.h: + * Headers/Foundation/NSInvocation.h: + Fix typo in macro name 2008-06-10 Richard Frith-Macdonald - * configure.ac: Check for stdlib.h - * Headers/Additions/GNUstepBase/config.h.in: add stdlib.h - * configure: Regenerate - * Source/NSString.m: Don't use realpath unless PATH_MAX is known - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSSerialization.h: - * Headers/Foundation/NSProcessInfo.h: - * Headers/Foundation/NSMethodSignature.h: - * Headers/Foundation/NSHost.h: - * Headers/Foundation/NSArchiver.h: - * Headers/Foundation/NSInvocation.h: - Mark non-OSX methods as deprecated so we can move them to the - additions library or delete them if we want to. + * configure.ac: Check for stdlib.h + * Headers/Additions/GNUstepBase/config.h.in: add stdlib.h + * configure: Regenerate + * Source/NSString.m: Don't use realpath unless PATH_MAX is known + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSSerialization.h: + * Headers/Foundation/NSProcessInfo.h: + * Headers/Foundation/NSMethodSignature.h: + * Headers/Foundation/NSHost.h: + * Headers/Foundation/NSArchiver.h: + * Headers/Foundation/NSInvocation.h: + Mark non-OSX methods as deprecated so we can move them to the + additions library or delete them if we want to. 2008-06-08 Richard Frith-Macdonald - * COPYINGv3: - * NSCharacterSets/GNUmakefile: - * Source/NSIndexPath.m: - * Source/NSSocketPortNameServer.m: - * Source/NSMapTable.m: - * Source/GSLocale.m: - * Source/GSSocketStream.h: - * Source/NSTimeZone.m: - * Source/NSNetServices.m: - * Source/hpux-load.h: - * Source/NSHashTable.m: - * Source/GSInvocation.h: - * Source/NSURLCredential.m: - * Source/GSSocketStream.m: - * Source/NSValueTransformer.m: - * Source/NSPortCoder.m: - * Source/NSURLAuthenticationChallenge.m: - * Source/Makefile.postamble: - * Source/NSSpellServer.m: - * Source/NSCalendarDate.m: - * Source/NSBundle.m: - * Source/NSKeyValueCoding.m: - * Source/NSURLHandle.m: - * Source/NSTimer.m: - * Source/NSPropertyList.m: - * Source/libgnustep-base-entry.m: - * Source/GSConcreteValueTemplate.m: - * Source/NSAffineTransform.m: - * Source/CompatibilityHeaders.make: - * Source/NSPathUtilities.m: - * Source/NSScanner.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSProcessInfo.m: - * Source/NSGeometry.m: - * Source/NSNotificationQueue.m: - * Source/GNUmakefile: - * Source/thr-mach.h: - * Source/NSSocketPort.m: - * Source/NSRunLoop.m: - * Source/NSAttributedString.m: - * Source/NSUndoManager.m: - * Source/NSMethodSignature.m: - * Source/thr-mach.m: - * Source/NSFormatter.m: - * Source/NSUserDefaults.m: - * Source/GSArray.m: - * Source/GSFFCallInvocation.m: - * Source/mframe/configure.ac: - * Source/mframe/mframe.head: - * Source/mframe/README: - * Source/NSKeyValueMutableSet.m: - * Source/NSArray.m: - * Source/GSStream.h: - * Source/NSMessagePortNameServer.m: - * Source/objc-gnu2next.m: - * Source/GSStream.m: - * Source/NSKeyedArchiver.m: - * Source/NSDebug.m: - * Source/unix/Makefile.preamble: - * Source/unix/GNUmakefile: - * Source/unix/NSStream.m: - * Source/NSKeyedUnarchiver.m: - * Source/GSConcreteValue.m: - * Source/NSPortMessage.m: - * Source/NSURLDownload.m: - * Source/NSDistributedLock.m: - * Source/NSFileHandle.m: - * Source/NSPredicate.m: - * Source/simple-load.h: - * Source/preface.m: - * Source/NSKeyValueObserving.m: - * Source/NSAssertionHandler.m: - * Source/GSHTTPURLHandle.m: - * Source/NSConcreteNumberTemplate.m: - * Source/win32-load.h: - * Source/NSCallBacks.h: - * Source/NSZone.m: - * Source/NSPage.m: - * Source/NSCallBacks.m: - * Source/NSURLCredentialStorage.m: - * Source/NSPort.m: - * Source/NSSortDescriptor.m: - * Source/GSFFIInvocation.m: - * Source/NSMessagePort.m: - * Source/GSPrivate.h: - * Source/GSDictionary.m: - * Source/win32/GSFileHandle.m: - * Source/win32/Makefile.preamble: - * Source/win32/NSMessagePort.m: - * Source/win32/GNUmakefile: - * Source/win32/NSStream.m: - * Source/win32/NSMessagePortNameServer.m: - * Source/NSUnarchiver.m: - * Source/GSCountedSet.m: - * Source/NSConcreteNumber.h: - * Source/NSInvocation.m: - * Source/dld-load.h: - * Source/NSFileManager.m: - * Source/NSConcreteNumber.m: - * Source/NSURLResponse.m: - * Source/thr-pthread.m: - * Source/objc-load.h: - * Source/NSURLProtocol.m: - * Source/NSURLCache.m: - * Source/externs.m: - * Source/NSNotificationCenter.m: - * Source/GSAttributedString.m: - * Source/objc-load.m: - * Source/NSRange.m: - * Source/NSCoder.m: - * Source/NSHTTPCookieStorage.m: - * Source/NSException.m: - * Source/NSKeyValueMutableArray.m: - * Source/NSCopyObject.m: - * Source/NSURL.m: - * Source/cifframe.h: - * Source/NSString.m: - * Source/NSObject.m: - * Source/mframe.m: - * Source/DocMakefile: - * Source/NSDecimalNumber.m: - * Source/NSCachedURLResponse.m: - * Source/cifframe.m: - * Source/null-load.h: - * Source/Additions/Unicode.m: - * Source/Additions/GCArray.m: - * Source/Additions/GSXML.m: - * Source/Additions/GNUmakefile: - * Source/Additions/behavior.m: - * Source/Additions/GSFunctions.m: - * Source/Additions/GSCompatibility.m: - * Source/Additions/Makefile.preamble: - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/GSNextRuntime.m: - * Source/Additions/GCDictionary.m: - * Source/Additions/GSCategories.m: - * Source/Additions/GCObject.m: - * Source/Additions/GSInsensitiveDictionary.m: - * Source/Additions/GSMime.m: - * Source/Additions/GSLock.m: - * Source/GSSet.m: - * Source/NSNotification.m: - * Source/NSNumber.m: - * Source/NSDecimal.m: - * Source/GSString.m: - * Source/NSConnection.m: - * Source/NSDateFormatter.m: - * Source/GSPortPrivate.h: - * Source/NSAutoreleasePool.m: - * Source/NSThread.m: - * Source/NSData.m: - * Source/NSHTTPCookie.m: - * Source/NSDate.m: - * Source/NSHost.m: - * Source/GSNetwork.h: - * Source/callframe.h: - * Source/NSProxy.m: - * Source/NSObjCRuntime.m: - * Source/NSURLProtectionSpace.m: - * Source/callframe.m: - * Source/NSProtocolChecker.m: - * Source/NSError.m: - * Source/GSeq.h: - * Source/NSPipe.m: - * Source/GSValue.m: - * Source/NSDictionary.m: - * Source/Makefile.preamble: - * Source/GSHTTPAuthentication.m: - * Source/NSClassDescription.m: - * Source/NSSerializer.m: - * Source/NSNull.m: - * Source/NSURLRequest.m: - * Source/NSValue.m: - * Source/NSCountedSet.m: - * Source/NSLog.m: - * Source/GSFormat.m: - * Source/NSIndexSet.m: - * Source/GSFileHandle.m: - * Source/NSLock.m: - * Source/NSSet.m: - * Source/NSDistantObject.m: - * Source/NSTask.m: - * Source/NSArchiver.m: - * Source/win32-def.top: - * Source/NSCharacterSet.m: - * Source/NSPortNameServer.m: - * Source/NSNumberFormatter.m: - * Source/NSXMLParser.m: - * Source/GSFTPURLHandle.m: - * Source/NSEnumerator.m: - * Source/GSURLPrivate.h: - * Source/NSURLConnection.m: - * SSL/GSSSLHandle.m: - * SSL/Makefile.postamble: - * SSL/Makefile.preamble: - * SSL/configure.ac: - * SSL/GNUmakefile: - * SSL/COPYING.LIB: - * Makefile.postamble: - * configure.ac: - * COPYING: - * Headers/Foundation/NSTimeZone.h: - * Headers/Foundation/NSNetServices.h: - * Headers/Foundation/NSHashTable.h: - * Headers/Foundation/NSRange.h: - * Headers/Foundation/NSCoder.h: - * Headers/Foundation/NSURLCredential.h: - * Headers/Foundation/NSHTTPCookieStorage.h: - * Headers/Foundation/NSException.h: - * Headers/Foundation/NSByteOrder.h: - * Headers/Foundation/NSValueTransformer.h: - * Headers/Foundation/NSPortCoder.h: - * Headers/Foundation/NSURL.h: - * Headers/Foundation/NSCompoundPredicate.h: - * Headers/Foundation/NSURLAuthenticationChallenge.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSSpellServer.h: - * Headers/Foundation/NSCalendarDate.h: - * Headers/Foundation/NSDecimalNumber.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSKeyValueCoding.h: - * Headers/Foundation/NSPointerFunctions.h: - * Headers/Foundation/NSSerialization.h: - * Headers/Foundation/NSURLHandle.h: - * Headers/Foundation/NSPropertyList.h: - * Headers/Foundation/NSTimer.h: - * Headers/Foundation/NSAffineTransform.h: - * Headers/Foundation/NSNotification.h: - * Headers/Foundation/NSPathUtilities.h: - * Headers/Foundation/NSScanner.h: - * Headers/Foundation/NSDistributedNotificationCenter.h: - * Headers/Foundation/NSProcessInfo.h: - * Headers/Foundation/NSNotificationQueue.h: - * Headers/Foundation/NSComparisonPredicate.h: - * Headers/Foundation/NSStream.h: - * Headers/Foundation/NSGeometry.h: - * Headers/Foundation/NSDecimal.h: - * Headers/Foundation/NSRunLoop.h: - * Headers/Foundation/NSAttributedString.h: - * Headers/Foundation/NSConnection.h: - * Headers/Foundation/NSUndoManager.h: - * Headers/Foundation/NSDateFormatter.h: - * Headers/Foundation/NSMethodSignature.h: - * Headers/Foundation/NSAutoreleasePool.h: - * Headers/Foundation/NSFormatter.h: - * Headers/Foundation/NSUserDefaults.h: - * Headers/Foundation/NSThread.h: - * Headers/Foundation/NSHTTPCookie.h: - * Headers/Foundation/NSData.h: - * Headers/Foundation/NSURLError.h: - * Headers/Foundation/NSDate.h: - * Headers/Foundation/NSHost.h: - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSProxy.h: - * Headers/Foundation/NSObjCRuntime.h: - * Headers/Foundation/NSURLProtectionSpace.h: - * Headers/Foundation/NSKeyedArchiver.h: - * Headers/Foundation/NSProtocolChecker.h: - * Headers/Foundation/NSDebug.h: - * Headers/Foundation/NSPortMessage.h: - * Headers/Foundation/NSError.h: - * Headers/Foundation/NSURLDownload.h: - * Headers/Foundation/NSFileHandle.h: - * Headers/Foundation/NSDistributedLock.h: - * Headers/Foundation/NSPredicate.h: - * Headers/Foundation/FoundationErrors.h: - * Headers/Foundation/NSKeyValueObserving.h: - * Headers/Foundation/NSDictionary.h: - * Headers/Foundation/NSErrorRecoveryAttempting.h: - * Headers/Foundation/NSClassDescription.h: - * Headers/Foundation/NSNull.h: - * Headers/Foundation/NSZone.h: - * Headers/Foundation/NSURLRequest.h: - * Headers/Foundation/NSValue.h: - * Headers/Foundation/NSURLCredentialStorage.h: - * Headers/Foundation/NSIndexSet.h: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSSortDescriptor.h: - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSSet.h: - * Headers/Foundation/NSDistantObject.h: - * Headers/Foundation/NSExpression.h: - * Headers/Foundation/NSTask.h: - * Headers/Foundation/NSArchiver.h: - * Headers/Foundation/Foundation.h: - * Headers/Foundation/NSCharacterSet.h: - * Headers/Foundation/NSInvocation.h: - * Headers/Foundation/NSFileManager.h: - * Headers/Foundation/NSUtilities.h: - * Headers/Foundation/NSPortNameServer.h: - * Headers/Foundation/NSNumberFormatter.h: - * Headers/Foundation/NSXMLParser.h: - * Headers/Foundation/NSEnumerator.h: - * Headers/Foundation/NSURLResponse.h: - * Headers/Foundation/NSURLConnection.h: - * Headers/Foundation/NSIndexPath.h: - * Headers/Foundation/NSURLProtocol.h: - * Headers/Foundation/NSMapTable.h: - * Headers/Foundation/NSURLCache.h: - * Headers/Additions/GNUstepBase/GSLocale.h: - * Headers/Additions/GNUstepBase/GSXML.h: - * Headers/Additions/GNUstepBase/DistributedObjects.h: - * Headers/Additions/GNUstepBase/behavior.h: - * Headers/Additions/GNUstepBase/GSFunctions.h: - * Headers/Additions/GNUstepBase/GSConfig.h.in: - * Headers/Additions/GNUstepBase/preface.h.in: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - * Headers/Additions/GNUstepBase/GSCategories.h: - * Headers/Additions/GNUstepBase/GSIMap.h: - * Headers/Additions/GNUstepBase/GCObject.h: - * Headers/Additions/GNUstepBase/GSMime.h: - * Headers/Additions/GNUstepBase/GSIArray.h: - * Headers/Additions/GNUstepBase/GSUnion.h: - * Headers/Additions/GNUstepBase/GSLock.h: - * Headers/Additions/GNUstepBase/GSVersionMacros.h: - * Headers/Additions/GNUstepBase/GSFileHandle.h: - * Headers/Additions/GNUstepBase/GNUstep.h: - * Headers/Additions/GNUstepBase/objc-gnu2next.h: - * Headers/Additions/GNUstepBase/Unicode.h: - * Makefile: - * GNUmakefile: - * macosx/config.h: - * base.make.in: - * Tools/gspath.m: - * Tools/AGSHtml.h: - * Tools/plmerge.m: - * Tools/xmlparse.m: - * Tools/AGSIndex.h: - * Tools/AGSHtml.m: - * Tools/AGSIndex.m: - * Tools/sfparse.m: - * Tools/gdnc.h: - * Tools/plparse.m: - * Tools/pldes.m: - * Tools/defaults.m: - * Tools/Makefile.postamble: - * Tools/locale_alias.m: - * Tools/Makefile.preamble: - * Tools/DocMakefile: - * Tools/gsdoc-1_0_0.dtd: - * Tools/plget.m: - * Tools/pl2link.m: - * Tools/gdnc.m: - * Tools/gsdoc-1_0_1.dtd: - * Tools/gsdoc-1_0_2.dtd: - * Tools/gsdoc-1_0_3.dtd: - * Tools/AGSParser.h: - * Tools/gsdoc-1_0_1.rnc: - * Tools/gsdoc-0_6_5.dtd: - * Tools/gsdoc-0_6_6.dtd: - * Tools/plser.m: - * Tools/gsdoc-0_6_7.dtd: - * Tools/AGSOutput.h: - * Tools/AGSParser.m: - * Tools/autogsdoc.m: - * Tools/make_strings/StringsFile.h: - * Tools/make_strings/StringsEntry.h: - * Tools/make_strings/make_strings.m: - * Tools/make_strings/StringsFile.m: - * Tools/make_strings/StringsEntry.m: - * Tools/make_strings/GNUmakefile: - * Tools/make_strings/SourceEntry.h: - * Tools/make_strings/make_strings.h: - * Tools/make_strings/GNUmakefile.preamble: - * Tools/make_strings/SourceEntry.m: - * Tools/AGSOutput.m: - * Tools/GNUmakefile: - * Tools/gdomap.c: - * Tools/plist-0_9.dtd: - * Tools/gdomap.h: - * Tools/HTMLLinker.m: - * Tools/pl.m: - * Tools/cvtenc.m: - * config/config.constant-string-class.m: - * Testing/Makefile.postamble: - * Testing/exported-strings.m: - * Testing/gslock.m: - * Testing/GNUmakefile: - * Testing/nsattributedstring.m: - * Testing/nsmethodsignature.m: - * Testing/diningPhilosophers.m: - * Testing/gsbehavior.m: - * Testing/Makefile.preamble: - * Testing/benchmark.m: - * COPYING.LIB: - Temporarily revert library and essential tools to LGPLv2 so that - developers have longer to get used to LGPLv3. - Keep non-essential tools and examples at GPLv3 + * COPYINGv3: + * NSCharacterSets/GNUmakefile: + * Source/NSIndexPath.m: + * Source/NSSocketPortNameServer.m: + * Source/NSMapTable.m: + * Source/GSLocale.m: + * Source/GSSocketStream.h: + * Source/NSTimeZone.m: + * Source/NSNetServices.m: + * Source/hpux-load.h: + * Source/NSHashTable.m: + * Source/GSInvocation.h: + * Source/NSURLCredential.m: + * Source/GSSocketStream.m: + * Source/NSValueTransformer.m: + * Source/NSPortCoder.m: + * Source/NSURLAuthenticationChallenge.m: + * Source/Makefile.postamble: + * Source/NSSpellServer.m: + * Source/NSCalendarDate.m: + * Source/NSBundle.m: + * Source/NSKeyValueCoding.m: + * Source/NSURLHandle.m: + * Source/NSTimer.m: + * Source/NSPropertyList.m: + * Source/libgnustep-base-entry.m: + * Source/GSConcreteValueTemplate.m: + * Source/NSAffineTransform.m: + * Source/CompatibilityHeaders.make: + * Source/NSPathUtilities.m: + * Source/NSScanner.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSProcessInfo.m: + * Source/NSGeometry.m: + * Source/NSNotificationQueue.m: + * Source/GNUmakefile: + * Source/thr-mach.h: + * Source/NSSocketPort.m: + * Source/NSRunLoop.m: + * Source/NSAttributedString.m: + * Source/NSUndoManager.m: + * Source/NSMethodSignature.m: + * Source/thr-mach.m: + * Source/NSFormatter.m: + * Source/NSUserDefaults.m: + * Source/GSArray.m: + * Source/GSFFCallInvocation.m: + * Source/mframe/configure.ac: + * Source/mframe/mframe.head: + * Source/mframe/README: + * Source/NSKeyValueMutableSet.m: + * Source/NSArray.m: + * Source/GSStream.h: + * Source/NSMessagePortNameServer.m: + * Source/objc-gnu2next.m: + * Source/GSStream.m: + * Source/NSKeyedArchiver.m: + * Source/NSDebug.m: + * Source/unix/Makefile.preamble: + * Source/unix/GNUmakefile: + * Source/unix/NSStream.m: + * Source/NSKeyedUnarchiver.m: + * Source/GSConcreteValue.m: + * Source/NSPortMessage.m: + * Source/NSURLDownload.m: + * Source/NSDistributedLock.m: + * Source/NSFileHandle.m: + * Source/NSPredicate.m: + * Source/simple-load.h: + * Source/preface.m: + * Source/NSKeyValueObserving.m: + * Source/NSAssertionHandler.m: + * Source/GSHTTPURLHandle.m: + * Source/NSConcreteNumberTemplate.m: + * Source/win32-load.h: + * Source/NSCallBacks.h: + * Source/NSZone.m: + * Source/NSPage.m: + * Source/NSCallBacks.m: + * Source/NSURLCredentialStorage.m: + * Source/NSPort.m: + * Source/NSSortDescriptor.m: + * Source/GSFFIInvocation.m: + * Source/NSMessagePort.m: + * Source/GSPrivate.h: + * Source/GSDictionary.m: + * Source/win32/GSFileHandle.m: + * Source/win32/Makefile.preamble: + * Source/win32/NSMessagePort.m: + * Source/win32/GNUmakefile: + * Source/win32/NSStream.m: + * Source/win32/NSMessagePortNameServer.m: + * Source/NSUnarchiver.m: + * Source/GSCountedSet.m: + * Source/NSConcreteNumber.h: + * Source/NSInvocation.m: + * Source/dld-load.h: + * Source/NSFileManager.m: + * Source/NSConcreteNumber.m: + * Source/NSURLResponse.m: + * Source/thr-pthread.m: + * Source/objc-load.h: + * Source/NSURLProtocol.m: + * Source/NSURLCache.m: + * Source/externs.m: + * Source/NSNotificationCenter.m: + * Source/GSAttributedString.m: + * Source/objc-load.m: + * Source/NSRange.m: + * Source/NSCoder.m: + * Source/NSHTTPCookieStorage.m: + * Source/NSException.m: + * Source/NSKeyValueMutableArray.m: + * Source/NSCopyObject.m: + * Source/NSURL.m: + * Source/cifframe.h: + * Source/NSString.m: + * Source/NSObject.m: + * Source/mframe.m: + * Source/DocMakefile: + * Source/NSDecimalNumber.m: + * Source/NSCachedURLResponse.m: + * Source/cifframe.m: + * Source/null-load.h: + * Source/Additions/Unicode.m: + * Source/Additions/GCArray.m: + * Source/Additions/GSXML.m: + * Source/Additions/GNUmakefile: + * Source/Additions/behavior.m: + * Source/Additions/GSFunctions.m: + * Source/Additions/GSCompatibility.m: + * Source/Additions/Makefile.preamble: + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/GSNextRuntime.m: + * Source/Additions/GCDictionary.m: + * Source/Additions/GSCategories.m: + * Source/Additions/GCObject.m: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/Additions/GSMime.m: + * Source/Additions/GSLock.m: + * Source/GSSet.m: + * Source/NSNotification.m: + * Source/NSNumber.m: + * Source/NSDecimal.m: + * Source/GSString.m: + * Source/NSConnection.m: + * Source/NSDateFormatter.m: + * Source/GSPortPrivate.h: + * Source/NSAutoreleasePool.m: + * Source/NSThread.m: + * Source/NSData.m: + * Source/NSHTTPCookie.m: + * Source/NSDate.m: + * Source/NSHost.m: + * Source/GSNetwork.h: + * Source/callframe.h: + * Source/NSProxy.m: + * Source/NSObjCRuntime.m: + * Source/NSURLProtectionSpace.m: + * Source/callframe.m: + * Source/NSProtocolChecker.m: + * Source/NSError.m: + * Source/GSeq.h: + * Source/NSPipe.m: + * Source/GSValue.m: + * Source/NSDictionary.m: + * Source/Makefile.preamble: + * Source/GSHTTPAuthentication.m: + * Source/NSClassDescription.m: + * Source/NSSerializer.m: + * Source/NSNull.m: + * Source/NSURLRequest.m: + * Source/NSValue.m: + * Source/NSCountedSet.m: + * Source/NSLog.m: + * Source/GSFormat.m: + * Source/NSIndexSet.m: + * Source/GSFileHandle.m: + * Source/NSLock.m: + * Source/NSSet.m: + * Source/NSDistantObject.m: + * Source/NSTask.m: + * Source/NSArchiver.m: + * Source/win32-def.top: + * Source/NSCharacterSet.m: + * Source/NSPortNameServer.m: + * Source/NSNumberFormatter.m: + * Source/NSXMLParser.m: + * Source/GSFTPURLHandle.m: + * Source/NSEnumerator.m: + * Source/GSURLPrivate.h: + * Source/NSURLConnection.m: + * SSL/GSSSLHandle.m: + * SSL/Makefile.postamble: + * SSL/Makefile.preamble: + * SSL/configure.ac: + * SSL/GNUmakefile: + * SSL/COPYING.LIB: + * Makefile.postamble: + * configure.ac: + * COPYING: + * Headers/Foundation/NSTimeZone.h: + * Headers/Foundation/NSNetServices.h: + * Headers/Foundation/NSHashTable.h: + * Headers/Foundation/NSRange.h: + * Headers/Foundation/NSCoder.h: + * Headers/Foundation/NSURLCredential.h: + * Headers/Foundation/NSHTTPCookieStorage.h: + * Headers/Foundation/NSException.h: + * Headers/Foundation/NSByteOrder.h: + * Headers/Foundation/NSValueTransformer.h: + * Headers/Foundation/NSPortCoder.h: + * Headers/Foundation/NSURL.h: + * Headers/Foundation/NSCompoundPredicate.h: + * Headers/Foundation/NSURLAuthenticationChallenge.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSSpellServer.h: + * Headers/Foundation/NSCalendarDate.h: + * Headers/Foundation/NSDecimalNumber.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSKeyValueCoding.h: + * Headers/Foundation/NSPointerFunctions.h: + * Headers/Foundation/NSSerialization.h: + * Headers/Foundation/NSURLHandle.h: + * Headers/Foundation/NSPropertyList.h: + * Headers/Foundation/NSTimer.h: + * Headers/Foundation/NSAffineTransform.h: + * Headers/Foundation/NSNotification.h: + * Headers/Foundation/NSPathUtilities.h: + * Headers/Foundation/NSScanner.h: + * Headers/Foundation/NSDistributedNotificationCenter.h: + * Headers/Foundation/NSProcessInfo.h: + * Headers/Foundation/NSNotificationQueue.h: + * Headers/Foundation/NSComparisonPredicate.h: + * Headers/Foundation/NSStream.h: + * Headers/Foundation/NSGeometry.h: + * Headers/Foundation/NSDecimal.h: + * Headers/Foundation/NSRunLoop.h: + * Headers/Foundation/NSAttributedString.h: + * Headers/Foundation/NSConnection.h: + * Headers/Foundation/NSUndoManager.h: + * Headers/Foundation/NSDateFormatter.h: + * Headers/Foundation/NSMethodSignature.h: + * Headers/Foundation/NSAutoreleasePool.h: + * Headers/Foundation/NSFormatter.h: + * Headers/Foundation/NSUserDefaults.h: + * Headers/Foundation/NSThread.h: + * Headers/Foundation/NSHTTPCookie.h: + * Headers/Foundation/NSData.h: + * Headers/Foundation/NSURLError.h: + * Headers/Foundation/NSDate.h: + * Headers/Foundation/NSHost.h: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSProxy.h: + * Headers/Foundation/NSObjCRuntime.h: + * Headers/Foundation/NSURLProtectionSpace.h: + * Headers/Foundation/NSKeyedArchiver.h: + * Headers/Foundation/NSProtocolChecker.h: + * Headers/Foundation/NSDebug.h: + * Headers/Foundation/NSPortMessage.h: + * Headers/Foundation/NSError.h: + * Headers/Foundation/NSURLDownload.h: + * Headers/Foundation/NSFileHandle.h: + * Headers/Foundation/NSDistributedLock.h: + * Headers/Foundation/NSPredicate.h: + * Headers/Foundation/FoundationErrors.h: + * Headers/Foundation/NSKeyValueObserving.h: + * Headers/Foundation/NSDictionary.h: + * Headers/Foundation/NSErrorRecoveryAttempting.h: + * Headers/Foundation/NSClassDescription.h: + * Headers/Foundation/NSNull.h: + * Headers/Foundation/NSZone.h: + * Headers/Foundation/NSURLRequest.h: + * Headers/Foundation/NSValue.h: + * Headers/Foundation/NSURLCredentialStorage.h: + * Headers/Foundation/NSIndexSet.h: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSSortDescriptor.h: + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSSet.h: + * Headers/Foundation/NSDistantObject.h: + * Headers/Foundation/NSExpression.h: + * Headers/Foundation/NSTask.h: + * Headers/Foundation/NSArchiver.h: + * Headers/Foundation/Foundation.h: + * Headers/Foundation/NSCharacterSet.h: + * Headers/Foundation/NSInvocation.h: + * Headers/Foundation/NSFileManager.h: + * Headers/Foundation/NSUtilities.h: + * Headers/Foundation/NSPortNameServer.h: + * Headers/Foundation/NSNumberFormatter.h: + * Headers/Foundation/NSXMLParser.h: + * Headers/Foundation/NSEnumerator.h: + * Headers/Foundation/NSURLResponse.h: + * Headers/Foundation/NSURLConnection.h: + * Headers/Foundation/NSIndexPath.h: + * Headers/Foundation/NSURLProtocol.h: + * Headers/Foundation/NSMapTable.h: + * Headers/Foundation/NSURLCache.h: + * Headers/Additions/GNUstepBase/GSLocale.h: + * Headers/Additions/GNUstepBase/GSXML.h: + * Headers/Additions/GNUstepBase/DistributedObjects.h: + * Headers/Additions/GNUstepBase/behavior.h: + * Headers/Additions/GNUstepBase/GSFunctions.h: + * Headers/Additions/GNUstepBase/GSConfig.h.in: + * Headers/Additions/GNUstepBase/preface.h.in: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + * Headers/Additions/GNUstepBase/GSCategories.h: + * Headers/Additions/GNUstepBase/GSIMap.h: + * Headers/Additions/GNUstepBase/GCObject.h: + * Headers/Additions/GNUstepBase/GSMime.h: + * Headers/Additions/GNUstepBase/GSIArray.h: + * Headers/Additions/GNUstepBase/GSUnion.h: + * Headers/Additions/GNUstepBase/GSLock.h: + * Headers/Additions/GNUstepBase/GSVersionMacros.h: + * Headers/Additions/GNUstepBase/GSFileHandle.h: + * Headers/Additions/GNUstepBase/GNUstep.h: + * Headers/Additions/GNUstepBase/objc-gnu2next.h: + * Headers/Additions/GNUstepBase/Unicode.h: + * Makefile: + * GNUmakefile: + * macosx/config.h: + * base.make.in: + * Tools/gspath.m: + * Tools/AGSHtml.h: + * Tools/plmerge.m: + * Tools/xmlparse.m: + * Tools/AGSIndex.h: + * Tools/AGSHtml.m: + * Tools/AGSIndex.m: + * Tools/sfparse.m: + * Tools/gdnc.h: + * Tools/plparse.m: + * Tools/pldes.m: + * Tools/defaults.m: + * Tools/Makefile.postamble: + * Tools/locale_alias.m: + * Tools/Makefile.preamble: + * Tools/DocMakefile: + * Tools/gsdoc-1_0_0.dtd: + * Tools/plget.m: + * Tools/pl2link.m: + * Tools/gdnc.m: + * Tools/gsdoc-1_0_1.dtd: + * Tools/gsdoc-1_0_2.dtd: + * Tools/gsdoc-1_0_3.dtd: + * Tools/AGSParser.h: + * Tools/gsdoc-1_0_1.rnc: + * Tools/gsdoc-0_6_5.dtd: + * Tools/gsdoc-0_6_6.dtd: + * Tools/plser.m: + * Tools/gsdoc-0_6_7.dtd: + * Tools/AGSOutput.h: + * Tools/AGSParser.m: + * Tools/autogsdoc.m: + * Tools/make_strings/StringsFile.h: + * Tools/make_strings/StringsEntry.h: + * Tools/make_strings/make_strings.m: + * Tools/make_strings/StringsFile.m: + * Tools/make_strings/StringsEntry.m: + * Tools/make_strings/GNUmakefile: + * Tools/make_strings/SourceEntry.h: + * Tools/make_strings/make_strings.h: + * Tools/make_strings/GNUmakefile.preamble: + * Tools/make_strings/SourceEntry.m: + * Tools/AGSOutput.m: + * Tools/GNUmakefile: + * Tools/gdomap.c: + * Tools/plist-0_9.dtd: + * Tools/gdomap.h: + * Tools/HTMLLinker.m: + * Tools/pl.m: + * Tools/cvtenc.m: + * config/config.constant-string-class.m: + * Testing/Makefile.postamble: + * Testing/exported-strings.m: + * Testing/gslock.m: + * Testing/GNUmakefile: + * Testing/nsattributedstring.m: + * Testing/nsmethodsignature.m: + * Testing/diningPhilosophers.m: + * Testing/gsbehavior.m: + * Testing/Makefile.preamble: + * Testing/benchmark.m: + * COPYING.LIB: + Temporarily revert library and essential tools to LGPLv2 so that + developers have longer to get used to LGPLv3. + Keep non-essential tools and examples at GPLv3 2008-06-07 Richard Frith-Macdonald - * Source/NSUserDefaults.m: - Fix possible deadlock reported by Larry Campbell, and improve - optimisation a little. + * Source/NSUserDefaults.m: + Fix possible deadlock reported by Larry Campbell, and improve + optimisation a little. 2008-06-06 Richard Frith-Macdonald - * Source/NSTimeZone.m: Monitor to see if the time zone specified in - the user defaults system changes. If so, we update the system zone. + * Source/NSTimeZone.m: Monitor to see if the time zone specified in + the user defaults system changes. If so, we update the system zone. 2008-06-06 Richard Frith-Macdonald - * Source/GSLocale.m: - * Source/NSTimeZone.m: - * Source/NSNetServices.m: - * Source/NSSpellServer.m: - * Source/NSBundle.m: - * Source/NSPathUtilities.m: - * Source/NSScanner.m: - * Source/NSProcessInfo.m: - * Source/NSArray.m: - * Source/externs.m: - * Source/NSCoder.m: - * Source/NSString.m: - * Source/NSConnection.m: - * Source/NSAutoreleasePool.m: - * Source/NSData.m: - * Source/NSObjCRuntime.m: - * Source/NSIndexSet.m: - * Source/NSLock.m: - * Source/NSSet.m: - * Documentation/ReleaseNotes.gsdoc: - * Headers/Foundation/NSTimeZone.h: - * Headers/Foundation/NSNetServices.h: - * Headers/Foundation/NSCoder.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSSpellServer.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSPathUtilities.h: - * Headers/Foundation/NSScanner.h: - * Headers/Foundation/NSProcessInfo.h: - * Headers/Foundation/NSComparisonPredicate.h: - * Headers/Foundation/NSConnection.h: - * Headers/Foundation/NSAutoreleasePool.h: - * Headers/Foundation/NSUserDefaults.h: - * Headers/Foundation/NSData.h: - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSObjCRuntime.h: - * Headers/Foundation/NSIndexSet.h: - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSSet.h: - Lots of small OSX10.5 compatibility updates:- - Some new enumerations and constant strings. - Some new method implementations. - Some new empty method stubs. + * Source/GSLocale.m: + * Source/NSTimeZone.m: + * Source/NSNetServices.m: + * Source/NSSpellServer.m: + * Source/NSBundle.m: + * Source/NSPathUtilities.m: + * Source/NSScanner.m: + * Source/NSProcessInfo.m: + * Source/NSArray.m: + * Source/externs.m: + * Source/NSCoder.m: + * Source/NSString.m: + * Source/NSConnection.m: + * Source/NSAutoreleasePool.m: + * Source/NSData.m: + * Source/NSObjCRuntime.m: + * Source/NSIndexSet.m: + * Source/NSLock.m: + * Source/NSSet.m: + * Documentation/ReleaseNotes.gsdoc: + * Headers/Foundation/NSTimeZone.h: + * Headers/Foundation/NSNetServices.h: + * Headers/Foundation/NSCoder.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSSpellServer.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSPathUtilities.h: + * Headers/Foundation/NSScanner.h: + * Headers/Foundation/NSProcessInfo.h: + * Headers/Foundation/NSComparisonPredicate.h: + * Headers/Foundation/NSConnection.h: + * Headers/Foundation/NSAutoreleasePool.h: + * Headers/Foundation/NSUserDefaults.h: + * Headers/Foundation/NSData.h: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSObjCRuntime.h: + * Headers/Foundation/NSIndexSet.h: + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSSet.h: + Lots of small OSX10.5 compatibility updates:- + Some new enumerations and constant strings. + Some new method implementations. + Some new empty method stubs. Change NSLocale constant string to GSLocale in preparation for adding - the new NSLocal class. + the new NSLocal class. 2008-05-25 Richard Frith-Macdonald - * configure.ac: For now, only use ffi for sparc64 on solaris as - it doesn't appear to work on bsd. + * configure.ac: For now, only use ffi for sparc64 on solaris as + it doesn't appear to work on bsd. 2008-05-24 Nicola Pero - * Tools/Makefile.postamble: Use GNUSTEP_DOC_MAN instead of - GNUSTEP_DOCUMENTATION_MAN. This requires gnustep-make version 2, - but that was already a requirement. (Suggestion by Chris Vetter - ). + * Tools/Makefile.postamble: Use GNUSTEP_DOC_MAN instead of + GNUSTEP_DOCUMENTATION_MAN. This requires gnustep-make version 2, + but that was already a requirement. (Suggestion by Chris Vetter + ). 2008-05-23 Richard Frith-Macdonald - * configure.ac: Check for systems which need -lnsl (solaris) - Reintroduce use of ffi by default on sparc64 as I just couldn't - get ffcall to work at all and the latest ffi seems to work atr - least for all the common cases. - * Tools/gdnc.m: Fix incorrectly sized instance variable. + * configure.ac: Check for systems which need -lnsl (solaris) + Reintroduce use of ffi by default on sparc64 as I just couldn't + get ffcall to work at all and the latest ffi seems to work atr + least for all the common cases. + * Tools/gdnc.m: Fix incorrectly sized instance variable. 2008-05-22 Richard Frith-Macdonald - * SSL/GSSSLHandle.m: Attempt to improve error logging. + * SSL/GSSSLHandle.m: Attempt to improve error logging. 2008-05-21 Richard Frith-Macdonald - * Source/NSRunLoop.m: Fix reference to uninitialised variable. + * Source/NSRunLoop.m: Fix reference to uninitialised variable. 2008-05-14 Richard Frith-Macdonald - * Source/GSArray.m: Fix bug allowing nil to be placed in array. + * Source/GSArray.m: Fix bug allowing nil to be placed in array. 2008-05-01 Richard Frith-Macdonald - * configure.ac: try to use libffi on sparc64 as libffcall does not - work. Warn if user tries to enable libffcall. + * configure.ac: try to use libffi on sparc64 as libffcall does not + work. Warn if user tries to enable libffcall. 2008-04-25 Richard Frith-Macdonald - * Source/NSPropertyList.m: - Use more memory efficient bitmaps for old style property list parsing - where we know we are only using 8bit characters. + * Source/NSPropertyList.m: + Use more memory efficient bitmaps for old style property list parsing + where we know we are only using 8bit characters. -2008-03-20 David Chisnall - * Source/NSObject.m: Changed atomic increment/decrement for intel - to simpler (perhaps marginally faster) code, also added atomic - increment/decrement for PPC. + * Source/NSObject.m: Changed atomic increment/decrement for intel + to simpler (perhaps marginally faster) code, also added atomic + increment/decrement for PPC. 2008-03-20 Richard Frith-Macdonald - * Source/win32/GSRunLoopCtxt.m: Fix bad function call (bug #22676) + * Source/win32/GSRunLoopCtxt.m: Fix bad function call (bug #22676) 2008-03-19 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m: Use get_imp() to fetch the - implementation of the release method. + * Source/NSAutoreleasePool.m: Use get_imp() to fetch the + implementation of the release method. 2008-03-19 Richard Frith-Macdonald - * Source/DocMakefile: include GNUstep.h - * Headers/Foundation/NSObject.h: include GNUstep.h for macros - * Headers/Foundation/NSBundle.h: move gnustep specific macros out - * Headers/Additions/GNUstepBase/GSFunctions.h: undeprecate and add - GSLocalizedStringFromTableInFramework from NSBundle.h - * Headers/Additions/GNUstepBase/GNUstep.h: Add comments etc. - Code changes to avoid duplication of macro definitions, make - GNUstep.h usable anywhere, and rename a couple of GNUstep specific - extensions to use the GS prefix rather than the (reserved by Apple) - NS prefix. + * Source/DocMakefile: include GNUstep.h + * Headers/Foundation/NSObject.h: include GNUstep.h for macros + * Headers/Foundation/NSBundle.h: move gnustep specific macros out + * Headers/Additions/GNUstepBase/GSFunctions.h: undeprecate and add + GSLocalizedStringFromTableInFramework from NSBundle.h + * Headers/Additions/GNUstepBase/GNUstep.h: Add comments etc. + Code changes to avoid duplication of macro definitions, make + GNUstep.h usable anywhere, and rename a couple of GNUstep specific + extensions to use the GS prefix rather than the (reserved by Apple) + NS prefix. 2008-03-18 Riccardo Mottola @@ -19880,132 +19889,132 @@ 2008-03-18 Richard Frith-Macdonald - * Source/NSString.m: Add a couple of new MacOS-X methods. - * Headers/Foundation/NSString.h: ditto - * Headers/Foundation/FoundationErrors.h: New list of error codes - * Headers/Foundation/Foundation.h: include error codes - More MacOS-X compatibility tweaks + * Source/NSString.m: Add a couple of new MacOS-X methods. + * Headers/Foundation/NSString.h: ditto + * Headers/Foundation/FoundationErrors.h: New list of error codes + * Headers/Foundation/Foundation.h: include error codes + More MacOS-X compatibility tweaks 2008-03-17 Richard Frith-Macdonald - * Headers/Foundation/NSThread.h: - * Source/NSThread.m: Add ([+isMainThread]) and ([-isFinished]). - Also check that we are not trying to perform a selector on an invalid - thread finished. + * Headers/Foundation/NSThread.h: + * Source/NSThread.m: Add ([+isMainThread]) and ([-isFinished]). + Also check that we are not trying to perform a selector on an invalid + thread finished. 2008-03-17 Richard Frith-Macdonald - * Source/NSRunLoop.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/GSRunLoopCtxt.h: - * Source/GSPrivate.h: - * Source/win32/GSRunLoopCtxt.m: - * Source/NSConnection.m: - * Source/NSThread.m: - * Headers/Foundation/NSThread.h: - Got round to committing the thread changes held back for last release. - Beware ... this code is not properly tested yet. The idea is that it - should provide the new (in MacOS-X 10.5) methods to support performing - of selectors in other threads. + * Source/NSRunLoop.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/GSRunLoopCtxt.h: + * Source/GSPrivate.h: + * Source/win32/GSRunLoopCtxt.m: + * Source/NSConnection.m: + * Source/NSThread.m: + * Headers/Foundation/NSThread.h: + Got round to committing the thread changes held back for last release. + Beware ... this code is not properly tested yet. The idea is that it + should provide the new (in MacOS-X 10.5) methods to support performing + of selectors in other threads. 2008-03-17 Richard Frith-Macdonald - * Source/NSPort.m: - * Source/NSException.m: - * Source/NSConnection.m: - * Headers/Foundation/NSException.h: - * Headers/Foundation/NSPort.h: - Update exceptions to match those in MacOS-X for compatibility. + * Source/NSPort.m: + * Source/NSException.m: + * Source/NSConnection.m: + * Headers/Foundation/NSException.h: + * Headers/Foundation/NSPort.h: + Update exceptions to match those in MacOS-X for compatibility. 2008-03-16 Matt Rice - * Source/NSException.m: Add NSObjectNotAvailableException. - * Headers/Foundation/NSException.h: Ditto. + * Source/NSException.m: Add NSObjectNotAvailableException. + * Headers/Foundation/NSException.h: Ditto. 2008-03-16 Richard Frith-Macdonald - * Source/NSDebug.m: Trap sigbus if gcc functions to get stack frame - info run off the end of the stack. - * Source/NSString.m: Implement ([-decimalValue]) ... undocumented - feature of MacOS-X foundation. + * Source/NSDebug.m: Trap sigbus if gcc functions to get stack frame + info run off the end of the stack. + * Source/NSString.m: Implement ([-decimalValue]) ... undocumented + feature of MacOS-X foundation. 2008-03-16 Richard Frith-Macdonald - * Source/NSArray.m: - * Source/NSSet.m: - Add ([-valueForKeyPath:]) to implement KVC aggregate operators. - * Source/NSKeyValueCoding.m: When accessing instance variable directly - look for _var before var as in MacOS-X + * Source/NSArray.m: + * Source/NSSet.m: + Add ([-valueForKeyPath:]) to implement KVC aggregate operators. + * Source/NSKeyValueCoding.m: When accessing instance variable directly + look for _var before var as in MacOS-X 2008-03-14 Nicola Pero - * Source/NSDictionary.m ([-initWithObjectsAndKeys:], - [+dictionaryWithObjectsAndKeys:]): Improved documentation: tell - people to terminate the list with nil. + * Source/NSDictionary.m ([-initWithObjectsAndKeys:], + [+dictionaryWithObjectsAndKeys:]): Improved documentation: tell + people to terminate the list with nil. 2008-03-13 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m; use ([+instanceMethodForSelector:]) - to cache release method implementation for a class. + * Source/NSAutoreleasePool.m; use ([+instanceMethodForSelector:]) + to cache release method implementation for a class. 2008-03-13 Richard Frith-Macdonald - * Source/NSKeyValueCoding.m: - Make all keypath methods perform recursive evaluation of the path - for compatibility with MacOS-X and to permit classes to effectively - override the keypath methods. + * Source/NSKeyValueCoding.m: + Make all keypath methods perform recursive evaluation of the path + for compatibility with MacOS-X and to permit classes to effectively + override the keypath methods. 2008-03-12 Richard Frith-Macdonald - * Source/Additions/GSInsensitiveDictionary.m: - Include GSCategories.h for NSWarnMLog + * Source/Additions/GSInsensitiveDictionary.m: + Include GSCategories.h for NSWarnMLog 2008-03-12 Richard Frith-Macdonald - * Source/Additions/GSInsensitiveDictionary.m: - Don't do gnustep specific debug if building apple-apple-apple + * Source/Additions/GSInsensitiveDictionary.m: + Don't do gnustep specific debug if building apple-apple-apple 2008-03-11 Adam Fedor - * Version 1.15.3 + * Version 1.15.3 2008-03-05 Richard Frith-Macdonald - * Source/NSPage.m: Removed obsolete includes (see bug #22479) + * Source/NSPage.m: Removed obsolete includes (see bug #22479) 2008-03-05 Matt Rice - * Source/NSKeyValueCoding.m ([-setValue:forKey:]): Pass value - to takeValue:forKey:. + * Source/NSKeyValueCoding.m ([-setValue:forKey:]): Pass value + to takeValue:forKey:. 2008-03-05 Richard Frith-Macdonald - * Source/NSBundle.m Make better guess at what the caller meant when - they give us a non-absolute path name on mingw. + * Source/NSBundle.m Make better guess at what the caller meant when + they give us a non-absolute path name on mingw. 2008-03-03 Richard Frith-Macdonald - * Source/NSNull.m: Make result of description method match MacOSX - * Headers/Foundation/NSKeyValueObserving.h: Add new MacOSX features. - * Source/NSKeyValueObserving.m: Rewrite code for handling observations - and notifications. Fix various bugs and add new options from - version 10.5 of MacOS-X + * Source/NSNull.m: Make result of description method match MacOSX + * Headers/Foundation/NSKeyValueObserving.h: Add new MacOSX features. + * Source/NSKeyValueObserving.m: Rewrite code for handling observations + and notifications. Fix various bugs and add new options from + version 10.5 of MacOS-X 2008-03-02 Richard Frith-Macdonald - * Source/NSKeyValueCoding.m: Avoid calling deprecated methods as a - result of KVO overriding them. - * Source/NSKeyValueObserving.m: Minor tidyups + * Source/NSKeyValueCoding.m: Avoid calling deprecated methods as a + result of KVO overriding them. + * Source/NSKeyValueObserving.m: Minor tidyups 2008-02-25 Richard Frith-Macdonald - * Headers/Foundation/NSObject.h: Moved some headers to NSObjCRuntime.h - * Headers/Foundation/NSObjCRuntime.h: Added NSInteger and NSUInteger - for MacOSX compatibiulity. - * Headers/Additions/GNUstep/GSVersionMacros.h: Don't declare constants - which should be set by the user to say which MacOSX version they want. - * Headers/Foundation/NSPointerFunctions.h: New MacOSX declarations ... - no definitions yet. + * Headers/Foundation/NSObject.h: Moved some headers to NSObjCRuntime.h + * Headers/Foundation/NSObjCRuntime.h: Added NSInteger and NSUInteger + for MacOSX compatibiulity. + * Headers/Additions/GNUstep/GSVersionMacros.h: Don't declare constants + which should be set by the user to say which MacOSX version they want. + * Headers/Foundation/NSPointerFunctions.h: New MacOSX declarations ... + no definitions yet. 2008-02-23 Richard Frith-Macdonald @@ -20014,179 +20023,179 @@ 2008-02-22 Richard Frith-Macdonald - * Source/mframe/mframe.head: Change function arguments - * Source/mframe.m: Support nul termination of type strings - * Source/NSMethodSignature.m: nul terminate type strings - * Source/NSObjCRuntime.m: update for changed function args + * Source/mframe/mframe.head: Change function arguments + * Source/mframe.m: Support nul termination of type strings + * Source/NSMethodSignature.m: nul terminate type strings + * Source/NSObjCRuntime.m: update for changed function args 2008-02-21 Richard Frith-Macdonald - * Headers/Foundation/NSKeyValueCoding.h: - * Headers/Foundation/NSThread.h: - * Headers/Foundation/NSKeyValueObserving.h: - * Headers/Additions/GNUstepBase/GSXML.h: - Documentation fixes. + * Headers/Foundation/NSKeyValueCoding.h: + * Headers/Foundation/NSThread.h: + * Headers/Foundation/NSKeyValueObserving.h: + * Headers/Additions/GNUstepBase/GSXML.h: + Documentation fixes. 2008-02-20 Richard Frith-Macdonald - * Source/Additiuons/GSObjCRuntime.m: Add support for NSPoint, NSRange, - NSSize and NSRect for bug #22277 + * Source/Additiuons/GSObjCRuntime.m: Add support for NSPoint, NSRange, + NSSize and NSRect for bug #22277 2008-02-20 Richard Frith-Macdonald - * configure.ac: Add convoluted checks to cope with interdependency - os some system headers on FreeBSD. - * configure: regenerate - * Headers/Additions/GNUstepBase/config.h.in: Regenerate - * Source/NSFileManager.m: Include sys/cdefs.h when available - (for FreeBSD). + * configure.ac: Add convoluted checks to cope with interdependency + os some system headers on FreeBSD. + * configure: regenerate + * Headers/Additions/GNUstepBase/config.h.in: Regenerate + * Source/NSFileManager.m: Include sys/cdefs.h when available + (for FreeBSD). 2008-02-20 Richard Frith-Macdonald * Source/Additions/Unicode.m: * Headers/Additions/GNUstepBase/GSVersionMacros.h: Minor tweaks for building under leopard. - * Source/NSPathUtilities.m: minor thread safety fix. - * Source/NSSocketPort.m: remove bogus comment - * Source/NSMessagePort.m: remove bogus comment - * Source/Additions/Unicode.m: add lockign for nl_langinfo - * Source/Additions/GSMime.m: New method to parse headers - * Headers/Additions/GNUstepBase/GSMime.h: ditto - * Source/NSString.m: Change ([-boolValue]) to match new MacOS-X method. - * Source/GSString.m: ditto + * Source/NSPathUtilities.m: minor thread safety fix. + * Source/NSSocketPort.m: remove bogus comment + * Source/NSMessagePort.m: remove bogus comment + * Source/Additions/Unicode.m: add lockign for nl_langinfo + * Source/Additions/GSMime.m: New method to parse headers + * Headers/Additions/GNUstepBase/GSMime.h: ditto + * Source/NSString.m: Change ([-boolValue]) to match new MacOS-X method. + * Source/GSString.m: ditto 2008-02-19 Nicola Pero - * Source/GNUmakefile (libgnustep-base_NEEDS_GUI): Set to NO - (libgnustep-baseadd_NEEDS_GUI): Set to NO. - * SSL/GNUmakefile (SSL_NEEDS_GUI): Set to NO. + * Source/GNUmakefile (libgnustep-base_NEEDS_GUI): Set to NO + (libgnustep-baseadd_NEEDS_GUI): Set to NO. + * SSL/GNUmakefile (SSL_NEEDS_GUI): Set to NO. 2008-02-17 Richard Frith-Macdonald - * Source/NSDistributedNotificationCenter.m: Remove delay and change - code to immediately release resources used while trying to connect - to server. - * Source/NSConnection.m: When creating a connection and getting its - proxy, release the connection immediately if the proxy is nil, so - that repeated calls don't use more resources. - * Source/NSMessagePortNameServer.m: Implement distributed locking - of names directory. - * Source/NSNSAutoreleasePool.m: When emptying pool, add diagnostic - message and exceptions where an object we are releasing is bad in - some way. - * Headers/Foundation/NSPropertyList.h: Clarify/fix documentation of - date format. + * Source/NSDistributedNotificationCenter.m: Remove delay and change + code to immediately release resources used while trying to connect + to server. + * Source/NSConnection.m: When creating a connection and getting its + proxy, release the connection immediately if the proxy is nil, so + that repeated calls don't use more resources. + * Source/NSMessagePortNameServer.m: Implement distributed locking + of names directory. + * Source/NSNSAutoreleasePool.m: When emptying pool, add diagnostic + message and exceptions where an object we are releasing is bad in + some way. + * Headers/Foundation/NSPropertyList.h: Clarify/fix documentation of + date format. 2008-02-17 19:21-EST Gregory John Casamento - * Source/NSDistributedNotificationCenter.m: Added a short wait to the - _connect method when starting GDNC to correct bug#22351. - Worked with Riccardo Motolla to test this (riccardo@kaffe.org). + * Source/NSDistributedNotificationCenter.m: Added a short wait to the + _connect method when starting GDNC to correct bug#22351. + Worked with Riccardo Motolla to test this (riccardo@kaffe.org). 2008-02-16 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Fix errors in code for folding header - lines. + * Source/Additions/GSMime.m: Fix errors in code for folding header + lines. 2008-02-14 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Remove self as observer of socket - while ssl connection is in progress. + * Source/GSHTTPURLHandle.m: Remove self as observer of socket + while ssl connection is in progress. 2008-02-13 Richard Frith-Macdonald - * Source/NSArray.m: Minor optimisation ...use a subarray when - returning all objects from an array enumerator. + * Source/NSArray.m: Minor optimisation ...use a subarray when + returning all objects from an array enumerator. 2008-02-07 Richard Frith-Macdonald - * Source/NSXMLParser.m: Fix retain/release error. + * Source/NSXMLParser.m: Fix retain/release error. 2008-02-06 Richard Frith-Macdonald - * Source/NSXMLParser.m: Fix bug in sloppy parser, failing - to skip space at end of tag and therefore missing the trailing - '/' in a collapsed element. + * Source/NSXMLParser.m: Fix bug in sloppy parser, failing + to skip space at end of tag and therefore missing the trailing + '/' in a collapsed element. 2008-01-28 Adam Fedor - * configure.ac: Add option to disable bfd. - * Source/inet_pton.c, Source/inet_ntop.c: Add includes to - compile on Solaris + * configure.ac: Add option to disable bfd. + * Source/inet_pton.c, Source/inet_ntop.c: Add includes to + compile on Solaris 2008-01-27 Richard Frith-Macdonald - * Source/NSXMLParser.m: Implement reporting of namespace - prefixes with libxml2 based parser and with sloppy parser. + * Source/NSXMLParser.m: Implement reporting of namespace + prefixes with libxml2 based parser and with sloppy parser. 2008-01-26 Richard Frith-Macdonald - * Source/Additions/NSXML.m: Fixup SAX interface to pass namespace - information separately (retain old method for binary backward - compatibility). - * Source/NSXMLParser.m: Implement handing of namespaces with libxml2 - based parser. + * Source/Additions/NSXML.m: Fixup SAX interface to pass namespace + information separately (retain old method for binary backward + compatibility). + * Source/NSXMLParser.m: Implement handing of namespaces with libxml2 + based parser. 2008-01-25 Richard Frith-Macdonald - * Source/Additions/NSXML.m: In SAX count namespace declarations - in element start as attributes. + * Source/Additions/NSXML.m: In SAX count namespace declarations + in element start as attributes. 2008-01-23 Richard Frith-Macdonald - * Source/NSHost.m: Fix minor thread safety issue ... could get - release host if another thread clears cache at same time as lookup. + * Source/NSHost.m: Fix minor thread safety issue ... could get + release host if another thread clears cache at same time as lookup. 2008-01-21 Fred Kiefer - * Resources/Languages/Spanish: Quoting corrections by Matias - Adrian . + * Resources/Languages/Spanish: Quoting corrections by Matias + Adrian . 2008-01-18 Richard Frith-Macdonald - * Tools/autogsdoc.m: Fix bug recording sources and outputs in - index and dependencies. - * Source/NSTimeZone.m: Fix coding style errors and buffer overrun - on mswindows reported by Roland Schwingel. + * Tools/autogsdoc.m: Fix bug recording sources and outputs in + index and dependencies. + * Source/NSTimeZone.m: Fix coding style errors and buffer overrun + on mswindows reported by Roland Schwingel. 2008-01-14 Nicola Pero - * configure.ac: Do not read obsolete GNUSTEP_USER_DIR and do not - substitute GNUSTEP_TARGET_USER_DIR. - * configure: Regenerated. - * Headers/Additions/GNUstepBase/config.h.in: Regenerated. - * Source/NSPathUtilities.m: Do not read obsolete GNUSTEP_USER_DIR - from the configuration. Ignore it if found. It is never used - anywhere. - * Documentation/Base.gsdoc: Removed or slightly updated some - obsolete documentation on filesystem configuration. + * configure.ac: Do not read obsolete GNUSTEP_USER_DIR and do not + substitute GNUSTEP_TARGET_USER_DIR. + * configure: Regenerated. + * Headers/Additions/GNUstepBase/config.h.in: Regenerated. + * Source/NSPathUtilities.m: Do not read obsolete GNUSTEP_USER_DIR + from the configuration. Ignore it if found. It is never used + anywhere. + * Documentation/Base.gsdoc: Removed or slightly updated some + obsolete documentation on filesystem configuration. 2008-01-10 Richard Frith-Macdonald - * Source/inet_pton.c: - * Source/inet_ntop.c: - * Source/GSNetwork.h: - * Source/GNUmakefile: - * configure.ac: - * configure: - Avoid using mswindows getnameinfo function as it doesn't work for - Riccardo for some reason ... perhaps older mingw32 doesn't have it. + * Source/inet_pton.c: + * Source/inet_ntop.c: + * Source/GSNetwork.h: + * Source/GNUmakefile: + * configure.ac: + * configure: + Avoid using mswindows getnameinfo function as it doesn't work for + Riccardo for some reason ... perhaps older mingw32 doesn't have it. 2008-01-10 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Allow '../' to indicate a relocatable - resource. Add support for GlobalDefaults.plist. - * Source/NSUserDefaults.m: Improve documentation - * Documentation/ReleaseNotes.gsdoc: Note recent changes. - * Documentation/Base.gsdoc: Improve documentation - * Headers/Foundation/NSUserDefaults.h: Improve comments. + * Source/NSPathUtilities.m: Allow '../' to indicate a relocatable + resource. Add support for GlobalDefaults.plist. + * Source/NSUserDefaults.m: Improve documentation + * Documentation/ReleaseNotes.gsdoc: Note recent changes. + * Documentation/Base.gsdoc: Improve documentation + * Headers/Foundation/NSUserDefaults.h: Improve comments. 2008-01-10 Richard Frith-Macdonald - * Source/GSSocketStream.m: tweak TLS code - * Source/GSStream.m: simplify socket code - * configure.ac: enable gnu tls by default - * configure: regenerate + * Source/GSSocketStream.m: tweak TLS code + * Source/GSStream.m: simplify socket code + * configure.ac: enable gnu tls by default + * configure: regenerate 2008-01-09 Richard Frith-Macdonald @@ -20198,487 +20207,487 @@ 2008-01-07 Richard Frith-Macdonald - * Source/GSSocketStream.h: simplify socket address handling - * Source/GSSocketStream.m: ditto + more work on socks - * Source/GSStream.h: minor tweaks - * Source/GSStream.m:minor tweaks - * Source/unix/NSStream.m: simplified socket address handling - * Source/GSNetwork.h: add macro to get socket address length - * Source/GSHTTPAuthentication.m: Handle arg classh check in init - * Source/NSURLRequest.m: ditto - * Source/NSURLProtocol.m: attempt to add support for authentication + * Source/GSSocketStream.h: simplify socket address handling + * Source/GSSocketStream.m: ditto + more work on socks + * Source/GSStream.h: minor tweaks + * Source/GSStream.m:minor tweaks + * Source/unix/NSStream.m: simplified socket address handling + * Source/GSNetwork.h: add macro to get socket address length + * Source/GSHTTPAuthentication.m: Handle arg classh check in init + * Source/NSURLRequest.m: ditto + * Source/NSURLProtocol.m: attempt to add support for authentication 2008-01-07 Fred Kiefer - * Source/NSFileManager.m (-fileSystemAttributesAtPath:): Correct - block size for systems using statvfs(). + * Source/NSFileManager.m (-fileSystemAttributesAtPath:): Correct + block size for systems using statvfs(). 2008-01-05 Richard Frith-Macdonald - * Source/GSSocketStream.m: Try to honor protocol requested. - * Source/NSURLProtocol.m: Add https + * Source/GSSocketStream.m: Try to honor protocol requested. + * Source/NSURLProtocol.m: Add https 2008-01-05 Nicola Pero - * Source/Additions/GSXML.m ([GSXPathContext - -registerNamespaceWithPrefix:href:]): Added new method to support - namespaces in XPath expressions. - * Headers/Additions/GNUstepBase/GSXML.h: Same. + * Source/Additions/GSXML.m ([GSXPathContext + -registerNamespaceWithPrefix:href:]): Added new method to support + namespaces in XPath expressions. + * Headers/Additions/GNUstepBase/GSXML.h: Same. 2008-01-05 Richard Frith-Macdonald - * config/pathtls.m4: fixup form mingw32 - * configure: regenerate - * Source/GSSocketStream.m: Fix missing ifdefs + * config/pathtls.m4: fixup form mingw32 + * configure: regenerate + * Source/GSSocketStream.m: Fix missing ifdefs 2008-01-04 Riccardo Mottola - * Source/NSKeyValueObserving.m: fixed cc99ism + * Source/NSKeyValueObserving.m: fixed cc99ism 2008-01-04 Richard Frith-Macdonald - * Source/GSSocketStream.h: - * Source/GSSocketStream.m: - Add rudimentary gnutls support. Client sockets only, - no checking of certificates etc. + * Source/GSSocketStream.h: + * Source/GSSocketStream.m: + Add rudimentary gnutls support. Client sockets only, + no checking of certificates etc. 2007-01-04 Richard Frith-Macdonald - * config/pathtls.m4: New checks for gnu tls - * configure.ac: Add checks for gnu tls. - * config.mak.in: Take note of tls availability - * Headers/Additions/GNUstepBase/config.h.in: ditto - * base.make.in: ditto - * configure: regenerate - Preparatory checks for using gnu tls. + * config/pathtls.m4: New checks for gnu tls + * configure.ac: Add checks for gnu tls. + * config.mak.in: Take note of tls availability + * Headers/Additions/GNUstepBase/config.h.in: ditto + * base.make.in: ditto + * configure: regenerate + Preparatory checks for using gnu tls. 2008-01-04 Richard Frith-Macdonald - * Source/GSSocketStream.h: derived from GSStream.h - * Source/GSSocketStream.m: derived from GSStream.m - * Source/GNUmakefile: use new files - * Source/GSStream.h: remove code to GSSocketStream.h - * Source/GSStream.m: remove code to GSSocketStream.m - * Source/unix/NSStream.m: include GSSocketStream.h - * Source/win32/NSStream.m: include GSSocketStream.h - Minor restructuring for clarity. + * Source/GSSocketStream.h: derived from GSStream.h + * Source/GSSocketStream.m: derived from GSStream.m + * Source/GNUmakefile: use new files + * Source/GSStream.h: remove code to GSSocketStream.h + * Source/GSStream.m: remove code to GSSocketStream.m + * Source/unix/NSStream.m: include GSSocketStream.h + * Source/win32/NSStream.m: include GSSocketStream.h + Minor restructuring for clarity. 2008-01-04 Richard Frith-Macdonald - * Headers/Foundation/NSStream.h: Tweak comments. - * Source/GSNetwork.h: New file for common networking declarations. - * Source/GSStream.h: - * Source/GSStream.m: - * Source/unix/NSStream.m: - * Source/win32/NSStream.m: - Extract socket networking code for both unix and windows into - semi-abstract superclasses for input/output/server streams so - that we avoid huge duplication of code and can maintain the - socket code more easily. - Alter the behavior of the code on windows so that when the - other end closes the connection we should be able to read all - data in transit in the same way as on unix (ie don't close - the local end until a read/write actually fails). + * Headers/Foundation/NSStream.h: Tweak comments. + * Source/GSNetwork.h: New file for common networking declarations. + * Source/GSStream.h: + * Source/GSStream.m: + * Source/unix/NSStream.m: + * Source/win32/NSStream.m: + Extract socket networking code for both unix and windows into + semi-abstract superclasses for input/output/server streams so + that we avoid huge duplication of code and can maintain the + socket code more easily. + Alter the behavior of the code on windows so that when the + other end closes the connection we should be able to read all + data in transit in the same way as on unix (ie don't close + the local end until a read/write actually fails). 2008-01-03 Richard Frith-Macdonald - * Source/inet_pton.c: Add mswindows implementation of - inet_ntop() as well. + * Source/inet_pton.c: Add mswindows implementation of + inet_ntop() as well. 2008-01-02 Richard Frith-Macdonald - * Source/win32/GSFileHandle.m: rename to GSFileHandleWin32.m - * Source/win32/NSUserDefaultsWin32.m: rename to NSUserDefaults.m - * Source/win32/NSMessagePortWin32.m: rename to NSMessagePort.m - * Source/win32/NSStreamWin32.m: rename to NSStream.m - * Source/win32/NSMessagePortNameServerWin32.m: rename to - NSMessagePortNameServer.m - * Source/win32/GNUmakefile: Rename source files for consistency. + * Source/win32/GSFileHandle.m: rename to GSFileHandleWin32.m + * Source/win32/NSUserDefaultsWin32.m: rename to NSUserDefaults.m + * Source/win32/NSMessagePortWin32.m: rename to NSMessagePort.m + * Source/win32/NSStreamWin32.m: rename to NSStream.m + * Source/win32/NSMessagePortNameServerWin32.m: rename to + NSMessagePortNameServer.m + * Source/win32/GNUmakefile: Rename source files for consistency. 2008-01-01 Adam Fedor - * Tools/HTMLLinker.gsdoc: Readded + * Tools/HTMLLinker.gsdoc: Readded 2008-01-01 Adam Fedor - * Version 1.15.2 + * Version 1.15.2 2007-12-31 Richard Frith-Macdonald - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - Fix error sending NSPortMessage objects which have not reserved - space in their first component. + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + Fix error sending NSPortMessage objects which have not reserved + space in their first component. 2007-12-26 Richard Frith-Macdonald - * config/config.joinable.m: test for joinable threads. - * configure.ac: Add test for setrlimit and joinable threads - * configure: regenerate - * Headers/Additions/GNUstepBase/config.h.in: regenerate - * Source/NSThread.m: implement setting stack size for new - threads. Hack in workaround for versions of libobjc which - leak thread resource memory. + * config/config.joinable.m: test for joinable threads. + * configure.ac: Add test for setrlimit and joinable threads + * configure: regenerate + * Headers/Additions/GNUstepBase/config.h.in: regenerate + * Source/NSThread.m: implement setting stack size for new + threads. Hack in workaround for versions of libobjc which + leak thread resource memory. 2007-12-24 Adam Fedor - * configure.ac: Don't fail if ffcall trampolines don't work. - * configure: regnerate. + * configure.ac: Don't fail if ffcall trampolines don't work. + * configure: regnerate. 2007-12-24 Richard Frith-Macdonald - * Source/NSRunLoop.m: Perhaps a bit paranoid, but alter to recheck - all timers after any timer is fired, so we ar sure to pick up any - changes done to timer fire dates during the firing of a timer. - * Source/NSThread.m: Fix memory leak and correct thread startup - semantics to be like MacOS-X I hope. + * Source/NSRunLoop.m: Perhaps a bit paranoid, but alter to recheck + all timers after any timer is fired, so we ar sure to pick up any + changes done to timer fire dates during the firing of a timer. + * Source/NSThread.m: Fix memory leak and correct thread startup + semantics to be like MacOS-X I hope. 2007-12-22 Richard Frith-Macdonald - * Source/NSRunLoop.m: Fix error finding earliest timer for limit date. + * Source/NSRunLoop.m: Fix error finding earliest timer for limit date. 2007-12-21 Richard Frith-Macdonald - * Source/GSLocale.m: protect locale access with locks. + * Source/GSLocale.m: protect locale access with locks. 2007-12-21 David Ayers - * Source/NSPathUtilities.m (_POSIX_PTHREAD_SEMANTICS): Define to expose - POSIX compliant signatures for get(pw/gr)(nam/uid)_r. + * Source/NSPathUtilities.m (_POSIX_PTHREAD_SEMANTICS): Define to expose + POSIX compliant signatures for get(pw/gr)(nam/uid)_r. - * Headers/Additions/GNUstepBase/config.h.in, configure.ac (alloca.h): - Check for header. - * configure: Regenerate. - * Source/mframe.m, Source/cifframe.m, Source/NSConnection.m, - Source/callframe.m, Source/GSFormat.m: Include alloca.h where available. + * Headers/Additions/GNUstepBase/config.h.in, configure.ac (alloca.h): + Check for header. + * configure: Regenerate. + * Source/mframe.m, Source/cifframe.m, Source/NSConnection.m, + Source/callframe.m, Source/GSFormat.m: Include alloca.h where available. 2007-12-20 David Ayers - * Headers/Additions/GNUstepBase/GSLock.h: Include GSObjCRuntime.h for - GS_EXPORT declaration. - * Source/NSFileManager.m (_POSIX_PTHREAD_SEMANTICS): Define to expose - POSIX compliant signatures for get(pw/gr)(nam/uid)_r. + * Headers/Additions/GNUstepBase/GSLock.h: Include GSObjCRuntime.h for + GS_EXPORT declaration. + * Source/NSFileManager.m (_POSIX_PTHREAD_SEMANTICS): Define to expose + POSIX compliant signatures for get(pw/gr)(nam/uid)_r. 2007-12-19 Richard Frith-Macdonald - * configure.ac: Add checks for thread-safe versions of some standard - library functions. - * Headers/Additions/GNUstepBase/config.h.in: Regenerate - * configure: Regenerate - * Source/NSPathUtilities.m: - * Source/NSProcessInfo.m: - * Source/NSFileManager.m: - * Source/externs.m: - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/GSCategories.m: - * Source/Additions/GSLock.m: - * Headers/Foundation/NSObject.h: - * Headers/Additions/GNUstepBase/GSLock.h: - * Tools/defaults.m: - Use thread-safe variants of system functions or pretect unsafe ones - using gnustep_global_lock. - Fixes part (but not all) of bug #21320 + * configure.ac: Add checks for thread-safe versions of some standard + library functions. + * Headers/Additions/GNUstepBase/config.h.in: Regenerate + * configure: Regenerate + * Source/NSPathUtilities.m: + * Source/NSProcessInfo.m: + * Source/NSFileManager.m: + * Source/externs.m: + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/GSCategories.m: + * Source/Additions/GSLock.m: + * Headers/Foundation/NSObject.h: + * Headers/Additions/GNUstepBase/GSLock.h: + * Tools/defaults.m: + Use thread-safe variants of system functions or pretect unsafe ones + using gnustep_global_lock. + Fixes part (but not all) of bug #21320 2007-12-17 Fred Kiefer - * Source/NSKeyValueObserving.m - (-setKeys:triggerChangeNotificationsForDependentKey:): Correct the - key strategy of the map. + * Source/NSKeyValueObserving.m + (-setKeys:triggerChangeNotificationsForDependentKey:): Correct the + key strategy of the map. 2007-12-17 Adam Fedor - * Source/Makefile.postamble: Use DESTDIR over obsolete INSTALL_ROOT_DIR - * configure.ac, config/objc-con-autoload.m4, config/procfs.m4: Some - improvements for cross-compiling. + * Source/Makefile.postamble: Use DESTDIR over obsolete INSTALL_ROOT_DIR + * configure.ac, config/objc-con-autoload.m4, config/procfs.m4: Some + improvements for cross-compiling. 2007-12-15 Fred Kiefer - * Source/NSKeyValueObserving.m (-keyPathChanged:): Correct - forwarding of changes. + * Source/NSKeyValueObserving.m (-keyPathChanged:): Correct + forwarding of changes. 2007-12-15 Fred Kiefer - * Source/NSValueTransformer.m, - * Source/externs.m: Moved name of standard NSValueTransformers to - externs and corrected strings. + * Source/NSValueTransformer.m, + * Source/externs.m: Moved name of standard NSValueTransformers to + externs and corrected strings. 2007-12-15 Fred Kiefer - * Source/NSKeyValueObserving.m (-overrideSetterFor:): Replace - exception with log message. - * Source/NSKeyValueObserving.m (-addObserver:...context:): Use - original class as key for replacement. + * Source/NSKeyValueObserving.m (-overrideSetterFor:): Replace + exception with log message. + * Source/NSKeyValueObserving.m (-addObserver:...context:): Use + original class as key for replacement. 2007-12-15 Fred Kiefer - * Source/NSKeyValueObserving.m (-overrideSetterFor:): Manually - capitalize the string, as the NSString method capitalizedString - lowers all other characters. + * Source/NSKeyValueObserving.m (-overrideSetterFor:): Manually + capitalize the string, as the NSString method capitalizedString + lowers all other characters. 2007-12-14 Fred Kiefer - * Source/NSKeyValueObserving.m (-overrideSetterFor:): Made aware - of dependent key mapping. + * Source/NSKeyValueObserving.m (-overrideSetterFor:): Made aware + of dependent key mapping. 2007-12-14 Richard Frith-Macdonald - * Source/NSKeyValueObserving.m: Rewrite code for the subclass which - handles overriding of setters. Should only override the setters for - the keys which have been observed. Compiles but untested! + * Source/NSKeyValueObserving.m: Rewrite code for the subclass which + handles overriding of setters. Should only override the setters for + the keys which have been observed. Compiles but untested! 2007-12-11 Richard Frith-Macdonald - * Source/NSUserDefaults.m: catch any exception if som eone breaks our - lock on the defaults file. + * Source/NSUserDefaults.m: catch any exception if som eone breaks our + lock on the defaults file. 2007-12-11 Richard Frith-Macdonald - * Source/NSIndexSet.m: Test and debug ([-initWithCoder:]) - and ([-encodeWithCoder:]) methods for keyed archiving of sets + * Source/NSIndexSet.m: Test and debug ([-initWithCoder:]) + and ([-encodeWithCoder:]) methods for keyed archiving of sets with multiple index ranges. - Implement old-style coding/decoding as well. + Implement old-style coding/decoding as well. 2007-12-10 Chris Farber - * Source/NSKeyValueObserving.m: implement methods needed for gui - bindings. + * Source/NSKeyValueObserving.m: implement methods needed for gui + bindings. 2007-12-08 Richard Frith-Macdonald - * Source/NSRunLoop.m: Deal with mutation of timers array during - firing of a timer. + * Source/NSRunLoop.m: Deal with mutation of timers array during + firing of a timer. 2007-12-07 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSConfig.h.in: - * Headers/Foundation/NSString.h: - declare unichar as uint16_t + * Headers/Additions/GNUstepBase/GSConfig.h.in: + * Headers/Foundation/NSString.h: + declare unichar as uint16_t 2007-12-07 Richard Frith-Macdonald - * Source/NSRunLoop.m: Keep timers unordered and check all of them - each time round ... to avoid bug where a timer is added to more - than one run loop mode and firing in one mode could result in badly - ordered timers in another mode. - Handle resetting of time for repeating timers. - Allow timeout handler callbacks to use ([-setFireDate:]) and have - it honoured. - * Source/NSTimer.m: Remove resetting of fire date from ([-fire]) - and move it to the run loop for MacOS-X compatibility. + * Source/NSRunLoop.m: Keep timers unordered and check all of them + each time round ... to avoid bug where a timer is added to more + than one run loop mode and firing in one mode could result in badly + ordered timers in another mode. + Handle resetting of time for repeating timers. + Allow timeout handler callbacks to use ([-setFireDate:]) and have + it honoured. + * Source/NSTimer.m: Remove resetting of fire date from ([-fire]) + and move it to the run loop for MacOS-X compatibility. 2007-12-06 Richard Frith-Macdonald - * Source/NSRunLoop.m: Report the current mode when producing detailed - debug output, for better tracking of problems. + * Source/NSRunLoop.m: Report the current mode when producing detailed + debug output, for better tracking of problems. 2007-12-06 Richard Frith-Macdonald - * Source/NSException.m: fix error reporting module containing code - and limit the length of the stack trace. + * Source/NSException.m: fix error reporting module containing code + and limit the length of the stack trace. 2007-12-06 Richard Frith-Macdonald - * Source/NSURL.m: Increase detail of information about bad URL string - on initialisation. Only output debug info if --GNU-Debug=dflt + * Source/NSURL.m: Increase detail of information about bad URL string + on initialisation. Only output debug info if --GNU-Debug=dflt 2007-12-06 Richard Frith-Macdonald - * Source/NSException.m: honour environment variable for displaying - stack trace. + * Source/NSException.m: honour environment variable for displaying + stack trace. 2007-12-06 Richard Frith-Macdonald - * Source/NSIndexSet.m (-initWithCoder:): Implement guessed algorithm - for keyed archiving of sets with multiple index ranges. + * Source/NSIndexSet.m (-initWithCoder:): Implement guessed algorithm + for keyed archiving of sets with multiple index ranges. 2007-12-06 Fred Kiefer - * Source/NSIndexSet.m (-initWithCoder:): Fix wrong method in last - change. + * Source/NSIndexSet.m (-initWithCoder:): Fix wrong method in last + change. 2007-12-05 Richard Frith-Macdonald - * Source/NSException.m: Add new MacOS-X method and improve stack trace - code. - * Source/NSXMLParser.m Add include for NSDictionary. - * Documentation/Base.gsdoc: Improve documentation of stack trace. - * Headers/Foundation/NSException.h: Add new MacOS-X method. + * Source/NSException.m: Add new MacOS-X method and improve stack trace + code. + * Source/NSXMLParser.m Add include for NSDictionary. + * Documentation/Base.gsdoc: Improve documentation of stack trace. + * Headers/Foundation/NSException.h: Add new MacOS-X method. 2007-12-05 David Ayers - * Source/NSDecimalNumber.m: (isinf,isnan,isinff,isnanf): Remove. - (GSIsNAN,GSIsInf): Attempt a more portable approach with using - _ISOC99_SOURCE which is also supported by some BSD's and possibly - Solaris. + * Source/NSDecimalNumber.m: (isinf,isnan,isinff,isnanf): Remove. + (GSIsNAN,GSIsInf): Attempt a more portable approach with using + _ISOC99_SOURCE which is also supported by some BSD's and possibly + Solaris. 2007-12-04 Richard Frith-Macdonald - * Source/NSFileManager.h: move includes around to fix bug #21718 + * Source/NSFileManager.h: move includes around to fix bug #21718 2007-12-03 David Ayers - * Source/NSDecimalNumber.m: (isinf,isnan,isinff,isnanf): - Temporary empty definitions of C99 macros for environments - which do not define them. + * Source/NSDecimalNumber.m: (isinf,isnan,isinff,isnanf): + Temporary empty definitions of C99 macros for environments + which do not define them. 2007-12-03 Fred Kiefer - * Source/NSIndexSet.m (-initWithCoder:, -encodeWithCoder) - * Source/NSData.m (NSMutableData-initWithCoder:, - -encodeWithCoder): Add some keyed encoding/decoding. + * Source/NSIndexSet.m (-initWithCoder:, -encodeWithCoder) + * Source/NSData.m (NSMutableData-initWithCoder:, + -encodeWithCoder): Add some keyed encoding/decoding. 2007-12-03 Richard Frith-Macdonald - * Source/NSDebug.m: - * Source/GSPrivate.h: - * Source/NSException.m: - * Source/NSThread.m: - Rewrite some stackframe handling code for greater efficiency. - When raising an exception, just get the current stack and don't - bother translating addresses to method/function information until - needed by the -description method. Improves performance of - exception handling and eliminates the possibility of a recursive - exception due to a problem in the stacktrace code. + * Source/NSDebug.m: + * Source/GSPrivate.h: + * Source/NSException.m: + * Source/NSThread.m: + Rewrite some stackframe handling code for greater efficiency. + When raising an exception, just get the current stack and don't + bother translating addresses to method/function information until + needed by the -description method. Improves performance of + exception handling and eliminates the possibility of a recursive + exception due to a problem in the stacktrace code. 2007-12-02 David Ayers - * Source/NSDecimal.m (GSDecimalDouble): Use NAN when available. - * Source/NSDecimalNumber.m ([initWithBytes:objCType:]): Implement - initialization with scalar types. Use GSPrivateDefaultLocale - to initialze intermediate string to match expectations of - initWithString. - (NSDecimalNumberClass): Added local class cache. - ([+initialize]): Initialize new cache. - ([-compare]): Test for all subclasses instead of only NSDecimalNumber - instances. - - * Source/NSCalendarDate.m: Add explicit include of NSDictionary.h. - * Source/NSNotification.m: Ditto. - * Source/NSURLResponse.m: Ditto. Use available dictionary declartion. - * Source/NSURLProtocol.m: Add explicit import of NSData.h. - * Source/NSSerializer.m: Add explicit import of NSEnumerator.h. - * Source/NSURLConnection.m - ([-initWithResponsePointer:andErrorPointer:]): Add declaration. - - * Source/NSKeyValueMutableArray.m: Various non-functional variable - and parameter renames to avoid bogus compiler warnings. - * Source/NSKeyValueMutableSet.m: Ditto. + * Source/NSDecimal.m (GSDecimalDouble): Use NAN when available. + * Source/NSDecimalNumber.m ([initWithBytes:objCType:]): Implement + initialization with scalar types. Use GSPrivateDefaultLocale + to initialze intermediate string to match expectations of + initWithString. + (NSDecimalNumberClass): Added local class cache. + ([+initialize]): Initialize new cache. + ([-compare]): Test for all subclasses instead of only NSDecimalNumber + instances. + + * Source/NSCalendarDate.m: Add explicit include of NSDictionary.h. + * Source/NSNotification.m: Ditto. + * Source/NSURLResponse.m: Ditto. Use available dictionary declartion. + * Source/NSURLProtocol.m: Add explicit import of NSData.h. + * Source/NSSerializer.m: Add explicit import of NSEnumerator.h. + * Source/NSURLConnection.m + ([-initWithResponsePointer:andErrorPointer:]): Add declaration. + + * Source/NSKeyValueMutableArray.m: Various non-functional variable + and parameter renames to avoid bogus compiler warnings. + * Source/NSKeyValueMutableSet.m: Ditto. 2007-11-30 Richard Frith-Macdonald - * Tools/gdomap.h: fix typo + * Tools/gdomap.h: fix typo 2007-11-29 Marcus Muller - * Source/NSKeyValueCoding.m: Make backward compatibility work with - situations where we have classes using both new and old APIs in the - same executable. + * Source/NSKeyValueCoding.m: Make backward compatibility work with + situations where we have classes using both new and old APIs in the + same executable. 2007-11-29 Richard Frith-Macdonald - * Source/GSLocale.m: - * Source/NSTimeZone.m: - * Source/NSNetServices.m: - * Source/NSURLCredential.m: - * Source/NSPortCoder.m: - * Source/NSURLAuthenticationChallenge.m: - * Source/NSKeyValueCoding.m: - * Source/NSBundle.m: - * Source/NSURLHandle.m: - * Source/NSPropertyList.m: - * Source/NSAffineTransform.m: - * Source/GSRunLoopWatcher.m: - * Source/NSUserDefaults.m: - * Source/GSArray.m: - * Source/GSFFCallInvocation.m: - * Source/NSArray.m: - * Source/GSStream.m: - * Source/NSDebug.m: - * Source/unix/NSStream.m: - * Source/NSKeyedUnarchiver.m: - * Source/GSConcreteValue.m: - * Source/NSURLDownload.m: - * Source/GSHTTPURLHandle.m: - * Source/NSURLCredentialStorage.m: - * Source/GSFFIInvocation.m: - * Source/GSDictionary.m: - * Source/GSCountedSet.m: - * Source/NSUnarchiver.m: - * Source/win32/NSStreamWin32.m: - * Source/NSURLResponse.m: - * Source/NSURLProtocol.m: - * Source/NSURLCache.m: - * Source/GSAttributedString.m: - * Source/NSException.m: - * Source/NSURL.m: - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/GSInsensitiveDictionary.m: - * Source/GSSet.m: - * Source/NSConnection.m: - * Source/GSString.m: - * Source/NSHost.m: - * Source/NSURLProtectionSpace.m: - * Source/GSValue.m: - * Source/NSDictionary.m: - * Source/GSHTTPAuthentication.m: - * Source/NSURLRequest.m: - * Source/NSCountedSet.m: - * Source/GSFormat.m: - * Source/GSFileHandle.m: - * Source/NSSet.m: - * Source/NSArchiver.m: - * Source/NSPortNameServer.m: - * Source/GSFTPURLHandle.m: - * Source/NSEnumerator.m: - * Source/GSURLPrivate.h: - * Source/NSURLConnection.m: - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSFileManager.h: - * Headers/Foundation/NSUtilities.h: - * Tools/defaults.m: - * Tools/make_strings/make_strings.m: - * Tools/make_strings/StringsEntry.m: - * Testing/nstimezone.m: - * Testing/nsarray.m: - * Testing/nsprocessinfo.m: - * Testing/nsdictionary.m: - * Testing/nsset.m: - * Testing/nsarchiver.m: - * Testing/call.m: - * Testing/benchmark.m: - * Testing/nsbundle.m: - Remove use of deprecated NSUtilities.h header, and add explicit - includes of NSDictionary.h, NSEnumerator.h etc. + * Source/GSLocale.m: + * Source/NSTimeZone.m: + * Source/NSNetServices.m: + * Source/NSURLCredential.m: + * Source/NSPortCoder.m: + * Source/NSURLAuthenticationChallenge.m: + * Source/NSKeyValueCoding.m: + * Source/NSBundle.m: + * Source/NSURLHandle.m: + * Source/NSPropertyList.m: + * Source/NSAffineTransform.m: + * Source/GSRunLoopWatcher.m: + * Source/NSUserDefaults.m: + * Source/GSArray.m: + * Source/GSFFCallInvocation.m: + * Source/NSArray.m: + * Source/GSStream.m: + * Source/NSDebug.m: + * Source/unix/NSStream.m: + * Source/NSKeyedUnarchiver.m: + * Source/GSConcreteValue.m: + * Source/NSURLDownload.m: + * Source/GSHTTPURLHandle.m: + * Source/NSURLCredentialStorage.m: + * Source/GSFFIInvocation.m: + * Source/GSDictionary.m: + * Source/GSCountedSet.m: + * Source/NSUnarchiver.m: + * Source/win32/NSStreamWin32.m: + * Source/NSURLResponse.m: + * Source/NSURLProtocol.m: + * Source/NSURLCache.m: + * Source/GSAttributedString.m: + * Source/NSException.m: + * Source/NSURL.m: + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/GSInsensitiveDictionary.m: + * Source/GSSet.m: + * Source/NSConnection.m: + * Source/GSString.m: + * Source/NSHost.m: + * Source/NSURLProtectionSpace.m: + * Source/GSValue.m: + * Source/NSDictionary.m: + * Source/GSHTTPAuthentication.m: + * Source/NSURLRequest.m: + * Source/NSCountedSet.m: + * Source/GSFormat.m: + * Source/GSFileHandle.m: + * Source/NSSet.m: + * Source/NSArchiver.m: + * Source/NSPortNameServer.m: + * Source/GSFTPURLHandle.m: + * Source/NSEnumerator.m: + * Source/GSURLPrivate.h: + * Source/NSURLConnection.m: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSFileManager.h: + * Headers/Foundation/NSUtilities.h: + * Tools/defaults.m: + * Tools/make_strings/make_strings.m: + * Tools/make_strings/StringsEntry.m: + * Testing/nstimezone.m: + * Testing/nsarray.m: + * Testing/nsprocessinfo.m: + * Testing/nsdictionary.m: + * Testing/nsset.m: + * Testing/nsarchiver.m: + * Testing/call.m: + * Testing/benchmark.m: + * Testing/nsbundle.m: + Remove use of deprecated NSUtilities.h header, and add explicit + includes of NSDictionary.h, NSEnumerator.h etc. 2007-11-29 Richard Frith-Macdonald - * Source/NSKeyValueCoding.m: Remove erroneous check for nil argument - in obsolete method ([takeValue:forKey:]). + * Source/NSKeyValueCoding.m: Remove erroneous check for nil argument + in obsolete method ([takeValue:forKey:]). 2007-11-28 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Improve code for folding header lines - to try to make sure long values don't go beyond the 78 character - limit. + * Source/Additions/GSMime.m: Improve code for folding header lines + to try to make sure long values don't go beyond the 78 character + limit. 2007-11-26 Richard Frith-Macdonald - * Source/Additions/GSXML.m: Make check for apple property lists - more tolerant. + * Source/Additions/GSXML.m: Make check for apple property lists + more tolerant. 2007-11-25 Richard Frith-Macdonald - * Headers/Foundation/NSThread.h: Add new methods from MacOS 10.5 - Add new ivars to match. Add _reserved to preserve binary - compatibility over future changes. Make all ivars private. - * Source/NSThread.m: Implement some new MacOS-5 stuff and add stubs - for stack size and thread cancellation. - * Source/NSException.m Implement ([NSThread+callStackReturnAddresses]) - Restructure a little to avoid problems when building without debug. + * Headers/Foundation/NSThread.h: Add new methods from MacOS 10.5 + Add new ivars to match. Add _reserved to preserve binary + compatibility over future changes. Make all ivars private. + * Source/NSThread.m: Implement some new MacOS-5 stuff and add stubs + for stack size and thread cancellation. + * Source/NSException.m Implement ([NSThread+callStackReturnAddresses]) + Restructure a little to avoid problems when building without debug. 2007-11-09 Adam Fedor - * Version 1.15.1 + * Version 1.15.1 2007-11-06 Roland Schwingel @@ -20686,16 +20695,16 @@ 2007-11-05 Richard Frith-Macdonald - * Source/NSXML.m: Make sloppy parser available for internal use when - parsing bad xml produced by Apple tools. - * Source/NSPropertyList.m: Use GSSloppyXMLParser if normal xml2 based - parsing fails due to Ap[ple4's inclusioon of illegal characters in - the XML. + * Source/NSXML.m: Make sloppy parser available for internal use when + parsing bad xml produced by Apple tools. + * Source/NSPropertyList.m: Use GSSloppyXMLParser if normal xml2 based + parsing fails due to Ap[ple4's inclusioon of illegal characters in + the XML. 2007-10-31 Richard Frith-Macdonald - * Source/NSUserDefaults.m: ([setBoolForKey:]) changed to store YES - or NO as a string for MacOS-X compatibility. + * Source/NSUserDefaults.m: ([setBoolForKey:]) changed to store YES + or NO as a string for MacOS-X compatibility. 2007-10-30 Adam Fedor @@ -20704,2641 +20713,2641 @@ 2007-10-11 Wolfgang Lux * Source/NSUndoManager: Prevent incorrect posting of notifications - during undo/redo and avoid unnecessary creation of undo - groups. + during undo/redo and avoid unnecessary creation of undo + groups. 2007-10-10 Fred Kiefer - * Source/NSDecimal.m (NSDecimalMultiplyByPowerOf10): Move check of - over/underflow after copy. - Patch by Mark Tracy . + * Source/NSDecimal.m (NSDecimalMultiplyByPowerOf10): Move check of + over/underflow after copy. + Patch by Mark Tracy . 2007-10-03 Richard Frith-Macdonald - * Source/NSData.m: Fix ([-classForCoder:]) to return base class of - cluster (bug #21133) - * Source/cifframe.m: avoid compiler warnings (bug #16996) + * Source/NSData.m: Fix ([-classForCoder:]) to return base class of + cluster (bug #21133) + * Source/cifframe.m: avoid compiler warnings (bug #16996) 2007-09-25 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Decode headers as latin1 by default if - parsing http rather than mime. + * Source/Additions/GSMime.m: Decode headers as latin1 by default if + parsing http rather than mime. 2007-09-14 Richard Frith-Macdonald - Update files to use LGPL3 and GPL3 licenses. + Update files to use LGPL3 and GPL3 licenses. 2007-09-09 Richard Frith-Macdonald - * Source/NSNotificationCenter.m: Wrap posting of notification in - exception handler to log exceptions. + * Source/NSNotificationCenter.m: Wrap posting of notification in + exception handler to log exceptions. 2007-08-24 23:53-EDT Gregory John Casamento - * Headers/Foundation/NSPort.h: Removed commented out declaration - in the header. + * Headers/Foundation/NSPort.h: Removed commented out declaration + in the header. 2007-08-04 David Ayers - * Source/GSHTTPURLHandle.m (writeKeyCallBacks): Use retained - callbacks for keys. + * Source/GSHTTPURLHandle.m (writeKeyCallBacks): Use retained + callbacks for keys. 2007-08-02 Richard Frith-Macdonald - * Source/NSProcessInfo.m: Private method to check existence of - process. + * Source/NSProcessInfo.m: Private method to check existence of + process. 2007-07-31 Richard Frith-Macdonald - * Headers/Foundation/NSRange.h: - * Headers/Foundation/NSException.h: - * Headers/Foundation/NSGeometry.h: - * Headers/Foundation/NSAutoreleasePool.h: - * Headers/Additions/GNUstepBase/preface.h.in: - * macosx/GNUstepBase/preface.h: - Use __typeof__ rather than typeof so that if the header is included - in user code which is compiled with a flag to disalow typeof, the - code will still work. + * Headers/Foundation/NSRange.h: + * Headers/Foundation/NSException.h: + * Headers/Foundation/NSGeometry.h: + * Headers/Foundation/NSAutoreleasePool.h: + * Headers/Additions/GNUstepBase/preface.h.in: + * macosx/GNUstepBase/preface.h: + Use __typeof__ rather than typeof so that if the header is included + in user code which is compiled with a flag to disalow typeof, the + code will still work. 2007-07-25 Fred Kiefer - * Headers/Foundation/NSErrorRecoveryAttempting.h: Add new file. - * Source/GNUmakefile: Install this file. + * Headers/Foundation/NSErrorRecoveryAttempting.h: Add new file. + * Source/GNUmakefile: Install this file. 2007-07-22 Richard Frith-Macdonald - * Tools/AGSOutput.m: escape angle brackets in types of function - arguments. + * Tools/AGSOutput.m: escape angle brackets in types of function + arguments. 2007-07-19 Riccardo Mottola - * Source/NSKeyValueCoding.m: - * Source/NSKeyValueMutableSet.m: - Code cleanup and C99-ism fixes + * Source/NSKeyValueCoding.m: + * Source/NSKeyValueMutableSet.m: + Code cleanup and C99-ism fixes 2007-07-14 Richard Frith-Macdonald - * Source/NSKeyValueCoding.m: - * Source/NSKeyValueMutableSet.m: - * Source/NSArray.m: - * Source/NSKeyValueMutableArray.m: - Whitespace and initialisation tidyups. + * Source/NSKeyValueCoding.m: + * Source/NSKeyValueMutableSet.m: + * Source/NSArray.m: + * Source/NSKeyValueMutableArray.m: + Whitespace and initialisation tidyups. 2007-07-11 Richard Frith-Macdonald - * Source/NSString.m: For MacOS-X compatibility, alter -propertyList - to have the undocumented behavior of parsing strings file format - too. + * Source/NSString.m: For MacOS-X compatibility, alter -propertyList + to have the undocumented behavior of parsing strings file format + too. 2007-07-10 Chris Farber - * Source/NSArray.m ([NSArray -objectsAtIndexes:]): New method. - ([NSMutableArray -removeObjectsAtIndexes:]): New method. - * Headers/Foundation/NSArray.h: Added the new methods. + * Source/NSArray.m ([NSArray -objectsAtIndexes:]): New method. + ([NSMutableArray -removeObjectsAtIndexes:]): New method. + * Headers/Foundation/NSArray.h: Added the new methods. - * Source/NSKeyValueCoding.m ([-mutableArrayValueForKey:]): New - method. ([-mutableArrayValueForKeyPath:]): New method. - ([-mutableSetValueForKey:]): New method. - ([-mutableSetValueForKeyPath:]): New method. - ([-valueForUndefinedKey:]): Include key and object in the reason - of an NSUndefinedKeyException. - * Headers/Foundation/NSKeyValueCoding.h: Added the new methods. + * Source/NSKeyValueCoding.m ([-mutableArrayValueForKey:]): New + method. ([-mutableArrayValueForKeyPath:]): New method. + ([-mutableSetValueForKey:]): New method. + ([-mutableSetValueForKeyPath:]): New method. + ([-valueForUndefinedKey:]): Include key and object in the reason + of an NSUndefinedKeyException. + * Headers/Foundation/NSKeyValueCoding.h: Added the new methods. - * Source/NSKeyValueMutableSet.m: New file. - * Source/NSKeyValueMutableArray.m: New file. + * Source/NSKeyValueMutableSet.m: New file. + * Source/NSKeyValueMutableArray.m: New file. 2007-07-10 Richard Frith-Macdonald - * Source/win32/GSFileHandleWin32.m: Fixup for pipes as suggested by - Matthew Jiminez. + * Source/win32/GSFileHandleWin32.m: Fixup for pipes as suggested by + Matthew Jiminez. 2007-06-26 Richard Frith-Macdonald - * Source/NSKeyedArchiver.m: - * Source/NSKeyedUnarchiver.m: - Implement support for arrays of objc types to fix bug #20268 + * Source/NSKeyedArchiver.m: + * Source/NSKeyedUnarchiver.m: + Implement support for arrays of objc types to fix bug #20268 2007-06-21 Richard Frith-Macdonald - Rewrite code to support parsing of predicates containing - all the '%' format strings (as suggested by Fred). + Rewrite code to support parsing of predicates containing + all the '%' format strings (as suggested by Fred). 2007-06-20 Richard Frith-Macdonald - * Source/NSPredicate.m: Fix bug #20215 ... scanning of greater than - and less than operators. - Add code to attempt to support parsing of predicates containing - all the '%' format strings ... untested. + * Source/NSPredicate.m: Fix bug #20215 ... scanning of greater than + and less than operators. + Add code to attempt to support parsing of predicates containing + all the '%' format strings ... untested. 2007-06-15 Adam Fedor - * Source/NSTimeZone.m ([NSTimeZone +timeZoneArray]): Skip .tab - files when looking for zones. + * Source/NSTimeZone.m ([NSTimeZone +timeZoneArray]): Skip .tab + files when looking for zones. 2007-06-14 Richard Frith-Macdonald - * Source/NSNumber.m: Implement ([isEqualToValue:]) - * Source/NSPredicate.m: Fix bug #20169 + * Source/NSNumber.m: Implement ([isEqualToValue:]) + * Source/NSPredicate.m: Fix bug #20169 2007-06-13 Richard Frith-Macdonald - * Source/NSURLHandle.m: ([loadInForeground]) return as soon as load - is complete, rather than waiting for up to a second. + * Source/NSURLHandle.m: ([loadInForeground]) return as soon as load + is complete, rather than waiting for up to a second. 2007-06-12 Fred Kiefer - * Source/NSPredicate.m: Fake like and matches by using - compare:options: and reverted change for string equality. + * Source/NSPredicate.m: Fake like and matches by using + compare:options: and reverted change for string equality. 2007-06-11 Fred Kiefer - * Source/NSPredicate.m: Improved predicate parsing. Handle more - alternate key strings, implemented BETWEEN, use compare:options: - for string equality test and handle in for collections. + * Source/NSPredicate.m: Improved predicate parsing. Handle more + alternate key strings, implemented BETWEEN, use compare:options: + for string equality test and handle in for collections. 2007-06-09 Fred Kiefer - * Source/NSPredicate.m: Improved predicate parsing. + * Source/NSPredicate.m: Improved predicate parsing. 2007-06-08 Richard Frith-Macdonald - * Source/GSString.m Fix bug getting cString from literal string - with illegal (non-ascii) characters. - * Source/NSKeyValueCoding.m: Fix backward compatibility issue with - NSUnknownKeyException. + * Source/GSString.m Fix bug getting cString from literal string + with illegal (non-ascii) characters. + * Source/NSKeyValueCoding.m: Fix backward compatibility issue with + NSUnknownKeyException. 2007-06-06 Richard Frith-Macdonald - * Source/NSKeyValueCoding.m: Use UTF8 rather than ASCII + * Source/NSKeyValueCoding.m: Use UTF8 rather than ASCII 2007-06-03 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: define MSG_DONTWAIT as zero if it's not - defined ... it should not be needed anyway if the socket is already - non-blocking. + * Source/GSHTTPURLHandle.m: define MSG_DONTWAIT as zero if it's not + defined ... it should not be needed anyway if the socket is already + non-blocking. 2007-06-03 Richard Frith-Macdonald - * Source/win32/GSFileHandleWin32.m: Clean up indentation issues etc. + * Source/win32/GSFileHandleWin32.m: Clean up indentation issues etc. 2007-06-01 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Fix problem where any header starting - with 'http' would be mangled. + * Source/Additions/GSMime.m: Fix problem where any header starting + with 'http' would be mangled. 2007-05-31 Richard Frith-Macdonald - * Tools/NSKeyValueCoding.m: Minor fix for backward compatibility in - ([setNilValueForKey:]). + * Tools/NSKeyValueCoding.m: Minor fix for backward compatibility in + ([setNilValueForKey:]). 2007-05-30 Richard Frith-Macdonald - * Tools/gdomap.m: Don't trap abort signal. + * Tools/gdomap.m: Don't trap abort signal. 2007-05-29 Richard Frith-Macdonald - * Source/NSData.m: when unable to open a file, log should be debug - level rather than warn level. + * Source/NSData.m: when unable to open a file, log should be debug + level rather than warn level. 2007-05-23 Fred Kiefer - * Headers/Foundation/NSCompoundPredicate.h: Add some common ivars. - * Headers/Foundation/NSExpression.h:Add some common ivar. - * Source/NSPredicate.m: Implement a lot of missing functionality - for the predicate and expression classes. Clean up formatting. + * Headers/Foundation/NSCompoundPredicate.h: Add some common ivars. + * Headers/Foundation/NSExpression.h:Add some common ivar. + * Source/NSPredicate.m: Implement a lot of missing functionality + for the predicate and expression classes. Clean up formatting. 2007-05-16 Richard Frith-Macdonald - * Headers/Foundation/NSNetServices.h: fix bug #19872 + * Headers/Foundation/NSNetServices.h: fix bug #19872 2007-05-16 Richard Frith-Macdonald - * Source/NSURLConnection.m: Cancel when deallocating. - * Source/NSURLProtocol.m: Make sure load is stopped if an error - occurs. + * Source/NSURLConnection.m: Cancel when deallocating. + * Source/NSURLProtocol.m: Make sure load is stopped if an error + occurs. 2007-05-15 Richard Frith-Macdonald - * Source/NSException.m: Permit some recursion in handling uncaught - exceptions so that different exception handlers can be tried ... - in particular, so that the gui library exception handler can - fall back to using the base library handler and get a printout of - the exception details when the program terminates. + * Source/NSException.m: Permit some recursion in handling uncaught + exceptions so that different exception handlers can be tried ... + in particular, so that the gui library exception handler can + fall back to using the base library handler and get a printout of + the exception details when the program terminates. 2007-05-15 Richard Frith-Macdonald - * Source/NSURLConnection.m: Minor simplifications. - * Source/NSURLProtocol.m: Perform automatic redirect from - http://host to http://host/ to standardise URL used for caching as - noted in Apple documentation. - * Source/NSURLRequest.m: use case insensitive dictionary for headers. - * Source/Additions/GSMime.m: fix error makeing tokens lowercase. + * Source/NSURLConnection.m: Minor simplifications. + * Source/NSURLProtocol.m: Perform automatic redirect from + http://host to http://host/ to standardise URL used for caching as + noted in Apple documentation. + * Source/NSURLRequest.m: use case insensitive dictionary for headers. + * Source/Additions/GSMime.m: fix error makeing tokens lowercase. 2007-05-14 Richard Frith-Macdonald - * Source/Additions/GSInsensitiveDictionary.m: For internal use storing - values on case insensitive keys. - * Source/Additions/GNUmakefile: Build insensitive dictionaries. - * Source/GSPrivate.h: Make insensitive dictionaries available. - * Source/NSURLResponse.m: Use insensitive dictionaries. - * Source/NSURLProtocol.m: Clean up. - * Source/Additions/GSMime.m: New stuff to retain case information. - * Headers/Additions/GNUstepBase/GSMime.h: ditto. + * Source/Additions/GSInsensitiveDictionary.m: For internal use storing + values on case insensitive keys. + * Source/Additions/GNUmakefile: Build insensitive dictionaries. + * Source/GSPrivate.h: Make insensitive dictionaries available. + * Source/NSURLResponse.m: Use insensitive dictionaries. + * Source/NSURLProtocol.m: Clean up. + * Source/Additions/GSMime.m: New stuff to retain case information. + * Headers/Additions/GNUstepBase/GSMime.h: ditto. 2007-05-14 Richard Frith-Macdonald - * Source/NSURLProtocol.m: - * Source/NSURLRequest.m: - * Source/NSURLConnection.m: - Added tweaks for redirection andvarious comments. + * Source/NSURLProtocol.m: + * Source/NSURLRequest.m: + * Source/NSURLConnection.m: + Added tweaks for redirection andvarious comments. 2007-05-14 Richard Frith-Macdonald - * Source/Additions/Unicode.m: - Avoid using NSString while printing warning about iconv problems ... - try to avoid possible recursion etc. + * Source/Additions/Unicode.m: + Avoid using NSString while printing warning about iconv problems ... + try to avoid possible recursion etc. 2007-05-13 Richard Frith-Macdonald - * Source/NSURLProtocol.m: Replace mystep response parsing code with - more reliable/standard-compliant stuff adapted from NSURLHandle.m + * Source/NSURLProtocol.m: Replace mystep response parsing code with + more reliable/standard-compliant stuff adapted from NSURLHandle.m 2007-05-12 Richard Frith-Macdonald - * Source/GSStream.h: New runloop management - * Source/GSStream.m: Support scheduling in multiple runloops to match - documented MacOS-X behavior. Trigger instant event on error or eof. - * Source/unix/NSStream.m: Don't send error and eof events asap, defer - until the runloop runs as this is how MacOS-X behaves. - * Source/win32/NSStreamWin32.m: ditto. - * Source/unix/GSRunLoopCtxt.m: Fix failure to trigger immediate events - when there are no non-immediate input sources in th loop. Fix busy - poll when there are no non-immediate sources in the loop. - * Source/win32/GSRunLoopCtxt.m: ditto + * Source/GSStream.h: New runloop management + * Source/GSStream.m: Support scheduling in multiple runloops to match + documented MacOS-X behavior. Trigger instant event on error or eof. + * Source/unix/NSStream.m: Don't send error and eof events asap, defer + until the runloop runs as this is how MacOS-X behaves. + * Source/win32/NSStreamWin32.m: ditto. + * Source/unix/GSRunLoopCtxt.m: Fix failure to trigger immediate events + when there are no non-immediate input sources in th loop. Fix busy + poll when there are no non-immediate sources in the loop. + * Source/win32/GSRunLoopCtxt.m: ditto 2007-05-12 Richard Frith-Macdonald - * Source/NSURLProtocol.m: Fix multiple release of headers. + * Source/NSURLProtocol.m: Fix multiple release of headers. 2007-05-11 Richard Frith-Macdonald - * Source/GSStream.m: - * Source/unix/NSStream.m: - * Source/win32/NSStreamWin32.m: - * Headers/Foundation/NSStream.h: - First hack at extensions to get address and port properties for - network streams. Use localhost if no host is given for connect. - * Source/GSFFIInvocation.m: - Attempt to use forward2 if available. - * Source/NSURLProtocol.m: - Fixup some problems with incorporation of code from mySTEP. + * Source/GSStream.m: + * Source/unix/NSStream.m: + * Source/win32/NSStreamWin32.m: + * Headers/Foundation/NSStream.h: + First hack at extensions to get address and port properties for + network streams. Use localhost if no host is given for connect. + * Source/GSFFIInvocation.m: + Attempt to use forward2 if available. + * Source/NSURLProtocol.m: + Fixup some problems with incorporation of code from mySTEP. 2007-05-11 Richard Frith-Macdonald - * Source/NSURLResponse.m: - * Source/NSURLProtocol.m: - * Source/NSURLRequest.m: - * Source/GSURLPrivate.h: - * Source/NSURLConnection.m: - Changes accidentally missed from update on 27th april. + * Source/NSURLResponse.m: + * Source/NSURLProtocol.m: + * Source/NSURLRequest.m: + * Source/GSURLPrivate.h: + * Source/NSURLConnection.m: + Changes accidentally missed from update on 27th april. 2007-05-02 Nicola Pero - * configure.ac: Set GNUSTEP_MAKEFILES to CURRENT_GNUSTEP_MAKEFILES - before sourcing GNUstep.sh. Fixes building when paths to hardcode - in the library are different from paths used when building, - typically a case when packaging. - * configure: Regenerated. + * configure.ac: Set GNUSTEP_MAKEFILES to CURRENT_GNUSTEP_MAKEFILES + before sourcing GNUstep.sh. Fixes building when paths to hardcode + in the library are different from paths used when building, + typically a case when packaging. + * configure: Regenerated. 2007-04-28 Richard Frith-Macdonald - * Source/thr-pthread.m: Set thread attributes detached to avoid memory - leak as suggested by Chris Ball + * Source/thr-pthread.m: Set thread attributes detached to avoid memory + leak as suggested by Chris Ball 2007-04-27 Richard Frith-Macdonald - * Source/NSBundle.m: Reformat for coding standards. Alter library - resource lookup to find correct version when multiple versions of - the base library are installed and the old unversioned api is used. - * Source/NSURLHandle.m: Scheduling tweak. - * Source/GSFFCallInvocation.m: Use forward2 if available. - * Source/GSFFIInvocation.m: Use forward2 if available. - * Source/NSURLRequest.m: Tidyups - * Source/NSURLConnection.m: Tidyups - * Source/NSURLProtocol.m: Incorporate some concrete protocols from - mySTEP ....needs rewriting and then testing. - * Headers/Foundation/NSURLRequest.h: Fix typos and improve comments. + * Source/NSBundle.m: Reformat for coding standards. Alter library + resource lookup to find correct version when multiple versions of + the base library are installed and the old unversioned api is used. + * Source/NSURLHandle.m: Scheduling tweak. + * Source/GSFFCallInvocation.m: Use forward2 if available. + * Source/GSFFIInvocation.m: Use forward2 if available. + * Source/NSURLRequest.m: Tidyups + * Source/NSURLConnection.m: Tidyups + * Source/NSURLProtocol.m: Incorporate some concrete protocols from + mySTEP ....needs rewriting and then testing. + * Headers/Foundation/NSURLRequest.h: Fix typos and improve comments. 2007-04-16 Richard Frith-Macdonald - * config/config.forward2.m: Test for forward2 function in runtime. - * configure.ac: Run forward2 test - * Headers/Additions/GNUstepBase/config.h.in: record forward2 test. - * configure: regenerate + * config/config.forward2.m: Test for forward2 function in runtime. + * configure.ac: Run forward2 test + * Headers/Additions/GNUstepBase/config.h.in: record forward2 test. + * configure: regenerate 2007-04-15 Richard Frith-Macdonald - * configure.ac: check for wide character support in printf - * config/config.wprintf.c: ditto - * configure: regenerate - * Headers/Additions/GNUstepBase/config.h.in: regenerate - * Source/NSString.m: Don't use wide char support if we don't have it. - Should fix bug #19587 + * configure.ac: check for wide character support in printf + * config/config.wprintf.c: ditto + * configure: regenerate + * Headers/Additions/GNUstepBase/config.h.in: regenerate + * Source/NSString.m: Don't use wide char support if we don't have it. + Should fix bug #19587 2007-04-15 Richard Frith-Macdonald - * Source/NSBundle.m: - ([+pathForResource:ofType:inRootPath:inDirectory:withVersion:]) - Tolerate nil/empty resource name for compatibility with MacOS-X - and to fix bug #19588 - * Source/NSPredicate.m: Implement ([-filterUsingPredicate:]) for - NSMutableArray. - * Headers/Foundation/NSPredicate.h: Add the - ([-filterUsingPredicate:]) method and document it. - * config/config.printf.c: use 'wide' field in info structure to - check that it exists. + * Source/NSBundle.m: + ([+pathForResource:ofType:inRootPath:inDirectory:withVersion:]) + Tolerate nil/empty resource name for compatibility with MacOS-X + and to fix bug #19588 + * Source/NSPredicate.m: Implement ([-filterUsingPredicate:]) for + NSMutableArray. + * Headers/Foundation/NSPredicate.h: Add the + ([-filterUsingPredicate:]) method and document it. + * config/config.printf.c: use 'wide' field in info structure to + check that it exists. 2007-04-13 Ricccardo Mottola - * Source/NSSortDescriptor.m : removed C99-ism + * Source/NSSortDescriptor.m : removed C99-ism 2007-04-13 Ricccardo Mottola - * Source/GSHTTPURLHandle.m : removed C99-ism + * Source/GSHTTPURLHandle.m : removed C99-ism 2007-04-13 Adam Fedor - * Version: Fix matching numeric version + * Version: Fix matching numeric version 2007-04-13 Richard Frith-Macdonald - * Source/GSFileHandle.m: ([-readDataOfLength:]) fix bug which could - cause short reads. + * Source/GSFileHandle.m: ([-readDataOfLength:]) fix bug which could + cause short reads. 2007-04-12 Adam Fedor - * Tool/HTMLLinker.m: Re-add. + * Tool/HTMLLinker.m: Re-add. - * Documentation/coding-standards.texi: Add info section - * Documentation/manual/manual.texi: Likewise (patch from - Marco Bardelli). - * gnustep-base-debug.spec.in: Remove + * Documentation/coding-standards.texi: Add info section + * Documentation/manual/manual.texi: Likewise (patch from + Marco Bardelli). + * gnustep-base-debug.spec.in: Remove - * gnustep-base.spec.in, Documentation/install.texi: Document - that gnustep-make 2.0.0 is required. + * gnustep-base.spec.in, Documentation/install.texi: Document + that gnustep-make 2.0.0 is required. 2007-04-12 Adam Fedor - * Version 1.15.0 + * Version 1.15.0 2007-04-12 Adam Fedor - * Version 1.14.0 + * Version 1.14.0 2007-04-11 Richard Frith-Macdonald - * Documentation/news.texi: - * Documentation/ReleaseNotes.gsdoc: - * Documentation/manual/Compliance.texi: - Add new stable release information and fixx a couple of documentation - errors. + * Documentation/news.texi: + * Documentation/ReleaseNotes.gsdoc: + * Documentation/manual/Compliance.texi: + Add new stable release information and fixx a couple of documentation + errors. 2007-04-11 Richard Frith-Macdonald - * Source/Additions/GSXML.m: - * Source/Additions/GSCompatibility.m: - * Source/Additions/GSMime.m: - * Headers/Foundation/NSString.h: - * Headers/Additions/GNUstepBase/GSCategories.h: - * Headers/Additions/GNUstepBase/Unicode.h: - More macos-x portability fixups. + * Source/Additions/GSXML.m: + * Source/Additions/GSCompatibility.m: + * Source/Additions/GSMime.m: + * Headers/Foundation/NSString.h: + * Headers/Additions/GNUstepBase/GSCategories.h: + * Headers/Additions/GNUstepBase/Unicode.h: + More macos-x portability fixups. 2007-04-01 Richard Frith-Macdonald - * Source/GSLocale.m: - * Source/Additions/Unicode.m: - * Headers/Foundation/NSString.h: - * Headers/Additions/GNUstepBase/Unicode.h: - Header/include fixups for macosx portability. + * Source/GSLocale.m: + * Source/Additions/Unicode.m: + * Headers/Foundation/NSString.h: + * Headers/Additions/GNUstepBase/Unicode.h: + Header/include fixups for macosx portability. 2007-03-30 Richard Frith-Macdonald - * Source/NSPredicate.m: ([-parseOr]) Use orPredicateWithSubpredicates - rather than andPredicateWithSubpredicates. Fix for bug #19446. - * Source/unix/NSStream.m: Fix memory leak. - * Source/NSPathUtilities.m: NSSearchPathForDirectoriesInDomains() - Don't include empty paths. + * Source/NSPredicate.m: ([-parseOr]) Use orPredicateWithSubpredicates + rather than andPredicateWithSubpredicates. Fix for bug #19446. + * Source/unix/NSStream.m: Fix memory leak. + * Source/NSPathUtilities.m: NSSearchPathForDirectoriesInDomains() + Don't include empty paths. 2007-03-25 Richard Frith-Macdonald - * Source/NSTimer.m: minor optimisation ... avoid unnecessary use of - autorelease by doing explicit release instead. + * Source/NSTimer.m: minor optimisation ... avoid unnecessary use of + autorelease by doing explicit release instead. 2007-03-22 Richard Frith-Macdonald - * Source/NSPathUtilities.m: NSTemporaryDirectory() don't raise - exception on error, just log a warning and return nil. - * Source/NSDateFormatter.m: When given an empty string to convert to - a date, just skip the conversion. + * Source/NSPathUtilities.m: NSTemporaryDirectory() don't raise + exception on error, just log a warning and return nil. + * Source/NSDateFormatter.m: When given an empty string to convert to + a date, just skip the conversion. 2007-03-21 Nicola Pero - * Source/NSBundle.m ([+initialize]): Removed unused check. + * Source/NSBundle.m ([+initialize]): Removed unused check. 2007-03-20 Nicola Pero - * Source/NSUserDefaults.m ([+standardUserDefaults]): Fixed bug - were the same enumerator variable was reused in the two nested - loops and language resources wouldn't be found. Optimized a - little by factoring some variables out of the inner loop. - Reorganized usage of information from the C locale so that we use - it whenever a language resource lookup can not be found and the C - locale information is precisely for that language, but not - otherwise. + * Source/NSUserDefaults.m ([+standardUserDefaults]): Fixed bug + were the same enumerator variable was reused in the two nested + loops and language resources wouldn't be found. Optimized a + little by factoring some variables out of the inner loop. + Reorganized usage of information from the C locale so that we use + it whenever a language resource lookup can not be found and the C + locale information is precisely for that language, but not + otherwise. 2007-03-19 Nicola Pero - * Tools/gsdoc.gsdoc: Removed reference to GNUSTEP_SYSTEM_ROOT; use - up-to-date variables such as GNUSTEP_SYSTEM_LIBRARY and - GNUSTEP_SYSTEM_DOC. - * Tools/gsdoc-1_0_1.rnc: Same change. - * Tools/gsdoc.7: Same change. - * Tools/gdomap.8: Same change. + * Tools/gsdoc.gsdoc: Removed reference to GNUSTEP_SYSTEM_ROOT; use + up-to-date variables such as GNUSTEP_SYSTEM_LIBRARY and + GNUSTEP_SYSTEM_DOC. + * Tools/gsdoc-1_0_1.rnc: Same change. + * Tools/gsdoc.7: Same change. + * Tools/gdomap.8: Same change. - * INSTALL: Updated. + * INSTALL: Updated. 2007-03-19 Richard Frith-Macdonald - * Source/NSDictionary.m: Correct errors in documentation about keys - being retained when they are in fact copied. + * Source/NSDictionary.m: Correct errors in documentation about keys + being retained when they are in fact copied. 2007-03-17 Adam Fedor - * config/config.trampoline.c: Check for proper CPU macro for Darwin - * configure.ac: Don't enable libffi by default on Darwin - (patches from Wolfgang Lux). + * config/config.trampoline.c: Check for proper CPU macro for Darwin + * configure.ac: Don't enable libffi by default on Darwin + (patches from Wolfgang Lux). 2007-03-17 Nicola Pero - * SSL/GNUmakefile: Install the SSL bundle in the versioned - gnustep-base resource directory. - * Source/NSFileHandle.m ([+sslClass]): Load the SSL bundle from - the versioned gnustep-base resource directory. + * SSL/GNUmakefile: Install the SSL bundle in the versioned + gnustep-base resource directory. + * Source/NSFileHandle.m ([+sslClass]): Load the SSL bundle from + the versioned gnustep-base resource directory. 2007-03-17 Nicola Pero - * Source/Makefile.postamble (before-uninstall): Remove GSConfig.h. + * Source/Makefile.postamble (before-uninstall): Remove GSConfig.h. 2007-03-17 Nicola Pero - * Source/NSBundle.m ([+bundleForLibrary:version:]): Fixed looking - up library resource bundle when no version is provided. + * Source/NSBundle.m ([+bundleForLibrary:version:]): Fixed looking + up library resource bundle when no version is provided. 2007-03-16 Richard Frith-Macdonald - * Source/unix/NSStream.m: - * Source/win32/NSStreamWin32.m: - Try to ensure that end of stream events are sent reliably. + * Source/unix/NSStream.m: + * Source/win32/NSStreamWin32.m: + Try to ensure that end of stream events are sent reliably. 2007-03-15 Richard Frith-Macdonald - * Source/NSPropertyList.m: ([GSBinaryPLParser-readCountAt:]) - Handle counts for objects larger than 64KB correctly. + * Source/NSPropertyList.m: ([GSBinaryPLParser-readCountAt:]) + Handle counts for objects larger than 64KB correctly. 2007-03-14 Richard Frith-Macdonald - * configure.ac: By default disable the GNUSTEP_CONFIOG_FILE - environment variable on windows so that we don't accidentally - use the development config file (with unix style paths) when - we want to be using runtime config (with windows paths). - * configure: Regenerate - * Source/GSPrivate.h: New private function to determine native - C-string encoding. - * Source/Additions/Unicode.m: ditto - * Source/GSLocale.m: Use native C-String encoding to handle locale - information strings. + * configure.ac: By default disable the GNUSTEP_CONFIOG_FILE + environment variable on windows so that we don't accidentally + use the development config file (with unix style paths) when + we want to be using runtime config (with windows paths). + * configure: Regenerate + * Source/GSPrivate.h: New private function to determine native + C-string encoding. + * Source/Additions/Unicode.m: ditto + * Source/GSLocale.m: Use native C-String encoding to handle locale + information strings. 2007-03-14 Nicola Pero - * Source/NSUserDefaults.m ([+standardUserDefaults]): Manually - lookup gnustep-base language resources without using NSBundle to - break the bootstrap chicken-and-egg problem between NSBundle and - NSUserDefaults. + * Source/NSUserDefaults.m ([+standardUserDefaults]): Manually + lookup gnustep-base language resources without using NSBundle to + break the bootstrap chicken-and-egg problem between NSBundle and + NSUserDefaults. 2007-03-14 Richard Frith-Macdonald - * Source/Additions/GSXML.m: Fix memory leak caused by url handle - retaining xmlrpc object as a client. + * Source/Additions/GSXML.m: Fix memory leak caused by url handle + retaining xmlrpc object as a client. 2007-03-13 Richard Frith-Macdonald - * Source/GSLocale.m: Expect locale information (nl_langinfo) to be in - default c-string encoding ... though it's debatable how one knows what - that should be. + * Source/GSLocale.m: Expect locale information (nl_langinfo) to be in + default c-string encoding ... though it's debatable how one knows what + that should be. 2007-03-12 Richard Frith-Macdonald - * NSTimeZones/NSTimeZones.tar: regenerated. - * Source/GSString.m: getCString_c() Fix error freeing unallocated - memory when converting a zero length constant string to external - cstring representation. + * NSTimeZones/NSTimeZones.tar: regenerated. + * Source/GSString.m: getCString_c() Fix error freeing unallocated + memory when converting a zero length constant string to external + cstring representation. 2007-03-09 Nicola Pero - Implemented library resource bundle versioning. Updated - gnustep-base to use versioned resources. - * Source/NSBundle ([+bundleForLibrary:version]): New method. - Allow to request the resource bundle for a specific version. - Changed bundle resource location to be - GNUSTEP_LIBRARY/Libraries//Versions//Resources - to allow versioned resources and be similar to framework resources - - will be handy in the future. Fall back to the old unversioned - bundle at GNUSTEP_LIBRARY/Libraries/Resources/ if no - specific version is required and no versioned bundle can be found. - ([+bundleForLibrary:]): Implemented in terms of - +bundleForLibrary:version:. Should be backwards compatible if - you're not using resource versioning yet. - ([+initialize]): When creating _gnustep_bundle, use - [+bundleForLibrary:version:] to get the appropriate version of the - bundle. - - * Headers/Foundation/NSBundle.h ([+bundleForLibrary:version:]): - New method; updated documentation for this method and for - [+bundleForLibrary:]. - - * Resources/GNUmakefile: Include ../Version and install into the - new versioned directory. - * NSTimeZones/GNUmakefile: Same changes. - * Source/GNUmakefile: Same changes. - - * Source/NSBundle.m ([+bundleForClass:]): If we are asked for the - bundle for NSObject, return _gnustep_bundle (prepared during - +initialize) immediately. - * Source/NSTimeZone.m (_time_zone_path): Use bundleForClass: - NSObject to get the gnustep-base bundle immediately and safely. - * Source/NSUserDefaults.m ([+standardUserDefaults]): Same change. - - * Source/GNUmakefile (libgnustep-base_INTERFACE_VERSION, - libgnustep-baseadd_INTERFACE_VERSION): Use more standard makefile - syntax. + Implemented library resource bundle versioning. Updated + gnustep-base to use versioned resources. + * Source/NSBundle ([+bundleForLibrary:version]): New method. + Allow to request the resource bundle for a specific version. + Changed bundle resource location to be + GNUSTEP_LIBRARY/Libraries//Versions//Resources + to allow versioned resources and be similar to framework resources + - will be handy in the future. Fall back to the old unversioned + bundle at GNUSTEP_LIBRARY/Libraries/Resources/ if no + specific version is required and no versioned bundle can be found. + ([+bundleForLibrary:]): Implemented in terms of + +bundleForLibrary:version:. Should be backwards compatible if + you're not using resource versioning yet. + ([+initialize]): When creating _gnustep_bundle, use + [+bundleForLibrary:version:] to get the appropriate version of the + bundle. + + * Headers/Foundation/NSBundle.h ([+bundleForLibrary:version:]): + New method; updated documentation for this method and for + [+bundleForLibrary:]. + + * Resources/GNUmakefile: Include ../Version and install into the + new versioned directory. + * NSTimeZones/GNUmakefile: Same changes. + * Source/GNUmakefile: Same changes. + + * Source/NSBundle.m ([+bundleForClass:]): If we are asked for the + bundle for NSObject, return _gnustep_bundle (prepared during + +initialize) immediately. + * Source/NSTimeZone.m (_time_zone_path): Use bundleForClass: + NSObject to get the gnustep-base bundle immediately and safely. + * Source/NSUserDefaults.m ([+standardUserDefaults]): Same change. + + * Source/GNUmakefile (libgnustep-base_INTERFACE_VERSION, + libgnustep-baseadd_INTERFACE_VERSION): Use more standard makefile + syntax. 2007-03-09 Richard Frith-Macdonald - * Source/NSProcessInfo.m: On mswindows, don't count a '.exe' - extension as part of the process name. - * Source/NSUserDefaults.m: Revert last change ... now done in - NSProcessInfo.m + * Source/NSProcessInfo.m: On mswindows, don't count a '.exe' + extension as part of the process name. + * Source/NSUserDefaults.m: Revert last change ... now done in + NSProcessInfo.m 2007-03-08 Richard Frith-Macdonald - * Source/Addictions/GSXML.m: Cope with cancellation of load from URL - in XMLRPC better. + * Source/Addictions/GSXML.m: Cope with cancellation of load from URL + in XMLRPC better. 2007-03-08 Nicola Pero - * Source/NSPathUtilities.h (GSAdminToolsDirectory): New directory - key. - * Source/NSPathUtilities.m: Implemented it. + * Source/NSPathUtilities.h (GSAdminToolsDirectory): New directory + key. + * Source/NSPathUtilities.m: Implemented it. 2007-03-07 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Mimic MacOS-X behavior and cancel loading - if http status code is not in the 200-299 (success) range. + * Source/GSHTTPURLHandle.m: Mimic MacOS-X behavior and cancel loading + if http status code is not in the 200-299 (success) range. 2007-03-07 Richard Frith-Macdonald - * Tools/objctidy.m: Removed ... should not have been added really as - it's very unreliable ... better remove before it accidentally gets - into a stable release. + * Tools/objctidy.m: Removed ... should not have been added really as + it's very unreliable ... better remove before it accidentally gets + into a stable release. 2007-03-06 Richard Frith-Macdonald - * Source/NSSpellServer.m: Use Library directory in user domain for - local dictionaries. - * Source/NSDistributedNotificationCenter.m: autolaunch gdnc with the - --auto option. - * Tools/gdnc.m: Understand --auto to mean that we should shut down - automatically when all connections in to us are dropped. + * Source/NSSpellServer.m: Use Library directory in user domain for + local dictionaries. + * Source/NSDistributedNotificationCenter.m: autolaunch gdnc with the + --auto option. + * Tools/gdnc.m: Understand --auto to mean that we should shut down + automatically when all connections in to us are dropped. 2007-03-06 Nicola Pero - * configure.ac: Added GNUSTEP_SYSTEM_USERS_DIR, - GNUSTEP_NETWORK_USERS_DIR and GNUSTEP_LOCAL_USERS_DIR. - * configure: Regenerated. - * Headers/Additions/GNUstepBase/config.h.in: Regenerated. - * Source/NSPathUtilities.m: Read and process the new variables; - fixed NSUserDirectory to return the proper GNUSTEP_*_USERS_DIR - instead of the user's home directory. + * configure.ac: Added GNUSTEP_SYSTEM_USERS_DIR, + GNUSTEP_NETWORK_USERS_DIR and GNUSTEP_LOCAL_USERS_DIR. + * configure: Regenerated. + * Headers/Additions/GNUstepBase/config.h.in: Regenerated. + * Source/NSPathUtilities.m: Read and process the new variables; + fixed NSUserDirectory to return the proper GNUSTEP_*_USERS_DIR + instead of the user's home directory. 2007-03-06 Richard Frith-Macdonald - * Source/NSUserDefaults.m: On mswindows, don't count a '.exe' - extension as part of the process name when fetching defaults. + * Source/NSUserDefaults.m: On mswindows, don't count a '.exe' + extension as part of the process name when fetching defaults. 2007-03-05 Nicola Pero - * configure.ac: Fixed setting default GNUSTEP_*_ADMIN_APPS and - GNUSTEP_*_ADMIN_TOOLS when none is found in the config file. - * configure.ac: Print out the entire filesystem layout that is - hardcoded into gnustep-base. It makes it easier to debug - filesystem layout issues. - * configure.ac: Read, process and output the new - GNUSTEP_*_WEB_APPS variables. - * configure.ac: Do not output GNUSTEP_CONFIG_FILE variable which - is used nowhere. - * configure: Regenerated. - * Headers/Additions/GNUstepBase/config.h.in: Added definitions of - GNUSTEP_*_WEB_APPS. - * Headers/Foundation/NSPathUtilities.h (NSSearchPathDirectory): - Added GSWebApplicationsDirectory. - * Source/NSPathUtilities.m: Implemented - GSWebApplicationsDirectory. + * configure.ac: Fixed setting default GNUSTEP_*_ADMIN_APPS and + GNUSTEP_*_ADMIN_TOOLS when none is found in the config file. + * configure.ac: Print out the entire filesystem layout that is + hardcoded into gnustep-base. It makes it easier to debug + filesystem layout issues. + * configure.ac: Read, process and output the new + GNUSTEP_*_WEB_APPS variables. + * configure.ac: Do not output GNUSTEP_CONFIG_FILE variable which + is used nowhere. + * configure: Regenerated. + * Headers/Additions/GNUstepBase/config.h.in: Added definitions of + GNUSTEP_*_WEB_APPS. + * Headers/Foundation/NSPathUtilities.h (NSSearchPathDirectory): + Added GSWebApplicationsDirectory. + * Source/NSPathUtilities.m: Implemented + GSWebApplicationsDirectory. 2007-03-05 Richard Frith-Macdonald - * Source/NSObject.m: Try using atomic increment/decrement to get - performance of retain/release improvement in multithreaded programs. + * Source/NSObject.m: Try using atomic increment/decrement to get + performance of retain/release improvement in multithreaded programs. 2007-03-05 Adam Fedor - * configure.ac, config/config.trampoline.c: Add trampoline test. + * configure.ac, config/config.trampoline.c: Add trampoline test. 2007-03-05 Richard Frith-Macdonald - * Headers/Foundation/NSAffineTransform.h: Add flags to allow - optimisation of identity and flipped coordinates(from mySTEP) - * Source/NSAffineTransform.m: Add code from mySTEP for, optimising - common cases. Fixup optimised code to use B and B consistently. - Fixup bug in optimised code for prepending matrix. - Add optimised cases for flipped transforms in appand and prepend. - Fix bug in ([-transformSize:]) which was causing problems with - negative values (MacOS-X allows negative values here, and any issues - need to be dealt with by the calling code). + * Headers/Foundation/NSAffineTransform.h: Add flags to allow + optimisation of identity and flipped coordinates(from mySTEP) + * Source/NSAffineTransform.m: Add code from mySTEP for, optimising + common cases. Fixup optimised code to use B and B consistently. + Fixup bug in optimised code for prepending matrix. + Add optimised cases for flipped transforms in appand and prepend. + Fix bug in ([-transformSize:]) which was causing problems with + negative values (MacOS-X allows negative values here, and any issues + need to be dealt with by the calling code). 2007-03-04 Richard Frith-Macdonald - * Headers/Foundation/NSSpellServer.h: Moved from appkit - * Source/NSSpellServer.m: Moved from appkit - * Source/GNUmakefile: Add NSSpellServer - * Headers/Foundation/Foundation.h: Add NSSpellServer - Moved NSSpellServer in from gui/appkit for MacOS-X compatibility + * Headers/Foundation/NSSpellServer.h: Moved from appkit + * Source/NSSpellServer.m: Moved from appkit + * Source/GNUmakefile: Add NSSpellServer + * Headers/Foundation/Foundation.h: Add NSSpellServer + Moved NSSpellServer in from gui/appkit for MacOS-X compatibility 2007-03-02 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Cope with nil authentication info - * Source/GSHTTPAuthentication.m: Cope with nil credential and - catch exceptions in lock protected areas (there shouldn't be - any, but best to be safe). + * Source/GSHTTPURLHandle.m: Cope with nil authentication info + * Source/GSHTTPAuthentication.m: Cope with nil credential and + catch exceptions in lock protected areas (there shouldn't be + any, but best to be safe). 2007-03-01 Nicola Pero - * Source/NSBundle.m ([NSBundle +bundleForLibrary:]): Fixed paths - to lookup; it wouldn't work with the new filesystem layout - changes. - * configure.ac: Raise an error if we're asked to import a config - file but no such file is found. - * configure: Regenerated. + * Source/NSBundle.m ([NSBundle +bundleForLibrary:]): Fixed paths + to lookup; it wouldn't work with the new filesystem layout + changes. + * configure.ac: Raise an error if we're asked to import a config + file but no such file is found. + * configure: Regenerated. 2007-03-01 Richard Frith-Macdonald - * Source/NSZone.m: tidy indentation - * Source/NSURLCredential.m: - * Source/NSURLAuthenticationChallenge.m: - * Source/NSURLCredentialStorage.m: - * Source/NSURLResponse.m: - * Source/NSURLProtocol.m: - * Source/NSURLCache.m: - * Source/NSHTTPCookieStorage.m: - * Source/NSHTTPCookie.m: - * Source/NSURLProtectionSpace.m: - * Source/NSURLRequest.m: - Use standard function to initialise and clear memory, fixing some - potential uninitialised memory errors. + * Source/NSZone.m: tidy indentation + * Source/NSURLCredential.m: + * Source/NSURLAuthenticationChallenge.m: + * Source/NSURLCredentialStorage.m: + * Source/NSURLResponse.m: + * Source/NSURLProtocol.m: + * Source/NSURLCache.m: + * Source/NSHTTPCookieStorage.m: + * Source/NSHTTPCookie.m: + * Source/NSURLProtectionSpace.m: + * Source/NSURLRequest.m: + Use standard function to initialise and clear memory, fixing some + potential uninitialised memory errors. 2007-03-01 Richard Frith-Macdonald - * configure.ac: Restore last reversion and fix actual bug (I hope) - which was an incorrect setting of GNUSTEP_SYSTEM_TOOLS to the - Admin subdirectory, causing relative path calculations to be wrong. - * configure: regenerated. + * configure.ac: Restore last reversion and fix actual bug (I hope) + which was an incorrect setting of GNUSTEP_SYSTEM_TOOLS to the + Admin subdirectory, causing relative path calculations to be wrong. + * configure: regenerated. 2007-03-01 Richard Frith-Macdonald - * Source/NSBundle.m: - * Source/NSPathUtilities.m: - * Headers/Foundation/NSBundle.h: - * Headers/Additions/GNUstepBase/config.h.in: - * gnustep-base.script.spec.in: - Remove internal GNUSTEP_..._ROOT variables which are no longer used. - * configure.ac: - Refrain from defining GNUSTEP_..._ROOT default values in config.h - * configure: regenerated. + * Source/NSBundle.m: + * Source/NSPathUtilities.m: + * Headers/Foundation/NSBundle.h: + * Headers/Additions/GNUstepBase/config.h.in: + * gnustep-base.script.spec.in: + Remove internal GNUSTEP_..._ROOT variables which are no longer used. + * configure.ac: + Refrain from defining GNUSTEP_..._ROOT default values in config.h + * configure: regenerated. 2007-02-28 Richard Frith-Macdonald - * configure.ac: Revert part of change which guaranteed use of bad - paths on mingw ... we allow a fallback to ./GNUstep.conf instead. - of using paths from make (which is guaranteed to be wrong as the - paths it uses are for msys and we need runtime paths for the - win32 api). - * configure: Regenerated. + * configure.ac: Revert part of change which guaranteed use of bad + paths on mingw ... we allow a fallback to ./GNUstep.conf instead. + of using paths from make (which is guaranteed to be wrong as the + paths it uses are for msys and we need runtime paths for the + win32 api). + * configure: Regenerated. 2007-02-28 Nicola Pero - * configure.ac: If no config file to import is specified, then - load the gnustep-make one in preference to the runtime config - file, which might be a relative path such as ./GNUstep.conf. On - mingw, do not set just GNUSTEP_xxx_ROOT and similar variables to - relative paths, but set all of the GNUSTEP_xxx_yyy variables by - computing relative paths using gnustep-make's scripts. - * configure: Regenerated. + * configure.ac: If no config file to import is specified, then + load the gnustep-make one in preference to the runtime config + file, which might be a relative path such as ./GNUstep.conf. On + mingw, do not set just GNUSTEP_xxx_ROOT and similar variables to + relative paths, but set all of the GNUSTEP_xxx_yyy variables by + computing relative paths using gnustep-make's scripts. + * configure: Regenerated. 2007-02-28 Richard Frith-Macdonald - * Source/NSObject.m: Update suggested by Larry Campbell to use 32 - locks for managing retain counts rather than just one, so reducing - lock contention when there are lots of threads running. - He reports a 50% performance improvement in his program. + * Source/NSObject.m: Update suggested by Larry Campbell to use 32 + locks for managing retain counts rather than just one, so reducing + lock contention when there are lots of threads running. + He reports a 50% performance improvement in his program. 2007-02-27 Nicola Pero - * GNUmakefile (CVS_MODULE_NAME): Do not set (exports should be - done from subversion now). + * GNUmakefile (CVS_MODULE_NAME): Do not set (exports should be + done from subversion now). 2007-02-26 Nicola Pero - * configure.ac: Updated for new (shorter) GNUSTEP_SYSTEM_DOC_MAN - variable names in GNUstep.conf (and similar for other DOC variable - names). - * Headers/Additions/GNUstepBase/config.h.in: Same change. - * Source/NSPathUtilities.m: Same change. - * configure: Regenerated. + * configure.ac: Updated for new (shorter) GNUSTEP_SYSTEM_DOC_MAN + variable names in GNUstep.conf (and similar for other DOC variable + names). + * Headers/Additions/GNUstepBase/config.h.in: Same change. + * Source/NSPathUtilities.m: Same change. + * configure: Regenerated. 2007-02-21 Richard Frith-Macdonald - * Source/NSCharacterSetData.h: - * Source/NSIndexSet.m: - * Source/NSCharacterSet.m: - Experimental modifications to allow an NSCharacterSet implementation - based on NSIndexSet rather than a bitmap representation. The idea is - that such an implementation, while often slower, should use much - less memory in most cases and may be a better option on handheld - devices for instance. - To enable the new code, edit to define GNUSTEP_INDEX_CHARSET near - the start of NSCharacterSet.m and build. + * Source/NSCharacterSetData.h: + * Source/NSIndexSet.m: + * Source/NSCharacterSet.m: + Experimental modifications to allow an NSCharacterSet implementation + based on NSIndexSet rather than a bitmap representation. The idea is + that such an implementation, while often slower, should use much + less memory in most cases and may be a better option on handheld + devices for instance. + To enable the new code, edit to define GNUSTEP_INDEX_CHARSET near + the start of NSCharacterSet.m and build. 2007-02-20 Richard Frith-Macdonald - * configure.ac: Fixup to locate headers and libraries installed in - system root subdirectories again. - * configure: Regenerated. - * Source/NSNumber.m: Chance description and stringValue methods to - return 1/0 rather than YES/NO for compatibility with undocumented - MacOS-X implementation detail (bug #19010) + * configure.ac: Fixup to locate headers and libraries installed in + system root subdirectories again. + * configure: Regenerated. + * Source/NSNumber.m: Chance description and stringValue methods to + return 1/0 rather than YES/NO for compatibility with undocumented + MacOS-X implementation detail (bug #19010) 2007-02-19 Nicola Pero - * configure.ac: Updated gnustep-config calls for new/final syntax. - Do not source GNUstep.sh at the beginning. - * configure: Regenerated. - * GNUmakefile: Updated gnustep-config calls, plus set - GNUSTEP_MAKEFILES properly using :=, not =. - * Documentation/GNUmakefile: Same changes. - * Examples/GNUmakefile: Same changes. - * NSTimeZones/GNUmakefile: Same changes. - * NSTimeZones/GNUmakefile: Same changes. - * Resources/GNUmakefile: Same changes. - * Source/GNUmakefile: Same changes. - * SSL/GNUmakefile: Same changes. - * Testing/GNUmakefile: Same changes. - * Tools/GNUmakefile: Same changes. + * configure.ac: Updated gnustep-config calls for new/final syntax. + Do not source GNUstep.sh at the beginning. + * configure: Regenerated. + * GNUmakefile: Updated gnustep-config calls, plus set + GNUSTEP_MAKEFILES properly using :=, not =. + * Documentation/GNUmakefile: Same changes. + * Examples/GNUmakefile: Same changes. + * NSTimeZones/GNUmakefile: Same changes. + * NSTimeZones/GNUmakefile: Same changes. + * Resources/GNUmakefile: Same changes. + * Source/GNUmakefile: Same changes. + * SSL/GNUmakefile: Same changes. + * Testing/GNUmakefile: Same changes. + * Tools/GNUmakefile: Same changes. 2007-02-19 Richard Frith-Macdonald - * Source/NSRunLoop.m: ([performSelector:target:argument:order:modes:]) - Alter to retain target and arguments to match MacOS-X (bug #19099) - * Source/NSString.m: Fixup removal of leading path separator when - appending path componet. - * Source/NSPropertyList.m: If parsing of xml property list fails, - try again with more tolerant parser which accepts illegal characters. - Might fix bug #17112 (illegal character in nib) + * Source/NSRunLoop.m: ([performSelector:target:argument:order:modes:]) + Alter to retain target and arguments to match MacOS-X (bug #19099) + * Source/NSString.m: Fixup removal of leading path separator when + appending path componet. + * Source/NSPropertyList.m: If parsing of xml property list fails, + try again with more tolerant parser which accepts illegal characters. + Might fix bug #17112 (illegal character in nib) 2007-02-17 Richard Frith-Macdonald - * configure.ac: Use gnustep-config if available. - * configure: Regenerate - * Source/Makefile.postamble - * Source/GNUmakefile - * Source/Makefile.preamble - * SSL/GSSSLHandle.m - * SSL/GNUmakefile - * GNUmakefile + * configure.ac: Use gnustep-config if available. + * configure: Regenerate + * Source/Makefile.postamble + * Source/GNUmakefile + * Source/Makefile.preamble + * SSL/GSSSLHandle.m + * SSL/GNUmakefile + * GNUmakefile 2007-02-17 Sergii Stoian - * Headers/GNUstepBase/GSFileHandle.h: Fix GSConfig.h include. + * Headers/GNUstepBase/GSFileHandle.h: Fix GSConfig.h include. 2007-02-17 Nicola Pero - * Source/NSBundle.m (_find_main_bundle_for_tool): New inline - function to locate tools resources in the new gnustep-make v2 - location for them. - ([NSBundle +mainBundle]): (tool resource lookup) Fixed detecting - case of an uninstalled tool to work with the gnustep-make v2 as - well. Manage the case separately so we always lookup resources - only locally for non-installed tools. For installed tools, first - use _find_main_bundle_for_tool to look in the new location for - tool resources, falling back to the old gnustep-make v1 location - if nothing is found in the new one. + * Source/NSBundle.m (_find_main_bundle_for_tool): New inline + function to locate tools resources in the new gnustep-make v2 + location for them. + ([NSBundle +mainBundle]): (tool resource lookup) Fixed detecting + case of an uninstalled tool to work with the gnustep-make v2 as + well. Manage the case separately so we always lookup resources + only locally for non-installed tools. For installed tools, first + use _find_main_bundle_for_tool to look in the new location for + tool resources, falling back to the old gnustep-make v1 location + if nothing is found in the new one. 2007-02-16 Nicola Pero - * configure.ac: Added GNUSTEP_*_ADMIN_APPS and GNUSTEP_*_ADMIN_TOOLS - variables. - * configure: Regenerated. - * Headers/Additions/GNUstepBase/config.h.in: Regenerated. - * Source/NSPathUtilities.m: Read the new config variables. - Updated NSAdminApplicationDirectory and NSAllApplicationsDirectory - for it. + * configure.ac: Added GNUSTEP_*_ADMIN_APPS and GNUSTEP_*_ADMIN_TOOLS + variables. + * configure: Regenerated. + * Headers/Additions/GNUstepBase/config.h.in: Regenerated. + * Source/NSPathUtilities.m: Read the new config variables. + Updated NSAdminApplicationDirectory and NSAllApplicationsDirectory + for it. 2007-02-15 Richard Frith-Macdonald - * Source/NSTimeZone.m: - * Source/Makefile.postamble: - * Source/NSProcessInfo.m: - * Source/GNUmakefile: - * Source/NSConcreteNumber.m: - * Headers/Foundation/NSCoder.h: - * Headers/Foundation/NSByteOrder.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSDecimal.h: - * Headers/Foundation/Foundation.h: - Move GSConfig.h to the GNUstepBase subdirectory so that it doesn't - appear at the top level when FHS layout is used, thus avoiding any - possible conflict with another file of the same name in /usr/include + * Source/NSTimeZone.m: + * Source/Makefile.postamble: + * Source/NSProcessInfo.m: + * Source/GNUmakefile: + * Source/NSConcreteNumber.m: + * Headers/Foundation/NSCoder.h: + * Headers/Foundation/NSByteOrder.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSDecimal.h: + * Headers/Foundation/Foundation.h: + Move GSConfig.h to the GNUstepBase subdirectory so that it doesn't + appear at the top level when FHS layout is used, thus avoiding any + possible conflict with another file of the same name in /usr/include 2007-02-15 Nicola Pero - Important: do not update from trunk if you need stability. - * Source/NSPathUtilities.m: Updated all the path routines to work - with the new filesystem support, reading and managing the new - variables. - * configure.ac: Updated for the new filesystem support: prepare - for NSPathUtilities.m default values for all the new variables. - Make sure to avoid config files overwriting our current - GNUSTEP_MAKEFILES variable. - * configure: Regenerated. - * Headers/Additions/GNUstepBase/config.h.in: Regenerated using - autoheaders to get all the new filesystem default variable - definitions. + Important: do not update from trunk if you need stability. + * Source/NSPathUtilities.m: Updated all the path routines to work + with the new filesystem support, reading and managing the new + variables. + * configure.ac: Updated for the new filesystem support: prepare + for NSPathUtilities.m default values for all the new variables. + Make sure to avoid config files overwriting our current + GNUSTEP_MAKEFILES variable. + * configure: Regenerated. + * Headers/Additions/GNUstepBase/config.h.in: Regenerated using + autoheaders to get all the new filesystem default variable + definitions. 2007-02-14 Nicola Pero - * configure.ac (GNUSTEP_MAKE_CONFIG): Output errors to config.log - rather than printing them out. + * configure.ac (GNUSTEP_MAKE_CONFIG): Output errors to config.log + rather than printing them out. - * configure.ac: Source GNUstep.sh when we need to get the current - makefile setup. Use GNUSTEP_SYSTEM_HEADERS and - GNUSTEP_SYSTEM_LIBRARIES (with backwards compatibility settings) - to compile. - * SSL/configure.ac: Same changes. - * configure: Regenerated. - * SSL/configure: Regenerated. + * configure.ac: Source GNUstep.sh when we need to get the current + makefile setup. Use GNUSTEP_SYSTEM_HEADERS and + GNUSTEP_SYSTEM_LIBRARIES (with backwards compatibility settings) + to compile. + * SSL/configure.ac: Same changes. + * configure: Regenerated. + * SSL/configure: Regenerated. 2007-02-14 Nicola Pero - We're installing gnustep-base using the new - GNUSTEP_INSTALLATION_DOMAIN mechanism, so GNUSTEP_INSTALLATION_DIR - will not even be defined in makefiles and should never be - referenced. - * Tools/Makefile.postamble (after-install): Use GNUSTEP_TOOLS, not - GNUSTEP_INSTALLATION_DIR/Tools. + We're installing gnustep-base using the new + GNUSTEP_INSTALLATION_DOMAIN mechanism, so GNUSTEP_INSTALLATION_DIR + will not even be defined in makefiles and should never be + referenced. + * Tools/Makefile.postamble (after-install): Use GNUSTEP_TOOLS, not + GNUSTEP_INSTALLATION_DIR/Tools. 2007-02-14 Nicola Pero - * Resources/GNUmakefile (base-resources_INSTALL_DIR): New variable - to get it working with new gnustep-make. Keep the old one around - for older gnustep-makes. - * Source/GNUmakefile (libbase-resources_INSTALL_DIR): Same change. + * Resources/GNUmakefile (base-resources_INSTALL_DIR): New variable + to get it working with new gnustep-make. Keep the old one around + for older gnustep-makes. + * Source/GNUmakefile (libbase-resources_INSTALL_DIR): Same change. 2007-02-14 Roland Schwingel - * Source/NSTimeZone.m: windows bugfix for daylight savings time. + * Source/NSTimeZone.m: windows bugfix for daylight savings time. 2007-02-13 Richard Frith-Macdonald - * Source/NSString.m: Don't treat leading '~' in path component or - extension as a root when appending that component or extension. + * Source/NSString.m: Don't treat leading '~' in path component or + extension as a root when appending that component or extension. 2007-02-07 Richard Frith-Macdonald - * Source/NSException.m: Only initialise modLock where stack module - symbol handling is supported (fix bug #18938) + * Source/NSException.m: Only initialise modLock where stack module + symbol handling is supported (fix bug #18938) 2007-02-06 Richard Frith-Macdonald - * Documentation/manual/manual.texi: fix format errors - * Headers/Foundation/NSException.h: document stack trace - * Documentation/Base.gsdoc: document stack trace - * Source/NSException.m: control stack trace with environment variable - Rewrite module loading code to be thread safe. - Use dladdr where available, to get offsets for dynamic library - symbols so bfi based lookup of function/method name and line - number information can work for libraries as well as the main - executable. + * Documentation/manual/manual.texi: fix format errors + * Headers/Foundation/NSException.h: document stack trace + * Documentation/Base.gsdoc: document stack trace + * Source/NSException.m: control stack trace with environment variable + Rewrite module loading code to be thread safe. + Use dladdr where available, to get offsets for dynamic library + symbols so bfi based lookup of function/method name and line + number information can work for libraries as well as the main + executable. 2007-02-05 Richard Frith-Macdonald - * configure.ac: minor tweak to avoid possible inconsistency in - environment used to check LLOGN_MAX and LONG_LONG_MAX presence. - * configure: regenerate - * Source/GSHTTPURLHandle.m: always remove self as observer for all - notifications on a socket when closing it. + * configure.ac: minor tweak to avoid possible inconsistency in + environment used to check LLOGN_MAX and LONG_LONG_MAX presence. + * configure: regenerate + * Source/GSHTTPURLHandle.m: always remove self as observer for all + notifications on a socket when closing it. 2007-02-04 Richard Frith-Macdonald - * Headers/Foundation/NSCompoundPredicate.h: - * Headers/Foundation/NSComparisonPredicate.h: - * Headers/Foundation/NSExpression.h: - Fixup version macros - * Source/NSDebug.m: Make frame functions safe. - * Source/NSException.m: Use non-symbolic stack trace if symbols - are not available. - * Source/NSIndexSet.m: Add private method for minternal use. - * Source/NSMessagePort.m: Fix error releasing uninitialised instance. + * Headers/Foundation/NSCompoundPredicate.h: + * Headers/Foundation/NSComparisonPredicate.h: + * Headers/Foundation/NSExpression.h: + Fixup version macros + * Source/NSDebug.m: Make frame functions safe. + * Source/NSException.m: Use non-symbolic stack trace if symbols + are not available. + * Source/NSIndexSet.m: Add private method for minternal use. + * Source/NSMessagePort.m: Fix error releasing uninitialised instance. 2007-01-30 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m: Fix bug reporting autorlease count. + * Source/NSAutoreleasePool.m: Fix bug reporting autorlease count. 2007-01-28 Richard Frith-Macdonald - * unix/NSStream.m: - * win32/NSStreamWin32.m: - Send event if an error occurs in the -open method. + * unix/NSStream.m: + * win32/NSStreamWin32.m: + Send event if an error occurs in the -open method. 2007-01-25 Richard Frith-Macdonald - * Source/NSUserDefaults.m: fix failure to unlock thread lock when - unabel to obtain filesystem lock. + * Source/NSUserDefaults.m: fix failure to unlock thread lock when + unabel to obtain filesystem lock. 2007-01-23 Adam Fedor - * Source/NSObject.m ([NSObject +initialize]): Apply BSD FPU fix - only on x86 machines. + * Source/NSObject.m ([NSObject +initialize]): Apply BSD FPU fix + only on x86 machines. 2007-01-23 Richard Frith-Macdonald - * Source/win32/NSMessagePortNameServerWin32.m: - * Source/win32/NSMessagePortWin32.m: - Bugfixes to try to make win32 nameserver operation more reliable. + * Source/win32/NSMessagePortNameServerWin32.m: + * Source/win32/NSMessagePortWin32.m: + Bugfixes to try to make win32 nameserver operation more reliable. 2007-01-19 Richard Frith-Macdonald - * Tools/defaults.m: Make errors go to stderr and be more informative. + * Tools/defaults.m: Make errors go to stderr and be more informative. 2007-01-17 Richard Frith-Macdonald - * Source/NSURLHandle.m: ([resourceData]) make sure value returned - is autoreleased. - * Source/NSURL.m: Parse string a bit more strictly according to RFC + * Source/NSURLHandle.m: ([resourceData]) make sure value returned + is autoreleased. + * Source/NSURL.m: Parse string a bit more strictly according to RFC 2007-01-16 Nicola Pero - * configure.ac: Fixed url of build guide given in error message - when ffcall/ffi is not found. + * configure.ac: Fixed url of build guide given in error message + when ffcall/ffi is not found. 2007-01-07 Richard Frith-Macdonald - * Source/NSNetServices.m: Locking fix pointed out by Chris. - Fixes for documentation generation. - * Source/DocMakefile: Generate documentation for new classes. - * Source/NSXMLParser.m: Fix erroneous semicolons and other - autogsdoc warnings. + * Source/NSNetServices.m: Locking fix pointed out by Chris. + Fixes for documentation generation. + * Source/DocMakefile: Generate documentation for new classes. + * Source/NSXMLParser.m: Fix erroneous semicolons and other + autogsdoc warnings. 2007-01-04 Richard Frith-Macdonald - * Source/NSBundle.m: (initialize) tiny cleanup to avoid compiler - warnings if compiled for NeXT runtime. + * Source/NSBundle.m: (initialize) tiny cleanup to avoid compiler + warnings if compiled for NeXT runtime. 2006-12-27 Richard Frith-Macdonald - * Source/GSString.m: Fix keyed archiving error. + * Source/GSString.m: Fix keyed archiving error. 2006-12-27 Chris B. Vetter - * Headers/Foundation/NSNetServices.h: New class - * Source/NSNetServices.m: New class - * Source/GNUmakefile: Build NSNetServices if dns_sd is available. - * configure.ac: Check for usability of dns_sd - * Headers/Foundation/Foundation.h: Include NSNetServices.h - * Headers/Additions/GNUstepBase/config.h.in: add dns_sd availability - * base.make.in: add dns_sd availability - * configure: regenerate - Support for NSNetServices implemented by Chris. - Integrated by Richard (untested). + * Headers/Foundation/NSNetServices.h: New class + * Source/NSNetServices.m: New class + * Source/GNUmakefile: Build NSNetServices if dns_sd is available. + * configure.ac: Check for usability of dns_sd + * Headers/Foundation/Foundation.h: Include NSNetServices.h + * Headers/Additions/GNUstepBase/config.h.in: add dns_sd availability + * base.make.in: add dns_sd availability + * configure: regenerate + Support for NSNetServices implemented by Chris. + Integrated by Richard (untested). 2006-12-27 Richard Frith-Macdonald - * Source/NSUserDefaults.m: remove old defaults as housekeeping - observer when we reset. - * Source/NSXMLParser.m: deactivate some log messages - * Source/NSPropertyList.m: add proplist parser using NSXMLParser - to support parsing of MacOS-X property lists even when libxml2 - is not available. + * Source/NSUserDefaults.m: remove old defaults as housekeeping + observer when we reset. + * Source/NSXMLParser.m: deactivate some log messages + * Source/NSPropertyList.m: add proplist parser using NSXMLParser + to support parsing of MacOS-X property lists even when libxml2 + is not available. 2006-12-26 Dr. H. Nikolaus Schaller, Richard Frith-Macdonald - * Source/NSXMLParser.m: Implement reduced functionality parser if - LIBXML2 is not available. + * Source/NSXMLParser.m: Implement reduced functionality parser if + LIBXML2 is not available. 2006-12-26 Richard Frith-Macdonald - * Headers/Foundation/NSValueTransformer.h: - * Source/NSValueTransformer.m: - Complete implementation. - Make thread-safe. - Document. + * Headers/Foundation/NSValueTransformer.h: + * Source/NSValueTransformer.m: + Complete implementation. + Make thread-safe. + Document. 2006-12-25 Dr. H. Nikolaus Schaller - * Headers/Foundation/NSValueTransformer.h: - * Headers/Foundation/Foundation.h: - * Source/NSValueTransformer.h: - * Source/GNUmakefile: - Initial implementation of NSValueTransformer. + * Headers/Foundation/NSValueTransformer.h: + * Headers/Foundation/Foundation.h: + * Source/NSValueTransformer.h: + * Source/GNUmakefile: + Initial implementation of NSValueTransformer. 2006-12-25 Richard Frith-Macdonald - * Headers/Additions/GNUstep/GSVersionMacros.h: - Added MacOS-X compatibility version constants. + * Headers/Additions/GNUstep/GSVersionMacros.h: + Added MacOS-X compatibility version constants. 2006-12-15 Richard Frith-Macdonald - * Source/NSNumberFormatter.m: - Changes to match coding standards. - Small fix to get it to compile with older versions of gcc. - Various changes to avoid compiler warnings with newer gcc. - Fix problems of assigning immutable string instances to variables - typed as mutable strings. + * Source/NSNumberFormatter.m: + Changes to match coding standards. + Small fix to get it to compile with older versions of gcc. + Various changes to avoid compiler warnings with newer gcc. + Fix problems of assigning immutable string instances to variables + typed as mutable strings. 2006-12-15 Graham J Lee - * Source/NSNumberFormatter.m: - Implement -stringForObjectValue: + * Source/NSNumberFormatter.m: + Implement -stringForObjectValue: 2006-12-15 Richard Frith-Macdonald - * Source/mframe.m: - * Source/cifframe.m: - * Source/callframe.m: - Fix error testing whether object is an instance. - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSPropertyList.h: - * Headers/Foundation/NSDistributedNotificationCenter.h: - * Headers/Foundation/NSNotificationQueue.h: - * Headers/Foundation/NSGeometry.h: - * Headers/Foundation/NSDecimal.h: - Audit all headers and make more MacOS-X enumeration constant fixups - so that we shouldn't need to break binary compatibility for additions - to the enumeration constants in future (we hope) there is stll the - possibility of apple adding constants which conflict with gnustep - extensions, though I've left a big gap between apple and gnu - values so that conflict should be unlikely unless they specifically - try to do it. + * Source/mframe.m: + * Source/cifframe.m: + * Source/callframe.m: + Fix error testing whether object is an instance. + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSPropertyList.h: + * Headers/Foundation/NSDistributedNotificationCenter.h: + * Headers/Foundation/NSNotificationQueue.h: + * Headers/Foundation/NSGeometry.h: + * Headers/Foundation/NSDecimal.h: + Audit all headers and make more MacOS-X enumeration constant fixups + so that we shouldn't need to break binary compatibility for additions + to the enumeration constants in future (we hope) there is stll the + possibility of apple adding constants which conflict with gnustep + extensions, though I've left a big gap between apple and gnu + values so that conflict should be unlikely unless they specifically + try to do it. 2006-12-14 Richard Frith-Macdonald - * Headers/Foundation/NSPathUtilities.h: - * Source/NSPathUtilities.m: - Update constants to be MacOS-X compatible, including addition of a - few more keys added in recent versions. - WARNING ... change of constants to match MacOS0X introduces binary - incompatibility, so full recompile is required. - Fix bug/misfeature of only returning paths which exist on the - filesystem ... which broke MacOS-X applications which were correctly - expecting to find a non-existent path and create it as a location - to store their resources in. + * Headers/Foundation/NSPathUtilities.h: + * Source/NSPathUtilities.m: + Update constants to be MacOS-X compatible, including addition of a + few more keys added in recent versions. + WARNING ... change of constants to match MacOS0X introduces binary + incompatibility, so full recompile is required. + Fix bug/misfeature of only returning paths which exist on the + filesystem ... which broke MacOS-X applications which were correctly + expecting to find a non-existent path and create it as a location + to store their resources in. 2006-12-13 David Ayers - * Source/mframe.m (mframe_do_call), - * Source/cifframe.m (cifframe_do_call), - * Source/callframe.m (callframe_do_call): Simplify by using - GSObjCRuntime functions. Add fallback selector search for invocations - passed to proxies. Add debug diagnostics. + * Source/mframe.m (mframe_do_call), + * Source/cifframe.m (cifframe_do_call), + * Source/callframe.m (callframe_do_call): Simplify by using + GSObjCRuntime functions. Add fallback selector search for invocations + passed to proxies. Add debug diagnostics. 2006-12-05 Matt Rice - * Source/NSBundle.m (+initialize): Remove usage of classes local array. + * Source/NSBundle.m (+initialize): Remove usage of classes local array. 2006-12-05 Richard Frith-Macdonald - * NSURL.m: Check for missing scheme and return nil. - * NSString.m: Check for character conversion failure when - getting a CString. + * NSURL.m: Check for missing scheme and return nil. + * NSString.m: Check for character conversion failure when + getting a CString. 2006-11-30 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Limit size of handle cache to 16 to - avoid increasing memory usage indefinitely if a program keeps - loading different URLs. + * Source/GSHTTPURLHandle.m: Limit size of handle cache to 16 to + avoid increasing memory usage indefinitely if a program keeps + loading different URLs. 2006-11-29 Richard Frith-Macdonald - * Source/GSPrivate.h: - * Source/win32/GSFileHandleWin32.m: - * Source/Additions/GSCategories.m: - * Source/GSFileHandle.m: - Improve error checking and reporting when establishing a tcp/ip - connection. + * Source/GSPrivate.h: + * Source/win32/GSFileHandleWin32.m: + * Source/Additions/GSCategories.m: + * Source/GSFileHandle.m: + Improve error checking and reporting when establishing a tcp/ip + connection. 2006-11-27 Matt Rice - * Source/NSObject.m: Fix typo. - * Headers/Foundation/NSException.h: Export - NSObjectInaccessibleException. + * Source/NSObject.m: Fix typo. + * Headers/Foundation/NSException.h: Export + NSObjectInaccessibleException. 2006-11-25 Richard Frith-Macdonald - * Source/NSCalendarDate.m: Fix buffer oiveflow vulnerability when - parsing string ... really needs major rewrite for better locale - use and full unicode support though. - * Source/GSHTTPURLHandle.m: add a little more debug. + * Source/NSCalendarDate.m: Fix buffer oiveflow vulnerability when + parsing string ... really needs major rewrite for better locale + use and full unicode support though. + * Source/GSHTTPURLHandle.m: add a little more debug. 2006-11-21 Richard Frith-Macdonald - * Source/NSURL.m: - Fix potential double load of URL data. - * unix/NSStream.m: - * win32/NSStreamWin32.m: - Re-use socket ports so that programs can start up again immediately - after they have shut down. + * Source/NSURL.m: + Fix potential double load of URL data. + * unix/NSStream.m: + * win32/NSStreamWin32.m: + Re-use socket ports so that programs can start up again immediately + after they have shut down. 2006-11-20 Richard Frith-Macdonald - * Source/NSCalendarDate.m: Fix to parse timezone names as being - whitespace delimited. + * Source/NSCalendarDate.m: Fix to parse timezone names as being + whitespace delimited. 2006-11-19 Richard Frith-Macdonald - * Source/NSAffineTransform.m: Adapted from old gui code - * Headers/Foundation/NSAffineTransform.h: ditto - * Source/GNUmakefile: Add NSAffineTransform. - * Headers/Foundation/Foundation.h: ditto - Add NSAffineTransform for MacOS-X compatibility ... gui specific - code is added using a category in the gui library. + * Source/NSAffineTransform.m: Adapted from old gui code + * Headers/Foundation/NSAffineTransform.h: ditto + * Source/GNUmakefile: Add NSAffineTransform. + * Headers/Foundation/Foundation.h: ditto + Add NSAffineTransform for MacOS-X compatibility ... gui specific + code is added using a category in the gui library. 2006-11-18 Richard Frith-Macdonald - * Source/Additions/GSXML.m: ([setRootNode:]) Add checks for invalid - argument and improve documentation. - * Source/GSHTTPURLHandle.m: don't keep unecessary read operation in - progress on idle connection. + * Source/Additions/GSXML.m: ([setRootNode:]) Add checks for invalid + argument and improve documentation. + * Source/GSHTTPURLHandle.m: don't keep unecessary read operation in + progress on idle connection. 2006-11-15 Nicola Pero - Notice: you should now use 'make DESTDIR=/tmp/xxx install' if you - want to relocate all the installation into /tmp/xxx/ - * Makefile.postamble: Use DESTDIR instead of INSTALL_ROOT_DIR - everywhere. + Notice: you should now use 'make DESTDIR=/tmp/xxx install' if you + want to relocate all the installation into /tmp/xxx/ + * Makefile.postamble: Use DESTDIR instead of INSTALL_ROOT_DIR + everywhere. 2006-11-15 Nicola Pero - * Documentation/GNUmakefile (GNUSTEP_INSTALLATION_DOMAIN): Use - GNUSTEP_INSTALLATION_DOMAIN instead of GNUSTEP_INSTALLATION_DIR. - * Documentation/General/GNUmakefile: Same change. - * NSCharacterSets/GNUmakefile: Same change. - * NSTimeZones/GNUmakefile: Same change. - * Resources/GNUmakefile: Same change. - * Source/GNUmakefile: Same change. - * SSL/GNUmakefile: Same change. - * Tools/GNUmakefile: Same change. + * Documentation/GNUmakefile (GNUSTEP_INSTALLATION_DOMAIN): Use + GNUSTEP_INSTALLATION_DOMAIN instead of GNUSTEP_INSTALLATION_DIR. + * Documentation/General/GNUmakefile: Same change. + * NSCharacterSets/GNUmakefile: Same change. + * NSTimeZones/GNUmakefile: Same change. + * Resources/GNUmakefile: Same change. + * Source/GNUmakefile: Same change. + * SSL/GNUmakefile: Same change. + * Tools/GNUmakefile: Same change. 2006-11-14 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: fix bug detecting eof in read. - Add code to check for eof immediately before writing. + * Source/GSHTTPURLHandle.m: fix bug detecting eof in read. + Add code to check for eof immediately before writing. 2006-11-14 Adam Fedor - * Headers/Additions/GNUstepBase/GSCategories.h: Add GSOnce macros. - * Source/Additions/GSFunctions.m: Add GSCategories.h + * Headers/Additions/GNUstepBase/GSCategories.h: Add GSOnce macros. + * Source/Additions/GSFunctions.m: Add GSCategories.h 2006-11-13 Richard Frith-Macdonald - * Source/NSCalendarDate.m: Fix a few string parsing errors (check that - string matches format in MacOS-X compatible manner). - * Source/GSHTTPURLHandle.m: try to detect socket being closed by - remote end of connection before we try writing to it. + * Source/NSCalendarDate.m: Fix a few string parsing errors (check that + string matches format in MacOS-X compatible manner). + * Source/GSHTTPURLHandle.m: try to detect socket being closed by + remote end of connection before we try writing to it. 2006-11-12 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Clear pageInfo before load. - Improve checking for dropped connections. + * Source/GSHTTPURLHandle.m: Clear pageInfo before load. + Improve checking for dropped connections. 2006-11-08 Richard Frith-Macdonald - Source/NSIndexSet.m: ([addIndexesInRange:]) - Fix for case when added range lies within existing range. + Source/NSIndexSet.m: ([addIndexesInRange:]) + Fix for case when added range lies within existing range. 2006-11-08 Richard Frith-Macdonald - * Source/Additions/GSXML.m: ([stringByEscapingXML]) Fix bug causing - newline characters to be removed from escaped strings. + * Source/Additions/GSXML.m: ([stringByEscapingXML]) Fix bug causing + newline characters to be removed from escaped strings. 2006-11-07 David Wetzel - * Source/Additions/GSXML.m: - Fix error setting start and end element for SAX. + * Source/Additions/GSXML.m: + Fix error setting start and end element for SAX. 2006-11-06 Richard Frith-Macdonald - * Source/NSObject.m: Use %p to print address in description. - * Documentation/General/OpenStepCompliance.gsdoc: - * Documentation/General/Debugging.gsdoc: - * Tools/gsdoc.gsdoc: - * Tools/gdomap.gsdoc: - * Tools/gsdoc-1_0_1.dtd: - * Tools/gsdoc-1_0_1.rnc: - * Tools/autogsdoc.m: - * Tools/AGSOutput.m: - * Tools/autogsdoc.1: - * Tools/BaseTools.gsdoc: - Minor documentation version fixups. + * Source/NSObject.m: Use %p to print address in description. + * Documentation/General/OpenStepCompliance.gsdoc: + * Documentation/General/Debugging.gsdoc: + * Tools/gsdoc.gsdoc: + * Tools/gdomap.gsdoc: + * Tools/gsdoc-1_0_1.dtd: + * Tools/gsdoc-1_0_1.rnc: + * Tools/autogsdoc.m: + * Tools/AGSOutput.m: + * Tools/autogsdoc.1: + * Tools/BaseTools.gsdoc: + Minor documentation version fixups. 2006-11-03 Richard Frith-Macdonald - * Source/NSString.m: ([stringByAddingPercentEscapesUsingEncoding:]) - Improved documentation. - * Source/Additions/GSMime.m: Add more charset mappings for where the - hyphen after the 'iso' has been omitted. + * Source/NSString.m: ([stringByAddingPercentEscapesUsingEncoding:]) + Improved documentation. + * Source/Additions/GSMime.m: Add more charset mappings for where the + hyphen after the 'iso' has been omitted. 2006-11-02 Richard Frith-Macdonald - * Source/NSString.m: ([stringByAddingPercentEscapesUsingEncoding:]) - Make the set of characters escaped compatible with MacOS-X (10.4). + * Source/NSString.m: ([stringByAddingPercentEscapesUsingEncoding:]) + Make the set of characters escaped compatible with MacOS-X (10.4). 2006-11-01 Richard Frith-Macdonald - * Source/NSSortDescriptor.m; minor tidyups - * Headers/Foundation/NSSortDescriptor.h: add documentation - * Headers/Foundation/NSKeyValueCoding.h: improve version macros - * Headers/Foundation/NSKeyValueObserving.h: add include for NSArray + * Source/NSSortDescriptor.m; minor tidyups + * Headers/Foundation/NSSortDescriptor.h: add documentation + * Headers/Foundation/NSKeyValueCoding.h: improve version macros + * Headers/Foundation/NSKeyValueObserving.h: add include for NSArray 2006-10-31 Richard Frith-Macdonald - * Source/NSSocketPortNameServer.m: - * Source/NSRunLoop.m: - * Source/NSDebug.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/NSPort.m: - * Source/NSConcreteNumber.h: - * Source/win32/GSRunLoopCtxt.m: - * Source/NSThread.m: - * Source/NSSerializer.m: - * Documentation/Base.gsdoc: - * Headers/Foundation/NSTimeZone.h: - * Headers/Foundation/NSHashTable.h: - * Headers/Foundation/NSCoder.h: - * Headers/Foundation/NSRange.h: - * Headers/Foundation/NSURLCredential.h: - * Headers/Foundation/NSHTTPCookieStorage.h: - * Headers/Foundation/NSException.h: - * Headers/Foundation/NSByteOrder.h: - * Headers/Foundation/NSPortCoder.h: - * Headers/Foundation/NSURL.h: - * Headers/Foundation/NSURLAuthenticationChallenge.h: - * Headers/Foundation/NSCompoundPredicate.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSCalendarDate.h: - * Headers/Foundation/NSDecimalNumber.h: - * Headers/Foundation/NSKeyValueCoding.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSSerialization.h: - * Headers/Foundation/NSURLHandle.h: - * Headers/Foundation/NSPropertyList.h: - * Headers/Foundation/NSTimer.h: - * Headers/Foundation/NSNotification.h: - * Headers/Foundation/NSPathUtilities.h: - * Headers/Foundation/NSScanner.h: - * Headers/Foundation/NSProcessInfo.h: - * Headers/Foundation/NSDistributedNotificationCenter.h: - * Headers/Foundation/NSNotificationQueue.h: - * Headers/Foundation/NSGeometry.h: - * Headers/Foundation/NSStream.h: - * Headers/Foundation/NSComparisonPredicate.h: - * Headers/Foundation/NSDecimal.h: - * Headers/Foundation/NSAttributedString.h: - * Headers/Foundation/NSRunLoop.h: - * Headers/Foundation/NSConnection.h: - * Headers/Foundation/NSUndoManager.h: - * Headers/Foundation/NSDateFormatter.h: - * Headers/Foundation/NSMethodSignature.h: - * Headers/Foundation/NSFormatter.h: - * Headers/Foundation/NSAutoreleasePool.h: - * Headers/Foundation/NSUserDefaults.h: - * Headers/Foundation/NSThread.h: - * Headers/Foundation/NSHTTPCookie.h: - * Headers/Foundation/NSData.h: - * Headers/Foundation/NSURLError.h: - * Headers/Foundation/NSHost.h: - * Headers/Foundation/NSDate.h: - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSObjCRuntime.h: - * Headers/Foundation/NSProxy.h: - * Headers/Foundation/NSURLProtectionSpace.h: - * Headers/Foundation/NSKeyedArchiver.h: - * Headers/Foundation/NSDebug.h: - * Headers/Foundation/NSProtocolChecker.h: - * Headers/Foundation/NSError.h: - * Headers/Foundation/NSPortMessage.h: - * Headers/Foundation/NSURLDownload.h: - * Headers/Foundation/NSFileHandle.h: - * Headers/Foundation/NSDistributedLock.h: - * Headers/Foundation/NSPredicate.h: - * Headers/Foundation/NSKeyValueObserving.h: - * Headers/Foundation/NSDictionary.h: - * Headers/Foundation/NSClassDescription.h: - * Headers/Foundation/NSNull.h: - * Headers/Foundation/NSZone.h: - * Headers/Foundation/NSURLRequest.h: - * Headers/Foundation/NSValue.h: - * Headers/Foundation/NSURLCredentialStorage.h: - * Headers/Foundation/NSIndexSet.h: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSSortDescriptor.h: - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSSet.h: - * Headers/Foundation/NSDistantObject.h: - * Headers/Foundation/NSExpression.h: - * Headers/Foundation/NSTask.h: - * Headers/Foundation/NSArchiver.h: - * Headers/Foundation/Foundation.h: - * Headers/Foundation/NSCharacterSet.h: - * Headers/Foundation/NSInvocation.h: - * Headers/Foundation/NSFileManager.h: - * Headers/Foundation/NSUtilities.h: - * Headers/Foundation/NSPortNameServer.h: - * Headers/Foundation/NSNumberFormatter.h: - * Headers/Foundation/NSXMLParser.h: - * Headers/Foundation/NSEnumerator.h: - * Headers/Foundation/NSURLResponse.h: - * Headers/Foundation/NSURLConnection.h: - * Headers/Foundation/NSIndexPath.h: - * Headers/Foundation/NSURLProtocol.h: - * Headers/Foundation/NSMapTable.h: - * Headers/Foundation/NSURLCache.h: - * Headers/Additions/GNUstepBase/GSXML.h: - * Headers/Additions/GNUstepBase/behavior.h: - * Headers/Additions/GNUstepBase/GSFunctions.h: - * Headers/Additions/GNUstepBase/GSConfig.h.in: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - * Headers/Additions/GNUstepBase/GSCategories.h: - * Headers/Additions/GNUstepBase/GSIMap.h: - * Headers/Additions/GNUstepBase/GSIArray.h: - * Headers/Additions/GNUstepBase/GSMime.h: - * Headers/Additions/GNUstepBase/Unicode.h: - Ensure all headers have up to date version macros included. - Update to remove obsolete version macro information. - Tidy FSF address for consistency. - Tidy per-heaader inclusion guard preprocessor definitions. + * Source/NSSocketPortNameServer.m: + * Source/NSRunLoop.m: + * Source/NSDebug.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/NSPort.m: + * Source/NSConcreteNumber.h: + * Source/win32/GSRunLoopCtxt.m: + * Source/NSThread.m: + * Source/NSSerializer.m: + * Documentation/Base.gsdoc: + * Headers/Foundation/NSTimeZone.h: + * Headers/Foundation/NSHashTable.h: + * Headers/Foundation/NSCoder.h: + * Headers/Foundation/NSRange.h: + * Headers/Foundation/NSURLCredential.h: + * Headers/Foundation/NSHTTPCookieStorage.h: + * Headers/Foundation/NSException.h: + * Headers/Foundation/NSByteOrder.h: + * Headers/Foundation/NSPortCoder.h: + * Headers/Foundation/NSURL.h: + * Headers/Foundation/NSURLAuthenticationChallenge.h: + * Headers/Foundation/NSCompoundPredicate.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSCalendarDate.h: + * Headers/Foundation/NSDecimalNumber.h: + * Headers/Foundation/NSKeyValueCoding.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSSerialization.h: + * Headers/Foundation/NSURLHandle.h: + * Headers/Foundation/NSPropertyList.h: + * Headers/Foundation/NSTimer.h: + * Headers/Foundation/NSNotification.h: + * Headers/Foundation/NSPathUtilities.h: + * Headers/Foundation/NSScanner.h: + * Headers/Foundation/NSProcessInfo.h: + * Headers/Foundation/NSDistributedNotificationCenter.h: + * Headers/Foundation/NSNotificationQueue.h: + * Headers/Foundation/NSGeometry.h: + * Headers/Foundation/NSStream.h: + * Headers/Foundation/NSComparisonPredicate.h: + * Headers/Foundation/NSDecimal.h: + * Headers/Foundation/NSAttributedString.h: + * Headers/Foundation/NSRunLoop.h: + * Headers/Foundation/NSConnection.h: + * Headers/Foundation/NSUndoManager.h: + * Headers/Foundation/NSDateFormatter.h: + * Headers/Foundation/NSMethodSignature.h: + * Headers/Foundation/NSFormatter.h: + * Headers/Foundation/NSAutoreleasePool.h: + * Headers/Foundation/NSUserDefaults.h: + * Headers/Foundation/NSThread.h: + * Headers/Foundation/NSHTTPCookie.h: + * Headers/Foundation/NSData.h: + * Headers/Foundation/NSURLError.h: + * Headers/Foundation/NSHost.h: + * Headers/Foundation/NSDate.h: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSObjCRuntime.h: + * Headers/Foundation/NSProxy.h: + * Headers/Foundation/NSURLProtectionSpace.h: + * Headers/Foundation/NSKeyedArchiver.h: + * Headers/Foundation/NSDebug.h: + * Headers/Foundation/NSProtocolChecker.h: + * Headers/Foundation/NSError.h: + * Headers/Foundation/NSPortMessage.h: + * Headers/Foundation/NSURLDownload.h: + * Headers/Foundation/NSFileHandle.h: + * Headers/Foundation/NSDistributedLock.h: + * Headers/Foundation/NSPredicate.h: + * Headers/Foundation/NSKeyValueObserving.h: + * Headers/Foundation/NSDictionary.h: + * Headers/Foundation/NSClassDescription.h: + * Headers/Foundation/NSNull.h: + * Headers/Foundation/NSZone.h: + * Headers/Foundation/NSURLRequest.h: + * Headers/Foundation/NSValue.h: + * Headers/Foundation/NSURLCredentialStorage.h: + * Headers/Foundation/NSIndexSet.h: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSSortDescriptor.h: + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSSet.h: + * Headers/Foundation/NSDistantObject.h: + * Headers/Foundation/NSExpression.h: + * Headers/Foundation/NSTask.h: + * Headers/Foundation/NSArchiver.h: + * Headers/Foundation/Foundation.h: + * Headers/Foundation/NSCharacterSet.h: + * Headers/Foundation/NSInvocation.h: + * Headers/Foundation/NSFileManager.h: + * Headers/Foundation/NSUtilities.h: + * Headers/Foundation/NSPortNameServer.h: + * Headers/Foundation/NSNumberFormatter.h: + * Headers/Foundation/NSXMLParser.h: + * Headers/Foundation/NSEnumerator.h: + * Headers/Foundation/NSURLResponse.h: + * Headers/Foundation/NSURLConnection.h: + * Headers/Foundation/NSIndexPath.h: + * Headers/Foundation/NSURLProtocol.h: + * Headers/Foundation/NSMapTable.h: + * Headers/Foundation/NSURLCache.h: + * Headers/Additions/GNUstepBase/GSXML.h: + * Headers/Additions/GNUstepBase/behavior.h: + * Headers/Additions/GNUstepBase/GSFunctions.h: + * Headers/Additions/GNUstepBase/GSConfig.h.in: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + * Headers/Additions/GNUstepBase/GSCategories.h: + * Headers/Additions/GNUstepBase/GSIMap.h: + * Headers/Additions/GNUstepBase/GSIArray.h: + * Headers/Additions/GNUstepBase/GSMime.h: + * Headers/Additions/GNUstepBase/Unicode.h: + Ensure all headers have up to date version macros included. + Update to remove obsolete version macro information. + Tidy FSF address for consistency. + Tidy per-heaader inclusion guard preprocessor definitions. 2006-10-30 Richard Frith-Macdonald - * Headers/Foundation/NSUserDefaults.h: - * Source/NSUserDefaults.m: - Update comments into headers and tag methods with API version - information. + * Headers/Foundation/NSUserDefaults.h: + * Source/NSUserDefaults.m: + Update comments into headers and tag methods with API version + information. 2006-10-29 Richard Frith-Macdonald - * Source/GSPrivate.h: - * Source/Additions/Unicode.m: - * Source/GSeq.h: - * Headers/Additions/GNUstepBase/Unicode.h: - runi_cop should be private in future. - remove some redundant code. - * Source/Additions/GSMime.m: Add support for some more character - encodings. - Fix uninitialised variable compiler failed to warn about. + * Source/GSPrivate.h: + * Source/Additions/Unicode.m: + * Source/GSeq.h: + * Headers/Additions/GNUstepBase/Unicode.h: + runi_cop should be private in future. + remove some redundant code. + * Source/Additions/GSMime.m: Add support for some more character + encodings. + Fix uninitialised variable compiler failed to warn about. 2006-10-27 Richard Frith-Macdonald - * Source/NSTask.m: GSPrivateCheckTasks() retain terminated task - while handling termination process and notification to prevent - possible thread safety issue spotted by Wim. + * Source/NSTask.m: GSPrivateCheckTasks() retain terminated task + while handling termination process and notification to prevent + possible thread safety issue spotted by Wim. 2006-10-26 Richard Frith-Macdonald - * Source/NSPropertyList.m: use declaration of GSArray from GSPrivate.h - * Source/GSArray.m: ditto - * Source/NSArray.m: ditto - * Source/NSSerializer.m ditto - * Source/NSConcreteNumberTemplate.m: Use private function to get hash. - * Source/NSConcreteNumber.m: ditto - * Source/NSNumber.m: ditto - * Source/GSPrivate.h: Add hash functions. - * Headers/Foundation/NSSortDescriptor.h: Add a little documentation. - * Source/NSSortDescriptor.m: Implement better hash/isEqual as - suggested by David. Complete rewrite of sorting to avoid lots of - heap memory operations ... should be much much faster. + * Source/NSPropertyList.m: use declaration of GSArray from GSPrivate.h + * Source/GSArray.m: ditto + * Source/NSArray.m: ditto + * Source/NSSerializer.m ditto + * Source/NSConcreteNumberTemplate.m: Use private function to get hash. + * Source/NSConcreteNumber.m: ditto + * Source/NSNumber.m: ditto + * Source/GSPrivate.h: Add hash functions. + * Headers/Foundation/NSSortDescriptor.h: Add a little documentation. + * Source/NSSortDescriptor.m: Implement better hash/isEqual as + suggested by David. Complete rewrite of sorting to avoid lots of + heap memory operations ... should be much much faster. 2006-10-25 Richard Frith-Macdonald - * configure.ac: Define HAVE_VISIBILITY_ATTRIBUTE if gcc's visibility - attribute is both present in the version being used and working on - the current platform. - * configure: Regenerate - * Headers/Additions/GNUstepBase/config.h.in: Regenerate - * Source/GSPrivate.h: Only use the visibility attribute if it is - available. Avoids warnings (and link errors in at least one case) - on systems where it is not fully supported by gcc yet. - * Headers/Foundation/NSSortDescriptor.h: Tidy and fix macros marking - macos compatibility. - * Source/NSSortDescriptor.m: Fix to have usable hash and isEqual - (bug #18107). + * configure.ac: Define HAVE_VISIBILITY_ATTRIBUTE if gcc's visibility + attribute is both present in the version being used and working on + the current platform. + * configure: Regenerate + * Headers/Additions/GNUstepBase/config.h.in: Regenerate + * Source/GSPrivate.h: Only use the visibility attribute if it is + available. Avoids warnings (and link errors in at least one case) + on systems where it is not fully supported by gcc yet. + * Headers/Foundation/NSSortDescriptor.h: Tidy and fix macros marking + macos compatibility. + * Source/NSSortDescriptor.m: Fix to have usable hash and isEqual + (bug #18107). 2006-10-23 Richard Frith-Macdonald - * Source/NSCalendarDate: when adding offset to a date, work in - the timezone for the date rather than in GMT ... fixes bug #18088 - * Source/NSBundle.m: - * Source/NSPathUtilities.m: - * Source/NSProcessInfo.m: - * Source/preface.m: - * Source/NSCallBacks.h: - * Source/GSPrivate.h: - * Source/NSFileManager.m: - * Source/objc-load.h: - * Source/objc-load.m: - * Headers/Additions/GNUstepBase/preface.h.in: - More cleanups hiding private functions and removing a few unused bits. + * Source/NSCalendarDate: when adding offset to a date, work in + the timezone for the date rather than in GMT ... fixes bug #18088 + * Source/NSBundle.m: + * Source/NSPathUtilities.m: + * Source/NSProcessInfo.m: + * Source/preface.m: + * Source/NSCallBacks.h: + * Source/GSPrivate.h: + * Source/NSFileManager.m: + * Source/objc-load.h: + * Source/objc-load.m: + * Headers/Additions/GNUstepBase/preface.h.in: + More cleanups hiding private functions and removing a few unused bits. 2006-10-20 Richard Frith-Macdonald - * Source/Additions/GSPrivate.m: - * Source/GSFormat.h: - Deleted unused files. - * Headers/Foundation/NSError.h: - * Source/NSError.m: - Updated to current MacOS-X spec. - * Source/NSIndexPath.m: - * Source/NSSocketPortNameServer.m: - * Source/NSTimeZone.m: - * Source/NSHashTable.m: - * Source/NSBundle.m: - * Source/NSPropertyList.m: - * Source/libgnustep-base-entry.m: - * Source/GSConcreteValueTemplate.m: - * Source/NSScanner.m: - * Source/NSProcessInfo.m: - * Source/NSGeometry.m: - * Source/NSSocketPort.m: - * Source/NSUndoManager.m: - * Source/NSMethodSignature.m: - * Source/NSFormatter.m: - * Source/NSUserDefaults.m: - * Source/NSArray.m: - * Source/NSMessagePortNameServer.m: - * Source/objc-gnu2next.m: - * Source/GSStream.m: - * Source/NSDebug.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/GSConcreteValue.m: - * Source/NSDistributedLock.m: - * Source/NSFileHandle.m: - * Source/preface.m: - * Source/NSAssertionHandler.m: - * Source/NSConcreteNumberTemplate.m: - * Source/GSHTTPURLHandle.m: - * Source/NSZone.m: - * Source/NSCallBacks.m: - * Source/NSMessagePort.m: - * Source/GSDictionary.m: - * Source/GSPrivate.h: - * Source/GSCountedSet.m: - * Source/win32/GSFileHandleWin32.m: - * Source/win32/GSRunLoopCtxt.m: - * Source/win32/NSMessagePortWin32.m: - * Source/win32/NSStreamWin32.m: - * Source/NSFileManager.m: - * Source/NSConcreteNumber.m: - * Source/NSNotificationCenter.m: - * Source/externs.m: - * Source/NSRange.m: - * Source/NSException.m: - * Source/NSCopyObject.m: - * Source/mframe.m: - * Source/NSObject.m: - * Source/NSString.m: - * Source/Additions/Unicode.m: - * Source/Additions/GNUmakefile: - * Source/Additions/GSCompatibility.m: - * Source/Additions/GSCategories.m: - * Source/GSSet.m: - * Source/GSString.m: - * Source/NSThread.m: - * Source/NSData.m: - * Source/NSHost.m: - * Source/NSProxy.m: - * Source/NSProtocolChecker.m: - * Source/NSPipe.m: - * Source/GSValue.m: - * Source/NSDictionary.m: - * Source/NSClassDescription.m: - * Source/NSSerializer.m: - * Source/NSNull.m: - * Source/NSValue.m: - * Source/NSCountedSet.m: - * Source/NSLog.m: - * Source/GSFormat.m: - * Source/NSIndexSet.m: - * Source/GSFileHandle.m: - * Source/NSLock.m: - * Source/NSDistantObject.m: - * Source/NSTask.m: - * Source/NSPortNameServer.m: - * Source/NSNumberFormatter.m: - * Source/NSXMLParser.m: - * Source/GSFTPURLHandle.m: - * Source/NSEnumerator.m: - * Source/GSURLPrivate.h: - * SSL/GSSSLHandle.m: - Move from GSPrivate class to GSPrivate functions as majority prefer - that. Make some more private functions use GSPrivate prefix and be - unlinkable outside base. Rationalise error string generation. - Tidy up FSF address in comments. + * Source/Additions/GSPrivate.m: + * Source/GSFormat.h: + Deleted unused files. + * Headers/Foundation/NSError.h: + * Source/NSError.m: + Updated to current MacOS-X spec. + * Source/NSIndexPath.m: + * Source/NSSocketPortNameServer.m: + * Source/NSTimeZone.m: + * Source/NSHashTable.m: + * Source/NSBundle.m: + * Source/NSPropertyList.m: + * Source/libgnustep-base-entry.m: + * Source/GSConcreteValueTemplate.m: + * Source/NSScanner.m: + * Source/NSProcessInfo.m: + * Source/NSGeometry.m: + * Source/NSSocketPort.m: + * Source/NSUndoManager.m: + * Source/NSMethodSignature.m: + * Source/NSFormatter.m: + * Source/NSUserDefaults.m: + * Source/NSArray.m: + * Source/NSMessagePortNameServer.m: + * Source/objc-gnu2next.m: + * Source/GSStream.m: + * Source/NSDebug.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/GSConcreteValue.m: + * Source/NSDistributedLock.m: + * Source/NSFileHandle.m: + * Source/preface.m: + * Source/NSAssertionHandler.m: + * Source/NSConcreteNumberTemplate.m: + * Source/GSHTTPURLHandle.m: + * Source/NSZone.m: + * Source/NSCallBacks.m: + * Source/NSMessagePort.m: + * Source/GSDictionary.m: + * Source/GSPrivate.h: + * Source/GSCountedSet.m: + * Source/win32/GSFileHandleWin32.m: + * Source/win32/GSRunLoopCtxt.m: + * Source/win32/NSMessagePortWin32.m: + * Source/win32/NSStreamWin32.m: + * Source/NSFileManager.m: + * Source/NSConcreteNumber.m: + * Source/NSNotificationCenter.m: + * Source/externs.m: + * Source/NSRange.m: + * Source/NSException.m: + * Source/NSCopyObject.m: + * Source/mframe.m: + * Source/NSObject.m: + * Source/NSString.m: + * Source/Additions/Unicode.m: + * Source/Additions/GNUmakefile: + * Source/Additions/GSCompatibility.m: + * Source/Additions/GSCategories.m: + * Source/GSSet.m: + * Source/GSString.m: + * Source/NSThread.m: + * Source/NSData.m: + * Source/NSHost.m: + * Source/NSProxy.m: + * Source/NSProtocolChecker.m: + * Source/NSPipe.m: + * Source/GSValue.m: + * Source/NSDictionary.m: + * Source/NSClassDescription.m: + * Source/NSSerializer.m: + * Source/NSNull.m: + * Source/NSValue.m: + * Source/NSCountedSet.m: + * Source/NSLog.m: + * Source/GSFormat.m: + * Source/NSIndexSet.m: + * Source/GSFileHandle.m: + * Source/NSLock.m: + * Source/NSDistantObject.m: + * Source/NSTask.m: + * Source/NSPortNameServer.m: + * Source/NSNumberFormatter.m: + * Source/NSXMLParser.m: + * Source/GSFTPURLHandle.m: + * Source/NSEnumerator.m: + * Source/GSURLPrivate.h: + * SSL/GSSSLHandle.m: + Move from GSPrivate class to GSPrivate functions as majority prefer + that. Make some more private functions use GSPrivate prefix and be + unlinkable outside base. Rationalise error string generation. + Tidy up FSF address in comments. 2006-10-19 Richard Frith-Macdonald * Documentation/manual/DistributedObjects.texi: Update for current API - * Source/NSNotificationQueue.m: - * Source/NSSocketPort.m: - * Source/NSRunLoop.m: - * Source/NSUserDefaults.m: - * Source/NSMessagePortNameServer.m: - * Source/NSDebug.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/GSPrivate.h: - * Source/win32/GSFileHandleWin32.m: - * Source/win32/GSRunLoopCtxt.m: - * Source/NSCoder.m: - * Source/Additions/GSPrivate.m: - * Source/NSAutoreleasePool.m: - * Source/NSTask.m: - * Headers/Foundation/NSCoder.h: - Remove long deprecated coder extensions (old libobjects - compatibility). - Hide some internal functions. - Make some values static. - Make function to obtain locale dictionary thread safe. + * Source/NSNotificationQueue.m: + * Source/NSSocketPort.m: + * Source/NSRunLoop.m: + * Source/NSUserDefaults.m: + * Source/NSMessagePortNameServer.m: + * Source/NSDebug.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/GSPrivate.h: + * Source/win32/GSFileHandleWin32.m: + * Source/win32/GSRunLoopCtxt.m: + * Source/NSCoder.m: + * Source/Additions/GSPrivate.m: + * Source/NSAutoreleasePool.m: + * Source/NSTask.m: + * Headers/Foundation/NSCoder.h: + Remove long deprecated coder extensions (old libobjects + compatibility). + Hide some internal functions. + Make some values static. + Make function to obtain locale dictionary thread safe. 2006-10-19 Matt Rice - * Source/NSBundle.m (_find_framework): initialize file_name variable. + * Source/NSBundle.m (_find_framework): initialize file_name variable. 2006-10-19 Richard Frith-Macdonald - * Source/NSBundle.m: Strip path extension from main bundle name on - cygwin. - * Headers/Foundation/NSPortNameServer.h: Improve documentation + * Source/NSBundle.m: Strip path extension from main bundle name on + cygwin. + * Headers/Foundation/NSPortNameServer.h: Improve documentation 2006-10-18 Richard Frith-Macdonald - * Source/Makefile.postamble: - Remove use of UNICODE_HEADERS which appears to beave been breaking - solaris build. + * Source/Makefile.postamble: + Remove use of UNICODE_HEADERS which appears to beave been breaking + solaris build. 2006-10-18 Richard Frith-Macdonald - * Source/Additions/GSPrivate.m: - * Source/Additions/Unicode.m: - * Source/GSPrivate.h: - * Source/NSArray.m: - * Source/NSCalendarDate.m: - * Source/NSDate.m: - * Source/NSDecimalNumber.m: - * Source/NSDictionary.m: - * Source/NSNotification.m: - * Source/NSObject.m: - * Source/NSProcessInfo.m: - * Source/NSScanner.m: - * Source/NSString.m: - * Source/NSUserDefaults.m: - Experiments with gcc attribute for making functions inaccessible - outside the library ... new experimental function - GSPrivateDefaultLocale() declared in GSPrivate.h, implemented in - Additions/GSPrivate.m seems to work and to be invisible to the linker - for external apps. + * Source/Additions/GSPrivate.m: + * Source/Additions/Unicode.m: + * Source/GSPrivate.h: + * Source/NSArray.m: + * Source/NSCalendarDate.m: + * Source/NSDate.m: + * Source/NSDecimalNumber.m: + * Source/NSDictionary.m: + * Source/NSNotification.m: + * Source/NSObject.m: + * Source/NSProcessInfo.m: + * Source/NSScanner.m: + * Source/NSString.m: + * Source/NSUserDefaults.m: + Experiments with gcc attribute for making functions inaccessible + outside the library ... new experimental function + GSPrivateDefaultLocale() declared in GSPrivate.h, implemented in + Additions/GSPrivate.m seems to work and to be invisible to the linker + for external apps. 2006-10-17 Richard Frith-Macdonald - * Source/NSPropertyList.m: - Fix error writing negative numbers to property list. + * Source/NSPropertyList.m: + Fix error writing negative numbers to property list. 2006-10-16 Richard Frith-Macdonald - * Source/GSFFCallInvocation.m: - * Source/GSFFIInvocation.m: - * Source/GSPrivate.h: - * Source/Additions/GNUmakefile: - * Source/Additions/GSPrivate.m: - * Source/Additions/GSCategories.m: - Minor further work simplifying and getting rid of unnecessary - external symbols etc. + * Source/GSFFCallInvocation.m: + * Source/GSFFIInvocation.m: + * Source/GSPrivate.h: + * Source/Additions/GNUmakefile: + * Source/Additions/GSPrivate.m: + * Source/Additions/GSCategories.m: + Minor further work simplifying and getting rid of unnecessary + external symbols etc. 2006-10-13 Richard Frith-Macdonald - * Source/NSFileHandle.m: Look for SSL bundle in any domain. - * Source/NSTimer.m: Fix minor documentation error. + * Source/NSFileHandle.m: Look for SSL bundle in any domain. + * Source/NSTimer.m: Fix minor documentation error. 2006-10-11 Nicola Pero - * GNUmakefile (GNUSTEP_INSTALLATION_DOMAIN): Use - GNUSTEP_INSTALLATION_DOMAIN instead of GNUSTEP_INSTALLATION_DIR. + * GNUmakefile (GNUSTEP_INSTALLATION_DOMAIN): Use + GNUSTEP_INSTALLATION_DOMAIN instead of GNUSTEP_INSTALLATION_DIR. 2006-10-11 Richard Frith-Macdonald - * Source/externs.m: - * Source/Additions/Unicode.m: - * Source/NSDecimal.m: - * Source/GSFormat.m: - * Testing/tcpport-server.m: - * Testing/exported-strings.m: - Make many globals static, remove some obsolete variables etc. + * Source/externs.m: + * Source/Additions/Unicode.m: + * Source/NSDecimal.m: + * Source/GSFormat.m: + * Testing/tcpport-server.m: + * Testing/exported-strings.m: + Make many globals static, remove some obsolete variables etc. 2006-10-11 Nicola Pero - * SSL/Makefile.postamble (after-distclean): Remove all configure - generated files. - (config.mak): Run config.status, not ../config.status. - ($(GNUSTEP_TARGET_DIR)/config.h): Run config.status first. Do not - try to move config.h into a target specific dir if the target dir - is '.'. - (config.status): New rule to recreate it. + * SSL/Makefile.postamble (after-distclean): Remove all configure + generated files. + (config.mak): Run config.status, not ../config.status. + ($(GNUSTEP_TARGET_DIR)/config.h): Run config.status first. Do not + try to move config.h into a target specific dir if the target dir + is '.'. + (config.status): New rule to recreate it. 2006-10-11 Nicola Pero - * Source/Additions/Makefile.preamble (ADDITIONAL_INCLUDE_DIRS): - Added -I.. so that the compiler finds GSPrivate.h when it's using - the non-flattened layout, and it compiles again. - * SSL/Makefile.preamble (ADDITIONAL_INCLUDE_DIRS): Added - -I../Source for the same reason. + * Source/Additions/Makefile.preamble (ADDITIONAL_INCLUDE_DIRS): + Added -I.. so that the compiler finds GSPrivate.h when it's using + the non-flattened layout, and it compiles again. + * SSL/Makefile.preamble (ADDITIONAL_INCLUDE_DIRS): Added + -I../Source for the same reason. 2006-10-10 Richard Frith-Macdonald - * Source/NSDecimalNumber.m: Implement coding/decoding + * Source/NSDecimalNumber.m: Implement coding/decoding 2006-10-09 Nicola Pero - * GNUmakefile: Do not include GNUmakefile.local. + * GNUmakefile: Do not include GNUmakefile.local. 2006-10-09 Richard Frith-Macdonald - * Source/GSCompatibility.m: Removed ... no longer used - * Source/GNUmakefile: Remove GSCompatibility.m - * Source/NSGeometry.m: - * Source/NSArray.m: - * Source/NSDictionary.m: - Update to get rid of a couple of functions which were not really - needed, slimming down global symbols a bit more. + * Source/GSCompatibility.m: Removed ... no longer used + * Source/GNUmakefile: Remove GSCompatibility.m + * Source/NSGeometry.m: + * Source/NSArray.m: + * Source/NSDictionary.m: + Update to get rid of a couple of functions which were not really + needed, slimming down global symbols a bit more. 2006-10-09 Richard Frith-Macdonald - * Source/Additions/GSObjCRuntime.m: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - Remove previously deprecated functionality. - * Documentation/TypesAndConstants.gsdoc: - * Documentation/ReleaseNotes.gsdoc: - * Documentation/Functions.gsdoc: - * Documentation/BaseAdditions.gsdoc: - * Documentation/Base.gsdoc: - * ChangeLog: - * Tools/AGSHtml.m: - * Tools/AGSParser.m: - * Tools/autogsdoc.m: - * Tools/AGSOutput.m: - Update/improve version/deprecation reporting. + * Source/Additions/GSObjCRuntime.m: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + Remove previously deprecated functionality. + * Documentation/TypesAndConstants.gsdoc: + * Documentation/ReleaseNotes.gsdoc: + * Documentation/Functions.gsdoc: + * Documentation/BaseAdditions.gsdoc: + * Documentation/Base.gsdoc: + * ChangeLog: + * Tools/AGSHtml.m: + * Tools/AGSParser.m: + * Tools/autogsdoc.m: + * Tools/AGSOutput.m: + Update/improve version/deprecation reporting. 2006-10-09 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/unicode: - Moved to Source/Additions/unicode - * Source/NSSocketPortNameServer.m: - * Source/GSLocale.m: - * Source/NSTimeZone.m: - * Source/GSCompatibility.m: - * Source/NSCalendarDate.m: - * Source/NSBundle.m: - * Source/NSPropertyList.m: - * Source/NSPathUtilities.m: - * Source/NSScanner.m: - * Source/NSProcessInfo.m: - * Source/GNUmakefile: - * Source/NSSocketPort.m: - * Source/NSUserDefaults.m: - * Source/GSFFCallInvocation.m: - * Source/NSArray.m: - * Source/GSStream.m: - * Source/NSKeyedArchiver.m: - * Source/NSDebug.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/NSDistributedLock.m: - * Source/GSHTTPURLHandle.m: - * Source/NSMessagePort.m: - * Source/GSPrivate.h: - * Source/win32/NSMessagePortNameServerWin32.m: - * Source/win32/GSFileHandleWin32.m: - * Source/win32/NSUserDefaultsWin32.m: - * Source/win32/GSRunLoopCtxt.m: - * Source/win32/NSMessagePortWin32.m: - * Source/win32/NSStreamWin32.m: - * Source/NSInvocation.m: - * Source/NSFileManager.m: - * Source/objc-load.m: - * Source/NSException.m: - * Source/NSString.m: - * Source/NSObject.m: - * Source/NSDecimalNumber.m: - * Source/Additions/Unicode.m: - * Source/Additions/GSXML.m: - * Source/Additions/GSFunctions.m: - * Source/Additions/GSCompatibility.m: - * Source/Additions/GSCategories.m: - * Source/NSDecimal.m: - * Source/GSString.m: - * Source/NSDateFormatter.m: - * Source/NSThread.m: - * Source/NSData.m: - * Source/NSHost.m: - * Source/NSDate.m: - * Source/NSObjCRuntime.m: - * Source/NSPipe.m: - * Source/NSDictionary.m: - * Source/NSLog.m: - * Source/GSFormat.m: - * Source/GSFileHandle.m: - * Source/NSTask.m: - * Source/NSArchiver.m: - * Source/GSFTPURLHandle.m: - * SSL/GSSSLHandle.m: - * Headers/Foundation/NSException.h: - * Headers/Additions/GNUstepBase/GSFunctions.h: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - * Headers/Additions/GNUstepBase/Unicode.h: - * Tools/xmlparse.m: - * Tools/defaults.m: - * Tools/locale_alias.m: - * Tools/Makefile.preamble: - * Tools/AGSParser.m: - * Tools/make_strings/make_strings.m: - * Tools/pl.m: - * Testing/tcpport-server.m: - * Testing/exported-strings.m: - * Testing/call.m: - * Testing/nsconnection_server.m: - * Testing/benchmark.m: - * Testing/tcpport-client.m: - Continuing effort to reduce global namespace pollution ... made many - external variables static (particuarly unicode tables). Changed - several global functions to be methods of a private internal class. - Also updated several usages of deprecated cString methods to use - either UTF8 methods or cString...encoding methods as seemed most - appropriate and/or simplest. + * Headers/Additions/GNUstepBase/unicode: + Moved to Source/Additions/unicode + * Source/NSSocketPortNameServer.m: + * Source/GSLocale.m: + * Source/NSTimeZone.m: + * Source/GSCompatibility.m: + * Source/NSCalendarDate.m: + * Source/NSBundle.m: + * Source/NSPropertyList.m: + * Source/NSPathUtilities.m: + * Source/NSScanner.m: + * Source/NSProcessInfo.m: + * Source/GNUmakefile: + * Source/NSSocketPort.m: + * Source/NSUserDefaults.m: + * Source/GSFFCallInvocation.m: + * Source/NSArray.m: + * Source/GSStream.m: + * Source/NSKeyedArchiver.m: + * Source/NSDebug.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/NSDistributedLock.m: + * Source/GSHTTPURLHandle.m: + * Source/NSMessagePort.m: + * Source/GSPrivate.h: + * Source/win32/NSMessagePortNameServerWin32.m: + * Source/win32/GSFileHandleWin32.m: + * Source/win32/NSUserDefaultsWin32.m: + * Source/win32/GSRunLoopCtxt.m: + * Source/win32/NSMessagePortWin32.m: + * Source/win32/NSStreamWin32.m: + * Source/NSInvocation.m: + * Source/NSFileManager.m: + * Source/objc-load.m: + * Source/NSException.m: + * Source/NSString.m: + * Source/NSObject.m: + * Source/NSDecimalNumber.m: + * Source/Additions/Unicode.m: + * Source/Additions/GSXML.m: + * Source/Additions/GSFunctions.m: + * Source/Additions/GSCompatibility.m: + * Source/Additions/GSCategories.m: + * Source/NSDecimal.m: + * Source/GSString.m: + * Source/NSDateFormatter.m: + * Source/NSThread.m: + * Source/NSData.m: + * Source/NSHost.m: + * Source/NSDate.m: + * Source/NSObjCRuntime.m: + * Source/NSPipe.m: + * Source/NSDictionary.m: + * Source/NSLog.m: + * Source/GSFormat.m: + * Source/GSFileHandle.m: + * Source/NSTask.m: + * Source/NSArchiver.m: + * Source/GSFTPURLHandle.m: + * SSL/GSSSLHandle.m: + * Headers/Foundation/NSException.h: + * Headers/Additions/GNUstepBase/GSFunctions.h: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + * Headers/Additions/GNUstepBase/Unicode.h: + * Tools/xmlparse.m: + * Tools/defaults.m: + * Tools/locale_alias.m: + * Tools/Makefile.preamble: + * Tools/AGSParser.m: + * Tools/make_strings/make_strings.m: + * Tools/pl.m: + * Testing/tcpport-server.m: + * Testing/exported-strings.m: + * Testing/call.m: + * Testing/nsconnection_server.m: + * Testing/benchmark.m: + * Testing/tcpport-client.m: + Continuing effort to reduce global namespace pollution ... made many + external variables static (particuarly unicode tables). Changed + several global functions to be methods of a private internal class. + Also updated several usages of deprecated cString methods to use + either UTF8 methods or cString...encoding methods as seemed most + appropriate and/or simplest. 2006-10-06 Fred Kiefer - * Source/Additions/GSMime.m(GSMimeDocument +initialize): Corrected - small bug in last patch. + * Source/Additions/GSMime.m(GSMimeDocument +initialize): Corrected + small bug in last patch. 2006-10-05 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Add a couple more charset mappings. - * Source/NSRunLoop.m: Move some variables to GSRunLoopCtxt.m - * Source/GSHTTPURLHandle.m: Make a global static - * Source/NSPort.m: Make two globals static - * Source/unix/GSRunLoopCtxt.m: Make variable static. - * Source/win32/GSRunLoopCtxt.m: Make variable static. + * Source/Additions/GSMime.m: Add a couple more charset mappings. + * Source/NSRunLoop.m: Move some variables to GSRunLoopCtxt.m + * Source/GSHTTPURLHandle.m: Make a global static + * Source/NSPort.m: Make two globals static + * Source/unix/GSRunLoopCtxt.m: Make variable static. + * Source/win32/GSRunLoopCtxt.m: Make variable static. 2006-10-04 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: - * Source/NSHTTPCookieStorage.m: - * Source/GSHTTPAuthentication.m: Add a little checking for nil/invalid - arguments. Make parsing of authentication a little more tolerant. + * Source/GSHTTPURLHandle.m: + * Source/NSHTTPCookieStorage.m: + * Source/GSHTTPAuthentication.m: Add a little checking for nil/invalid + arguments. Make parsing of authentication a little more tolerant. 2006-10-03 Richard Frith-Macdonald - * Version: Bump to version for next release. - * configure.ac: Check for utsname - * configure: Regenerate - * Headers/Additions/GNUstepBase/config.h.in: Regenerate - * Headers/Foundation/NSObject.h: Small documentaion improvement - * Headers/Foundation/NSProcessInfo.h: Add documentation and update. - * Source/NSProcessInfo.m: Moved documentation to header, clean up - and complete operating system code. - * Testing/nsprocessinfo.m: Trivial test updates. Avoid use of cString + * Version: Bump to version for next release. + * configure.ac: Check for utsname + * configure: Regenerate + * Headers/Additions/GNUstepBase/config.h.in: Regenerate + * Headers/Foundation/NSObject.h: Small documentaion improvement + * Headers/Foundation/NSProcessInfo.h: Add documentation and update. + * Source/NSProcessInfo.m: Moved documentation to header, clean up + and complete operating system code. + * Testing/nsprocessinfo.m: Trivial test updates. Avoid use of cString 2006-10-02 Nicola Pero - More work on having the default flattened gnustep build with just - GNUSTEP_MAKEFILES set. Non-flattened builds will still require - sourcing GNUstep.sh before configure instead. - - * configure.ac: Use new variable GNUSTEP_IS_FLATTENED instead - of GNUSTEP_FLATTENED, defaulting now to 'yes'. To build - non-flattened you have to source GNUstep.sh first. - * configure.ac (config.make): When determining objc threading - flags in non-flattened mode, look for config.make in a - library-combo subdir since that's where it is installed by - gnustep-make now. - * configure.ac: Extended the error message when the GNUstep conf - file is not found. - * configure: Regenerated. - - * SSL/configure.ac: Use GNUSTEP_IS_FLATTENED instead of - GNUSTEP_FLATTENED. - * SSL/configure: Regenerated. - - * Source/GNUmakefile: Renamed -DGNUSTEP_FLATTENED to - -DGNUSTEP_IS_FLATTENED. This is just for consistency - with the new gnustep-make variable name. - * Source/NSPathUtilities.m: Same changes. + More work on having the default flattened gnustep build with just + GNUSTEP_MAKEFILES set. Non-flattened builds will still require + sourcing GNUstep.sh before configure instead. + + * configure.ac: Use new variable GNUSTEP_IS_FLATTENED instead + of GNUSTEP_FLATTENED, defaulting now to 'yes'. To build + non-flattened you have to source GNUstep.sh first. + * configure.ac (config.make): When determining objc threading + flags in non-flattened mode, look for config.make in a + library-combo subdir since that's where it is installed by + gnustep-make now. + * configure.ac: Extended the error message when the GNUstep conf + file is not found. + * configure: Regenerated. + + * SSL/configure.ac: Use GNUSTEP_IS_FLATTENED instead of + GNUSTEP_FLATTENED. + * SSL/configure: Regenerated. + + * Source/GNUmakefile: Renamed -DGNUSTEP_FLATTENED to + -DGNUSTEP_IS_FLATTENED. This is just for consistency + with the new gnustep-make variable name. + * Source/NSPathUtilities.m: Same changes. 2006-09-28 Richard Frith-Macdonald - * Source/NSBundle.m: Fix for buffer resize error when registering - framework info, as suggested by Andreas Hoschler. + * Source/NSBundle.m: Fix for buffer resize error when registering + framework info, as suggested by Andreas Hoschler. 2006-09-26 Richard Frith-Macdonald - * Source/NSString.m: ([stringByAddingPercentEscapesUsingEncoding:]) - Fix to escape '@' (in fact anything not unreserved acording to - RFC2396) - * Source/NSPathUtilities.m: Fix missing include. + * Source/NSString.m: ([stringByAddingPercentEscapesUsingEncoding:]) + Fix to escape '@' (in fact anything not unreserved acording to + RFC2396) + * Source/NSPathUtilities.m: Fix missing include. 2006-09-21 Richard Frith-Macdonald - * Source/NSProcessInfo.m: ([-operatingSystemName]) conform to - MacOS-X and return NSMACHOperatingSystem rather than darwin etc. + * Source/NSProcessInfo.m: ([-operatingSystemName]) conform to + MacOS-X and return NSMACHOperatingSystem rather than darwin etc. 2006-09-18 Nicola Pero - * configure.ac (GNUSTEP_MAKE_CONFIG): Get this config from - config-noarch.make (requires gnustep-make > 1.13.0). If failing, - fall back to taking it from $GNUSTEP_MAKEFILES/config.make as it - was done before (works with gnustep-make < 1.13.0 only though). - * configure: Regenerated. + * configure.ac (GNUSTEP_MAKE_CONFIG): Get this config from + config-noarch.make (requires gnustep-make > 1.13.0). If failing, + fall back to taking it from $GNUSTEP_MAKEFILES/config.make as it + was done before (works with gnustep-make < 1.13.0 only though). + * configure: Regenerated. 2006-09-13 Richard Frith-Macdonald - * Source/Additions/GSXML.m: Add hack to recognize apple plist info - and use the GNUstep plist DTD instead if necessary. + * Source/Additions/GSXML.m: Add hack to recognize apple plist info + and use the GNUstep plist DTD instead if necessary. 2006-09-13 Richard Frith-Macdonald - * Headers/Foundation/NSTimeZone.h: - * Headers/Foundation/NSHashTable.h: - * Headers/Foundation/NSRange.h: - * Headers/Foundation/NSCoder.h: - * Headers/Foundation/NSURLCredential.h: - * Headers/Foundation/NSHTTPCookieStorage.h: - * Headers/Foundation/NSException.h: - * Headers/Foundation/NSByteOrder.h: - * Headers/Foundation/NSPortCoder.h: - * Headers/Foundation/NSURL.h: - * Headers/Foundation/NSCompoundPredicate.h: - * Headers/Foundation/NSURLAuthenticationChallenge.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSCalendarDate.h: - * Headers/Foundation/NSDecimalNumber.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSKeyValueCoding.h: - * Headers/Foundation/NSSerialization.h: - * Headers/Foundation/NSURLHandle.h: - * Headers/Foundation/NSPropertyList.h: - * Headers/Foundation/NSTimer.h: - * Headers/Foundation/NSNotification.h: - * Headers/Foundation/NSPathUtilities.h: - * Headers/Foundation/NSScanner.h: - * Headers/Foundation/NSProcessInfo.h: - * Headers/Foundation/NSDistributedNotificationCenter.h: - * Headers/Foundation/NSNotificationQueue.h: - * Headers/Foundation/NSGeometry.h: - * Headers/Foundation/NSStream.h: - * Headers/Foundation/NSComparisonPredicate.h: - * Headers/Foundation/NSDecimal.h: - * Headers/Foundation/NSRunLoop.h: - * Headers/Foundation/NSAttributedString.h: - * Headers/Foundation/NSConnection.h: - * Headers/Foundation/NSUndoManager.h: - * Headers/Foundation/NSDateFormatter.h: - * Headers/Foundation/NSMethodSignature.h: - * Headers/Foundation/NSAutoreleasePool.h: - * Headers/Foundation/NSFormatter.h: - * Headers/Foundation/NSUserDefaults.h: - * Headers/Foundation/NSThread.h: - * Headers/Foundation/NSHTTPCookie.h: - * Headers/Foundation/NSData.h: - * Headers/Foundation/NSURLError.h: - * Headers/Foundation/NSDate.h: - * Headers/Foundation/NSHost.h: - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSProxy.h: - * Headers/Foundation/NSObjCRuntime.h: - * Headers/Foundation/NSURLProtectionSpace.h: - * Headers/Foundation/NSKeyedArchiver.h: - * Headers/Foundation/NSProtocolChecker.h: - * Headers/Foundation/NSDebug.h: - * Headers/Foundation/NSPortMessage.h: - * Headers/Foundation/NSError.h: - * Headers/Foundation/NSURLDownload.h: - * Headers/Foundation/NSDistributedLock.h: - * Headers/Foundation/NSFileHandle.h: - * Headers/Foundation/NSPredicate.h: - * Headers/Foundation/NSKeyValueObserving.h: - * Headers/Foundation/NSDictionary.h: - * Headers/Foundation/NSClassDescription.h: - * Headers/Foundation/NSNull.h: - * Headers/Foundation/NSZone.h: - * Headers/Foundation/NSURLRequest.h: - * Headers/Foundation/NSValue.h: - * Headers/Foundation/NSURLCredentialStorage.h: - * Headers/Foundation/NSIndexSet.h: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSSortDescriptor.h: - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSSet.h: - * Headers/Foundation/NSDistantObject.h: - * Headers/Foundation/NSExpression.h: - * Headers/Foundation/NSTask.h: - * Headers/Foundation/NSArchiver.h: - * Headers/Foundation/NSCharacterSet.h: - * Headers/Foundation/NSInvocation.h: - * Headers/Foundation/NSFileManager.h: - * Headers/Foundation/NSPortNameServer.h: - * Headers/Foundation/NSNumberFormatter.h: - * Headers/Foundation/NSXMLParser.h: - * Headers/Foundation/NSEnumerator.h: - * Headers/Foundation/NSURLResponse.h: - * Headers/Foundation/NSURLConnection.h: - * Headers/Foundation/NSIndexPath.h: - * Headers/Foundation/NSURLProtocol.h: - * Headers/Foundation/NSMapTable.h: - * Headers/Foundation/NSURLCache.h: - * Headers/Additions/GNUstepBase/GSLocale.h: - * Headers/Additions/GNUstepBase/GSXML.h: - * Headers/Additions/GNUstepBase/DistributedObjects.h: - * Headers/Additions/GNUstepBase/behavior.h: - * Headers/Additions/GNUstepBase/GSFunctions.h: - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: - * Headers/Additions/GNUstepBase/GSCategories.h: - * Headers/Additions/GNUstepBase/GCObject.h: - * Headers/Additions/GNUstepBase/GSIMap.h: - * Headers/Additions/GNUstepBase/GSIArray.h: - * Headers/Additions/GNUstepBase/GSMime.h: - * Headers/Additions/GNUstepBase/GSUnion.h: - * Headers/Additions/GNUstepBase/GSLock.h: - * Headers/Additions/GNUstepBase/GSFileHandle.h: - * Headers/Additions/GNUstepBase/GNUstep.h: - * Headers/Additions/GNUstepBase/objc-gnu2next.h: - * Headers/Additions/GNUstepBase/Unicode.h: - Bracket with 'extern "C"' for inclusion in Objective-C++ programs. - * Source/NSNotificationCenter.m: Remove deprecated method. + * Headers/Foundation/NSTimeZone.h: + * Headers/Foundation/NSHashTable.h: + * Headers/Foundation/NSRange.h: + * Headers/Foundation/NSCoder.h: + * Headers/Foundation/NSURLCredential.h: + * Headers/Foundation/NSHTTPCookieStorage.h: + * Headers/Foundation/NSException.h: + * Headers/Foundation/NSByteOrder.h: + * Headers/Foundation/NSPortCoder.h: + * Headers/Foundation/NSURL.h: + * Headers/Foundation/NSCompoundPredicate.h: + * Headers/Foundation/NSURLAuthenticationChallenge.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSCalendarDate.h: + * Headers/Foundation/NSDecimalNumber.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSKeyValueCoding.h: + * Headers/Foundation/NSSerialization.h: + * Headers/Foundation/NSURLHandle.h: + * Headers/Foundation/NSPropertyList.h: + * Headers/Foundation/NSTimer.h: + * Headers/Foundation/NSNotification.h: + * Headers/Foundation/NSPathUtilities.h: + * Headers/Foundation/NSScanner.h: + * Headers/Foundation/NSProcessInfo.h: + * Headers/Foundation/NSDistributedNotificationCenter.h: + * Headers/Foundation/NSNotificationQueue.h: + * Headers/Foundation/NSGeometry.h: + * Headers/Foundation/NSStream.h: + * Headers/Foundation/NSComparisonPredicate.h: + * Headers/Foundation/NSDecimal.h: + * Headers/Foundation/NSRunLoop.h: + * Headers/Foundation/NSAttributedString.h: + * Headers/Foundation/NSConnection.h: + * Headers/Foundation/NSUndoManager.h: + * Headers/Foundation/NSDateFormatter.h: + * Headers/Foundation/NSMethodSignature.h: + * Headers/Foundation/NSAutoreleasePool.h: + * Headers/Foundation/NSFormatter.h: + * Headers/Foundation/NSUserDefaults.h: + * Headers/Foundation/NSThread.h: + * Headers/Foundation/NSHTTPCookie.h: + * Headers/Foundation/NSData.h: + * Headers/Foundation/NSURLError.h: + * Headers/Foundation/NSDate.h: + * Headers/Foundation/NSHost.h: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSProxy.h: + * Headers/Foundation/NSObjCRuntime.h: + * Headers/Foundation/NSURLProtectionSpace.h: + * Headers/Foundation/NSKeyedArchiver.h: + * Headers/Foundation/NSProtocolChecker.h: + * Headers/Foundation/NSDebug.h: + * Headers/Foundation/NSPortMessage.h: + * Headers/Foundation/NSError.h: + * Headers/Foundation/NSURLDownload.h: + * Headers/Foundation/NSDistributedLock.h: + * Headers/Foundation/NSFileHandle.h: + * Headers/Foundation/NSPredicate.h: + * Headers/Foundation/NSKeyValueObserving.h: + * Headers/Foundation/NSDictionary.h: + * Headers/Foundation/NSClassDescription.h: + * Headers/Foundation/NSNull.h: + * Headers/Foundation/NSZone.h: + * Headers/Foundation/NSURLRequest.h: + * Headers/Foundation/NSValue.h: + * Headers/Foundation/NSURLCredentialStorage.h: + * Headers/Foundation/NSIndexSet.h: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSSortDescriptor.h: + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSSet.h: + * Headers/Foundation/NSDistantObject.h: + * Headers/Foundation/NSExpression.h: + * Headers/Foundation/NSTask.h: + * Headers/Foundation/NSArchiver.h: + * Headers/Foundation/NSCharacterSet.h: + * Headers/Foundation/NSInvocation.h: + * Headers/Foundation/NSFileManager.h: + * Headers/Foundation/NSPortNameServer.h: + * Headers/Foundation/NSNumberFormatter.h: + * Headers/Foundation/NSXMLParser.h: + * Headers/Foundation/NSEnumerator.h: + * Headers/Foundation/NSURLResponse.h: + * Headers/Foundation/NSURLConnection.h: + * Headers/Foundation/NSIndexPath.h: + * Headers/Foundation/NSURLProtocol.h: + * Headers/Foundation/NSMapTable.h: + * Headers/Foundation/NSURLCache.h: + * Headers/Additions/GNUstepBase/GSLocale.h: + * Headers/Additions/GNUstepBase/GSXML.h: + * Headers/Additions/GNUstepBase/DistributedObjects.h: + * Headers/Additions/GNUstepBase/behavior.h: + * Headers/Additions/GNUstepBase/GSFunctions.h: + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: + * Headers/Additions/GNUstepBase/GSCategories.h: + * Headers/Additions/GNUstepBase/GCObject.h: + * Headers/Additions/GNUstepBase/GSIMap.h: + * Headers/Additions/GNUstepBase/GSIArray.h: + * Headers/Additions/GNUstepBase/GSMime.h: + * Headers/Additions/GNUstepBase/GSUnion.h: + * Headers/Additions/GNUstepBase/GSLock.h: + * Headers/Additions/GNUstepBase/GSFileHandle.h: + * Headers/Additions/GNUstepBase/GNUstep.h: + * Headers/Additions/GNUstepBase/objc-gnu2next.h: + * Headers/Additions/GNUstepBase/Unicode.h: + Bracket with 'extern "C"' for inclusion in Objective-C++ programs. + * Source/NSNotificationCenter.m: Remove deprecated method. 2006-09-13 Richard Frith-Macdonald - * Source/Additions/GSMime.m: When decoding a corrupt encoded word - in a header, abandon processing of the header without appending - any decoded data. - * Headers/Foundation/NSBundle.h: - * Source/NSBundle.m: - ([pathForResource:ofType:inDirectory:forLocalization:]) implement. + * Source/Additions/GSMime.m: When decoding a corrupt encoded word + in a header, abandon processing of the header without appending + any decoded data. + * Headers/Foundation/NSBundle.h: + * Source/NSBundle.m: + ([pathForResource:ofType:inDirectory:forLocalization:]) implement. 2006-09-10 Richard Frith-Macdonald - * Source/NSTimeZone.m: Remove unnecessary check on file name as - Roland Schwingel reported that it caught legitimate files on windows. - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - * Source/NSIndexPath.m: - * Source/NSBundle.m: - Protect -release with lock and remove object from global table within - protected region, to avoid possible double deallocation in a - multithreaded process. - * Source/unix/NSStream.m: If socklen_t is not defined, assume uint32_t + * Source/NSTimeZone.m: Remove unnecessary check on file name as + Roland Schwingel reported that it caught legitimate files on windows. + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + * Source/NSIndexPath.m: + * Source/NSBundle.m: + Protect -release with lock and remove object from global table within + protected region, to avoid possible double deallocation in a + multithreaded process. + * Source/unix/NSStream.m: If socklen_t is not defined, assume uint32_t 2006-09-09 Richard Frith-Macdonald - * Source/win32/NSMessagePortWin32.m: Restructure to try to avoid - deadlock reported by Wim. Also implement -release to remove port - from name table so that another thread can't find it in the window - between checking the refcount end deallocation. + * Source/win32/NSMessagePortWin32.m: Restructure to try to avoid + deadlock reported by Wim. Also implement -release to remove port + from name table so that another thread can't find it in the window + between checking the refcount end deallocation. 2006-09-07 Richard Frith-Macdonald - * Headers/Foundation/NSObject.h: Fix incorrect backward compatibility - setting for openstep version. - * Source/NSObject.m: minor tweak ... put debugging code in the object - reference counting function rather than the release method. - * Source/NSConnection.m: Change release implementation for better - protection of global connection table management. + * Headers/Foundation/NSObject.h: Fix incorrect backward compatibility + setting for openstep version. + * Source/NSObject.m: minor tweak ... put debugging code in the object + reference counting function rather than the release method. + * Source/NSConnection.m: Change release implementation for better + protection of global connection table management. 2006-09-06 Richard Frith-Macdonald - * Source/NSConnection.m: ([release]) protect with connection table - lock to prevent an other thread grabbing the connection while we - are deallocating it. Bug reported by Wim Oudshoorn. + * Source/NSConnection.m: ([release]) protect with connection table + lock to prevent an other thread grabbing the connection while we + are deallocating it. Bug reported by Wim Oudshoorn. 2006-08-28 Adam Fedor - * Version 1.13.0 + * Version 1.13.0 2006-08-26 Richard Frith-Macdonald - * Source/NSProcessInfo.m: Fix passing int variable to printf format - expecting long. - * Source/NSTask.m: create windows task as detached process. - * NSTimeZones/NSTimeZones./tar: regenerated + * Source/NSProcessInfo.m: Fix passing int variable to printf format + expecting long. + * Source/NSTask.m: create windows task as detached process. + * NSTimeZones/NSTimeZones./tar: regenerated 2006-08-25 Richard Frith-Macdonald - * Source/NSScanner.m: initialisation fix pointed out by David Ayer - * Source/NSBundle.m: fix for getting class from gnustep bundle - * Source/NSConnection.m: thread deadlock fix based on probelm and - solution supplied by Wim Oudshoorn - * Source/NSArchiver.m: - * Source/NSKeyedArchiver.m: - * Source/NSPortCoder.m: Fix possible problem on 64bit CPUs reported - by Wim. + * Source/NSScanner.m: initialisation fix pointed out by David Ayer + * Source/NSBundle.m: fix for getting class from gnustep bundle + * Source/NSConnection.m: thread deadlock fix based on probelm and + solution supplied by Wim Oudshoorn + * Source/NSArchiver.m: + * Source/NSKeyedArchiver.m: + * Source/NSPortCoder.m: Fix possible problem on 64bit CPUs reported + by Wim. 2006-08-16 Richard Frith-Macdonald - * NSCharacterSets/letterCharSet.dat: - * NSCharacterSets/symbolAndOperatorCharSet.dat: - * NSCharacterSets/lowercaseLetterCharSet.dat: - * NSCharacterSets/uppercaseLetterCharSet.dat: - * NSCharacterSets/alphanumericCharSet.dat: - * NSCharacterSets/punctuationCharSet.dat: - * NSCharacterSets/illegalCharSet.dat: - * NSCharacterSets/decimalDigitCharSet.dat: - * NSCharacterSets/nonBaseCharSet.dat: - * NSCharacterSets/decomposableCharSet.dat: Update for chinese etc. - * Source/NSCharacterSetData.h: Update with ranges in UnicodeData.txt - * Source/GSStream.m: Add partial implemenmtation of socks5 - * Source/Additions/GSMime.m: improve fault tolerance when parsing - headers. + * NSCharacterSets/letterCharSet.dat: + * NSCharacterSets/symbolAndOperatorCharSet.dat: + * NSCharacterSets/lowercaseLetterCharSet.dat: + * NSCharacterSets/uppercaseLetterCharSet.dat: + * NSCharacterSets/alphanumericCharSet.dat: + * NSCharacterSets/punctuationCharSet.dat: + * NSCharacterSets/illegalCharSet.dat: + * NSCharacterSets/decimalDigitCharSet.dat: + * NSCharacterSets/nonBaseCharSet.dat: + * NSCharacterSets/decomposableCharSet.dat: Update for chinese etc. + * Source/NSCharacterSetData.h: Update with ranges in UnicodeData.txt + * Source/GSStream.m: Add partial implemenmtation of socks5 + * Source/Additions/GSMime.m: improve fault tolerance when parsing + headers. 2006-08-15 Richard Frith-Macdonald - * Source/GSString.m: substring_c(), substring_u() move structure type - declaration out of function to help old (pre-gcc-3) compiler, as - suggested by Adam. - * Source/NSString: ([dataUsingEncoding:allowLossyConversion:]} - replace implementation with call to concrete subclass so that we only - have one version of this large, complex method to maintain, as - suggested by David. + * Source/GSString.m: substring_c(), substring_u() move structure type + declaration out of function to help old (pre-gcc-3) compiler, as + suggested by Adam. + * Source/NSString: ([dataUsingEncoding:allowLossyConversion:]} + replace implementation with call to concrete subclass so that we only + have one version of this large, complex method to maintain, as + suggested by David. 2006-08-14 Richard Frith-Macdonald - * Source/NSKeyedArchiver.m: make a guess at how MacOS-X decides to - encode objects directly ... if the classForKeyedArchiver method - returns a property list class (other then array and dictionary - which contain other objects) we try direct coding. + * Source/NSKeyedArchiver.m: make a guess at how MacOS-X decides to + encode objects directly ... if the classForKeyedArchiver method + returns a property list class (other then array and dictionary + which contain other objects) we try direct coding. 2006-08-13 Richard Frith-Macdonald - * Source/GSFormat.m: optimise a bit and fix bug where utf8 (and other - multibyte encodings) strings could be truncated at the wrong - precision. - * Source/NSIndexPath.m: ([indexAtPosition:]) return NSNotFound if - given a bad position. ([compare:]) fix to match MacOS-X - * Source/NSObject.m: implement CRASH_ON_ZOMBIE - * Documentation/Base.gsdoc: document it. - * Source/NSArray.m: Fix error in decoding from keyed archive. + * Source/GSFormat.m: optimise a bit and fix bug where utf8 (and other + multibyte encodings) strings could be truncated at the wrong + precision. + * Source/NSIndexPath.m: ([indexAtPosition:]) return NSNotFound if + given a bad position. ([compare:]) fix to match MacOS-X + * Source/NSObject.m: implement CRASH_ON_ZOMBIE + * Documentation/Base.gsdoc: document it. + * Source/NSArray.m: Fix error in decoding from keyed archive. 2006-08-12 Richard Frith-Macdonald - * Source/GSString.m: getCString_c() call getCString_u() to do the - work if external encoding != internal encoding. - * Source/NSScanner.m: Fix for utf8 - * Source/GSFormat.m: remove call to deprecated method. - * Source/NSString.m: remove calls to deprecated methods. - Fix getCstring... by using concrete class implementation. + * Source/GSString.m: getCString_c() call getCString_u() to do the + work if external encoding != internal encoding. + * Source/NSScanner.m: Fix for utf8 + * Source/GSFormat.m: remove call to deprecated method. + * Source/NSString.m: remove calls to deprecated methods. + Fix getCstring... by using concrete class implementation. 2006-08-11 Richard Frith-Macdonald - * Source/NSTask.m: Fixup for path validation error on mingw32 - * Headers/Foundation/NSStream.h: improve documentation. - * Source/GSStream.h: - * Source/GSStream.m: - * Source/unix/NSStream.m: - * Source/win32/NSStreamWin32.m: - Add lots of error checking, simplify a little, get local streams on - mingw to close down properly. + * Source/NSTask.m: Fixup for path validation error on mingw32 + * Headers/Foundation/NSStream.h: improve documentation. + * Source/GSStream.h: + * Source/GSStream.m: + * Source/unix/NSStream.m: + * Source/win32/NSStreamWin32.m: + Add lots of error checking, simplify a little, get local streams on + mingw to close down properly. 2006-08-10 Richard Frith-Macdonald - * Source/GSStream.m: - * Source/win32/NSStreamWin32.m: - Fix error in pipe read offset. Imitial implementation of local - 'unix domain sockets' (actually named pipe) stream. + * Source/GSStream.m: + * Source/win32/NSStreamWin32.m: + Fix error in pipe read offset. Imitial implementation of local + 'unix domain sockets' (actually named pipe) stream. 2006-08-10 Nicola Pero - * configure.ac: Fixed typo in help of --with-default-config option. - * configure: Regenerated + * configure.ac: Fixed typo in help of --with-default-config option. + * configure: Regenerated 2006-08-10 Richard Frith-Macdonald - * Source/GSStream.h: - * Source/GSStream.m: - * Source/unix/NSStream.m: - * Source/win32/NSStreamWin32.m: - Ensure all events are posted. Fixup for winsock write signalling. + * Source/GSStream.h: + * Source/GSStream.m: + * Source/unix/NSStream.m: + * Source/win32/NSStreamWin32.m: + Ensure all events are posted. Fixup for winsock write signalling. 2006-08-09 Richard Frith-Macdonald - * Documentation/Base.gsdoc: Improve links to macros. - * Headers/Foundation/NSObject.h: Improve versioning documentation - * Headers/Foundation/NSNotificationQueue.h: tidied - * Headers/Foundation/NSUndoManager.h: ditto - * Headers/Foundation/NSAutoreleasePool.h: ditto - Documentation improvements and header tidyups. + * Documentation/Base.gsdoc: Improve links to macros. + * Headers/Foundation/NSObject.h: Improve versioning documentation + * Headers/Foundation/NSNotificationQueue.h: tidied + * Headers/Foundation/NSUndoManager.h: ditto + * Headers/Foundation/NSAutoreleasePool.h: ditto + Documentation improvements and header tidyups. 2006-08-08 Richard Frith-Macdonald - * Source/GSStream.h: - * Source/GSStream.m: - * Source/win32/NSStreamWin32.m: - * Source/unix/NSStream.m: - If a connection attempt fails, propagate error to sibling stream so - both streams in the pair get a failure. - Try to make behavior of socket streams MacOs-X like, avoiding repeated - notifications of events. + * Source/GSStream.h: + * Source/GSStream.m: + * Source/win32/NSStreamWin32.m: + * Source/unix/NSStream.m: + If a connection attempt fails, propagate error to sibling stream so + both streams in the pair get a failure. + Try to make behavior of socket streams MacOs-X like, avoiding repeated + notifications of events. 2006-08-07 00:13-EDT Gregory John Casamento - * Source/NSData.m: Correct issue in initWithCoder: and encodeWithCoder: - with encoding data using keyed archiver. + * Source/NSData.m: Correct issue in initWithCoder: and encodeWithCoder: + with encoding data using keyed archiver. 2006-08-06 Richard Frith-Macdonald - * Source/NSPredicate.m: Reorganize initialisation of scanner to avoid - implicit cast of zero to a va_listt (fix bug #17336) - * Source/Additions/GSObjCRuntime.m: GSObjCMakeClass() fix incorrect - calculation of ivar size/offset information as reported in bug #17069 + * Source/NSPredicate.m: Reorganize initialisation of scanner to avoid + implicit cast of zero to a va_listt (fix bug #17336) + * Source/Additions/GSObjCRuntime.m: GSObjCMakeClass() fix incorrect + calculation of ivar size/offset information as reported in bug #17069 2006-08-04 23:26-EDT Gregory John Casamento - * Source/NSKeyedArchiver.m: in _encodeObject:forKey: use replacement - if it exists. - * Source/NSKeyedUnarchiver.m: in unarchiveObjectWithFile: remove - autorelease pool, since the unarchiveObjectWithData: object is - already autoreleased, this was causing a crash when unarchiving the - object. + * Source/NSKeyedArchiver.m: in _encodeObject:forKey: use replacement + if it exists. + * Source/NSKeyedUnarchiver.m: in unarchiveObjectWithFile: remove + autorelease pool, since the unarchiveObjectWithData: object is + already autoreleased, this was causing a crash when unarchiving the + object. 2006-07-26 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Remove a couple of comments - * Headers/Additions/GNUstepBase/GSMime.h: Add improved documentation - for the bas64 conversion methods. + * Source/Additions/GSMime.m: Remove a couple of comments + * Headers/Additions/GNUstepBase/GSMime.h: Add improved documentation + for the bas64 conversion methods. 2006-07-25 Richard Frith-Macdonald - * Source/NSKeyedUnarchiver.m: Reinstate fix of 2006-07-14 which was - erroneously reverted on 2006-07-15. + * Source/NSKeyedUnarchiver.m: Reinstate fix of 2006-07-14 which was + erroneously reverted on 2006-07-15. 2006-07-19 Jeremy Bettis - * Source/win32/NSUserDefaultsWin32.m: - The method wantToReadDefaultsSince: - was always returning YES. Fixed to work as intended. + * Source/win32/NSUserDefaultsWin32.m: + The method wantToReadDefaultsSince: + was always returning YES. Fixed to work as intended. 2006-07-18 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Only queue a new read on a handle if there - is not one in progress. Where a connection has been kept alive, we - can have an outstanding read intended to determine when the connection - is dropped by the remote end. + * Source/GSHTTPURLHandle.m: Only queue a new read on a handle if there + is not one in progress. Where a connection has been kept alive, we + can have an outstanding read intended to determine when the connection + is dropped by the remote end. 2006-07-15 17:00 Gregory John Casamento - * Source/NSKeyedUnarchiver.m: Partial fix for bug#17112. + * Source/NSKeyedUnarchiver.m: Partial fix for bug#17112. 2006-07-14 Richard Frith-Macdonald - * Source/NSKeyedUnarchiver.m: ([-dealloc]) release objects in array - to fix bug #17097 + * Source/NSKeyedUnarchiver.m: ([-dealloc]) release objects in array + to fix bug #17097 2006-07-07 Richard Frith-Macdonald - * Resources/Languages/README: describe how to deal with files where - the BOM is missing. - * Resources/Languages/Korean: update supplied by YunSong Hwang + * Resources/Languages/README: describe how to deal with files where + the BOM is missing. + * Resources/Languages/Korean: update supplied by YunSong Hwang 2006-07-06 Richard Frith-Macdonald - * Tools/gdomap.c: remove unnecessary include of config.h + * Tools/gdomap.c: remove unnecessary include of config.h 2006-07-04 Richard Frith-Macdonald - * Source/NSTask.m: On mingw32 create subtask with CREATE_NO_WINDOW - * Source/GSURLPrivate.h: Generalise GSHTTPAuthentication - * Source/GSHTTPAuthentication.m: Generalise to support Basic auth - * Source/NSURLProtectionSpace.m: Optimise a little. - * Source/GSHTTPURLHandle.m: Changes for GSHTTPAuthentication update. - Don't send basic authentication info unless challenged by server. + * Source/NSTask.m: On mingw32 create subtask with CREATE_NO_WINDOW + * Source/GSURLPrivate.h: Generalise GSHTTPAuthentication + * Source/GSHTTPAuthentication.m: Generalise to support Basic auth + * Source/NSURLProtectionSpace.m: Optimise a little. + * Source/GSHTTPURLHandle.m: Changes for GSHTTPAuthentication update. + Don't send basic authentication info unless challenged by server. 2006-07-02 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Keep count of challenge/authentication - to avoid recycling the same authentucation repeatedly. + * Source/GSHTTPURLHandle.m: Keep count of challenge/authentication + to avoid recycling the same authentucation repeatedly. 2006-06-29 Richard Frith-Macdonald - * Source/Tools/gdnc.m: Don't try to trap SIGPROF - * Source/GSString.m: fix bug getting Cstring. - * Source/NSNotificationQueue.m: fix mem leak in multithreaded apps. + * Source/Tools/gdnc.m: Don't try to trap SIGPROF + * Source/GSString.m: fix bug getting Cstring. + * Source/NSNotificationQueue.m: fix mem leak in multithreaded apps. 2006-06-27 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Fix spelling in comment - * Source/NSPathUtilities.m: Add GNUSTEP_EXTRA to allow extra info - in GSConfigDomain without producing an error message. - * Documentation/Base.gsdoc: Document GNUSTEP_EXTRA + * Source/NSUserDefaults.m: Fix spelling in comment + * Source/NSPathUtilities.m: Add GNUSTEP_EXTRA to allow extra info + in GSConfigDomain without producing an error message. + * Documentation/Base.gsdoc: Document GNUSTEP_EXTRA 2006-06-22 Richard Frith-Macdonald - * Source/GSString.m: small optimisation for initialisation with - unicode data which happens to be just ascii. + * Source/GSString.m: small optimisation for initialisation with + unicode data which happens to be just ascii. 2006-06-20 Richard Frith-Macdonald - * Source/GSHTTPDigest.m: deleted - * Source/GSHTTPAuthentication.m: added - * Source/GNUmakefile: build GSHTTPAuthentication - * Source/GSHTTPURLHandle.m: use GSHTTPAuthentication - Change class name to something more intuitive and add class methods - for mapping domains/URLs to protection space objects. - Update code to used cache protection space info to put digest - authorisation in place without waiting for challenge. + * Source/GSHTTPDigest.m: deleted + * Source/GSHTTPAuthentication.m: added + * Source/GNUmakefile: build GSHTTPAuthentication + * Source/GSHTTPURLHandle.m: use GSHTTPAuthentication + Change class name to something more intuitive and add class methods + for mapping domains/URLs to protection space objects. + Update code to used cache protection space info to put digest + authorisation in place without waiting for challenge. 2006-06-19 Richard Frith-Macdonald - * Source/GSURLPrivate.h: Add GSHTTPDigest interface. - * Source/GSHTTPDigest.m: Add GSHTTPDigest implementation. - * Source/GNUmakefile: Build GSHTTPDigest. - * Source/NSURLProtectionSpace.m: Implement ([-hash]) and ([-isEqual:]) - * Headers/Foundation/NSURLAuthenticationChallenge.h: Improve comments. - Add GSHTTPDigest class to handle HTTP digest authentication. - * Source/GSHTTPURLHandle.m: Perform rudimentary digest authentication. + * Source/GSURLPrivate.h: Add GSHTTPDigest interface. + * Source/GSHTTPDigest.m: Add GSHTTPDigest implementation. + * Source/GNUmakefile: Build GSHTTPDigest. + * Source/NSURLProtectionSpace.m: Implement ([-hash]) and ([-isEqual:]) + * Headers/Foundation/NSURLAuthenticationChallenge.h: Improve comments. + Add GSHTTPDigest class to handle HTTP digest authentication. + * Source/GSHTTPURLHandle.m: Perform rudimentary digest authentication. 2006-06-17 Richard Frith-Macdonald - * Source/GSString.m: Fix memory leak. - * Source/NSAutoreleasePool.m: Optimise -emptyPool method. - * Source/NSRunLoop.m: Empty autorelease pool after firing each - timer/event so that huge memory footprints are less likely to occur. + * Source/GSString.m: Fix memory leak. + * Source/NSAutoreleasePool.m: Optimise -emptyPool method. + * Source/NSRunLoop.m: Empty autorelease pool after firing each + timer/event so that huge memory footprints are less likely to occur. 2006-06-16 Richard Frith-Macdonald - * Headers/Foundation/NSURLCredential.h: - * Headers/Foundation/NSHTTPCookieStorage.h: - * Headers/Foundation/NSURLAuthenticationChallenge.h: - * Headers/Foundation/NSHTTPCookie.h: - * Headers/Foundation/NSURLError.h: - * Headers/Foundation/NSURLProtectionSpace.h: - * Headers/Foundation/NSURLDownload.h: - * Headers/Foundation/NSURLRequest.h: - * Headers/Foundation/NSURLCredentialStorage.h: - * Headers/Foundation/Foundation.h: - * Headers/Foundation/NSURLResponse.h: - * Headers/Foundation/NSURLConnection.h: - * Headers/Foundation/NSURLProtocol.h: - * Headers/Foundation/NSURLCache.h: - Headers for Apple's new URL loading scheme (including documentation). - * Source/NSMapTable.m: - * Source/NSURLCredential.m: - * Source/NSURLAuthenticationChallenge.m: - * Source/NSURLHandle.m: - * Source/GNUmakefile: - * Source/NSURLDownload.m: - * Source/NSURLCredentialStorage.m: - * Source/NSURLResponse.m: - * Source/NSURLProtocol.m: - * Source/NSURLCache.m: - * Source/NSHTTPCookieStorage.m: - * Source/NSURL.m: - * Source/DocMakefile: - * Source/NSHTTPCookie.m: - * Source/NSURLProtectionSpace.m: - * Source/NSURLRequest.m: - * Source/NSSet.m: - * Source/NSURLConnection.m: - Skeleton code for Apple's new URL loading scheme (plus minor - tweaks to comments in other files). This code is not expected - to work yet. Major lacks are ... - 1. concrete implementations of protocols - 2. on disk cache/storage management - 3. thread safety (locking) for shared objects - However, I hope it will provide a good starting framework. + * Headers/Foundation/NSURLCredential.h: + * Headers/Foundation/NSHTTPCookieStorage.h: + * Headers/Foundation/NSURLAuthenticationChallenge.h: + * Headers/Foundation/NSHTTPCookie.h: + * Headers/Foundation/NSURLError.h: + * Headers/Foundation/NSURLProtectionSpace.h: + * Headers/Foundation/NSURLDownload.h: + * Headers/Foundation/NSURLRequest.h: + * Headers/Foundation/NSURLCredentialStorage.h: + * Headers/Foundation/Foundation.h: + * Headers/Foundation/NSURLResponse.h: + * Headers/Foundation/NSURLConnection.h: + * Headers/Foundation/NSURLProtocol.h: + * Headers/Foundation/NSURLCache.h: + Headers for Apple's new URL loading scheme (including documentation). + * Source/NSMapTable.m: + * Source/NSURLCredential.m: + * Source/NSURLAuthenticationChallenge.m: + * Source/NSURLHandle.m: + * Source/GNUmakefile: + * Source/NSURLDownload.m: + * Source/NSURLCredentialStorage.m: + * Source/NSURLResponse.m: + * Source/NSURLProtocol.m: + * Source/NSURLCache.m: + * Source/NSHTTPCookieStorage.m: + * Source/NSURL.m: + * Source/DocMakefile: + * Source/NSHTTPCookie.m: + * Source/NSURLProtectionSpace.m: + * Source/NSURLRequest.m: + * Source/NSSet.m: + * Source/NSURLConnection.m: + Skeleton code for Apple's new URL loading scheme (plus minor + tweaks to comments in other files). This code is not expected + to work yet. Major lacks are ... + 1. concrete implementations of protocols + 2. on disk cache/storage management + 3. thread safety (locking) for shared objects + However, I hope it will provide a good starting framework. 2006-06-15 Richard Frith-Macdonald - * Additions/GNUstepBase/GSXML.h: New XMLRPC settings to control - timezone and to produce compact output. - * Source/Additions/GSXML.m: New methods and bugfix for handling - string data with no 'string' element markup. - * Additions/GNUstepBase/GSMime.h: Fix possible cases of parsing - saying that it needs more data when you have passed it an empty - data item to terminate parsing. + * Additions/GNUstepBase/GSXML.h: New XMLRPC settings to control + timezone and to produce compact output. + * Source/Additions/GSXML.m: New methods and bugfix for handling + string data with no 'string' element markup. + * Additions/GNUstepBase/GSMime.h: Fix possible cases of parsing + saying that it needs more data when you have passed it an empty + data item to terminate parsing. 2006-06-06 Richard Frith-Macdonald - * Source/NSURL.m: ([initWithScheme:host:path:]) escape characters in - path as required. + * Source/NSURL.m: ([initWithScheme:host:path:]) escape characters in + path as required. 2006-06-04 Richard Frith-Macdonald - * Source/NSIndexPath.m: - * Source/NSSocketPortNameServer.m: - * Source/NSTimeZone.m: - * Source/NSPortCoder.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSAttributedString.m: - * Source/GSArray.m: - * Source/NSKeyedArchiver.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSKeyValueObserving.m: - * Source/NSUnarchiver.m: - * Source/GSAttributedString.m: - * Source/Additions/GCArray.m: - * Source/Additions/GCDictionary.m: - * Source/Additions/GCObject.m: - * Source/NSNumber.m: - * Source/GSString.m: - * Source/NSConnection.m: - * Source/NSAutoreleasePool.m: - * Source/NSThread.m: - * Source/NSData.m: - * Source/NSDate.m: - * Source/NSNull.m: - * Source/NSValue.m: - * Source/NSPortNameServer.m: - * Headers/Additions/GNUstepBase/preface.h.in: - Fixups to avoid spurious compiler warnings. + * Source/NSIndexPath.m: + * Source/NSSocketPortNameServer.m: + * Source/NSTimeZone.m: + * Source/NSPortCoder.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSAttributedString.m: + * Source/GSArray.m: + * Source/NSKeyedArchiver.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSKeyValueObserving.m: + * Source/NSUnarchiver.m: + * Source/GSAttributedString.m: + * Source/Additions/GCArray.m: + * Source/Additions/GCDictionary.m: + * Source/Additions/GCObject.m: + * Source/NSNumber.m: + * Source/GSString.m: + * Source/NSConnection.m: + * Source/NSAutoreleasePool.m: + * Source/NSThread.m: + * Source/NSData.m: + * Source/NSDate.m: + * Source/NSNull.m: + * Source/NSValue.m: + * Source/NSPortNameServer.m: + * Headers/Additions/GNUstepBase/preface.h.in: + Fixups to avoid spurious compiler warnings. 2006-06-02 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Fix uninitialised variable problem. + * Source/GSHTTPURLHandle.m: Fix uninitialised variable problem. 2006-06-01 Richard Frith-Macdonald - * Source/GSString.m: Fix position of external function declaration. - Fix use gf getCString methods for length error. - * Headers/Foundation/NSGeometry.h: Tweaks for stuff reported as - problematic with objective-c++ compile. + * Source/GSString.m: Fix position of external function declaration. + Fix use gf getCString methods for length error. + * Headers/Foundation/NSGeometry.h: Tweaks for stuff reported as + problematic with objective-c++ compile. 2006-05-30 David Ayers - * Source/GSPrivate.h (GSCharPtr): New union type to handle - alignment issues. - (GSString): Use it. - * Source/GSString.m - ([-initWithBytesNoCopy:length:encoding:freeWhenDone:]): Use GSCharPtr - instead of casts to avoid alignment issues. Fix typo's. + * Source/GSPrivate.h (GSCharPtr): New union type to handle + alignment issues. + (GSString): Use it. + * Source/GSString.m + ([-initWithBytesNoCopy:length:encoding:freeWhenDone:]): Use GSCharPtr + instead of casts to avoid alignment issues. Fix typo's. - * Source/NSString.m - ([-initWithBytesNoCopy:length:encoding:freeWhenDone:]): Correct grammar - in comment. + * Source/NSString.m + ([-initWithBytesNoCopy:length:encoding:freeWhenDone:]): Correct grammar + in comment. 2006-05-30 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Use 'goto' to jump to 'done' label on - failure to grow buffer, rather than 'break' ... because the GROW() - macro is not aways called where a break gets you to the right place. - Fixes bug spotted by David Ayers, and is also clearer code. + * Source/Additions/Unicode.m: Use 'goto' to jump to 'done' label on + failure to grow buffer, rather than 'break' ... because the GROW() + macro is not aways called where a break gets you to the right place. + Fixes bug spotted by David Ayers, and is also clearer code. 2006-05-26 Richard Frith-Macdonald - * Tools/objctidy.m: Crude utility to help importing code into - GNUstep by trying to reformat common style differences to something - like iour coding standards. + * Tools/objctidy.m: Crude utility to help importing code into + GNUstep by trying to reformat common style differences to something + like iour coding standards. 2006-05-25 Andrew Ruder - * Source/NSConcreteNumberTemplate.m (from NSConcreteNumber.m): - * Source/GSConcreteValueTemplate.m (from GSTemplateValue.m): - * Source/GNUmakefile: - * Source/Makefile.postamble: - * Source/GSConcreteValue.m (added): - * Source/NSConcreteNumber.m (added): - Get rid of use of sed to generate concrete NSNumber/NSValue classes. - Use preprocessor to get around generation of additional files. + *Source/NSConcreteNumberTemplate.m (from NSConcreteNumber.m): + * Source/GSConcreteValueTemplate.m (from GSTemplateValue.m): + *Source/GNUmakefile: + * Source/Makefile.postamble: + *Source/GSConcreteValue.m (added): + * Source/NSConcreteNumber.m (added): + Get rid of use of sed to generate concrete NSNumber/NSValue classes. + Use preprocessor to get around generation of additional files. 2006-05-24 Richard Frith-Macdonald - * Source/NSPredicate.m: Restore last changes with varargs rewrite - using va_copy to try to make code portable. This version compiles - on systems where va_list is not a simple pointer, but is untested. - * Source/GSString.m: Use GSIsByteEncoding() to test whether an - encoding can hold ascii data. + * Source/NSPredicate.m: Restore last changes with varargs rewrite + using va_copy to try to make code portable. This version compiles + on systems where va_list is not a simple pointer, but is untested. + * Source/GSString.m: Use GSIsByteEncoding() to test whether an + encoding can hold ascii data. 2006-05-24 Richard Frith-Macdonald - * Source/NSTimeZone.m: - * Source/NSBundle.m: - * Source/NSPropertyList.m: - * Source/NSProcessInfo.m: - * Source/NSPage.m: - * Source/NSCallBacks.m: - * Source/NSSortDescriptor.m: - * Source/NSFileManager.m: - * Source/objc-load.m: - * Source/NSException.m: - * Source/NSString.m: - * Source/mframe.m: - * Source/cifframe.m: - * Source/Additions/Unicode.m: - * Source/Additions/GSXML.m: - * Source/Additions/GSNextRuntime.m: - * Source/NSConnection.m: - * Source/callframe.m: - Tidy up uses of malloc etc to all go through objc_malloc and friends. + * Source/NSTimeZone.m: + * Source/NSBundle.m: + * Source/NSPropertyList.m: + * Source/NSProcessInfo.m: + * Source/NSPage.m: + * Source/NSCallBacks.m: + * Source/NSSortDescriptor.m: + * Source/NSFileManager.m: + * Source/objc-load.m: + * Source/NSException.m: + * Source/NSString.m: + * Source/mframe.m: + * Source/cifframe.m: + * Source/Additions/Unicode.m: + * Source/Additions/GSXML.m: + * Source/Additions/GSNextRuntime.m: + * Source/NSConnection.m: + * Source/callframe.m: + Tidy up uses of malloc etc to all go through objc_malloc and friends. 2006-05-23 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Fix some cases where parse was saying - it needed more data even though it had actually completed. - * Source/NSException.m: Don't add stacktrace information if we are - not building with debug on. - * Source/GSString.m: Minor optimisation ... return @"" for all - substrings with a zero length range. + * Source/Additions/GSMime.m: Fix some cases where parse was saying + it needed more data even though it had actually completed. + * Source/NSException.m: Don't add stacktrace information if we are + not building with debug on. + * Source/GSString.m: Minor optimisation ... return @"" for all + substrings with a zero length range. 2006-05-22 Richard Frith-Macdonald - * Source/NSSerializer.m: Fix longstanding deserialisation problem ... - is not retaining cross-referenced items... which is not a problem unless - the item happens to be a dictionary key which is copied/released - when the corresponding value is added to the dictionary. - * Source/GSString.m: Make sure inline strings have 'free' flag set and - add comments to say we use it to indicate ownership of buffer rather - than whether to free the data. Maybe we should change the flag name? - * Source/Additions/Unicode.m: Fix missing brackets in byte order - handling for UTF-16. Problem pointed out by David Ayers + * Source/NSSerializer.m: Fix longstanding deserialisation problem ... + is not retaining cross-referenced items... which is not a problem unless + the item happens to be a dictionary key which is copied/released + when the corresponding value is added to the dictionary. + * Source/GSString.m: Make sure inline strings have 'free' flag set and + add comments to say we use it to indicate ownership of buffer rather + than whether to free the data. Maybe we should change the flag name? + * Source/Additions/Unicode.m: Fix missing brackets in byte order + handling for UTF-16. Problem pointed out by David Ayers 2006-05-20 Richard Frith-Macdonald - Restore reversions with a bugfix for deserialising ascii strings + Restore reversions with a bugfix for deserialising ascii strings 2006-05-20 Richard Frith-Macdonald - Revert last changes ... passed regression tests but broke some - software :-( + Revert last changes ... passed regression tests but broke some + software :-( 2006-05-20 Richard Frith-Macdonald - * Source/GSString.m: - * Source/NSSerializer.m: - Commit more string tidyups and simplifications made while I was - travelling. Changed private internal string subclasses so that - they can't be re-initialised ... all instances are initialised - 'manually' rather than through a method that could be called by - other code outside this file ... thus all initialisation by external - code goes through ([-initWithBytesNoCopy:length:encoding:shouldFree]) - method of the placeholder string. + * Source/GSString.m: + * Source/NSSerializer.m: + Commit more string tidyups and simplifications made while I was + travelling. Changed private internal string subclasses so that + they can't be re-initialised ... all instances are initialised + 'manually' rather than through a method that could be called by + other code outside this file ... thus all initialisation by external + code goes through ([-initWithBytesNoCopy:length:encoding:shouldFree]) + method of the placeholder string. 2006-05-15 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Fix error when parsing response with no - content. - * Source/NSPredicate.m: Revert to previous version as last change - contained broken code and wouldn't compile. - * Source/NSKeyValueCoding.m: - * Source/GSArray.m: - * Source/GSFFCallInvocation.m: - * Source/NSInvocation.m: - * Source/NSCoder.m: - * Source/NSObject.m: - * Source/Additions/GSCategories.m: - * Headers/Foundation/NSLock.h: - * Tools/AGSHtml.m: - * Tools/autogsdoc.m: - Use casts to avoid spurious warnings from gcc-4.1 + * Source/GSHTTPURLHandle.m: Fix error when parsing response with no + content. + * Source/NSPredicate.m: Revert to previous version as last change + contained broken code and wouldn't compile. + * Source/NSKeyValueCoding.m: + * Source/GSArray.m: + * Source/GSFFCallInvocation.m: + * Source/NSInvocation.m: + * Source/NSCoder.m: + * Source/NSObject.m: + * Source/Additions/GSCategories.m: + * Headers/Foundation/NSLock.h: + * Tools/AGSHtml.m: + * Tools/autogsdoc.m: + Use casts to avoid spurious warnings from gcc-4.1 2006-05-15 Fred Kiefer - * Source/NSPredicate.m: - Extracted all the parsing into a speparate class - GSPredicateScanner. This change is based on code by Nikolaus - Schaller , but extends this. + * Source/NSPredicate.m: + Extracted all the parsing into a speparate class + GSPredicateScanner. This change is based on code by Nikolaus + Schaller , but extends this. 2006-05-14 Richard Frith-Macdonald - * Source/NSString.m: - * Source/GSString.m: - Change to use ([initWithBytesNoCopy:length:encoding:freeWhenDone:]) - as the primary/designated initialiser for strings and update code - to fix character encoding errors when copying mutable strings in - a UTF8 locale (ie where the internal encoding for 8bit strings is - not the same as the external encoding). - WARNING ... this is a restructuring of functionality which is core - to the library. Please use with care and report any bugs found. + * Source/NSString.m: + * Source/GSString.m: + Change to use ([initWithBytesNoCopy:length:encoding:freeWhenDone:]) + as the primary/designated initialiser for strings and update code + to fix character encoding errors when copying mutable strings in + a UTF8 locale (ie where the internal encoding for 8bit strings is + not the same as the external encoding). + WARNING ... this is a restructuring of functionality which is core + to the library. Please use with care and report any bugs found. 2006-05-12 Richard Frith-Macdonald - * Source/GSString.m: validate UTF-16 data when producing a Cstring - * Source/NSCharacterSetData.h: Add code plane 16 (private use) - * Source/NSCharacterSet.m: Fix to support code plane 16 - * Source/GSString.m: Attempt to fix error making a mutable copy of - an 8bit string when the external Cstring encoding is not the same as - the internal one. Use new initWithBytes... method specifying the - encoding used in those cases. + * Source/GSString.m: validate UTF-16 data when producing a Cstring + * Source/NSCharacterSetData.h: Add code plane 16 (private use) + * Source/NSCharacterSet.m: Fix to support code plane 16 + * Source/GSString.m: Attempt to fix error making a mutable copy of + an 8bit string when the external Cstring encoding is not the same as + the internal one. Use new initWithBytes... method specifying the + encoding used in those cases. 2006-05-11 Richard Frith-Macdonald - * Headers/Foundation/NSBundle.h: add ([bundleWithIdentifier:]) - * Source/NSBundle.m: implement ([bundleWithIdentifier:]) and prevent - loading of multiple bundles with the same non-nil identifier. - Use standardised path as cache key to prevent same bundle being - loaded multiple times via symlinks etc. - * Source/NSMessagePortNameServer.m: Fixup for names which contain bad - characters for in a filename. - * Source/win32/NSMessagePortNameServerWin32.m: ditto + * Headers/Foundation/NSBundle.h: add ([bundleWithIdentifier:]) + * Source/NSBundle.m: implement ([bundleWithIdentifier:]) and prevent + loading of multiple bundles with the same non-nil identifier. + Use standardised path as cache key to prevent same bundle being + loaded multiple times via symlinks etc. + * Source/NSMessagePortNameServer.m: Fixup for names which contain bad + characters for in a filename. + * Source/win32/NSMessagePortNameServerWin32.m: ditto 2006-05-10 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Check for content-length specified as - zero, and mark parsing as complete without attempting to read body. + * Source/Additions/GSMime.m: Check for content-length specified as + zero, and mark parsing as complete without attempting to read body. 2006-05-09 Nicolas Roard - * Source/NSSortDescriptor.m: use -valueForKeyPath: instead + * Source/NSSortDescriptor.m: use -valueForKeyPath: instead of -valueForKey:. Patch from Saso Kiselkov . 2006-05-09 Dr. H. Nikolaus Schaller - * Source/GNUmakefile: - * Source/NSPredicate.m: - * Headers/Foundation/NSCompoundPredicate.h: - * Headers/Foundation/NSComparisonPredicate.h: - * Headers/Foundation/NSPredicate.h: - * Headers/Foundation/NSExpression.h: - * Headers/Foundation/Foundation.h: - Basic implementation of NSPredicate and related classes. + * Source/GNUmakefile: + * Source/NSPredicate.m: + * Headers/Foundation/NSCompoundPredicate.h: + * Headers/Foundation/NSComparisonPredicate.h: + * Headers/Foundation/NSPredicate.h: + * Headers/Foundation/NSExpression.h: + * Headers/Foundation/Foundation.h: + Basic implementation of NSPredicate and related classes. 2006-05-08 Richard Frith-Macdonald - * configure.ac: Check for bfd stuff for stacktrace support. - * Source/NSException.m: incorporate code by Lloyd Dupont and Wim - Oudshoorn to add a stack trace to a raised exception. Cleaned up - and made to conform to coding standards. Rewrote code to build - list of binary files from NSBundle. - EXPERIMENTAL! Turn this on by building with STACKTRACE defined + * configure.ac: Check for bfd stuff for stacktrace support. + * Source/NSException.m: incorporate code by Lloyd Dupont and Wim + Oudshoorn to add a stack trace to a raised exception. Cleaned up + and made to conform to coding standards. Rewrote code to build + list of binary files from NSBundle. + EXPERIMENTAL! Turn this on by building with STACKTRACE defined 2006-05-07 Richard Frith-Macdonald - * Source/NSBundle.m: ignore profile/debug extensions in library name - when looking for library bundles. + * Source/NSBundle.m: ignore profile/debug extensions in library name + when looking for library bundles. 2006-05-06 Fred Kiefer - * Resources/Languages/Esperanto: New language file. - * Resources/Esperanto.lproj/Localizable.string: New string - translations. Patch by Ingolf Jandt . - * Resources/Languages/Korean: New language file. - * Resources/Korean.lproj/Localizable.string: New string - translations. Patch by Hwang YunSong . - * Resources/GNUmakefile: Added new languages. + * Resources/Languages/Esperanto: New language file. + * Resources/Esperanto.lproj/Localizable.string: New string + translations. Patch by Ingolf Jandt . + * Resources/Languages/Korean: New language file. + * Resources/Korean.lproj/Localizable.string: New string + translations. Patch by Hwang YunSong . + * Resources/GNUmakefile: Added new languages. 2006-05-05 Richard Frith-Macdonald - * Headers/Foundation/NSBundle.h: fix type of _bundleClasses - * Source/NSBundle.m: Try to make bundles for libraries behave as - well as possible with respect to the code in the libraries. - Rather depends on the Info.plist in the resource directory - specifying an NSPrincipalClass so that we can look up that - class at runtime and determine the file it came from. - Added documentation to mmake it clear that this is not - reliable (eg impossible for static or non-existent libraries). + * Headers/Foundation/NSBundle.h: fix type of _bundleClasses + * Source/NSBundle.m: Try to make bundles for libraries behave as + well as possible with respect to the code in the libraries. + Rather depends on the Info.plist in the resource directory + specifying an NSPrincipalClass so that we can look up that + class at runtime and determine the file it came from. + Added documentation to mmake it clear that this is not + reliable (eg impossible for static or non-existent libraries). 2006-04-30 David Ayers - * Source/NSString: Define _GNU_SOURCE to make protoype of fwprintf - visible. + * Source/NSString: Define _GNU_SOURCE to make protoype of fwprintf + visible. 2006-04-28 Richard Frith-Macdonald - * Source/NSKeyedUnarchiver.m: Fix decoding of NSNull objects. - * Source/Additions/GSXML.m: Ensure that calls to parse documents - handle the success/failure value returned. Improve exception info. + * Source/NSKeyedUnarchiver.m: Fix decoding of NSNull objects. + * Source/Additions/GSXML.m: Ensure that calls to parse documents + handle the success/failure value returned. Improve exception info. 2006-04-27 Richard Frith-Macdonald - * Source/NSURL.m: Fix error unescaping uppercase hex digits. + * Source/NSURL.m: Fix error unescaping uppercase hex digits. 2006-04-26 Saso Kiselkov @@ -23346,1444 +23355,1443 @@ 2006-04-26 Richard Frith-Macdonald - * Source/NSCalendarDate.m: Correction to millisecond fix ... for - bug #16426 - * Resources/GNUmakefile: Fix installation of Ukrainian language. - * Source/NSProcessInfo.m: Always use UTF16 args on mingw32. + * Source/NSCalendarDate.m: Correction to millisecond fix ... for + bug #16426 + * Resources/GNUmakefile: Fix installation of Ukrainian language. + * Source/NSProcessInfo.m: Always use UTF16 args on mingw32. 2006-04-26 Hubert Chan - * config/config.align.c: force compiler not to optimise away the - code being tested ... fixes bug #16342 + * config/config.align.c: force compiler not to optimise away the + code being tested ... fixes bug #16342 2006-04-26 Marcus Muller - * Source/NSKeyValueCoding.m: Fix bug #16386 + * Source/NSKeyValueCoding.m: Fix bug #16386 2006-04-26 Sergii Stoian - * Resources/Languages/Russian: Updates and fixes - * Resources/Languages/Ukrainian: New file - * Resources/Languages/UkrainianRussian: Removed wrong file + * Resources/Languages/Russian: Updates and fixes + * Resources/Languages/Ukrainian: New file + * Resources/Languages/UkrainianRussian: Removed wrong file 2006-04-24 Richard Frith-Macdonald - * Source/NSCalendarDate.m: Avoid a couple of minor rounding errors - by using floating point constants for millisecond multipliers. + * Source/NSCalendarDate.m: Avoid a couple of minor rounding errors + by using floating point constants for millisecond multipliers. 2006-04-24 Alex Perez - * Source/NSProcessInfo.m: Elaborated upon the - GNU_MISSING_MAIN_FUNCTION_CALL error message, adding a section about - the most common cause of the error being mismatched gui and base - library versions. Feel free to make more clear or re-word. + * Source/NSProcessInfo.m: Elaborated upon the + GNU_MISSING_MAIN_FUNCTION_CALL error message, adding a section about + the most common cause of the error being mismatched gui and base + library versions. Feel free to make more clear or re-word. 2006-04-17 Adam Fedor - * Source/NSTimeZone.m: Remove space in @ string define (causes - problems with gcc 2.95). + * Source/NSTimeZone.m: Remove space in @ string define (causes + problems with gcc 2.95). 2006-04-14 Jeremy Bettis - * Source/win32/GSFileHandleWin32.m: Fix background reading of pipes. - Several changes for Openstep compatiblity: Don't queue notification, - don't raise exception when asked to read while a background operation - is in progress. - * Source/win32/GSRunLoopCtxt.m: If there are no handles to block on - but there is a timer, sleep until the timer needs to wake up. + *Source/win32/GSFileHandleWin32.m: Fix background reading of pipes. + Several changes for Openstep compatiblity: Don't queue notification, + don't raise exception when asked to read while a background operation + is in progress. + * Source/win32/GSRunLoopCtxt.m: If there are no handles to block on + but there is a timer, sleep until the timer needs to wake up. 2006-04-12 Jeremy Bettis - * Source/NSTimeZone.m: Use native time zone files under Solaris. - * Source/GSFFCallInvocation.m: If the returning context is expecting - a void* but we have a different return type just cast it. This - normally is because the method was not declared and has defaulted - to returning id. - * Source/win32/NSUserDefaultsWin32.m: Write defaults to registry as - unicode strings, read in either unicode(REG_SZ) or ascii(REG_BINARY). - * Source/win32-load.h: In mingw, fileSystemRepresentation is unicode - * Source/objc-load.m: In mingw, fileSystemRepresentation is unicode - * Source/NSPropertyList.m (propertyListFromData:mutabilityOption:format:errorDescription:): - Don't call memcmp if the data is smaller than 8 bytes. - * Source/NSFileManager.m (isExecutableFileAtPath:): - Added a comment - * Source/NSBundle.m (objc_executable_location): - A cast was obsuring a misuse of fileSystemRepresentation + *Source/NSTimeZone.m: Use native time zone files under Solaris. + * Source/GSFFCallInvocation.m: If the returning context is expecting + a void*but we have a different return type just cast it. This + normally is because the method was not declared and has defaulted + to returning id. + * Source/win32/NSUserDefaultsWin32.m: Write defaults to registry as + unicode strings, read in either unicode(REG_SZ) or ascii(REG_BINARY). + *Source/win32-load.h: In mingw, fileSystemRepresentation is unicode + * Source/objc-load.m: In mingw, fileSystemRepresentation is unicode + *Source/NSPropertyList.m (propertyListFromData:mutabilityOption:format:errorDescription:): + Don't call memcmp if the data is smaller than 8 bytes. + * Source/NSFileManager.m (isExecutableFileAtPath:): + Added a comment + * Source/NSBundle.m (objc_executable_location): + A cast was obsuring a misuse of fileSystemRepresentation 2006-04-10 Fred Kiefer - * Source/NSPropertyList.m (BinaryPLGenerator - storeCount:): - Corrected line forgotten when applying last patch. + * Source/NSPropertyList.m (BinaryPLGenerator - storeCount:): + Corrected line forgotten when applying last patch. 2006-04-04 Richard Frith-Macdonald - * Source/Additions/GSXML.m: ([GSSAXHandler-dealloc]) fix memory leak. + * Source/Additions/GSXML.m: ([GSSAXHandler-dealloc]) fix memory leak. 2006-04-02 Richard Frith-Macdonald - * Source/NSBundle.m: When loading localisation striong files, check - the character encoding used and warn if it's not portable and may - be producing incorrect messages due to the current default C string - encoding not being the same as the one the file was created in. + * Source/NSBundle.m: When loading localisation striong files, check + the character encoding used and warn if it's not portable and may + be producing incorrect messages due to the current default C string + encoding not being the same as the one the file was created in. 2006-04-01 Richard Frith-Macdonald - * Source/NSCharacterSetData.h: Updated to version with comments. + * Source/NSCharacterSetData.h: Updated to version with comments. 2006-03-31 Richard Frith-Macdonald - * Source/Additions/GSObjCRuntime.m: Add a class for autoreleased - memory so it is clearer when using object allocation debugging. + * Source/Additions/GSObjCRuntime.m: Add a class for autoreleased + memory so it is clearer when using object allocation debugging. 2006-03-28 Richard Frith-Macdonald - * Source/GSString.m: Fix error initialising mutable string from - unicode char array conmtaining ascii characters. - Fix a few memory mleaks. + * Source/GSString.m: Fix error initialising mutable string from + unicode char array conmtaining ascii characters. + Fix a few memory mleaks. 2006-03-25 Richard Frith-Macdonald - * Source/win32/NSStreamWin32.m: Various tidyups for pipe streams. - * Source/NSDictionary.m: Avoid compiler warning. - * Headers/Additions/GNUstepBase/Unicode.h: Add validation function. - * Source/Additions/Unicode.m: Add unicode validation function and - alter UTF8 handling to be stricter. - * Source/GSString.m: validate unicode when initialising a string. - Also create 8bit data strings rather than 16bit where possible. + * Source/win32/NSStreamWin32.m: Various tidyups for pipe streams. + * Source/NSDictionary.m: Avoid compiler warning. + * Headers/Additions/GNUstepBase/Unicode.h: Add validation function. + * Source/Additions/Unicode.m: Add unicode validation function and + alter UTF8 handling to be stricter. + * Source/GSString.m: validate unicode when initialising a string. + Also create 8bit data strings rather than 16bit where possible. 2006-03-24 Richard Frith-Macdonald - * Source/GSRunLoopCtxt.h: - * Source/unix/GSRunLoopCtxt.m: - * Source/win32/GSRunLoopCtxt.m: - Tidy/improve removal of triggered watchers from outer contexts. - * Source/NSDictionary.m: ([valueForKey:]) conform to MacOS spec + * Source/GSRunLoopCtxt.h: + * Source/unix/GSRunLoopCtxt.m: + * Source/win32/GSRunLoopCtxt.m: + Tidy/improve removal of triggered watchers from outer contexts. + * Source/NSDictionary.m: ([valueForKey:]) conform to MacOS spec 2006-03-21 Richard Frith-Macdonald - * Source/unix/GSRunLoopWatcher.m: deleted - * Source/win32/GSRunLoopWatcher.m: deleted - * Source/GSRunLoopWatcher.m: combine drom subdirectories. - * Source/GNUmakefile: - * Source/NSSocketPort.m: - * Source/NSRunLoop.m: - * Source/GSRunLoopWatcher.h: - * Source/GSStream.h: - * Source/GSStream.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/unix/GNUmakefile: - * Source/unix/NSStream.m: - * Source/GSRunLoopCtxt.h: - * Source/NSMessagePort.m: - * Source/win32/GSRunLoopCtxt.m: - * Source/win32/GNUmakefile: - * Source/win32/NSStreamWin32.m: - * Source/NSThread.m: - * Source/GSFileHandle.m: - * Headers/Foundation/NSRunLoop.h: - * Headers/Additions/GNUstepBase/GSFileHandle.h: - Remove timeout facility for runloop watchers ... can use standard - timers instead. This simplifies api/code somewhat. - Added new watcher type ET_TRIGGER to count as an input source for - the runloop but work by polling rather than waiting for I/O events. - This allows NSStream objects to be added to the runloop even if - they don't do real I/O (eg memory streams). - Added private internal API to allow watchers to adjust how the loop - deals with them for each iteration... needed to simulate unix like - level-triggered events on windows where events are edge triggered. - Rewrote NSStream code to put handling of runloop scheduling in the - abstract classes rather than repeat in every subclass. - Rewrote NSStream stuff to use new runloop mechanisms to support - memory and file streams in runloops. - Implemented pipe base NSStream for windows. + * Source/unix/GSRunLoopWatcher.m: deleted + * Source/win32/GSRunLoopWatcher.m: deleted + * Source/GSRunLoopWatcher.m: combine drom subdirectories. + * Source/GNUmakefile: + * Source/NSSocketPort.m: + * Source/NSRunLoop.m: + * Source/GSRunLoopWatcher.h: + * Source/GSStream.h: + * Source/GSStream.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/unix/GNUmakefile: + * Source/unix/NSStream.m: + * Source/GSRunLoopCtxt.h: + * Source/NSMessagePort.m: + * Source/win32/GSRunLoopCtxt.m: + * Source/win32/GNUmakefile: + * Source/win32/NSStreamWin32.m: + * Source/NSThread.m: + * Source/GSFileHandle.m: + * Headers/Foundation/NSRunLoop.h: + * Headers/Additions/GNUstepBase/GSFileHandle.h: + Remove timeout facility for runloop watchers ... can use standard + timers instead. This simplifies api/code somewhat. + Added new watcher type ET_TRIGGER to count as an input source for + the runloop but work by polling rather than waiting for I/O events. + This allows NSStream objects to be added to the runloop even if + they don't do real I/O (eg memory streams). + Added private internal API to allow watchers to adjust how the loop + deals with them for each iteration... needed to simulate unix like + level-triggered events on windows where events are edge triggered. + Rewrote NSStream code to put handling of runloop scheduling in the + abstract classes rather than repeat in every subclass. + Rewrote NSStream stuff to use new runloop mechanisms to support + memory and file streams in runloops. + Implemented pipe base NSStream for windows. 2006-03-18 Richard Frith-Macdonald - * Tools/AGSOutput.m: Get rid of bogus ' ' - * Tools/AGSHtml.m: Fix error in display of category method index. + * Tools/AGSOutput.m: Get rid of bogus ' ' + * Tools/AGSHtml.m: Fix error in display of category method index. 2006-03-17 Richard Frith-Macdonald - * Source/cifframe.h: Add code to try to get ffi muld to work on - mingw32 - * GNUmakefile: Don't build SSL subproject for mingw32 as it - doesn't work. + * Source/cifframe.h: Add code to try to get ffi muld to work on + mingw32 + * GNUmakefile: Don't build SSL subproject for mingw32 as it + doesn't work. 2006-03-17 Andrew Sveikauskas - * Source/thr-mach.h: include objc/objc-api.h - * Source/thr-pthread.m: use pthread_yield() except for apple - * Source/GNUmakefile: link pthread library on openbsd where it isn't - linked to the objc runtime. + * Source/thr-mach.h: include objc/objc-api.h + * Source/thr-pthread.m: use pthread_yield() except for apple + * Source/GNUmakefile: link pthread library on openbsd where it isn't + linked to the objc runtime. 2006-03-13 Adam Fedor - * Version 1.12.0 + * Version 1.12.0 2006-03-13 Richard Frith-Macdonald - * Source/NSKeyValueCoding.m: Attempt to fix problems introduced into - keypath code and reported by Helge ... ensure kvc mnethods are called - for each element in the path. - * Source/inet_pton.c: fixup for mingw32 - * Source/NSTimeZone.m: add missing include + * Source/NSKeyValueCoding.m: Attempt to fix problems introduced into + keypath code and reported by Helge ... ensure kvc mnethods are called + for each element in the path. + * Source/inet_pton.c: fixup for mingw32 + * Source/NSTimeZone.m: add missing include 2006-03-12 Richard Frith-Macdonald - * Source/NSPropertyList.m: Allow for quoting of numeric/date values - in property lists. Fixes bug #16068 + * Source/NSPropertyList.m: Allow for quoting of numeric/date values + in property lists. Fixes bug #16068 2006-03-11 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSXML.h: clarify documentation of - xml entity escaping methods. - * Headers/Foundation/NSInvocation.h: don't use 'class' as macro - argument ... should be hermless but is confusing to C++ programmers. + * Headers/Additions/GNUstepBase/GSXML.h: clarify documentation of + xml entity escaping methods. + * Headers/Foundation/NSInvocation.h: don't use 'class' as macro + argument ... should be hermless but is confusing to C++ programmers. 2006-03-10 Richard Frith-Macdonald - * Source/NSTimeZone.m: - * Source/NSCalendarDate.m: - * Source/GSPrivate.h: - * Source/NSDate.m: - Reorganise/tidy to avoid making some private symbols external. + * Source/NSTimeZone.m: + * Source/NSCalendarDate.m: + * Source/GSPrivate.h: + * Source/NSDate.m: + Reorganise/tidy to avoid making some private symbols external. 2006-03-08 Richard Frith-Macdonald - * Source/unix/GSRunLoopCtxt.m: Don't hanlde windows messages unless - required. - * Source/win32/NSStreamWin32.m: Use fileSystemRepresentation rather - than cStringUsingEncoding: - * Source/NSCalendarDate.m: Support '%T' and '%t' in description. - * Source/NSFileManager.m: don't abort directory copy just because - we can't set attributes of destination directory. Don't try to - copy directories with their old owners. - * Source/Additions/GSXML.m: Support #x and #X unescaping. - * Source/NSSocketPortNameServer.m: - * Source/NSBundle.m: - * Source/NSProcessInfo.m: - * Source/NSAttributedString.m: - * Source/NSArray.m: - * Source/NSMessagePortNameServer.m: - * Source/GSPrivate.h: - * Source/NSInvocation.m: - * Source/NSNotificationCenter.m: - * Source/NSCoder.m: - * Source/mframe.m: - * Source/Additions/GSCategories.m: - * Source/NSConnection.m: - * Source/GSPortPrivate.h: - * Source/NSThread.m: - * Source/NSNull.m: - * Source/NSDistantObject.m: - * Source/NSTask.m: - * Source/NSPortNameServer.m: - * Headers/Foundation/NSTimeZone.h: - * Headers/Foundation/NSHashTable.h: - * Headers/Foundation/NSRange.h: - * Headers/Foundation/NSCoder.h: - * Headers/Foundation/NSException.h: - * Headers/Foundation/NSByteOrder.h: - * Headers/Foundation/NSPortCoder.h: - * Headers/Foundation/NSURL.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSCalendarDate.h: - * Headers/Foundation/NSDecimalNumber.h: - * Headers/Foundation/NSKeyValueCoding.h: - * Headers/Foundation/NSBundle.h: - * Headers/Foundation/NSSerialization.h: - * Headers/Foundation/NSURLHandle.h: - * Headers/Foundation/NSPropertyList.h: - * Headers/Foundation/NSTimer.h: - * Headers/Foundation/NSNotification.h: - * Headers/Foundation/NSScanner.h: - * Headers/Foundation/NSProcessInfo.h: - * Headers/Foundation/NSDistributedNotificationCenter.h: - * Headers/Foundation/NSGeometry.h: - * Headers/Foundation/NSAttributedString.h: - * Headers/Foundation/NSDecimal.h: - * Headers/Foundation/NSConnection.h: - * Headers/Foundation/NSUndoManager.h: - * Headers/Foundation/NSDateFormatter.h: - * Headers/Foundation/NSMethodSignature.h: - * Headers/Foundation/NSAutoreleasePool.h: - * Headers/Foundation/NSFormatter.h: - * Headers/Foundation/NSUserDefaults.h: - * Headers/Foundation/NSThread.h: - * Headers/Foundation/NSData.h: - * Headers/Foundation/NSDate.h: - * Headers/Foundation/NSHost.h: - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSProxy.h: - * Headers/Foundation/NSObjCRuntime.h: - * Headers/Foundation/NSKeyedArchiver.h: - * Headers/Foundation/NSProtocolChecker.h: - * Headers/Foundation/NSDebug.h: - * Headers/Foundation/NSPortMessage.h: - * Headers/Foundation/NSError.h: - * Headers/Foundation/NSDistributedLock.h: - * Headers/Foundation/NSFileHandle.h: - * Headers/Foundation/NSKeyValueObserving.h: - * Headers/Foundation/NSDictionary.h: - * Headers/Foundation/NSClassDescription.h: - * Headers/Foundation/NSNull.h: - * Headers/Foundation/NSZone.h: - * Headers/Foundation/NSValue.h: - * Headers/Foundation/NSIndexSet.h: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSSortDescriptor.h: - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSSet.h: - * Headers/Foundation/NSDistantObject.h: - * Headers/Foundation/NSTask.h: - * Headers/Foundation/NSCharacterSet.h: - * Headers/Foundation/NSInvocation.h: - * Headers/Foundation/NSUtilities.h: - * Headers/Foundation/NSPortNameServer.h: - * Headers/Foundation/NSNumberFormatter.h: - * Headers/Foundation/NSXMLParser.h: - * Headers/Foundation/NSEnumerator.h: - * Headers/Foundation/NSMapTable.h: - * Headers/Additions/GNUstepBase/DistributedObjects.h: - * Headers/Additions/GNUstepBase/GSCategories.h: - Tidied a bit ... wrap some long lines. - Remove some old deprecated API. - Move some internal API out of external headers. - Deprecate a few non-standard API features. - Move a bit of non-standard API to the additions library. + * Source/unix/GSRunLoopCtxt.m: Don't hanlde windows messages unless + required. + * Source/win32/NSStreamWin32.m: Use fileSystemRepresentation rather + than cStringUsingEncoding: + * Source/NSCalendarDate.m: Support '%T' and '%t' in description. + * Source/NSFileManager.m: don't abort directory copy just because + we can't set attributes of destination directory. Don't try to + copy directories with their old owners. + * Source/Additions/GSXML.m: Support #x and #X unescaping. + * Source/NSSocketPortNameServer.m: + * Source/NSBundle.m: + * Source/NSProcessInfo.m: + * Source/NSAttributedString.m: + * Source/NSArray.m: + * Source/NSMessagePortNameServer.m: + * Source/GSPrivate.h: + * Source/NSInvocation.m: + * Source/NSNotificationCenter.m: + * Source/NSCoder.m: + * Source/mframe.m: + * Source/Additions/GSCategories.m: + * Source/NSConnection.m: + * Source/GSPortPrivate.h: + * Source/NSThread.m: + * Source/NSNull.m: + * Source/NSDistantObject.m: + * Source/NSTask.m: + * Source/NSPortNameServer.m: + * Headers/Foundation/NSTimeZone.h: + * Headers/Foundation/NSHashTable.h: + * Headers/Foundation/NSRange.h: + * Headers/Foundation/NSCoder.h: + * Headers/Foundation/NSException.h: + * Headers/Foundation/NSByteOrder.h: + * Headers/Foundation/NSPortCoder.h: + * Headers/Foundation/NSURL.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSCalendarDate.h: + * Headers/Foundation/NSDecimalNumber.h: + * Headers/Foundation/NSKeyValueCoding.h: + * Headers/Foundation/NSBundle.h: + * Headers/Foundation/NSSerialization.h: + * Headers/Foundation/NSURLHandle.h: + * Headers/Foundation/NSPropertyList.h: + * Headers/Foundation/NSTimer.h: + * Headers/Foundation/NSNotification.h: + * Headers/Foundation/NSScanner.h: + * Headers/Foundation/NSProcessInfo.h: + * Headers/Foundation/NSDistributedNotificationCenter.h: + * Headers/Foundation/NSGeometry.h: + * Headers/Foundation/NSAttributedString.h: + * Headers/Foundation/NSDecimal.h: + * Headers/Foundation/NSConnection.h: + * Headers/Foundation/NSUndoManager.h: + * Headers/Foundation/NSDateFormatter.h: + * Headers/Foundation/NSMethodSignature.h: + * Headers/Foundation/NSAutoreleasePool.h: + * Headers/Foundation/NSFormatter.h: + * Headers/Foundation/NSUserDefaults.h: + * Headers/Foundation/NSThread.h: + * Headers/Foundation/NSData.h: + * Headers/Foundation/NSDate.h: + * Headers/Foundation/NSHost.h: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSProxy.h: + * Headers/Foundation/NSObjCRuntime.h: + * Headers/Foundation/NSKeyedArchiver.h: + * Headers/Foundation/NSProtocolChecker.h: + * Headers/Foundation/NSDebug.h: + * Headers/Foundation/NSPortMessage.h: + * Headers/Foundation/NSError.h: + * Headers/Foundation/NSDistributedLock.h: + * Headers/Foundation/NSFileHandle.h: + * Headers/Foundation/NSKeyValueObserving.h: + * Headers/Foundation/NSDictionary.h: + * Headers/Foundation/NSClassDescription.h: + * Headers/Foundation/NSNull.h: + * Headers/Foundation/NSZone.h: + * Headers/Foundation/NSValue.h: + * Headers/Foundation/NSIndexSet.h: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSSortDescriptor.h: + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSSet.h: + * Headers/Foundation/NSDistantObject.h: + * Headers/Foundation/NSTask.h: + * Headers/Foundation/NSCharacterSet.h: + * Headers/Foundation/NSInvocation.h: + * Headers/Foundation/NSUtilities.h: + * Headers/Foundation/NSPortNameServer.h: + * Headers/Foundation/NSNumberFormatter.h: + * Headers/Foundation/NSXMLParser.h: + * Headers/Foundation/NSEnumerator.h: + * Headers/Foundation/NSMapTable.h: + * Headers/Additions/GNUstepBase/DistributedObjects.h: + * Headers/Additions/GNUstepBase/GSCategories.h: + Tidied a bit ... wrap some long lines. + Remove some old deprecated API. + Move some internal API out of external headers. + Deprecate a few non-standard API features. + Move a bit of non-standard API to the additions library. 2006-03-07 Richard Frith-Macdonald - * Source/NSRunLoop.m: - * Source/unix/GSRunLoopCtxt.m: - * Source/win32/GSRunLoopWatcher.m: - * Source/win32/GSRunLoopCtxt.m: - * Headers/Foundation/NSRunLoop.h: - Add initial attempt at code for adding streams to runloops ... - as yet untested and not integrated into the NSStream code. - Remove documentation for GNUstep specific loop watcher API and - add comments to say that it may be deprecated in a later - release if/when we move to using NSStream throughout. - * configure.ac: minor documentation corrections. - Don't allow environment variable to confuse setup of file location. - * configure: regenerated + * Source/NSRunLoop.m: + * Source/unix/GSRunLoopCtxt.m: + * Source/win32/GSRunLoopWatcher.m: + * Source/win32/GSRunLoopCtxt.m: + * Headers/Foundation/NSRunLoop.h: + Add initial attempt at code for adding streams to runloops ... + as yet untested and not integrated into the NSStream code. + Remove documentation for GNUstep specific loop watcher API and + add comments to say that it may be deprecated in a later + release if/when we move to using NSStream throughout. + * configure.ac: minor documentation corrections. + Don't allow environment variable to confuse setup of file location. + * configure: regenerated 2006-03-05 Richard Frith-Macdonald - * Source/NSRunLoop.m: Optimise timer handling a little and fix very - minor bug which would cause runloop to run an extra time on some - occasions. - * Tools/gdomap.c: Include config.h - * configure.ac: Support config file environment variable by default - * configure: Regenerate - * Documentation/Base.gsdoc: Document default setting for env variable + * Source/NSRunLoop.m: Optimise timer handling a little and fix very + minor bug which would cause runloop to run an extra time on some + occasions. + * Tools/gdomap.c: Include config.h + * configure.ac: Support config file environment variable by default + * configure: Regenerate + * Documentation/Base.gsdoc: Document default setting for env variable 2006-03-04 Richard Frith-Macdonald - * Source/NSRunLoop.m: Rewrite housekeeping timer. - * Source/GSRunLoopCtxt.h: Remove obsolete message/selector. - * Source/win32/GSRunLoopCtxt.m: Add housekeeping timer. - * Source/win32/NSRunLoopWin32.m: remove unused code. - * Source/win32/GNUmakefile: remove /NSRunLoopWin32.m - * Source/win32/NSStreamWin32.m: minor tidyups - * Source/NSThread.m: Use new internal API for housekeeping timer. - * Headers/Foundation/NSRunLoop.h: Remove deprecated mingw api - Basically, remove deprecated mingw32 specific api, and change - housekeeper to try to make it as invisible as possible in terms of - side effects. - * Source/NSFileManager.m: Fix mingw determination of the ownership - of a directory. + * Source/NSRunLoop.m: Rewrite housekeeping timer. + * Source/GSRunLoopCtxt.h: Remove obsolete message/selector. + * Source/win32/GSRunLoopCtxt.m: Add housekeeping timer. + * Source/win32/NSRunLoopWin32.m: remove unused code. + * Source/win32/GNUmakefile: remove /NSRunLoopWin32.m + * Source/win32/NSStreamWin32.m: minor tidyups + * Source/NSThread.m: Use new internal API for housekeeping timer. + * Headers/Foundation/NSRunLoop.h: Remove deprecated mingw api + Basically, remove deprecated mingw32 specific api, and change + housekeeper to try to make it as invisible as possible in terms of + side effects. + * Source/NSFileManager.m: Fix mingw determination of the ownership + of a directory. 2006-03-03 Richard Frith-Macdonald - * Tools/gdomap.c: Check for HAVE_STDINT_H for safety of include + * Tools/gdomap.c: Check for HAVE_STDINT_H for safety of include 2006-03-01 Adam Fedor - * configure.ac: Add check for inet_pton. Also check for make- - specified GNUstep.conf file - * config.make.in: Add variable for inet_pton - * Source/inet_pton.c: New file - * GNUmakefile: Use it if needed. + * configure.ac: Add check for inet_pton. Also check for make- + specified GNUstep.conf file + * config.make.in: Add variable for inet_pton + * Source/inet_pton.c: New file + * GNUmakefile: Use it if needed. 2006-03-01 Derek Zhou - * Source/GSStream.m: Typo fixes - * Source/win32/NSStreamWin32.m: rewrite + * Source/GSStream.m: Typo fixes + * Source/win32/NSStreamWin32.m: rewrite 2006-03-01 Richard Frith-Macdonald - * Source/unix/NSStream.m: Final (hopefully) ifdef to disable ipv6 - so systems which don't have it can compile. + * Source/unix/NSStream.m: Final (hopefully) ifdef to disable ipv6 + so systems which don't have it can compile. 2006-02-28 Richard Frith-Macdonald - * Source/unix/NSStream.m: More portability fixups ... use - AF_UNIX and PF_UNIX if AF_LOCAL and PF_LOCAL are not avaulable. - Check for PF_INET6 - * Tools/gdomap.c: include stdint.h for uint32_t on systems - where it's not included by other headers. + * Source/unix/NSStream.m: More portability fixups ... use + AF_UNIX and PF_UNIX if AF_LOCAL and PF_LOCAL are not avaulable. + Check for PF_INET6 + * Tools/gdomap.c: include stdint.h for uint32_t on systems + where it's not included by other headers. 2006-02-27 Richard Frith-Macdonald - * Source/Additions/GSXML.m: Helge spotted thread safety issues with - the code controlling warnings and the external entity loader. - Changed code to modify internals of the parser context and SAX - context to set the values in there directly rather than using the - global setter mechanism (strangely recommended in the libxml2 docs), - so that all setup is made to the individual parser and should not - effect other parsers in other threads. - * Source/NSUndoManager.m: ([-removeAllActions]) fixed to remove any - grouping in progress. + * Source/Additions/GSXML.m: Helge spotted thread safety issues with + the code controlling warnings and the external entity loader. + Changed code to modify internals of the parser context and SAX + context to set the values in there directly rather than using the + global setter mechanism (strangely recommended in the libxml2 docs), + so that all setup is made to the individual parser and should not + effect other parsers in other threads. + * Source/NSUndoManager.m: ([-removeAllActions]) fixed to remove any + grouping in progress. 2006-02-27 Richard Frith-Macdonald - * Headers/Foundation/NSString.h: Correct return type for - ([getCString:maxLength:encoding]) - * Source/NSString.m: ([getCString:maxLength:encoding]) make - implementation match MacOS-X implementation rather than their docs. - Change API for setting path handling mode to be a function we can - call before any string/path operations. Maybe final API to be made - public? - Path handling tweaks based on discussion at FOSDEM - * Source/GSString.m: ([getCString:maxLength:encoding]) implemented. - * Source/unix/NSStream.m: Portabiulity fixups ... use EPROTO only - if defined and use dummy implementations of inet6 cclasses if AF_INET6 - is not defined. - * Source/NSKeyValueCoding.m: Some optimisation suggested by Helge ... - rewrite key path methods to loop rather than recurse. - * Source/GSFFIInvocation.m: Avoid compiler warning - * Source/NSURL.m: use new getCString... method - * Source/NSSerializer.m: ditto - * Documentation/Base.gsdoc: Remove env variable to set path handling. - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: Slight change to - functions for KVC to allow faster implementation. - * Source/Additions/GSObjCRuntime.m: ditto + * Headers/Foundation/NSString.h: Correct return type for + ([getCString:maxLength:encoding]) + * Source/NSString.m: ([getCString:maxLength:encoding]) make + implementation match MacOS-X implementation rather than their docs. + Change API for setting path handling mode to be a function we can + call before any string/path operations. Maybe final API to be made + public? + Path handling tweaks based on discussion at FOSDEM + * Source/GSString.m: ([getCString:maxLength:encoding]) implemented. + * Source/unix/NSStream.m: Portabiulity fixups ... use EPROTO only + if defined and use dummy implementations of inet6 cclasses if AF_INET6 + is not defined. + * Source/NSKeyValueCoding.m: Some optimisation suggested by Helge ... + rewrite key path methods to loop rather than recurse. + * Source/GSFFIInvocation.m: Avoid compiler warning + * Source/NSURL.m: use new getCString... method + * Source/NSSerializer.m: ditto + * Documentation/Base.gsdoc: Remove env variable to set path handling. + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: Slight change to + functions for KVC to allow faster implementation. + * Source/Additions/GSObjCRuntime.m: ditto 2006-02-24 Richard Frith-Macdonald - * NSTimeZone.m: Fix bug in GMT+/-NNNN timezone initialisation so that - negative offsets work. Implement GMT and synonyms as internal - absolute timezones. Implement GMT-14 to GMT+14 as absolute timezones. + * NSTimeZone.m: Fix bug in GMT+/-NNNN timezone initialisation so that + negative offsets work. Implement GMT and synonyms as internal + absolute timezones. Implement GMT-14 to GMT+14 as absolute timezones. 2006-02-23 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Restructure for lazy creation of defaults - database ... only create when we attempt to write. - * Source/NSSocketPort.m: Include GSPrivate.h - * Source/NSRunLoop.m: ditto - * Source/unix/GSRunLoopCtxt.m: ditto - * Source/GSPrivate.h: ditto - * Source/win32/GSFileHandleWin32.m: ditto - * Source/win32/GSRunLoopCtxt.m: ditto - * Headers/Foundation/NSNotificationQueue.h: Move library internal - function declarations to GSPrivate.h, thanks to Lloyd Dupont for - spotting problem. + * Source/NSUserDefaults.m: Restructure for lazy creation of defaults + database ... only create when we attempt to write. + * Source/NSSocketPort.m: Include GSPrivate.h + * Source/NSRunLoop.m: ditto + * Source/unix/GSRunLoopCtxt.m: ditto + * Source/GSPrivate.h: ditto + * Source/win32/GSFileHandleWin32.m: ditto + * Source/win32/GSRunLoopCtxt.m: ditto + * Headers/Foundation/NSNotificationQueue.h: Move library internal + function declarations to GSPrivate.h, thanks to Lloyd Dupont for + spotting problem. 2006-02-23 Sheldon Gill - * Source/Additions/GSXML.m: URL munging for local DTD cache fixed for - Win32 filesystems + * Source/Additions/GSXML.m: URL munging for local DTD cache fixed for + Win32 filesystems 2006-02-22 Richard Frith-Macdonald - * Source/Additions/GSXML.m: Fix parsing error .. was not recognising - base64 elements. - * Headers/Foundation/NSPathUtilitites.h: Expand config documentation - * NSTimeZone.m: - * NSPathUtilities.m: - * NSPage.m: - * NSException.m: - * NSLog.m: - Fix some MINGW32 conditional compilation to use __MINGW32__ + * Source/Additions/GSXML.m: Fix parsing error .. was not recognising + base64 elements. + * Headers/Foundation/NSPathUtilitites.h: Expand config documentation + * NSTimeZone.m: + * NSPathUtilities.m: + * NSPage.m: + * NSException.m: + * NSLog.m: + Fix some MINGW32 conditional compilation to use __MINGW32__ 2006-02-21 Richard Frith-Macdonald - * Source/NSFileManager.m: Ensure that NSBundle is initialised before - changing the current directory. - * Source/NSBundle.m: Restructure for lazy evaluation of path to - executable ... lots of apps never need it. - * Source/NSTimeZone.m: Protect some class methods using locking, and - provide (slow) fallback mechanisms if some of the files are missing, - including fallback to posix stuff in zoneinfo directory if we really - have to. + * Source/NSFileManager.m: Ensure that NSBundle is initialised before + changing the current directory. + * Source/NSBundle.m: Restructure for lazy evaluation of path to + executable ... lots of apps never need it. + * Source/NSTimeZone.m: Protect some class methods using locking, and + provide (slow) fallback mechanisms if some of the files are missing, + including fallback to posix stuff in zoneinfo directory if we really + have to. 2006-02-20 Richard Frith-Macdonald - * NSTimeZones/NSTimeZones.tar: regenerated. + * NSTimeZones/NSTimeZones.tar: regenerated. 2006-02-19 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Make config functions public. - * Headers/Foundation/NSPathUtilities.h: Declare config functions. - * Source/NSUserDefaults.m: Use config functions and add support - for new option to turn off external config file. + * Source/NSPathUtilities.m: Make config functions public. + * Headers/Foundation/NSPathUtilities.h: Declare config functions. + * Source/NSUserDefaults.m: Use config functions and add support + for new option to turn off external config file. 2006-02-18 Richard Frith-Macdonald - * Source/NSFileManager.m: Fix bug dereferencing nul pointer under - some conditions. + * Source/NSFileManager.m: Fix bug dereferencing nul pointer under + some conditions. 2006-02-17 Richard Frith-Macdonald - * Source/NSFileManager.m: Implement method to get name of files - owner on mingw32. - * Source/NSPathUtilities.m: Check that user specific config file - is owned by user, as suggested by Sheldon. + * Source/NSFileManager.m: Implement method to get name of files + owner on mingw32. + * Source/NSPathUtilities.m: Check that user specific config file + is owned by user, as suggested by Sheldon. 2006-02-16 Derek Zhou - * Source/GSStream.h: - * Source/GSStream.m: - * Source/unix/NSStream.m: - * Source/win32/NSStreamWin32.m: - * Headers/Foundation/NSStream.h: - Add server side and pipe stream extensions along with a few fixes. + * Source/GSStream.h: + * Source/GSStream.m: + * Source/unix/NSStream.m: + * Source/win32/NSStreamWin32.m: + * Headers/Foundation/NSStream.h: + Add server side and pipe stream extensions along with a few fixes. 2006-02-15 Andrew Ruder - * Headers/Foundation/NSStream.h: NSRunLoop was not defined in - the NSStream header file. (Added @class NSRunLoop;) + * Headers/Foundation/NSStream.h: NSRunLoop was not defined in + the NSStream header file. (Added @class NSRunLoop;) 2006-02-15 Derek Zhou Richard Frith-Macdonald - * Headers/Foundation/NSStream.h: New NSStream, NSInputStream and - NSOutputStream classes and constants. - * Headers/Foundation/Foundation.h: include NSStream.h - * Source/GSStream.h: Internal headers for GSStream and subclasses - * Source/GSStream.m: System independent parts of NSStream - * Source/unix/NSStream.m: Unix specific class implementations - * Source/unix/GNUmakefile: Build NSStream.m - * Source/win32/NSStreamWin32.m: Win32 placeholders - * Source/win32/GNUmakefile: Build NSStreamWin32.m - * Source/GNUmakefile: Build GSStream.m - * Source/DocMakefile: Build NSStream documentation - Partial implementation of NSStream ... missing SSL, SOCKS, and - Win32 (apart from memory streams). + * Headers/Foundation/NSStream.h: New NSStream, NSInputStream and + NSOutputStream classes and constants. + * Headers/Foundation/Foundation.h: include NSStream.h + * Source/GSStream.h: Internal headers for GSStream and subclasses + * Source/GSStream.m: System independent parts of NSStream + * Source/unix/NSStream.m: Unix specific class implementations + * Source/unix/GNUmakefile: Build NSStream.m + * Source/win32/NSStreamWin32.m: Win32 placeholders + * Source/win32/GNUmakefile: Build NSStreamWin32.m + * Source/GNUmakefile: Build GSStream.m + * Source/DocMakefile: Build NSStream documentation + Partial implementation of NSStream ... missing SSL, SOCKS, and + Win32 (apart from memory streams). 2006-02-15 Andrew Ruder - * Headers/Foundation/NSString.h: Fixing the oldest bug in GNUstep? - The header has says NSObject since Andrew McCallum added the file - on March 18th, 1995 (Just short of 11 years ago). + * Headers/Foundation/NSString.h: Fixing the oldest bug in GNUstep? + The header has says NSObject since Andrew McCallum added the file + on March 18th, 1995 (Just short of 11 years ago). 2006-02-14 Richard Frith-Macdonald - * Source/GSFileHandle.m: ([-availabledata]) fix error in last change - as we should block, but not for more than a single byte. + * Source/GSFileHandle.m: ([-availabledata]) fix error in last change + as we should block, but not for more than a single byte. 2006-02-13 Richard Frith-Macdonald - * Source/Additions/GSCategories.m: Fix MD5 digest for 64bit CPU + * Source/Additions/GSCategories.m: Fix MD5 digest for 64bit CPU 2006-02-12 Richard Frith-Macdonald - * Source/NSIndexPath.m: new - * Headers/Foundation/NSIndexPath.h: new - * Headers/Foundation/Foundation.h: include NSIndexPath.h - * Source/GNUmakefile: build NSIndexPath - * Source/DocMakefile: document NSIndexPath + * Source/NSIndexPath.m: new + * Headers/Foundation/NSIndexPath.h: new + * Headers/Foundation/Foundation.h: include NSIndexPath.h + * Source/GNUmakefile: build NSIndexPath + * Source/DocMakefile: document NSIndexPath 2006-02-10 Richard Frith-Macdonald - * Source/win32/GSFileHandleWin32.m: Ignore extraneous write events. - * Source/NSString.m: Don't insert native path separators by default. - * Source/NSProcessInfo.m: Report correct operating system on windows. + * Source/win32/GSFileHandleWin32.m: Ignore extraneous write events. + * Source/NSString.m: Don't insert native path separators by default. + * Source/NSProcessInfo.m: Report correct operating system on windows. 2006-02-07 Richard Frith-Macdonald - * Source/GSFileHandle.m: ([-availabledata])a fix logic of non-blocking - I/O setting. - * Source/NSBundle.m: ([-pathForResource:ofType:inDirectory:]) - ignore versioning on windows. + * Source/GSFileHandle.m: ([-availabledata])a fix logic of non-blocking + I/O setting. + * Source/NSBundle.m: ([-pathForResource:ofType:inDirectory:]) + ignore versioning on windows. 2006-02-05 Richard Frith-Macdonald - * Source/NSString.m: (handle_printf_atsign()) extend to support wprintf. + * Source/NSString.m: (handle_printf_atsign()) extend to support wprintf. 2006-02-01 Richard Frith-Macdonald - * Source/Additions/Unicode.m: Try to use iconv transliteration for - lossy conversion. When handling unconvertable characters in lossy - conversion, substitute a question mark rather than an asterisk for - consistency with iconv and other implementations. + * Source/Additions/Unicode.m: Try to use iconv transliteration for + lossy conversion. When handling unconvertable characters in lossy + conversion, substitute a question mark rather than an asterisk for + consistency with iconv and other implementations. 2006-01-27 Richard Frith-Macdonald - * Source/NSDistributedLock.m: ([description]) implemented + * Source/NSDistributedLock.m: ([description]) implemented 2006-01-20 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m: ([addObject:]) fix error in check for - missing pool during thread exit. + * Source/NSAutoreleasePool.m: ([addObject:]) fix error in check for + missing pool during thread exit. 2006-01-19 Richard Frith-Macdonald - * Tools/plget.m: remove unused variable - * Source/GGSString.m: optimise ([canBeConvertedToEncoding:]) - * Source/NSURL.m: correct misleading/wrong exception text. - * Source/NSString.m: mingw path handling tweaks ... build new - paths using native separator by default. + * Tools/plget.m: remove unused variable + * Source/GGSString.m: optimise ([canBeConvertedToEncoding:]) + * Source/NSURL.m: correct misleading/wrong exception text. + * Source/NSString.m: mingw path handling tweaks ... build new + paths using native separator by default. 2006-01-19 Richard Frith-Macdonald - * Headers/Foundation/NSThread.h: - * Source/NSAutoreleasePool.m: - * Source/NSThread.m: - Mimic MacOS-X behavior and create an autorelease pool if necessary - to catch any autorelease objects during thread exit. - As suggested by Wim Oudshoorn.. + * Headers/Foundation/NSThread.h: + * Source/NSAutoreleasePool.m: + * Source/NSThread.m: + Mimic MacOS-X behavior and create an autorelease pool if necessary + to catch any autorelease objects during thread exit. + As suggested by Wim Oudshoorn.. 2006-01-18 Richard Frith-Macdonald - * Source/Additions/Unicode.m: fix for rare case where we could corrupt - the stack ... spotted by Wim Oudshoorn. + * Source/Additions/Unicode.m: fix for rare case where we could corrupt + the stack ... spotted by Wim Oudshoorn. 2006-01-18 Andrew Ruder - * config/addlibrarypath.m4: new file - * configure.ac: Use new function to set library paths for netbsd - * configure: regenerate + * config/addlibrarypath.m4: new file + * configure.ac: Use new function to set library paths for netbsd + * configure: regenerate 2006-01-17 Richard Frith-Macdonald - * Tools/plget.m: New file to extract a string from a plist. - * Tools/pldes.1: Include plget - * Tools/GNUmakefile: build/install plget. + * Tools/plget.m: New file to extract a string from a plist. + * Tools/pldes.1: Include plget + * Tools/GNUmakefile: build/install plget. 2006-01-15 Richard Frith-Macdonald - * Source/win32/NSMessagePortNameServerWin32.m: - * Source/win32/NSMessagePortWin32.m: - Add hack to cope with bug reading registry ... better solution welcome - if anyone knows one. - Add security attributes to message port stuff ... should only let - current user on current machine access message ports I hope. + * Source/win32/NSMessagePortNameServerWin32.m: + * Source/win32/NSMessagePortWin32.m: + Add hack to cope with bug reading registry ... better solution welcome + if anyone knows one. + Add security attributes to message port stuff ... should only let + current user on current machine access message ports I hope. 2006-01-12 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Fix possible read off end of buffer - when parsing config file. + * Source/NSPathUtilities.m: Fix possible read off end of buffer + when parsing config file. 2006-01-11 Richard Frith-Macdonald - * Documentation/GNUmakefile: - * Documentation/General/GNUmakefile: - Fix path to autogsdoc for mingw where the 'obj' symlink doesn't work. + * Documentation/GNUmakefile: + * Documentation/General/GNUmakefile: + Fix path to autogsdoc for mingw where the 'obj' symlink doesn't work. 2006-01-11 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSUnion.h: - * Headers/Foundation/NSByteOrder.h: - * Headers/Foundation/NSPort.h: - * Source/GSFileHandle.m: - * Source/GSFormat.m: - * Source/NSData.m: - * Source/NSDistantObject.m: - * Source/NSMessagePort.m: - * Source/NSPortCoder.m: - * Source/NSSerializer.m: - * Source/NSSocketPort.m: - * Source/NSSocketPortNameServer.m: - * Source/NSString.m: - * Source/NSTimeZone.m: - * Source/NSUnarchiver.m: - * Source/win32/GSFileHandleWin32.m: - * Source/win32/NSMessagePortWin32.m: - Update to use sized datatypes from stdint.h now that almost all - operating systems support it. - * Source/NSCalendarDate.m: - Support '%T' and '%t' as supplied by unix date/time locale info. - * configure.ac: Ensure uintptr_t and intptr_t exist - * configure: regenerate + * Headers/Additions/GNUstepBase/GSUnion.h: + * Headers/Foundation/NSByteOrder.h: + * Headers/Foundation/NSPort.h: + * Source/GSFileHandle.m: + * Source/GSFormat.m: + * Source/NSData.m: + * Source/NSDistantObject.m: + * Source/NSMessagePort.m: + * Source/NSPortCoder.m: + * Source/NSSerializer.m: + * Source/NSSocketPort.m: + * Source/NSSocketPortNameServer.m: + * Source/NSString.m: + * Source/NSTimeZone.m: + * Source/NSUnarchiver.m: + * Source/win32/GSFileHandleWin32.m: + * Source/win32/NSMessagePortWin32.m: + Update to use sized datatypes from stdint.h now that almost all + operating systems support it. + * Source/NSCalendarDate.m: + Support '%T' and '%t' as supplied by unix date/time locale info. + * configure.ac: Ensure uintptr_t and intptr_t exist + * configure: regenerate 2006-01-10 Richard Frith-Macdonald - * Source/mframe.m: - When calculating info about a structure, make sure its alignment is - that of its most strictly aligned field and make sure its size is a - multiple of its alignment. - * Source/NSData.m: ([initWithCoder:]) Fix bug decoding unsigned long - into unsigned int variable ... breaks on amd64 + * Source/mframe.m: + When calculating info about a structure, make sure its alignment is + that of its most strictly aligned field and make sure its size is a + multiple of its alignment. + * Source/NSData.m: ([initWithCoder:]) Fix bug decoding unsigned long + into unsigned int variable ... breaks on amd64 2006-01-10 Richard Frith-Macdonald - * Source/GSFileHandle.m: - * Source/NSAutoreleasePool.m: - * Source/NSCallBacks.m: - * Source/NSConnection.m: - * Source/NSData.m: - * Source/NSDictionary.m: - * Source/NSDistantObject.m: - * Source/NSMessagePort.m: - * Source/NSObject.m: - * Source/NSProtocolChecker.m: - * Source/NSProxy.m: - * Source/NSSocketPort.m: - * Source/NSTask.m: - * Source/NSThread.m: - * Source/NSZone.m: - * Source/Additions/GSXML.m: - * Source/unix/GSRunLoopCtxt.m: - Add explicit casts to avoid compiler warnings where we are on a - processor where the size of an integer is not the same as the size - of a pointer. - * Tools/gdomap.c: - Add type casts to fix comparisons on 64bit processor + * Source/GSFileHandle.m: + * Source/NSAutoreleasePool.m: + * Source/NSCallBacks.m: + * Source/NSConnection.m: + * Source/NSData.m: + * Source/NSDictionary.m: + * Source/NSDistantObject.m: + * Source/NSMessagePort.m: + * Source/NSObject.m: + * Source/NSProtocolChecker.m: + * Source/NSProxy.m: + * Source/NSSocketPort.m: + * Source/NSTask.m: + * Source/NSThread.m: + * Source/NSZone.m: + * Source/Additions/GSXML.m: + * Source/unix/GSRunLoopCtxt.m: + Add explicit casts to avoid compiler warnings where we are on a + processor where the size of an integer is not the same as the size + of a pointer. + * Tools/gdomap.c: + Add type casts to fix comparisons on 64bit processor 2006-01-09 Richard Frith-Macdonald - * Source/win32/GSRunLoopCtxt.m: Apply patch by Jeremy Bettis with - fixups for intentation/formatting and minor correction to avoid waiting - for an event when we have handled one in the current run of the loop. + * Source/win32/GSRunLoopCtxt.m: Apply patch by Jeremy Bettis with + fixups for intentation/formatting and minor correction to avoid waiting + for an event when we have handled one in the current run of the loop. 2006-01-09 Richard Frith-Macdonald - * Source/NSPropertyList.m: When generating binary plist, fix bug - in case where we have to increase table size. - * Source/NSKeyedArchiver.m: Update to use binary plist format - by default rather than xml format ... MacOS-X compatible and - works when libxml2 is not available. - * Source/NSKeyedUnarchiver.m: Print NSLog error if attempting to - decode an xml archive when no libxml2 is available. + * Source/NSPropertyList.m: When generating binary plist, fix bug + in case where we have to increase table size. + * Source/NSKeyedArchiver.m: Update to use binary plist format + by default rather than xml format ... MacOS-X compatible and + works when libxml2 is not available. + * Source/NSKeyedUnarchiver.m: Print NSLog error if attempting to + decode an xml archive when no libxml2 is available. 2006-01-08 Richard Frith-Macdonald - * Source/NSPathUtilities.m: be more consistent in use of defined values - from config file. - * configure.in: Improve comments/help. Fix error in config where we - were attempting OS based decisions before we had determined the OS. - Improve default paths on mingw to be relative to the DLL. - Load information from make package config fo use during build of - base library. - Generally try to improve user experience on mingw to make build/install - really simple with new config files. - * configure: regenerate - * Headers/Additions/GNUstepBase/config.h.in: regenerate - * Documentation/Base.gsdoc: Attempt to clarify config file operation. + * Source/NSPathUtilities.m: be more consistent in use of defined values + from config file. + * configure.in: Improve comments/help. Fix error in config where we + were attempting OS based decisions before we had determined the OS. + Improve default paths on mingw to be relative to the DLL. + Load information from make package config fo use during build of + base library. + Generally try to improve user experience on mingw to make build/install + really simple with new config files. + * configure: regenerate + * Headers/Additions/GNUstepBase/config.h.in: regenerate + * Documentation/Base.gsdoc: Attempt to clarify config file operation. 2006-01-07 Fred Kiefer - * Source/NSPropertyList.m (BinaryPLGenerator - storeCount:) Handle - count > 256*256. Patch by Derek Zhou . + * Source/NSPropertyList.m (BinaryPLGenerator - storeCount:) Handle + count > 256*256. Patch by Derek Zhou . 2006-01-04 David Ayers - Bug #15353 - * Source/NSProcessInfo.m (fallbackInitialisation): Move - initialization to avoid compiler error. Reported by - Stefan van den Oord (stefan.vandenoord@gmail.com). + Bug #15353 + * Source/NSProcessInfo.m (fallbackInitialisation): Move + initialization to avoid compiler error. Reported by + Stefan van den Oord (stefan.vandenoord@gmail.com). 2005-12-21 Adam Fedor - * Version 1.11.2 + * Version 1.11.2 2005-12-21 Richard Frith-Macdonald - * Tools/AGSHtml.m: Partial update for use of CSS ... as provided by - Fabien Vallon. Need to decide where the stylesheet file should come - from and where it should be installed. Probably need a new autogsdoc - flag for this and some internal api changes. + * Tools/AGSHtml.m: Partial update for use of CSS ... as provided by + Fabien Vallon. Need to decide where the stylesheet file should come + from and where it should be installed. Probably need a new autogsdoc + flag for this and some internal api changes. 2005-12-20 Richard Frith-Macdonald - * Tools/AGSParser.m: Deal with C++ declaration of external C/ObjC libs. - * Tools/AGSHtml.m: Add changes to avoid colons in references to allow - dumb windows help system to use our output. Same idea as patch #4569 - but (hopefully) doesn't break anything. - * Source/DocMakefile: A couple of fixes for building documentation of - the additions library. + * Tools/AGSParser.m: Deal with C++ declaration of external C/ObjC libs. + * Tools/AGSHtml.m: Add changes to avoid colons in references to allow + dumb windows help system to use our output. Same idea as patch #4569 + but (hopefully) doesn't break anything. + * Source/DocMakefile: A couple of fixes for building documentation of + the additions library. 2005-12-20 Adam Fedor - * SSL/configure.ac: Check for GNUSTEP_MAKEFILES not - GNUSTEP_SYSTEM_ROOT. + * SSL/configure.ac: Check for GNUSTEP_MAKEFILES not + GNUSTEP_SYSTEM_ROOT. 2005-12-15 Richard Frith-Macdonald - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - Increase maximum supported message size from 10MB to 32MB in - recognition of the fact that everything is faster/bigger nowadays - and people might actually want to send single messages with - that much data in them. + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + Increase maximum supported message size from 10MB to 32MB in + recognition of the fact that everything is faster/bigger nowadays + and people might actually want to send single messages with + that much data in them. 2005-12-13 Richard Frith-Macdonald - * Source/Additions/GSXML.m: Fix error parsing date/time in xmlrpc - Remove bad characters when escaping string for xml. + * Source/Additions/GSXML.m: Fix error parsing date/time in xmlrpc + Remove bad characters when escaping string for xml. 2005-12-07 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Get paths of system directories - (for linux FHS support) from config file. - * Documentation/Base.gsdoc: update + * Source/NSPathUtilities.m: Get paths of system directories + (for linux FHS support) from config file. + * Documentation/Base.gsdoc: update 2005-12-06 Richard Frith-Macdonald - * configure.ac: On mingw, don't get the location of the config file - from the make package. Assume ./GNUstep.conf instead, so that the - base library is built for distribution (relocatable relative to the - library). - * configure: regenerate + * configure.ac: On mingw, don't get the location of the config file + from the make package. Assume ./GNUstep.conf instead, so that the + base library is built for distribution (relocatable relative to the + library). + * configure: regenerate 2005-12-05 Richard Frith-Macdonald - * Source/NSProcessInfo.m: Allow - ([+initializeWithArguments:count:environment:]) to override the real - environment on mingw32. - * Source/NSPathUtilities.m: Ignore config files named - .GNUstep.conf-ignore (so we can safely disable config file reading - and ensure inbuilt defaults are used) - * configure.ac: By default, disallow use of GNUSTEP_CONFIG_FILE - environment variable. Remove some redundant code. Document better. - * configure: regenerate - * Documentation/Base.gsdoc: Update for config changes - * Tools/autogsdoc.m: add any gsdoc files explicitly specified on - command line to generated dependency file for make. + * Source/NSProcessInfo.m: Allow + ([+initializeWithArguments:count:environment:]) to override the real + environment on mingw32. + * Source/NSPathUtilities.m: Ignore config files named + .GNUstep.conf-ignore (so we can safely disable config file reading + and ensure inbuilt defaults are used) + * configure.ac: By default, disallow use of GNUSTEP_CONFIG_FILE + environment variable. Remove some redundant code. Document better. + * configure: regenerate + * Documentation/Base.gsdoc: Update for config changes + * Tools/autogsdoc.m: add any gsdoc files explicitly specified on + command line to generated dependency file for make. 2005-12-02 Richard Frith-Macdonald - * configure.ac: Fix bug configuring whether GNUstep.conf can be - set in the environment - * configure: regenerate + * configure.ac: Fix bug configuring whether GNUstep.conf can be + set in the environment + * configure: regenerate 2005-12-01 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Add more checks/warnings about improper - configuration. - * Headers/Foundation/NSException.h: clarify/extend documentation. - * Source/NSException.m: move some documentation to header. + * Source/NSPathUtilities.m: Add more checks/warnings about improper + configuration. + * Headers/Foundation/NSException.h: clarify/extend documentation. + * Source/NSException.m: move some documentation to header. 2005-11-28 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSConfig.h.in: - * Headers/Additions/GNUstepBase/GSXML.h: - * Headers/Foundation/NSCoder.h: - * Headers/Foundation/NSConnection.h: - * Headers/Foundation/NSFileManager.h: - * Headers/Foundation/NSKeyValueObserving.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSPortCoder.h: - * Headers/Foundation/NSProxy.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSURL.h: - * Headers/Foundation/NSXMLParser.h: - * Source/NSArray.m: - * Source/NSAttributedString.m: - * Source/NSCoder.m: - * Source/NSConnection.m: - * Source/NSDictionary.m: - * Source/NSFileHandle.m: - * Source/NSFileManager.m: - * Source/NSKeyValueObserving.m: - * Source/NSKeyedArchiver.m: - * Source/NSKeyedUnarchiver.m: - * Source/NSObject.m: - * Source/NSPortCoder.m: - * Source/NSPortNameServer.m: - * Source/NSRunLoop.m: - * Source/NSString.m: - * Tools/AGSOutput.m: - * Tools/gdnc.m: - * Tools/gsdoc.gsdoc: - Documentation tweaks and minor simplificiations. + * Headers/Additions/GNUstepBase/GSConfig.h.in: + * Headers/Additions/GNUstepBase/GSXML.h: + * Headers/Foundation/NSCoder.h: + * Headers/Foundation/NSConnection.h: + * Headers/Foundation/NSFileManager.h: + * Headers/Foundation/NSKeyValueObserving.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSPortCoder.h: + * Headers/Foundation/NSProxy.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSURL.h: + * Headers/Foundation/NSXMLParser.h: + * Source/NSArray.m: + * Source/NSAttributedString.m: + * Source/NSCoder.m: + * Source/NSConnection.m: + * Source/NSDictionary.m: + * Source/NSFileHandle.m: + * Source/NSFileManager.m: + * Source/NSKeyValueObserving.m: + * Source/NSKeyedArchiver.m: + * Source/NSKeyedUnarchiver.m: + * Source/NSObject.m: + * Source/NSPortCoder.m: + * Source/NSPortNameServer.m: + * Source/NSRunLoop.m: + * Source/NSString.m: + * Tools/AGSOutput.m: + * Tools/gdnc.m: + * Tools/gsdoc.gsdoc: + Documentation tweaks and minor simplificiations. 2005-11-28 Richard Frith-Macdonald - * Tools/AGSOutput.m: - * Tools/AGSParser.h: - * Tools/AGSParser.m: - * Tools/AGSHtml.m: - * Tools/autogsdoc.m: - * Tools/gsdoc-1_0_3.dtd: - * Toold/gsdoc.gsdoc: - Added override=dummy attribute for methods which have dummy - implementations intendeed to be ocerridden in subclasses. - Update to log warning about unimplemented methods which are not - tagged as intended to be overridden. + * Tools/AGSOutput.m: + * Tools/AGSParser.h: + * Tools/AGSParser.m: + * Tools/AGSHtml.m: + * Tools/autogsdoc.m: + * Tools/gsdoc-1_0_3.dtd: + * Toold/gsdoc.gsdoc: + Added override=dummy attribute for methods which have dummy + implementations intendeed to be ocerridden in subclasses. + Update to log warning about unimplemented methods which are not + tagged as intended to be overridden. 2005-11-22 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Restructure so that GNUstepConfig() can - be used to set/get the global configuration as suggested by - Jeremy Bettis + * Source/NSPathUtilities.m: Restructure so that GNUstepConfig() can + be used to set/get the global configuration as suggested by + Jeremy Bettis 2005-11-22 Richard Frith-Macdonald - * Source/NSPort.m: - * Source/NSMessagePort.m: - * Source/NSDistributedNotificationCenter.m: - * Tools/gdnc.m: - Use the NSPortIsMessagePort user default consistently to control - whether socket or message ports are used by default. Remove mingw32 - specific GSMailslot user default. - Source/NSPathUtilities.m: Check for illegal paths (ones which don't - appear to be absolute paths) specified in config file ... warn about - the bad config, but try to guess what they shjould be for mingw32 + * Source/NSPort.m: + * Source/NSMessagePort.m: + * Source/NSDistributedNotificationCenter.m: + * Tools/gdnc.m: + Use the NSPortIsMessagePort user default consistently to control + whether socket or message ports are used by default. Remove mingw32 + specific GSMailslot user default. + Source/NSPathUtilities.m: Check for illegal paths (ones which don't + appear to be absolute paths) specified in config file ... warn about + the bad config, but try to guess what they shjould be for mingw32 2005-11-20 Richard Frith-Macdonald - * configure.ac: Add flags to allow detection of headers/libraries - installed in the System domain of the GNUstep hierarchy. - * configure: regenerate - * Source/win32/GSRunLoopCtxt.m: Intercept windows WM_QUIT messages - and tell the application to terminate cleanly (or raise an exception - if the NSApplication class is not linked). Should allow ms-windows - to get a mingw32-based GNUstep app to shut down cleanly. - * Source/NSDistributedNotificationCenter.m: Rewrite code for connecting - to and starting up daemon to handle the process more quickly and - smoothly. Only complain if we can't to connect to it even after - launching it and retrying the connection for five seconds. + * configure.ac: Add flags to allow detection of headers/libraries + installed in the System domain of the GNUstep hierarchy. + * configure: regenerate + * Source/win32/GSRunLoopCtxt.m: Intercept windows WM_QUIT messages + and tell the application to terminate cleanly (or raise an exception + if the NSApplication class is not linked). Should allow ms-windows + to get a mingw32-based GNUstep app to shut down cleanly. + * Source/NSDistributedNotificationCenter.m: Rewrite code for connecting + to and starting up daemon to handle the process more quickly and + smoothly. Only complain if we can't to connect to it even after + launching it and retrying the connection for five seconds. 2005-11-16 Richard Frith-Macdonald - * Source/NSProcessInfo.m: - * Source/NSUserDefaults.m: - Restore reverted changes for code where class initialisation order - is not a factor. - * Source/NSUser.m: Delete unused file - * GNUmakefile: Don't try to build NSUser.m + * Source/NSProcessInfo.m: + * Source/NSUserDefaults.m: + Restore reverted changes for code where class initialisation order + is not a factor. + * Source/NSUser.m: Delete unused file + * GNUmakefile: Don't try to build NSUser.m 2005-11-15 Richard Frith-Macdonald - Revert last changes ... discovered some apps where ordering of - class initialisation caused failures. + Revert last changes ... discovered some apps where ordering of + class initialisation caused failures. 2005-11-15 Richard Frith-Macdonald - * Tools/gdnc.m: - * Source/GSPrivate.h: - * Source/NSException.m: - * Source/NSObject.m: - * Source/NSProcessInfo.m: - * Source/NSString.m: - * Source/NSUserDefaults.m: - Be consistent and access environment variables only via the - NSProcessInfo class ...so a program which uses a category to - override it can effectively change the environment safely. - * Source/NSPathUtilities.m: - Restructure code for gatting config, so that a single function - can be used to get/set config information for the system or a - user. Decrease code duplication. + * Tools/gdnc.m: + * Source/GSPrivate.h: + * Source/NSException.m: + * Source/NSObject.m: + * Source/NSProcessInfo.m: + * Source/NSString.m: + * Source/NSUserDefaults.m: + Be consistent and access environment variables only via the + NSProcessInfo class ...so a program which uses a category to + override it can effectively change the environment safely. + * Source/NSPathUtilities.m: + Restructure code for gatting config, so that a single function + can be used to get/set config information for the system or a + user. Decrease code duplication. 2005-11-14 Richard Frith-Macdonald - * Source/win32/GSFileHandleWin32.m: Move mingw32 implementation of - file handle code here. - * Source/GSFileHandle.m: Remove mingw32 code. - * Source/NSPathUtilitires.m: Fix handling of user config file for - when the user name is changed. + * Source/win32/GSFileHandleWin32.m: Move mingw32 implementation of + file handle code here. + * Source/GSFileHandle.m: Remove mingw32 code. + * Source/NSPathUtilitires.m: Fix handling of user config file for + when the user name is changed. 2005-11-12 Richard Frith-Macdonald - * Source/NSPathUtilities.m: NSOpenStepRootDirectory() remove - deprecated status in documentation. Try to clarify doc. - Get rid of environment variable. Use native path for mingw32 - * Tools/gsdoc.7: Fix obsolete reference to environment variable. - * Tools.gsdoc.gsdoc: ditto + * Source/NSPathUtilities.m: NSOpenStepRootDirectory() remove + deprecated status in documentation. Try to clarify doc. + Get rid of environment variable. Use native path for mingw32 + * Tools/gsdoc.7: Fix obsolete reference to environment variable. + * Tools.gsdoc.gsdoc: ditto 2005-11-11 Richard Frith-Macdonald - * Applied Willem Rein Oudshoorn's fix for bug #11055, having tested it - and found it OK on windows-xp as well as the windows-2003 system he - was using. + * Applied Willem Rein Oudshoorn's fix for bug #11055, having tested it + and found it OK on windows-xp as well as the windows-2003 system he + was using. 2005-11-11 Richard Frith-Macdonald - * Source/win32/NSMessagePortNameServerWin32.m: fix port lookup in case - where named port does not exist. Correct debug logging by class name. - * Testing/nsconnection_client.m: don't run large structure test on - mingw32 at present ... it crashes (something wrong with the invocation - stuff for ffcall and some large structures on mingw32) - * Tools/gdnc.m: Obey GSMailslot default on mingw32. - * Source/NSDistributedNotificationCenter.m: ditto. - * Source/win32/NSMessagePortWin32.m: Fixes for cases where requests - we wanted to be async actually complete synchronously. Moves the - state of this code from pre-alpha to alpha/beta quality I guess. - * Source/preface.m: Change declaration of variables to be pointer to - char rather than array of char ... more usual/safe. + * Source/win32/NSMessagePortNameServerWin32.m: fix port lookup in case + where named port does not exist. Correct debug logging by class name. + * Testing/nsconnection_client.m: don't run large structure test on + mingw32 at present ... it crashes (something wrong with the invocation + stuff for ffcall and some large structures on mingw32) + * Tools/gdnc.m: Obey GSMailslot default on mingw32. + * Source/NSDistributedNotificationCenter.m: ditto. + * Source/win32/NSMessagePortWin32.m: Fixes for cases where requests + we wanted to be async actually complete synchronously. Moves the + state of this code from pre-alpha to alpha/beta quality I guess. + * Source/preface.m: Change declaration of variables to be pointer to + char rather than array of char ... more usual/safe. 2005-11-10 Richard Frith-Macdonald - * Source/win32/NSMessagePortWin32.m: more changes - * Source/win32/NSMessagePortNameServerWin32.m: ditto - Working at least in part (pre-alpha I guess) ... enable with the - GSMailslot user default. Known problems - - 1. no way of telling if the other end of a connection has gone until - we try to write to it. - 2. hangup in my testing comms between three threads. + * Source/win32/NSMessagePortWin32.m: more changes + * Source/win32/NSMessagePortNameServerWin32.m: ditto + Working at least in part (pre-alpha I guess) ... enable with the + GSMailslot user default. Known problems - + 1. no way of telling if the other end of a connection has gone until + we try to write to it. + 2. hangup in my testing comms between three threads. 2005-11-09 Richard Frith-Macdonald - * Source/win32/NSMessagePortWin32.m: more changes - * Source/win32/NSMessagePortNameServerWin32.m: ditto - * Source/Tools/AGSOutput.m: search for C/ObjC types in text, and - render them as automatically as suggested by Fabien Vallon. + * Source/win32/NSMessagePortWin32.m: more changes + * Source/win32/NSMessagePortNameServerWin32.m: ditto + * Source/Tools/AGSOutput.m: search for C/ObjC types in text, and + render them as automatically as suggested by Fabien Vallon. 2005-11-08 Richard Frith-Macdonald - * Source/win32/NSMessagePortWin32.m: Lots of work towards implementing - this, but nothing usable yet (compiles but won't run). - * Source/win32/NSMessagePortNameServerWin32.m: ditto - * Source/win32/NSUserDefaultsWin32.m: fix value type problem. - * Source/win32/GNUmakefile: build NSMessagePortNameServer. - * Source/NSMessagePortNameServer.m: fix minor memory leak. + * Source/win32/NSMessagePortWin32.m: Lots of work towards implementing + this, but nothing usable yet (compiles but won't run). + * Source/win32/NSMessagePortNameServerWin32.m: ditto + * Source/win32/NSUserDefaultsWin32.m: fix value type problem. + * Source/win32/GNUmakefile: build NSMessagePortNameServer. + * Source/NSMessagePortNameServer.m: fix minor memory leak. 2005-11-07 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/Win32Support.h: removed - * Headers/Additions/GNUstepBase/Win32_Utilities.h: removed - * Source/NSPathUtilities.m: Don't include unused files. - * Source/win32/GNUmakefile: Don't build removed files. - * Source/win32/NSUserDefaultsWin32.m: fix '%s' to '%S' - * Source/win32/Win32Support.m: removed - * Source/win32/Win32_Utilities.m: removed - Cleanup ... remove some unused win32 cruft. + * Headers/Additions/GNUstepBase/Win32Support.h: removed + * Headers/Additions/GNUstepBase/Win32_Utilities.h: removed + * Source/NSPathUtilities.m: Don't include unused files. + * Source/win32/GNUmakefile: Don't build removed files. + * Source/win32/NSUserDefaultsWin32.m: fix '%s' to '%S' + * Source/win32/Win32Support.m: removed + * Source/win32/Win32_Utilities.m: removed + Cleanup ... remove some unused win32 cruft. 2005-11-06 Richard Frith-Macdonald - * Documentation/Base.ispell: words from base reference documentation - * Documentation/Base.gsdoc: - * Headers/Additions/GNUstepBase/GSMime.h: - * Headers/Additions/GNUstepBase/GSXML.h: - * Headers/Foundation/NSArray.h: - * Headers/Foundation/NSCalendarDate.h: - * Headers/Foundation/NSCharacterSet.h: - * Headers/Foundation/NSConnection.h: - * Headers/Foundation/NSData.h: - * Headers/Foundation/NSDebug.h: - * Headers/Foundation/NSDecimalNumber.h: - * Headers/Foundation/NSError.h: - * Headers/Foundation/NSFileHandle.h: - * Headers/Foundation/NSFormatter.h: - * Headers/Foundation/NSIndexSet.h: - * Headers/Foundation/NSKeyValueCoding.h: - * Headers/Foundation/NSKeyedArchiver.h: - * Headers/Foundation/NSLock.h: - * Headers/Foundation/NSMethodSignature.h: - * Headers/Foundation/NSObject.h: - * Headers/Foundation/NSPathUtilities.h: - * Headers/Foundation/NSPortMessage.h: - * Headers/Foundation/NSPropertyList.h: - * Headers/Foundation/NSRunLoop.h: - * Headers/Foundation/NSString.h: - * Headers/Foundation/NSURL.h: - * Headers/Foundation/NSURLHandle.h: - * Headers/Foundation/NSXMLParser.h: - * Headers/Foundation/NSZone.h: - * Source/GSCompatibility.m: - * Source/GSCountedSet.m: - * Source/GSString.m: - * Source/GSTemplateValue.m: - * Source/NSArchiver.m: - * Source/NSArray.m: - * Source/NSCalendarDate.m: - * Source/NSClassDescription.m: - * Source/NSConnection.m: - * Source/NSData.m: - * Source/NSDate.m: - * Source/NSDebug.m: - * Source/NSDictionary.m: - * Source/NSDistantObject.m: - * Source/NSDistributedLock.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSFileHandle.m: - * Source/NSFileManager.m: - * Source/NSHashTable.m: - * Source/NSInvocation.m: - * Source/NSLock.m: - * Source/NSMapTable.m: - * Source/NSObject.m: - * Source/NSPathUtilities.m: - * Source/NSPortMessage.m: - * Source/NSProxy.m: - * Source/NSScanner.m: - * Source/NSSocketPortNameServer.m: - * Source/NSString.m: - * Source/NSTask.m: - * Source/NSTimeZone.m: - * Source/NSTimer.m: - * Source/NSURL.m: - * Source/NSURLHandle.m: - * Source/NSUnarchiver.m: - * Source/NSUndoManager.m: - * Source/NSUserDefaults.m: - * Source/NSValue.m: - * Source/Additions/GSCategories.m: - * Source/Additions/GSMime.m: - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/GSXML.m: - * Source/Additions/Unicode.m: - * Source/win32/NSUserDefaultsWin32.m: - * Tools/AGSParser.m: - * Tools/autogsdoc.m: - * Tools/gdomap.h: - Fix typo/spelling mistakes manifesting in reference documentation. - I spent half a day going through the tedious process of running - all gsdoc output through ispell. + * Documentation/Base.ispell: words from base reference documentation + * Documentation/Base.gsdoc: + * Headers/Additions/GNUstepBase/GSMime.h: + * Headers/Additions/GNUstepBase/GSXML.h: + * Headers/Foundation/NSArray.h: + * Headers/Foundation/NSCalendarDate.h: + * Headers/Foundation/NSCharacterSet.h: + * Headers/Foundation/NSConnection.h: + * Headers/Foundation/NSData.h: + * Headers/Foundation/NSDebug.h: + * Headers/Foundation/NSDecimalNumber.h: + * Headers/Foundation/NSError.h: + * Headers/Foundation/NSFileHandle.h: + * Headers/Foundation/NSFormatter.h: + * Headers/Foundation/NSIndexSet.h: + * Headers/Foundation/NSKeyValueCoding.h: + * Headers/Foundation/NSKeyedArchiver.h: + * Headers/Foundation/NSLock.h: + * Headers/Foundation/NSMethodSignature.h: + * Headers/Foundation/NSObject.h: + * Headers/Foundation/NSPathUtilities.h: + * Headers/Foundation/NSPortMessage.h: + * Headers/Foundation/NSPropertyList.h: + * Headers/Foundation/NSRunLoop.h: + * Headers/Foundation/NSString.h: + * Headers/Foundation/NSURL.h: + * Headers/Foundation/NSURLHandle.h: + * Headers/Foundation/NSXMLParser.h: + * Headers/Foundation/NSZone.h: + * Source/GSCompatibility.m: + * Source/GSCountedSet.m: + * Source/GSString.m: + * Source/GSTemplateValue.m: + * Source/NSArchiver.m: + * Source/NSArray.m: + * Source/NSCalendarDate.m: + * Source/NSClassDescription.m: + * Source/NSConnection.m: + * Source/NSData.m: + * Source/NSDate.m: + * Source/NSDebug.m: + * Source/NSDictionary.m: + * Source/NSDistantObject.m: + * Source/NSDistributedLock.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSFileHandle.m: + * Source/NSFileManager.m: + * Source/NSHashTable.m: + * Source/NSInvocation.m: + * Source/NSLock.m: + * Source/NSMapTable.m: + * Source/NSObject.m: + * Source/NSPathUtilities.m: + * Source/NSPortMessage.m: + * Source/NSProxy.m: + * Source/NSScanner.m: + * Source/NSSocketPortNameServer.m: + * Source/NSString.m: + * Source/NSTask.m: + * Source/NSTimeZone.m: + * Source/NSTimer.m: + * Source/NSURL.m: + * Source/NSURLHandle.m: + * Source/NSUnarchiver.m: + * Source/NSUndoManager.m: + * Source/NSUserDefaults.m: + * Source/NSValue.m: + * Source/Additions/GSCategories.m: + * Source/Additions/GSMime.m: + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/GSXML.m: + * Source/Additions/Unicode.m: + * Source/win32/NSUserDefaultsWin32.m: + * Tools/AGSParser.m: + * Tools/autogsdoc.m: + * Tools/gdomap.h: + Fix typo/spelling mistakes manifesting in reference documentation. + I spent half a day going through the tedious process of running + all gsdoc output through ispell. 2005-11-05 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/Win32_Utilities.h: - * Headers/Foundation/NSFileManager.h: - * Headers/Foundation/NSString.h: - * Source/NSBundle.m: - * Source/NSData.m: - * Source/NSFileManager.m: - * Source/NSLog.m: - * Source/NSPathUtilities.m: - * Source/NSProcessInfo.m: - * Source/NSString.m: - * Source/NSTimeZone.m: - * Source/objc-load.m: - * Source/win32-load.h: - * Source/Additions/GSObjCRuntime.m: - * Source/win32/NSMessagePortWin32.m: - * Source/win32/NSUserDefaultsWin32.m: - * Source/win32/Win32_Utilities.m: - Attempt to rationalise mingw32 unicode support, use explicit unicode - methods throughput, fix several bugs where APIs were not using - unicode when they should have been doing. + * Headers/Additions/GNUstepBase/Win32_Utilities.h: + * Headers/Foundation/NSFileManager.h: + * Headers/Foundation/NSString.h: + * Source/NSBundle.m: + * Source/NSData.m: + * Source/NSFileManager.m: + * Source/NSLog.m: + * Source/NSPathUtilities.m: + * Source/NSProcessInfo.m: + * Source/NSString.m: + * Source/NSTimeZone.m: + * Source/objc-load.m: + * Source/win32-load.h: + * Source/Additions/GSObjCRuntime.m: + * Source/win32/NSMessagePortWin32.m: + * Source/win32/NSUserDefaultsWin32.m: + * Source/win32/Win32_Utilities.m: + Attempt to rationalise mingw32 unicode support, use explicit unicode + methods throughput, fix several bugs where APIs were not using + unicode when they should have been doing. 2005-11-05 Richard Frith-Macdonald - * Source/GSCompatibility.m: don't generate macos-x (xml) property - lists if we can't parse them. - * Source/GSHTTPURLHandle.m: debug fix for mingw32 - * Headers/Foundation/NSFileManager.h: add mingw32 conditionals. - * Headers/Foundation/NSString.h: add mingw32 conditionals. - * Source/NSMessagePort.m: remove mingw32 stuff - * Source/win32/NSMessagePort.m: added partial implementation - * Source/win32/NSMessagePortNewServer.m: added skeleton - * Source/win32/GNUmakefile: build message port classes + * Source/GSCompatibility.m: don't generate macos-x (xml) property + lists if we can't parse them. + * Source/GSHTTPURLHandle.m: debug fix for mingw32 + * Headers/Foundation/NSFileManager.h: add mingw32 conditionals. + * Headers/Foundation/NSString.h: add mingw32 conditionals. + * Source/NSMessagePort.m: remove mingw32 stuff + * Source/win32/NSMessagePort.m: added partial implementation + * Source/win32/NSMessagePortNewServer.m: added skeleton + * Source/win32/GNUmakefile: build message port classes 2005-11-04 Richard Frith-Macdonald - * configure.ac: Cope with backslashes in values from GNUstep.conf - * configure: Regenerated. - Improvements for mingw32 systems - * Source/NSConnection.m: update obsolete methods. - * Source/NSMessagePort.m: start mingw32 implementation + * configure.ac: Cope with backslashes in values from GNUstep.conf + * configure: Regenerated. + Improvements for mingw32 systems + * Source/NSConnection.m: update obsolete methods. + * Source/NSMessagePort.m: start mingw32 implementation 2005-11-01 Richard Frith-Macdonald - * Source/NSMessagePort.m: If a socket file already exists when trying - to bind to it, try connecting to it to see if there is a program - using it, and unlin/retry if there isn't. This is an attempt to - handle situations where an old process was not killed cleanly and - the new process tries to use the same name. - * Source/Additions/GSCategories.m: ([uuencodeInto:name:mode:]) fix - error encoding the termination marker of the uuencoded data. - * Headers/Foundation/NSPort.h: Declare missing category of NSObject - Remove some of the subclass stuff that should be private. - * Source/GSPortPrivate.h: Put private port stuff here ... needs - more to be moved out of NSPort.h - * Source/NSMessagePort.m: Hide instance variables. Use GSPortPrivate.h - Add bugfix for possible deadlock situation reported by Wim. - * Source/NSSocketPort.m: ditto - * Source/NSMessagePortNameServer.m: Use GSPortPrivate.h - * Source/NSPort.m: Implement missing informal protocol method. + * Source/NSMessagePort.m: If a socket file already exists when trying + to bind to it, try connecting to it to see if there is a program + using it, and unlin/retry if there isn't. This is an attempt to + handle situations where an old process was not killed cleanly and + the new process tries to use the same name. + * Source/Additions/GSCategories.m: ([uuencodeInto:name:mode:]) fix + error encoding the termination marker of the uuencoded data. + * Headers/Foundation/NSPort.h: Declare missing category of NSObject + Remove some of the subclass stuff that should be private. + * Source/GSPortPrivate.h: Put private port stuff here ... needs + more to be moved out of NSPort.h + * Source/NSMessagePort.m: Hide instance variables. Use GSPortPrivate.h + Add bugfix for possible deadlock situation reported by Wim. + * Source/NSSocketPort.m: ditto + * Source/NSMessagePortNameServer.m: Use GSPortPrivate.h + * Source/NSPort.m: Implement missing informal protocol method. 2005-10-31 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: retain self for the duration of I/O - handler methods where we may make callbacks to clients. In case - the client owns the handle, and decides to release it. - * Source/GSFileHandle.m: Increase backlog size in listen() to improve - perfromance of server objects accepting lots of connections. - * Source/NSSocketPort.m: ditto ... though unlikely to be needed. - * Source/NSMessagePort.m: ditto - * Source/GSTcpPort.m: remove obsolete file - * Tools/gstcpport_client.m: ditto - * Tools/gstcpport_server.m: ditto + * Source/GSHTTPURLHandle.m: retain self for the duration of I/O + handler methods where we may make callbacks to clients. In case + the client owns the handle, and decides to release it. + * Source/GSFileHandle.m: Increase backlog size in listen() to improve + perfromance of server objects accepting lots of connections. + * Source/NSSocketPort.m: ditto ... though unlikely to be needed. + * Source/NSMessagePort.m: ditto + * Source/GSTcpPort.m: remove obsolete file + * Tools/gstcpport_client.m: ditto + * Tools/gstcpport_server.m: ditto 2005-10-30 Richard Frith-Macdonald - * Source/NSLog.m: Apply patch #5399 from Jeremy Bettis. - Tidy indentation. Fix variable declaration not at start of block - (broke compile for older gcc versions). Avoid repeated system - calls to get process ID. - * Headers/Additions/GNUstepBase/GSRunLoopCtxt.h: Move private header to - Source directory. - * Headers/Additions/GNUstepBase/GSRunLoopWatcher.h: ditto - * Headers/Foundation/NSRunLoop.h: Add event type for handling windows - messages. - * Source/GNUmakefile: Don't install private headers in public area. - * Source/win32/GSRunLoopCtxt.m: Add code to handle windows messages. - Check number of handles waited for. Avoid unnecessary heap memory - allocation/release. - * Source/win32/GSRunLoopWatcher.m: update header path. - * Source/win32/NSRunLoopWin32.m: update header path. - Deprecate addMsgTarget:withMethod:forMode: as our code for the original - addEvent:type:watcher:forMode: can be much more efficient if we don't - support that extension. We need to use addEvent:type:watcher:forMode: - if we want to implement NSMessagePort using windows messages. - if we don't support that as well as the o - * Source/win32/NSUserDefaultsWin32.m: update header path. + * Source/NSLog.m: Apply patch #5399 from Jeremy Bettis. + Tidy indentation. Fix variable declaration not at start of block + (broke compile for older gcc versions). Avoid repeated system + calls to get process ID. + * Headers/Additions/GNUstepBase/GSRunLoopCtxt.h: Move private header to + Source directory. + * Headers/Additions/GNUstepBase/GSRunLoopWatcher.h: ditto + * Headers/Foundation/NSRunLoop.h: Add event type for handling windows + messages. + * Source/GNUmakefile: Don't install private headers in public area. + * Source/win32/GSRunLoopCtxt.m: Add code to handle windows messages. + Check number of handles waited for. Avoid unnecessary heap memory + allocation/release. + * Source/win32/GSRunLoopWatcher.m: update header path. + * Source/win32/NSRunLoopWin32.m: update header path. + Deprecate addMsgTarget:withMethod:forMode: as our code for the original + addEvent:type:watcher:forMode: can be much more efficient if we don't + support that extension. We need to use addEvent:type:watcher:forMode: + if we want to implement NSMessagePort using windows messages. + if we don't support that as well as the o + * Source/win32/NSUserDefaultsWin32.m: update header path. 2005-10-29 Richard Frith-Macdonald - * Tools/AGSHtml.m: Revert last change ... it looked OK but it broke - internal checking of references. + * Tools/AGSHtml.m: Revert last change ... it looked OK but it broke + internal checking of references. 2005-10-28 Richard Frith-Macdonald - * Tools/gdomap.c: standardise on __MINGW32__ - * Source/win32/NSUserDefaultsWin32.m: patch #4567 fix a few typos - * Source/DocMakefile: get right path for autogsdoc on mingw - * Tools/DocMakefile: ditto (patch #4568) - * Tools/AGSHtml.m: work round isssues with windows help (patch #4569) - Mostly fixes by Jeremy Bettis + * Tools/gdomap.c: standardise on __MINGW32__ + * Source/win32/NSUserDefaultsWin32.m: patch #4567 fix a few typos + * Source/DocMakefile: get right path for autogsdoc on mingw + * Tools/DocMakefile: ditto (patch #4568) + * Tools/AGSHtml.m: work round isssues with windows help (patch #4569) + Mostly fixes by Jeremy Bettis 2005-10-27 Richard Frith-Macdonald - * Tools/AGSParser.m: Fix error setting version numbers for the - various standards. Was causing generation of html erroneously - saying that things were in neither openstep nor macos-x - * configure.ac: Add code to initialise default path/config file - information by loading GNUstep.conf config file from the location - specified by config.make in the makefiles directory. - Add --with-config-file= option to specify the name of the config - file to be hard-coded into the library. Overrides the value from - the make system if desired. - Add --with-default-config= option to specify the config file from - which default path values are loaded (at configuration time). This - overrides the default behavior of loading values from the file - specified by --with-config-file= or in $GNUSTEP_MAKEFILES/config.make - Add --disable-importing-config-file for consistency with makefiles - package ... not sure we need to keep this option. - Add --disable-environment-config-file to prevent use of the - GNUSTEP_CONFIG_FILE enviropnment variable. - * configure: regenerate - * Headers/Additions/GNUstepBase/config.h.in: regenerate to include - new path definitions produced by configure script. - * Source/GNUmakefile: Ignore variables specifying default paths, - these are now set at configure time and can't be changed at make - time. - * SSL/GNUmakefile: ditto. - * Source/NSPathUtilities.m: Remove windows-specific hack which - got a few values from the registry ... we want to make use of - the GNUstep.conf file simple/consistent across all platforms. - Get default values from those defined in config.h + * Tools/AGSParser.m: Fix error setting version numbers for the + various standards. Was causing generation of html erroneously + saying that things were in neither openstep nor macos-x + * configure.ac: Add code to initialise default path/config file + information by loading GNUstep.conf config file from the location + specified by config.make in the makefiles directory. + Add --with-config-file= option to specify the name of the config + file to be hard-coded into the library. Overrides the value from + the make system if desired. + Add --with-default-config= option to specify the config file from + which default path values are loaded (at configuration time). This + overrides the default behavior of loading values from the file + specified by --with-config-file= or in $GNUSTEP_MAKEFILES/config.make + Add --disable-importing-config-file for consistency with makefiles + package ... not sure we need to keep this option. + Add --disable-environment-config-file to prevent use of the + GNUSTEP_CONFIG_FILE enviropnment variable. + * configure: regenerate + * Headers/Additions/GNUstepBase/config.h.in: regenerate to include + new path definitions produced by configure script. + * Source/GNUmakefile: Ignore variables specifying default paths, + these are now set at configure time and can't be changed at make + time. + * SSL/GNUmakefile: ditto. + * Source/NSPathUtilities.m: Remove windows-specific hack which + got a few values from the registry ... we want to make use of + the GNUstep.conf file simple/consistent across all platforms. + Get default values from those defined in config.h 2005-10-26 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Drop 'make' style config file parsing - and setting on 'sh' style (so we can source the config file). - * Source/NSCalendarDate.m: Fix millisecond printing (bug #14863) + * Source/NSPathUtilities.m: Drop 'make' style config file parsing + and setting on 'sh' style (so we can source the config file). + * Source/NSCalendarDate.m: Fix millisecond printing (bug #14863) 2005-10-25 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Try to ensure that user root and - user library directories exist, so that tools/apps have somewhere - to store any resources they don't want to put in the defaults - database. + * Source/NSPathUtilities.m: Try to ensure that user root and + user library directories exist, so that tools/apps have somewhere + to store any resources they don't want to put in the defaults + database. 2005-10-23 Jeremy Bettis - * Source/NSException.m: Added a few debugging checks in the - exception handler code. - The handler struct that needs to be removed is passed to - _NSRemoveHandler. Therefore, instead of starting at - thread->_exception_handler and working your way down through - the frames, you can just use the passed in struct. This way, - if some bonehead called return in an NS_DURING block, - perhaps you can still remove the exception handler without - accessing memory that is on a freed section of the stack. + * Source/NSException.m: Added a few debugging checks in the + exception handler code. + The handler struct that needs to be removed is passed to + _NSRemoveHandler. Therefore, instead of starting at + thread->_exception_handler and working your way down through + the frames, you can just use the passed in struct. This way, + if some bonehead called return in an NS_DURING block, + perhaps you can still remove the exception handler without + accessing memory that is on a freed section of the stack. 2005-10-23 Richard Frith-Macdonald - * Source/NSString.m: remove test method for path handling setup, - add environment variable (at least for a while until we are even - more sure that there are no problems with do-the-right-thing mode). - Remove previously deprecated path methods. - * Source/NSFileManager.m: remove previously deprecated path method. - * Headers/Foundation/NSString.h: Add missing information about - windows peculiarities to comments. - * Source/NSUserDefaults.m: More tweaks to use windows registry. - also remove test user default for path handling setup. - * Source/win32/NSUserDefaultsWin32.m: Rewrite - * Source/NSPathUtilities.m: Tweaks for windows. - Updates to (optionally) use windows registry to store defaults - when GNUSTEP_USER_DEFAULTS_DIR is set to ':REGISTRY:' - Based on patch #4299 by Jeremy Bettis, but with rewrites to make use - of the code configurable in the GNUstep configuration file, to fix - some bugs, and to conform to coding standards, Probably still has - bugs to fix, but seems usable now. - + * Source/NSString.m: remove test method for path handling setup, + add environment variable (at least for a while until we are even + more sure that there are no problems with do-the-right-thing mode). + Remove previously deprecated path methods. + * Source/NSFileManager.m: remove previously deprecated path method. + * Headers/Foundation/NSString.h: Add missing information about + windows peculiarities to comments. + * Source/NSUserDefaults.m: More tweaks to use windows registry. + also remove test user default for path handling setup. + * Source/win32/NSUserDefaultsWin32.m: Rewrite + * Source/NSPathUtilities.m: Tweaks for windows. + Updates to (optionally) use windows registry to store defaults + when GNUSTEP_USER_DEFAULTS_DIR is set to ':REGISTRY:' + Based on patch #4299 by Jeremy Bettis, but with rewrites to make use + of the code configurable in the GNUstep configuration file, to fix + some bugs, and to conform to coding standards, Probably still has + bugs to fix, but seems usable now. 2005-10-20 Adam Fedor - * Source/NSBundle.m (+pathsForResourcesOfType:inDirectory:, - -pathsForResourcesOfType:inDirectory:forLocalization:): - Implement. + * Source/NSBundle.m (+pathsForResourcesOfType:inDirectory:, + -pathsForResourcesOfType:inDirectory:forLocalization:): + Implement. 2005-10-18 Richard Frith-Macdonald - * Source/NSUserDefaults.m: Begin applying registry patch. - * Source/win32/NSUserDefaultsWin32.m: Registry patch with - some work done towards conforming to gnustep coding standards. + * Source/NSUserDefaults.m: Begin applying registry patch. + * Source/win32/NSUserDefaultsWin32.m: Registry patch with + some work done towards conforming to gnustep coding standards. 2005-10-17 Richard Frith-Macdonald - * SSL/GSSSLHandle.m: Don't output log/warning on accept/connect - failure if it's just a timeout or disconnect. + * SSL/GSSSLHandle.m: Don't output log/warning on accept/connect + failure if it's just a timeout or disconnect. 2005-10-17 Fred Kiefer - * Source/NSNumberFormatter.m - (-getObjectValue:forString:errorDescription:, - stringForObjectValue:): Respect the settings for decimal and - thousands separators. Still a very basic implementation. + * Source/NSNumberFormatter.m + (-getObjectValue:forString:errorDescription:, + stringForObjectValue:): Respect the settings for decimal and + thousands separators. Still a very basic implementation. 2005-10-17 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Simplify by removing options for - redefining user home directories. Add code to use gnumake format - rather than shell format for config files. Fix error in default - setup of local root. + * Source/NSPathUtilities.m: Simplify by removing options for + redefining user home directories. Add code to use gnumake format + rather than shell format for config files. Fix error in default + setup of local root. 2005-10-17 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Changes to support relocation of the - entire system simply by copying the directory containing it around. + * Source/NSPathUtilities.m: Changes to support relocation of the + entire system simply by copying the directory containing it around. 2005-10-16 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Set default value for defaults directory - (lost in last set of changes). + * Source/NSPathUtilities.m: Set default value for defaults directory + (lost in last set of changes). 2005-10-15 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Fix retain/release error exposed by recent - changes. Rewrite config handling (work in progress ... keeping in - sync with make package changes). - * Documentation/base.gsdoc: update somewhat. - * configure.ac: use GNUSTEP_CONFIG_FILE rather than - GNUSTEP_CONFIGURATION_FILE ... for consistency with make. - * Headers/Additions/GNUstepBase/config.h.in: ditto - * configure: regenerate + * Source/NSPathUtilities.m: Fix retain/release error exposed by recent + changes. Rewrite config handling (work in progress ... keeping in + sync with make package changes). + * Documentation/base.gsdoc: update somewhat. + * configure.ac: use GNUSTEP_CONFIG_FILE rather than + GNUSTEP_CONFIGURATION_FILE ... for consistency with make. + * Headers/Additions/GNUstepBase/config.h.in: ditto + * configure: regenerate 2005-10-14 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Complete rewrite of config file parsing - to try to make it consistent with the escaping and quoting conventions - of shells, so the same file can be source'ed by /bin/sh + * Source/NSPathUtilities.m: Complete rewrite of config file parsing + to try to make it consistent with the escaping and quoting conventions + of shells, so the same file can be source'ed by /bin/sh 2005-10-13 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Remove some useless functions to clarify - code. Add some explanatory comments, make config file parsing a lot - more robust. + * Source/NSPathUtilities.m: Remove some useless functions to clarify + code. Add some explanatory comments, make config file parsing a lot + more robust. 2005-10-12 Nicola Pero - * configure.ac (config_file): Get the location of the - configuration file from gnustep-make rather than from a - --with-config-file option. Everything works exactly as before, - but the --with-config-file option was moved to gnustep-make. - * configure: Regenerated. + * configure.ac (config_file): Get the location of the + configuration file from gnustep-make rather than from a + --with-config-file option. Everything works exactly as before, + but the --with-config-file option was moved to gnustep-make. + * configure: Regenerated. 2005-10-12 Richard Frith-Macdonald - * Headers/Foundation/NSPathUtilities.h: Remove deprecated functions. - * Source/NSPathUtilities.m: Remove backward compatibility hacks for - old GNUsteprc support. - Remove deprecated functions. - Permit specification of config file - Simplify code a little. - Fix a retain/release bug. - Fix per-user .GNUsteprc parsing to work as documented (ie override - the system-window config, not just fill in undefined values). - Deprecate use of '~' in per-user .GNUsteprc ... it adds complexity - for little utility that I can see ... we can undeprecate it if I'm - wrong. - * Documentation/Base.gsdoc: Update to remove references to old config - scheme. Remove documentation for deprecated '~' in per-user file - Clarify how relative/absolute paths in config are treated. + * Headers/Foundation/NSPathUtilities.h: Remove deprecated functions. + * Source/NSPathUtilities.m: Remove backward compatibility hacks for + old GNUsteprc support. + Remove deprecated functions. + Permit specification of config file + Simplify code a little. + Fix a retain/release bug. + Fix per-user .GNUsteprc parsing to work as documented (ie override + the system-window config, not just fill in undefined values). + Deprecate use of '~' in per-user .GNUsteprc ... it adds complexity + for little utility that I can see ... we can undeprecate it if I'm + wrong. + * Documentation/Base.gsdoc: Update to remove references to old config + scheme. Remove documentation for deprecated '~' in per-user file + Clarify how relative/absolute paths in config are treated. 2005-10-10 Richard Frith-Macdonald - * Source/NSURLHandle.m: alter file handle to nitice if a file has - changed. + * Source/NSURLHandle.m: alter file handle to nitice if a file has + changed. 2005-10-09 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSFileHandle.h: - * Headers/Additions/GNUstepBase/GSRunLoopCtxt.h: - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSRunLoop.h: - * Source/GSFileHandle.m: - * Source/NSData.m: - * Source/NSFileManager.m: - * Source/NSLog.m: - * Source/NSRunLoop.m: - * Source/NSSocketPort.m: - * Source/NSTimeZone.m: - Be consistent in usage of __WIN32__ and __MINGW__ + * Headers/Additions/GNUstepBase/GSFileHandle.h: + * Headers/Additions/GNUstepBase/GSRunLoopCtxt.h: + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSRunLoop.h: + * Source/GSFileHandle.m: + * Source/NSData.m: + * Source/NSFileManager.m: + * Source/NSLog.m: + * Source/NSRunLoop.m: + * Source/NSSocketPort.m: + * Source/NSTimeZone.m: + Be consistent in usage of __WIN32__ and __MINGW__ 2005-10-09 Richard Frith-Macdonald - * Source/NSLog.m: We had complaints about the new code to log output - to the windows event log on microsoft ... so this has been changed to - be activated by the GSLogSyslog user default (as the windows event - log is roughly analogous to syslog on unix) rather than being done - by default. - * Source/NSTimeZone.m: - * Source/NSPathUtilities.m: - Fix a few cases where 16bit chartacter strings were being used as 8bit - under windows. + * Source/NSLog.m: We had complaints about the new code to log output + to the windows event log on microsoft ... so this has been changed to + be activated by the GSLogSyslog user default (as the windows event + log is roughly analogous to syslog on unix) rather than being done + by default. + * Source/NSTimeZone.m: + * Source/NSPathUtilities.m: + Fix a few cases where 16bit chartacter strings were being used as 8bit + under windows. 2005-10-07 Chris Vetter - * Source/NSPropertyList.m: Remove bogus newline generated for BOOL. + * Source/NSPropertyList.m: Remove bogus newline generated for BOOL. 2005-10-06 Adam Fedor - * Source/NSPage.m: Add include for Cygwin (patch from - Tom MacSween). + * Source/NSPage.m: Add include for Cygwin (patch from + Tom MacSween). 2005-10-04 Richard Frith-Macdonald - * Source/GSTcpPort.m: - * Source/NSCallBacks.m: - * Source/NSMessagePort.m: - * Source/NSMessagePortNameServer.m: - * Source/NSSocketPort.m: - * Source/win32/GSRunLoopCtxt.m: - Attempt to deal with systems where sizeof(int) < sizeof(void*) + * Source/GSTcpPort.m: + * Source/NSCallBacks.m: + * Source/NSMessagePort.m: + * Source/NSMessagePortNameServer.m: + * Source/NSSocketPort.m: + * Source/win32/GSRunLoopCtxt.m: + Attempt to deal with systems where sizeof(int) < sizeof(void*) 2005-10-01 David Ayers - * Source/NSString: (dataUsingEncoding:allowLossyConversion:): - Use buffer returned by NSZoneRealloc to create the data object. + * Source/NSString: (dataUsingEncoding:allowLossyConversion:): + Use buffer returned by NSZoneRealloc to create the data object. 2005-09-29 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/unicode/gsm0338.h: Map unicode - no-break-space character to gsm space rather than to gsm escape - character. + * Headers/Additions/GNUstepBase/unicode/gsm0338.h: Map unicode + no-break-space character to gsm space rather than to gsm escape + character. 2005-09-28 Richard Frith-Macdonald - * Source/Additions/GSMime.m: (-convertToBinary, -convertToBase64) - new convenience methods for making documents compact or 7bit safe. + * Source/Additions/GSMime.m: (-convertToBinary, -convertToBase64) + new convenience methods for making documents compact or 7bit safe. 2005-09-25 David Ayers - * Testing/benchmark.m: Add some NSMapTable tests. + * Testing/benchmark.m: Add some NSMapTable tests. 2005-09-23 Richard Frith-Macdonald - * Source/Additions/GSMime.m: (-rawMimeData) tolerate nil content of - document ... should produce output with empty body. + * Source/Additions/GSMime.m: (-rawMimeData) tolerate nil content of + document ... should produce output with empty body. 2005-09-18 Adam Fedor - * Version 1.11.1 + * Version 1.11.1 2005-09-17 Saso Kiselkov * Headers/Foundation/NSInvocation.h: - * Source/NSInvocation.m: + * Source/NSInvocation.m: (-targetRetained, -retainArgumentsIncludingTarget:): Added new methods which allow target to be not retained when arguments are and to check whether it is retained or not (-retainsArguments code @@ -24797,803 +24805,803 @@ 2005-09-01 Adam Fedor - * Source/NSSortDescriptor.m ([NSArray - -sortedArrayUsingDescriptors:sortDescriptors]): Use - makeImmutableCopyOnFail:. + * Source/NSSortDescriptor.m ([NSArray + -sortedArrayUsingDescriptors:sortDescriptors]): Use + makeImmutableCopyOnFail:. 2005-08-31 Adam Fedor - * Source/GNUmakefile: Install NSSortDescriptor.h + * Source/GNUmakefile: Install NSSortDescriptor.h 2005-08-31 Richard Frith-Macdonald - * Source/NSNumber.m: Improve poor hash function. - * Source/NSConcreteNumber.m: Improve poor hash function. - * Testing/benchmark.m: Add some NSNumber tests. + * Source/NSNumber.m: Improve poor hash function. + * Source/NSConcreteNumber.m: Improve poor hash function. + * Testing/benchmark.m: Add some NSNumber tests. 2005-08-30 Saso Kiselkov - * Headers/Foundation/NSSortDescriptor.h, Source/NSSortDescriptor.m: - New files - * Headers/Foundation/Foundation.h, Source/GNUmakefile: Add them to - list. + * Headers/Foundation/NSSortDescriptor.h, Source/NSSortDescriptor.m: + New files + * Headers/Foundation/Foundation.h, Source/GNUmakefile: Add them to + list. 2005-08-25 Richard Frith-Macdonald - * Source/NSCalendarDate.m: Fix bug subtracting minute interval. - * SSL/GSSSLHandle.m: Put handle in non-blocking mode before call - to SSL_accept() or SSL_connect() so that we can be interrupted - if the remote end doesn't respond (older code can hang waiting - for the remote end). + * Source/NSCalendarDate.m: Fix bug subtracting minute interval. + * SSL/GSSSLHandle.m: Put handle in non-blocking mode before call + to SSL_accept() or SSL_connect() so that we can be interrupted + if the remote end doesn't respond (older code can hang waiting + for the remote end). 2005-08-22 Adam Fedor - * Source/NSGeometry.m (NSStringFromPoint, NSStringFromRect, - NSStringFromSize): Add spaces around '='. (Based on suggestion - from Matthias Hengartner). + * Source/NSGeometry.m (NSStringFromPoint, NSStringFromRect, + NSStringFromSize): Add spaces around '='. (Based on suggestion + from Matthias Hengartner). 2005-08-12 Adam Fedor - * configure.ac: Check if we can read the psinfo struct from - /proc (Solaris). - * config/procfs.m4: Add psinfo check - * config/config.psinfo.c: New file. - * Source/NSProcessInfo.m (+load): Read from psinfo if we can. - (Based on patch #4234 from Jeremy Bettis, with some modifications). + * configure.ac: Check if we can read the psinfo struct from + /proc (Solaris). + * config/procfs.m4: Add psinfo check + * config/config.psinfo.c: New file. + * Source/NSProcessInfo.m (+load): Read from psinfo if we can. + (Based on patch #4234 from Jeremy Bettis, with some modifications). 2005-07-31 Richard Frith-Macdonald - * Source/GNUmakefile: Pass GNUSTEP_FLATTENED as preprocessor - definitions when building. - * Source/NSPathUtilities.m: Use GNUSTEP_FLATTENED and other - definitions to fix bug in returning paths for non-flattened - systems (code was previously returneing flattened paths - irrespective of whether the system was configured flattened - or not). + * Source/GNUmakefile: Pass GNUSTEP_FLATTENED as preprocessor + definitions when building. + * Source/NSPathUtilities.m: Use GNUSTEP_FLATTENED and other + definitions to fix bug in returning paths for non-flattened + systems (code was previously returneing flattened paths + irrespective of whether the system was configured flattened + or not). 2005-07-30 Jeremy Bettis - * Source/NSData.m: Support write to file for windows9x users. + * Source/NSData.m: Support write to file for windows9x users. 2005-07-27 Adam Fedor - * Source/Makefile.postamble (Info-gnustep.plist): Depend on - ../Version. + * Source/Makefile.postamble (Info-gnustep.plist): Depend on + ../Version. 2005-07-24 Jeremy Bettis - * Source/NSCalendarDate.m: Fix bug adding interval to date. - * Source/NSDebug.m: Implemented _NSNewStringFromCString() for gdb. - * Source/GSFormat.m: Fix %S format. - * Source/NSObject.m: ([conformsToProtocol:]) return NO if passed nul. - * Source/NSBundle.m: be more tolerant. - * Source/objc-load.m: Implemented objc_get_symbol_path() for windows. - * Source/NSLog.m: On mingw write to debugger and event viewer. + * Source/NSCalendarDate.m: Fix bug adding interval to date. + * Source/NSDebug.m: Implemented _NSNewStringFromCString() for gdb. + * Source/GSFormat.m: Fix %S format. + * Source/NSObject.m: ([conformsToProtocol:]) return NO if passed nul. + * Source/NSBundle.m: be more tolerant. + * Source/objc-load.m: Implemented objc_get_symbol_path() for windows. + * Source/NSLog.m: On mingw write to debugger and event viewer. 2005-07-24 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Fix to avoid duplicate paths. - Fix bug in order of application paths. - * Tools/gspath.m: new utility to display paths/directories - * Tools/gspath.1: man page for gspath - * Tools/GNUmakefile: build and install gspath + * Source/NSPathUtilities.m: Fix to avoid duplicate paths. + Fix bug in order of application paths. + * Tools/gspath.m: new utility to display paths/directories + * Tools/gspath.1: man page for gspath + * Tools/GNUmakefile: build and install gspath 2005-07-23 Richard Frith-Macdonald - * Source/Additions/GSXML.m: fix typo in contributed code for when - the additions library is built standalone on MacOS-X - * Source/GNUmakefile: Don't build base subprojects when only building - additions library! - * Headers/Foundation/NSRunLoop.h: Tidy up enumerated type, simplifying - mingw ifdefs - * Tools/AGSHtml.h: Added defines for building without the gnustep - base library. - * Tools/gdnc.m: Fix minor documentation error. - * Tools/gdnc.1: Fix minor documentation error and add documentation - of flags to set public/network servers running. + * Source/Additions/GSXML.m: fix typo in contributed code for when + the additions library is built standalone on MacOS-X + * Source/GNUmakefile: Don't build base subprojects when only building + additions library! + * Headers/Foundation/NSRunLoop.h: Tidy up enumerated type, simplifying + mingw ifdefs + * Tools/AGSHtml.h: Added defines for building without the gnustep + base library. + * Tools/gdnc.m: Fix minor documentation error. + * Tools/gdnc.1: Fix minor documentation error and add documentation + of flags to set public/network servers running. 2005-07-22 Richard Frith-Macdonald - * Source/NSDate.m: ([isEqual:]),([isEqualToDate:]) change behavior to - match current MacOS-X rather than OpenStep spec, as the old version - was confusing and prevented dates being used as dictionary keys or - stored in sets properly. + * Source/NSDate.m: ([isEqual:]),([isEqualToDate:]) change behavior to + match current MacOS-X rather than OpenStep spec, as the old version + was confusing and prevented dates being used as dictionary keys or + stored in sets properly. 2005-07-21 Adam Fedor - * Version 1.11.0 + * Version 1.11.0 2005-07-18 Richard Frith-Macdonald - * Source/NSUnarchiver.m: - * Source/NSPortCoder.m: Relax checking of decoded types information - to allow int/long/longlong types to be decoded using 'i/l/q' - interchangably and 'I/L'Q' interchangably because the compiler may - use different encodings on different machines. + * Source/NSUnarchiver.m: + * Source/NSPortCoder.m: Relax checking of decoded types information + to allow int/long/longlong types to be decoded using 'i/l/q' + interchangably and 'I/L'Q' interchangably because the compiler may + use different encodings on different machines. 2005-07-15 Adam Fedor - * ChangeLog, ChangeLog.1, ChangeLog.2, GNUmakefile, Makefile, - Makefile.postamble, config.mak.in, configure.ac, - Documentation/Base.gsdoc, Documentation/BaseAdditions.gsdoc, - Documentation/Functions.gsdoc, Documentation/GNUmakefile, - Documentation/Makefile.postamble, Documentation/ReleaseNotes.gsdoc, - Documentation/TypesAndConstants.gsdoc, Documentation/announce.texi, - Documentation/gnustep-base.texi, Documentation/install.texi, - Documentation/news.texi, Documentation/readme.texi, - Documentation/General/Debugging.gsdoc, - Documentation/General/GNUmakefile, - Documentation/General/OpenStepCompliance.gsdoc, - Documentation/HtmlNav/docs-web.html, Documentation/HtmlNav/index.html, - Documentation/manual/GNUmakefile, Documentation/manual/index.html, - Examples/GNUmakefile, Examples/Makefile.postamble, - Examples/Makefile.preamble, Examples/custom-zone.m, - Examples/dictionary.m, - Headers/Additions/GNUstepBase/unicode/*, - Source/dld-load.h, Source/hpux-load.h, Source/null-load.h, - Source/simple-load.h, Source/win32-load.h, - Testing/*, - Tools/BaseTools.gsdoc, Tools/DocMakefile, Tools/GNUmakefile, - Tools/Makefile.postamble, Tools/Makefile.preamble, Tools/autogsdoc.1, - Tools/cvtenc.1, Tools/defaults.1, Tools/gdnc.1, Tools/gdnc.h, - Tools/gdomap.c, Tools/gdomap.gsdoc, Tools/gsdoc.gsdoc, Tools/pl.m, - Tools/pldes.1, Tools/sfparse.1, Tools/xmlparse.1, - Tools/make_strings/GNUmakefile, - Tools/make_strings/GNUmakefile.preamble, - Tools/make_strings/README, Tools/make_strings/Using.txt, - config/*: Further copyright/license updates. + * ChangeLog, ChangeLog.1, ChangeLog.2, GNUmakefile, Makefile, + Makefile.postamble, config.mak.in, configure.ac, + Documentation/Base.gsdoc, Documentation/BaseAdditions.gsdoc, + Documentation/Functions.gsdoc, Documentation/GNUmakefile, + Documentation/Makefile.postamble, Documentation/ReleaseNotes.gsdoc, + Documentation/TypesAndConstants.gsdoc, Documentation/announce.texi, + Documentation/gnustep-base.texi, Documentation/install.texi, + Documentation/news.texi, Documentation/readme.texi, + Documentation/General/Debugging.gsdoc, + Documentation/General/GNUmakefile, + Documentation/General/OpenStepCompliance.gsdoc, + Documentation/HtmlNav/docs-web.html, Documentation/HtmlNav/index.html, + Documentation/manual/GNUmakefile, Documentation/manual/index.html, + Examples/GNUmakefile, Examples/Makefile.postamble, + Examples/Makefile.preamble, Examples/custom-zone.m, + Examples/dictionary.m, + Headers/Additions/GNUstepBase/unicode/*, + Source/dld-load.h, Source/hpux-load.h, Source/null-load.h, + Source/simple-load.h, Source/win32-load.h, + Testing/*, + Tools/BaseTools.gsdoc, Tools/DocMakefile, Tools/GNUmakefile, + Tools/Makefile.postamble, Tools/Makefile.preamble, Tools/autogsdoc.1, + Tools/cvtenc.1, Tools/defaults.1, Tools/gdnc.1, Tools/gdnc.h, + Tools/gdomap.c, Tools/gdomap.gsdoc, Tools/gsdoc.gsdoc, Tools/pl.m, + Tools/pldes.1, Tools/sfparse.1, Tools/xmlparse.1, + Tools/make_strings/GNUmakefile, + Tools/make_strings/GNUmakefile.preamble, + Tools/make_strings/README, Tools/make_strings/Using.txt, + config/*: Further copyright/license updates. 2005-07-15 Richard Frith-Macdonald - * Source/NSProcessInfo.m: ([+initialize]) always check to see if - things have already been initialised before doing the initialisation - here. Based on suggestion by Lloyd Dupont. + * Source/NSProcessInfo.m: ([+initialize]) always check to see if + things have already been initialised before doing the initialisation + here. Based on suggestion by Lloyd Dupont. 2005-07-14 Richard Frith-Macdonald - * SSL/GSSSLHandle.m: Retains self when running runloop to allow - ssl connect and accept operations. If the connect/accept takes - a long time, the caller might give up and release the handle, - causing resources to be freed and the ssl operation to crash. - Retaining self (and noticing when a disconnect has taken place) - prevents that. - * Source/Additions/GSXML.m: Fix bug escaping emtities in fault - message. + * SSL/GSSSLHandle.m: Retains self when running runloop to allow + ssl connect and accept operations. If the connect/accept takes + a long time, the caller might give up and release the handle, + causing resources to be freed and the ssl operation to crash. + Retaining self (and noticing when a disconnect has taken place) + prevents that. + * Source/Additions/GSXML.m: Fix bug escaping emtities in fault + message. 2005-07-13 Nicola Pero - * Source/NSBundle.m: When building paths inside framework - directories on Mingw (win32), don't add /Versions/%@; the new - pseudo-framework support for Mingw does not support framework - versioning. + * Source/NSBundle.m: When building paths inside framework + directories on Mingw (win32), don't add /Versions/%@; the new + pseudo-framework support for Mingw does not support framework + versioning. 2005-07-12 Nicola Pero - * Source/NSBundle.m ([+_addFrameworkFromClass:]), - ([-executablePath]): Mangle/demangle framework names so that we - can support '-' (and '+') in framework names. Requires latest - gnustep-make if you have a framework with '_', '-' or '+' in the - name. + * Source/NSBundle.m ([+_addFrameworkFromClass:]), + ([-executablePath]): Mangle/demangle framework names so that we + can support '-' (and '+') in framework names. Requires latest + gnustep-make if you have a framework with '_', '-' or '+' in the + name. 2005-07-08 Adam Fedor - * Testing/GNUmakefile, Testing/nsfilehandle.m: Minor fixes. + * Testing/GNUmakefile, Testing/nsfilehandle.m: Minor fixes. 2005-07-08 Richard Frith-Macdonald - * Source/objc-load.m: Under mingw print filenames for debug using - %S rather than %s + * Source/objc-load.m: Under mingw print filenames for debug using + %S rather than %s 2005-07-08 Richard Frith-Macdonald - Recommit all gcc-4 changes ... I was unable to find a problem - in them and have been running lots of stuff ok with them for several - days now ... perhaps I made a mistake in thinking there was an issue. + Recommit all gcc-4 changes ... I was unable to find a problem + in them and have been running lots of stuff ok with them for several + days now ... perhaps I made a mistake in thinking there was an issue. 2005-07-08 Richard Frith-Macdonald - * Source/NSTask.m: Fix bug #13685 ... raise exception on an attempt - to re-launch a task. + * Source/NSTask.m: Fix bug #13685 ... raise exception on an attempt + to re-launch a task. 2005-07-04 Adam Fedor - * Documentation/ReleaseNotes.gsdoc: Update. + * Documentation/ReleaseNotes.gsdoc: Update. 2005-07-01 Adam Fedor - * Documentation/Base.gsdoc, Documentation/BaseAdditions.gsdoc, - Documentation/Functions.gsdoc, Documentation/ReleaseNotes.gsdoc, - Documentation/TypesAndConstants.gsdoc, - Documentation/General/Debugging.gsdoc, - Documentation/manual/GNUmakefile, - Source/NSMessagePortNameServer.m, - Testing/NSData-test.m, Testing/awake.m, Testing/basic.m, - Testing/coder.m, Testing/containers.m, Testing/fref.m, - Testing/gstcpport-client.m, Testing/gstcpport-server.m, - Testing/heap.m, Testing/nsarchiver.m, Testing/nsarray.m, - Testing/nscharacterset.m, Testing/nsconnection.m, - Testing/nsconnection_client.m, Testing/nsconnection_server.m, - Testing/nsdata.m, Testing/nsdate.m, Testing/nsdictionary.m, - Testing/nsfilehandle.m, Testing/nsfilemanager.m, - Testing/nshashtable.m, Testing/nshost.m, Testing/nsindexset.m, - Testing/nsinvocation.m, Testing/nsmaptable.m, - Testing/nsnotification.m, Testing/nspathutilities.m, - Testing/nsprocessinfo.m, Testing/nsscanner.m, Testing/nsset.m, - Testing/nstask.m, Testing/nstimer.m, Testing/nstimezone.m, - Testing/nsundomanager.m, Testing/nsxmlparser.m, Testing/nxst.m, - Testing/oldserver.h, Testing/prepend.m, Testing/randoms.m, - Testing/release.m, Testing/server.h, Testing/string.m, - Testing/tcpport-client.m, Testing/tcpport-server.m, - Testing/thread-except.m, Testing/thread.m, Testing/values.m, - Testing/wgetopt.h, Tools/BaseTools.gsdoc, Tools/autogsdoc.1, - Tools/cvtenc.1, Tools/defaults.1, Tools/gdnc.1, - Tools/gdomap.8, Tools/gsdoc.7, Tools/locale_alias.m, - Tools/pldes.1, Tools/plist-0_9.dtd, Tools/sfparse.1, - Tools/xmlparse.1: Add/fix copyright/licenses. + * Documentation/Base.gsdoc, Documentation/BaseAdditions.gsdoc, + Documentation/Functions.gsdoc, Documentation/ReleaseNotes.gsdoc, + Documentation/TypesAndConstants.gsdoc, + Documentation/General/Debugging.gsdoc, + Documentation/manual/GNUmakefile, + Source/NSMessagePortNameServer.m, + Testing/NSData-test.m, Testing/awake.m, Testing/basic.m, + Testing/coder.m, Testing/containers.m, Testing/fref.m, + Testing/gstcpport-client.m, Testing/gstcpport-server.m, + Testing/heap.m, Testing/nsarchiver.m, Testing/nsarray.m, + Testing/nscharacterset.m, Testing/nsconnection.m, + Testing/nsconnection_client.m, Testing/nsconnection_server.m, + Testing/nsdata.m, Testing/nsdate.m, Testing/nsdictionary.m, + Testing/nsfilehandle.m, Testing/nsfilemanager.m, + Testing/nshashtable.m, Testing/nshost.m, Testing/nsindexset.m, + Testing/nsinvocation.m, Testing/nsmaptable.m, + Testing/nsnotification.m, Testing/nspathutilities.m, + Testing/nsprocessinfo.m, Testing/nsscanner.m, Testing/nsset.m, + Testing/nstask.m, Testing/nstimer.m, Testing/nstimezone.m, + Testing/nsundomanager.m, Testing/nsxmlparser.m, Testing/nxst.m, + Testing/oldserver.h, Testing/prepend.m, Testing/randoms.m, + Testing/release.m, Testing/server.h, Testing/string.m, + Testing/tcpport-client.m, Testing/tcpport-server.m, + Testing/thread-except.m, Testing/thread.m, Testing/values.m, + Testing/wgetopt.h, Tools/BaseTools.gsdoc, Tools/autogsdoc.1, + Tools/cvtenc.1, Tools/defaults.1, Tools/gdnc.1, + Tools/gdomap.8, Tools/gsdoc.7, Tools/locale_alias.m, + Tools/pldes.1, Tools/plist-0_9.dtd, Tools/sfparse.1, + Tools/xmlparse.1: Add/fix copyright/licenses. 2005-07-01 Richard Frith-Macdonald - * Bad day ... accidentally updated makefiles to build KVO stuff - in last change ... so I might as well commit the partial - implementation of NSKeyValueObserving.[hm] + * Bad day ... accidentally updated makefiles to build KVO stuff + in last change ... so I might as well commit the partial + implementation of NSKeyValueObserving.[hm] 2005-07-01 Richard Frith-Macdonald - * The last change passed regression tests etc, but one program - I have has stopped working, so there is a bug somewhere. - Reverted change until I can isolate the problem and fix it. + * The last change passed regression tests etc, but one program + I have has stopped working, so there is a bug somewhere. + Reverted change until I can isolate the problem and fix it. 2005-07-01 Richard Frith-Macdonald - * Headers/Foundation/NSUserDefaults.h: Fix bad return type - * Source/GSArray.m: - * Source/GSCountedSet.m: - * Source/GSFileHandle.m: - * Source/GSSet.m: - * Source/GSString.m: - * Source/GSeq.h: - * Source/NSArchiver.m: - * Source/NSArray.m: - * Source/NSAttributedString.m: - * Source/NSCalendarDate.m: - * Source/NSCharacterSet.m: - * Source/NSConnection.m: - * Source/NSCountedSet.m: - * Source/NSData.m: - * Source/NSDictionary.m: - * Source/NSDistributedNotificationCenter.m: - * Source/NSFileManager.m: - * Source/NSMessagePort.m: - * Source/NSMessagePortNameServer.m: - * Source/NSMethodSignature.m: - * Source/NSNotification.m: - * Source/NSObject.m: - * Source/NSPipe.m: - * Source/NSPortCoder.m: - * Source/NSPropertyList.m: - * Source/NSRange.m: - * Source/NSScanner.m: - * Source/NSSerializer.m: - * Source/NSSet.m: - * Source/NSSocketPort.m: - * Source/NSSocketPortNameServer.m: - * Source/NSString.m: - * Source/NSThread.m: - * Source/NSTimeZone.m: - * Source/NSTimer.m: - * Source/NSURLHandle.m: - * Source/NSUnarchiver.m: - * Source/NSUserDefaults.m: - * Source/NSValue.m: - * Source/mframe.m: - * Source/Additions/GSCategories.m: - * Source/Additions/GSMime.m: - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/GSXML.m: - * Source/Additions/Unicode.m: - * Tools/AGSHtml.m: - * Tools/AGSIndex.m: - * Tools/AGSOutput.m: - * Tools/gdomap.c: - * Tools/gdomap.h: - * Tools/make_strings/make_strings.m: - Tweaks to avoid compiler warnings with gcc-4. Mostly signed pointer - casts and bogus interface declarations to allow +class to be called - on a class for which we don't have the real interface visible. + * Headers/Foundation/NSUserDefaults.h: Fix bad return type + * Source/GSArray.m: + * Source/GSCountedSet.m: + * Source/GSFileHandle.m: + * Source/GSSet.m: + * Source/GSString.m: + * Source/GSeq.h: + * Source/NSArchiver.m: + * Source/NSArray.m: + * Source/NSAttributedString.m: + * Source/NSCalendarDate.m: + * Source/NSCharacterSet.m: + * Source/NSConnection.m: + * Source/NSCountedSet.m: + * Source/NSData.m: + * Source/NSDictionary.m: + * Source/NSDistributedNotificationCenter.m: + * Source/NSFileManager.m: + * Source/NSMessagePort.m: + * Source/NSMessagePortNameServer.m: + * Source/NSMethodSignature.m: + * Source/NSNotification.m: + * Source/NSObject.m: + * Source/NSPipe.m: + * Source/NSPortCoder.m: + * Source/NSPropertyList.m: + * Source/NSRange.m: + * Source/NSScanner.m: + * Source/NSSerializer.m: + * Source/NSSet.m: + * Source/NSSocketPort.m: + * Source/NSSocketPortNameServer.m: + * Source/NSString.m: + * Source/NSThread.m: + * Source/NSTimeZone.m: + * Source/NSTimer.m: + * Source/NSURLHandle.m: + * Source/NSUnarchiver.m: + * Source/NSUserDefaults.m: + * Source/NSValue.m: + * Source/mframe.m: + * Source/Additions/GSCategories.m: + * Source/Additions/GSMime.m: + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/GSXML.m: + * Source/Additions/Unicode.m: + * Tools/AGSHtml.m: + * Tools/AGSIndex.m: + * Tools/AGSOutput.m: + * Tools/gdomap.c: + * Tools/gdomap.h: + * Tools/make_strings/make_strings.m: + Tweaks to avoid compiler warnings with gcc-4. Mostly signed pointer + casts and bogus interface declarations to allow +class to be called + on a class for which we don't have the real interface visible. 2005-07-01 Richard Frith-Macdonald - * Source/NSException.m: ([-raise]) Fix behavior to be the same as in - MacOS-X (ie call the default uncaught exception handler after - whatever handler is set, in case the set handler does not terminate). - Ensures that the -raise method cannot return. - * Testing/basic.m: Add test for uncaught exception handler. + * Source/NSException.m: ([-raise]) Fix behavior to be the same as in + MacOS-X (ie call the default uncaught exception handler after + whatever handler is set, in case the set handler does not terminate). + Ensures that the -raise method cannot return. + * Testing/basic.m: Add test for uncaught exception handler. 2005-06-30 Richard Frith-Macdonald - * Source/NSSerializer.m: deserializeFromInfo() check that cross - reference indices are valid and raise an exception if not ... should - fix bug reported by Roland Schwingel, where trying to deserialize a - corrupt file could cause a crash. + * Source/NSSerializer.m: deserializeFromInfo() check that cross + reference indices are valid and raise an exception if not ... should + fix bug reported by Roland Schwingel, where trying to deserialize a + corrupt file could cause a crash. 2005-06-28 Adam Fedor - * Source/NSInvocation.m (-getReturnValue:, -setReturnValue:): Only - muck with size of buffer if we're using (deprecated) mframe. + * Source/NSInvocation.m (-getReturnValue:, -setReturnValue:): Only + muck with size of buffer if we're using (deprecated) mframe. 2005-06-27 Richard Frith-Macdonald - * Source/NSKeyedArchiver.m: Fix typo ... superClass should be - superclass + * Source/NSKeyedArchiver.m: Fix typo ... superClass should be + superclass 2005-06-25 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: - Preserve case of http headers when writing remote request, so that - they can be tailored for remote servers which are buggy in having - case sensitivity. - When creating default http headers, capitalize the words in the - header name, as this is the most common way headers are presented - and documented, and thus the least likely to tickle case sensitivity - bugs at the remote end of a connection. + * Source/GSHTTPURLHandle.m: + Preserve case of http headers when writing remote request, so that + they can be tailored for remote servers which are buggy in having + case sensitivity. + When creating default http headers, capitalize the words in the + header name, as this is the most common way headers are presented + and documented, and thus the least likely to tickle case sensitivity + bugs at the remote end of a connection. 2005-06-23 Adam Fedor - * Source/mframe.m (mframe_decode_return): Change return struct - to fixed size to avoid gcc bug. + * Source/mframe.m (mframe_decode_return): Change return struct + to fixed size to avoid gcc bug. 2005-06-23 Richard Frith-Macdonald - * Headers/Foundation/NSObject.h: - * Documentation/coding-standards.texi: - Minor documentation fixes. + * Headers/Foundation/NSObject.h: + * Documentation/coding-standards.texi: + Minor documentation fixes. 2005-06-22 Richard Frith-Macdonald - * Source/NSKeyValueCoding.m: - * Headers/Foundation/NSKeyValueCoding.h: - Change NSUnknownKeyException to NSUndefinedKeyException for - MacOSX compatibility. - Fixes bug #13842 + * Source/NSKeyValueCoding.m: + * Headers/Foundation/NSKeyValueCoding.h: + Change NSUnknownKeyException to NSUndefinedKeyException for + MacOSX compatibility. + Fixes bug #13842 2005-06-21 Richard Frith-Macdonald - * Source/NSBundle.m: ([-initWithPath:]) expand paths with tildes. + * Source/NSBundle.m: ([-initWithPath:]) expand paths with tildes. 2005-06-17 Richard Frith-Macdonald - * Source/NSConnection.m: Removed bogus - NSConnection(ConnectionDelegate) category .. these methods must not be - implemented in NSObject. I hope that removing the concrete - implementation of the category from the Object class will not cause - problems (I believe there used to be problems with older versions of - the compiler if we tried to use @selector(NN) where NN was not - implemented in the same code unit, but I can't remember what the - problems were and when they occurred). - * Headers/Foundation/NSConnection.h: Added comments/documentation from - NSConnection.h + * Source/NSConnection.m: Removed bogus + NSConnection(ConnectionDelegate) category .. these methods must not be + implemented in NSObject. I hope that removing the concrete + implementation of the category from the Object class will not cause + problems (I believe there used to be problems with older versions of + the compiler if we tried to use @selector(NN) where NN was not + implemented in the same code unit, but I can't remember what the + problems were and when they occurred). + * Headers/Foundation/NSConnection.h: Added comments/documentation from + NSConnection.h 2005-06-17 Adam Fedor - * Remove objc/Protocol.h include from NSObject to avoid warnings - with conflicting method signatures. - * Headers/Foundation/NSConnection.h: Change Object categories - to NSObject. - * Source/NSConnection.m: Idem. - * Headers/Foundation/NSObject.h: Don't include objc/Protocol.h - add a few missing things. - * Source/NSDate.m ([NSDate -isEqual:]): Use isKindOfClass. - * Source/NSDistantObject.m, Source/NSProtocolChecker.m: - Include objc/Protocol.h - * Source/NSSerializer.m: Add method sig for performv:: + * Remove objc/Protocol.h include from NSObject to avoid warnings + with conflicting method signatures. + * Headers/Foundation/NSConnection.h: Change Object categories + to NSObject. + * Source/NSConnection.m: Idem. + * Headers/Foundation/NSObject.h: Don't include objc/Protocol.h + add a few missing things. + * Source/NSDate.m ([NSDate -isEqual:]): Use isKindOfClass. + * Source/NSDistantObject.m, Source/NSProtocolChecker.m: + Include objc/Protocol.h + * Source/NSSerializer.m: Add method sig for performv:: 2005-06-15 Richard Frith-Macdonald - * Documentation/manual/WorkingWithObjects.texi: Correct errors in - the summary of memory management conventions. - * Documentation/manual/WritingNewClasses.texi: Correct examples of - memory management in constructor methods. + * Documentation/manual/WorkingWithObjects.texi: Correct errors in + the summary of memory management conventions. + * Documentation/manual/WritingNewClasses.texi: Correct examples of + memory management in constructor methods. 2005-06-15 Richard Frith-Macdonald - * Source/GSFileHandle.m: - * Source/NSSocketPort.m: - * Source/NSMessagePort.m: - Enable KEEPALIVE on stream sockets, so we will notice if the remote - end drops the connection. + * Source/GSFileHandle.m: + * Source/NSSocketPort.m: + * Source/NSMessagePort.m: + Enable KEEPALIVE on stream sockets, so we will notice if the remote + end drops the connection. 2005-06-08 Richard Frith-Macdonald - * Source/NSCalendardate.m: Fix crash when a nil string is passed to - initWithString... methods. + * Source/NSCalendardate.m: Fix crash when a nil string is passed to + initWithString... methods. 2005-06-06 Adam Fedor - * Source/Makefile.preamble: Add objc lib on all platforms - Fixes bug #9920. + * Source/Makefile.preamble: Add objc lib on all platforms + Fixes bug #9920. 2005-06-05 Richard Frith-Macdonald - * Headers/Foundation/NSObject.h: Add a versioning constant and - document a bit better. - * Tools/AGSParser.m: Support new version constant and fix version - comparison for minor and subminor numbers. - * Tools/AGSHtml.m: ditto - * Headers/Foundation/NSArchiver.h: convert o new versioning as test. - * Documentation/Base.gsdoc: Document version constants. + * Headers/Foundation/NSObject.h: Add a versioning constant and + document a bit better. + * Tools/AGSParser.m: Support new version constant and fix version + comparison for minor and subminor numbers. + * Tools/AGSHtml.m: ditto + * Headers/Foundation/NSArchiver.h: convert o new versioning as test. + * Documentation/Base.gsdoc: Document version constants. 2005-06-04 Richard Frith-Macdonald - * Headers/Foundation/NSObject.h: Add subminor number to versioning - macros as apple sometimes add/remove things at subminor versions. - Add some constants for versions. - * Tools/AGSParser.m: Support subminor version info - * Tools/AGSHtml.m: ditto + * Headers/Foundation/NSObject.h: Add subminor number to versioning + macros as apple sometimes add/remove things at subminor versions. + Add some constants for versions. + * Tools/AGSParser.m: Support subminor version info + * Tools/AGSHtml.m: ditto 2005-06-04 Richard Frith-Macdonald - * Headers/Foundation/NSFileManager.h: hide private method in enumerator, - swap one ivar for a new one keeping size the same. - * Headers/Foundation/NSString.h: Mark some deprecated methods. - * Source/GSFileHandle.m: Merge in win32 simplifications - * Source/NSBundle.m: ditto - * Source/NSData.m: ditto - * Source/NSFileManager.m: ditto - * Source/NSPathUtilities.m: ditto - * Source/NSProcessInfo.m: ditto - * Source/NSString.m: ditto - * Source/NSTask.m: ditto - * Source/win32-load.h: ditto - Merge in simplifications from the win32 path handling branch - and all changes/fixes since. + * Headers/Foundation/NSFileManager.h: hide private method in enumerator, + swap one ivar for a new one keeping size the same. + * Headers/Foundation/NSString.h: Mark some deprecated methods. + * Source/GSFileHandle.m: Merge in win32 simplifications + * Source/NSBundle.m: ditto + * Source/NSData.m: ditto + * Source/NSFileManager.m: ditto + * Source/NSPathUtilities.m: ditto + * Source/NSProcessInfo.m: ditto + * Source/NSString.m: ditto + * Source/NSTask.m: ditto + * Source/win32-load.h: ditto + Merge in simplifications from the win32 path handling branch + and all changes/fixes since. 2005-06-04 Richard Frith-Macdonald - * Source/GSFileHandle.m: - * Source/NSFileManager.m: - Define _FILE_OFFSET_BITS to be 64 so that, on unix-like systems which - support large file handling (>2GB) the large file handling routines - are used. - * Source/NSTask.m: Try to deal with pipes properly when launching under - windows. - * Source/GSString.m: Fix bug returning unicode string from cString. + * Source/GSFileHandle.m: + * Source/NSFileManager.m: + Define _FILE_OFFSET_BITS to be 64 so that, on unix-like systems which + support large file handling (>2GB) the large file handling routines + are used. + * Source/NSTask.m: Try to deal with pipes properly when launching under + windows. + * Source/GSString.m: Fix bug returning unicode string from cString. 2005-05-21 Adam Fedor - * Update FSF Address. + * Update FSF Address. 2005-05-20 Matt Rice - * Source/NSArray.m (NSArray -removeObject:): Fix macro conditional - so we release the object. + * Source/NSArray.m (NSArray -removeObject:): Fix macro conditional + so we release the object. 2005-05-15 19:57 Gregory John Casamento - * Source/NSPropertyList.m: Changes to include limits.h rather - than explicitly define UINT_MAX. + * Source/NSPropertyList.m: Changes to include limits.h rather + than explicitly define UINT_MAX. 2005-05-13 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Minor improvement to detail of failure - reason. + * Source/GSHTTPURLHandle.m: Minor improvement to detail of failure + reason. 2005-05-11 Richard Frith-Macdonald - * Source/GSFileHandle.m: Increase size of buffer for incoming data ... - on modern systems we have more memory and a bugger buffer can make - a significant performance improvement when reading large amounts of - streamed data. New define of READ_SIZE for this buffer ... easily - adjusted in one place. + * Source/GSFileHandle.m: Increase size of buffer for incoming data ... + on modern systems we have more memory and a bugger buffer can make + a significant performance improvement when reading large amounts of + streamed data. New define of READ_SIZE for this buffer ... easily + adjusted in one place. 2005-05-10 Sheldon Gill - * Resources/GNUmakefile - * Resources/Languages/Locale.aliases - * Resources/Spanish - * Resources/Spanish.lproj/Localizable.strings - Spanish language localisation from diemyr@yahoo.es + *Resources/GNUmakefile + * Resources/Languages/Locale.aliases + *Resources/Spanish + * Resources/Spanish.lproj/Localizable.strings + Spanish language localisation from 2005-05-10 Richard Frith-Macdonald - * Tools/AGSHtml.h: - * Tools/AGSHtml.m: - * Tools/AGSParser.m: - * Tools/gsdoc-1_0_2.dtd: - Support deprecation version as well as addition/removal. + * Tools/AGSHtml.h: + * Tools/AGSHtml.m: + * Tools/AGSParser.m: + * Tools/gsdoc-1_0_2.dtd: + Support deprecation version as well as addition/removal. 2005-05-09 David Ayers - * Source/NSPropertyList.m (OAppend): Revert patch from - 2005-02-28. It seems to fix the issue in the wrong place. - Further investigation is necessary. + * Source/NSPropertyList.m (OAppend): Revert patch from + 2005-02-28. It seems to fix the issue in the wrong place. + Further investigation is necessary. 2005-05-09 Richard Frith-Macdonald - * Tools/AGSHtml.m: Output 'Releases' rather than 'Standards' as it - seems a better term for API version information. - * Tools/AGSParser.h: - * Tools/AGSParser.m: Parse OS_API_VERSION() and GS_API_VERSION() to - produce detailed version information. - * Headers/Foundation/NSObject.h: defines of the two version macros for - proof of concept. + * Tools/AGSHtml.m: Output 'Releases' rather than 'Standards' as it + seems a better term for API version information. + * Tools/AGSParser.h: + * Tools/AGSParser.m: Parse OS_API_VERSION() and GS_API_VERSION() to + produce detailed version information. + * Headers/Foundation/NSObject.h: defines of the two version macros for + proof of concept. 2005-05-08 Richard Frith-Macdonald - * Tools/AGSHtml.h: Support versioning info instead of standards - * Tools/AGSHtml.m: ditto - * Tools/AGSOutput.m: ditto - * Tools/AGSParser.m: ditto - * Tools/GNUmakefile: Add new dtd and remove old tool. - * Tools/autogsdoc.m: ditto - * Tools/gsdoc-1_0_2.dtd: ditto - * Tools/gsdoc.m: Remove obsolete tool. - * Tools/gsdoc.gsdoc: Updated - Changes to support OpenStep/OPENSTEP/MacOS-X versioning and - GNUstep versioning, using add/rem attributes to specify the - version at which a feature was added to or removed from the - API. Drop the old 'standards' mechanism which was too rigid - for detailed versioning. + * Tools/AGSHtml.h: Support versioning info instead of standards + * Tools/AGSHtml.m: ditto + * Tools/AGSOutput.m: ditto + * Tools/AGSParser.m: ditto + * Tools/GNUmakefile: Add new dtd and remove old tool. + * Tools/autogsdoc.m: ditto + * Tools/gsdoc-1_0_2.dtd: ditto + * Tools/gsdoc.m: Remove obsolete tool. + * Tools/gsdoc.gsdoc: Updated + Changes to support OpenStep/OPENSTEP/MacOS-X versioning and + GNUstep versioning, using add/rem attributes to specify the + version at which a feature was added to or removed from the + API. Drop the old 'standards' mechanism which was too rigid + for detailed versioning. 2005-05-08 14:11 Gregory John Casamento - * Source/NSPropertyList.m: Corrected setup so that compilation - works on Solaris 9. + * Source/NSPropertyList.m: Corrected setup so that compilation + works on Solaris 9. 2005-05-08 Richard Frith-Macdonald - * Source/NSString.m: nul terminate properly when a returned 'C string' - is actually unicode. - * Source/GSString.m: ditto. + * Source/NSString.m: nul terminate properly when a returned 'C string' + is actually unicode. + * Source/GSString.m: ditto. 2005-05-08 Fred Kiefer - * Source/NSPropertyList.m: Added class BinaryPLGenerator to export - property lists in Apple binary format. - (+ dataFromPropertyList:format:errorDescription:) Use this new class. - (+ propertyList:isValidForFormat:) Report - NSPropertyListBinaryFormat_v1_0 as a supported format. - (GSBinaryPLParser -initWithData:mutability:) Read table start correctly. - (GSBinaryPLParser -objectAtIndex:) Better support for numbers. + * Source/NSPropertyList.m: Added class BinaryPLGenerator to export + property lists in Apple binary format. + (+ dataFromPropertyList:format:errorDescription:) Use this new class. + (+ propertyList:isValidForFormat:) Report + NSPropertyListBinaryFormat_v1_0 as a supported format. + (GSBinaryPLParser -initWithData:mutability:) Read table start correctly. + (GSBinaryPLParser -objectAtIndex:) Better support for numbers. 2005-05-07 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Improve handling of text/xml without - a charset. Add new method to determine the correct charset in the - case where it has to be inferred from the actual data. Follow the - instructions in http://www.w3.org/TR/REC-xml/ but be a bit more - tolerant. (ebcdic not supported). - * Headers/Foundation/GSString.m: Add a few new methods from macosx. - * Source/NSString.m: ditto. - * Source/GSString.m: ditto. + * Source/Additions/GSMime.m: Improve handling of text/xml without + a charset. Add new method to determine the correct charset in the + case where it has to be inferred from the actual data. Follow the + instructions in http://www.w3.org/TR/REC-xml/ but be a bit more + tolerant. (ebcdic not supported). + * Headers/Foundation/GSString.m: Add a few new methods from macosx. + * Source/NSString.m: ditto. + * Source/GSString.m: ditto. 2005-05-04 Richard Frith-Macdonald - * Source/Additions/GSMime.m: If given content of type text/xml without - a charset, try to get the charset from the encoding="..." part of the - header. + * Source/Additions/GSMime.m: If given content of type text/xml without + a charset, try to get the charset from the encoding="..." part of the + header. 2005-04-29 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: Remove self as an observer of our file - handle on deallocation ... prevent notfications being sent to - deallocated object. + * Source/GSHTTPURLHandle.m: Remove self as an observer of our file + handle on deallocation ... prevent notfications being sent to + deallocated object. 2005-04-28 Richard Frith-Macdonald - * Documentation/coding-standards.texi: Added what appear to be the - generally accepted parts of Sheldon's suggested coding standards - additions. - * Source/GSHTTPURLHandle.m: Modified to keep watching idle connections - and handle things properly when the remote end drops the connection. - Should fix occasional trouble when connectioin keepalive is used but - the remote host drops the connection between requests. + * Documentation/coding-standards.texi: Added what appear to be the + generally accepted parts of Sheldon's suggested coding standards + additions. + * Source/GSHTTPURLHandle.m: Modified to keep watching idle connections + and handle things properly when the remote end drops the connection. + Should fix occasional trouble when connectioin keepalive is used but + the remote host drops the connection between requests. 2005-04-26 Richard Frith-Macdonald - * Source/GSHTTPURLHandle.m: remove wProperties and wData from - handle in sync. + * Source/GSHTTPURLHandle.m: remove wProperties and wData from + handle in sync. 2005-04-25 Richard Frith-Macdonald - * Tools/defaults.m: Fix bug writing defaults whose values should be - quoted strings. + * Tools/defaults.m: Fix bug writing defaults whose values should be + quoted strings. 2005-04-23 Richard Frith-Macdonald - * Source/NSData.m: Fix bug in memory management when serializing an - object over 65K in length. + * Source/NSData.m: Fix bug in memory management when serializing an + object over 65K in length. 2005-04-20 Richard Frith-Macdonald - * Source/NSConnection.m: - * Source/NSDistributedNotificationCenter.m: - * Tools/gdnc.m: - mingw tweaks + * Source/NSConnection.m: + * Source/NSDistributedNotificationCenter.m: + * Tools/gdnc.m: + mingw tweaks 2005-04-19 Adam Fedor - * Tools/gdomap.c (init_iface): Round size to make sure we don't violate - pointer alignment boundaries. + * Tools/gdomap.c (init_iface): Round size to make sure we don't violate + pointer alignment boundaries. 2005-04-14 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Add tweak to cope with buggy mailers - which insert space after the boundary in a multipart document. + * Source/Additions/GSMime.m: Add tweak to cope with buggy mailers + which insert space after the boundary in a multipart document. 2005-04-13 Adam Fedor - * ANNOUNCE, NEWS, Documentation/news.texi, - Documentation/ReleaseNotes.gsdoc: Merge in release info from - 1.10.3 release branch. + * ANNOUNCE, NEWS, Documentation/news.texi, + Documentation/ReleaseNotes.gsdoc: Merge in release info from + 1.10.3 release branch. 2005-04-12 Richard Frith-Macdonald - * Headers/Foundation/NSDistributedNotificationCenter.h: - Added GSPublicNotificationCenterType and changed documentation for - NSLocalNotificationCenterType to say it's private to the current user. - * Source/NSDistributedNotificationCenter.m: Changed so that - NSLocalNotificationCenterType is MacOS-X compatible and the new - GSPublicNotificationCenterType works like our old implementation. - * Source/NSPortNameServer.m: Add detailed message about forthcoming - change to make the default port name server deal with message ports - rather than socket ports ... for MacOS-X compatibility and security. - * Source/externs.m: Added GSPublicNotificationCenterType - * Tools/gdnc.m: Changes for new NSDistributedNotificationCenter - behavior. - Overview ... updated distributed notifications to be private to the - owner of the processes by default. Added one-time warning message - for developers that NSConnection will be changing the same way. - These changes discussed a year or two ago (mostly with Alexander), - but nobody ever actually implemented them. - * Source/NSPathUtilities.m: Make temporary directory name based on - uid so that it is consistent on a unix system where there are - multiple named accounts with the same user id (essentially all - aliases for a single account). + * Headers/Foundation/NSDistributedNotificationCenter.h: + Added GSPublicNotificationCenterType and changed documentation for + NSLocalNotificationCenterType to say it's private to the current user. + * Source/NSDistributedNotificationCenter.m: Changed so that + NSLocalNotificationCenterType is MacOS-X compatible and the new + GSPublicNotificationCenterType works like our old implementation. + * Source/NSPortNameServer.m: Add detailed message about forthcoming + change to make the default port name server deal with message ports + rather than socket ports ... for MacOS-X compatibility and security. + * Source/externs.m: Added GSPublicNotificationCenterType + * Tools/gdnc.m: Changes for new NSDistributedNotificationCenter + behavior. + Overview ... updated distributed notifications to be private to the + owner of the processes by default. Added one-time warning message + for developers that NSConnection will be changing the same way. + These changes discussed a year or two ago (mostly with Alexander), + but nobody ever actually implemented them. + * Source/NSPathUtilities.m: Make temporary directory name based on + uid so that it is consistent on a unix system where there are + multiple named accounts with the same user id (essentially all + aliases for a single account). 2005-04-05 Adam Fedor - * gnustep-base.spec.in: Update make dependancy + * gnustep-base.spec.in: Update make dependancy 2005-04-05 Richard Frith-Macdonald - * Source/NSString.m: ([sttringByAppendingPathComponent:]) Fix bug - eliding multiple slashes in path. + * Source/NSString.m: ([sttringByAppendingPathComponent:]) Fix bug + eliding multiple slashes in path. 2005-04-02 Richard Frith-Macdonald - * Source/NSTask.m: Fix missing nul terminator to arguments under win32 + * Source/NSTask.m: Fix missing nul terminator to arguments under win32 2005-04-01 Richard Frith-Macdonald - * Source/NSBundle.m: Minor debug/warning log tweaks. - * Headers/Foundation/NSBundle.h: Document differences between GNUstep - and MacOS-X when initialising using a relative path. - * Headers/NSString.h: Fix typo in comment. + * Source/NSBundle.m: Minor debug/warning log tweaks. + * Headers/Foundation/NSBundle.h: Document differences between GNUstep + and MacOS-X when initialising using a relative path. + * Headers/NSString.h: Fix typo in comment. 2005-03-31 Adam Fedor - * ANNOUNCE, NEWS, Documentation/news.texi, - Documentation/ReleaseNotes.gsdoc: Merge in release info from - 1.10.2 release branch. + * ANNOUNCE, NEWS, Documentation/news.texi, + Documentation/ReleaseNotes.gsdoc: Merge in release info from + 1.10.2 release branch. 2005-03-31 Adam Fedor - * Source/NSBundle.m (_find_framework): New function. - ([NSBundle +_addFrameworkFromClass:]): Use it. Based on patch - from Sheldon Gill. + * Source/NSBundle.m (_find_framework): New function. + ([NSBundle +_addFrameworkFromClass:]): Use it. Based on patch + from Sheldon Gill. 2005-03-31 Richard Frith-Macdonald - * Source/NSString.m: (isAbsolutePath) always treat a path beginning - with '/' as absolute except when in windows mode or on windows and - not in unix mode. Treat all UNC paths as absolute ... a change made - after a lot of trawling the web and looking at examples of UNC path - usage. + * Source/NSString.m: (isAbsolutePath) always treat a path beginning + with '/' as absolute except when in windows mode or on windows and + not in unix mode. Treat all UNC paths as absolute ... a change made + after a lot of trawling the web and looking at examples of UNC path + usage. 2005-03-23 Richard Frith-Macdonald - * config/pathxml.m4: Fix to get --with-xml-prefix= to work for - xml2-config - * configure: regenerated + * config/pathxml.m4: Fix to get --with-xml-prefix= to work for + xml2-config + * configure: regenerated 2005-03-22 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Fix some charset-encoding mappings. - Add utf-7 and utf-16. - Add all aliases for ascii and latin1 - Document mapping methods better. + * Source/Additions/GSMime.m: Fix some charset-encoding mappings. + Add utf-7 and utf-16. + Add all aliases for ascii and latin1 + Document mapping methods better. 2005-03-21 Richard Frith-Macdonald - * Headers/Foundation/NSFileManager.h: Add path handling documentation. - * Headers/Foundation/NSString.h: Add path handling methods - documentation and new method to set global path handling mode. - * Source/NSUserDefaults.m: Update path handling mode when defaults - are read in. - * Source/NSString.m: Implement selectable path handling mode ... - gnustep/unix/windows. In the default gnustep mode we try to - handle paths in any format and just do the right thing. - Also updated handling of path extensions to match MacOSX behavior. - * Source/Additions/GSMime.m: Remove deprecated method. - Optimise a little by avoiding class lookups. + * Headers/Foundation/NSFileManager.h: Add path handling documentation. + * Headers/Foundation/NSString.h: Add path handling methods + documentation and new method to set global path handling mode. + * Source/NSUserDefaults.m: Update path handling mode when defaults + are read in. + * Source/NSString.m: Implement selectable path handling mode ... + gnustep/unix/windows. In the default gnustep mode we try to + handle paths in any format and just do the right thing. + Also updated handling of path extensions to match MacOSX behavior. + * Source/Additions/GSMime.m: Remove deprecated method. + Optimise a little by avoiding class lookups. 2005-03-18 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Use fprintf rather than NSLog to try to - avoid possible recursion when errors occur. + * Source/NSPathUtilities.m: Use fprintf rather than NSLog to try to + avoid possible recursion when errors occur. 2005-03-17 Richard Frith-Macdonald - * Source/NSPathUtilities.m: Tidy variable and function names to fit - GNUstep conventions. Simplify code a little. Don't attempt to parse - per-user config file if its name is nil or empty string. - Support parsing old config options for backward compatibility. + * Source/NSPathUtilities.m: Tidy variable and function names to fit + GNUstep conventions. Simplify code a little. Don't attempt to parse + per-user config file if its name is nil or empty string. + Support parsing old config options for backward compatibility. 2005-03-15 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Ensure last line of base64 encoded data - is terminated with crlf for clients which have buggy base64 decodedrs. + * Source/Additions/GSMime.m: Ensure last line of base64 encoded data + is terminated with crlf for clients which have buggy base64 decodedrs. 2005-03-15 Richard Frith-Macdonald - * Source/Additions/GSMime.m: Mark ([setDefaultEncoding:]) as deprecated - rather than just removing it ... in case someone has started using it. - * Source/NSPathUtilities.m: Tidied a little ... moved a function. - * Headers/Additions/GNUstepBase/GSFunctions.h: New header for functions - * Headers/Foundation/NSPathUtilities.h: Moved function - * Source/DocMakefile: Include GSFunctions.h - * Source/GNUmakefile: ditto - * Source/Additions/GNUmakefile: Build GSFunctions.m - * Source/Additions/GSFunctions.m: New file for extra functions. - * Source/NSString.m: ([stringByExpandingTildeInPath]) Improve handling - of paths containing mingw drives. - * Source/NSDate.m: Use same values for distant past/future as MacOSX - * Source/NSCalendarDate.m: Support output of extreme year values. + * Source/Additions/GSMime.m: Mark ([setDefaultEncoding:]) as deprecated + rather than just removing it ... in case someone has started using it. + * Source/NSPathUtilities.m: Tidied a little ... moved a function. + * Headers/Additions/GNUstepBase/GSFunctions.h: New header for functions + * Headers/Foundation/NSPathUtilities.h: Moved function + * Source/DocMakefile: Include GSFunctions.h + * Source/GNUmakefile: ditto + * Source/Additions/GNUmakefile: Build GSFunctions.m + * Source/Additions/GSFunctions.m: New file for extra functions. + * Source/NSString.m: ([stringByExpandingTildeInPath]) Improve handling + of paths containing mingw drives. + * Source/NSDate.m: Use same values for distant past/future as MacOSX + * Source/NSCalendarDate.m: Support output of extreme year values. 2005-03-14 Adam Fedor - * Continuation of NSPathUtilities patches - * configure.ac: Add config-file option - * Headers/Foundation/NSPathUtilities.h: Add GSFindNamedFile, more - NSSearchPathDirectory enums. - * Source/GNUmakefile: Don't install Win32 headers. - * Source/NSPathUtilities.m (InitializePathUtilities, ...): Add - support for reading standard path locations from a configuration - file. Various support functions added/removed to fit. - (GSFindNamedFile): New function. - (GSSetUserName): Do nothing if the user is the same. - (NSHomeDirectoryForUser): Use Windows utilities to get user name - (on Windows, of course). - (NSFullUserName): Default to NSUserName on Windows. - (GSSystemRootDirectory): Mark as deprecated. - (GSDefaultsRootForUser): Correctly return the actual defaults - directory, not the user directory. - (GSStandardPathPrefixes): Mark as deprecated. - (NSSearchPathForDirectoriesInDomains): Add platform paths and - additional search directories. - * Source/NSUserDefaults (pathForUser): Correct use of - GSDefaultsRootForUser. Remove obsolete path checking and - defaults location checking. (Patches from Sheldon Gill - with some modifications). - - * Documentation/Base.gsdoc: Update documentation. - * Headers/Additions/GNUstepBase/Win32_Utilities.h, - Source/win32/Win32_Utilities.m: Fix function arguments. + * Continuation of NSPathUtilities patches + * configure.ac: Add config-file option + * Headers/Foundation/NSPathUtilities.h: Add GSFindNamedFile, more + NSSearchPathDirectory enums. + * Source/GNUmakefile: Don't install Win32 headers. + * Source/NSPathUtilities.m (InitializePathUtilities, ...): Add + support for reading standard path locations from a configuration + file. Various support functions added/removed to fit. + (GSFindNamedFile): New function. + (GSSetUserName): Do nothing if the user is the same. + (NSHomeDirectoryForUser): Use Windows utilities to get user name + (on Windows, of course). + (NSFullUserName): Default to NSUserName on Windows. + (GSSystemRootDirectory): Mark as deprecated. + (GSDefaultsRootForUser): Correctly return the actual defaults + directory, not the user directory. + (GSStandardPathPrefixes): Mark as deprecated. + (NSSearchPathForDirectoriesInDomains): Add platform paths and + additional search directories. + * Source/NSUserDefaults (pathForUser): Correct use of + GSDefaultsRootForUser. Remove obsolete path checking and + defaults location checking. (Patches from Sheldon Gill + with some modifications). + + * Documentation/Base.gsdoc: Update documentation. + * Headers/Additions/GNUstepBase/Win32_Utilities.h, + Source/win32/Win32_Utilities.m: Fix function arguments. 2005-03-12 Sungjin Chun - * Source/Additions/GSXML.m: Port to MacOS-X + * Source/Additions/GSXML.m: Port to MacOS-X 2005-03-11 Richard Frith-Macdonald - * Source/NSPropertyList.m: Handle null object passed to OAppend() - * Source/Additions/GSMime.m: Optimise setDefaultCharset: a little - Add error checking to setDefaultEncoding: to make sure it sets a - valid characterset encoding. Should almost certainly remove this - method though ... as it duplicates setDefaultCharset: functionality - in a somewhat less useful form. + * Source/NSPropertyList.m: Handle null object passed to OAppend() + * Source/Additions/GSMime.m: Optimise setDefaultCharset: a little + Add error checking to setDefaultEncoding: to make sure it sets a + valid characterset encoding. Should almost certainly remove this + method though ... as it duplicates setDefaultCharset: functionality + in a somewhat less useful form. 2005-03-11 David Wetzel - * Source/Additions/GSMime.m: + *Source/Additions/GSMime.m: * Headers/Additions/GNUstepBase/GSMime.h Added setDefaultEncoding: This is needed in GSWeb if you use utf-8 and faster than using a @@ -25601,392 +25609,392 @@ 2005-03-09 Richard Frith-Macdonald - * Source/NSCharacterSet.m: Fix bug in forming union ... was using - wrong length. + * Source/NSCharacterSet.m: Fix bug in forming union ... was using + wrong length. 2005-03-08 Richard Frith-Macdonald - * Source/NSCharacterSetData.h: Add data outside unicode base plane. - * Source/NSCharacterSet.m: Change to support all unicode characters - rather than just UTF16. The current implementation is still based - on (often much larger than before) bitmaps. It may be that the size - of the bitmap data is too large for real world use, and we may have - to introduce a different storage mechanism. The current mechanism - is good for cases where the number of characters in the set is large - and those characters are scattered, or where characters are only - present in the base plane. Another implementation might be better - for cases where characters are clustered into contiguous groups - and the groups are scattered through the full range. + * Source/NSCharacterSetData.h: Add data outside unicode base plane. + * Source/NSCharacterSet.m: Change to support all unicode characters + rather than just UTF16. The current implementation is still based + on (often much larger than before) bitmaps. It may be that the size + of the bitmap data is too large for real world use, and we may have + to introduce a different storage mechanism. The current mechanism + is good for cases where the number of characters in the set is large + and those characters are scattered, or where characters are only + present in the base plane. Another implementation might be better + for cases where characters are clustered into contiguous groups + and the groups are scattered through the full range. 2005-03-07 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSConfig.h.in: Extra types - * configure.ac: Added types for GSConfig.h.in - * configure: regenerated - * Headers/Foundation/NSCharacterSet.h: New MacOS-X methods - * Headers/Foundation/NSIndexSet.h: Remove bogus comment. - * Source/GNUmakefile: Don't build NSBitmapCharSet.m - * Source/NSBitmapCharSet.h: Removed ... merege into NSCharacterSet.m - * Source/NSBitmapCharSet.m: ditto - * Source/NSCharacterSet.m: Optimise a few methods. - Add new MacOS-X methods (naive implementations) - Merge in NSBitmapCharSet as private class + * Headers/Additions/GNUstepBase/GSConfig.h.in: Extra types + * configure.ac: Added types for GSConfig.h.in + * configure: regenerated + * Headers/Foundation/NSCharacterSet.h: New MacOS-X methods + * Headers/Foundation/NSIndexSet.h: Remove bogus comment. + * Source/GNUmakefile: Don't build NSBitmapCharSet.m + * Source/NSBitmapCharSet.h: Removed ... merege into NSCharacterSet.m + * Source/NSBitmapCharSet.m: ditto + * Source/NSCharacterSet.m: Optimise a few methods. + Add new MacOS-X methods (naive implementations) + Merge in NSBitmapCharSet as private class 2005-03-06 Matt Rice - * Headers/Foundation/NSRunLoop.h: Reorder RunLoopEventType for binary - compatibility. + * Headers/Foundation/NSRunLoop.h: Reorder RunLoopEventType for binary + compatibility. 2005-03-06 Richard Frith-Macdonald - * Headers/Foundation/NSCharacterSet.h: Add documentation and method - ([-capitalizedLetterCharacterSet]) Change name of symbol set to - match MacOS-X - * Source/NSCharacterSet.m: Add new method and move documentation to - header. Include local NSCharacterSetData.h for bitmap data. - * Source/NSCharacterSetData.h: New file containing the bitmap data - for the standard charactersets. Generated by dev-apps/charsets - tools using the latest unicode characterset data today. - * Source/NSCharacterSets/README.CharSet: mark as obsolete. - * Source/GNUmakefile: No longer build/install NSCharacterSets - The standard bitmap data for charactersets is now built in to - NSCharacterSet. - * Headers/Foundation/NSBitmapChar.h: Moved nonstandard header - to private source directory. - * Source/NSAutoreleasePool.m: Rewrite deallocation to cause the pool - to remain as the current pool during the deallocation process ... - Requires deallocation to be done in a loop to avoid possible leaks - etc if an object which is being deallocated decides to autorelease - something. - Also removed a few private methods for simplification. + * Headers/Foundation/NSCharacterSet.h: Add documentation and method + ([-capitalizedLetterCharacterSet]) Change name of symbol set to + match MacOS-X + * Source/NSCharacterSet.m: Add new method and move documentation to + header. Include local NSCharacterSetData.h for bitmap data. + * Source/NSCharacterSetData.h: New file containing the bitmap data + for the standard charactersets. Generated by dev-apps/charsets + tools using the latest unicode characterset data today. + * Source/NSCharacterSets/README.CharSet: mark as obsolete. + * Source/GNUmakefile: No longer build/install NSCharacterSets + The standard bitmap data for charactersets is now built in to + NSCharacterSet. + * Headers/Foundation/NSBitmapChar.h: Moved nonstandard header + to private source directory. + * Source/NSAutoreleasePool.m: Rewrite deallocation to cause the pool + to remain as the current pool during the deallocation process ... + Requires deallocation to be done in a loop to avoid possible leaks + etc if an object which is being deallocated decides to autorelease + something. + Also removed a few private methods for simplification. 2005-03-04 Richard Frith-Macdonald - * Source/Additions/GSXML.m: GSXMLRPC integrated. - * Headers/Additions/GSUstepBase/GSXML.h: GSXMLRPC integrated. + * Source/Additions/GSXML.m: GSXMLRPC integrated. + * Headers/Additions/GSUstepBase/GSXML.h: GSXMLRPC integrated. 2005-03-03 Adam Fedor - * Source/NSFileManager.m (-createFileAtPath:...): Define var at - beginning to work on gcc 2.x compilers. + * Source/NSFileManager.m (-createFileAtPath:...): Define var at + beginning to work on gcc 2.x compilers. 2005-03-03 Adam Fedor - * Start on integrating Sheldon Gills NSPathUtilities patches. - * Headers/Foundation/NSPathUtilities.h: Depreciate - GSSystemRootDirectory, GSStandardPathPrefixes. Add - GSPreferencesDirectory to NSSearchPathDirectory enum. Enumerate - NSSearchPathDomainMask values. - * Headers/Additions/GNUStepBase/Win32Support.h, - Headers/Additions/GNUStepBase/Win32_Utilites.h: New files. - * Source/GNUmakefile: Add NSPathUtilities.m - * Source/NSUser.m: Move everything in here... - * Source/NSPathUtilities.m: to here. - * Source/win32/GNUmakefile: Add Win32Support.m, Win32_Utilities.m - * Source/win32Win32Support.m, Win32_Utilities.m: New files - * Testing/nspathutilites.m: New file. - (Files and patches from Sheldon Gill with minor modifications). + * Start on integrating Sheldon Gills NSPathUtilities patches. + * Headers/Foundation/NSPathUtilities.h: Depreciate + GSSystemRootDirectory, GSStandardPathPrefixes. Add + GSPreferencesDirectory to NSSearchPathDirectory enum. Enumerate + NSSearchPathDomainMask values. + * Headers/Additions/GNUStepBase/Win32Support.h, + Headers/Additions/GNUStepBase/Win32_Utilites.h: New files. + * Source/GNUmakefile: Add NSPathUtilities.m + * Source/NSUser.m: Move everything in here... + * Source/NSPathUtilities.m: to here. + * Source/win32/GNUmakefile: Add Win32Support.m, Win32_Utilities.m + * Source/win32Win32Support.m, Win32_Utilities.m: New files + * Testing/nspathutilites.m: New file. + (Files and patches from Sheldon Gill with minor modifications). 2005-03-02 Richard Frith-Macdonald - * Headers/Foundation/NSKeyValueCoding.h: - * Source/NSArray.m: - * Source/NSKeyValueCoding.m: - * Source/Additions/GSObjCRuntime.m: - On the way back from FOSDEM I updated tje key-value-coding stuff to - match the lastest version from Apple/MacOS-X panther. - I don't use KVC in my code, and have not testcases for it, so would - appreciate it if anyone who does could try this out and get bug - reports back to me ASAP. + * Headers/Foundation/NSKeyValueCoding.h: + * Source/NSArray.m: + * Source/NSKeyValueCoding.m: + * Source/Additions/GSObjCRuntime.m: + On the way back from FOSDEM I updated tje key-value-coding stuff to + match the lastest version from Apple/MacOS-X panther. + I don't use KVC in my code, and have not testcases for it, so would + appreciate it if anyone who does could try this out and get bug + reports back to me ASAP. 2005-03-01 Adam Fedor - * Source/NSBundle.m (+gnustepBundle, - +pathForGNUstepResource:ofType:inDirectory:]): Add deprecated - log message. - * Source/NSNotificationQueue.m, Source/null-load.h: - Fix copyright message. + * Source/NSBundle.m (+gnustepBundle, + +pathForGNUstepResource:ofType:inDirectory:]): Add deprecated + log message. + * Source/NSNotificationQueue.m, Source/null-load.h: + Fix copyright message. 2005-03-01 02:50 Nicola Pero - * Source/Makefile.preamble (ADDITIONAL_LIB_DIRS): When building a - shared library, depend on all TARGET_SYSTEM_LIBS, not just - CONFIG_SYSTEM_LIBS. - * Headers/Additions/GNUstepBase/GSObjCRuntime.h: Do not use - __declspec(dllexport) on mingw. Use extern instead. + * Source/Makefile.preamble (ADDITIONAL_LIB_DIRS): When building a + shared library, depend on all TARGET_SYSTEM_LIBS, not just + CONFIG_SYSTEM_LIBS. + * Headers/Additions/GNUstepBase/GSObjCRuntime.h: Do not use + __declspec(dllexport) on mingw. Use extern instead. 2005-02-28 17:45 Richard Frith-Macdonald - * NSCharacterSets/GNUmakefile: Use GNUSTEP_OBJ_DIR_NAME to run - data conversion tool, since Tom Koelman points out that the 'obj' - subdirectory does not work on windoze due to lack of symlinks. + * NSCharacterSets/GNUmakefile: Use GNUSTEP_OBJ_DIR_NAME to run + data conversion tool, since Tom Koelman points out that the 'obj' + subdirectory does not work on windoze due to lack of symlinks. 2005-02-28 17:10 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m: - * Source/NSCharacterSet.m: - * Source/NSproxy.m: - Damn ... when I ran the testsuite for the stuff I did at fosdem, it - all worked ... but now I find that it was linking to an older version - of the base library and actually the changes were broken. - The new modifications should (hopefully) fix all breakage. - The changes exposed rare bugs in the existing code ... - NSCharacterSet was returning immutable copies of the standard - character sets when it should return mutable ones, it was also - being a bit bad about allocating new instances. NSProxy was - failing to implement instanceMethodForSelector:, and NSAutoreleasePool - had a bug which could mess up a bit if the objects being deallocated - by it autoreleased anything. + * Source/NSAutoreleasePool.m: + * Source/NSCharacterSet.m: + * Source/NSproxy.m: + Damn ... when I ran the testsuite for the stuff I did at fosdem, it + all worked ... but now I find that it was linking to an older version + of the base library and actually the changes were broken. + The new modifications should (hopefully) fix all breakage. + The changes exposed rare bugs in the existing code ... + NSCharacterSet was returning immutable copies of the standard + character sets when it should return mutable ones, it was also + being a bit bad about allocating new instances. NSProxy was + failing to implement instanceMethodForSelector:, and NSAutoreleasePool + had a bug which could mess up a bit if the objects being deallocated + by it autoreleased anything. 2005-02-28 David Ayers - * Source/NSPropertyList.m (OAppend): Attempt to transform - description of non-proporty-list objects into property list - before recursing for OPENSTEP compatibility. + * Source/NSPropertyList.m (OAppend): Attempt to transform + description of non-proporty-list objects into property list + before recursing for OPENSTEP compatibility. 2005-02-27 13:20 Richard Frith-Macdonald - * Source/NSConnection.m: - Set default timeouts to maximum timeouts for MacOS-X compatibility. + * Source/NSConnection.m: + Set default timeouts to maximum timeouts for MacOS-X compatibility. 2005-02-27 08:45 Richard Frith-Macdonald - * NSCharacterSets/dataToheader.c: new file to convert data files to - constant values in a new header (NSCharacterSetData.h). - * NSCharacterSets/GNUmakefile: build header from data files, and - don't create resource set, since we no longer use the files at runtime. - * Source/NSCharacterSet.m: include NSCharacterSetData.h and use it to - create the standard charactersets rather than reading from data files. - This has two advantages - It avoids the need to install characterset - data files with the library, and it means that we have characterset - data available immediately (before we need to access the filesystem) - so we can use charactersets and NSString methods which depend upon them - earlier on in the system initialisation. + * NSCharacterSets/dataToheader.c: new file to convert data files to + constant values in a new header (NSCharacterSetData.h). + * NSCharacterSets/GNUmakefile: build header from data files, and + don't create resource set, since we no longer use the files at runtime. + * Source/NSCharacterSet.m: include NSCharacterSetData.h and use it to + create the standard charactersets rather than reading from data files. + This has two advantages - It avoids the need to install characterset + data files with the library, and it means that we have characterset + data available immediately (before we need to access the filesystem) + so we can use charactersets and NSString methods which depend upon them + earlier on in the system initialisation. 2005-02-27 00:50 Richard Frith-Macdonald - * Source/NSAutoreleasePool.m: ([-dealloc]) cache method implementations - for release calls on the assumption that many of the objects in the - pool will be of the same class. - Optimisation suggested by Georg Wallmann + * Source/NSAutoreleasePool.m: ([-dealloc]) cache method implementations + for release calls on the assumption that many of the objects in the + pool will be of the same class. + Optimisation suggested by Georg Wallmann 2005-02-23 Adam Fedor - * configure.ac: Add test to check for poll emulation - * Source/NSRunLoop.h: Don't use poll if we're just emulating. - * Source/unix/GSRunLoopCtxt.m: Idem. + * configure.ac: Add test to check for poll emulation + * Source/NSRunLoop.h: Don't use poll if we're just emulating. + * Source/unix/GSRunLoopCtxt.m: Idem. 2005-02-23 14:00 Richard Frith-Macdonald - * Headers/Additions/GNUstepBase/GSFileHandle.h: Add windows event - * Headers/Foundation/NSPort.h: - * Headers/Foundation/NSRunLoop.h: - * Source/GNUmakefile: - * Source/GSFileHandle.m: - * Source/GSLocale.m: - * Source/NSMessagePort.m: - * Source/NSPipe.m: - * Source/NSRunLoop.m: - * Source/NSSocketPort.m: - * Source/NSThread.m: - * Source/NSUser.m: - * Source/unix/GNUmakefile: - * Source/unix/GSRunLoopCtxt.m: - * Source/unix/GSRunLoopWatcher.m: - * Source/unix/Makefile.preamble: - * Source/win32/GNUmakefile: - * Source/win32/GSRunLoopCtxt.m: - * Source/win32/GSRunLoopWatcher.m: - * Source/win32/Makefile.preamble: - * Source/win32/NSRunLoopWin32.m: - Applied patch by Luis Cabellos to use native win32 event handling - rather than unix style select/poll on a win32 system. - Rewrote various chunks to simplify, conform to coding standards, - work for me etc. In particular, replaced code for thread - synchronisation to use win32 Event rather than pipe. + * Headers/Additions/GNUstepBase/GSFileHandle.h: Add windows event + * Headers/Foundation/NSPort.h: + * Headers/Foundation/NSRunLoop.h: + * Source/GNUmakefile: + * Source/GSFileHandle.m: + * Source/GSLocale.m: + * Source/NSMessagePort.m: + * Source/NSPipe.m: + * Source/NSRunLoop.m: + * Source/NSSocketPort.m: + * Source/NSThread.m: + * Source/NSUser.m: + * Source/unix/GNUmakefile: + * Source/unix/GSRunLoopCtxt.m: + * Source/unix/GSRunLoopWatcher.m: + * Source/unix/Makefile.preamble: + * Source/win32/GNUmakefile: + * Source/win32/GSRunLoopCtxt.m: + * Source/win32/GSRunLoopWatcher.m: + * Source/win32/Makefile.preamble: + * Source/win32/NSRunLoopWin32.m: + Applied patch by Luis Cabellos to use native win32 event handling + rather than unix style select/poll on a win32 system. + Rewrote various chunks to simplify, conform to coding standards, + work for me etc. In particular, replaced code for thread + synchronisation to use win32 Event rather than pipe. 2005-02-22 Adam Fedor - * Branched freeze-1_10_2 for Version: 1.10.2 + * Branched freeze-1_10_2 for Version: 1.10.2 2005-02-22 14:00 Richard Frith-Macdonald - * Documentation/Base.gsdoc: - * Source/GSPrivate.h: - * Source/NSDebug.m: - * Source/NSLog.m: - * Source/NSUserDefaults.m: - Add GSLogThread to include thread id in NSLog() and debug output. - * Source/NSMessagePort.m: - * Source/NSSocketPort.m: - Remove thread reporting in some debug statements as it can be - done universally using GSLogThread. + * Documentation/Base.gsdoc: + * Source/GSPrivate.h: + * Source/NSDebug.m: + * Source/NSLog.m: + * Source/NSUserDefaults.m: + Add GSLogThread to include thread id in NSLog() and debug output. + * Source/NSMessagePort.m: + * Source/NSSocketPort.m: + Remove thread reporting in some debug statements as it can be + done universally using GSLogThread. 2005-02-22 11:12 Richard Frith-Macdonald - * Source/GSFFCallInvocation.m: - * Source/GSFormat.m: - * Source/GSString.m: - * Source/GSTemplateValue.m: - * Source/NSAutoreleasePool.m: - * Source/NSData.m: - * Source/NSDebug.m: - * Source/NSDecimal.m: - * Source/NSInvocation.m: - * Source/NSMethodSignature.m: - * Source/NSScanner.m: - * Source/NSThread.m: - * Source/NSTimeZone.m: - * Source/NSUserDefaults.m: - * Source/libgnustep-base-entry.m: - * Source/thr-mach.m: - * Source/thr-pthread.m: - * Source/Additions/GSCategories.m: - * Source/Additions/GSObjCRuntime.m: - * Source/Additions/Unicode.m: - * Source/Additions/behavior.m: - Tidy up use of white space a little. + * Source/GSFFCallInvocation.m: + * Source/GSFormat.m: + * Source/GSString.m: + * Source/GSTemplateValue.m: + * Source/NSAutoreleasePool.m: + * Source/NSData.m: + * Source/NSDebug.m: + * Source/NSDecimal.m: + * Source/NSInvocation.m: + * Source/NSMethodSignature.m: + * Source/NSScanner.m: + * Source/NSThread.m: + * Source/NSTimeZone.m: + * Source/NSUserDefaults.m: + * Source/libgnustep-base-entry.m: + * Source/thr-mach.m: + * Source/thr-pthread.m: + * Source/Additions/GSCategories.m: + * Source/Additions/GSObjCRuntime.m: + * Source/Additions/Unicode.m: + * Source/Additions/behavior.m: + Tidy up use of white space a little. 2005-02-21 20:30 Richard Frith-Macdonald - * Source/GSFormat.m: Modified code to rewrite output to use correct - decimal separator for locale (hopefully). Also made a small - performance improvement in processing digits for output. + * Source/GSFormat.m: Modified code to rewrite output to use correct + decimal separator for locale (hopefully). Also made a small + performance improvement in processing digits for output. 2005-02-21 14:30 Richard Frith-Macdonald - * Source/GSFormat.m: - * Source/NSConnection.m: - * Source/callframe.m: - * Source/cifframe.m: - Include malloc.h for systems where it is needed for alloca() - * Tools/gdomap.c: Avoid some warnings on mingw32 + * Source/GSFormat.m: + * Source/NSConnection.m: + * Source/callframe.m: + * Source/cifframe.m: + Include malloc.h for systems where it is needed for alloca() + * Tools/gdomap.c: Avoid some warnings on mingw32 2005-02-21 14:10 Stefan Urbanek - * Source/NSAttributedString.m: Fix loop decoding from archive. + * Source/NSAttributedString.m: Fix loop decoding from archive. 2005-02-18 06:20 Richard Frith-Macdonald - * Source/NSString.m: Tidy up some of last patch for unicode filesystem - support. - * Source/NSFileManager.m: Complete rewrite of unicode filesystem - support to make code more readable and to allow it to easily be - turned off by commenting out the 'UNICODE' and '_UNICODE' - definitions at the start of the file. - There is a bug in the mingw runtime which is (currently) still - distributed in the 'current' complete mingw distribution ... which - breaks unicode filesystem support very badly. - So ... you can now either revert to 8bit charset filesystem support, - or download a more recent version of the mingw runtime from the - mingw site. - * Source/NSTask.m: Fix setting environment for mingw ... use own - method to get environment rather than examining instance variable, - as the variable may not be set. Sort variables because windows needs - them in alphabetical order. Fix conversion to unicode. - - 2005-02-16 14:40 Richard Frith-Macdonald - - * config/patchxml.m4: Try to detect libxml2 in standard directories - exen if xml2-config is not present. - * configure.ac: Detect libxml2 becore iconv, in case libxml2 - requires iconv (which it usually will on a system where iconv is - not built into the standard c library). - * confingure: Regenerate - * Source/Additions/GSXML.m: Set memory allocation functions to be - used by libxml2, so we can use objc_free() to release strings returned - by the library, and avoid linker problem with xmlFree() on mingw. + * Source/NSString.m: Tidy up some of last patch for unicode filesystem + support. + * Source/NSFileManager.m: Complete rewrite of unicode filesystem + support to make code more readable and to allow it to easily be + turned off by commenting out the 'UNICODE' and '_UNICODE' + definitions at the start of the file. + There is a bug in the mingw runtime which is (currently) still + distributed in the 'current' complete mingw distribution ... which + breaks unicode filesystem support very badly. + So ... you can now either revert to 8bit charset filesystem support, + or download a more recent version of the mingw runtime from the + mingw site. + * Source/NSTask.m: Fix setting environment for mingw ... use own + method to get environment rather than examining instance variable, + as the variable may not be set. Sort variables because windows needs + them in alphabetical order. Fix conversion to unicode. + + 2005-02-16 14:40 Richard Frith-Macdonald + + * config/patchxml.m4: Try to detect libxml2 in standard directories + exen if xml2-config is not present. + * configure.ac: Detect libxml2 becore iconv, in case libxml2 + requires iconv (which it usually will on a system where iconv is + not built into the standard c library). + * confingure: Regenerate + * Source/Additions/GSXML.m: Set memory allocation functions to be + used by libxml2, so we can use objc_free() to release strings returned + by the library, and avoid linker problem with xmlFree() on mingw. 2005-02-15 08:00 Richard Frith-Macdonald - * Source/NSTask.m: Fix incorrect version comitted. + * Source/NSTask.m: Fix incorrect version comitted. 2005-02-14 08:00 Richard Frith-Macdonald - * Source/NSTask.m: Pass environment settings for mingw based on - anonymous bug submission (bug #11360) - * Source/NSUser.m: Fix bug #11378 - * Tools/gdomap.c: Quote mingw arguments toi fix bug #11854 - * Documentation/manual/Introduction.texi: Apply patch by pupeno - (bug #11814) + * Source/NSTask.m: Pass environment settings for mingw based on + anonymous bug submission (bug #11360) + * Source/NSUser.m: Fix bug #11378 + * Tools/gdomap.c: Quote mingw arguments toi fix bug #11854 + * Documentation/manual/Introduction.texi: Apply patch by pupeno + (bug #11814) 2005-02-10 01:05 Alexander Malmberg - * Tools/gdnc.m (main): Remove the program name from the arguments - given to the new task. + * Tools/gdnc.m (main): Remove the program name from the arguments + given to the new task. 2005-02-08 11:20 Richard Frith-Macdonald - * Source/NSString.m: (unicodeString) rewrite to conform to coding - standards and to be more efficient. + * Source/NSString.m: (unicodeString) rewrite to conform to coding + standards and to be more efficient. 2005-02-08 10:10 Richard Frith-Macdonald - * Tools/gdnc.m: Rewrite startup code to create a daemon using NSTask - rather than calling fork()/spawn() etc. - Make arguments more consistent with gpbs - * Source/NSTask.m: Minor code layout/indentation tweaks. + * Tools/gdnc.m: Rewrite startup code to create a daemon using NSTask + rather than calling fork()/spawn() etc. + Make arguments more consistent with gpbs + * Source/NSTask.m: Minor code layout/indentation tweaks. 2005-02-02 09:40 Richard Frith-Macdonald - * Source/NSFileManager.m: Restructure last patch to conform to - gnustep coding standards. - (localFromOpenStepPath:) for unix paths, expand '~' abbreviations. + * Source/NSFileManager.m: Restructure last patch to conform to + gnustep coding standards. + (localFromOpenStepPath:) for unix paths, expand '~' abbreviations. 2005-01-31 Adam Fedor - * Documentation/coding-standards.texi: Add section of documentation. + * Documentation/coding-standards.texi: Add section of documentation. 2005-01-29 03:46 Matt Rice - * Source/NSUndoManager.m (-registerUndoWithTarget:selector:object:): - Have the invocation to retain it's arguments. (Fixes bug #4692.) + * Source/NSUndoManager.m (-registerUndoWithTarget:selector:object:): + Have the invocation to retain it's arguments. (Fixes bug #4692.) 2005-01-21 22:08 Gregory John Casamento - * Source/NSUndoManager.m: [NSUndoManager redo] and - [NSUndoManager undoNestedGroup] moved the call to actionName - to a later point in both methods to get the name from the - "groupToRedo" or the "groupToUndo" respectively. This - corrects the issue with the wrong name sometimes appearing - in the redo/undo menu items. + * Source/NSUndoManager.m: [NSUndoManager redo] and + [NSUndoManager undoNestedGroup] moved the call to actionName + to a later point in both methods to get the name from the + "groupToRedo" or the "groupToUndo" respectively. This + corrects the issue with the wrong name sometimes appearing + in the redo/undo menu items. 2005-01-16 07:59 Gregory John Casamento - * Source/NSUndoManager.m: Added code to properly set the - name of the action when undo/redo is called. + * Source/NSUndoManager.m: Added code to properly set the + name of the action when undo/redo is called. 2005-01-16 06:37 Gregory John Casamento - * Source/NSUndoManager.m: Check if the group is nil in - endUndoGrouping before checking the count. + * Source/NSUndoManager.m: Check if the group is nil in + endUndoGrouping before checking the count. 2005-01-15 06:17 Gregory John Casamento - * Source/NSUndoManager.m: Undid previous change here. + * Source/NSUndoManager.m: Undid previous change here. 2005-01-15 06:13 Gregory John Casamento - * Source/NSUndoManager.m: Localized undo/redo menu title. + * Source/NSUndoManager.m: Localized undo/redo menu title. 2005-01-14 06:50 Gregory John Casamento - * Source/NSUndoManager.m: Correction for redo. + * Source/NSUndoManager.m: Correction for redo. 2005-01-14 05:43 Gregory John Casamento - * Source/NSUndoManager.m: Fix forward invocation to not add - a group when it doesn't contain any actions. + * Source/NSUndoManager.m: Fix forward invocation to not add + a group when it doesn't contain any actions. 2005-01-08 Adam Fedor - * Source/NSCalendarDate.m: fix time zone for %z format with - only 2 digits in -initWithString:calendarFormat:locale: + * Source/NSCalendarDate.m: fix time zone for %z format with + only 2 digits in -initWithString:calendarFormat:locale: 2005-01-07 Adam Fedor - * Source/NSTimeZone.m (+abbreviationDictionary): Retain dictionary - (Fixes bug #11516). + * Source/NSTimeZone.m (+abbreviationDictionary): Retain dictionary + (Fixes bug #11516). Copyright @copyright{} 2005 Free Software Foundation diff --git a/Headers/Foundation/NSDateComponentsFormatter.h b/Headers/Foundation/NSDateComponentsFormatter.h index 4c253ba6c..7d691d983 100644 --- a/Headers/Foundation/NSDateComponentsFormatter.h +++ b/Headers/Foundation/NSDateComponentsFormatter.h @@ -105,7 +105,7 @@ GS_EXPORT_CLASS - (void) setZeroFormattingBehavior: (NSDateComponentsFormatterZeroFormattingBehavior)behavior; - (NSCalendar *) calendar; -- (void) setCalender: (NSCalendar *)calendar; +- (void) setCalendar: (NSCalendar *)calendar; - (NSDate *) referenceDate; - (void) setReferenceDate: (NSDate *)referenceDate; diff --git a/Headers/Foundation/NSDateIntervalFormatter.h b/Headers/Foundation/NSDateIntervalFormatter.h index b69ad7eec..dc7438370 100644 --- a/Headers/Foundation/NSDateIntervalFormatter.h +++ b/Headers/Foundation/NSDateIntervalFormatter.h @@ -25,7 +25,7 @@ #ifndef _NSDateIntervalFormatter_h_GNUSTEP_BASE_INCLUDE #define _NSDateIntervalFormatter_h_GNUSTEP_BASE_INCLUDE -#include +#import #if defined(__cplusplus) extern "C" { @@ -47,26 +47,26 @@ typedef NSUInteger NSDateIntervalFormatterStyle; GS_EXPORT_CLASS @interface NSDateIntervalFormatter : NSFormatter { - NSLocale *_locale; - NSCalendar *_calendar; - NSTimeZone *_timeZone; - NSString *_dateTemplate; - NSDateIntervalFormatterStyle _dateStyle; - NSDateIntervalFormatterStyle _timeStyle; + NSLocale *_locale; + NSCalendar *_calendar; + NSTimeZone *_timeZone; + NSString *_dateTemplate; + NSDateIntervalFormatterStyle _dateStyle; + NSDateIntervalFormatterStyle _timeStyle; } // Properties -- (NSLocale *) locale; -- (void) setLocale: (NSLocale *)locale; +- (NSLocale*) locale; +- (void) setLocale: (NSLocale*)locale; -- (NSCalendar *) calendar; -- (void) setCalendar: (NSCalendar *)calendar; +- (NSCalendar*) calendar; +- (void) setCalendar: (NSCalendar*)calendar; -- (NSTimeZone *) timeZone; -- (void) setTimeZone: (NSTimeZone *)timeZone; +- (NSTimeZone*) timeZone; +- (void) setTimeZone: (NSTimeZone*)timeZone; -- (NSString *) dateTemplate; -- (void) setDateTemplate: (NSString *)dateTemplate; +- (NSString*) dateTemplate; +- (void) setDateTemplate: (NSString*)dateTemplate; - (NSDateIntervalFormatterStyle) dateStyle; - (void) setDateStyle: (NSDateIntervalFormatterStyle)dateStyle; @@ -75,9 +75,9 @@ GS_EXPORT_CLASS - (void) setTimeStyle: (NSDateIntervalFormatterStyle)timeStyle; // Create strings -- (NSString *)stringFromDate:(NSDate *)fromDate toDate:(NSDate *)toDate; +- (NSString*) stringFromDate: (NSDate*)fromDate toDate: (NSDate*)toDate; -- (NSString *)stringFromDateInterval:(NSDateInterval *)dateInterval; +- (NSString*) stringFromDateInterval: (NSDateInterval*)dateInterval; @end diff --git a/Headers/Foundation/NSLinguisticTagger.h b/Headers/Foundation/NSLinguisticTagger.h index 7a835c2bc..2addbb4e0 100644 --- a/Headers/Foundation/NSLinguisticTagger.h +++ b/Headers/Foundation/NSLinguisticTagger.h @@ -105,8 +105,8 @@ enum }; typedef NSUInteger NSLinguisticTaggerOptions; -DEFINE_BLOCK_TYPE(GSLinguisticTagRangeBoolBlock, void, NSLinguisticTag, NSRange, BOOL); -DEFINE_BLOCK_TYPE(GSLinguisticTagRangeRangeBoolBlock, void, NSLinguisticTag, NSRange, NSRange, BOOL); +DEFINE_BLOCK_TYPE(GSLinguisticTagRangeBoolBlock, void, NSLinguisticTag, NSRange, BOOL*); +DEFINE_BLOCK_TYPE(GSLinguisticTagRangeRangeBoolBlock, void, NSLinguisticTag, NSRange, NSRange, BOOL*); GS_EXPORT_CLASS @interface NSLinguisticTagger : NSObject diff --git a/Headers/Foundation/NSMassFormatter.h b/Headers/Foundation/NSMassFormatter.h index 142dc8792..cc98a02d4 100644 --- a/Headers/Foundation/NSMassFormatter.h +++ b/Headers/Foundation/NSMassFormatter.h @@ -44,7 +44,7 @@ typedef NSInteger NSMassFormatterUnit; @class NSNumberFormatter; GS_EXPORT_CLASS -@interface NSMassFormatter : NSObject +@interface NSMassFormatter : NSFormatter { NSNumberFormatter *_numberFormatter; BOOL _isForPersonMassUse; diff --git a/Headers/Foundation/NSUnit.h b/Headers/Foundation/NSUnit.h index 0f5240b3f..2ee49f2a4 100644 --- a/Headers/Foundation/NSUnit.h +++ b/Headers/Foundation/NSUnit.h @@ -37,13 +37,13 @@ extern "C" { */ GS_EXPORT_CLASS @interface NSUnitConverter : NSObject -/** - * For a given unit, returns the specified value of that unit based on the units dimension. +/** For a given unit, returns the specified value of that unit based + * on the units dimension. */ - (double) baseUnitValueFromValue: (double)value; -/** - * For a unit, returns the specified value of the base unit in terms of that unit. +/** For a unit, returns the specified value of the base unit in terms + * of that unit. */ - (double) valueFromBaseUnitValue: (double)baseUnitValue; @end @@ -96,12 +96,12 @@ GS_EXPORT_CLASS /** * Initialize NSUnit with a given symbol. */ -- (instancetype) initWithSymbol: (NSString *)symbol; +- (instancetype) initWithSymbol: (NSString*)symbol; /** * The symbol used by a given unit. */ -- (NSString *) symbol; +- (NSString*) symbol; @end @@ -111,19 +111,20 @@ GS_EXPORT_CLASS GS_EXPORT_CLASS @interface NSDimension : NSUnit { - double _value; - NSUnitConverter *_converter; + double _value; + NSUnitConverter *_converter; } /** * The NSUnitConverter instance used for this NSDimension object. */ -- (NSUnitConverter *) converter; +- (NSUnitConverter*) converter; /** * Initialize with symbol and an NSUnitConverter. */ -- (instancetype) initWithSymbol: (NSString *)symbol converter: (NSUnitConverter *)converter; +- (instancetype) initWithSymbol: (NSString*)symbol + converter: (NSUnitConverter*)converter; /** * Return a base unit. @@ -142,12 +143,12 @@ GS_EXPORT_CLASS /** * Units of accelleration in meters per second squared. */ -+ (NSUnitAcceleration *) metersPerSecondSquared; ++ (NSUnitAcceleration*) metersPerSecondSquared; /** * Units of accelleration equal to the gravitational constant. */ -+ (NSUnitAcceleration *) gravity; ++ (NSUnitAcceleration*) gravity; @end @@ -160,32 +161,32 @@ GS_EXPORT_CLASS /** * Units of angle in degrees. */ -+ (NSUnitAngle *) degrees; ++ (NSUnitAngle*) degrees; /** * Units of angle in arc minutes. */ -+ (NSUnitAngle *) arcMinutes; ++ (NSUnitAngle*) arcMinutes; /** * Units of angle arc seconds. */ -+ (NSUnitAngle *) arcSeconds; ++ (NSUnitAngle*) arcSeconds; /** * Units of angle in radians. */ -+ (NSUnitAngle *) radians; ++ (NSUnitAngle*) radians; /** * Units of area in square megameters. */ -+ (NSUnitAngle *) gradians; ++ (NSUnitAngle*) gradians; /** * Units of area in square megameters. */ -+ (NSUnitAngle *) revolutions; ++ (NSUnitAngle*) revolutions; @end @@ -198,72 +199,72 @@ GS_EXPORT_CLASS /** * Units of area in square megameters. */ -+ (NSUnitArea *) squareMegameters; ++ (NSUnitArea*) squareMegameters; /** * Units of area in square kilometers. */ -+ (NSUnitArea *) squareKilometers; ++ (NSUnitArea*) squareKilometers; /** * Units of area in square meters. */ -+ (NSUnitArea *) squareMeters; ++ (NSUnitArea*) squareMeters; /** * Units of area in square centimeters. */ -+ (NSUnitArea *) squareCentimeters; ++ (NSUnitArea*) squareCentimeters; /** * Units of area in square millimeters. */ -+ (NSUnitArea *) squareMillimeters; ++ (NSUnitArea*) squareMillimeters; /** * Units of area in square micrometers. */ -+ (NSUnitArea *) squareMicrometers; ++ (NSUnitArea*) squareMicrometers; /** * Units of area in square nanometers. */ -+ (NSUnitArea *) squareNanometers; ++ (NSUnitArea*) squareNanometers; /** * Units of area in square inches. */ -+ (NSUnitArea *) squareInches; ++ (NSUnitArea*) squareInches; /** * Units of area in square feet. */ -+ (NSUnitArea *) squareFeet; ++ (NSUnitArea*) squareFeet; /** * Units of area in square yards. */ -+ (NSUnitArea *) squareYards; ++ (NSUnitArea*) squareYards; /** * Units of area in square miles. */ -+ (NSUnitArea *) squareMiles; ++ (NSUnitArea*) squareMiles; /** * Units of area in acres/ */ -+ (NSUnitArea *) acres; ++ (NSUnitArea*) acres; /** * Units of area in ares. */ -+ (NSUnitArea *) ares; ++ (NSUnitArea*) ares; /** * Units of area in hectares. */ -+ (NSUnitArea *) hectares; ++ (NSUnitArea*) hectares; @end @@ -276,17 +277,18 @@ GS_EXPORT_CLASS /** * Concentration units in grams per liter. */ -+ (NSUnitConcentrationMass *) gramsPerLiter; ++ (NSUnitConcentrationMass*) gramsPerLiter; /** * Concentration units in milligrams per deciliter. */ -+ (NSUnitConcentrationMass *) milligramsPerDeciliter; ++ (NSUnitConcentrationMass*) milligramsPerDeciliter; /** * Concentration units in grams per mole. */ -+ (NSUnitConcentrationMass *) millimolesPerLiterWithGramsPerMole: (double)gramsPerMole; ++ (NSUnitConcentrationMass*) millimolesPerLiterWithGramsPerMole: + (double)gramsPerMole; @end @@ -299,7 +301,7 @@ GS_EXPORT_CLASS /** * Units of dispersion in parts per million. */ -+ (NSUnitDispersion *) partsPerMillion; ++ (NSUnitDispersion*) partsPerMillion; @end @@ -312,17 +314,17 @@ GS_EXPORT_CLASS /** * Units of duration in seconds. */ -+ (NSUnitDuration *) seconds; ++ (NSUnitDuration*) seconds; /** * Units of duration in minutes. */ -+ (NSUnitDuration *) minutes; ++ (NSUnitDuration*) minutes; /** * Units of duration in hours. */ -+ (NSUnitDuration *) hours; ++ (NSUnitDuration*) hours; @end @@ -335,32 +337,32 @@ GS_EXPORT_CLASS /** * The units of eletric charge in coulombs. */ -+ (NSUnitElectricCharge *) coulombs; ++ (NSUnitElectricCharge*) coulombs; /** * The units of eletric charge in megaampere hours. */ -+ (NSUnitElectricCharge *) megaampereHours; ++ (NSUnitElectricCharge*) megaampereHours; /** * The units of eletric charge in kiloampere hours. */ -+ (NSUnitElectricCharge *) kiloampereHours; ++ (NSUnitElectricCharge*) kiloampereHours; /** * The units of eletric charge in ampere hours. */ -+ (NSUnitElectricCharge *) ampereHours; ++ (NSUnitElectricCharge*) ampereHours; /** * The units of eletric charge in milliampere hours. */ -+ (NSUnitElectricCharge *) milliampereHours; ++ (NSUnitElectricCharge*) milliampereHours; /** * The units of eletric charge in microampere hours. */ -+ (NSUnitElectricCharge *) microampereHours; ++ (NSUnitElectricCharge*) microampereHours; @end @@ -373,27 +375,27 @@ GS_EXPORT_CLASS /** * The units of eletric current in megaamperes. */ -+ (NSUnitElectricCurrent *) megaamperes; ++ (NSUnitElectricCurrent*) megaamperes; /** * The units of eletric current in kiloamperes. */ -+ (NSUnitElectricCurrent *) kiloamperes; ++ (NSUnitElectricCurrent*) kiloamperes; /** * The units of eletric current in amperes. */ -+ (NSUnitElectricCurrent *) amperes; ++ (NSUnitElectricCurrent*) amperes; /** * The units of eletric current in milliamperes. */ -+ (NSUnitElectricCurrent *) milliamperes; ++ (NSUnitElectricCurrent*) milliamperes; /** * The units of eletric current in microamperes. */ -+ (NSUnitElectricCurrent *) microamperes; ++ (NSUnitElectricCurrent*) microamperes; @end @@ -406,27 +408,27 @@ GS_EXPORT_CLASS /** * The units of eletric potential in megavolts. */ -+ (NSUnitElectricPotentialDifference *) megavolts; ++ (NSUnitElectricPotentialDifference*) megavolts; /** * The units of eletric potential in kilovolts. */ -+ (NSUnitElectricPotentialDifference *) kilovolts; ++ (NSUnitElectricPotentialDifference*) kilovolts; /** * The units of eletric potential in volts. */ -+ (NSUnitElectricPotentialDifference *) volts; ++ (NSUnitElectricPotentialDifference*) volts; /** * The units of eletric potential in millivolts. */ -+ (NSUnitElectricPotentialDifference *) millivolts; ++ (NSUnitElectricPotentialDifference*) millivolts; /** * The units of eletric potential in microvolts. */ -+ (NSUnitElectricPotentialDifference *) microvolts; ++ (NSUnitElectricPotentialDifference*) microvolts; @end @@ -439,27 +441,27 @@ GS_EXPORT_CLASS /** * The units of eletric resistance in megaohms. */ -+ (NSUnitElectricResistance *) megaohms; ++ (NSUnitElectricResistance*) megaohms; /** * The units of eletric resistance in kiloohms. */ -+ (NSUnitElectricResistance *) kiloohms; ++ (NSUnitElectricResistance*) kiloohms; /** * The units of eletric resistance in ohms. */ -+ (NSUnitElectricResistance *) ohms; ++ (NSUnitElectricResistance*) ohms; /** * The units of eletric resistance in milliohms. */ -+ (NSUnitElectricResistance *) milliohms; ++ (NSUnitElectricResistance*) milliohms; /** * The units of eletric resistance in microohms. */ -+ (NSUnitElectricResistance *) microohms; ++ (NSUnitElectricResistance*) microohms; @end @@ -472,27 +474,27 @@ GS_EXPORT_CLASS /** * The units of energy in kilojoules. */ -+ (NSUnitEnergy *) kilojoules; ++ (NSUnitEnergy*) kilojoules; /** * The units of energy in joules. */ -+ (NSUnitEnergy *) joules; ++ (NSUnitEnergy*) joules; /** * The units of energy in kilocalories. */ -+ (NSUnitEnergy *) kilocalories; ++ (NSUnitEnergy*) kilocalories; /** * The units of energy in calories. */ -+ (NSUnitEnergy *) calories; ++ (NSUnitEnergy*) calories; /** * The units of energy in kilawatt hours. */ -+ (NSUnitEnergy *) kilowattHours; ++ (NSUnitEnergy*) kilowattHours; @end @@ -505,42 +507,42 @@ GS_EXPORT_CLASS /** * The units of frequency in terahertz. */ -+ (NSUnitFrequency *) terahertz; ++ (NSUnitFrequency*) terahertz; /** * The units of frequency in gigahertz. */ -+ (NSUnitFrequency *) gigahertz; ++ (NSUnitFrequency*) gigahertz; /** * The units of frequency in megahertz. */ -+ (NSUnitFrequency *) megahertz; ++ (NSUnitFrequency*) megahertz; /** * The units of frequency in kilohertz. */ -+ (NSUnitFrequency *) kilohertz; ++ (NSUnitFrequency*) kilohertz; /** * The units of frequency in hertz. */ -+ (NSUnitFrequency *) hertz; ++ (NSUnitFrequency*) hertz; /** * The units of frequency in millihertz. */ -+ (NSUnitFrequency *) millihertz; ++ (NSUnitFrequency*) millihertz; /** * The units of frequency in microhertz. */ -+ (NSUnitFrequency *) microhertz; ++ (NSUnitFrequency*) microhertz; /** * The units of frequency in nanohertz. */ -+ (NSUnitFrequency *) nanohertz; ++ (NSUnitFrequency*) nanohertz; @end @@ -553,17 +555,17 @@ GS_EXPORT_CLASS /** * The units of fuel efficiency in liters per 100 kilometers. */ -+ (NSUnitFuelEfficiency *) litersPer100Kilometers; ++ (NSUnitFuelEfficiency*) litersPer100Kilometers; /** * The units of fuel efficiency in miles per imperial gallon. */ -+ (NSUnitFuelEfficiency *) milesPerImperialGallon; ++ (NSUnitFuelEfficiency*) milesPerImperialGallon; /** * The units of fuel efficiency in miles per gallon. */ -+ (NSUnitFuelEfficiency *) milesPerGallon; ++ (NSUnitFuelEfficiency*) milesPerGallon; @end @@ -576,112 +578,112 @@ GS_EXPORT_CLASS /** * The units of length in megameters. */ -+ (NSUnitLength *) megameters; ++ (NSUnitLength*) megameters; /** * The units of length in kilometers. */ -+ (NSUnitLength *) kilometers; ++ (NSUnitLength*) kilometers; /** * The units of length in hectometers. */ -+ (NSUnitLength *) hectometers; ++ (NSUnitLength*) hectometers; /** * The units of length in decameters. */ -+ (NSUnitLength *) decameters; ++ (NSUnitLength*) decameters; /** * The units of length in meters. */ -+ (NSUnitLength *) meters; ++ (NSUnitLength*) meters; /** * The units of length in decimeters. */ -+ (NSUnitLength *) decimeters; ++ (NSUnitLength*) decimeters; /** * The units of length in centimeters. */ -+ (NSUnitLength *) centimeters; ++ (NSUnitLength*) centimeters; /** * The units of length in millimeters. */ -+ (NSUnitLength *) millimeters; ++ (NSUnitLength*) millimeters; /** * The units of length in micrometers. */ -+ (NSUnitLength *) micrometers; ++ (NSUnitLength*) micrometers; /** * The units of length in nanometers. */ -+ (NSUnitLength *) nanometers; ++ (NSUnitLength*) nanometers; /** * The units of length in picometers. */ -+ (NSUnitLength *) picometers; ++ (NSUnitLength*) picometers; /** * The units of length in inches. */ -+ (NSUnitLength *) inches; ++ (NSUnitLength*) inches; /** * The units of length in feet. */ -+ (NSUnitLength *) feet; ++ (NSUnitLength*) feet; /** * The units of length in yards. */ -+ (NSUnitLength *) yards; ++ (NSUnitLength*) yards; /** * The units of length in miles. */ -+ (NSUnitLength *) miles; ++ (NSUnitLength*) miles; /** * The units of length in scandanavian miles. */ -+ (NSUnitLength *) scandinavianMiles; ++ (NSUnitLength*) scandinavianMiles; /** * The units of length in light years. */ -+ (NSUnitLength *) lightyears; ++ (NSUnitLength*) lightyears; /** * The units of length in nautical miles. */ -+ (NSUnitLength *) nauticalMiles; ++ (NSUnitLength*) nauticalMiles; /** * The units of length in fathoms. */ -+ (NSUnitLength *) fathoms; ++ (NSUnitLength*) fathoms; /** * The units of length in furlongs. */ -+ (NSUnitLength *) furlongs; ++ (NSUnitLength*) furlongs; /** * The units of length in astronomical units. */ -+ (NSUnitLength *) astronomicalUnits; ++ (NSUnitLength*) astronomicalUnits; /** * The units of length in parsecs. */ -+ (NSUnitLength *) parsecs; ++ (NSUnitLength*) parsecs; @end @@ -694,7 +696,7 @@ GS_EXPORT_CLASS /** * The units of illuminance in lux. */ -+ (NSUnitIlluminance *) lux; ++ (NSUnitIlluminance*) lux; @end @@ -707,82 +709,82 @@ GS_EXPORT_CLASS /** * The mass units in kilograms. */ -+ (NSUnitMass *) kilograms; ++ (NSUnitMass*) kilograms; /** * The mass units in grams. */ -+ (NSUnitMass *) grams; ++ (NSUnitMass*) grams; /** * The mass units in decigrams. */ -+ (NSUnitMass *) decigrams; ++ (NSUnitMass*) decigrams; /** * The mass units in centigrams. */ -+ (NSUnitMass *) centigrams; ++ (NSUnitMass*) centigrams; /** * The mass units in milligrams. */ -+ (NSUnitMass *) milligrams; ++ (NSUnitMass*) milligrams; /** * The mass units in micrograms. */ -+ (NSUnitMass *) micrograms; ++ (NSUnitMass*) micrograms; /** * The mass units in nanograms. */ -+ (NSUnitMass *) nanograms; ++ (NSUnitMass*) nanograms; /** * The mass units in picograms. */ -+ (NSUnitMass *) picograms; ++ (NSUnitMass*) picograms; /** * The mass units in ounces. */ -+ (NSUnitMass *) ounces; ++ (NSUnitMass*) ounces; /** * The mass units in pounds. */ -+ (NSUnitMass *) pounds; ++ (NSUnitMass*) pounds; /** * The mass units in stones. */ -+ (NSUnitMass *) stones; ++ (NSUnitMass*) stones; /** * The mass units in metric tons. */ -+ (NSUnitMass *) metricTons; ++ (NSUnitMass*) metricTons; /** * The mass units in short tons. */ -+ (NSUnitMass *) shortTons; ++ (NSUnitMass*) shortTons; /** * The mass units in carats. */ -+ (NSUnitMass *) carats; ++ (NSUnitMass*) carats; /** * The mass units in ounces troy. */ -+ (NSUnitMass *) ouncesTroy; ++ (NSUnitMass*) ouncesTroy; /** * The mass units in slugs. */ -+ (NSUnitMass *) slugs; ++ (NSUnitMass*) slugs; @end @@ -795,62 +797,62 @@ GS_EXPORT_CLASS /** * The power units in terawatts. */ -+ (NSUnitPower *) terawatts; ++ (NSUnitPower*) terawatts; /** * The power units in gigawatts. */ -+ (NSUnitPower *) gigawatts; ++ (NSUnitPower*) gigawatts; /** * The power units in megawatts. */ -+ (NSUnitPower *) megawatts; ++ (NSUnitPower*) megawatts; /** * The power units in kilowatts. */ -+ (NSUnitPower *) kilowatts; ++ (NSUnitPower*) kilowatts; /** * The power units in watts. */ -+ (NSUnitPower *) watts; ++ (NSUnitPower*) watts; /** * The power units in milliwatts. */ -+ (NSUnitPower *) milliwatts; ++ (NSUnitPower*) milliwatts; /** * The power units in microwatts. */ -+ (NSUnitPower *) microwatts; ++ (NSUnitPower*) microwatts; /** * The power units in nanowatts. */ -+ (NSUnitPower *) nanowatts; ++ (NSUnitPower*) nanowatts; /** * The power units in picowatts. */ -+ (NSUnitPower *) picowatts; ++ (NSUnitPower*) picowatts; /** * The power units in femtowatts. */ -+ (NSUnitPower *) femtowatts; ++ (NSUnitPower*) femtowatts; /** * The power units in horsepower. */ -+ (NSUnitPower *) horsepower; ++ (NSUnitPower*) horsepower; @end -/** - * Used to represent pressure. Base unit - newtonsPerMetersSquared (equivalent to 1 pascal) +/** Used to represent pressure. Base unit - newtonsPerMetersSquared + * (equivalent to 1 pascal) */ GS_EXPORT_CLASS @interface NSUnitPressure : NSDimension @@ -858,52 +860,52 @@ GS_EXPORT_CLASS /** * The newtons per meters squared unit of pressure. */ -+ (NSUnitPressure *) newtonsPerMetersSquared; ++ (NSUnitPressure*) newtonsPerMetersSquared; /** * The gigapascals unit of pressure. */ -+ (NSUnitPressure *) gigapascals; ++ (NSUnitPressure*) gigapascals; /** * The megapascals unit of pressure. */ -+ (NSUnitPressure *) megapascals; ++ (NSUnitPressure*) megapascals; /** * The kilopascals unit of pressure. */ -+ (NSUnitPressure *) kilopascals; ++ (NSUnitPressure*) kilopascals; /** * The hetcopascals unit of pressure. */ -+ (NSUnitPressure *) hectopascals; ++ (NSUnitPressure*) hectopascals; /** * The inches of mercury unit of pressure. */ -+ (NSUnitPressure *) inchesOfMercury; ++ (NSUnitPressure*) inchesOfMercury; /** * The bars unit of pressure. */ -+ (NSUnitPressure *) bars; ++ (NSUnitPressure*) bars; /** * The millibars unit of pressure. */ -+ (NSUnitPressure *) millibars; ++ (NSUnitPressure*) millibars; /** * The millimeters of mercury of pressure. */ -+ (NSUnitPressure *) millimetersOfMercury; ++ (NSUnitPressure*) millimetersOfMercury; /** * The pounds of per square inch of pressure. */ -+ (NSUnitPressure *) poundsForcePerSquareInch; ++ (NSUnitPressure*) poundsForcePerSquareInch; @end @@ -916,22 +918,22 @@ GS_EXPORT_CLASS /** * The meters per second measurement of speed. */ -+ (NSUnitSpeed *) metersPerSecond; ++ (NSUnitSpeed*) metersPerSecond; /** * The kilometers per hour measurement of speed. */ -+ (NSUnitSpeed *) kilometersPerHour; ++ (NSUnitSpeed*) kilometersPerHour; /** * The miles per hour measurement of speed. */ -+ (NSUnitSpeed *) milesPerHour; ++ (NSUnitSpeed*) milesPerHour; /** * The knots measurement of speed. */ -+ (NSUnitSpeed *) knots; ++ (NSUnitSpeed*) knots; @end @@ -945,17 +947,17 @@ GS_EXPORT_CLASS /** * The kelvin unit of temperature. */ -+ (NSUnitTemperature *) kelvin; ++ (NSUnitTemperature*) kelvin; /** * The kelvin unit of celsius. */ -+ (NSUnitTemperature *) celsius; ++ (NSUnitTemperature*) celsius; /** * The kelvin unit of fahenheit. */ -+ (NSUnitTemperature *) fahrenheit; ++ (NSUnitTemperature*) fahrenheit; @end @@ -969,157 +971,157 @@ GS_EXPORT_CLASS /** * The megaliters unit of volume. */ -+ (NSUnitVolume *) megaliters; ++ (NSUnitVolume*) megaliters; /** * The kiloliters unit of volume. */ -+ (NSUnitVolume *) kiloliters; ++ (NSUnitVolume*) kiloliters; /** * The liters unit of volume. */ -+ (NSUnitVolume *) liters; ++ (NSUnitVolume*) liters; /** * The deciliters unit of volume. */ -+ (NSUnitVolume *) deciliters; ++ (NSUnitVolume*) deciliters; /** * The centiliters unit of volume. */ -+ (NSUnitVolume *) centiliters; ++ (NSUnitVolume*) centiliters; /** * The milliliters unit of volume. */ -+ (NSUnitVolume *) milliliters; ++ (NSUnitVolume*) milliliters; /** * The cubic kilometers unit of volume. */ -+ (NSUnitVolume *) cubicKilometers; ++ (NSUnitVolume*) cubicKilometers; /** * The cubic meters unit of volume. */ -+ (NSUnitVolume *) cubicMeters; ++ (NSUnitVolume*) cubicMeters; /** * The cubic decimeters unit of volume. */ -+ (NSUnitVolume *) cubicDecimeters; ++ (NSUnitVolume*) cubicDecimeters; /** * The cubic centimeteres unit of volume. */ -+ (NSUnitVolume *) cubicCentimeters; ++ (NSUnitVolume*) cubicCentimeters; /** * The cubic millimeters unit of volume. */ -+ (NSUnitVolume *) cubicMillimeters; ++ (NSUnitVolume*) cubicMillimeters; /** * The cubic inches unit of volume. */ -+ (NSUnitVolume *) cubicInches; ++ (NSUnitVolume*) cubicInches; /** * The cubic feet unit of volume. */ -+ (NSUnitVolume *) cubicFeet; ++ (NSUnitVolume*) cubicFeet; /** * The cubic yards unit of volume. */ -+ (NSUnitVolume *) cubicYards; ++ (NSUnitVolume*) cubicYards; /** * The cubic miles unit of volume. */ -+ (NSUnitVolume *) cubicMiles; ++ (NSUnitVolume*) cubicMiles; /** * The acre feet unit of volume. */ -+ (NSUnitVolume *) acreFeet; ++ (NSUnitVolume*) acreFeet; /** * The bushels unit of volume. */ -+ (NSUnitVolume *) bushels; ++ (NSUnitVolume*) bushels; /** * The teaspoons unit of volume. */ -+ (NSUnitVolume *) teaspoons; ++ (NSUnitVolume*) teaspoons; /** * The tablespoons unit of volume. */ -+ (NSUnitVolume *) tablespoons; ++ (NSUnitVolume*) tablespoons; /** * The fluid ounces unit of volume. */ -+ (NSUnitVolume *) fluidOunces; ++ (NSUnitVolume*) fluidOunces; /** * The cups unit of volume. */ -+ (NSUnitVolume *) cups; ++ (NSUnitVolume*) cups; /** * The pints unit of volume. */ -+ (NSUnitVolume *) pints; ++ (NSUnitVolume*) pints; /** * The quarts unit of volume. */ -+ (NSUnitVolume *) quarts; ++ (NSUnitVolume*) quarts; /** * The gallons unit of volume. */ -+ (NSUnitVolume *) gallons; ++ (NSUnitVolume*) gallons; /** * The imperial teaspoons unit of volume. */ -+ (NSUnitVolume *) imperialTeaspoons; ++ (NSUnitVolume*) imperialTeaspoons; /** * The imperial tablespoons unit of volume. */ -+ (NSUnitVolume *) imperialTablespoons; ++ (NSUnitVolume*) imperialTablespoons; /** * The imperial fluid ounces unit of volume. */ -+ (NSUnitVolume *) imperialFluidOunces; ++ (NSUnitVolume*) imperialFluidOunces; /** * The imperial pints unit of volume. */ -+ (NSUnitVolume *) imperialPints; ++ (NSUnitVolume*) imperialPints; /** * The imperial quarts unit of volume. */ -+ (NSUnitVolume *) imperialQuarts; ++ (NSUnitVolume*) imperialQuarts; /** * The imperial gallons unit of volume. */ -+ (NSUnitVolume *) imperialGallons; ++ (NSUnitVolume*) imperialGallons; /** * The metric cups unit of volume. */ -+ (NSUnitVolume *) metricCups; ++ (NSUnitVolume*) metricCups; @end diff --git a/Source/NSByteCountFormatter.m b/Source/NSByteCountFormatter.m index 8fd360962..26bf5dde5 100644 --- a/Source/NSByteCountFormatter.m +++ b/Source/NSByteCountFormatter.m @@ -34,27 +34,29 @@ #define EXPOSE_NSByteCountFormatter_IVARS 1 -#import -#import -#import -#import -#import -#import -#import +#import "Foundation/NSArchiver.h" +#import "Foundation/NSKeyedArchiver.h" +#import "Foundation/NSByteCountFormatter.h" +#import "Foundation/NSString.h" +#import "Foundation/NSAttributedString.h" +#import "Foundation/NSDictionary.h" +#import "Foundation/NSError.h" +#import "Foundation/NSLocale.h" +#import "Foundation/NSValue.h" #define GSInternal NSByteCountFormatterInternal #include "GSInternal.h" GS_PRIVATE_INTERNAL(NSByteCountFormatter) // Unit definitions... -#define KB (double)1024.0 -#define MB (double)(1024.0 * 1024.0) -#define GB (double)(1024.0 * 1024.0 * 1024.0) -#define TB (double)(1024.0 * 1024.0 * 1024.0 * 1024.0) -#define PB (double)(1024.0 * 1024.0 * 1024.0 * 1024.0 * 1024.0) -#define EB (double)(1024.0 * 1024.0 * 1024.0 * 1024.0 * 1024.0 * 1024.0) -#define ZB (double)(1024.0 * 1024.0 * 1024.0 * 1024.0 * 1024.0 * 1024.0 * 1024.0) -#define YB (double)(1024.0 * 1024.0 * 1024.0 * 1024.0 * 1024.0 * 1024.0 * 1024.0 * 1024.0) +#define KB ((double)1024.0) +#define MB (KB * 1024.0) +#define GB (MB * 1024.0) +#define TB (GB * 1024.0) +#define PB (TB * 1024.0) +#define EB (PB * 1024.0) +#define ZB (EB * 1024.0) +#define YB (ZB * 1024.0) @implementation NSByteCountFormatter @@ -81,9 +83,9 @@ - (NSString*) stringForObjectValue: (id)obj - (NSByteCountFormatterUnits) _adaptiveSettings: (double)byteCount { - NSByteCountFormatterUnits units = NSByteCountFormatterUseDefault; + NSByteCountFormatterUnits units = NSByteCountFormatterUseBytes; - if (byteCount >= KB || byteCount == 0.0) + if (byteCount >= KB) { units = NSByteCountFormatterUseKB; } @@ -209,6 +211,15 @@ - (NSString*) stringFromByteCount: (long long)byteCount return result; } +- (void) dealloc +{ + if (GS_EXISTS_INTERNAL) + { + GS_DESTROY_INTERNAL(NSByteCountFormatter) + } + DEALLOC +} + - (id) init { if (nil == (self = [super init])) @@ -318,5 +329,70 @@ - (void) setZeroPadsFractionDigits: (BOOL)flag internal->_zeroPadsFractionDigits = flag; } -@end +- (id) initWithCoder: (NSCoder *)coder +{ + if (nil == (self = [super init])) + { + return nil; + } + + GS_CREATE_INTERNAL(NSByteCountFormatter); + if ([coder allowsKeyedCoding]) + { + internal->_formattingContext = [coder decodeIntegerForKey: @"NSFormattingContext"]; + internal->_countStyle = [coder decodeIntegerForKey: @"NSCountStyle"]; + internal->_allowsNonnumericFormatting = !([coder decodeBoolForKey: @"NSNoNonnumeric"]); + internal->_includesActualByteCount = [coder decodeBoolForKey: @"NSIncludesActualByteCount"]; + internal->_adaptive = !([coder decodeBoolForKey: @"NSNoAdaptive"]); + internal->_allowedUnits = [coder decodeIntegerForKey: @"NSAllowedUnits"]; + internal->_includesCount = !([coder decodeBoolForKey: @"NSNoCount"]); + internal->_includesUnit = !([coder decodeBoolForKey: @"NSNoUnit"]); + internal->_zeroPadsFractionDigits = [coder decodeBoolForKey: @"NSZeroPad"]; + } + else + { + [coder decodeValueOfObjCType: @encode(NSFormattingContext) at: &internal->_formattingContext]; + [coder decodeValueOfObjCType: @encode(NSByteCountFormatterCountStyle) at: &internal->_countStyle]; + [coder decodeValueOfObjCType: @encode(BOOL) at: &internal->_allowsNonnumericFormatting]; + [coder decodeValueOfObjCType: @encode(BOOL) at: &internal->_includesActualByteCount]; + [coder decodeValueOfObjCType: @encode(BOOL) at: &internal->_adaptive]; + [coder decodeValueOfObjCType: @encode(NSByteCountFormatterUnits) at: &internal->_allowedUnits]; + [coder decodeValueOfObjCType: @encode(BOOL) at: &internal->_includesCount]; + [coder decodeValueOfObjCType: @encode(BOOL) at: &internal->_includesUnit]; + [coder decodeValueOfObjCType: @encode(BOOL) at: &internal->_zeroPadsFractionDigits]; + } + + return self; +} + +- (void) encodeWithCoder: (NSCoder *)coder +{ + [super encodeWithCoder: coder]; + if ([coder allowsKeyedCoding]) + { + [coder encodeInteger: internal->_formattingContext forKey: @"NSFormattingContext"]; + [coder encodeInteger: internal->_countStyle forKey: @"NSCountStyle"]; + [coder encodeBool: !(internal->_allowsNonnumericFormatting) forKey: @"NSNoNonnumeric"]; + [coder encodeBool: internal->_includesActualByteCount forKey: @"NSIncludesActualByteCount"]; + [coder encodeBool: !(internal->_adaptive) forKey: @"NSNoAdaptive"]; + [coder encodeInteger: internal->_allowedUnits forKey: @"NSAllowedUnits"]; + [coder encodeBool: !(internal->_includesCount) forKey: @"NSNoCount"]; + [coder encodeBool: !(internal->_includesUnit) forKey: @"NSNoUnit"]; + [coder encodeBool: internal->_zeroPadsFractionDigits forKey: @"NSZeroPad"]; + } + else + { + [coder encodeValueOfObjCType: @encode(NSFormattingContext) at: &internal->_formattingContext]; + [coder encodeValueOfObjCType: @encode(NSByteCountFormatterCountStyle) at: &internal->_countStyle]; + [coder encodeValueOfObjCType: @encode(BOOL) at: &internal->_allowsNonnumericFormatting]; + [coder encodeValueOfObjCType: @encode(BOOL) at: &internal->_includesActualByteCount]; + [coder encodeValueOfObjCType: @encode(BOOL) at: &internal->_adaptive]; + [coder encodeValueOfObjCType: @encode(NSByteCountFormatterUnits) at: &internal->_allowedUnits]; + [coder encodeValueOfObjCType: @encode(BOOL) at: &internal->_includesCount]; + [coder encodeValueOfObjCType: @encode(BOOL) at: &internal->_includesUnit]; + [coder encodeValueOfObjCType: @encode(BOOL) at: &internal->_zeroPadsFractionDigits]; + } +} + +@end diff --git a/Source/NSCalendar.m b/Source/NSCalendar.m index 36ea85651..9b0c85b9f 100644 --- a/Source/NSCalendar.m +++ b/Source/NSCalendar.m @@ -82,11 +82,11 @@ static UCalendarDateFields _NSCalendarUnitToDateField(NSCalendarUnit unit) #define my ((Calendar*)_NSCalendarInternal) @interface NSCalendar (PrivateMethods) -- (void *) _openCalendarFor: (NSTimeZone *)timeZone; +- (void*) _openCalendarFor: (NSTimeZone*)timeZone; - (void) _resetCalendar; -- (void *) _UCalendar; -- (NSString *) _localeIDWithLocale: (NSLocale*)locale; -- (NSString *) _localeIdentifier; +- (void*) _UCalendar; +- (NSString*) _localeIDWithLocale: (NSLocale*)locale; +- (NSString*) _localeIdentifier; - (void) _setLocaleIdentifier: (NSString*)identifier; @end @@ -100,7 +100,7 @@ - (void) _setLocaleIdentifier: (NSString*)identifier; @implementation NSCalendar (PrivateMethods) #if GS_USE_ICU == 1 -- (void *) _openCalendarFor: (NSTimeZone *)timeZone +- (void*) _openCalendarFor: (NSTimeZone*)timeZone { NSString *tzName; NSUInteger tzLen; @@ -137,7 +137,7 @@ - (void *) _openCalendarFor: (NSTimeZone *)timeZone // as the calendar is already encoded in the locale id by _localeIDWithLocale:. } - return ucal_open((const UChar *)cTzId, tzLen, cLocaleId, type, &err); + return ucal_open((const UChar*)cTzId, tzLen, cLocaleId, type, &err); } #endif @@ -175,12 +175,12 @@ - (void) _resetCalendar #endif } -- (void *) _UCalendar +- (void*) _UCalendar { return my->cal; } -- (NSString*) _localeIDWithLocale: (NSLocale *)locale +- (NSString*) _localeIDWithLocale: (NSLocale*)locale { NSString *result; NSString *localeId; @@ -209,7 +209,7 @@ - (NSString*) _localeIdentifier return my->localeID; } -- (void) _setLocaleIdentifier: (NSString *) identifier +- (void) _setLocaleIdentifier: (NSString*) identifier { if ([identifier isEqualToString: my->localeID]) { @@ -292,7 +292,7 @@ + (NSCalendar*) autoupdatingCurrentCalendar } -+ (id) calendarWithIdentifier: (NSString *) identifier ++ (id) calendarWithIdentifier: (NSString*)identifier { return AUTORELEASE([[self alloc] initWithCalendarIdentifier: identifier]); } @@ -302,7 +302,7 @@ - (id) init return [self initWithCalendarIdentifier: nil]; } -- (id) initWithCalendarIdentifier: (NSString *) identifier +- (id) initWithCalendarIdentifier: (NSString*)identifier { NSAssert(0 == _NSCalendarInternal, NSInvalidArgumentException); _NSCalendarInternal = NSZoneCalloc([self zone], sizeof(Calendar), 1); @@ -331,13 +331,13 @@ - (void) dealloc [super dealloc]; } -- (NSString *) calendarIdentifier +- (NSString*) calendarIdentifier { return my->identifier; } - (NSInteger) component: (NSCalendarUnit)unit - fromDate: (NSDate *)date + fromDate: (NSDate*)date { NSDateComponents *comps = [self components: unit fromDate: date]; @@ -396,8 +396,8 @@ - (NSInteger) component: (NSCalendarUnit)unit return val; } -- (NSDateComponents *) components: (NSUInteger) unitFlags - fromDate: (NSDate *) date +- (NSDateComponents*) components: (NSUInteger) unitFlags + fromDate: (NSDate*) date { #if GS_USE_ICU == 1 NSDateComponents *comps; @@ -499,9 +499,9 @@ - (NSDateComponents *) components: (NSUInteger) unitFlags } while (0) -- (NSDateComponents *) components: (NSUInteger) unitFlags - fromDate: (NSDate *) startingDate - toDate: (NSDate *) resultDate +- (NSDateComponents*) components: (NSUInteger) unitFlags + fromDate: (NSDate*) startingDate + toDate: (NSDate*) resultDate options: (NSUInteger) opts { #if GS_USE_ICU == 1 && (U_ICU_VERSION_MAJOR_NUM > 4 \ @@ -587,8 +587,8 @@ - (NSDateComponents *) components: (NSUInteger) unitFlags return nil; \ } -- (NSDate *) dateByAddingComponents: (NSDateComponents *) comps - toDate: (NSDate *) date +- (NSDate*) dateByAddingComponents: (NSDateComponents*) comps + toDate: (NSDate*) date options: (NSUInteger) opts { #if GS_USE_ICU == 1 @@ -663,7 +663,7 @@ - (NSDate *) dateByAddingComponents: (NSDateComponents *) comps #undef _ADD_COMPONENT -- (NSDate *) dateFromComponents: (NSDateComponents *) comps +- (NSDate*) dateFromComponents: (NSDateComponents*) comps { #if GS_USE_ICU == 1 NSInteger amount; @@ -750,12 +750,12 @@ - (NSDate *) dateFromComponents: (NSDateComponents *) comps #endif } -- (NSLocale *) locale +- (NSLocale*) locale { return AUTORELEASE([[NSLocale alloc] initWithLocaleIdentifier: my->localeID]); } -- (void) setLocale: (NSLocale *) locale +- (void) setLocale: (NSLocale*) locale { // It's much easier to keep a copy of the NSLocale's string representation // than to have to build it everytime we have to open a UCalendar. @@ -789,12 +789,12 @@ - (void) setMinimumDaysInFirstWeek: (NSUInteger)mdw #endif } -- (NSTimeZone *) timeZone +- (NSTimeZone*) timeZone { return my->tz; } -- (void) setTimeZone: (NSTimeZone *) tz +- (void) setTimeZone: (NSTimeZone*) tz { if ([tz isEqual: my->tz]) { @@ -862,22 +862,22 @@ - (NSRange) minimumRangeofUnit: (NSCalendarUnit) unit - (NSUInteger) ordinalityOfUnit: (NSCalendarUnit) smaller inUnit: (NSCalendarUnit) larger - forDate: (NSDate *) date + forDate: (NSDate*) date { return 0; } - (NSRange) rangeOfUnit: (NSCalendarUnit) smaller inUnit: (NSCalendarUnit) larger - forDate: (NSDate *) date + forDate: (NSDate*) date { return NSMakeRange (0, 0); } - (BOOL) rangeOfUnit: (NSCalendarUnit) unit startDate: (NSDate **) datep - interval: (NSTimeInterval *)tip - forDate: (NSDate *)date + interval: (NSTimeInterval*)tip + forDate: (NSDate*)date { return NO; } @@ -907,11 +907,11 @@ - (BOOL) isEqual: (id) obj } -- (void) getEra: (NSInteger *)eraValuePointer - year: (NSInteger *)yearValuePointer - month: (NSInteger *)monthValuePointer - day: (NSInteger *)dayValuePointer - fromDate: (NSDate *)date +- (void) getEra: (NSInteger*)eraValuePointer + year: (NSInteger*)yearValuePointer + month: (NSInteger*)monthValuePointer + day: (NSInteger*)dayValuePointer + fromDate: (NSDate*)date { #if GS_USE_ICU == 1 UErrorCode err = U_ZERO_ERROR; @@ -935,11 +935,11 @@ - (void) getEra: (NSInteger *)eraValuePointer #endif } -- (void) getHour: (NSInteger *)hourValuePointer - minute: (NSInteger *)minuteValuePointer - second: (NSInteger *)secondValuePointer - nanosecond: (NSInteger *)nanosecondValuePointer - fromDate: (NSDate *)date +- (void) getHour: (NSInteger*)hourValuePointer + minute: (NSInteger*)minuteValuePointer + second: (NSInteger*)secondValuePointer + nanosecond: (NSInteger*)nanosecondValuePointer + fromDate: (NSDate*)date { #if GS_USE_ICU == 1 UErrorCode err = U_ZERO_ERROR; @@ -963,11 +963,11 @@ - (void) getHour: (NSInteger *)hourValuePointer #endif } -- (void) getEra: (NSInteger *)eraValuePointer -yearForWeekOfYear: (NSInteger *)yearValuePointer - weekOfYear: (NSInteger *)weekValuePointer - weekday: (NSInteger *)weekdayValuePointer - fromDate: (NSDate *)date +- (void) getEra: (NSInteger*)eraValuePointer +yearForWeekOfYear: (NSInteger*)yearValuePointer + weekOfYear: (NSInteger*)weekValuePointer + weekday: (NSInteger*)weekdayValuePointer + fromDate: (NSDate*)date { #if GS_USE_ICU == 1 UErrorCode err = U_ZERO_ERROR; @@ -1176,17 +1176,17 @@ - (BOOL) leapMonth return my->leapMonth; } -- (NSCalendar *) calendar +- (NSCalendar*) calendar { return my->cal; } -- (NSTimeZone *) timeZone +- (NSTimeZone*) timeZone { return my->tz; } -- (NSDate *) date +- (NSDate*) date { NSCalendar* cal = [self calendar]; @@ -1274,12 +1274,12 @@ - (void) setLeapMonth: (BOOL) v my->leapMonth = v; } -- (void) setCalendar: (NSCalendar *) cal +- (void) setCalendar: (NSCalendar*) cal { ASSIGN(my->cal, cal); } -- (void) setTimeZone: (NSTimeZone *) tz +- (void) setTimeZone: (NSTimeZone*) tz { ASSIGN(my->tz, tz); } @@ -1293,7 +1293,7 @@ - (BOOL) isValidDate return [self isValidDateInCalendar: my->cal]; } -- (BOOL) isValidDateInCalendar: (NSCalendar *) calendar +- (BOOL) isValidDateInCalendar: (NSCalendar*) calendar { return [calendar dateFromComponents: self] != nil; } diff --git a/Source/NSDateComponentsFormatter.m b/Source/NSDateComponentsFormatter.m index e9ad55f88..cf374b26f 100644 --- a/Source/NSDateComponentsFormatter.m +++ b/Source/NSDateComponentsFormatter.m @@ -21,6 +21,8 @@ Software Foundation, Inc., 31 Milk Street #960789 Boston, MA 02196 USA. */ +#import "Foundation/NSArchiver.h" +#import "Foundation/NSKeyedArchiver.h" #import "Foundation/NSDateComponentsFormatter.h" #import "Foundation/NSDate.h" #import "Foundation/NSString.h" @@ -60,7 +62,32 @@ - (instancetype) initWithCoder: (NSCoder *)coder self = [super initWithCoder: coder]; if (self != nil) { - // TODO: Implement coding... + if ([coder allowsKeyedCoding]) + { + ASSIGN(_calendar, [coder decodeObjectForKey: @"NS.calendar"]); + ASSIGN(_referenceDate, [coder decodeObjectForKey: @"NS.referenceDate"]); + _allowsFractionalUnits = [coder decodeBoolForKey: @"NS.allowsFractionalUnits"]; + _collapsesLargestUnit = [coder decodeBoolForKey: @"NS.collapsesLargestUnit"]; + _includesApproximationPhrase = [coder decodeBoolForKey: @"NS.includesApproximationPhrase"]; + _formattingContext = [coder decodeIntegerForKey: @"NS.formattingContext"]; + _maximumUnitCount = [coder decodeIntegerForKey: @"NS.maximumUnitCount"]; + _zeroFormattingBehavior = [coder decodeIntegerForKey: @"NS.zeroFormattingBehavior"]; + _allowedUnits = [coder decodeIntegerForKey: @"NS.allowedUnits"]; + _unitsStyle = [coder decodeIntegerForKey: @"NS.unitsStyle"]; + } + else + { + [coder decodeValueOfObjCType: @encode(id) at: &_calendar]; + [coder decodeValueOfObjCType: @encode(id) at: &_referenceDate]; + [coder decodeValueOfObjCType: @encode(BOOL) at: &_allowsFractionalUnits]; + [coder decodeValueOfObjCType: @encode(BOOL) at: &_collapsesLargestUnit]; + [coder decodeValueOfObjCType: @encode(BOOL) at: &_includesApproximationPhrase]; + [coder decodeValueOfObjCType: @encode(NSFormattingContext) at: &_formattingContext]; + [coder decodeValueOfObjCType: @encode(NSInteger) at: &_maximumUnitCount]; + [coder decodeValueOfObjCType: @encode(NSDateComponentsFormatterZeroFormattingBehavior) at: &_zeroFormattingBehavior]; + [coder decodeValueOfObjCType: @encode(NSCalendarUnit) at: &_allowedUnits]; + [coder decodeValueOfObjCType: @encode(NSDateComponentsFormatterUnitsStyle) at: &_unitsStyle]; + } } return self; } @@ -68,7 +95,32 @@ - (instancetype) initWithCoder: (NSCoder *)coder - (void) encodeWithCoder: (NSCoder *)coder { [super encodeWithCoder: coder]; - // TODO: Implement coding... + if ([coder allowsKeyedCoding]) + { + [coder encodeObject: _calendar forKey: @"NS.calendar"]; + [coder encodeObject: _referenceDate forKey: @"NS.referenceDate"]; + [coder encodeBool: _allowsFractionalUnits forKey: @"NS.allowsFractionalUnits"]; + [coder encodeBool: _collapsesLargestUnit forKey: @"NS.collapsesLargestUnit"]; + [coder encodeBool: _includesApproximationPhrase forKey: @"NS.includesApproximationPhrase"]; + [coder encodeInteger: _formattingContext forKey: @"NS.formattingContext"]; + [coder encodeInteger: _maximumUnitCount forKey: @"NS.maximumUnitCount"]; + [coder encodeInteger: _zeroFormattingBehavior forKey: @"NS.zeroFormattingBehavior"]; + [coder encodeInteger: _allowedUnits forKey: @"NS.allowedUnits"]; + [coder encodeInteger: _unitsStyle forKey: @"NS.unitsStyle"]; + } + else + { + [coder encodeValueOfObjCType: @encode(id) at: &_calendar]; + [coder encodeValueOfObjCType: @encode(id) at: &_referenceDate]; + [coder encodeValueOfObjCType: @encode(BOOL) at: &_allowsFractionalUnits]; + [coder encodeValueOfObjCType: @encode(BOOL) at: &_collapsesLargestUnit]; + [coder encodeValueOfObjCType: @encode(BOOL) at: &_includesApproximationPhrase]; + [coder encodeValueOfObjCType: @encode(NSFormattingContext) at: &_formattingContext]; + [coder encodeValueOfObjCType: @encode(NSInteger) at: &_maximumUnitCount]; + [coder encodeValueOfObjCType: @encode(NSDateComponentsFormatterZeroFormattingBehavior) at: &_zeroFormattingBehavior]; + [coder encodeValueOfObjCType: @encode(NSCalendarUnit) at: &_allowedUnits]; + [coder encodeValueOfObjCType: @encode(NSDateComponentsFormatterUnitsStyle) at: &_unitsStyle]; + } } - (void) dealloc @@ -82,7 +134,11 @@ - (NSString *) stringForObjectValue: (id)obj { NSString *result = nil; - if ([obj isKindOfClass: [NSDateComponents class]]) + if (obj == nil) + { + result = @""; + } + else if ([obj isKindOfClass: [NSDateComponents class]]) { result = [self stringFromDateComponents: obj]; } @@ -91,6 +147,10 @@ - (NSString *) stringForObjectValue: (id)obj NSTimeInterval ti = [obj longLongValue]; result = [self stringFromTimeInterval: ti]; } + else + { + result = @""; + } return result; } @@ -465,7 +525,7 @@ - (NSCalendar *) calendar return _calendar; } -- (void) setCalender: (NSCalendar *)calendar +- (void) setCalendar: (NSCalendar *)calendar { ASSIGNCOPY(_calendar, calendar); } diff --git a/Source/NSDateFormatter.m b/Source/NSDateFormatter.m index 4651a1a71..2fc27632e 100644 --- a/Source/NSDateFormatter.m +++ b/Source/NSDateFormatter.m @@ -62,8 +62,8 @@ @interface NSDateFormatter (PrivateMethods) - (void) _resetUDateFormat; -- (void) _setSymbols: (NSArray *)array : (NSInteger)symbol; -- (NSArray *) _getSymbols: (NSInteger)symbol; +- (void) _setSymbols: (NSArray*)array : (NSInteger)symbol; +- (NSArray*) _getSymbols: (NSInteger)symbol; @end static inline NSInteger @@ -160,11 +160,11 @@ - (void) dealloc RELEASE(internal->_locale); RELEASE(internal->_tz); #if GS_USE_ICU == 1 - udat_close (internal->_formatter); + udat_close(internal->_formatter); #endif GS_DESTROY_INTERNAL(NSDateFormatter) } - [super dealloc]; + DEALLOC } - (NSString*) editingStringForObjectValue: (id)anObject @@ -221,7 +221,7 @@ - (id) initWithCoder: (NSCoder*)aCoder return self; } -- (id) initWithDateFormat: (NSString *)format +- (id) initWithDateFormat: (NSString*)format allowNaturalLanguage: (BOOL)flag { self = [self init]; @@ -311,7 +311,7 @@ - (void) setLenient: (BOOL)flag } -- (NSDate *) dateFromString: (NSString *) string +- (NSDate*) dateFromString: (NSString*) string { #if GS_USE_ICU == 1 NSDate *result = nil; @@ -340,7 +340,7 @@ - (NSDate *) dateFromString: (NSString *) string #endif } -- (NSString *) stringFromDate: (NSDate *) date +- (NSString*) stringFromDate: (NSDate*) date { #if GS_USE_ICU == 1 NSString *result; @@ -370,15 +370,15 @@ - (NSString *) stringFromDate: (NSDate *) date #endif } -- (BOOL) getObjectValue: (out id *) obj - forString: (NSString *) string - range: (inout NSRange *) range +- (BOOL) getObjectValue: (out id*) obj + forString: (NSString*) string + range: (inout NSRange*) range error: (out NSError **) error { return NO; // FIXME } -- (void) setDateFormat: (NSString *)string +- (void) setDateFormat: (NSString*)string { ASSIGNCOPY(_dateFormat, string); [self _resetUDateFormat]; @@ -406,15 +406,15 @@ - (void) setTimeStyle: (NSDateFormatterStyle)style [self _resetUDateFormat]; } -- (NSCalendar *) calendar +- (NSCalendar*) calendar { return [internal->_locale objectForKey: NSLocaleCalendar]; } -- (void) setCalendar: (NSCalendar *)calendar +- (void) setCalendar: (NSCalendar*)calendar { - NSMutableDictionary *dict; - NSLocale *locale; + NSMutableDictionary *dict; + NSLocale *locale; dict = [[NSLocale componentsFromLocaleIdentifier: [internal->_locale localeIdentifier]] mutableCopy]; @@ -428,37 +428,36 @@ - (void) setCalendar: (NSCalendar *)calendar RELEASE(dict); } -- (NSDate *) defaultDate +- (NSDate*) defaultDate { return nil; // FIXME } -- (void) setDefaultDate: (NSDate *)date +- (void) setDefaultDate: (NSDate*)date { return; // FIXME } -- (NSLocale *) locale +- (NSLocale*) locale { return internal->_locale; } -- (void) setLocale: (NSLocale *)locale +- (void) setLocale: (NSLocale*)locale { if (locale == internal->_locale) return; RELEASE(internal->_locale); - internal->_locale = RETAIN(locale); [self _resetUDateFormat]; } -- (NSTimeZone *) timeZone +- (NSTimeZone*) timeZone { return internal->_tz; } -- (void) setTimeZone: (NSTimeZone *)tz +- (void) setTimeZone: (NSTimeZone*)tz { if (tz == internal->_tz) return; @@ -468,7 +467,7 @@ - (void) setTimeZone: (NSTimeZone *)tz [self _resetUDateFormat]; } -- (NSDate *) twoDigitStartDate +- (NSDate*) twoDigitStartDate { #if GS_USE_ICU == 1 UErrorCode err = U_ZERO_ERROR; @@ -479,7 +478,7 @@ - (NSDate *) twoDigitStartDate #endif } -- (void) setTwoDigitStartDate: (NSDate *)date +- (void) setTwoDigitStartDate: (NSDate*)date { #if GS_USE_ICU == 1 UErrorCode err = U_ZERO_ERROR; @@ -492,7 +491,7 @@ - (void) setTwoDigitStartDate: (NSDate *)date } -- (NSString *) AMSymbol +- (NSString*) AMSymbol { #if GS_USE_ICU == 1 NSArray *array = [self _getSymbols: UDAT_AM_PMS]; @@ -503,12 +502,12 @@ - (NSString *) AMSymbol #endif } -- (void) setAMSymbol: (NSString *) string +- (void) setAMSymbol: (NSString*) string { return; } -- (NSString *) PMSymbol +- (NSString*) PMSymbol { #if GS_USE_ICU == 1 NSArray *array = [self _getSymbols: UDAT_AM_PMS]; @@ -519,12 +518,12 @@ - (NSString *) PMSymbol #endif } -- (void) setPMSymbol: (NSString *)string +- (void) setPMSymbol: (NSString*)string { return; } -- (NSArray *) weekdaySymbols +- (NSArray*) weekdaySymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_WEEKDAYS]; @@ -533,7 +532,7 @@ - (NSArray *) weekdaySymbols #endif } -- (void) setWeekdaySymbols: (NSArray *)array +- (void) setWeekdaySymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_WEEKDAYS]; @@ -542,7 +541,7 @@ - (void) setWeekdaySymbols: (NSArray *)array #endif } -- (NSArray *) shortWeekdaySymbols +- (NSArray*) shortWeekdaySymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_SHORT_WEEKDAYS]; @@ -551,7 +550,7 @@ - (NSArray *) shortWeekdaySymbols #endif } -- (void) setShortWeekdaySymbols: (NSArray *)array +- (void) setShortWeekdaySymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_SHORT_WEEKDAYS]; @@ -560,7 +559,7 @@ - (void) setShortWeekdaySymbols: (NSArray *)array #endif } -- (NSArray *) monthSymbols +- (NSArray*) monthSymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_MONTHS]; @@ -569,7 +568,7 @@ - (NSArray *) monthSymbols #endif } -- (void) setMonthSymbols: (NSArray *)array +- (void) setMonthSymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_MONTHS]; @@ -578,7 +577,7 @@ - (void) setMonthSymbols: (NSArray *)array #endif } -- (NSArray *) shortMonthSymbols +- (NSArray*) shortMonthSymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_SHORT_MONTHS]; @@ -587,7 +586,7 @@ - (NSArray *) shortMonthSymbols #endif } -- (void) setShortMonthSymbols: (NSArray *)array +- (void) setShortMonthSymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_SHORT_MONTHS]; @@ -596,7 +595,7 @@ - (void) setShortMonthSymbols: (NSArray *)array #endif } -- (NSArray *) eraSymbols +- (NSArray*) eraSymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_ERAS]; @@ -605,7 +604,7 @@ - (NSArray *) eraSymbols #endif } -- (void) setEraSymbols: (NSArray *)array +- (void) setEraSymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_ERAS]; @@ -614,17 +613,17 @@ - (void) setEraSymbols: (NSArray *)array #endif } -- (NSDate *) gregorianStartDate +- (NSDate*) gregorianStartDate { return nil; } -- (void) setGregorianStartDate: (NSDate *)date +- (void) setGregorianStartDate: (NSDate*)date { return; } -- (NSArray *) longEraSymbols +- (NSArray*) longEraSymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_ERA_NAMES]; @@ -633,7 +632,7 @@ - (NSArray *) longEraSymbols #endif } -- (void) setLongEraSymbols: (NSArray *)array +- (void) setLongEraSymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_ERA_NAMES]; @@ -643,7 +642,7 @@ - (void) setLongEraSymbols: (NSArray *)array } -- (NSArray *) quarterSymbols +- (NSArray*) quarterSymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_QUARTERS]; @@ -652,7 +651,7 @@ - (NSArray *) quarterSymbols #endif } -- (void) setQuarterSymbols: (NSArray *)array +- (void) setQuarterSymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_QUARTERS]; @@ -661,7 +660,7 @@ - (void) setQuarterSymbols: (NSArray *)array #endif } -- (NSArray *) shortQuarterSymbols +- (NSArray*) shortQuarterSymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_SHORT_QUARTERS]; @@ -670,7 +669,7 @@ - (NSArray *) shortQuarterSymbols #endif } -- (void) setShortQuarterSymbols: (NSArray *)array +- (void) setShortQuarterSymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_SHORT_QUARTERS]; @@ -679,7 +678,7 @@ - (void) setShortQuarterSymbols: (NSArray *)array #endif } -- (NSArray *) standaloneQuarterSymbols +- (NSArray*) standaloneQuarterSymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_STANDALONE_QUARTERS]; @@ -688,7 +687,7 @@ - (NSArray *) standaloneQuarterSymbols #endif } -- (void) setStandaloneQuarterSymbols: (NSArray *)array +- (void) setStandaloneQuarterSymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_STANDALONE_QUARTERS]; @@ -697,7 +696,7 @@ - (void) setStandaloneQuarterSymbols: (NSArray *)array #endif } -- (NSArray *) shortStandaloneQuarterSymbols +- (NSArray*) shortStandaloneQuarterSymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_STANDALONE_SHORT_QUARTERS]; @@ -706,7 +705,7 @@ - (NSArray *) shortStandaloneQuarterSymbols #endif } -- (void) setShortStandaloneQuarterSymbols: (NSArray *)array +- (void) setShortStandaloneQuarterSymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_STANDALONE_SHORT_QUARTERS]; @@ -715,7 +714,7 @@ - (void) setShortStandaloneQuarterSymbols: (NSArray *)array #endif } -- (NSArray *) shortStandaloneMonthSymbols +- (NSArray*) shortStandaloneMonthSymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_STANDALONE_SHORT_MONTHS]; @@ -724,7 +723,7 @@ - (NSArray *) shortStandaloneMonthSymbols #endif } -- (void) setShortStandaloneMonthSymbols: (NSArray *)array +- (void) setShortStandaloneMonthSymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_STANDALONE_SHORT_MONTHS]; @@ -733,7 +732,7 @@ - (void) setShortStandaloneMonthSymbols: (NSArray *)array #endif } -- (NSArray *) standaloneMonthSymbols +- (NSArray*) standaloneMonthSymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_STANDALONE_MONTHS]; @@ -742,7 +741,7 @@ - (NSArray *) standaloneMonthSymbols #endif } -- (void) setStandaloneMonthSymbols: (NSArray *)array +- (void) setStandaloneMonthSymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_STANDALONE_MONTHS]; @@ -751,7 +750,7 @@ - (void) setStandaloneMonthSymbols: (NSArray *)array #endif } -- (NSArray *) veryShortMonthSymbols +- (NSArray*) veryShortMonthSymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_NARROW_MONTHS]; @@ -760,7 +759,7 @@ - (NSArray *) veryShortMonthSymbols #endif } -- (void) setVeryShortMonthSymbols: (NSArray *)array +- (void) setVeryShortMonthSymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_NARROW_MONTHS]; @@ -769,7 +768,7 @@ - (void) setVeryShortMonthSymbols: (NSArray *)array #endif } -- (NSArray *) veryShortStandaloneMonthSymbols +- (NSArray*) veryShortStandaloneMonthSymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_STANDALONE_NARROW_MONTHS]; @@ -778,7 +777,7 @@ - (NSArray *) veryShortStandaloneMonthSymbols #endif } -- (void) setVeryShortStandaloneMonthSymbols: (NSArray *)array +- (void) setVeryShortStandaloneMonthSymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_STANDALONE_NARROW_MONTHS]; @@ -787,7 +786,7 @@ - (void) setVeryShortStandaloneMonthSymbols: (NSArray *)array #endif } -- (NSArray *) shortStandaloneWeekdaySymbols +- (NSArray*) shortStandaloneWeekdaySymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_STANDALONE_SHORT_WEEKDAYS]; @@ -796,7 +795,7 @@ - (NSArray *) shortStandaloneWeekdaySymbols #endif } -- (void) setShortStandaloneWeekdaySymbols: (NSArray *)array +- (void) setShortStandaloneWeekdaySymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_STANDALONE_SHORT_WEEKDAYS]; @@ -805,7 +804,7 @@ - (void) setShortStandaloneWeekdaySymbols: (NSArray *)array #endif } -- (NSArray *) standaloneWeekdaySymbols +- (NSArray*) standaloneWeekdaySymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_STANDALONE_WEEKDAYS]; @@ -814,7 +813,7 @@ - (NSArray *) standaloneWeekdaySymbols #endif } -- (void) setStandaloneWeekdaySymbols: (NSArray *)array +- (void) setStandaloneWeekdaySymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_STANDALONE_WEEKDAYS]; @@ -823,7 +822,7 @@ - (void) setStandaloneWeekdaySymbols: (NSArray *)array #endif } -- (NSArray *) veryShortWeekdaySymbols +- (NSArray*) veryShortWeekdaySymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_SHORT_WEEKDAYS]; @@ -832,7 +831,7 @@ - (NSArray *) veryShortWeekdaySymbols #endif } -- (void) setVeryShortWeekdaySymbols: (NSArray *)array +- (void) setVeryShortWeekdaySymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_SHORT_WEEKDAYS]; @@ -841,7 +840,7 @@ - (void) setVeryShortWeekdaySymbols: (NSArray *)array #endif } -- (NSArray *) veryShortStandaloneWeekdaySymbols +- (NSArray*) veryShortStandaloneWeekdaySymbols { #if GS_USE_ICU == 1 return [self _getSymbols: UDAT_STANDALONE_NARROW_WEEKDAYS]; @@ -850,7 +849,7 @@ - (NSArray *) veryShortStandaloneWeekdaySymbols #endif } -- (void) setVeryShortStandaloneWeekdaySymbols: (NSArray *)array +- (void) setVeryShortStandaloneWeekdaySymbols: (NSArray*)array { #if GS_USE_ICU == 1 [self _setSymbols: array : UDAT_STANDALONE_NARROW_WEEKDAYS]; @@ -859,7 +858,7 @@ - (void) setVeryShortStandaloneWeekdaySymbols: (NSArray *)array #endif } -+ (NSString *) localizedStringFromDate: (NSDate *) date ++ (NSString*) localizedStringFromDate: (NSDate*) date dateStyle: (NSDateFormatterStyle) dateStyle timeStyle: (NSDateFormatterStyle) timeStyle { @@ -875,9 +874,9 @@ + (NSString *) localizedStringFromDate: (NSDate *) date return result; } -+ (NSString *) dateFormatFromTemplate: (NSString *) aTemplate ++ (NSString*) dateFormatFromTemplate: (NSString*) aTemplate options: (NSUInteger) opts - locale: (NSLocale *) locale + locale: (NSLocale*) locale { #if GS_USE_ICU == 1 unichar pat[BUFFER_SIZE]; @@ -1017,7 +1016,7 @@ - (void) _setSymbols: (NSArray*)array : (NSInteger)symbol return; } -- (NSArray *) _getSymbols: (NSInteger)symbol +- (NSArray*) _getSymbols: (NSInteger)symbol { #if GS_USE_ICU == 1 NSMutableArray *mArray; diff --git a/Source/NSDateIntervalFormatter.m b/Source/NSDateIntervalFormatter.m index 75d849d20..b938a2570 100644 --- a/Source/NSDateIntervalFormatter.m +++ b/Source/NSDateIntervalFormatter.m @@ -1,26 +1,28 @@ /** Implementation of class NSDateIntervalFormatter - Copyright (C) 2019 Free Software Foundation, Inc. - - By: Gregory John Casamento - Date: Wed Oct 9 16:23:55 EDT 2019 - - This file is part of the GNUstep Library. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free - Software Foundation, Inc., 31 Milk Street #960789 Boston, MA 02196 USA. + Copyright (C) 2019 Free Software Foundation, Inc. + + By: Gregory John Casamento + Date: Wed Oct 9 16:23:55 EDT 2019 + + This file is part of the GNUstep Library. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 31 Milk Street #960789 Boston, MA 02196 USA. */ +#import "Foundation/NSArchiver.h" +#import "Foundation/NSKeyedArchiver.h" #import "Foundation/NSDateIntervalFormatter.h" #import "Foundation/NSLocale.h" #import "Foundation/NSCalendar.h" @@ -28,45 +30,56 @@ #import "Foundation/NSString.h" #import "Foundation/NSDate.h" #import "Foundation/NSDateInterval.h" +#import "Foundation/NSDateFormatter.h" @implementation NSDateIntervalFormatter + +- (void) dealloc +{ + RELEASE(_locale); + RELEASE(_calendar); + RELEASE(_timeZone); + RELEASE(_dateTemplate); + DEALLOC +} + // Properties -- (NSLocale *) locale +- (NSLocale*) locale { return _locale; } -- (void) setLocale: (NSLocale *)locale +- (void) setLocale: (NSLocale*)locale { ASSIGNCOPY(_locale, locale); } -- (NSCalendar *) calendar +- (NSCalendar*) calendar { return _calendar; } -- (void) setCalendar: (NSCalendar *)calendar +- (void) setCalendar: (NSCalendar*)calendar { ASSIGNCOPY(_calendar, calendar); } -- (NSTimeZone *) timeZone +- (NSTimeZone*) timeZone { return _timeZone; } -- (void) setTimeZone: (NSTimeZone *)timeZone +- (void) setTimeZone: (NSTimeZone*)timeZone { ASSIGNCOPY(_timeZone, timeZone); } -- (NSString *) dateTemplate +- (NSString*) dateTemplate { return _dateTemplate; } -- (void) setDateTemplate: (NSString *)dateTemplate +- (void) setDateTemplate: (NSString*)dateTemplate { ASSIGNCOPY(_dateTemplate, dateTemplate); } @@ -80,7 +93,7 @@ - (void) setDateStyle: (NSDateIntervalFormatterStyle)dateStyle { _dateStyle = dateStyle; } - + - (NSDateIntervalFormatterStyle) timeStyle { return _timeStyle; @@ -92,23 +105,184 @@ - (void) setTimeStyle: (NSDateIntervalFormatterStyle)timeStyle } // Create strings -- (NSString *) stringFromDate: (NSDate *)fromDate toDate: (NSDate *)toDate +- (NSString*) stringFromDate: (NSDate*)fromDate toDate: (NSDate*)toDate { - NSDateInterval *interval = [[NSDateInterval alloc] initWithStartDate: fromDate - endDate: toDate]; + NSDate *start; + NSDate *end; + NSDateInterval *interval; + + start = fromDate; + end = toDate; + + // Swap dates if they're in reverse order (end before start) + if ([toDate compare: fromDate] == NSOrderedAscending) + { + start = toDate; + end = fromDate; + } + + interval = [[NSDateInterval alloc] initWithStartDate: start + endDate: end]; AUTORELEASE(interval); return [self stringFromDateInterval: interval]; } -- (NSString *) stringFromDateInterval: (NSDateInterval *)dateInterval +- (NSString*) stringFromDateInterval: (NSDateInterval*)dateInterval { NSDate *fromDate = [dateInterval startDate]; NSDate *toDate = [dateInterval endDate]; + NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; + NSString *fromString; + NSString *toString; + NSString *result; + + // Configure the formatter with the interval formatter's settings + if (_locale != nil) + { + [formatter setLocale: _locale]; + } + + if (_calendar != nil) + { + [formatter setCalendar: _calendar]; + } + + if (_timeZone != nil) + { + [formatter setTimeZone: _timeZone]; + } + + // Apply date template if provided + if (_dateTemplate != nil && [_dateTemplate length] > 0) + { + NSString *format = [NSDateFormatter dateFormatFromTemplate: _dateTemplate + options: 0 + locale: _locale]; + [formatter setDateFormat: format]; + } + else + { + // Use date and time styles + NSDateFormatterStyle dateFormatterStyle; + NSDateFormatterStyle timeFormatterStyle; - // Add formatting of NSDate here. - - return [NSString stringWithFormat: @"%@ - %@", fromDate, toDate]; + // Convert NSDateIntervalFormatterStyle to NSDateFormatterStyle + switch (_dateStyle) + { + case NSDateIntervalFormatterShortStyle: + dateFormatterStyle = NSDateFormatterShortStyle; + break; + case NSDateIntervalFormatterMediumStyle: + dateFormatterStyle = NSDateFormatterMediumStyle; + break; + case NSDateIntervalFormatterLongStyle: + dateFormatterStyle = NSDateFormatterLongStyle; + break; + case NSDateIntervalFormatterFullStyle: + dateFormatterStyle = NSDateFormatterFullStyle; + break; + default: + dateFormatterStyle = NSDateFormatterNoStyle; + break; + } + + switch (_timeStyle) + { + case NSDateIntervalFormatterShortStyle: + timeFormatterStyle = NSDateFormatterShortStyle; + break; + case NSDateIntervalFormatterMediumStyle: + timeFormatterStyle = NSDateFormatterMediumStyle; + break; + case NSDateIntervalFormatterLongStyle: + timeFormatterStyle = NSDateFormatterLongStyle; + break; + case NSDateIntervalFormatterFullStyle: + timeFormatterStyle = NSDateFormatterFullStyle; + break; + default: + timeFormatterStyle = NSDateFormatterNoStyle; + break; + } + + [formatter setDateStyle: dateFormatterStyle]; + [formatter setTimeStyle: timeFormatterStyle]; + } + + // Format both dates + fromString = [formatter stringFromDate: fromDate]; + toString = [formatter stringFromDate: toDate]; + + // Create the interval string + result = [NSString stringWithFormat: @"%@ - %@", fromString, toString]; + + RELEASE(formatter); + + return result; } -@end +- (NSString*) stringForObjectValue: (id)obj +{ + if ([obj isKindOfClass: [NSDateInterval class]]) + { + return [self stringFromDateInterval: obj]; + } + return nil; +} + +- (instancetype) initWithCoder: (NSCoder*)coder +{ + self = [super initWithCoder: coder]; + if (self != nil) + { + if ([coder allowsKeyedCoding]) + { + ASSIGN(_locale, [coder decodeObjectForKey: @"NS.locale"]); + ASSIGN(_calendar, [coder decodeObjectForKey: @"NS.calendar"]); + ASSIGN(_timeZone, [coder decodeObjectForKey: @"NS.timeZone"]); + ASSIGN(_dateTemplate, [coder decodeObjectForKey: @"NS.dateTemplate"]); + _dateStyle = [coder decodeIntegerForKey: @"NS.dateStyle"]; + _timeStyle = [coder decodeIntegerForKey: @"NS.timeStyle"]; + } + else + { + [coder decodeValueOfObjCType: @encode(id) at: &_locale]; + [coder decodeValueOfObjCType: @encode(id) at: &_calendar]; + [coder decodeValueOfObjCType: @encode(id) at: &_timeZone]; + [coder decodeValueOfObjCType: @encode(id) at: &_dateTemplate]; + [coder decodeValueOfObjCType: @encode(NSDateIntervalFormatterStyle) + at: &_dateStyle]; + [coder decodeValueOfObjCType: @encode(NSDateIntervalFormatterStyle) + at: &_timeStyle]; + } + } + return self; +} + +- (void) encodeWithCoder: (NSCoder*)coder +{ + [super encodeWithCoder: coder]; + if ([coder allowsKeyedCoding]) + { + [coder encodeObject: _locale forKey: @"NS.locale"]; + [coder encodeObject: _calendar forKey: @"NS.calendar"]; + [coder encodeObject: _timeZone forKey: @"NS.timeZone"]; + [coder encodeObject: _dateTemplate forKey: @"NS.dateTemplate"]; + [coder encodeInteger: _dateStyle forKey: @"NS.dateStyle"]; + [coder encodeInteger: _timeStyle forKey: @"NS.timeStyle"]; + } + else + { + [coder encodeValueOfObjCType: @encode(id) at: &_locale]; + [coder encodeValueOfObjCType: @encode(id) at: &_calendar]; + [coder encodeValueOfObjCType: @encode(id) at: &_timeZone]; + [coder encodeValueOfObjCType: @encode(id) at: &_dateTemplate]; + [coder encodeValueOfObjCType: @encode(NSDateIntervalFormatterStyle) + at: &_dateStyle]; + [coder encodeValueOfObjCType: @encode(NSDateIntervalFormatterStyle) + at: &_timeStyle]; + } +} + +@end diff --git a/Source/NSEnergyFormatter.m b/Source/NSEnergyFormatter.m index 4eab665d8..ace404c34 100644 --- a/Source/NSEnergyFormatter.m +++ b/Source/NSEnergyFormatter.m @@ -1,32 +1,55 @@ /** Implementation of class NSEnergyFormatter Copyright (C) 2019 Free Software Foundation, Inc. - + By: Gregory John Casamento Date: Tue Oct 8 13:30:10 EDT 2019 This file is part of the GNUstep Library. - + This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - + This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - + You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 31 Milk Street #960789 Boston, MA 02196 USA. */ +#import "Foundation/NSArchiver.h" +#import "Foundation/NSKeyedArchiver.h" #import "Foundation/NSEnergyFormatter.h" #import "Foundation/NSMeasurement.h" #import "Foundation/NSMeasurementFormatter.h" #import "Foundation/NSNumberFormatter.h" #import "Foundation/NSUnit.h" +// Short and medium style unit strings +#define UNIT_JOULE_SHORT @"J" +#define UNIT_KILOJOULE_SHORT @"kJ" +#define UNIT_CALORIE_SHORT @"cal" +#define UNIT_KILOCALORIE_SHORT @"kcal" +#define UNIT_CALORIE_FOOD_SHORT @"Cal" + +// Long style unit strings - singular +#define UNIT_JOULE_LONG_SINGULAR @"joule" +#define UNIT_KILOJOULE_LONG_SINGULAR @"kilojoule" +#define UNIT_CALORIE_LONG_SINGULAR @"calorie" +#define UNIT_KILOCALORIE_LONG_SINGULAR @"kilocalorie" +#define UNIT_CALORIE_FOOD_LONG_SINGULAR @"Calorie" + +// Long style unit strings - plural +#define UNIT_JOULE_LONG_PLURAL @"joules" +#define UNIT_KILOJOULE_LONG_PLURAL @"kilojoules" +#define UNIT_CALORIE_LONG_PLURAL @"calories" +#define UNIT_KILOCALORIE_LONG_PLURAL @"kilocalories" +#define UNIT_CALORIE_FOOD_LONG_PLURAL @"Calories" + @implementation NSEnergyFormatter - (instancetype) init @@ -41,8 +64,21 @@ - (instancetype) init return self; } +- (void) dealloc +{ + RELEASE(_numberFormatter); + [super dealloc]; +} + - (NSNumberFormatter *) numberFormatter { + if (_numberFormatter == nil) + { + NSNumberFormatter *fmt = [[NSNumberFormatter alloc] init]; + [fmt setNumberStyle: NSNumberFormatterDecimalStyle]; + ASSIGN(_numberFormatter, fmt); + RELEASE(fmt); + } return _numberFormatter; } @@ -50,7 +86,7 @@ - (void) setNumberFormatter: (NSNumberFormatter *)formatter { ASSIGN(_numberFormatter, formatter); } - + - (NSFormattingUnitStyle) unitStyle { return _unitStyle; @@ -60,7 +96,7 @@ - (void) setUnitStyle: (NSFormattingUnitStyle)style { _unitStyle = style; } - + - (BOOL) isForFoodEnergyUse { return _isForFoodEnergyUse; @@ -73,35 +109,116 @@ - (void) setForFoodEnergyUse: (BOOL)flag - (NSString *) stringFromValue: (double)value unit: (NSEnergyFormatterUnit)unit { - NSUnit *u = nil; - NSMeasurement *m = nil; - NSMeasurementFormatter *mf = nil; + NSString *formattedNumber = nil; + NSString *unitString = nil; + NSString *result = nil; + + // Format the numeric value + formattedNumber = [[self numberFormatter] stringFromNumber: [NSNumber numberWithDouble: value]]; - switch (unit) + // Determine unit string based on style and unit + switch (_unitStyle) { - case NSEnergyFormatterUnitJoule: - u = [NSUnitEnergy joules]; + case NSFormattingUnitStyleShort: + switch (unit) + { + case NSEnergyFormatterUnitJoule: + unitString = UNIT_JOULE_SHORT; + break; + case NSEnergyFormatterUnitKilojoule: + unitString = UNIT_KILOJOULE_SHORT; + break; + case NSEnergyFormatterUnitCalorie: + unitString = UNIT_CALORIE_SHORT; + break; + case NSEnergyFormatterUnitKilocalorie: + unitString = (_isForFoodEnergyUse) ? UNIT_CALORIE_FOOD_SHORT : UNIT_KILOCALORIE_SHORT; + break; + } + result = [NSString stringWithFormat: @"%@%@", formattedNumber, unitString]; break; - case NSEnergyFormatterUnitKilojoule: - u = [NSUnitEnergy kilojoules]; + + case NSFormattingUnitStyleMedium: + switch (unit) + { + case NSEnergyFormatterUnitJoule: + unitString = UNIT_JOULE_SHORT; + break; + case NSEnergyFormatterUnitKilojoule: + unitString = UNIT_KILOJOULE_SHORT; + break; + case NSEnergyFormatterUnitCalorie: + unitString = UNIT_CALORIE_SHORT; + break; + case NSEnergyFormatterUnitKilocalorie: + unitString = (_isForFoodEnergyUse) ? UNIT_CALORIE_FOOD_SHORT : UNIT_KILOCALORIE_SHORT; + break; + } + result = [NSString stringWithFormat: @"%@ %@", formattedNumber, unitString]; break; - case NSEnergyFormatterUnitCalorie: - u = [NSUnitEnergy calories]; + + case NSFormattingUnitStyleLong: + switch (unit) + { + case NSEnergyFormatterUnitJoule: + unitString = (value == 1.0) ? UNIT_JOULE_LONG_SINGULAR : UNIT_JOULE_LONG_PLURAL; + break; + case NSEnergyFormatterUnitKilojoule: + unitString = (value == 1.0) ? UNIT_KILOJOULE_LONG_SINGULAR : UNIT_KILOJOULE_LONG_PLURAL; + break; + case NSEnergyFormatterUnitCalorie: + if (_isForFoodEnergyUse) + unitString = (value == 1.0) ? UNIT_CALORIE_FOOD_LONG_SINGULAR : UNIT_CALORIE_FOOD_LONG_PLURAL; + else + unitString = (value == 1.0) ? UNIT_CALORIE_LONG_SINGULAR : UNIT_CALORIE_LONG_PLURAL; + break; + case NSEnergyFormatterUnitKilocalorie: + if (_isForFoodEnergyUse) + unitString = (value == 1.0) ? UNIT_CALORIE_FOOD_LONG_SINGULAR : UNIT_CALORIE_FOOD_LONG_PLURAL; + else + unitString = (value == 1.0) ? UNIT_KILOCALORIE_LONG_SINGULAR : UNIT_KILOCALORIE_LONG_PLURAL; + break; + } + result = [NSString stringWithFormat: @"%@ %@", formattedNumber, unitString]; break; - case NSEnergyFormatterUnitKilocalorie: - u = [NSUnitEnergy kilocalories]; + + default: + // Fallback to NSMeasurementFormatter for unknown styles + { + NSUnit *u = nil; + NSMeasurement *m = nil; + NSMeasurementFormatter *mf = nil; + + switch (unit) + { + case NSEnergyFormatterUnitJoule: + u = [NSUnitEnergy joules]; + break; + case NSEnergyFormatterUnitKilojoule: + u = [NSUnitEnergy kilojoules]; + break; + case NSEnergyFormatterUnitCalorie: + u = [NSUnitEnergy calories]; + break; + case NSEnergyFormatterUnitKilocalorie: + u = [NSUnitEnergy kilocalories]; + break; + } + + m = [[NSMeasurement alloc] initWithDoubleValue: value + unit: u]; + AUTORELEASE(m); + mf = [[NSMeasurementFormatter alloc] init]; + AUTORELEASE(mf); + [mf setUnitStyle: _unitStyle]; + [mf setNumberFormatter: [self numberFormatter]]; + + result = [mf stringFromMeasurement: m]; + } break; } - m = [[NSMeasurement alloc] initWithDoubleValue: value - unit: u]; - AUTORELEASE(m); - mf = [[NSMeasurementFormatter alloc] init]; - AUTORELEASE(mf); - [mf setUnitStyle: _unitStyle]; - [mf setNumberFormatter: _numberFormatter]; - - return [mf stringFromMeasurement: m]; + return result; } - (NSString *) stringFromJoules: (double)numberInJoules @@ -116,14 +233,71 @@ - (NSString *) unitStringFromValue: (double)value unit: (NSEnergyFormatterUnit)u - (NSString *) unitStringFromJoules: (double)numberInJoules usedUnit: (NSEnergyFormatterUnit *)unit { - *unit = NSEnergyFormatterUnitJoule; - return [self stringFromValue: numberInJoules unit: *unit]; + NSEnergyFormatterUnit usedUnit = NSEnergyFormatterUnitJoule; + if (unit != NULL) + { + *unit = usedUnit; + } + return [self stringFromValue: numberInJoules unit: usedUnit]; +} + +- (NSString *) stringForObjectValue: (id)obj +{ + double joules = 0.0; + + if ([obj respondsToSelector: @selector(doubleValue)]) + { + joules = [obj doubleValue]; + } + + return [self stringFromJoules: joules]; } - (BOOL) getObjectValue: (id *)obj forString: (NSString *)string errorDescription: (NSString **)error { + if (error != NULL) + { + *error = @"Parsing not implemented"; + } return NO; } -@end +- (instancetype) initWithCoder: (NSCoder *)coder +{ + self = [super initWithCoder: coder]; + if (self != nil) + { + if ([coder allowsKeyedCoding]) + { + _isForFoodEnergyUse = [coder decodeBoolForKey: @"NS.forFoodEnergyUse"]; + ASSIGN(_numberFormatter, [coder decodeObjectForKey: @"NS.numberFormatter"]); + _unitStyle = [coder decodeIntegerForKey: @"NS.unitOptions"]; + } + else + { + [coder decodeValueOfObjCType: @encode(BOOL) at: &_isForFoodEnergyUse]; + [coder decodeValueOfObjCType: @encode(id) at: &_numberFormatter]; + [coder decodeValueOfObjCType: @encode(NSFormattingUnitStyle) at: &_unitStyle]; + } + } + return self; +} +- (void) encodeWithCoder: (NSCoder *)coder +{ + [super encodeWithCoder: coder]; + if ([coder allowsKeyedCoding]) + { + [coder encodeBool: _isForFoodEnergyUse forKey: @"NS.forFoodEnergyUse"]; + [coder encodeObject: _numberFormatter forKey: @"NS.numberFormatter"]; + [coder encodeInteger: _unitStyle forKey: @"NS.unitOptions"]; + } + else + { + [coder encodeValueOfObjCType: @encode(BOOL) at: &_isForFoodEnergyUse]; + [coder encodeValueOfObjCType: @encode(id) at: &_numberFormatter]; + [coder encodeValueOfObjCType: @encode(NSFormattingUnitStyle) at: &_unitStyle]; + } +} + +@end diff --git a/Source/NSISO8601DateFormatter.m b/Source/NSISO8601DateFormatter.m index 7f8bad4cc..8bdefd67c 100644 --- a/Source/NSISO8601DateFormatter.m +++ b/Source/NSISO8601DateFormatter.m @@ -31,67 +31,112 @@ @implementation NSISO8601DateFormatter - (NSString *) _buildFormatWithOptions { - NSString *result = @""; + NSMutableString *result = [NSMutableString string]; + BOOL hasDateComponent = NO; + BOOL hasTimeComponent = NO; - // Build date... - if (_formatOptions & NSISO8601DateFormatWithYear) + // Check if using week-based year format (ISO 8601 Week Date) + if (_formatOptions & NSISO8601DateFormatWithWeekOfYear) { - result = [result stringByAppendingString: @"yyyy"]; - } - if ((_formatOptions & NSISO8601DateFormatWithDashSeparatorInDate) - && (_formatOptions & NSISO8601DateFormatWithMonth)) - { - result = [result stringByAppendingString: @"-"]; - } - if (_formatOptions & NSISO8601DateFormatWithMonth) - { - result = [result stringByAppendingString: @"MM"]; - } - if ((_formatOptions & NSISO8601DateFormatWithDashSeparatorInDate) - && (_formatOptions & NSISO8601DateFormatWithDay)) - { - result = [result stringByAppendingString: @"-"]; + // Week-based year format: YYYY-Www-D or YYYYWwwD + if (_formatOptions & NSISO8601DateFormatWithYear) + { + [result appendString: @"YYYY"]; // ISO week-numbering year + hasDateComponent = YES; + } + if (_formatOptions & NSISO8601DateFormatWithDashSeparatorInDate) + { + [result appendString: @"-"]; + } + [result appendString: @"'W'"]; // Week designator + [result appendString: @"ww"]; // Week of year + hasDateComponent = YES; + + if (_formatOptions & NSISO8601DateFormatWithDay) + { + if (_formatOptions & NSISO8601DateFormatWithDashSeparatorInDate) + { + [result appendString: @"-"]; + } + [result appendString: @"e"]; // Day of week (1-7) + hasDateComponent = YES; + } } - if (_formatOptions & NSISO8601DateFormatWithDay) + else { - result = [result stringByAppendingString: @"dd"]; + // Calendar date format: YYYY-MM-DD or YYYYMMDD + if (_formatOptions & NSISO8601DateFormatWithYear) + { + [result appendString: @"yyyy"]; + hasDateComponent = YES; + } + if ((_formatOptions & NSISO8601DateFormatWithDashSeparatorInDate) + && (_formatOptions & NSISO8601DateFormatWithMonth)) + { + [result appendString: @"-"]; + } + if (_formatOptions & NSISO8601DateFormatWithMonth) + { + [result appendString: @"MM"]; + hasDateComponent = YES; + } + if ((_formatOptions & NSISO8601DateFormatWithDashSeparatorInDate) + && (_formatOptions & NSISO8601DateFormatWithDay)) + { + [result appendString: @"-"]; + } + if (_formatOptions & NSISO8601DateFormatWithDay) + { + [result appendString: @"dd"]; + hasDateComponent = YES; + } } - // Build time... - if ((_formatOptions & NSISO8601DateFormatWithSpaceBetweenDateAndTime) - && (_formatOptions & NSISO8601DateFormatWithTime)) - { - result = [result stringByAppendingString: @" "]; - } - else + // Check if we have time component + hasTimeComponent = (_formatOptions & NSISO8601DateFormatWithTime) != 0; + + // Add separator between date and time if both are present + if (hasDateComponent && hasTimeComponent) { - // Add T in format if we have a time component... - result = [result stringByAppendingString: @"'T'"]; + if (_formatOptions & NSISO8601DateFormatWithSpaceBetweenDateAndTime) + { + [result appendString: @" "]; + } + else + { + [result appendString: @"'T'"]; + } } + + // Build time component if (_formatOptions & NSISO8601DateFormatWithTime) { if (_formatOptions & NSISO8601DateFormatWithColonSeparatorInTime) { - result = [result stringByAppendingString: @"HH:mm:ss"]; + [result appendString: @"HH:mm:ss"]; } else { - result = [result stringByAppendingString: @"HHmmss"]; + [result appendString: @"HHmmss"]; + } + + // Add fractional seconds if requested + if (_formatOptions & NSISO8601DateFormatWithFractionalSeconds) + { + [result appendString: @".SSS"]; } } - if (_formatOptions & NSISO8601DateFormatWithFractionalSeconds) - { - result = [result stringByAppendingString: @".SSSSSS"]; - } + + // Add time zone if (_formatOptions & NSISO8601DateFormatWithTimeZone) { if (_formatOptions & NSISO8601DateFormatWithColonSeparatorInTimeZone) { - result = [result stringByAppendingString: @"ZZZZZ"]; + [result appendString: @"ZZZZZ"]; // e.g., +00:00 or Z } else { - result = [result stringByAppendingString: @"ZZZZ"]; + [result appendString: @"ZZZ"]; // e.g., +0000 } } @@ -116,6 +161,7 @@ - (oneway void) dealloc - (void) encodeWithCoder: (NSCoder *)coder { + [super encodeWithCoder: coder]; if ([coder allowsKeyedCoding]) { [coder encodeObject: _timeZone forKey: @"NS.timeZone"]; @@ -147,8 +193,9 @@ - (instancetype) init - (id) initWithCoder: (NSCoder *)decoder { - if ((self = [super init]) != nil) + if ((self = [super initWithCoder: decoder]) != nil) { + _formatter = [[NSDateFormatter alloc] init]; if ([decoder allowsKeyedCoding]) { ASSIGN(_timeZone, [decoder decodeObjectForKey: @"NS.timeZone"]); @@ -182,6 +229,16 @@ - (NSString *) stringFromDate: (NSDate *)date return [_formatter stringFromDate: date]; } +- (NSString *) stringForObjectValue: (id)obj +{ + if ([obj isKindOfClass: [NSDate class]]) + { + return [self stringFromDate: obj]; + } + + return nil; +} + + (NSString *) stringFromDate: (NSDate *)date timeZone: (NSTimeZone *)timeZone formatOptions: (NSISO8601DateFormatOptions)formatOptions diff --git a/Source/NSLengthFormatter.m b/Source/NSLengthFormatter.m index e45b171e4..3a380432c 100644 --- a/Source/NSLengthFormatter.m +++ b/Source/NSLengthFormatter.m @@ -21,6 +21,8 @@ Software Foundation, Inc., 31 Milk Street #960789 Boston, MA 02196 USA. */ +#import "Foundation/NSArchiver.h" +#import "Foundation/NSKeyedArchiver.h" #import "Foundation/NSLengthFormatter.h" #import "Foundation/NSMeasurement.h" #import "Foundation/NSMeasurementFormatter.h" @@ -49,6 +51,13 @@ - (void) dealloc - (NSNumberFormatter *) numberFormatter { + if (_numberFormatter == nil) + { + NSNumberFormatter *fmt = [[NSNumberFormatter alloc] init]; + [fmt setNumberStyle: NSNumberFormatterDecimalStyle]; + ASSIGN(_numberFormatter, fmt); + RELEASE(fmt); + } return _numberFormatter; } @@ -117,7 +126,7 @@ - (NSString *) stringFromValue: (double)value unit: (NSLengthFormatterUnit)unit mf = [[NSMeasurementFormatter alloc] init]; AUTORELEASE(mf); [mf setUnitStyle: _unitStyle]; - [mf setNumberFormatter: _numberFormatter]; + [mf setNumberFormatter: [self numberFormatter]]; return [mf stringFromMeasurement: m]; } @@ -134,8 +143,12 @@ - (NSString *) unitStringFromValue: (double)value unit: (NSLengthFormatterUnit)u - (NSString *) unitStringFromMeters: (double)numberInMeters usedUnit: (NSLengthFormatterUnit *)unit { - *unit = NSLengthFormatterUnitMeter; - return [self stringFromValue: numberInMeters unit: *unit]; + NSLengthFormatterUnit usedUnit = NSLengthFormatterUnitMeter; + if (unit != NULL) + { + *unit = usedUnit; + } + return [self stringFromValue: numberInMeters unit: usedUnit]; } - (NSString *) stringForObjectValue: (id)obj @@ -152,7 +165,49 @@ - (NSString *) stringForObjectValue: (id)obj - (BOOL) getObjectValue: (id *)obj forString: (NSString *)string errorDescription: (NSString **)error { + if (error != NULL) + { + *error = @"Parsing not implemented"; + } return NO; } +- (instancetype) initWithCoder: (NSCoder *)coder +{ + self = [super initWithCoder: coder]; + if (self != nil) + { + if ([coder allowsKeyedCoding]) + { + _isForPersonHeightUse = [coder decodeBoolForKey: @"NS.forPersonHeightUse"]; + ASSIGN(_numberFormatter, [coder decodeObjectForKey: @"NS.numberFormatter"]); + _unitStyle = [coder decodeIntegerForKey: @"NS.unitOptions"]; + } + else + { + [coder decodeValueOfObjCType: @encode(BOOL) at: &_isForPersonHeightUse]; + [coder decodeValueOfObjCType: @encode(id) at: &_numberFormatter]; + [coder decodeValueOfObjCType: @encode(NSFormattingUnitStyle) at: &_unitStyle]; + } + } + return self; +} + +- (void) encodeWithCoder: (NSCoder *)coder +{ + [super encodeWithCoder: coder]; + if ([coder allowsKeyedCoding]) + { + [coder encodeBool: _isForPersonHeightUse forKey: @"NS.forPersonHeightUse"]; + [coder encodeObject: _numberFormatter forKey: @"NS.numberFormatter"]; + [coder encodeInteger: _unitStyle forKey: @"NS.unitOptions"]; + } + else + { + [coder encodeValueOfObjCType: @encode(BOOL) at: &_isForPersonHeightUse]; + [coder encodeValueOfObjCType: @encode(id) at: &_numberFormatter]; + [coder encodeValueOfObjCType: @encode(NSFormattingUnitStyle) at: &_unitStyle]; + } +} + @end diff --git a/Source/NSLinguisticTagger.m b/Source/NSLinguisticTagger.m index 8fc3471fb..348571ee1 100644 --- a/Source/NSLinguisticTagger.m +++ b/Source/NSLinguisticTagger.m @@ -1,7 +1,7 @@ /* Implementation of class NSLinguisticTagger Copyright (C) 2019 Free Software Foundation, Inc. - By: heron + By: Gregory John Casamento Date: Sat Nov 2 21:37:50 EDT 2019 This file is part of the GNUstep Library. @@ -27,8 +27,29 @@ #import "Foundation/NSDictionary.h" #import "Foundation/NSArray.h" #import "Foundation/NSOrthography.h" +#import "Foundation/NSCharacterSet.h" +#import "Foundation/NSValue.h" +#import "Foundation/NSLocale.h" #import "GNUstepBase/NSObject+GNUstepBase.h" +// Helper function to detect if character is sentence terminator +static BOOL isSentenceTerminator(unichar c) +{ + return (c == '.' || c == '!' || c == '?' || c == 0x3002 || c == 0xFF01 || c == 0xFF1F); +} + +// Helper function to determine token type +static NSLinguisticTag tokenTypeForCharacter(unichar c) +{ + if ([[NSCharacterSet whitespaceAndNewlineCharacterSet] characterIsMember: c]) + return NSLinguisticTagWhitespace; + if ([[NSCharacterSet punctuationCharacterSet] characterIsMember: c]) + return NSLinguisticTagPunctuation; + if ([[NSCharacterSet alphanumericCharacterSet] characterIsMember: c]) + return NSLinguisticTagWord; + return NSLinguisticTagOther; +} + NSLinguisticTagScheme const NSLinguisticTagSchemeTokenType = @"NSLinguisticTagSchemeTokenType"; NSLinguisticTagScheme const NSLinguisticTagSchemeLexicalClass = @"NSLinguisticTagSchemeLexicalClass"; @@ -121,50 +142,311 @@ - (void) setString: (NSString *)string + (NSArray *) availableTagSchemesForUnit: (NSLinguisticTaggerUnit)unit language: (NSString *)language { - return nil; + // Basic implementation - return commonly supported schemes + NSMutableArray *schemes = [NSMutableArray array]; + + [schemes addObject: NSLinguisticTagSchemeTokenType]; + [schemes addObject: NSLinguisticTagSchemeLexicalClass]; + + if (unit == NSLinguisticTaggerUnitWord || unit == NSLinguisticTaggerUnitSentence) + { + [schemes addObject: NSLinguisticTagSchemeNameType]; + [schemes addObject: NSLinguisticTagSchemeNameTypeOrLexicalClass]; + [schemes addObject: NSLinguisticTagSchemeLemma]; + } + + [schemes addObject: NSLinguisticTagSchemeLanguage]; + [schemes addObject: NSLinguisticTagSchemeScript]; + + return schemes; } + (NSArray *) availableTagSchemesForLanguage: (NSString *)language { - return nil; + // Return all available schemes for any language + return [NSArray arrayWithObjects: + NSLinguisticTagSchemeTokenType, + NSLinguisticTagSchemeLexicalClass, + NSLinguisticTagSchemeNameType, + NSLinguisticTagSchemeNameTypeOrLexicalClass, + NSLinguisticTagSchemeLemma, + NSLinguisticTagSchemeLanguage, + NSLinguisticTagSchemeScript, + nil]; } - (void) setOrthography: (NSOrthography *)orthography range: (NSRange)range { - [self notImplemented: _cmd]; + NSDictionary *entry; + + if (_orthographyArray == nil) + { + _orthographyArray = [[NSMutableArray alloc] init]; + } + + entry = [NSDictionary dictionaryWithObjectsAndKeys: + orthography, @"orthography", + [NSValue valueWithRange: range], @"range", + nil]; + + [(NSMutableArray *)_orthographyArray addObject: entry]; } - (NSOrthography *) orthographyAtIndex: (NSUInteger)charIndex effectiveRange: (NSRangePointer)effectiveRange { + if (_orthographyArray != nil) + { + NSEnumerator *enumerator; + NSDictionary *entry; + NSRange range; + + enumerator = [_orthographyArray objectEnumerator]; + while ((entry = [enumerator nextObject])) + { + range = [[entry objectForKey: @"range"] rangeValue]; + if (NSLocationInRange(charIndex, range)) + { + if (effectiveRange != NULL) + *effectiveRange = range; + return [entry objectForKey: @"orthography"]; + } + } + } + + // Return default orthography based on dominant language + if (effectiveRange != NULL && _string != nil) + *effectiveRange = NSMakeRange(0, [_string length]); + return nil; } - (void) stringEditedInRange: (NSRange)newRange changeInLength: (NSInteger)delta { - [self notImplemented: _cmd]; + // Invalidate cached analysis for edited region + DESTROY(_tokenArray); + DESTROY(_dominantLanguage); + + // Adjust orthography ranges if necessary + if (_orthographyArray != nil && delta != 0) + { + NSMutableArray *adjusted; + NSEnumerator *enumerator; + NSDictionary *entry; + NSRange range; + + adjusted = [NSMutableArray array]; + enumerator = [_orthographyArray objectEnumerator]; + while ((entry = [enumerator nextObject])) + { + range = [[entry objectForKey: @"range"] rangeValue]; + + // If range is before edit, keep as-is + if (NSMaxRange(range) <= newRange.location) + { + [adjusted addObject: entry]; + } + // If range is after edit, adjust location + else if (range.location >= NSMaxRange(newRange)) + { + NSDictionary *newEntry; + + range.location += delta; + newEntry = [NSDictionary dictionaryWithObjectsAndKeys: + [entry objectForKey: @"orthography"], @"orthography", + [NSValue valueWithRange: range], @"range", + nil]; + [adjusted addObject: newEntry]; + } + // Range overlaps or contains edit - remove it + } + ASSIGN(_orthographyArray, adjusted); + } } - (NSRange) tokenRangeAtIndex: (NSUInteger)charIndex unit: (NSLinguisticTaggerUnit)unit { - return NSMakeRange(0,0); + NSUInteger length; + NSUInteger start; + NSUInteger end; + NSCharacterSet *wordChars; + unichar c; + + if (_string == nil || charIndex >= [_string length]) + return NSMakeRange(NSNotFound, 0); + + length = [_string length]; + start = charIndex; + end = charIndex; + + if (unit == NSLinguisticTaggerUnitWord) + { + wordChars = [NSCharacterSet alphanumericCharacterSet]; + c = [_string characterAtIndex: charIndex]; + + if (![wordChars characterIsMember: c]) + { + // Single character token for non-word characters + return NSMakeRange(charIndex, 1); + } + + // Find start of word + while (start > 0) + { + unichar prev = [_string characterAtIndex: start - 1]; + if (![wordChars characterIsMember: prev]) + break; + start--; + } + + // Find end of word + while (end < length) + { + unichar next = [_string characterAtIndex: end]; + if (![wordChars characterIsMember: next]) + break; + end++; + } + + return NSMakeRange(start, end - start); + } + else if (unit == NSLinguisticTaggerUnitSentence) + { + return [self sentenceRangeForRange: NSMakeRange(charIndex, 0)]; + } + else if (unit == NSLinguisticTaggerUnitParagraph) + { + return [_string paragraphRangeForRange: NSMakeRange(charIndex, 0)]; + } + else if (unit == NSLinguisticTaggerUnitDocument) + { + return NSMakeRange(0, length); + } + + return NSMakeRange(charIndex, 1); } - (NSRange) sentenceRangeForRange: (NSRange)range { - return NSMakeRange(0,0); + NSUInteger length; + NSUInteger start; + NSUInteger end; + unichar c; + + if (_string == nil || range.location >= [_string length]) + return NSMakeRange(NSNotFound, 0); + + length = [_string length]; + start = range.location; + end = NSMaxRange(range); + + // Find start of sentence - look backwards for sentence terminator or start of string + while (start > 0) + { + c = [_string characterAtIndex: start - 1]; + if (isSentenceTerminator(c)) + { + // Skip whitespace after terminator + while (start < length && [[NSCharacterSet whitespaceAndNewlineCharacterSet] + characterIsMember: [_string characterAtIndex: start]]) + start++; + break; + } + start--; + } + + // Find end of sentence - look forward for sentence terminator + while (end < length) + { + unichar c = [_string characterAtIndex: end]; + if (isSentenceTerminator(c)) + { + end++; + // Include trailing whitespace + while (end < length && [[NSCharacterSet whitespaceCharacterSet] + characterIsMember: [_string characterAtIndex: end]]) + end++; + break; + } + end++; + } + + return NSMakeRange(start, end - start); } - (void) enumerateTagsInRange: (NSRange)range unit: (NSLinguisticTaggerUnit)unit scheme: (NSLinguisticTagScheme)scheme options: (NSLinguisticTaggerOptions)options - usingBlock: (GSLinguisticTagRangeBoolBlock)block + usingBlock: (GSLinguisticTagRangeBoolBlock)blockHandler { - [self notImplemented: _cmd]; + NSUInteger currentPos; + NSUInteger maxPos; + BOOL stop; + + if (_string == nil || blockHandler == nil) + return; + + currentPos = range.location; + maxPos = NSMaxRange(range); + stop = NO; + + while (currentPos < maxPos && !stop) + { + NSRange tokenRange; + NSUInteger diff; + NSLinguisticTag tag; + BOOL shouldSkip; + + tokenRange = [self tokenRangeAtIndex: currentPos unit: unit]; + if (tokenRange.location == NSNotFound || tokenRange.location >= maxPos) + break; + + // Adjust token range to fit within requested range + if (tokenRange.location < range.location) + { + diff = range.location - tokenRange.location; + tokenRange.location = range.location; + tokenRange.length = (tokenRange.length > diff) ? tokenRange.length - diff : 0; + } + if (NSMaxRange(tokenRange) > maxPos) + { + tokenRange.length = maxPos - tokenRange.location; + } + + if (tokenRange.length > 0) + { + tag = [self tagAtIndex: tokenRange.location + unit: unit + scheme: scheme + tokenRange: NULL]; + + // Apply option filters + shouldSkip = NO; + if ([tag isEqualToString: NSLinguisticTagWord] && + (options & NSLinguisticTaggerOmitWords)) + shouldSkip = YES; + if ([tag isEqualToString: NSLinguisticTagPunctuation] && + (options & NSLinguisticTaggerOmitPunctuation)) + shouldSkip = YES; + if ([tag isEqualToString: NSLinguisticTagWhitespace] && + (options & NSLinguisticTaggerOmitWhitespace)) + shouldSkip = YES; + if ([tag isEqualToString: NSLinguisticTagOther] && + (options & NSLinguisticTaggerOmitOther)) + shouldSkip = YES; + + if (!shouldSkip && tag != nil) + { + CALL_NON_NULL_BLOCK(blockHandler, tag, tokenRange, &stop); + } + } + + currentPos = NSMaxRange(tokenRange); + } } - (NSLinguisticTag) tagAtIndex: (NSUInteger)charIndex @@ -172,6 +454,52 @@ - (NSLinguisticTag) tagAtIndex: (NSUInteger)charIndex scheme: (NSLinguisticTagScheme)scheme tokenRange: (NSRangePointer)tokenRange { + NSRange range; + unichar c; + + if (_string == nil || charIndex >= [_string length]) + return nil; + + range = [self tokenRangeAtIndex: charIndex unit: unit]; + if (tokenRange != NULL) + *tokenRange = range; + + if (range.location == NSNotFound || range.length == 0) + return nil; + + c = [_string characterAtIndex: range.location]; + + // Handle different schemes + if ([scheme isEqualToString: NSLinguisticTagSchemeTokenType]) + { + return tokenTypeForCharacter(c); + } + else if ([scheme isEqualToString: NSLinguisticTagSchemeLexicalClass]) + { + // Basic lexical classification + if ([[NSCharacterSet decimalDigitCharacterSet] characterIsMember: c]) + return NSLinguisticTagNumber; + if (isSentenceTerminator(c)) + return NSLinguisticTagSentenceTerminator; + if (c == '(' || c == '[' || c == '{') + return NSLinguisticTagOpenParenthesis; + if (c == ')' || c == ']' || c == '}') + return NSLinguisticTagCloseParenthesis; + if (c == '-' || c == 0x2013 || c == 0x2014) + return NSLinguisticTagDash; + if ([[NSCharacterSet whitespaceCharacterSet] characterIsMember: c]) + return NSLinguisticTagOtherWhitespace; + if ([[NSCharacterSet punctuationCharacterSet] characterIsMember: c]) + return NSLinguisticTagOtherPunctuation; + if ([[NSCharacterSet alphanumericCharacterSet] characterIsMember: c]) + return NSLinguisticTagOtherWord; + return NSLinguisticTagOther; + } + else if ([scheme isEqualToString: NSLinguisticTagSchemeLanguage]) + { + return [self dominantLanguage]; + } + return nil; } @@ -181,15 +509,103 @@ - (NSArray *) tagsInRange: (NSRange)range options: (NSLinguisticTaggerOptions)options tokenRanges: (NSArray **)tokenRanges { - return nil; + NSMutableArray *tags; + NSMutableArray *ranges; + NSUInteger currentPos; + NSUInteger maxPos; + + if (_string == nil || range.location >= [_string length]) + return [NSArray array]; + + tags = [NSMutableArray array]; + ranges = tokenRanges != NULL ? [NSMutableArray array] : nil; + currentPos = range.location; + maxPos = NSMaxRange(range); + + while (currentPos < maxPos) + { + NSRange tokenRange; + NSLinguisticTag tag; + NSUInteger diff; + + tag = [self tagAtIndex: currentPos + unit: unit + scheme: scheme + tokenRange: &tokenRange]; + + if (tokenRange.location == NSNotFound || tokenRange.location >= maxPos) + break; + + // Adjust token range to fit within requested range + if (tokenRange.location < range.location) + { + diff = range.location - tokenRange.location; + tokenRange.location = range.location; + tokenRange.length = (tokenRange.length > diff) ? tokenRange.length - diff : 0; + } + if (NSMaxRange(tokenRange) > maxPos) + { + tokenRange.length = maxPos - tokenRange.location; + } + + if (tag != nil && tokenRange.length > 0) + { + [tags addObject: tag]; + if (ranges != nil) + [ranges addObject: [NSValue valueWithRange: tokenRange]]; + } + + currentPos = NSMaxRange(tokenRange); + if (currentPos <= range.location) // Prevent infinite loop + currentPos = range.location + 1; + } + + if (tokenRanges != NULL) + *tokenRanges = ranges; + + return tags; } - (void) enumerateTagsInRange: (NSRange)range scheme: (NSLinguisticTagScheme)tagScheme options: (NSLinguisticTaggerOptions)opts - usingBlock: (GSLinguisticTagRangeRangeBoolBlock)block + usingBlock: (GSLinguisticTagRangeRangeBoolBlock)blockHandler { - [self notImplemented: _cmd]; + NSUInteger currentPos; + NSUInteger maxPos; + BOOL stop; + + if (_string == nil || blockHandler == nil) + return; + + currentPos = range.location; + maxPos = NSMaxRange(range); + stop = NO; + + while (currentPos < maxPos && !stop) + { + NSRange tokenRange; + NSRange sentenceRange; + NSLinguisticTag tag; + + sentenceRange = [self sentenceRangeForRange: NSMakeRange(currentPos, 0)]; + tag = [self tagAtIndex: currentPos + scheme: tagScheme + tokenRange: &tokenRange + sentenceRange: NULL]; + + if (tokenRange.location == NSNotFound || tokenRange.location >= maxPos) + break; + + if (tag != nil) + { + CALL_NON_NULL_BLOCK(blockHandler, tag, tokenRange, sentenceRange, &stop); + } + + currentPos = NSMaxRange(tokenRange); + if (currentPos <= range.location) + currentPos = range.location + 1; + } } - (NSLinguisticTag) tagAtIndex: (NSUInteger)charIndex @@ -197,7 +613,13 @@ - (NSLinguisticTag) tagAtIndex: (NSUInteger)charIndex tokenRange: (NSRangePointer)tokenRange sentenceRange: (NSRangePointer)sentenceRange { - return nil; + if (sentenceRange != NULL) + *sentenceRange = [self sentenceRangeForRange: NSMakeRange(charIndex, 0)]; + + return [self tagAtIndex: charIndex + unit: NSLinguisticTaggerUnitWord + scheme: scheme + tokenRange: tokenRange]; } - (NSArray *) tagsInRange: (NSRange)range @@ -205,17 +627,67 @@ - (NSArray *) tagsInRange: (NSRange)range options: (NSLinguisticTaggerOptions)opts tokenRanges: (NSArray **)tokenRanges { - return nil; + return [self tagsInRange: range + unit: NSLinguisticTaggerUnitWord + scheme: tagScheme + options: opts + tokenRanges: tokenRanges]; } - (NSString *) dominantLanguage { - return nil; + if (_dominantLanguage == nil && _string != nil) + { + _dominantLanguage = RETAIN([[self class] dominantLanguageForString: _string]); + } + return _dominantLanguage; } + (NSString *) dominantLanguageForString: (NSString *)string { - return nil; + NSUInteger length; + NSUInteger latinCount; + NSUInteger cjkCount; + NSUInteger arabicCount; + NSUInteger cyrillicCount; + NSUInteger i; + unichar c; + NSString *localeLanguage; + + if (string == nil || [string length] == 0) + return nil; + + // Simple heuristic based on character ranges + length = [string length]; + latinCount = 0; + cjkCount = 0; + arabicCount = 0; + cyrillicCount = 0; + + for (i = 0; i < length && i < 1000; i++) + { + c = [string characterAtIndex: i]; + + if ((c >= 0x0041 && c <= 0x007A) || (c >= 0x00C0 && c <= 0x024F)) + latinCount++; + else if ((c >= 0x4E00 && c <= 0x9FFF) || (c >= 0x3400 && c <= 0x4DBF)) + cjkCount++; + else if (c >= 0x0600 && c <= 0x06FF) + arabicCount++; + else if (c >= 0x0400 && c <= 0x04FF) + cyrillicCount++; + } + + if (cjkCount > latinCount && cjkCount > arabicCount) + return @"zh"; + if (arabicCount > latinCount) + return @"ar"; + if (cyrillicCount > latinCount) + return @"ru"; + + // Default to current locale's language or English + localeLanguage = [[NSLocale currentLocale] objectForKey: NSLocaleLanguageCode]; + return localeLanguage != nil ? localeLanguage : @"en"; } + (NSLinguisticTag) tagForString: (NSString *)string @@ -225,7 +697,26 @@ + (NSLinguisticTag) tagForString: (NSString *)string orthography: (NSOrthography *)orthography tokenRange: (NSRangePointer)tokenRange { - return nil; + NSLinguisticTagger *tagger; + NSLinguisticTag tag; + + tagger = [[NSLinguisticTagger alloc] + initWithTagSchemes: [NSArray arrayWithObject: scheme] options: 0]; + [tagger setString: string]; + + if (orthography != nil) + { + [tagger setOrthography: orthography + range: NSMakeRange(0, [string length])]; + } + + tag = [tagger tagAtIndex: charIndex + unit: unit + scheme: scheme + tokenRange: tokenRange]; + RELEASE(tagger); + + return tag; } + (NSArray *)tagsForString: (NSString *)string @@ -236,7 +727,26 @@ + (NSArray *)tagsForString: (NSString *)string orthography: (NSOrthography *)orthography tokenRanges: (NSArray **)tokenRanges { - return nil; + NSLinguisticTagger *tagger; + NSArray *tags; + + tagger = [[NSLinguisticTagger alloc] + initWithTagSchemes: [NSArray arrayWithObject: scheme] options: options]; + [tagger setString: string]; + + if (orthography != nil) + { + [tagger setOrthography: orthography range: range]; + } + + tags = [tagger tagsInRange: range + unit: unit + scheme: scheme + options: options + tokenRanges: tokenRanges]; + RELEASE(tagger); + + return tags; } + (void) enumerateTagsForString: (NSString *)string @@ -247,7 +757,22 @@ + (void) enumerateTagsForString: (NSString *)string orthography: (NSOrthography *)orthography usingBlock: (GSLinguisticTagRangeBoolBlock)block { - [self notImplemented: _cmd]; + NSLinguisticTagger *tagger = [[NSLinguisticTagger alloc] + initWithTagSchemes: [NSArray arrayWithObject: scheme] options: options]; + [tagger setString: string]; + + if (orthography != nil) + { + [tagger setOrthography: orthography range: range]; + } + + [tagger enumerateTagsInRange: range + unit: unit + scheme: scheme + options: options + usingBlock: block]; + + RELEASE(tagger); } @@ -257,7 +782,67 @@ - (NSArray *) possibleTagsAtIndex: (NSUInteger)charIndex sentenceRange: (NSRangePointer)sentenceRange scores: (NSArray **)scores { - return nil; + // Get the primary tag + NSLinguisticTag tag = [self tagAtIndex: charIndex + scheme: tagScheme + tokenRange: tokenRange + sentenceRange: sentenceRange]; + + if (tag == nil) + { + if (scores != NULL) + *scores = [NSArray array]; + return [NSArray array]; + } + + // Return the tag with a confidence score of 1.0 + if (scores != NULL) + *scores = [NSArray arrayWithObject: [NSNumber numberWithDouble: 1.0]]; + + return [NSArray arrayWithObject: tag]; } @end + +@implementation NSString (NSLinguisticAnalysis) + +- (NSArray *) linguisticTagsInRange: (NSRange)range + scheme: (NSLinguisticTagScheme)scheme + options: (NSLinguisticTaggerOptions)options + orthography: (NSOrthography *)orthography + tokenRanges: (NSArray **)tokenRanges +{ + return [NSLinguisticTagger tagsForString: self + range: range + unit: NSLinguisticTaggerUnitWord + scheme: scheme + options: options + orthography: orthography + tokenRanges: tokenRanges]; +} + +- (void) enumerateLinguisticTagsInRange: (NSRange)range + scheme: (NSLinguisticTagScheme)scheme + options: (NSLinguisticTaggerOptions)options + orthography: (NSOrthography *)orthography + usingBlock: (GSLinguisticTagRangeRangeBoolBlock)block +{ + NSLinguisticTagger *tagger = [[NSLinguisticTagger alloc] + initWithTagSchemes: [NSArray arrayWithObject: scheme] options: options]; + [tagger setString: self]; + + if (orthography != nil) + { + [tagger setOrthography: orthography range: range]; + } + + [tagger enumerateTagsInRange: range + scheme: scheme + options: options + usingBlock: block]; + + RELEASE(tagger); +} + +@end + diff --git a/Source/NSMassFormatter.m b/Source/NSMassFormatter.m index dd86cae65..fafe1967b 100644 --- a/Source/NSMassFormatter.m +++ b/Source/NSMassFormatter.m @@ -22,6 +22,8 @@ Software Foundation, Inc., 31 Milk Street #960789 Boston, MA 02196 USA. */ +#import "Foundation/NSArchiver.h" +#import "Foundation/NSKeyedArchiver.h" #import "Foundation/NSMassFormatter.h" #import "Foundation/NSMeasurement.h" #import "Foundation/NSMeasurementFormatter.h" @@ -42,8 +44,21 @@ - (instancetype) init return self; } +- (void) dealloc +{ + RELEASE(_numberFormatter); + [super dealloc]; +} + - (NSNumberFormatter *) numberFormatter { + if (_numberFormatter == nil) + { + NSNumberFormatter *fmt = [[NSNumberFormatter alloc] init]; + [fmt setNumberStyle: NSNumberFormatterDecimalStyle]; + ASSIGN(_numberFormatter, fmt); + RELEASE(fmt); + } return _numberFormatter; } @@ -103,7 +118,7 @@ - (NSString *) stringFromValue: (double)value unit: (NSMassFormatterUnit)unit mf = [[NSMeasurementFormatter alloc] init]; AUTORELEASE(mf); [mf setUnitStyle: _unitStyle]; - [mf setNumberFormatter: _numberFormatter]; + [mf setNumberFormatter: [self numberFormatter]]; return [mf stringFromMeasurement: m]; } @@ -120,13 +135,70 @@ - (NSString *) unitStringFromValue: (double)value unit: (NSMassFormatterUnit)uni - (NSString *) unitStringFromKilograms: (double)numberInKilograms usedUnit: (NSMassFormatterUnit *)unit { - *unit = NSMassFormatterUnitKilogram; - return [self stringFromValue: numberInKilograms unit: *unit]; + NSMassFormatterUnit usedUnit = NSMassFormatterUnitKilogram; + if (unit != NULL) + { + *unit = usedUnit; + } + return [self stringFromValue: numberInKilograms unit: usedUnit]; +} + +- (NSString *) stringForObjectValue: (id)obj +{ + double kilograms = 0.0; + + if ([obj respondsToSelector: @selector(doubleValue)]) + { + kilograms = [obj doubleValue]; + } + + return [self stringFromKilograms: kilograms]; } - (BOOL) getObjectValue: (id*)obj forString: (NSString *)string errorDescription: (NSString **)error { + if (error != NULL) + { + *error = @"Parsing not implemented"; + } return NO; } +- (instancetype) initWithCoder: (NSCoder *)coder +{ + self = [super initWithCoder: coder]; + if (self != nil) + { + if ([coder allowsKeyedCoding]) + { + ASSIGN(_numberFormatter, [coder decodeObjectForKey: @"NS.numberFormatter"]); + _isForPersonMassUse = [coder decodeBoolForKey: @"NS.forPersonMassUse"]; + _unitStyle = [coder decodeIntegerForKey: @"NS.unitOptions"]; + } + else + { + [coder decodeValueOfObjCType: @encode(id) at: &_numberFormatter]; + [coder decodeValueOfObjCType: @encode(BOOL) at: &_isForPersonMassUse]; + [coder decodeValueOfObjCType: @encode(NSFormattingUnitStyle) at: &_unitStyle]; + } + } + return self; +} + +- (void) encodeWithCoder: (NSCoder *)coder +{ + if ([coder allowsKeyedCoding]) + { + [coder encodeObject: _numberFormatter forKey: @"NS.numberFormatter"]; + [coder encodeBool: _isForPersonMassUse forKey: @"NS.forPersonMassUse"]; + [coder encodeInteger: _unitStyle forKey: @"NS.unitOptions"]; + } + else + { + [coder encodeValueOfObjCType: @encode(id) at: &_numberFormatter]; + [coder encodeValueOfObjCType: @encode(BOOL) at: &_isForPersonMassUse]; + [coder encodeValueOfObjCType: @encode(NSFormattingUnitStyle) at: &_unitStyle]; + } +} + @end diff --git a/Source/NSMeasurementFormatter.m b/Source/NSMeasurementFormatter.m index 31363179e..d4291134f 100644 --- a/Source/NSMeasurementFormatter.m +++ b/Source/NSMeasurementFormatter.m @@ -21,6 +21,8 @@ Software Foundation, Inc., 31 Milk Street #960789 Boston, MA 02196 USA. */ +#import "Foundation/NSArchiver.h" +#import "Foundation/NSKeyedArchiver.h" #import "Foundation/NSLocale.h" #import "Foundation/NSMeasurement.h" #import "Foundation/NSMeasurementFormatter.h" @@ -44,6 +46,7 @@ - (instancetype) init - (void) dealloc { RELEASE(_locale); + RELEASE(_numberFormatter); [super dealloc]; } @@ -79,6 +82,13 @@ - (void) setLocale: (NSLocale *)locale - (NSNumberFormatter *) numberFormatter { + if (_numberFormatter == nil) + { + NSNumberFormatter *fmt = [[NSNumberFormatter alloc] init]; + [fmt setNumberStyle: NSNumberFormatterDecimalStyle]; + ASSIGN(_numberFormatter, fmt); + RELEASE(fmt); + } return _numberFormatter; } @@ -89,18 +99,19 @@ - (void) setNumberFormatter: (NSNumberFormatter *)numberFormatter - (NSString *) stringFromMeasurement: (NSMeasurement *)measurement { - NSString *result = nil; - NSNumber *num = [NSNumber numberWithDouble: [measurement doubleValue]]; - NSUnit *u = [measurement unit]; + NSString *result = nil; + NSNumber *num = [NSNumber numberWithDouble: [measurement doubleValue]]; + NSUnit *u = [measurement unit]; + NSNumberFormatter *formatter = [self numberFormatter]; - result = [_numberFormatter stringForObjectValue: num]; + result = [formatter stringForObjectValue: num]; switch (_unitStyle) { - case NSFormattingUnitStyleShort: - case NSFormattingUnitStyleMedium: - case NSFormattingUnitStyleLong: - result = [result stringByAppendingString: [self stringFromUnit: u]]; - break; + case NSFormattingUnitStyleShort: + case NSFormattingUnitStyleMedium: + case NSFormattingUnitStyleLong: + result = [result stringByAppendingString: [self stringFromUnit: u]]; + break; } return result; @@ -114,7 +125,12 @@ - (NSString *) stringFromUnit: (NSUnit *)unit - (NSString *) stringForObjectValue: (id)obj { NSString *result = nil; - if ([obj isKindOfClass: [NSMeasurement class]]) + + if (obj == nil) + { + result = @""; + } + else if ([obj isKindOfClass: [NSMeasurement class]]) { result = [self stringFromMeasurement: obj]; } @@ -122,18 +138,58 @@ - (NSString *) stringForObjectValue: (id)obj { result = [self stringFromUnit: obj]; } + else + { + result = @""; + } return result; } - (id) initWithCoder: (NSCoder*)decoder { self = [super initWithCoder: decoder]; + if (self != nil) + { + if ([decoder allowsKeyedCoding]) + { + _unitOptions = [decoder decodeIntegerForKey: @"NS.unitOptions"]; + _unitStyle = [decoder decodeIntegerForKey: @"NS.unitStyle"]; + ASSIGN(_locale, [decoder decodeObjectForKey: @"NS.locale"]); + ASSIGN(_numberFormatter, + [decoder decodeObjectForKey: @"NS.numberFormatter"]); + } + else + { + [decoder decodeValueOfObjCType: + @encode(NSMeasurementFormatterUnitOptions) at: &_unitOptions]; + [decoder decodeValueOfObjCType: @encode(NSFormattingUnitStyle) + at: &_unitStyle]; + [decoder decodeValueOfObjCType: @encode(id) at: &_locale]; + [decoder decodeValueOfObjCType: @encode(id) at: &_numberFormatter]; + } + } return self; } - (void) encodeWithCoder: (NSCoder*)encoder { [super encodeWithCoder: encoder]; + if ([encoder allowsKeyedCoding]) + { + [encoder encodeInteger: _unitOptions forKey: @"NS.unitOptions"]; + [encoder encodeInteger: _unitStyle forKey: @"NS.unitStyle"]; + [encoder encodeObject: _locale forKey: @"NS.locale"]; + [encoder encodeObject: _numberFormatter forKey: @"NS.numberFormatter"]; + } + else + { + [encoder encodeValueOfObjCType: + @encode(NSMeasurementFormatterUnitOptions) at: &_unitOptions]; + [encoder encodeValueOfObjCType: @encode(NSFormattingUnitStyle) + at: &_unitStyle]; + [encoder encodeValueOfObjCType: @encode(id) at: &_locale]; + [encoder encodeValueOfObjCType: @encode(id) at: &_numberFormatter]; + } } @end diff --git a/Source/NSNumberFormatter.m b/Source/NSNumberFormatter.m index 74130b18f..63a609ed6 100644 --- a/Source/NSNumberFormatter.m +++ b/Source/NSNumberFormatter.m @@ -1051,6 +1051,56 @@ - (void) setThousandSeparator: (NSString*)newSeparator - (NSString*) stringForObjectValue: (id)anObject { + NSDecimalNumber *zeroNumber; + NSDecimalNumber *nanNumber; + NSAttributedString *attrStr; + + // Handle nil objects + if (nil == anObject) + { + attrStr = [self attributedStringForNil]; + if (attrStr != nil) + { + return [attrStr string]; + } + return @""; + } + + // Handle non-NSNumber objects + if (![anObject isKindOfClass: [NSNumber class]]) + { + attrStr = [self attributedStringForNotANumber]; + if (attrStr != nil) + { + return [attrStr string]; + } + return @""; + } + + // Handle NaN + nanNumber = [NSDecimalNumber notANumber]; + if ([anObject isEqual: nanNumber]) + { + attrStr = [self attributedStringForNotANumber]; + if (attrStr != nil) + { + return [attrStr string]; + } + return @""; + } + + // Handle zero + zeroNumber = [NSDecimalNumber zero]; + if ([anObject isEqual: zeroNumber]) + { + attrStr = [self attributedStringForZero]; + if (attrStr != nil) + { + return [attrStr string]; + } + // Fall through to normal formatting if no special zero string is set + } + if (MYBEHAVIOR == NSNumberFormatterBehaviorDefault || MYBEHAVIOR == NSNumberFormatterBehavior10_4) { @@ -1086,10 +1136,6 @@ - (NSString*) stringForObjectValue: (id)anObject * falling through to the double case for this, which will lose us some * precision, but hopefully not matter too much... */ - if (nil == anObject) - return [self nilSymbol]; - if (![anObject isKindOfClass: [NSNumber class]]) - return [self notANumberSymbol]; switch ([anObject objCType][0]) { case _C_LNG_LNG: @@ -1177,16 +1223,6 @@ - (NSString*) stringForObjectValue: (id)anObject characterSetWithCharactersInString: @"0123456789#.,_"]; placeHolders = [NSCharacterSet characterSetWithCharactersInString: @"0123456789#_"]; - - if (nil == anObject) - return [[self attributedStringForNil] string]; - if (![anObject isKindOfClass: [NSNumber class]]) - return [[self attributedStringForNotANumber] string]; - if ([anObject isEqual: [NSDecimalNumber notANumber]]) - return [[self attributedStringForNotANumber] string]; - if (_attributedStringForZero - && [anObject isEqual: [NSDecimalNumber zero]]) - return [[self attributedStringForZero] string]; useFormat = _positiveFormat; if ([(NSNumber*)anObject compare: [NSDecimalNumber zero]] diff --git a/Source/NSPersonNameComponentsFormatter.m b/Source/NSPersonNameComponentsFormatter.m index 67de10353..b8a09a244 100644 --- a/Source/NSPersonNameComponentsFormatter.m +++ b/Source/NSPersonNameComponentsFormatter.m @@ -21,10 +21,13 @@ Software Foundation, Inc., 31 Milk Street #960789 Boston, MA 02196 USA. */ +#import "Foundation/NSArchiver.h" +#import "Foundation/NSKeyedArchiver.h" #import "Foundation/NSString.h" #import "Foundation/NSAttributedString.h" #import "Foundation/NSPersonNameComponents.h" #import "Foundation/NSPersonNameComponentsFormatter.h" +#import "Foundation/NSValue.h" @implementation NSPersonNameComponentsFormatter @@ -223,4 +226,70 @@ - (NSString *)stringForObjectValue: (id)obj return [self stringFromPersonNameComponents: pnc]; } +- (instancetype) initWithCoder: (NSCoder *)coder +{ + self = [super initWithCoder: coder]; + if (self != nil) + { + if ([coder allowsKeyedCoding]) + { + // Apple uses a private data object: NS.nameComponentsFormatterPrivate + id privateData = [coder decodeObjectForKey: @"NS.nameComponentsFormatterPrivate"]; + if (privateData != nil && [coder respondsToSelector: @selector(decodeObjectForKey:)]) + { + // Decode from the private data structure + _phonetic = [[privateData valueForKey: @"NS.nameFormatterIsPhonetic"] boolValue]; + _style = [[privateData valueForKey: @"NS.nameFormatterStyle"] integerValue]; + // Additional Apple private fields (for compatibility): + // NS.nameFormatterForceFamilyNameFirst + // NS.nameFormatterForceGivenNameFirst + // NS.nameFormatterIgnoresFallbacks + // NS.nameFormatterLocale + } + else + { + // Fallback to direct decoding (GNUstep format) + _phonetic = [coder decodeBoolForKey: @"NS.nameFormatterIsPhonetic"]; + _style = [coder decodeIntegerForKey: @"NS.nameFormatterStyle"]; + _nameOptions = 0; // Default value + } + } + else + { + [coder decodeValueOfObjCType: @encode(BOOL) at: &_phonetic]; + [coder decodeValueOfObjCType: @encode(NSPersonNameComponentsFormatterStyle) at: &_style]; + [coder decodeValueOfObjCType: @encode(NSPersonNameComponentsFormatterOptions) at: &_nameOptions]; + } + } + return self; +} + +- (void) encodeWithCoder: (NSCoder *)coder +{ + [super encodeWithCoder: coder]; + if ([coder allowsKeyedCoding]) + { + // Create a private data dictionary to match Apple's format + NSMutableDictionary *privateData = [NSMutableDictionary dictionary]; + [privateData setObject: [NSNumber numberWithBool: _phonetic] + forKey: @"NS.nameFormatterIsPhonetic"]; + [privateData setObject: [NSNumber numberWithInteger: _style] + forKey: @"NS.nameFormatterStyle"]; + [privateData setObject: [NSNumber numberWithBool: NO] + forKey: @"NS.nameFormatterForceFamilyNameFirst"]; + [privateData setObject: [NSNumber numberWithBool: NO] + forKey: @"NS.nameFormatterForceGivenNameFirst"]; + [privateData setObject: [NSNumber numberWithBool: NO] + forKey: @"NS.nameFormatterIgnoresFallbacks"]; + + [coder encodeObject: privateData forKey: @"NS.nameComponentsFormatterPrivate"]; + } + else + { + [coder encodeValueOfObjCType: @encode(BOOL) at: &_phonetic]; + [coder encodeValueOfObjCType: @encode(NSPersonNameComponentsFormatterStyle) at: &_style]; + [coder encodeValueOfObjCType: @encode(NSPersonNameComponentsFormatterOptions) at: &_nameOptions]; + } +} + @end diff --git a/Source/NSUnit.m b/Source/NSUnit.m index eb8a12d55..f0c74afc4 100644 --- a/Source/NSUnit.m +++ b/Source/NSUnit.m @@ -27,7 +27,7 @@ // Private methods... @interface NSDimension (Private) -- (instancetype) initWithSymbol: (NSString *)symbol +- (instancetype) initWithSymbol: (NSString*)symbol coefficient: (double)coefficient constant: (double)constant; @end @@ -64,7 +64,7 @@ - (instancetype) initWithCoefficient: (double)coefficient return self; } -- (id) initWithCoder: (NSCoder *)coder +- (id) initWithCoder: (NSCoder*)coder { if ([coder allowsKeyedCoding]) { @@ -79,7 +79,7 @@ - (id) initWithCoder: (NSCoder *)coder return self; } -- (void) encodeWithCoder: (NSCoder *)coder +- (void) encodeWithCoder: (NSCoder*)coder { if([coder allowsKeyedCoding]) { @@ -105,7 +105,7 @@ - (double) constant - (double) baseUnitValueFromValue: (double)value { - return (_coefficient * value) + _constant; + return (_coefficient* value) + _constant; } - (double) valueFromBaseUnitValue: (double)baseUnitValue @@ -116,12 +116,19 @@ - (double) valueFromBaseUnitValue: (double)baseUnitValue // Abstract unit... @implementation NSUnit + +- (void) dealloc +{ + RELEASE(_symbol); + DEALLOC +} + - (instancetype) init { return [self initWithSymbol: @""]; } -- (instancetype) initWithSymbol: (NSString *)symbol +- (instancetype) initWithSymbol: (NSString*)symbol { self = [super init]; if (self != nil) @@ -131,7 +138,7 @@ - (instancetype) initWithSymbol: (NSString *)symbol return self; } -- (id) initWithCoder: (NSCoder *)coder +- (id) initWithCoder: (NSCoder*)coder { if ([coder allowsKeyedCoding]) { @@ -144,7 +151,7 @@ - (id) initWithCoder: (NSCoder *)coder return self; } -- (void) encodeWithCoder: (NSCoder *)coder +- (void) encodeWithCoder: (NSCoder*)coder { if ([coder allowsKeyedCoding]) { @@ -156,12 +163,12 @@ - (void) encodeWithCoder: (NSCoder *)coder } } -- (instancetype) copyWithZone: (NSZone *)zone +- (instancetype) copyWithZone: (NSZone*)zone { return [[NSUnit allocWithZone: zone] initWithSymbol: [self symbol]]; } -- (NSString *) symbol +- (NSString*) symbol { return _symbol; } @@ -170,12 +177,19 @@ - (NSString *) symbol // Dimension using units.... @implementation NSDimension -- (NSUnitConverter *) converter +- (NSUnitConverter*) converter { return _converter; } -- (instancetype) initWithSymbol: (NSString *)symbol converter: (NSUnitConverter *) converter +- (void) dealloc +{ + RELEASE(_converter); + DEALLOC +} + +- (instancetype) initWithSymbol: (NSString*)symbol + converter: (NSUnitConverter*) converter { self = [super initWithSymbol: symbol]; if (self != nil) @@ -185,12 +199,14 @@ - (instancetype) initWithSymbol: (NSString *)symbol converter: (NSUnitConverter return self; } -- (instancetype) initWithSymbol: (NSString *)symbol +- (instancetype) initWithSymbol: (NSString*)symbol coefficient: (double)coefficient constant: (double)constant { - NSUnitConverterLinear *converter = [[NSUnitConverterLinear alloc] initWithCoefficient: coefficient - constant: constant]; + NSUnitConverterLinear *converter; + + converter = [[NSUnitConverterLinear alloc] initWithCoefficient: coefficient + constant: constant]; self = [self initWithSymbol: symbol converter: converter]; @@ -203,7 +219,7 @@ + (instancetype) baseUnit return nil; } -- (id) initWithCoder: (NSCoder *)coder +- (id) initWithCoder: (NSCoder*)coder { self = [super initWithCoder: coder]; if ([coder allowsKeyedCoding]) @@ -217,7 +233,7 @@ - (id) initWithCoder: (NSCoder *)coder return self; } -- (void) encodeWithCoder: (NSCoder *)coder +- (void) encodeWithCoder: (NSCoder*)coder { [super encodeWithCoder: coder]; if ([coder allowsKeyedCoding]) @@ -242,14 +258,14 @@ + (instancetype) baseUnit } // Base unit - metersPerSecondSquared -+ (NSUnitAcceleration *) metersPerSecondSquared ++ (NSUnitAcceleration*) metersPerSecondSquared { return AUTORELEASE([[NSUnitAcceleration alloc] initWithSymbol: @"m/s^2" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitAcceleration *) gravity ++ (NSUnitAcceleration*) gravity { return AUTORELEASE([[NSUnitAcceleration alloc] initWithSymbol: @"g" coefficient: 9.81 @@ -266,42 +282,42 @@ + (instancetype) baseUnit } // Base unit - degrees -+ (NSUnitAngle *) degrees ++ (NSUnitAngle*) degrees { return AUTORELEASE([[NSUnitAngle alloc] initWithSymbol: @"deg" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitAngle *) arcMinutes ++ (NSUnitAngle*) arcMinutes { return AUTORELEASE([[NSUnitAngle alloc] initWithSymbol: @"'" coefficient: 0.016667 constant: 0.0]); } -+ (NSUnitAngle *) arcSeconds ++ (NSUnitAngle*) arcSeconds { return AUTORELEASE([[NSUnitAngle alloc] initWithSymbol: @"\"" coefficient: 0.00027778 constant: 0.0]); } -+ (NSUnitAngle *) radians ++ (NSUnitAngle*) radians { return AUTORELEASE([[NSUnitAngle alloc] initWithSymbol: @"rad" coefficient: 57.2958 constant: 0.0]); } -+ (NSUnitAngle *) gradians ++ (NSUnitAngle*) gradians { return AUTORELEASE([[NSUnitAngle alloc] initWithSymbol: @"grad" coefficient: 0.9 constant: 0.0]); } -+ (NSUnitAngle *) revolutions ++ (NSUnitAngle*) revolutions { return AUTORELEASE([[NSUnitAngle alloc] initWithSymbol: @"rev" coefficient: 360.0 @@ -318,98 +334,98 @@ + (instancetype) baseUnit } // Base unit - squareMeters -+ (NSUnitArea *) squareMegameters ++ (NSUnitArea*) squareMegameters { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"Mm^2" coefficient: 1e12 constant: 0.0]); } -+ (NSUnitArea *) squareKilometers ++ (NSUnitArea*) squareKilometers { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"km^2" coefficient: 1000000.0 constant: 0.0]); } -+ (NSUnitArea *) squareMeters ++ (NSUnitArea*) squareMeters { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"m^2" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitArea *) squareCentimeters ++ (NSUnitArea*) squareCentimeters { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"cm^2" coefficient: 0.0001 constant: 0.0]); } -+ (NSUnitArea *) squareMillimeters ++ (NSUnitArea*) squareMillimeters { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"mm^2" coefficient: 0.000001 constant: 0.0]); } -+ (NSUnitArea *) squareMicrometers ++ (NSUnitArea*) squareMicrometers { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"um^2" coefficient: 1e-12 constant: 0.0]); } -+ (NSUnitArea *) squareNanometers ++ (NSUnitArea*) squareNanometers { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"nm^2" coefficient: 1e-18 constant: 0.0]); } -+ (NSUnitArea *) squareInches ++ (NSUnitArea*) squareInches { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"in^2" coefficient: 0.00064516 constant: 0.0]); } -+ (NSUnitArea *) squareFeet ++ (NSUnitArea*) squareFeet { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"ft^2" coefficient: 0.092903 constant: 0.0]); } -+ (NSUnitArea *) squareYards ++ (NSUnitArea*) squareYards { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"yd^2" coefficient: 0.836127 constant: 0.0]); } -+ (NSUnitArea *) squareMiles ++ (NSUnitArea*) squareMiles { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"mi^2" coefficient: 2.59e+6 constant: 0.0]); } -+ (NSUnitArea *) acres ++ (NSUnitArea*) acres { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"acres" coefficient: 4046.86 constant: 0.0]); } -+ (NSUnitArea *) ares ++ (NSUnitArea*) ares { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"ares" coefficient: 100.0 constant: 0.0]); } -+ (NSUnitArea *) hectares ++ (NSUnitArea*) hectares { return AUTORELEASE([[NSUnitArea alloc] initWithSymbol: @"hectares" coefficient: 10000.0 @@ -426,25 +442,27 @@ + (instancetype) baseUnit } // Base unit - gramsPerLiter -+ (NSUnitConcentrationMass *) gramsPerLiter ++ (NSUnitConcentrationMass*) gramsPerLiter { return AUTORELEASE([[NSUnitConcentrationMass alloc] initWithSymbol: @"g/L" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitConcentrationMass *) milligramsPerDeciliter ++ (NSUnitConcentrationMass*) milligramsPerDeciliter { return AUTORELEASE([[NSUnitConcentrationMass alloc] initWithSymbol: @"mg/dL" coefficient: 0.01 constant: 0.0]); } -+ (NSUnitConcentrationMass *) millimolesPerLiterWithGramsPerMole:(double)gramsPerMole ++ (NSUnitConcentrationMass*) millimolesPerLiterWithGramsPerMole: + (double)gramsPerMole { - return AUTORELEASE([[NSUnitConcentrationMass alloc] initWithSymbol: @"mmol/L" - coefficient: 18.0 * gramsPerMole - constant: 0.0]); + return AUTORELEASE([[NSUnitConcentrationMass alloc] + initWithSymbol: @"mmol/L" + coefficient: 18.0 * gramsPerMole + constant: 0.0]); } @end @@ -457,7 +475,7 @@ + (instancetype) baseUnit } // Base unit - partsPerMillion -+ (NSUnitDispersion *) partsPerMillion ++ (NSUnitDispersion*) partsPerMillion { return AUTORELEASE([[NSUnitDispersion alloc] initWithSymbol: @"ppm" coefficient: 1.0 @@ -474,21 +492,21 @@ + (instancetype) baseUnit } // Base unit - seconds -+ (NSUnitDuration *) seconds ++ (NSUnitDuration*) seconds { return AUTORELEASE([[NSUnitDuration alloc] initWithSymbol: @"sec" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitDuration *) minutes ++ (NSUnitDuration*) minutes { return AUTORELEASE([[NSUnitDuration alloc] initWithSymbol: @"min" coefficient: 60.0 constant: 0.0]); } -+ (NSUnitDuration *) hours ++ (NSUnitDuration*) hours { return AUTORELEASE([[NSUnitDuration alloc] initWithSymbol: @"hr" coefficient: 3600.0 @@ -505,42 +523,42 @@ + (instancetype) baseUnit } // Base unit - coulombs -+ (NSUnitElectricCharge *) coulombs ++ (NSUnitElectricCharge*) coulombs { return AUTORELEASE([[NSUnitElectricCharge alloc] initWithSymbol: @"C" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitElectricCharge *) megaampereHours ++ (NSUnitElectricCharge*) megaampereHours { return AUTORELEASE([[NSUnitElectricCharge alloc] initWithSymbol: @"MAh" coefficient: 3.6e9 constant: 0.0]); } -+ (NSUnitElectricCharge *) kiloampereHours ++ (NSUnitElectricCharge*) kiloampereHours { return AUTORELEASE([[NSUnitElectricCharge alloc] initWithSymbol: @"kAh" coefficient: 3600000.0 constant: 0.0]); } -+ (NSUnitElectricCharge *) ampereHours ++ (NSUnitElectricCharge*) ampereHours { return AUTORELEASE([[NSUnitElectricCharge alloc] initWithSymbol: @"mAh" coefficient: 3600.0 constant: 0.0]); } -+ (NSUnitElectricCharge *) milliampereHours ++ (NSUnitElectricCharge*) milliampereHours { return AUTORELEASE([[NSUnitElectricCharge alloc] initWithSymbol: @"hr" coefficient: 3.6 constant: 0.0]); } -+ (NSUnitElectricCharge *) microampereHours ++ (NSUnitElectricCharge*) microampereHours { return AUTORELEASE([[NSUnitElectricCharge alloc] initWithSymbol: @"uAh" coefficient: 0.0036 @@ -557,35 +575,35 @@ + (instancetype) baseUnit } // Base unit - amperes -+ (NSUnitElectricCurrent *) megaamperes ++ (NSUnitElectricCurrent*) megaamperes { return AUTORELEASE([[NSUnitElectricCurrent alloc] initWithSymbol: @"MA" coefficient: 1000000.0 constant: 0.0]); } -+ (NSUnitElectricCurrent *) kiloamperes ++ (NSUnitElectricCurrent*) kiloamperes { return AUTORELEASE([[NSUnitElectricCurrent alloc] initWithSymbol: @"kA" coefficient: 1000.0 constant: 0.0]); } -+ (NSUnitElectricCurrent *) amperes ++ (NSUnitElectricCurrent*) amperes { return AUTORELEASE([[NSUnitElectricCurrent alloc] initWithSymbol: @"A" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitElectricCurrent *) milliamperes ++ (NSUnitElectricCurrent*) milliamperes { return AUTORELEASE([[NSUnitElectricCurrent alloc] initWithSymbol: @"mA" coefficient: 0.001 constant: 0.0]); } -+ (NSUnitElectricCurrent *) microamperes ++ (NSUnitElectricCurrent*) microamperes { return AUTORELEASE([[NSUnitElectricCurrent alloc] initWithSymbol: @"uA" coefficient: 0.000001 @@ -602,35 +620,35 @@ + (instancetype) baseUnit } // Base unit - volts -+ (NSUnitElectricPotentialDifference *) megavolts ++ (NSUnitElectricPotentialDifference*) megavolts { return AUTORELEASE([[NSUnitElectricPotentialDifference alloc] initWithSymbol: @"MV" coefficient: 1000000.0 constant: 0.0]); } -+ (NSUnitElectricPotentialDifference *) kilovolts ++ (NSUnitElectricPotentialDifference*) kilovolts { return AUTORELEASE([[NSUnitElectricPotentialDifference alloc] initWithSymbol: @"kV" coefficient: 1000.0 constant: 0.0]); } -+ (NSUnitElectricPotentialDifference *) volts ++ (NSUnitElectricPotentialDifference*) volts { return AUTORELEASE([[NSUnitElectricPotentialDifference alloc] initWithSymbol: @"V" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitElectricPotentialDifference *) millivolts ++ (NSUnitElectricPotentialDifference*) millivolts { return AUTORELEASE([[NSUnitElectricPotentialDifference alloc] initWithSymbol: @"mV" coefficient: 0.001 constant: 0.0]); } -+ (NSUnitElectricPotentialDifference *) microvolts ++ (NSUnitElectricPotentialDifference*) microvolts { return AUTORELEASE([[NSUnitElectricPotentialDifference alloc] initWithSymbol: @"uV" coefficient: 0.000001 @@ -647,35 +665,35 @@ + (instancetype) baseUnit } // Base unit - ohms -+ (NSUnitElectricResistance *) megaohms ++ (NSUnitElectricResistance*) megaohms { return AUTORELEASE([[NSUnitElectricResistance alloc] initWithSymbol: @"MOhm" coefficient: 100000.0 constant: 0.0]); } -+ (NSUnitElectricResistance *) kiloohms ++ (NSUnitElectricResistance*) kiloohms { return AUTORELEASE([[NSUnitElectricResistance alloc] initWithSymbol: @"kOhm" coefficient: 1000.0 constant: 0.0]); } -+ (NSUnitElectricResistance *) ohms ++ (NSUnitElectricResistance*) ohms { return AUTORELEASE([[NSUnitElectricResistance alloc] initWithSymbol: @"Ohm" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitElectricResistance *) milliohms ++ (NSUnitElectricResistance*) milliohms { return AUTORELEASE([[NSUnitElectricResistance alloc] initWithSymbol: @"mOhm" coefficient: 0.001 constant: 0.0]); } -+ (NSUnitElectricResistance *) microohms ++ (NSUnitElectricResistance*) microohms { return AUTORELEASE([[NSUnitElectricResistance alloc] initWithSymbol: @"uOhm" coefficient: 0.000001 @@ -693,35 +711,35 @@ + (instancetype) baseUnit } // Base unit - joules -+ (NSUnitEnergy *) kilojoules ++ (NSUnitEnergy*) kilojoules { return AUTORELEASE([[NSUnitEnergy alloc] initWithSymbol: @"kJ" coefficient: 1000.0 constant: 0.0]); } -+ (NSUnitEnergy *) joules ++ (NSUnitEnergy*) joules { return AUTORELEASE([[NSUnitEnergy alloc] initWithSymbol: @"J" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitEnergy *) kilocalories ++ (NSUnitEnergy*) kilocalories { return AUTORELEASE([[NSUnitEnergy alloc] initWithSymbol: @"kCal" coefficient: 4184.0 constant: 0.0]); } -+ (NSUnitEnergy *) calories ++ (NSUnitEnergy*) calories { return AUTORELEASE([[NSUnitEnergy alloc] initWithSymbol: @"cal" coefficient: 4.184 constant: 0.0]); } -+ (NSUnitEnergy *) kilowattHours ++ (NSUnitEnergy*) kilowattHours { return AUTORELEASE([[NSUnitEnergy alloc] initWithSymbol: @"kWh" coefficient: 3600000.0 @@ -739,56 +757,56 @@ + (instancetype) baseUnit // Base unit - hertz -+ (NSUnitFrequency *) terahertz ++ (NSUnitFrequency*) terahertz { return AUTORELEASE([[NSUnitFrequency alloc] initWithSymbol: @"thz" coefficient: 1e12 constant: 0.0]); } -+ (NSUnitFrequency *) gigahertz ++ (NSUnitFrequency*) gigahertz { return AUTORELEASE([[NSUnitFrequency alloc] initWithSymbol: @"ghz" coefficient: 1e9 constant: 0.0]); } -+ (NSUnitFrequency *) megahertz ++ (NSUnitFrequency*) megahertz { return AUTORELEASE([[NSUnitFrequency alloc] initWithSymbol: @"GHz" coefficient: 1000000.0 constant: 0.0]); } -+ (NSUnitFrequency *) kilohertz ++ (NSUnitFrequency*) kilohertz { return AUTORELEASE([[NSUnitFrequency alloc] initWithSymbol: @"KHz" coefficient: 1000.0 constant: 0.0]); } -+ (NSUnitFrequency *) hertz ++ (NSUnitFrequency*) hertz { return AUTORELEASE([[NSUnitFrequency alloc] initWithSymbol: @"Hz" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitFrequency *) millihertz ++ (NSUnitFrequency*) millihertz { return AUTORELEASE([[NSUnitFrequency alloc] initWithSymbol: @"mHz" coefficient: 0.001 constant: 0.0]); } -+ (NSUnitFrequency *) microhertz ++ (NSUnitFrequency*) microhertz { return AUTORELEASE([[NSUnitFrequency alloc] initWithSymbol: @"uHz" coefficient: 0.000001 constant: 0.0]); } -+ (NSUnitFrequency *) nanohertz ++ (NSUnitFrequency*) nanohertz { return AUTORELEASE([[NSUnitFrequency alloc] initWithSymbol: @"nHz" coefficient: 1e-9 @@ -806,14 +824,14 @@ + (instancetype) baseUnit // Base unit - litersPer100Kilometers -+ (NSUnitFuelEfficiency *) litersPer100Kilometers ++ (NSUnitFuelEfficiency*) litersPer100Kilometers { return AUTORELEASE([[NSUnitFuelEfficiency alloc] initWithSymbol: @"L/100km" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitFuelEfficiency *) milesPerImperialGallon ++ (NSUnitFuelEfficiency*) milesPerImperialGallon { // FIXME return AUTORELEASE([[NSUnitFuelEfficiency alloc] initWithSymbol: @"mpg" @@ -821,7 +839,7 @@ + (NSUnitFuelEfficiency *) milesPerImperialGallon constant: 0.0]); } -+ (NSUnitFuelEfficiency *) milesPerGallon ++ (NSUnitFuelEfficiency*) milesPerGallon { // FIXME return AUTORELEASE([[NSUnitFuelEfficiency alloc] initWithSymbol: @"mpg" @@ -840,154 +858,154 @@ + (instancetype) baseUnit // Base unit - meters -+ (NSUnitLength *) megameters ++ (NSUnitLength*) megameters { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"Mm" coefficient: 1000000.0 constant: 0.0]); } -+ (NSUnitLength *) kilometers ++ (NSUnitLength*) kilometers { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"kM" coefficient: 1000.0 constant: 0.0]); } -+ (NSUnitLength *) hectometers ++ (NSUnitLength*) hectometers { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"hm" coefficient: 100.0 constant: 0.0]); } -+ (NSUnitLength *) decameters ++ (NSUnitLength*) decameters { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"dam" coefficient: 10 constant: 0.0]); } -+ (NSUnitLength *) meters ++ (NSUnitLength*) meters { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"meters" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitLength *) decimeters ++ (NSUnitLength*) decimeters { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"dm" coefficient: 0.1 constant: 0.0]); } -+ (NSUnitLength *) centimeters ++ (NSUnitLength*) centimeters { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"cm" coefficient: 0.01 constant: 0.0]); } -+ (NSUnitLength *) millimeters ++ (NSUnitLength*) millimeters { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"mm" coefficient: 0.001 constant: 0.0]); } -+ (NSUnitLength *) micrometers ++ (NSUnitLength*) micrometers { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"um" coefficient: 0.000001 constant: 0.0]); } -+ (NSUnitLength *) nanometers ++ (NSUnitLength*) nanometers { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"nm" coefficient: 1e-9 constant: 0.0]); } -+ (NSUnitLength *) picometers ++ (NSUnitLength*) picometers { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"pm" coefficient: 1e-12 constant: 0.0]); } -+ (NSUnitLength *) inches ++ (NSUnitLength*) inches { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"in" coefficient: 0.254 constant: 0.0]); } -+ (NSUnitLength *) feet ++ (NSUnitLength*) feet { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"ft" coefficient: 0.3048 constant: 0.0]); } -+ (NSUnitLength *) yards ++ (NSUnitLength*) yards { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"yd" coefficient: 0.9144 constant: 0.0]); } -+ (NSUnitLength *) miles ++ (NSUnitLength*) miles { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"mi" coefficient: 1609.34 constant: 0.0]); } -+ (NSUnitLength *) scandinavianMiles ++ (NSUnitLength*) scandinavianMiles { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"smi" coefficient: 10000 constant: 0.0]); } -+ (NSUnitLength *) lightyears ++ (NSUnitLength*) lightyears { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"ly" coefficient: 9.461e+15 constant: 0.0]); } -+ (NSUnitLength *) nauticalMiles ++ (NSUnitLength*) nauticalMiles { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"NM" coefficient: 1852.0 constant: 0.0]); } -+ (NSUnitLength *) fathoms ++ (NSUnitLength*) fathoms { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"ftm" coefficient: 1.8288 constant: 0.0]); } -+ (NSUnitLength *) furlongs ++ (NSUnitLength*) furlongs { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"fur" coefficient: 201.168 constant: 0.0]); } -+ (NSUnitLength *) astronomicalUnits ++ (NSUnitLength*) astronomicalUnits { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"ua" coefficient: 1.496e+11 constant: 0.0]); } -+ (NSUnitLength *) parsecs ++ (NSUnitLength*) parsecs { return AUTORELEASE([[NSUnitLength alloc] initWithSymbol: @"pc" coefficient: 3.086e+16 @@ -1004,7 +1022,7 @@ + (instancetype) baseUnit } // Base unit - lux -+ (NSUnitIlluminance *) lux ++ (NSUnitIlluminance*) lux { return AUTORELEASE([[NSUnitIlluminance alloc] initWithSymbol: @"lux" coefficient: 1.0 @@ -1022,112 +1040,112 @@ + (instancetype) baseUnit // Base unit - kilograms -+ (NSUnitMass *) kilograms ++ (NSUnitMass*) kilograms { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"kg" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitMass *) grams ++ (NSUnitMass*) grams { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"g" coefficient: 0.001 constant: 0.0]); } -+ (NSUnitMass *) decigrams ++ (NSUnitMass*) decigrams { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"dg" coefficient: 0.0001 constant: 0.0]); } -+ (NSUnitMass *) centigrams ++ (NSUnitMass*) centigrams { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"cg" coefficient: 0.00001 constant: 0.0]); } -+ (NSUnitMass *) milligrams ++ (NSUnitMass*) milligrams { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"mg" coefficient: 0.000001 constant: 0.0]); } -+ (NSUnitMass *) micrograms ++ (NSUnitMass*) micrograms { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"ug" coefficient: 1e-9 constant: 0.0]); } -+ (NSUnitMass *) nanograms ++ (NSUnitMass*) nanograms { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"ng" coefficient: 1e-12 constant: 0.0]); } -+ (NSUnitMass *) picograms ++ (NSUnitMass*) picograms { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"pg" coefficient: 1e-15 constant: 0.0]); } -+ (NSUnitMass *) ounces ++ (NSUnitMass*) ounces { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"oz" coefficient: 0.0283495 constant: 0.0]); } -+ (NSUnitMass *) pounds ++ (NSUnitMass*) pounds { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"lb" coefficient: 0.453592 constant: 0.0]); } -+ (NSUnitMass *) stones ++ (NSUnitMass*) stones { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"st" coefficient: 6.35029 constant: 0.0]); } -+ (NSUnitMass *) metricTons ++ (NSUnitMass*) metricTons { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"t" coefficient: 1000 constant: 0.0]); } -+ (NSUnitMass *) shortTons ++ (NSUnitMass*) shortTons { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"ton" coefficient: 907.185 constant: 0.0]); } -+ (NSUnitMass *) carats ++ (NSUnitMass*) carats { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"ct" coefficient: 0.0002 constant: 0.0]); } -+ (NSUnitMass *) ouncesTroy ++ (NSUnitMass*) ouncesTroy { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"oz t" coefficient: 0.03110348 constant: 0.0]); } -+ (NSUnitMass *) slugs ++ (NSUnitMass*) slugs { return AUTORELEASE([[NSUnitMass alloc] initWithSymbol: @"slug" coefficient: 14.5939 @@ -1145,77 +1163,77 @@ + (instancetype) baseUnit // Base unit - watts -+ (NSUnitPower *) terawatts ++ (NSUnitPower*) terawatts { return AUTORELEASE([[NSUnitPower alloc] initWithSymbol: @"TW" coefficient: 1e12 constant: 0.0]); } -+ (NSUnitPower *) gigawatts ++ (NSUnitPower*) gigawatts { return AUTORELEASE([[NSUnitPower alloc] initWithSymbol: @"GW" coefficient: 1e9 constant: 0.0]); } -+ (NSUnitPower *) megawatts ++ (NSUnitPower*) megawatts { return AUTORELEASE([[NSUnitPower alloc] initWithSymbol: @"MW" coefficient: 1000000.0 constant: 0.0]); } -+ (NSUnitPower *) kilowatts ++ (NSUnitPower*) kilowatts { return AUTORELEASE([[NSUnitPower alloc] initWithSymbol: @"kW" coefficient: 1000.0 constant: 0.0]); } -+ (NSUnitPower *) watts ++ (NSUnitPower*) watts { return AUTORELEASE([[NSUnitPower alloc] initWithSymbol: @"W" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitPower *) milliwatts ++ (NSUnitPower*) milliwatts { return AUTORELEASE([[NSUnitPower alloc] initWithSymbol: @"mW" coefficient: 0.001 constant: 0.0]); } -+ (NSUnitPower *) microwatts ++ (NSUnitPower*) microwatts { return AUTORELEASE([[NSUnitPower alloc] initWithSymbol: @"uW" coefficient: 0.000001 constant: 0.0]); } -+ (NSUnitPower *) nanowatts ++ (NSUnitPower*) nanowatts { return AUTORELEASE([[NSUnitPower alloc] initWithSymbol: @"nW" coefficient: 1e-9 constant: 0.0]); } -+ (NSUnitPower *) picowatts ++ (NSUnitPower*) picowatts { return AUTORELEASE([[NSUnitPower alloc] initWithSymbol: @"pW" coefficient: 1e-12 constant: 0.0]); } -+ (NSUnitPower *) femtowatts ++ (NSUnitPower*) femtowatts { return AUTORELEASE([[NSUnitPower alloc] initWithSymbol: @"fW" coefficient: 1e-15 constant: 0.0]); } -+ (NSUnitPower *) horsepower ++ (NSUnitPower*) horsepower { return AUTORELEASE([[NSUnitPower alloc] initWithSymbol: @"hp" coefficient: 745.7 @@ -1233,70 +1251,70 @@ + (instancetype) baseUnit // Base unit - newtonsPerMetersSquared (equivalent to 1 pascal) -+ (NSUnitPressure *) newtonsPerMetersSquared ++ (NSUnitPressure*) newtonsPerMetersSquared { return AUTORELEASE([[NSUnitPressure alloc] initWithSymbol: @"N/m^2" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitPressure *) gigapascals ++ (NSUnitPressure*) gigapascals { return AUTORELEASE([[NSUnitPressure alloc] initWithSymbol: @"GPa" coefficient: 1e9 constant: 0.0]); } -+ (NSUnitPressure *) megapascals ++ (NSUnitPressure*) megapascals { return AUTORELEASE([[NSUnitPressure alloc] initWithSymbol: @"MPa" coefficient: 1000000.0 constant: 0.0]); } -+ (NSUnitPressure *) kilopascals ++ (NSUnitPressure*) kilopascals { return AUTORELEASE([[NSUnitPressure alloc] initWithSymbol: @"kPa" coefficient: 1000.0 constant: 0.0]); } -+ (NSUnitPressure *) hectopascals ++ (NSUnitPressure*) hectopascals { return AUTORELEASE([[NSUnitPressure alloc] initWithSymbol: @"hPa" coefficient: 100.0 constant: 0.0]); } -+ (NSUnitPressure *) inchesOfMercury ++ (NSUnitPressure*) inchesOfMercury { return AUTORELEASE([[NSUnitPressure alloc] initWithSymbol: @"inHg" coefficient: 3386.0 constant: 0.0]); } -+ (NSUnitPressure *) bars ++ (NSUnitPressure*) bars { return AUTORELEASE([[NSUnitPressure alloc] initWithSymbol: @"bars" coefficient: 100000.0 constant: 0.0]); } -+ (NSUnitPressure *) millibars ++ (NSUnitPressure*) millibars { return AUTORELEASE([[NSUnitPressure alloc] initWithSymbol: @"mbars" coefficient: 100.0 constant: 0.0]); } -+ (NSUnitPressure *) millimetersOfMercury ++ (NSUnitPressure*) millimetersOfMercury { return AUTORELEASE([[NSUnitPressure alloc] initWithSymbol: @"mmHg" coefficient: 133.322 constant: 0.0]); } -+ (NSUnitPressure *) poundsForcePerSquareInch ++ (NSUnitPressure*) poundsForcePerSquareInch { return AUTORELEASE([[NSUnitPressure alloc] initWithSymbol: @"psi" coefficient: 6894.76 @@ -1313,28 +1331,28 @@ + (instancetype) baseUnit } // Base unit - metersPerSecond -+ (NSUnitSpeed *) metersPerSecond ++ (NSUnitSpeed*) metersPerSecond { return AUTORELEASE([[NSUnitSpeed alloc] initWithSymbol: @"m/s" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitSpeed *) kilometersPerHour ++ (NSUnitSpeed*) kilometersPerHour { return AUTORELEASE([[NSUnitSpeed alloc] initWithSymbol: @"km/h" coefficient: 0.277778 constant: 0.0]); } -+ (NSUnitSpeed *) milesPerHour ++ (NSUnitSpeed*) milesPerHour { return AUTORELEASE([[NSUnitSpeed alloc] initWithSymbol: @"mph" coefficient: 0.44704 constant: 0.0]); } -+ (NSUnitSpeed *) knots ++ (NSUnitSpeed*) knots { return AUTORELEASE([[NSUnitSpeed alloc] initWithSymbol: @"kn" coefficient: 0.51444 @@ -1350,21 +1368,21 @@ + (instancetype) baseUnit } // Base unit - kelvin -+ (NSUnitTemperature *) kelvin ++ (NSUnitTemperature*) kelvin { return AUTORELEASE([[NSUnitTemperature alloc] initWithSymbol: @"K" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitTemperature *) celsius ++ (NSUnitTemperature*) celsius { return AUTORELEASE([[NSUnitTemperature alloc] initWithSymbol: @"C" coefficient: 1.0 constant: 273.15]); } -+ (NSUnitTemperature *) fahrenheit ++ (NSUnitTemperature*) fahrenheit { return AUTORELEASE([[NSUnitTemperature alloc] initWithSymbol: @"F" coefficient: 0.55555555555556 @@ -1379,217 +1397,217 @@ + (instancetype) baseUnit } // Base unit - liters -+ (NSUnitVolume *) megaliters ++ (NSUnitVolume*) megaliters { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"ML" coefficient: 1000000.0 constant: 0.0]); } -+ (NSUnitVolume *) kiloliters ++ (NSUnitVolume*) kiloliters { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"kL" coefficient: 1000.0 constant: 0.0]); } -+ (NSUnitVolume *) liters ++ (NSUnitVolume*) liters { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"L" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitVolume *) deciliters ++ (NSUnitVolume*) deciliters { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"dL" coefficient: 0.1 constant: 0.0]); } -+ (NSUnitVolume *) centiliters ++ (NSUnitVolume*) centiliters { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"cL" coefficient: 0.01 constant: 0.0]); } -+ (NSUnitVolume *) milliliters ++ (NSUnitVolume*) milliliters { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"mL" coefficient: 0.001 constant: 0.0]); } -+ (NSUnitVolume *) cubicKilometers ++ (NSUnitVolume*) cubicKilometers { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"km^3" coefficient: 1e12 constant: 0.0]); } -+ (NSUnitVolume *) cubicMeters ++ (NSUnitVolume*) cubicMeters { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"m^3" coefficient: 1000.0 constant: 0.0]); } -+ (NSUnitVolume *) cubicDecimeters ++ (NSUnitVolume*) cubicDecimeters { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"dm^3" coefficient: 1.0 constant: 0.0]); } -+ (NSUnitVolume *) cubicCentimeters ++ (NSUnitVolume*) cubicCentimeters { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"cm^3" coefficient: 0.0001 constant: 0.0]); } -+ (NSUnitVolume *) cubicMillimeters ++ (NSUnitVolume*) cubicMillimeters { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"mm^3" coefficient: 0.000001 constant: 0.0]); } -+ (NSUnitVolume *) cubicInches ++ (NSUnitVolume*) cubicInches { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"in^3" coefficient: 0.0163871 constant: 0.0]); } -+ (NSUnitVolume *) cubicFeet ++ (NSUnitVolume*) cubicFeet { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"ft^3" coefficient: 28.3168 constant: 0.0]); } -+ (NSUnitVolume *) cubicYards ++ (NSUnitVolume*) cubicYards { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"yd^3" coefficient: 764.555 constant: 0.0]); } -+ (NSUnitVolume *) cubicMiles ++ (NSUnitVolume*) cubicMiles { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"mi^3" coefficient: 4.168e+12 constant: 0.0]); } -+ (NSUnitVolume *) acreFeet ++ (NSUnitVolume*) acreFeet { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"af" coefficient: 1.233e+6 constant: 0.0]); } -+ (NSUnitVolume *) bushels ++ (NSUnitVolume*) bushels { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"bsh" coefficient: 32.2391 constant: 0.0]); } -+ (NSUnitVolume *) teaspoons ++ (NSUnitVolume*) teaspoons { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"tsp" coefficient: 0.00492892 constant: 0.0]); } -+ (NSUnitVolume *) tablespoons ++ (NSUnitVolume*) tablespoons { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"tbsp" coefficient: 0.0147868 constant: 0.0]); } -+ (NSUnitVolume *) fluidOunces ++ (NSUnitVolume*) fluidOunces { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"fl oz" coefficient: 0.295735 constant: 0.0]); } -+ (NSUnitVolume *) cups ++ (NSUnitVolume*) cups { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"cups" coefficient: 0.24 constant: 0.0]); } -+ (NSUnitVolume *) pints ++ (NSUnitVolume*) pints { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"pt" coefficient: 0.473176 constant: 0.0]); } -+ (NSUnitVolume *) quarts ++ (NSUnitVolume*) quarts { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"qt" coefficient: 0.946353 constant: 0.0]); } -+ (NSUnitVolume *) gallons ++ (NSUnitVolume*) gallons { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"gal" coefficient: 3.78541 constant: 0.0]); } -+ (NSUnitVolume *) imperialTeaspoons ++ (NSUnitVolume*) imperialTeaspoons { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"tsp" coefficient: 0.00591939 constant: 0.0]); } -+ (NSUnitVolume *) imperialTablespoons ++ (NSUnitVolume*) imperialTablespoons { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"tbsp" coefficient: 0.0177582 constant: 0.0]); } -+ (NSUnitVolume *) imperialFluidOunces ++ (NSUnitVolume*) imperialFluidOunces { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"fl oz" coefficient: 0.0284131 constant: 0.0]); } -+ (NSUnitVolume *) imperialPints ++ (NSUnitVolume*) imperialPints { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"pt" coefficient: 0.568261 constant: 0.0]); } -+ (NSUnitVolume *) imperialQuarts ++ (NSUnitVolume*) imperialQuarts { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"qt" coefficient: 1.13652 constant: 0.0]); } -+ (NSUnitVolume *) imperialGallons ++ (NSUnitVolume*) imperialGallons { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"gal" coefficient: 4.54609 constant: 0.0]); } -+ (NSUnitVolume *) metricCups ++ (NSUnitVolume*) metricCups { return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"metric cup" coefficient: 0.25 diff --git a/Tests/base/NSByteCountFormatter/TestInfo b/Tests/base/NSByteCountFormatter/TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSByteCountFormatter/advanced.m b/Tests/base/NSByteCountFormatter/advanced.m new file mode 100644 index 000000000..cad1f1c98 --- /dev/null +++ b/Tests/base/NSByteCountFormatter/advanced.m @@ -0,0 +1,180 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import + +int main() +{ + START_SET("NSByteCountFormatter advanced"); + + NSByteCountFormatter *formatter; + NSString *result; + NSString *result2; + + formatter = AUTORELEASE([[NSByteCountFormatter alloc] init]); + + // Test very large byte counts + result = [formatter stringFromByteCount: 1099511627776LL]; // 1 TB + PASS(result != nil && [result length] > 0, "Format 1 TB"); + + result = [formatter stringFromByteCount: 1125899906842624LL]; // 1 PB + PASS(result != nil && [result length] > 0, "Format 1 PB"); + + // Test negative byte counts + result = [formatter stringFromByteCount: -1024]; + PASS(result != nil, "Handle negative byte count"); + + // Test zero + result = [formatter stringFromByteCount: 0]; + PASS(result != nil && [result length] > 0, "Handle zero bytes"); + + // Test boundary values + result = [formatter stringFromByteCount: 1023]; // Just under 1 KB + PASS(result != nil && [result rangeOfString: @"1023"].location != NSNotFound || + [result rangeOfString: @"1,023"].location != NSNotFound, + "Format bytes just under 1 KB"); + + result = [formatter stringFromByteCount: 1024]; // Exactly 1 KB + PASS(result != nil, "Format exactly 1 KB"); + + result = [formatter stringFromByteCount: 1025]; // Just over 1 KB + PASS(result != nil, "Format bytes just over 1 KB"); + + // Test decimal vs binary differences + [formatter setCountStyle: NSByteCountFormatterCountStyleDecimal]; + result = [formatter stringFromByteCount: 1000]; + [formatter setCountStyle: NSByteCountFormatterCountStyleBinary]; + result2 = [formatter stringFromByteCount: 1024]; + PASS(result != nil && result2 != nil, + "Decimal (1000) vs Binary (1024) produce different results"); + + // Test file vs memory style differences + [formatter setCountStyle: NSByteCountFormatterCountStyleFile]; + result = [formatter stringFromByteCount: 1536000]; + [formatter setCountStyle: NSByteCountFormatterCountStyleMemory]; + result2 = [formatter stringFromByteCount: 1536000]; + PASS(result != nil && result2 != nil, "File vs Memory styles work"); + + // Test adaptive with various sizes + [formatter setAdaptive: YES]; + [formatter setAllowedUnits: NSByteCountFormatterUseAll]; + + result = [formatter stringFromByteCount: 500]; + PASS(result != nil && ([result rangeOfString: @"B"].location != NSNotFound || + [result rangeOfString: @"byte"].location != NSNotFound), + "Adaptive chooses bytes for small values"); + + result = [formatter stringFromByteCount: 5120]; + PASS(result != nil, "Adaptive chooses KB for medium values"); + + result = [formatter stringFromByteCount: 5242880]; + PASS(result != nil, "Adaptive chooses MB for larger values"); + + // Test unit restrictions with values that would normally use different units + [formatter setAdaptive: NO]; + [formatter setAllowedUnits: NSByteCountFormatterUseBytes]; + result = [formatter stringFromByteCount: 1048576]; // 1 MB in bytes + PASS(result != nil, "Force display in bytes"); + + [formatter setAllowedUnits: NSByteCountFormatterUseKB]; + result = [formatter stringFromByteCount: 1048576]; // 1 MB in KB + PASS(result != nil, "Force display in KB"); + + [formatter setAllowedUnits: NSByteCountFormatterUseMB]; + result = [formatter stringFromByteCount: 512]; // Small value in MB + PASS(result != nil, "Force small value to MB"); + + // Test fractional values + [formatter setAllowedUnits: NSByteCountFormatterUseMB]; + result = [formatter stringFromByteCount: 524288]; // 0.5 MB + PASS(result != nil, "Format fractional MB"); + + result = [formatter stringFromByteCount: 786432]; // 0.75 MB + PASS(result != nil, "Format 0.75 MB"); + + // Test includes count and unit combinations + [formatter setAllowedUnits: NSByteCountFormatterUseKB]; + [formatter setIncludesCount: YES]; + [formatter setIncludesUnit: YES]; + result = [formatter stringFromByteCount: 2048]; + PASS(result != nil && [result length] > 0, + "Both count and unit included"); + + [formatter setIncludesCount: YES]; + [formatter setIncludesUnit: NO]; + result = [formatter stringFromByteCount: 2048]; + PASS(result != nil && [result length] > 0, + "Count included, unit excluded"); + + [formatter setIncludesCount: NO]; + [formatter setIncludesUnit: YES]; + result = [formatter stringFromByteCount: 2048]; + PASS(result != nil && [result length] > 0, + "Count excluded, unit included"); + + // Test zero padding with fractional digits + [formatter setIncludesCount: YES]; + [formatter setIncludesUnit: YES]; + [formatter setZeroPadsFractionDigits: YES]; + [formatter setAllowedUnits: NSByteCountFormatterUseMB]; + result = [formatter stringFromByteCount: 1048576]; // Exactly 1 MB + PASS(result != nil, "Zero padding with exact value"); + + result = [formatter stringFromByteCount: 1572864]; // 1.5 MB + PASS(result != nil, "Zero padding with fractional value"); + + // Test with nil and invalid objects + result = [formatter stringForObjectValue: nil]; + PASS(result != nil, "Handle nil object gracefully"); + + result = [formatter stringForObjectValue: @"not a number"]; + PASS(result != nil, "Handle non-number object"); + + // Test with various NSNumber types + result = [formatter stringForObjectValue: [NSNumber numberWithLongLong: 1024]]; + PASS(result != nil, "Handle NSNumber integer"); + + result = [formatter stringForObjectValue: [NSNumber numberWithDouble: 1024.5]]; + PASS(result != nil, "Handle NSNumber float"); + + result = [formatter stringForObjectValue: [NSNumber numberWithLongLong: 1099511627776LL]]; + PASS(result != nil, "Handle NSNumber long long"); + + // Test actual byte count inclusion + [formatter setIncludesActualByteCount: YES]; + [formatter setAllowedUnits: NSByteCountFormatterUseMB]; + result = [formatter stringFromByteCount: 1048576]; + PASS(result != nil, "Includes actual byte count"); + + [formatter setIncludesActualByteCount: NO]; + result = [formatter stringFromByteCount: 1048576]; + PASS(result != nil, "Excludes actual byte count"); + + // Test nonnumeric formatting + [formatter setAllowsNonnumericFormatting: YES]; + result = [formatter stringFromByteCount: 0]; + PASS(result != nil, "Nonnumeric formatting for zero"); + + [formatter setAllowsNonnumericFormatting: NO]; + result = [formatter stringFromByteCount: 0]; + PASS(result != nil, "Numeric formatting for zero"); + + // Test class method with different styles + result = [NSByteCountFormatter stringFromByteCount: 1048576 + countStyle: NSByteCountFormatterCountStyleFile]; + result2 = [NSByteCountFormatter stringFromByteCount: 1048576 + countStyle: NSByteCountFormatterCountStyleMemory]; + PASS(result != nil && result2 != nil, "Class method works with different styles"); + + // Test consistency across multiple calls + [formatter setCountStyle: NSByteCountFormatterCountStyleBinary]; + [formatter setAllowedUnits: NSByteCountFormatterUseMB]; + result = [formatter stringFromByteCount: 2097152]; + result2 = [formatter stringFromByteCount: 2097152]; + PASS(result != nil && result2 != nil && [result isEqual: result2], + "Multiple calls produce consistent results"); + + END_SET("NSByteCountFormatter advanced"); + return 0; +} diff --git a/Tests/base/NSByteCountFormatter/basic.m b/Tests/base/NSByteCountFormatter/basic.m new file mode 100644 index 000000000..fbd2c70d0 --- /dev/null +++ b/Tests/base/NSByteCountFormatter/basic.m @@ -0,0 +1,99 @@ +#import "ObjectTesting.h" +#import +#import +#import + +int main() +{ + START_SET("NSByteCountFormatter basic"); + + NSByteCountFormatter *formatter; + NSString *result; + + // Test class method + result = [NSByteCountFormatter stringFromByteCount: 1024 + countStyle: NSByteCountFormatterCountStyleFile]; + PASS(result != nil, "Class method returns non-nil result"); + + // Test instance creation + formatter = AUTORELEASE([[NSByteCountFormatter alloc] init]); + PASS(formatter != nil, "Can create NSByteCountFormatter instance"); + + // Test basic byte count formatting + result = [formatter stringFromByteCount: 0]; + PASS(result != nil && [result length] > 0, "Format 0 bytes"); + + result = [formatter stringFromByteCount: 512]; + PASS(result != nil && [result length] > 0, "Format 512 bytes"); + + result = [formatter stringFromByteCount: 1024]; + PASS(result != nil && [result length] > 0, "Format 1 KB"); + + result = [formatter stringFromByteCount: 1048576]; + PASS(result != nil && [result length] > 0, "Format 1 MB"); + + result = [formatter stringFromByteCount: 1073741824]; + PASS(result != nil && [result length] > 0, "Format 1 GB"); + + // Test stringForObjectValue: with NSNumber + result = [formatter stringForObjectValue: [NSNumber numberWithLongLong: 2048]]; + PASS(result != nil && [result length] > 0, + "stringForObjectValue: works with NSNumber"); + + // Test count style + [formatter setCountStyle: NSByteCountFormatterCountStyleFile]; + result = [formatter stringFromByteCount: 1000]; + PASS(result != nil, "File count style works"); + + [formatter setCountStyle: NSByteCountFormatterCountStyleMemory]; + result = [formatter stringFromByteCount: 1024]; + PASS(result != nil, "Memory count style works"); + + [formatter setCountStyle: NSByteCountFormatterCountStyleDecimal]; + result = [formatter stringFromByteCount: 1000]; + PASS(result != nil, "Decimal count style works"); + + [formatter setCountStyle: NSByteCountFormatterCountStyleBinary]; + result = [formatter stringFromByteCount: 1024]; + PASS(result != nil, "Binary count style works"); + + // Test adaptive mode + [formatter setAdaptive: YES]; + result = [formatter stringFromByteCount: 1536]; + PASS(result != nil, "Adaptive mode works"); + + // Test allowed units + [formatter setAllowedUnits: NSByteCountFormatterUseKB]; + result = [formatter stringFromByteCount: 2048]; + PASS(result != nil, "Allowed units restriction works"); + + // Test includes count + [formatter setIncludesCount: YES]; + result = [formatter stringFromByteCount: 1024]; + PASS(result != nil, "Includes count setting works"); + + [formatter setIncludesCount: NO]; + result = [formatter stringFromByteCount: 1024]; + PASS(result != nil, "Excludes count setting works"); + + // Test includes unit + [formatter setIncludesUnit: YES]; + result = [formatter stringFromByteCount: 1024]; + PASS(result != nil, "Includes unit setting works"); + + [formatter setIncludesUnit: NO]; + result = [formatter stringFromByteCount: 1024]; + PASS(result != nil, "Excludes unit setting works"); + + // Test zero padding + [formatter setZeroPadsFractionDigits: YES]; + result = [formatter stringFromByteCount: 1536]; + PASS(result != nil, "Zero padding enabled works"); + + [formatter setZeroPadsFractionDigits: NO]; + result = [formatter stringFromByteCount: 1536]; + PASS(result != nil, "Zero padding disabled works"); + + END_SET("NSByteCountFormatter basic"); + return 0; +} diff --git a/Tests/base/NSByteCountFormatter/encoding.TestInfo b/Tests/base/NSByteCountFormatter/encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSByteCountFormatter/encoding.m b/Tests/base/NSByteCountFormatter/encoding.m new file mode 100644 index 000000000..fdd64b9c4 --- /dev/null +++ b/Tests/base/NSByteCountFormatter/encoding.m @@ -0,0 +1,69 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import + +int main() +{ + START_SET("NSByteCountFormatter encoding"); + + NSByteCountFormatter *formatter; + NSByteCountFormatter *decoded; + NSData *data; + NSString *result1; + NSString *result2; + + formatter = AUTORELEASE([[NSByteCountFormatter alloc] init]); + + // Configure the formatter with various properties + [formatter setCountStyle: NSByteCountFormatterCountStyleBinary]; + [formatter setAllowsNonnumericFormatting: NO]; + [formatter setIncludesUnit: YES]; + [formatter setIncludesCount: YES]; + [formatter setIncludesActualByteCount: NO]; + [formatter setAdaptive: YES]; + [formatter setZeroPadsFractionDigits: YES]; + [formatter setAllowedUnits: NSByteCountFormatterUseKB | NSByteCountFormatterUseMB]; + [formatter setFormattingContext: NSFormattingContextStandalone]; + + // Encode the formatter + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSByteCountFormatter"); + + // Decode the formatter + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode NSByteCountFormatter"); + PASS([decoded isKindOfClass: [NSByteCountFormatter class]], + "Decoded object is NSByteCountFormatter"); + + // Verify properties are preserved + PASS([decoded countStyle] == NSByteCountFormatterCountStyleBinary, + "Count style preserved"); + PASS([decoded allowsNonnumericFormatting] == NO, + "allowsNonnumericFormatting preserved"); + PASS([decoded includesUnit] == YES, + "includesUnit preserved"); + PASS([decoded includesCount] == YES, + "includesCount preserved"); + PASS([decoded includesActualByteCount] == NO, + "includesActualByteCount preserved"); + PASS([decoded isAdaptive] == YES, + "adaptive preserved"); + PASS([decoded zeroPadsFractionDigits] == YES, + "zeroPadsFractionDigits preserved"); + PASS([decoded allowedUnits] == (NSByteCountFormatterUseKB | NSByteCountFormatterUseMB), + "allowedUnits preserved"); + PASS([decoded formattingContext] == NSFormattingContextStandalone, + "formattingContext preserved"); + + // Verify formatting behavior is consistent + result1 = [formatter stringFromByteCount: 2048]; + result2 = [decoded stringFromByteCount: 2048]; + PASS(result1 != nil && result2 != nil && + [result1 length] > 0 && [result2 length] > 0, + "Both formatters produce valid output"); + + END_SET("NSByteCountFormatter encoding"); + return 0; +} diff --git a/Tests/base/NSByteCountFormatter/format_validation.m b/Tests/base/NSByteCountFormatter/format_validation.m new file mode 100644 index 000000000..9e5a304da --- /dev/null +++ b/Tests/base/NSByteCountFormatter/format_validation.m @@ -0,0 +1,73 @@ +#import "ObjectTesting.h" +#import +#import + +int main() +{ + START_SET("NSByteCountFormatter format validation"); + + NSByteCountFormatter *formatter; + NSString *result; + + formatter = AUTORELEASE([[NSByteCountFormatter alloc] init]); + [formatter setCountStyle: NSByteCountFormatterCountStyleBinary]; + [formatter setAllowsNonnumericFormatting: YES]; + + // Test zero bytes + result = [formatter stringFromByteCount: 0]; + PASS([result rangeOfString: @"Zero"].location != NSNotFound || + [result rangeOfString: @"0"].location != NSNotFound, + "Zero bytes shows 'Zero' or '0'"); + + // Test bytes (< 1024) + result = [formatter stringFromByteCount: 500]; + PASS([result rangeOfString: @"500"].location != NSNotFound && + ([result rangeOfString: @"byte"].location != NSNotFound || + [result rangeOfString: @"B"].location != NSNotFound), + "500 bytes format includes number and 'bytes' or 'B'"); + + // Test KB (1024) + result = [formatter stringFromByteCount: 1024]; + PASS([result rangeOfString: @"1"].location != NSNotFound && + [result rangeOfString: @"KB"].location != NSNotFound, + "1024 bytes shows as '1 KB'"); + + // Test MB + result = [formatter stringFromByteCount: 1048576]; // 1 MB + PASS([result rangeOfString: @"1"].location != NSNotFound && + [result rangeOfString: @"MB"].location != NSNotFound, + "1 MB format correct"); + + // Test GB + result = [formatter stringFromByteCount: 1073741824]; // 1 GB + PASS([result rangeOfString: @"1"].location != NSNotFound && + [result rangeOfString: @"GB"].location != NSNotFound, + "1 GB format correct"); + + // Test fractional values round up + result = [formatter stringFromByteCount: 1536]; // 1.5 KB + PASS([result rangeOfString: @"2"].location != NSNotFound && + [result rangeOfString: @"KB"].location != NSNotFound, + "1.5 KB rounds to 2 KB"); + + // Test decimal style (1000 bytes = 1 KB in decimal) + [formatter setCountStyle: NSByteCountFormatterCountStyleDecimal]; + result = [formatter stringFromByteCount: 1000]; + PASS([result rangeOfString: @"1"].location != NSNotFound && + ([result rangeOfString: @"KB"].location != NSNotFound || + [result rangeOfString: @"kB"].location != NSNotFound || + [result rangeOfString: @"bytes"].location != NSNotFound || + [result rangeOfString: @"B"].location != NSNotFound), + "1000 bytes in decimal produces valid output"); + + // Test that binary 1024 != decimal 1000 + [formatter setCountStyle: NSByteCountFormatterCountStyleBinary]; + NSString *binary1024 = [formatter stringFromByteCount: 1024]; + [formatter setCountStyle: NSByteCountFormatterCountStyleDecimal]; + NSString *decimal1000 = [formatter stringFromByteCount: 1000]; + PASS(![binary1024 isEqualToString: decimal1000], + "Binary 1024 and decimal 1000 produce different formats"); + + END_SET("NSByteCountFormatter format validation"); + return 0; +} diff --git a/Tests/base/NSByteCountFormatter/format_validation.m.TestInfo b/Tests/base/NSByteCountFormatter/format_validation.m.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSByteCountFormatter/macos_encoding.TestInfo b/Tests/base/NSByteCountFormatter/macos_encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSByteCountFormatter/macos_encoding.m b/Tests/base/NSByteCountFormatter/macos_encoding.m new file mode 100644 index 000000000..90e93b9fd --- /dev/null +++ b/Tests/base/NSByteCountFormatter/macos_encoding.m @@ -0,0 +1,89 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import +#import "../Shared/TestKeyedArchiver.h" + +int main() +{ + START_SET("NSByteCountFormatter macOS encoding compatibility"); + + NSByteCountFormatter *formatter; + NSByteCountFormatter *decoded; + NSData *data; + TestKeyedArchiver *archiver; + NSMutableData *mdata; + NSArray *keys; + NSString *key; + BOOL allHaveNSPrefix; + int i; + + formatter = AUTORELEASE([[NSByteCountFormatter alloc] init]); + + // Configure with various properties + [formatter setCountStyle: NSByteCountFormatterCountStyleBinary]; + [formatter setAllowsNonnumericFormatting: NO]; + [formatter setIncludesUnit: YES]; + [formatter setIncludesCount: YES]; + [formatter setAdaptive: YES]; + + // Encode using custom archiver to capture keys + mdata = [NSMutableData data]; + archiver = [[TestKeyedArchiver alloc] initForWritingWithMutableData: mdata]; + [archiver encodeObject: formatter forKey: @"root"]; + [archiver finishEncoding]; + + keys = [archiver capturedKeys]; + PASS(keys != nil && [keys count] > 0, "Captured encoding keys"); + + // Check that all keys use NS. prefix (macOS convention) + allHaveNSPrefix = YES; + for (i = 0; i < [keys count]; i++) + { + key = [keys objectAtIndex: i]; + if (![key isEqualToString: @"root"] && + ![key hasPrefix: @"NS"] && + ![key hasPrefix: @"$"]) + { + allHaveNSPrefix = NO; + NSLog(@"Found non-NS key: %@", key); + break; + } + } + PASS(allHaveNSPrefix, "All keys use macOS naming convention (NS prefix)"); + + [archiver release]; + + // Verify round-trip encoding/decoding + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSByteCountFormatter"); + + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode with NSKeyedUnarchiver"); + PASS([decoded isKindOfClass: [NSByteCountFormatter class]], + "Decoded object is correct class"); + + // Verify properties match after round-trip + PASS([decoded countStyle] == [formatter countStyle], + "countStyle survives round-trip"); + PASS([decoded allowsNonnumericFormatting] == [formatter allowsNonnumericFormatting], + "allowsNonnumericFormatting survives round-trip"); + PASS([decoded includesUnit] == [formatter includesUnit], + "includesUnit survives round-trip"); + PASS([decoded includesCount] == [formatter includesCount], + "includesCount survives round-trip"); + PASS([decoded isAdaptive] == [formatter isAdaptive], + "adaptive survives round-trip"); + + // Test that formatting output is identical + NSString *original = [formatter stringFromByteCount: 2048]; + NSString *afterDecode = [decoded stringFromByteCount: 2048]; + PASS(original != nil && afterDecode != nil, + "Both formatters produce output"); + + END_SET("NSByteCountFormatter macOS encoding compatibility"); + return 0; +} diff --git a/Tests/base/NSDateComponentsFormatter/TestInfo b/Tests/base/NSDateComponentsFormatter/TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSDateComponentsFormatter/advanced.m b/Tests/base/NSDateComponentsFormatter/advanced.m new file mode 100644 index 000000000..ae26d1e78 --- /dev/null +++ b/Tests/base/NSDateComponentsFormatter/advanced.m @@ -0,0 +1,301 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSDateComponentsFormatter advanced"); + + NSDateComponentsFormatter *formatter; + NSString *result; + NSString *result2; + NSDateComponents *components; + NSDate *date1, *date2; + + formatter = AUTORELEASE([[NSDateComponentsFormatter alloc] init]); + + // Test very long time intervals + result = [formatter stringFromTimeInterval: 31536000]; // 1 year + PASS(result != nil && [result length] > 0, "Format 1 year"); + + result = [formatter stringFromTimeInterval: 2592000]; // 30 days + PASS(result != nil && [result length] > 0, "Format 30 days"); + + result = [formatter stringFromTimeInterval: 604800]; // 1 week + PASS(result != nil && [result length] > 0, "Format 1 week"); + + // Test very short intervals + result = [formatter stringFromTimeInterval: 0.5]; // Half second + PASS(result != nil && [result length] > 0, "Format half second"); + + result = [formatter stringFromTimeInterval: 0.1]; // 100ms + PASS(result != nil && [result length] > 0, "Format 100 milliseconds"); + + // Test negative intervals + result = [formatter stringFromTimeInterval: -3600]; + PASS(result != nil, "Handle negative time interval"); + + // Test zero + result = [formatter stringFromTimeInterval: 0]; + PASS(result != nil && [result length] > 0, "Format zero duration"); + + // Test complex date components + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setYear: 1]; + [components setMonth: 2]; + [components setDay: 3]; + [components setHour: 4]; + [components setMinute: 5]; + [components setSecond: 6]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil && [result length] > 0, + "Format complex date components (1y 2mo 3d 4h 5m 6s)"); + + // Test partial date components + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setMinute: 30]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil && [result length] > 0, "Format only minutes"); + + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setHour: 2]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil && [result length] > 0, "Format only hours"); + + // Test all unit styles with complex intervals + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStylePositional]; + result = [formatter stringFromTimeInterval: 3723]; // 1:02:03 + PASS(result != nil, "Positional style with 1h 2m 3s"); + + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStyleAbbreviated]; + result = [formatter stringFromTimeInterval: 3723]; + PASS(result != nil, "Abbreviated style with 1h 2m 3s"); + + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStyleShort]; + result = [formatter stringFromTimeInterval: 3723]; + PASS(result != nil, "Short style with 1h 2m 3s"); + + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStyleFull]; + result = [formatter stringFromTimeInterval: 3723]; + PASS(result != nil, "Full style with 1h 2m 3s"); + + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStyleSpellOut]; + result = [formatter stringFromTimeInterval: 3723]; + PASS(result != nil, "Spell out style with 1h 2m 3s"); + + // Test allowed units combinations + [formatter setAllowedUnits: NSCalendarUnitHour]; + result = [formatter stringFromTimeInterval: 7200]; + PASS(result != nil, "Only hours allowed"); + + [formatter setAllowedUnits: NSCalendarUnitMinute]; + result = [formatter stringFromTimeInterval: 7200]; + PASS(result != nil, "Only minutes allowed (should show 120 minutes)"); + + [formatter setAllowedUnits: NSCalendarUnitSecond]; + result = [formatter stringFromTimeInterval: 7200]; + PASS(result != nil, "Only seconds allowed (should show 7200 seconds)"); + + [formatter setAllowedUnits: NSCalendarUnitDay | NSCalendarUnitHour]; + result = [formatter stringFromTimeInterval: 100000]; // ~1.16 days + PASS(result != nil, "Days and hours allowed"); + + [formatter setAllowedUnits: NSCalendarUnitWeekOfYear | NSCalendarUnitDay]; + result = [formatter stringFromTimeInterval: 864000]; // 10 days + PASS(result != nil, "Weeks and days allowed"); + + [formatter setAllowedUnits: NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay]; + result = [formatter stringFromTimeInterval: 40000000]; // ~1.27 years + PASS(result != nil, "Years, months, and days allowed"); + + // Test zero formatting behaviors + [formatter setAllowedUnits: NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond]; + + [formatter setZeroFormattingBehavior: NSDateComponentsFormatterZeroFormattingBehaviorNone]; + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setHour: 1]; + [components setMinute: 0]; + [components setSecond: 5]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil, "Zero behavior None - may omit zero minutes"); + + [formatter setZeroFormattingBehavior: NSDateComponentsFormatterZeroFormattingBehaviorDefault]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil, "Zero behavior Default"); + + [formatter setZeroFormattingBehavior: NSDateComponentsFormatterZeroFormattingBehaviorDropLeading]; + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setHour: 0]; + [components setMinute: 5]; + [components setSecond: 30]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil, "Zero behavior DropLeading - omit leading zero hours"); + + [formatter setZeroFormattingBehavior: NSDateComponentsFormatterZeroFormattingBehaviorDropMiddle]; + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setHour: 1]; + [components setMinute: 0]; + [components setSecond: 30]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil, "Zero behavior DropMiddle - may omit middle zero minutes"); + + [formatter setZeroFormattingBehavior: NSDateComponentsFormatterZeroFormattingBehaviorDropTrailing]; + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setHour: 1]; + [components setMinute: 30]; + [components setSecond: 0]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil, "Zero behavior DropTrailing - omit trailing zero seconds"); + + [formatter setZeroFormattingBehavior: NSDateComponentsFormatterZeroFormattingBehaviorDropAll]; + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setHour: 1]; + [components setMinute: 0]; + [components setSecond: 0]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil, "Zero behavior DropAll - omit all zero components"); + + [formatter setZeroFormattingBehavior: NSDateComponentsFormatterZeroFormattingBehaviorPad]; + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setHour: 1]; + [components setMinute: 5]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil, "Zero behavior Pad - pad with zeros"); + + // Test maximum unit count + [formatter setZeroFormattingBehavior: NSDateComponentsFormatterZeroFormattingBehaviorDefault]; + [formatter setAllowedUnits: NSCalendarUnitDay | NSCalendarUnitHour | + NSCalendarUnitMinute | NSCalendarUnitSecond]; + + [formatter setMaximumUnitCount: 1]; + result = [formatter stringFromTimeInterval: 93784]; // 1d 2h 3m 4s + PASS(result != nil, "Maximum 1 unit shown"); + + [formatter setMaximumUnitCount: 2]; + result = [formatter stringFromTimeInterval: 93784]; + PASS(result != nil, "Maximum 2 units shown"); + + [formatter setMaximumUnitCount: 3]; + result = [formatter stringFromTimeInterval: 93784]; + PASS(result != nil, "Maximum 3 units shown"); + + [formatter setMaximumUnitCount: 0]; // No limit + result = [formatter stringFromTimeInterval: 93784]; + PASS(result != nil, "No maximum unit count (show all)"); + + // Test fractional units + [formatter setMaximumUnitCount: 0]; + [formatter setAllowsFractionalUnits: YES]; + result = [formatter stringFromTimeInterval: 90]; // 1.5 minutes + PASS(result != nil, "Fractional units enabled"); + + [formatter setAllowsFractionalUnits: NO]; + result = [formatter stringFromTimeInterval: 90]; + PASS(result != nil, "Fractional units disabled"); + + // Test collapsing largest unit + [formatter setAllowedUnits: NSCalendarUnitHour | NSCalendarUnitMinute]; + [formatter setCollapsesLargestUnit: YES]; + result = [formatter stringFromTimeInterval: 7200]; // 2 hours = 120 minutes + PASS(result != nil, "Collapse largest unit (show as minutes)"); + + [formatter setCollapsesLargestUnit: NO]; + result = [formatter stringFromTimeInterval: 7200]; + PASS(result != nil, "Don't collapse largest unit (show as hours)"); + + // Test approximation phrase + [formatter setIncludesApproximationPhrase: YES]; + result = [formatter stringFromTimeInterval: 3723]; + PASS(result != nil, "Includes approximation phrase"); + + [formatter setIncludesApproximationPhrase: NO]; + result = [formatter stringFromTimeInterval: 3723]; + PASS(result != nil, "Excludes approximation phrase"); + + // Test date-to-date formatting with various intervals + date1 = [NSDate date]; + date2 = [date1 dateByAddingTimeInterval: 90]; // 1.5 minutes + result = [formatter stringFromDate: date1 toDate: date2]; + PASS(result != nil, "Format 90 second interval"); + + date2 = [date1 dateByAddingTimeInterval: 3600]; // 1 hour + result = [formatter stringFromDate: date1 toDate: date2]; + PASS(result != nil, "Format 1 hour interval"); + + date2 = [date1 dateByAddingTimeInterval: 86400]; // 1 day + result = [formatter stringFromDate: date1 toDate: date2]; + PASS(result != nil, "Format 1 day interval"); + + date2 = [date1 dateByAddingTimeInterval: 604800]; // 1 week + result = [formatter stringFromDate: date1 toDate: date2]; + PASS(result != nil, "Format 1 week interval"); + + // Test with reversed dates + date1 = [NSDate date]; + date2 = [date1 dateByAddingTimeInterval: -3600]; // 1 hour earlier + result = [formatter stringFromDate: date1 toDate: date2]; + PASS(result != nil, "Handle reversed date order"); + + // Test stringForObjectValue with different types + result = [formatter stringForObjectValue: [NSNumber numberWithDouble: 3600]]; + PASS(result != nil && [result length] > 0, "Format NSNumber as seconds"); + + result = [formatter stringForObjectValue: nil]; + PASS(result != nil, "Handle nil object"); + + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setHour: 2]; + [components setMinute: 30]; + result = [formatter stringForObjectValue: components]; + PASS(result != nil && [result length] > 0, "Format NSDateComponents object"); + + // Test class method + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setHour: 3]; + [components setMinute: 45]; + result = [NSDateComponentsFormatter localizedStringFromDateComponents: components + unitsStyle: NSDateComponentsFormatterUnitsStyleFull]; + PASS(result != nil, "Class method with Full style"); + + result = [NSDateComponentsFormatter localizedStringFromDateComponents: components + unitsStyle: NSDateComponentsFormatterUnitsStyleShort]; + PASS(result != nil, "Class method with Short style"); + + result = [NSDateComponentsFormatter localizedStringFromDateComponents: components + unitsStyle: NSDateComponentsFormatterUnitsStyleAbbreviated]; + PASS(result != nil, "Class method with Abbreviated style"); + + // Test consistency + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStyleShort]; + [formatter setAllowedUnits: NSCalendarUnitHour | NSCalendarUnitMinute]; + result = [formatter stringFromTimeInterval: 5400]; // 1h 30m + result2 = [formatter stringFromTimeInterval: 5400]; + PASS(result != nil && result2 != nil && [result isEqual: result2], + "Multiple calls produce consistent results"); + + // Test edge cases + result = [formatter stringFromTimeInterval: 59]; // 59 seconds + PASS(result != nil, "Format 59 seconds"); + + result = [formatter stringFromTimeInterval: 60]; // Exactly 1 minute + PASS(result != nil, "Format exactly 60 seconds"); + + result = [formatter stringFromTimeInterval: 61]; // 61 seconds + PASS(result != nil, "Format 61 seconds"); + + result = [formatter stringFromTimeInterval: 3599]; // 59m 59s + PASS(result != nil, "Format 59 minutes 59 seconds"); + + result = [formatter stringFromTimeInterval: 3600]; // Exactly 1 hour + PASS(result != nil, "Format exactly 1 hour"); + + result = [formatter stringFromTimeInterval: 3601]; // 1h 0m 1s + PASS(result != nil, "Format 1 hour 1 second"); + + END_SET("NSDateComponentsFormatter advanced"); + return 0; +} diff --git a/Tests/base/NSDateComponentsFormatter/basic.m b/Tests/base/NSDateComponentsFormatter/basic.m new file mode 100644 index 000000000..bd609d5b5 --- /dev/null +++ b/Tests/base/NSDateComponentsFormatter/basic.m @@ -0,0 +1,143 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSDateComponentsFormatter basic"); + + NSDateComponentsFormatter *formatter; + NSString *result; + NSDateComponents *components; + + // Test instance creation + formatter = AUTORELEASE([[NSDateComponentsFormatter alloc] init]); + PASS(formatter != nil, "Can create NSDateComponentsFormatter instance"); + + // Test basic time interval formatting + result = [formatter stringFromTimeInterval: 0]; + PASS(result != nil && [result length] > 0, "Format 0 seconds"); + + result = [formatter stringFromTimeInterval: 60]; + PASS(result != nil && [result length] > 0, "Format 60 seconds (1 minute)"); + + result = [formatter stringFromTimeInterval: 3600]; + PASS(result != nil && [result length] > 0, "Format 3600 seconds (1 hour)"); + + result = [formatter stringFromTimeInterval: 86400]; + PASS(result != nil && [result length] > 0, "Format 86400 seconds (1 day)"); + + // Test date components formatting + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setHour: 2]; + [components setMinute: 30]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil && [result length] > 0, + "Format date components (2 hours 30 minutes)"); + + // Test date-to-date formatting + NSDate *startDate = [NSDate date]; + NSDate *endDate = [startDate dateByAddingTimeInterval: 7200]; // 2 hours later + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format date range"); + + // Test unit styles + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStylePositional]; + result = [formatter stringFromTimeInterval: 3665]; + PASS(result != nil, "Positional style works"); + + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStyleAbbreviated]; + result = [formatter stringFromTimeInterval: 3665]; + PASS(result != nil, "Abbreviated style works"); + + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStyleShort]; + result = [formatter stringFromTimeInterval: 3665]; + PASS(result != nil, "Short style works"); + + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStyleFull]; + result = [formatter stringFromTimeInterval: 3665]; + PASS(result != nil, "Full style works"); + + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStyleSpellOut]; + result = [formatter stringFromTimeInterval: 3665]; + PASS(result != nil, "Spell out style works"); + + // Test allowed units + [formatter setAllowedUnits: NSCalendarUnitHour | NSCalendarUnitMinute]; + result = [formatter stringFromTimeInterval: 3665]; + PASS(result != nil, "Allowed units restriction works"); + + [formatter setAllowedUnits: NSCalendarUnitDay | NSCalendarUnitHour]; + result = [formatter stringFromTimeInterval: 90000]; // 25 hours + PASS(result != nil, "Day and hour units work"); + + // Test zero formatting behavior + [formatter setZeroFormattingBehavior: NSDateComponentsFormatterZeroFormattingBehaviorNone]; + components = AUTORELEASE([[NSDateComponents alloc] init]); + [components setHour: 1]; + [components setMinute: 0]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil, "Zero formatting behavior None works"); + + [formatter setZeroFormattingBehavior: NSDateComponentsFormatterZeroFormattingBehaviorDefault]; + result = [formatter stringFromDateComponents: components]; + PASS(result != nil, "Zero formatting behavior Default works"); + + // Test maximum unit count + [formatter setMaximumUnitCount: 2]; + [formatter setAllowedUnits: NSCalendarUnitDay | NSCalendarUnitHour | NSCalendarUnitMinute]; + result = [formatter stringFromTimeInterval: 90000]; // Should show only 2 largest units + PASS(result != nil, "Maximum unit count works"); + + // Test allows fractional units + [formatter setAllowsFractionalUnits: YES]; + result = [formatter stringFromTimeInterval: 90]; + PASS(result != nil, "Fractional units enabled works"); + + [formatter setAllowsFractionalUnits: NO]; + result = [formatter stringFromTimeInterval: 90]; + PASS(result != nil, "Fractional units disabled works"); + + // Test collapsing largest unit + [formatter setCollapsesLargestUnit: YES]; + result = [formatter stringFromTimeInterval: 3600]; + PASS(result != nil, "Collapse largest unit enabled works"); + + [formatter setCollapsesLargestUnit: NO]; + result = [formatter stringFromTimeInterval: 3600]; + PASS(result != nil, "Collapse largest unit disabled works"); +/* + // Test includes time remaining phrase + [formatter setIncludesTimeRemainingPhrase: YES]; + result = [formatter stringFromTimeInterval: 120]; + PASS(result != nil, "Time remaining phrase enabled works"); + + [formatter setIncludesTimeRemainingPhrase: NO]; + result = [formatter stringFromTimeInterval: 120]; + PASS(result != nil, "Time remaining phrase disabled works"); +*/ + // Test includes approximate phrase + [formatter setIncludesApproximationPhrase: YES]; + result = [formatter stringFromTimeInterval: 3700]; + PASS(result != nil, "Approximation phrase enabled works"); + + [formatter setIncludesApproximationPhrase: NO]; + result = [formatter stringFromTimeInterval: 3700]; + PASS(result != nil, "Approximation phrase disabled works"); + + // Test stringForObjectValue: + result = [formatter stringForObjectValue: [NSNumber numberWithDouble: 7200]]; + PASS(result != nil && [result length] > 0, + "stringForObjectValue: works with NSNumber"); + + // Test class method + result = [NSDateComponentsFormatter localizedStringFromDateComponents: components + unitsStyle: NSDateComponentsFormatterUnitsStyleFull]; + PASS(result != nil, "Class method localizedStringFromDateComponents works"); + + END_SET("NSDateComponentsFormatter basic"); + return 0; +} diff --git a/Tests/base/NSDateComponentsFormatter/encoding.TestInfo b/Tests/base/NSDateComponentsFormatter/encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSDateComponentsFormatter/encoding.m b/Tests/base/NSDateComponentsFormatter/encoding.m new file mode 100644 index 000000000..b4156d9af --- /dev/null +++ b/Tests/base/NSDateComponentsFormatter/encoding.m @@ -0,0 +1,58 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSDateComponentsFormatter encoding"); + + NSDateComponentsFormatter *formatter; + NSDateComponentsFormatter *decoded; + NSData *data; + NSString *result1; + NSString *result2; + NSCalendar *calendar; + + formatter = AUTORELEASE([[NSDateComponentsFormatter alloc] init]); + + // Configure the formatter with basic properties + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStyleAbbreviated]; + [formatter setAllowedUnits: NSCalendarUnitHour | NSCalendarUnitMinute]; + [formatter setMaximumUnitCount: 2]; + + calendar = [NSCalendar currentCalendar]; + [formatter setCalendar: calendar]; + + // Encode the formatter + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSDateComponentsFormatter"); + + // Decode the formatter + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode NSDateComponentsFormatter"); + PASS([decoded isKindOfClass: [NSDateComponentsFormatter class]], + "Decoded object is NSDateComponentsFormatter"); + + // Verify basic properties are preserved + PASS([decoded unitsStyle] == NSDateComponentsFormatterUnitsStyleAbbreviated, + "unitsStyle preserved"); + PASS([decoded allowedUnits] == (NSCalendarUnitHour | NSCalendarUnitMinute), + "allowedUnits preserved"); + PASS([decoded maximumUnitCount] == 2, + "maximumUnitCount preserved"); + PASS([decoded calendar] != nil, + "calendar preserved"); + + // Verify formatting behavior is consistent + result1 = [formatter stringFromTimeInterval: 3665]; + result2 = [decoded stringFromTimeInterval: 3665]; + PASS(result1 != nil && result2 != nil && + [result1 length] > 0 && [result2 length] > 0, + "Both formatters produce valid output"); + + END_SET("NSDateComponentsFormatter encoding"); + return 0; +} diff --git a/Tests/base/NSDateComponentsFormatter/macos_encoding.TestInfo b/Tests/base/NSDateComponentsFormatter/macos_encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSDateComponentsFormatter/macos_encoding.m b/Tests/base/NSDateComponentsFormatter/macos_encoding.m new file mode 100644 index 000000000..d473c4906 --- /dev/null +++ b/Tests/base/NSDateComponentsFormatter/macos_encoding.m @@ -0,0 +1,92 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import +#import +#import "../Shared/TestKeyedArchiver.h" + +int main() +{ + START_SET("NSDateComponentsFormatter macOS encoding compatibility"); + + NSDateComponentsFormatter *formatter; + NSDateComponentsFormatter *decoded; + NSData *data; + NSCalendar *calendar; + NSString *original; + NSString *afterDecode; + TestKeyedArchiver *archiver; + NSMutableData *mdata; + NSArray *keys; + NSString *key; + BOOL allHaveNSPrefix; + int i; + + formatter = AUTORELEASE([[NSDateComponentsFormatter alloc] init]); + + // Configure with basic properties + [formatter setUnitsStyle: NSDateComponentsFormatterUnitsStyleAbbreviated]; + [formatter setAllowedUnits: NSCalendarUnitHour | NSCalendarUnitMinute]; + [formatter setMaximumUnitCount: 2]; + + calendar = [NSCalendar currentCalendar]; + [formatter setCalendar: calendar]; + + // Encode using custom archiver to capture keys + mdata = [NSMutableData data]; + archiver = [[TestKeyedArchiver alloc] initForWritingWithMutableData: mdata]; + [archiver encodeObject: formatter forKey: @"root"]; + [archiver finishEncoding]; + + keys = [archiver capturedKeys]; + PASS(keys != nil && [keys count] > 0, "Captured encoding keys"); + + // Check that all keys use NS prefix (macOS convention) + allHaveNSPrefix = YES; + for (i = 0; i < [keys count]; i++) + { + key = [keys objectAtIndex: i]; + if (![key isEqualToString: @"root"] && + ![key hasPrefix: @"NS"] && + ![key hasPrefix: @"$"]) + { + allHaveNSPrefix = NO; + NSLog(@"Found non-NS key: %@", key); + break; + } + } + PASS(allHaveNSPrefix, "All keys use macOS naming convention (NS prefix)"); + + [archiver release]; + + // Encode and decode + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSDateComponentsFormatter"); + + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode with NSKeyedUnarchiver"); + PASS([decoded isKindOfClass: [NSDateComponentsFormatter class]], + "Decoded object is correct class"); + + // Verify properties survive round-trip + PASS([decoded unitsStyle] == [formatter unitsStyle], + "unitsStyle survives round-trip"); + PASS([decoded allowedUnits] == [formatter allowedUnits], + "allowedUnits survives round-trip"); + PASS([decoded maximumUnitCount] == [formatter maximumUnitCount], + "maximumUnitCount survives round-trip"); + PASS([decoded calendar] != nil, + "calendar survives round-trip"); + + // Verify formatting works after decode + original = [formatter stringFromTimeInterval: 3665]; + afterDecode = [decoded stringFromTimeInterval: 3665]; + PASS(original != nil && afterDecode != nil, + "Both formatters produce output"); + + END_SET("NSDateComponentsFormatter macOS encoding compatibility"); + return 0; +} diff --git a/Tests/base/NSDateIntervalFormatter/TestInfo b/Tests/base/NSDateIntervalFormatter/TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSDateIntervalFormatter/advanced.m b/Tests/base/NSDateIntervalFormatter/advanced.m new file mode 100644 index 000000000..264893fb8 --- /dev/null +++ b/Tests/base/NSDateIntervalFormatter/advanced.m @@ -0,0 +1,303 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSDateIntervalFormatter advanced"); + + NSDateIntervalFormatter *formatter; + NSString *result; + NSString *result2; + NSDate *startDate; + NSDate *endDate; + NSDateInterval *interval; + + formatter = AUTORELEASE([[NSDateIntervalFormatter alloc] init]); + startDate = [NSDate date]; + + // Test very short intervals (seconds) + endDate = [startDate dateByAddingTimeInterval: 1]; // 1 second + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format 1 second interval"); + + endDate = [startDate dateByAddingTimeInterval: 30]; // 30 seconds + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format 30 second interval"); + + // Test minute intervals + endDate = [startDate dateByAddingTimeInterval: 300]; // 5 minutes + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format 5 minute interval"); + + endDate = [startDate dateByAddingTimeInterval: 1800]; // 30 minutes + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format 30 minute interval"); + + // Test hour intervals + endDate = [startDate dateByAddingTimeInterval: 3600]; // 1 hour + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format 1 hour interval"); + + endDate = [startDate dateByAddingTimeInterval: 7200]; // 2 hours + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format 2 hour interval"); + + endDate = [startDate dateByAddingTimeInterval: 43200]; // 12 hours + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format 12 hour interval"); + + // Test day intervals + endDate = [startDate dateByAddingTimeInterval: 86400]; // 1 day + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format 1 day interval"); + + endDate = [startDate dateByAddingTimeInterval: 259200]; // 3 days + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format 3 day interval"); + + // Test week intervals + endDate = [startDate dateByAddingTimeInterval: 604800]; // 1 week + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format 1 week interval"); + + endDate = [startDate dateByAddingTimeInterval: 1209600]; // 2 weeks + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format 2 week interval"); + + // Test month intervals (approximate) + endDate = [startDate dateByAddingTimeInterval: 2592000]; // ~30 days + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format ~1 month interval"); + + endDate = [startDate dateByAddingTimeInterval: 7776000]; // ~90 days + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format ~3 month interval"); + + // Test year intervals (approximate) + endDate = [startDate dateByAddingTimeInterval: 31536000]; // ~365 days + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, "Format ~1 year interval"); + + // Test with reversed dates (end before start) + endDate = [startDate dateByAddingTimeInterval: -3600]; // 1 hour earlier + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Handle reversed date order"); + + // Test with same dates + result = [formatter stringFromDate: startDate toDate: startDate]; + PASS(result != nil, "Handle identical dates"); + + // Test all date style combinations + endDate = [startDate dateByAddingTimeInterval: 7200]; + + [formatter setDateStyle: NSDateIntervalFormatterNoStyle]; + [formatter setTimeStyle: NSDateIntervalFormatterShortStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "No date style, short time style"); + + [formatter setDateStyle: NSDateIntervalFormatterShortStyle]; + [formatter setTimeStyle: NSDateIntervalFormatterNoStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Short date style, no time style"); + + [formatter setDateStyle: NSDateIntervalFormatterShortStyle]; + [formatter setTimeStyle: NSDateIntervalFormatterShortStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Short date and time styles"); + + [formatter setDateStyle: NSDateIntervalFormatterMediumStyle]; + [formatter setTimeStyle: NSDateIntervalFormatterMediumStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Medium date and time styles"); + + [formatter setDateStyle: NSDateIntervalFormatterLongStyle]; + [formatter setTimeStyle: NSDateIntervalFormatterLongStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Long date and time styles"); + + [formatter setDateStyle: NSDateIntervalFormatterFullStyle]; + [formatter setTimeStyle: NSDateIntervalFormatterFullStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Full date and time styles"); + + // Test mixed style combinations + [formatter setDateStyle: NSDateIntervalFormatterShortStyle]; + [formatter setTimeStyle: NSDateIntervalFormatterLongStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Short date, long time"); + + [formatter setDateStyle: NSDateIntervalFormatterLongStyle]; + [formatter setTimeStyle: NSDateIntervalFormatterShortStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Long date, short time"); + + // Test various date templates + [formatter setDateTemplate: @"MMMd"]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Month and day template"); + + [formatter setDateTemplate: @"yMMMd"]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Year, month, and day template"); + + [formatter setDateTemplate: @"yMMMdHm"]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Year, month, day, hour, minute template"); + + [formatter setDateTemplate: @"Hm"]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Hour and minute only template"); + + [formatter setDateTemplate: @"Hms"]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Hour, minute, second template"); + + [formatter setDateTemplate: @"yMMMMd"]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Full month name template"); + + [formatter setDateTemplate: @"EEEE"]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Full day name template"); + + // Test with NSDateInterval object + [formatter setDateTemplate: nil]; + [formatter setDateStyle: NSDateIntervalFormatterMediumStyle]; + [formatter setTimeStyle: NSDateIntervalFormatterMediumStyle]; + + interval = AUTORELEASE([[NSDateInterval alloc] initWithStartDate: startDate + endDate: [startDate dateByAddingTimeInterval: 3600]]); + result = [formatter stringFromDateInterval: interval]; + PASS(result != nil && [result length] > 0, "Format NSDateInterval object"); + + interval = AUTORELEASE([[NSDateInterval alloc] initWithStartDate: startDate + endDate: [startDate dateByAddingTimeInterval: 86400]]); + result = [formatter stringFromDateInterval: interval]; + PASS(result != nil && [result length] > 0, "Format day-long NSDateInterval"); + + // Test locale changes + NSLocale *usLocale = [NSLocale localeWithLocaleIdentifier: @"en_US"]; + [formatter setLocale: usLocale]; + endDate = [startDate dateByAddingTimeInterval: 7200]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "US locale formatting"); + + NSLocale *ukLocale = [NSLocale localeWithLocaleIdentifier: @"en_GB"]; + [formatter setLocale: ukLocale]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "UK locale formatting"); + + NSLocale *frLocale = [NSLocale localeWithLocaleIdentifier: @"fr_FR"]; + [formatter setLocale: frLocale]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "French locale formatting"); + + NSLocale *deLocale = [NSLocale localeWithLocaleIdentifier: @"de_DE"]; + [formatter setLocale: deLocale]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "German locale formatting"); + + NSLocale *jaLocale = [NSLocale localeWithLocaleIdentifier: @"ja_JP"]; + [formatter setLocale: jaLocale]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Japanese locale formatting"); + + // Test time zone changes + [formatter setLocale: usLocale]; + NSTimeZone *nyTz = [NSTimeZone timeZoneWithName: @"America/New_York"]; + [formatter setTimeZone: nyTz]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "New York time zone"); + + NSTimeZone *laTz = [NSTimeZone timeZoneWithName: @"America/Los_Angeles"]; + [formatter setTimeZone: laTz]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Los Angeles time zone"); + + NSTimeZone *londonTz = [NSTimeZone timeZoneWithName: @"Europe/London"]; + [formatter setTimeZone: londonTz]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "London time zone"); + + NSTimeZone *tokyoTz = [NSTimeZone timeZoneWithName: @"Asia/Tokyo"]; + [formatter setTimeZone: tokyoTz]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Tokyo time zone"); + + NSTimeZone *utcTz = [NSTimeZone timeZoneWithAbbreviation: @"UTC"]; + [formatter setTimeZone: utcTz]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "UTC time zone"); + + // Test calendar changes + NSCalendar *gregorian = [NSCalendar calendarWithIdentifier: NSCalendarIdentifierGregorian]; + [formatter setCalendar: gregorian]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Gregorian calendar"); + + NSCalendar *buddhist = [NSCalendar calendarWithIdentifier: NSCalendarIdentifierBuddhist]; + [formatter setCalendar: buddhist]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Buddhist calendar"); + + NSCalendar *hebrew = [NSCalendar calendarWithIdentifier: NSCalendarIdentifierHebrew]; + [formatter setCalendar: hebrew]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Hebrew calendar"); + + NSCalendar *islamic = [NSCalendar calendarWithIdentifier: NSCalendarIdentifierIslamic]; + [formatter setCalendar: islamic]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Islamic calendar"); + + // Test consistency across multiple calls + [formatter setCalendar: gregorian]; + [formatter setTimeZone: utcTz]; + [formatter setLocale: usLocale]; + [formatter setDateStyle: NSDateIntervalFormatterMediumStyle]; + [formatter setTimeStyle: NSDateIntervalFormatterShortStyle]; + + endDate = [startDate dateByAddingTimeInterval: 5400]; // 1h 30m + result = [formatter stringFromDate: startDate toDate: endDate]; + result2 = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && result2 != nil && [result isEqual: result2], + "Multiple calls produce consistent results"); + + // Test with dates spanning midnight + NSCalendar *cal = [NSCalendar currentCalendar]; + NSDateComponents *comps = [cal components: NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay + fromDate: startDate]; + [comps setHour: 23]; + [comps setMinute: 30]; + NSDate *beforeMidnight = [cal dateFromComponents: comps]; + NSDate *afterMidnight = [beforeMidnight dateByAddingTimeInterval: 3600]; // 30 min + 1h + result = [formatter stringFromDate: beforeMidnight toDate: afterMidnight]; + PASS(result != nil, "Format interval spanning midnight"); + + // Test with dates spanning month boundary + [comps setDay: 1]; + [comps setHour: 0]; + [comps setMinute: 0]; + NSDate *startOfMonth = [cal dateFromComponents: comps]; + NSDate *endOfPrevMonth = [startOfMonth dateByAddingTimeInterval: -86400]; + result = [formatter stringFromDate: endOfPrevMonth toDate: startOfMonth]; + PASS(result != nil, "Format interval spanning month boundary"); + + // Test with dates spanning year boundary + [comps setMonth: 1]; + [comps setDay: 1]; + NSDate *startOfYear = [cal dateFromComponents: comps]; + NSDate *endOfPrevYear = [startOfYear dateByAddingTimeInterval: -86400]; + result = [formatter stringFromDate: endOfPrevYear toDate: startOfYear]; + PASS(result != nil, "Format interval spanning year boundary"); + + END_SET("NSDateIntervalFormatter advanced"); + return 0; +} diff --git a/Tests/base/NSDateIntervalFormatter/basic.m b/Tests/base/NSDateIntervalFormatter/basic.m new file mode 100644 index 000000000..7ac39eb27 --- /dev/null +++ b/Tests/base/NSDateIntervalFormatter/basic.m @@ -0,0 +1,129 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSDateIntervalFormatter basic"); + + NSDateIntervalFormatter *formatter; + NSString *result; + NSDate *startDate; + NSDate *endDate; + NSDateInterval *interval; + + // Test instance creation + formatter = AUTORELEASE([[NSDateIntervalFormatter alloc] init]); + PASS(formatter != nil, "Can create NSDateIntervalFormatter instance"); + + // Create test dates + startDate = [NSDate date]; + endDate = [startDate dateByAddingTimeInterval: 3600]; // 1 hour later + + // Test basic date interval formatting + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil && [result length] > 0, + "Format date interval (1 hour)"); + + // Test with date interval object + interval = AUTORELEASE([[NSDateInterval alloc] initWithStartDate: startDate + endDate: endDate]); + result = [formatter stringFromDateInterval: interval]; + PASS(result != nil && [result length] > 0, + "Format NSDateInterval object"); + + // Test date styles + [formatter setDateStyle: NSDateIntervalFormatterNoStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "No date style works"); + + [formatter setDateStyle: NSDateIntervalFormatterShortStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Short date style works"); + + [formatter setDateStyle: NSDateIntervalFormatterMediumStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Medium date style works"); + + [formatter setDateStyle: NSDateIntervalFormatterLongStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Long date style works"); + + [formatter setDateStyle: NSDateIntervalFormatterFullStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Full date style works"); + + // Test time styles + [formatter setTimeStyle: NSDateIntervalFormatterNoStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "No time style works"); + + [formatter setTimeStyle: NSDateIntervalFormatterShortStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Short time style works"); + + [formatter setTimeStyle: NSDateIntervalFormatterMediumStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Medium time style works"); + + [formatter setTimeStyle: NSDateIntervalFormatterLongStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Long time style works"); + + [formatter setTimeStyle: NSDateIntervalFormatterFullStyle]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Full time style works"); + + // Test date template + [formatter setDateTemplate: @"MMMMd"]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Date template works"); + + [formatter setDateTemplate: @"yMMMd"]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Year-month-day template works"); + + // Test locale + NSLocale *locale = [NSLocale localeWithLocaleIdentifier: @"en_US"]; + [formatter setLocale: locale]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "US locale works"); + + locale = [NSLocale localeWithLocaleIdentifier: @"fr_FR"]; + [formatter setLocale: locale]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "French locale works"); + + // Test time zone + NSTimeZone *tz = [NSTimeZone timeZoneWithName: @"America/New_York"]; + [formatter setTimeZone: tz]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Time zone setting works"); + + // Test calendar + NSCalendar *calendar = [NSCalendar currentCalendar]; + [formatter setCalendar: calendar]; + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Calendar setting works"); + + // Test different interval lengths + endDate = [startDate dateByAddingTimeInterval: 86400]; // 1 day later + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Format 1 day interval"); + + endDate = [startDate dateByAddingTimeInterval: 604800]; // 1 week later + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Format 1 week interval"); + + endDate = [startDate dateByAddingTimeInterval: 2592000]; // ~1 month later + result = [formatter stringFromDate: startDate toDate: endDate]; + PASS(result != nil, "Format 1 month interval"); + + END_SET("NSDateIntervalFormatter basic"); + return 0; +} diff --git a/Tests/base/NSDateIntervalFormatter/encoding.TestInfo b/Tests/base/NSDateIntervalFormatter/encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSDateIntervalFormatter/encoding.m b/Tests/base/NSDateIntervalFormatter/encoding.m new file mode 100644 index 000000000..a95904ea2 --- /dev/null +++ b/Tests/base/NSDateIntervalFormatter/encoding.m @@ -0,0 +1,77 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSDateIntervalFormatter encoding"); + + NSDateIntervalFormatter *formatter; + NSDateIntervalFormatter *decoded; + NSData *data; + NSString *result1; + NSString *result2; + NSCalendar *calendar; + NSLocale *locale; + NSTimeZone *timeZone; + NSDate *startDate; + NSDate *endDate; + + formatter = AUTORELEASE([[NSDateIntervalFormatter alloc] init]); + + // Configure the formatter + [formatter setDateStyle: NSDateIntervalFormatterMediumStyle]; + [formatter setTimeStyle: NSDateIntervalFormatterShortStyle]; + [formatter setDateTemplate: @"yMMMd"]; + + calendar = [NSCalendar currentCalendar]; + [formatter setCalendar: calendar]; + + locale = [NSLocale localeWithLocaleIdentifier: @"en_US"]; + [formatter setLocale: locale]; + + timeZone = [NSTimeZone timeZoneWithName: @"America/New_York"]; + [formatter setTimeZone: timeZone]; + + // Encode the formatter + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSDateIntervalFormatter"); + + // Decode the formatter + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode NSDateIntervalFormatter"); + PASS([decoded isKindOfClass: [NSDateIntervalFormatter class]], + "Decoded object is NSDateIntervalFormatter"); + + // Verify properties are preserved + PASS([decoded dateStyle] == NSDateIntervalFormatterMediumStyle, + "dateStyle preserved"); + PASS([decoded timeStyle] == NSDateIntervalFormatterShortStyle, + "timeStyle preserved"); + PASS([[decoded dateTemplate] isEqualToString: @"yMMMd"], + "dateTemplate preserved"); + PASS([decoded calendar] != nil, + "calendar preserved"); + PASS([decoded locale] != nil, + "locale preserved"); + PASS([decoded timeZone] != nil, + "timeZone preserved"); + + // Verify formatting behavior is consistent + startDate = [NSDate date]; + endDate = [startDate dateByAddingTimeInterval: 3600]; + result1 = [formatter stringFromDate: startDate toDate: endDate]; + result2 = [decoded stringFromDate: startDate toDate: endDate]; + PASS(result1 != nil && result2 != nil && + [result1 length] > 0 && [result2 length] > 0, + "Both formatters produce valid output"); + + END_SET("NSDateIntervalFormatter encoding"); + return 0; +} diff --git a/Tests/base/NSDateIntervalFormatter/macos_encoding.TestInfo b/Tests/base/NSDateIntervalFormatter/macos_encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSDateIntervalFormatter/macos_encoding.m b/Tests/base/NSDateIntervalFormatter/macos_encoding.m new file mode 100644 index 000000000..5981c2496 --- /dev/null +++ b/Tests/base/NSDateIntervalFormatter/macos_encoding.m @@ -0,0 +1,125 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import "../Shared/TestKeyedArchiver.h" + +int main() +{ + START_SET("NSDateIntervalFormatter macOS encoding compatibility"); + + NSDateIntervalFormatter *formatter; + NSDateIntervalFormatter *decoded; + NSData *data; + NSCalendar *calendar; + NSLocale *locale; + NSTimeZone *timeZone; + NSDate *startDate; + NSDate *endDate; + NSString *original; + NSString *afterDecode; + TestKeyedArchiver *archiver; + NSMutableData *mdata; + NSArray *keys; + NSString *key; + BOOL allHaveNSPrefix; + int i; + + formatter = AUTORELEASE([[NSDateIntervalFormatter alloc] init]); + + // Configure with properties + [formatter setDateStyle: NSDateIntervalFormatterMediumStyle]; + [formatter setTimeStyle: NSDateIntervalFormatterShortStyle]; + [formatter setDateTemplate: @"yMMMd"]; + + calendar = [NSCalendar currentCalendar]; + [formatter setCalendar: calendar]; + + locale = [NSLocale localeWithLocaleIdentifier: @"en_US"]; + [formatter setLocale: locale]; + + timeZone = [NSTimeZone timeZoneWithName: @"America/New_York"]; + [formatter setTimeZone: timeZone]; + + // Encode using custom archiver to capture keys + mdata = [NSMutableData data]; + archiver = [[TestKeyedArchiver alloc] initForWritingWithMutableData: mdata]; + [archiver encodeObject: formatter forKey: @"root"]; + [archiver finishEncoding]; + + keys = [archiver capturedKeys]; + PASS(keys != nil && [keys count] > 0, "Captured encoding keys"); + + // Check that all keys use NS prefix (macOS convention) + allHaveNSPrefix = YES; + for (i = 0; i < [keys count]; i++) + { + key = [keys objectAtIndex: i]; + if (![key isEqualToString: @"root"] && + ![key hasPrefix: @"NS"] && + ![key hasPrefix: @"$"]) + { + allHaveNSPrefix = NO; + NSLog(@"Found non-NS key: %@", key); + break; + } + } + PASS(allHaveNSPrefix, "All keys use macOS naming convention (NS prefix)"); + + // Verify specific keys expected by macOS + PASS([keys containsObject: @"NS.calendar"], + "Has NS.calendar key (macOS convention)"); + PASS([keys containsObject: @"NS.locale"], + "Has NS.locale key (macOS convention)"); + PASS([keys containsObject: @"NS.timeZone"], + "Has NS.timeZone key (macOS convention)"); + PASS([keys containsObject: @"NS.dateTemplate"], + "Has NS.dateTemplate key (macOS convention)"); + PASS([keys containsObject: @"NS.dateStyle"], + "Has NS.dateStyle key (macOS convention)"); + PASS([keys containsObject: @"NS.timeStyle"], + "Has NS.timeStyle key (macOS convention)"); + + [archiver release]; + + // Encode and decode + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSDateIntervalFormatter"); + + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode with NSKeyedUnarchiver"); + PASS([decoded isKindOfClass: [NSDateIntervalFormatter class]], + "Decoded object is correct class"); + + // Verify properties survive round-trip + PASS([decoded dateStyle] == [formatter dateStyle], + "dateStyle survives round-trip"); + PASS([decoded timeStyle] == [formatter timeStyle], + "timeStyle survives round-trip"); + PASS([[decoded dateTemplate] isEqualToString: [formatter dateTemplate]], + "dateTemplate survives round-trip"); + PASS([decoded calendar] != nil, + "calendar survives round-trip"); + PASS([decoded locale] != nil, + "locale survives round-trip"); + PASS([decoded timeZone] != nil, + "timeZone survives round-trip"); + + // Verify formatting works after decode + startDate = [NSDate date]; + endDate = [startDate dateByAddingTimeInterval: 3600]; + original = [formatter stringFromDate: startDate toDate: endDate]; + afterDecode = [decoded stringFromDate: startDate toDate: endDate]; + PASS(original != nil && afterDecode != nil, + "Both formatters produce output"); + + END_SET("NSDateIntervalFormatter macOS encoding compatibility"); + return 0; +} diff --git a/Tests/base/NSEnergyFormatter/TestInfo b/Tests/base/NSEnergyFormatter/TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSEnergyFormatter/advanced.m b/Tests/base/NSEnergyFormatter/advanced.m new file mode 100644 index 000000000..c872d40cc --- /dev/null +++ b/Tests/base/NSEnergyFormatter/advanced.m @@ -0,0 +1,192 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSEnergyFormatter advanced"); + + NSEnergyFormatter *formatter; + NSString *result; + NSString *result2; + NSEnergyFormatterUnit usedUnit; + BOOL success; + + formatter = AUTORELEASE([[NSEnergyFormatter alloc] init]); + + // Test very large energy values + result = [formatter stringFromValue: 1000000.0 unit: NSEnergyFormatterUnitJoule]; + PASS(result != nil && [result length] > 0, "Format 1 million joules"); + + result = [formatter stringFromValue: 1000000.0 unit: NSEnergyFormatterUnitCalorie]; + PASS(result != nil && [result length] > 0, "Format 1 million calories"); + + // Test very small values + result = [formatter stringFromValue: 0.001 unit: NSEnergyFormatterUnitJoule]; + PASS(result != nil && [result length] > 0, "Format very small joule value"); + + result = [formatter stringFromValue: 0.001 unit: NSEnergyFormatterUnitKilocalorie]; + PASS(result != nil && [result length] > 0, "Format very small kilocalorie value"); + + // Test negative values + result = [formatter stringFromValue: -1000.0 unit: NSEnergyFormatterUnitJoule]; + PASS(result != nil, "Handle negative energy value"); + + result = [formatter stringFromJoules: -4184.0]; + PASS(result != nil, "Handle negative joules"); + + // Test zero + result = [formatter stringFromValue: 0.0 unit: NSEnergyFormatterUnitJoule]; + PASS(result != nil && [result length] > 0, "Format zero energy"); + + result = [formatter stringFromJoules: 0.0]; + PASS(result != nil && [result length] > 0, "Format zero joules"); + + // Test conversion accuracy (1 calorie ≈ 4.184 joules) + [formatter setForFoodEnergyUse: NO]; + result = [formatter stringFromValue: 1.0 unit: NSEnergyFormatterUnitCalorie]; + result2 = [formatter stringFromJoules: 4.184]; + PASS(result != nil && result2 != nil, "Calorie to joule conversion"); + + // Test food energy vs regular energy + [formatter setForFoodEnergyUse: YES]; + result = [formatter stringFromJoules: 4184.0]; // ~1 kcal + [formatter setForFoodEnergyUse: NO]; + result2 = [formatter stringFromJoules: 4184.0]; + PASS(result != nil && result2 != nil, + "Food energy vs regular energy produce different formats"); + + // Test kilocalorie formatting (food Calories) + [formatter setForFoodEnergyUse: YES]; + result = [formatter stringFromValue: 1.0 unit: NSEnergyFormatterUnitKilocalorie]; + PASS(result != nil && [result length] > 0, "Format food Calorie (kcal)"); + + result = [formatter stringFromValue: 2000.0 unit: NSEnergyFormatterUnitKilocalorie]; + PASS(result != nil, "Format typical daily calorie intake"); + + // Test kilojoule formatting + result = [formatter stringFromValue: 1.0 unit: NSEnergyFormatterUnitKilojoule]; + PASS(result != nil && [result length] > 0, "Format 1 kilojoule"); + + result = [formatter stringFromValue: 8368.0 unit: NSEnergyFormatterUnitKilojoule]; + PASS(result != nil, "Format ~2000 kcal equivalent in kJ"); + + // Test unit styles with different energy values + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + result = [formatter stringFromJoules: 1000.0]; + PASS(result != nil && [result length] > 0, "Short style with joules"); + + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + result = [formatter stringFromJoules: 1000.0]; + PASS(result != nil && [result length] > 0, "Medium style with joules"); + + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + result = [formatter stringFromJoules: 1000.0]; + PASS(result != nil && [result length] > 0, "Long style with joules"); + + // Test unit string extraction + result = [formatter unitStringFromValue: 1.0 unit: NSEnergyFormatterUnitJoule]; + PASS(result != nil && [result length] > 0, "Extract joule unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSEnergyFormatterUnitCalorie]; + PASS(result != nil && [result length] > 0, "Extract calorie unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSEnergyFormatterUnitKilocalorie]; + PASS(result != nil && [result length] > 0, "Extract kilocalorie unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSEnergyFormatterUnitKilojoule]; + PASS(result != nil && [result length] > 0, "Extract kilojoule unit string"); + + // Test unitStringFromJoules with used unit output + usedUnit = NSEnergyFormatterUnitJoule; + result = [formatter unitStringFromJoules: 1000.0 usedUnit: &usedUnit]; + PASS(result != nil && [result length] > 0, "Extract unit string from joules"); + + result = [formatter unitStringFromJoules: 10000.0 usedUnit: &usedUnit]; + PASS(result != nil, "Extract unit string from larger joule value"); + + // Test with nil unit pointer + result = [formatter unitStringFromJoules: 1000.0 usedUnit: NULL]; + PASS(result != nil && [result length] > 0, + "unitStringFromJoules works with NULL unit pointer"); + + // Test number formatter customization + NSNumberFormatter *numFormatter = AUTORELEASE([[NSNumberFormatter alloc] init]); + [numFormatter setMaximumFractionDigits: 3]; + [formatter setNumberFormatter: numFormatter]; + result = [formatter stringFromJoules: 1234.5678]; + PASS(result != nil, "Custom number formatter applied"); + + // Reset to default + [formatter setNumberFormatter: nil]; + PASS([formatter numberFormatter] != nil, + "Number formatter auto-creates when set to nil"); + + // Test with various NSNumber types + result = [formatter stringForObjectValue: [NSNumber numberWithDouble: 1000]]; + PASS(result != nil && [result length] > 0, "Format integer NSNumber"); + + result = [formatter stringForObjectValue: [NSNumber numberWithDouble: 1234.5]]; + PASS(result != nil && [result length] > 0, "Format floating-point NSNumber"); + + result = [formatter stringForObjectValue: [NSNumber numberWithDouble: 4184.0]]; + PASS(result != nil && [result length] > 0, "Format double NSNumber"); + + // Test with nil and invalid objects + result = [formatter stringForObjectValue: nil]; + PASS(result != nil, "Handle nil object gracefully"); + + result = [formatter stringForObjectValue: @"not a number"]; + PASS(result != nil, "Handle non-number string"); + + result = [formatter stringForObjectValue: [NSDate date]]; + PASS(result != nil, "Handle invalid object type"); + + // Test food energy with various calorie amounts + [formatter setForFoodEnergyUse: YES]; + result = [formatter stringFromValue: 100.0 unit: NSEnergyFormatterUnitKilocalorie]; + PASS(result != nil, "Format 100 Calories (kcal)"); + + result = [formatter stringFromValue: 500.0 unit: NSEnergyFormatterUnitKilocalorie]; + PASS(result != nil, "Format 500 Calories (kcal)"); + + result = [formatter stringFromValue: 2500.0 unit: NSEnergyFormatterUnitKilocalorie]; + PASS(result != nil, "Format 2500 Calories (kcal)"); + + // Test fractional calories + result = [formatter stringFromValue: 0.5 unit: NSEnergyFormatterUnitKilocalorie]; + PASS(result != nil, "Format fractional kilocalories"); + + // Test boundary between units + [formatter setForFoodEnergyUse: NO]; + result = [formatter stringFromJoules: 999.9]; + result2 = [formatter stringFromJoules: 1000.0]; + PASS(result != nil && result2 != nil, + "Format values at unit boundary"); + + // Test consistency across multiple calls + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + [formatter setForFoodEnergyUse: NO]; + result = [formatter stringFromJoules: 5000.0]; + result2 = [formatter stringFromJoules: 5000.0]; + PASS(result != nil && result2 != nil && [result isEqual: result2], + "Multiple calls produce consistent results"); + + // Test locale sensitivity + NSLocale *locale = [NSLocale localeWithLocaleIdentifier: @"en_US"]; + [numFormatter setLocale: locale]; + [formatter setNumberFormatter: numFormatter]; + result = [formatter stringFromJoules: 1234.5]; + PASS(result != nil, "US locale formatting works"); + + locale = [NSLocale localeWithLocaleIdentifier: @"de_DE"]; + [numFormatter setLocale: locale]; + result = [formatter stringFromJoules: 1234.5]; + PASS(result != nil, "German locale formatting works"); + + END_SET("NSEnergyFormatter advanced"); + return 0; +} diff --git a/Tests/base/NSEnergyFormatter/basic.m b/Tests/base/NSEnergyFormatter/basic.m new file mode 100644 index 000000000..2231f41ad --- /dev/null +++ b/Tests/base/NSEnergyFormatter/basic.m @@ -0,0 +1,89 @@ +#import "ObjectTesting.h" +#import +#import +#import + +int main() +{ + START_SET("NSEnergyFormatter basic"); + + NSEnergyFormatter *formatter; + NSString *result; + NSNumber *number; + + // Test instance creation + formatter = AUTORELEASE([[NSEnergyFormatter alloc] init]); + PASS(formatter != nil, "Can create NSEnergyFormatter instance"); + + // Test basic energy formatting + result = [formatter stringFromValue: 0.0 unit: NSEnergyFormatterUnitJoule]; + PASS(result != nil && [result length] > 0, "Format 0 joules"); + + result = [formatter stringFromValue: 1.0 unit: NSEnergyFormatterUnitJoule]; + PASS(result != nil && [result length] > 0, "Format 1 joule"); + + result = [formatter stringFromValue: 1000.0 unit: NSEnergyFormatterUnitJoule]; + PASS(result != nil && [result length] > 0, "Format 1000 joules"); + + result = [formatter stringFromValue: 1.0 unit: NSEnergyFormatterUnitKilojoule]; + PASS(result != nil && [result length] > 0, "Format 1 kilojoule"); + + result = [formatter stringFromValue: 1.0 unit: NSEnergyFormatterUnitCalorie]; + PASS(result != nil && [result length] > 0, "Format 1 calorie"); + + result = [formatter stringFromValue: 1.0 unit: NSEnergyFormatterUnitKilocalorie]; + PASS(result != nil && [result length] > 0, "Format 1 kilocalorie"); + + // Test stringFromJoules: + result = [formatter stringFromJoules: 1000.0]; + PASS(result != nil && [result length] > 0, "stringFromJoules: works"); + + result = [formatter stringFromJoules: 4184.0]; + PASS(result != nil && [result length] > 0, + "stringFromJoules: with calorie equivalent"); + + // Test unit styles + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + result = [formatter stringFromJoules: 1000.0]; + PASS(result != nil, "Short unit style works"); + + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + result = [formatter stringFromJoules: 1000.0]; + PASS(result != nil, "Medium unit style works"); + + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + result = [formatter stringFromJoules: 1000.0]; + PASS(result != nil, "Long unit style works"); + + // Test for food energy use + [formatter setForFoodEnergyUse: YES]; + result = [formatter stringFromJoules: 4184.0]; + PASS(result != nil, "Food energy formatting works"); + + [formatter setForFoodEnergyUse: NO]; + result = [formatter stringFromJoules: 4184.0]; + PASS(result != nil, "Non-food energy formatting works"); + + // Test number formatter property + [formatter setNumberFormatter: nil]; + PASS([formatter numberFormatter] != nil, + "Number formatter is never nil (creates default)"); + + // Test stringForObjectValue: + number = [NSNumber numberWithDouble: 1000.0]; + result = [formatter stringForObjectValue: number]; + PASS(result != nil && [result length] > 0, + "stringForObjectValue: works with NSNumber"); + + // Test unit conversion + result = [formatter unitStringFromValue: 1.0 unit: NSEnergyFormatterUnitJoule]; + PASS(result != nil && [result length] > 0, "unitStringFromValue:unit: works"); + + result = [formatter unitStringFromJoules: 1000.0 + usedUnit: NULL]; + PASS(result != nil && [result length] > 0, + "unitStringFromJoules:usedUnit: works"); + + END_SET("NSEnergyFormatter basic"); + return 0; +} diff --git a/Tests/base/NSEnergyFormatter/encoding.TestInfo b/Tests/base/NSEnergyFormatter/encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSEnergyFormatter/encoding.m b/Tests/base/NSEnergyFormatter/encoding.m new file mode 100644 index 000000000..f94caf793 --- /dev/null +++ b/Tests/base/NSEnergyFormatter/encoding.m @@ -0,0 +1,56 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSEnergyFormatter encoding"); + + NSEnergyFormatter *formatter; + NSEnergyFormatter *decoded; + NSData *data; + NSString *result1; + NSString *result2; + NSNumberFormatter *nf; + + formatter = AUTORELEASE([[NSEnergyFormatter alloc] init]); + + // Configure the formatter + [formatter setForFoodEnergyUse: YES]; + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + + nf = AUTORELEASE([[NSNumberFormatter alloc] init]); + [nf setMaximumFractionDigits: 0]; + [formatter setNumberFormatter: nf]; + + // Encode the formatter + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSEnergyFormatter"); + + // Decode the formatter + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode NSEnergyFormatter"); + PASS([decoded isKindOfClass: [NSEnergyFormatter class]], + "Decoded object is NSEnergyFormatter"); + + // Verify properties are preserved + PASS([decoded isForFoodEnergyUse] == YES, + "forFoodEnergyUse preserved"); + PASS([decoded unitStyle] == NSFormattingUnitStyleLong, + "unitStyle preserved"); + PASS([decoded numberFormatter] != nil, + "numberFormatter preserved"); + + // Verify formatting behavior is consistent + result1 = [formatter stringFromJoules: 4184.0]; + result2 = [decoded stringFromJoules: 4184.0]; + PASS(result1 != nil && result2 != nil && + [result1 length] > 0 && [result2 length] > 0, + "Both formatters produce valid output"); + + END_SET("NSEnergyFormatter encoding"); + return 0; +} diff --git a/Tests/base/NSEnergyFormatter/format_validation.m b/Tests/base/NSEnergyFormatter/format_validation.m new file mode 100644 index 000000000..f3ef77152 --- /dev/null +++ b/Tests/base/NSEnergyFormatter/format_validation.m @@ -0,0 +1,65 @@ +#import "ObjectTesting.h" +#import +#import + +int main() +{ + START_SET("NSEnergyFormatter format validation"); + + NSEnergyFormatter *formatter; + NSString *result; + + formatter = AUTORELEASE([[NSEnergyFormatter alloc] init]); + + // Test joule formatting + result = [formatter stringFromJoules: 1000.0]; + PASS([result rangeOfString: @"1"].location != NSNotFound && + ([result rangeOfString: @"kJ"].location != NSNotFound || + [result rangeOfString: @"kilojoule"].location != NSNotFound || + [result rangeOfString: @"J"].location != NSNotFound || + [result rangeOfString: @"joule"].location != NSNotFound), + "1000 J format includes number and unit"); + + // Test calorie formatting + result = [formatter stringFromValue: 100.0 unit: NSEnergyFormatterUnitCalorie]; + PASS([result rangeOfString: @"100"].location != NSNotFound && + ([result rangeOfString: @"cal"].location != NSNotFound || + [result rangeOfString: @"Cal"].location != NSNotFound || + [result rangeOfString: @"calorie"].location != NSNotFound), + "100 cal format correct"); + + // Test kilocalorie formatting + result = [formatter stringFromValue: 2.5 unit: NSEnergyFormatterUnitKilocalorie]; + PASS([result rangeOfString: @"2"].location != NSNotFound && + ([result rangeOfString: @"kcal"].location != NSNotFound || + [result rangeOfString: @"Cal"].location != NSNotFound || + [result rangeOfString: @"kilocalorie"].location != NSNotFound), + "2.5 kcal format correct"); + + // Test food energy vs regular energy + [formatter setForFoodEnergyUse: NO]; + NSString *regularResult = [formatter stringFromJoules: 4184.0]; // ~1000 cal + + [formatter setForFoodEnergyUse: YES]; + NSString *foodResult = [formatter stringFromJoules: 4184.0]; + + PASS([regularResult length] > 0 && [foodResult length] > 0, + "Both regular and food energy produce valid formats"); + + // Test unit styles + [formatter setForFoodEnergyUse: NO]; + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + result = [formatter stringFromJoules: 5000.0]; + PASS([result rangeOfString: @"5"].location != NSNotFound || + [result rangeOfString: @"4"].location != NSNotFound || + [result rangeOfString: @"6"].location != NSNotFound, + "Short style shows number"); + + // Test zero handling + result = [formatter stringFromJoules: 0.0]; + PASS([result rangeOfString: @"0"].location != NSNotFound, + "Zero joules shows 0"); + + END_SET("NSEnergyFormatter format validation"); + return 0; +} diff --git a/Tests/base/NSEnergyFormatter/format_validation.m.TestInfo b/Tests/base/NSEnergyFormatter/format_validation.m.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSEnergyFormatter/macos_encoding.TestInfo b/Tests/base/NSEnergyFormatter/macos_encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSEnergyFormatter/macos_encoding.m b/Tests/base/NSEnergyFormatter/macos_encoding.m new file mode 100644 index 000000000..6d879bb38 --- /dev/null +++ b/Tests/base/NSEnergyFormatter/macos_encoding.m @@ -0,0 +1,96 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import +#import +#import "../Shared/TestKeyedArchiver.h" + +int main() +{ + START_SET("NSEnergyFormatter macOS encoding compatibility"); + + NSEnergyFormatter *formatter; + NSEnergyFormatter *decoded; + NSData *data; + NSNumberFormatter *nf; + NSString *original; + NSString *afterDecode; + TestKeyedArchiver *archiver; + NSMutableData *mdata; + NSArray *keys; + NSString *key; + BOOL allHaveNSPrefix; + int i; + + formatter = AUTORELEASE([[NSEnergyFormatter alloc] init]); + + // Configure with properties + [formatter setForFoodEnergyUse: YES]; + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + + nf = AUTORELEASE([[NSNumberFormatter alloc] init]); + [nf setMaximumFractionDigits: 0]; + [formatter setNumberFormatter: nf]; + + // Encode using custom archiver to capture keys + mdata = [NSMutableData data]; + archiver = [[TestKeyedArchiver alloc] initForWritingWithMutableData: mdata]; + [archiver encodeObject: formatter forKey: @"root"]; + [archiver finishEncoding]; + + keys = [archiver capturedKeys]; + PASS(keys != nil && [keys count] > 0, "Captured encoding keys"); + + // Check that all keys use NS prefix (macOS convention) + allHaveNSPrefix = YES; + for (i = 0; i < [keys count]; i++) + { + key = [keys objectAtIndex: i]; + if (![key isEqualToString: @"root"] && + ![key hasPrefix: @"NS"] && + ![key hasPrefix: @"$"]) + { + allHaveNSPrefix = NO; + NSLog(@"Found non-NS key: %@", key); + break; + } + } + PASS(allHaveNSPrefix, "All keys use macOS naming convention (NS prefix)"); + + // Verify specific keys expected by macOS + PASS([keys containsObject: @"NS.numberFormatter"], + "Has NS.numberFormatter key (macOS convention)"); + PASS([keys containsObject: @"NS.unitOptions"], + "Has NS.unitOptions key (macOS convention)"); + + [archiver release]; + + // Encode and decode + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSEnergyFormatter"); + + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode with NSKeyedUnarchiver"); + PASS([decoded isKindOfClass: [NSEnergyFormatter class]], + "Decoded object is correct class"); + + // Verify properties survive round-trip + PASS([decoded isForFoodEnergyUse] == [formatter isForFoodEnergyUse], + "forFoodEnergyUse survives round-trip"); + PASS([decoded unitStyle] == [formatter unitStyle], + "unitStyle survives round-trip"); + PASS([decoded numberFormatter] != nil, + "numberFormatter survives round-trip"); + + // Verify formatting works after decode + original = [formatter stringFromJoules: 4184.0]; + afterDecode = [decoded stringFromJoules: 4184.0]; + PASS(original != nil && afterDecode != nil, + "Both formatters produce output"); + + END_SET("NSEnergyFormatter macOS encoding compatibility"); + return 0; +} diff --git a/Tests/base/NSLengthFormatter/TestInfo b/Tests/base/NSLengthFormatter/TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSLengthFormatter/advanced.m b/Tests/base/NSLengthFormatter/advanced.m new file mode 100644 index 000000000..995d3d4b5 --- /dev/null +++ b/Tests/base/NSLengthFormatter/advanced.m @@ -0,0 +1,267 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSLengthFormatter advanced"); + + NSLengthFormatter *formatter; + NSString *result; + NSString *result2; + NSLengthFormatterUnit usedUnit; + + formatter = AUTORELEASE([[NSLengthFormatter alloc] init]); + + // Test very large length values + result = [formatter stringFromValue: 100000.0 unit: NSLengthFormatterUnitMeter]; + PASS(result != nil && [result length] > 0, "Format 100 km worth of meters"); + + result = [formatter stringFromValue: 1000.0 unit: NSLengthFormatterUnitKilometer]; + PASS(result != nil && [result length] > 0, "Format 1000 kilometers"); + + result = [formatter stringFromValue: 1000.0 unit: NSLengthFormatterUnitMile]; + PASS(result != nil && [result length] > 0, "Format 1000 miles"); + + // Test very small values + result = [formatter stringFromValue: 0.001 unit: NSLengthFormatterUnitMeter]; + PASS(result != nil && [result length] > 0, "Format millimeter-scale value"); + + result = [formatter stringFromValue: 0.1 unit: NSLengthFormatterUnitInch]; + PASS(result != nil && [result length] > 0, "Format fraction of an inch"); + + // Test negative values + result = [formatter stringFromValue: -100.0 unit: NSLengthFormatterUnitMeter]; + PASS(result != nil, "Handle negative length value"); + + result = [formatter stringFromMeters: -50.0]; + PASS(result != nil, "Handle negative meters"); + + // Test zero + result = [formatter stringFromValue: 0.0 unit: NSLengthFormatterUnitMeter]; + PASS(result != nil && [result length] > 0, "Format zero length"); + + result = [formatter stringFromMeters: 0.0]; + PASS(result != nil && [result length] > 0, "Format zero meters"); + + // Test conversion accuracy (1 inch = 2.54 cm) + result = [formatter stringFromValue: 1.0 unit: NSLengthFormatterUnitInch]; + result2 = [formatter stringFromValue: 2.54 unit: NSLengthFormatterUnitCentimeter]; + PASS(result != nil && result2 != nil, "Inch to centimeter conversion"); + + // Test foot to inch conversion (1 ft = 12 in) + result = [formatter stringFromValue: 1.0 unit: NSLengthFormatterUnitFoot]; + result2 = [formatter stringFromValue: 12.0 unit: NSLengthFormatterUnitInch]; + PASS(result != nil && result2 != nil, "Foot to inch conversion"); + + // Test yard to foot conversion (1 yd = 3 ft) + result = [formatter stringFromValue: 1.0 unit: NSLengthFormatterUnitYard]; + result2 = [formatter stringFromValue: 3.0 unit: NSLengthFormatterUnitFoot]; + PASS(result != nil && result2 != nil, "Yard to foot conversion"); + + // Test mile to foot conversion (1 mi = 5280 ft) + result = [formatter stringFromValue: 1.0 unit: NSLengthFormatterUnitMile]; + result2 = [formatter stringFromValue: 5280.0 unit: NSLengthFormatterUnitFoot]; + PASS(result != nil && result2 != nil, "Mile to foot conversion"); + + // Test person height vs regular length + [formatter setForPersonHeightUse: YES]; + result = [formatter stringFromMeters: 1.75]; // Average adult height + [formatter setForPersonHeightUse: NO]; + result2 = [formatter stringFromMeters: 1.75]; + PASS(result != nil && result2 != nil, + "Person height vs regular length may use different units"); + + // Test typical person height values + [formatter setForPersonHeightUse: YES]; + result = [formatter stringFromMeters: 1.50]; // Shorter person + PASS(result != nil, "Format shorter person height"); + + result = [formatter stringFromMeters: 1.75]; // Average person + PASS(result != nil, "Format average person height"); + + result = [formatter stringFromMeters: 2.00]; // Taller person + PASS(result != nil, "Format taller person height"); + + result = [formatter stringFromMeters: 0.50]; // Child height + PASS(result != nil, "Format child height"); + + // Test unit styles with different length values + [formatter setForPersonHeightUse: NO]; + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + result = [formatter stringFromMeters: 10.5]; + PASS(result != nil && [result length] > 0, "Short style with meters"); + + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + result = [formatter stringFromMeters: 10.5]; + PASS(result != nil && [result length] > 0, "Medium style with meters"); + + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + result = [formatter stringFromMeters: 10.5]; + PASS(result != nil && [result length] > 0, "Long style with meters"); + + // Test all unit types + result = [formatter stringFromValue: 100.0 unit: NSLengthFormatterUnitMillimeter]; + PASS(result != nil && [result length] > 0, "Format millimeters"); + + result = [formatter stringFromValue: 50.0 unit: NSLengthFormatterUnitCentimeter]; + PASS(result != nil && [result length] > 0, "Format centimeters"); + + result = [formatter stringFromValue: 10.0 unit: NSLengthFormatterUnitMeter]; + PASS(result != nil && [result length] > 0, "Format meters"); + + result = [formatter stringFromValue: 5.0 unit: NSLengthFormatterUnitKilometer]; + PASS(result != nil && [result length] > 0, "Format kilometers"); + + result = [formatter stringFromValue: 12.0 unit: NSLengthFormatterUnitInch]; + PASS(result != nil && [result length] > 0, "Format inches"); + + result = [formatter stringFromValue: 3.0 unit: NSLengthFormatterUnitFoot]; + PASS(result != nil && [result length] > 0, "Format feet"); + + result = [formatter stringFromValue: 10.0 unit: NSLengthFormatterUnitYard]; + PASS(result != nil && [result length] > 0, "Format yards"); + + result = [formatter stringFromValue: 2.0 unit: NSLengthFormatterUnitMile]; + PASS(result != nil && [result length] > 0, "Format miles"); + + // Test unit string extraction + result = [formatter unitStringFromValue: 1.0 unit: NSLengthFormatterUnitMillimeter]; + PASS(result != nil && [result length] > 0, "Extract millimeter unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSLengthFormatterUnitCentimeter]; + PASS(result != nil && [result length] > 0, "Extract centimeter unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSLengthFormatterUnitMeter]; + PASS(result != nil && [result length] > 0, "Extract meter unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSLengthFormatterUnitKilometer]; + PASS(result != nil && [result length] > 0, "Extract kilometer unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSLengthFormatterUnitInch]; + PASS(result != nil && [result length] > 0, "Extract inch unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSLengthFormatterUnitFoot]; + PASS(result != nil && [result length] > 0, "Extract foot unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSLengthFormatterUnitYard]; + PASS(result != nil && [result length] > 0, "Extract yard unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSLengthFormatterUnitMile]; + PASS(result != nil && [result length] > 0, "Extract mile unit string"); + + // Test unitStringFromMeters with used unit output + usedUnit = NSLengthFormatterUnitMeter; + result = [formatter unitStringFromMeters: 100.0 usedUnit: &usedUnit]; + PASS(result != nil && [result length] > 0, "Extract unit string from meters"); + + result = [formatter unitStringFromMeters: 0.5 usedUnit: &usedUnit]; + PASS(result != nil, "Extract unit string from fractional meters"); + + // Test with nil unit pointer + result = [formatter unitStringFromMeters: 100.0 usedUnit: NULL]; + PASS(result != nil && [result length] > 0, + "unitStringFromMeters works with NULL unit pointer"); + + // Test number formatter customization + NSNumberFormatter *numFormatter = AUTORELEASE([[NSNumberFormatter alloc] init]); + [numFormatter setMaximumFractionDigits: 2]; + [formatter setNumberFormatter: numFormatter]; + result = [formatter stringFromMeters: 12.3456]; + PASS(result != nil, "Custom number formatter applied"); + + // Reset to default + [formatter setNumberFormatter: nil]; + PASS([formatter numberFormatter] != nil, + "Number formatter auto-creates when set to nil"); + + // Test with various NSNumber types + result = [formatter stringForObjectValue: [NSNumber numberWithDouble: 100]]; + PASS(result != nil && [result length] > 0, "Format integer NSNumber"); + + result = [formatter stringForObjectValue: [NSNumber numberWithDouble: 100.5]]; + PASS(result != nil && [result length] > 0, "Format floating-point NSNumber"); + + result = [formatter stringForObjectValue: [NSNumber numberWithDouble: 250.75]]; + PASS(result != nil && [result length] > 0, "Format double NSNumber"); + + // Test with nil and invalid objects + result = [formatter stringForObjectValue: nil]; + PASS(result != nil, "Handle nil object gracefully"); + + result = [formatter stringForObjectValue: @"not a number"]; + PASS(result != nil, "Handle non-number string"); + + result = [formatter stringForObjectValue: [NSDate date]]; + PASS(result != nil, "Handle invalid object type"); + + // Test fractional values + result = [formatter stringFromMeters: 0.5]; + PASS(result != nil, "Format half meter"); + + result = [formatter stringFromMeters: 1.25]; + PASS(result != nil, "Format 1.25 meters"); + + result = [formatter stringFromValue: 2.75 unit: NSLengthFormatterUnitFoot]; + PASS(result != nil, "Format fractional feet"); + + // Test boundary between units + result = [formatter stringFromMeters: 0.999]; + result2 = [formatter stringFromMeters: 1.001]; + PASS(result != nil && result2 != nil, + "Format values at unit boundary"); + + // Test consistency across multiple calls + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + [formatter setForPersonHeightUse: NO]; + result = [formatter stringFromMeters: 50.5]; + result2 = [formatter stringFromMeters: 50.5]; + PASS(result != nil && result2 != nil && [result isEqual: result2], + "Multiple calls produce consistent results"); + + // Test locale sensitivity (metric vs imperial) + NSLocale *usLocale = [NSLocale localeWithLocaleIdentifier: @"en_US"]; + [numFormatter setLocale: usLocale]; + [formatter setNumberFormatter: numFormatter]; + result = [formatter stringFromMeters: 100.0]; + PASS(result != nil, "US locale formatting works"); + + NSLocale *ukLocale = [NSLocale localeWithLocaleIdentifier: @"en_GB"]; + [numFormatter setLocale: ukLocale]; + result = [formatter stringFromMeters: 100.0]; + PASS(result != nil, "UK locale formatting works"); + + NSLocale *deLocale = [NSLocale localeWithLocaleIdentifier: @"de_DE"]; + [numFormatter setLocale: deLocale]; + result = [formatter stringFromMeters: 100.0]; + PASS(result != nil, "German locale formatting works"); + + // Test parsing (if implemented) + id parsedValue = nil; + NSString *error = nil; + BOOL parsed = [formatter getObjectValue: &parsedValue + forString: @"5 m" + errorDescription: &error]; + PASS(parsed == YES || parsedValue != nil || error != nil, + "Parsing returns some result"); + + parsed = [formatter getObjectValue: &parsedValue + forString: @"10.5 ft" + errorDescription: &error]; + PASS(parsed == YES || parsedValue != nil || error != nil, + "Parsing feet returns some result"); + + // Test marathon distance + result = [formatter stringFromMeters: 42195.0]; // Marathon distance + PASS(result != nil, "Format marathon distance"); + + // Test astronomical distances (should still work) + result = [formatter stringFromMeters: 384400000.0]; // Earth to Moon + PASS(result != nil, "Format very large distance"); + + END_SET("NSLengthFormatter advanced"); + return 0; +} diff --git a/Tests/base/NSLengthFormatter/basic.m b/Tests/base/NSLengthFormatter/basic.m new file mode 100644 index 000000000..1b9c43ac1 --- /dev/null +++ b/Tests/base/NSLengthFormatter/basic.m @@ -0,0 +1,109 @@ +#import "ObjectTesting.h" +#import +#import +#import + +int main() +{ + START_SET("NSLengthFormatter basic"); + + NSLengthFormatter *formatter; + NSString *result; + NSNumber *number; + + // Test instance creation + formatter = AUTORELEASE([[NSLengthFormatter alloc] init]); + PASS(formatter != nil, "Can create NSLengthFormatter instance"); + + // Test basic length formatting + result = [formatter stringFromValue: 0.0 unit: NSLengthFormatterUnitMeter]; + PASS(result != nil && [result length] > 0, "Format 0 meters"); + + result = [formatter stringFromValue: 1.0 unit: NSLengthFormatterUnitMeter]; + PASS(result != nil && [result length] > 0, "Format 1 meter"); + + result = [formatter stringFromValue: 1000.0 unit: NSLengthFormatterUnitMeter]; + PASS(result != nil && [result length] > 0, "Format 1000 meters"); + + result = [formatter stringFromValue: 1.0 unit: NSLengthFormatterUnitKilometer]; + PASS(result != nil && [result length] > 0, "Format 1 kilometer"); + + result = [formatter stringFromValue: 1.0 unit: NSLengthFormatterUnitCentimeter]; + PASS(result != nil && [result length] > 0, "Format 1 centimeter"); + + result = [formatter stringFromValue: 1.0 unit: NSLengthFormatterUnitMillimeter]; + PASS(result != nil && [result length] > 0, "Format 1 millimeter"); + + result = [formatter stringFromValue: 1.0 unit: NSLengthFormatterUnitInch]; + PASS(result != nil && [result length] > 0, "Format 1 inch"); + + result = [formatter stringFromValue: 1.0 unit: NSLengthFormatterUnitFoot]; + PASS(result != nil && [result length] > 0, "Format 1 foot"); + + result = [formatter stringFromValue: 1.0 unit: NSLengthFormatterUnitYard]; + PASS(result != nil && [result length] > 0, "Format 1 yard"); + + result = [formatter stringFromValue: 1.0 unit: NSLengthFormatterUnitMile]; + PASS(result != nil && [result length] > 0, "Format 1 mile"); + + // Test stringFromMeters: + result = [formatter stringFromMeters: 1.0]; + PASS(result != nil && [result length] > 0, "stringFromMeters: works"); + + result = [formatter stringFromMeters: 1000.0]; + PASS(result != nil && [result length] > 0, + "stringFromMeters: with kilometers"); + + // Test unit styles + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + result = [formatter stringFromMeters: 1.5]; + PASS(result != nil, "Short unit style works"); + + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + result = [formatter stringFromMeters: 1.5]; + PASS(result != nil, "Medium unit style works"); + + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + result = [formatter stringFromMeters: 1.5]; + PASS(result != nil, "Long unit style works"); + + // Test for person height use + [formatter setForPersonHeightUse: YES]; + result = [formatter stringFromMeters: 1.75]; + PASS(result != nil, "Person height formatting works"); + + [formatter setForPersonHeightUse: NO]; + result = [formatter stringFromMeters: 1.75]; + PASS(result != nil, "Non-person height formatting works"); + + // Test number formatter property + [formatter setNumberFormatter: nil]; + PASS([formatter numberFormatter] != nil, + "Number formatter is never nil (creates default)"); + + // Test stringForObjectValue: + number = [NSNumber numberWithDouble: 100.0]; + result = [formatter stringForObjectValue: number]; + PASS(result != nil && [result length] > 0, + "stringForObjectValue: works with NSNumber"); + + // Test unit conversion + result = [formatter unitStringFromValue: 1.0 unit: NSLengthFormatterUnitMeter]; + PASS(result != nil && [result length] > 0, "unitStringFromValue:unit: works"); + + result = [formatter unitStringFromMeters: 1.0 + usedUnit: NULL]; + PASS(result != nil && [result length] > 0, + "unitStringFromMeters:usedUnit: works"); + + // Test parsing + double value; + NSString *error = nil; + BOOL parsed = [formatter getObjectValue: &number + forString: @"5.5 m" + errorDescription: &error]; + PASS(parsed || number != nil, "Can parse length string"); + + END_SET("NSLengthFormatter basic"); + return 0; +} diff --git a/Tests/base/NSLengthFormatter/encoding.TestInfo b/Tests/base/NSLengthFormatter/encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSLengthFormatter/encoding.m b/Tests/base/NSLengthFormatter/encoding.m new file mode 100644 index 000000000..7cc66eb3a --- /dev/null +++ b/Tests/base/NSLengthFormatter/encoding.m @@ -0,0 +1,56 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSLengthFormatter encoding"); + + NSLengthFormatter *formatter; + NSLengthFormatter *decoded; + NSData *data; + NSString *result1; + NSString *result2; + NSNumberFormatter *nf; + + formatter = AUTORELEASE([[NSLengthFormatter alloc] init]); + + // Configure the formatter + [formatter setForPersonHeightUse: YES]; + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + + nf = AUTORELEASE([[NSNumberFormatter alloc] init]); + [nf setMaximumFractionDigits: 1]; + [formatter setNumberFormatter: nf]; + + // Encode the formatter + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSLengthFormatter"); + + // Decode the formatter + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode NSLengthFormatter"); + PASS([decoded isKindOfClass: [NSLengthFormatter class]], + "Decoded object is NSLengthFormatter"); + + // Verify properties are preserved + PASS([decoded isForPersonHeightUse] == YES, + "forPersonHeightUse preserved"); + PASS([decoded unitStyle] == NSFormattingUnitStyleMedium, + "unitStyle preserved"); + PASS([decoded numberFormatter] != nil, + "numberFormatter preserved"); + + // Verify formatting behavior is consistent + result1 = [formatter stringFromMeters: 1.75]; + result2 = [decoded stringFromMeters: 1.75]; + PASS(result1 != nil && result2 != nil && + [result1 length] > 0 && [result2 length] > 0, + "Both formatters produce valid output"); + + END_SET("NSLengthFormatter encoding"); + return 0; +} diff --git a/Tests/base/NSLengthFormatter/format_validation.m b/Tests/base/NSLengthFormatter/format_validation.m new file mode 100644 index 000000000..9f901339f --- /dev/null +++ b/Tests/base/NSLengthFormatter/format_validation.m @@ -0,0 +1,66 @@ +#import "ObjectTesting.h" +#import +#import + +int main() +{ + START_SET("NSLengthFormatter format validation"); + + NSLengthFormatter *formatter; + NSString *result; + + formatter = AUTORELEASE([[NSLengthFormatter alloc] init]); + + // Test meter formatting + result = [formatter stringFromMeters: 1.0]; + PASS([result rangeOfString: @"1"].location != NSNotFound && + ([result rangeOfString: @"m"].location != NSNotFound || + [result rangeOfString: @"meter"].location != NSNotFound), + "1 meter format includes number and unit"); + + // Test kilometer formatting + result = [formatter stringFromValue: 5.0 unit: NSLengthFormatterUnitKilometer]; + PASS([result length] > 0, + "5 km format produces output"); + + // Test inch formatting + result = [formatter stringFromValue: 12.0 unit: NSLengthFormatterUnitInch]; + PASS([result rangeOfString: @"12"].location != NSNotFound && + ([result rangeOfString: @"in"].location != NSNotFound || + [result rangeOfString: @"inch"].location != NSNotFound), + "12 inches format correct"); + + // Test foot formatting + result = [formatter stringFromValue: 6.0 unit: NSLengthFormatterUnitFoot]; + PASS([result rangeOfString: @"6"].location != NSNotFound && + ([result rangeOfString: @"ft"].location != NSNotFound || + [result rangeOfString: @"foot"].location != NSNotFound || + [result rangeOfString: @"feet"].location != NSNotFound), + "6 feet format correct"); + + // Test mile formatting + result = [formatter stringFromValue: 2.0 unit: NSLengthFormatterUnitMile]; + PASS([result rangeOfString: @"2"].location != NSNotFound && + ([result rangeOfString: @"mi"].location != NSNotFound || + [result rangeOfString: @"mile"].location != NSNotFound), + "2 miles format correct"); + + // Test unit style variations + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + NSString *shortResult = [formatter stringFromMeters: 100.0]; + + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + NSString *longResult = [formatter stringFromMeters: 100.0]; + + PASS(![shortResult isEqualToString: longResult] || + [shortResult length] > 0, + "Different unit styles produce different or valid results"); + + // Test zero handling + result = [formatter stringFromMeters: 0.0]; + PASS([result rangeOfString: @"0"].location != NSNotFound, + "Zero meters shows 0"); + + END_SET("NSLengthFormatter format validation"); + return 0; +} diff --git a/Tests/base/NSLengthFormatter/format_validation.m.TestInfo b/Tests/base/NSLengthFormatter/format_validation.m.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSLengthFormatter/macos_encoding.TestInfo b/Tests/base/NSLengthFormatter/macos_encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSLengthFormatter/macos_encoding.m b/Tests/base/NSLengthFormatter/macos_encoding.m new file mode 100644 index 000000000..453f044f2 --- /dev/null +++ b/Tests/base/NSLengthFormatter/macos_encoding.m @@ -0,0 +1,96 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import +#import +#import "../Shared/TestKeyedArchiver.h" + +int main() +{ + START_SET("NSLengthFormatter macOS encoding compatibility"); + + NSLengthFormatter *formatter; + NSLengthFormatter *decoded; + NSData *data; + NSNumberFormatter *nf; + NSString *original; + NSString *afterDecode; + TestKeyedArchiver *archiver; + NSMutableData *mdata; + NSArray *keys; + NSString *key; + BOOL allHaveNSPrefix; + int i; + + formatter = AUTORELEASE([[NSLengthFormatter alloc] init]); + + // Configure with properties + [formatter setForPersonHeightUse: YES]; + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + + nf = AUTORELEASE([[NSNumberFormatter alloc] init]); + [nf setMaximumFractionDigits: 1]; + [formatter setNumberFormatter: nf]; + + // Encode using custom archiver to capture keys + mdata = [NSMutableData data]; + archiver = [[TestKeyedArchiver alloc] initForWritingWithMutableData: mdata]; + [archiver encodeObject: formatter forKey: @"root"]; + [archiver finishEncoding]; + + keys = [archiver capturedKeys]; + PASS(keys != nil && [keys count] > 0, "Captured encoding keys"); + + // Check that all keys use NS prefix (macOS convention) + allHaveNSPrefix = YES; + for (i = 0; i < [keys count]; i++) + { + key = [keys objectAtIndex: i]; + if (![key isEqualToString: @"root"] && + ![key hasPrefix: @"NS"] && + ![key hasPrefix: @"$"]) + { + allHaveNSPrefix = NO; + NSLog(@"Found non-NS key: %@", key); + break; + } + } + PASS(allHaveNSPrefix, "All keys use macOS naming convention (NS prefix)"); + + // Verify specific keys expected by macOS + PASS([keys containsObject: @"NS.numberFormatter"], + "Has NS.numberFormatter key (macOS convention)"); + PASS([keys containsObject: @"NS.unitOptions"], + "Has NS.unitOptions key (macOS convention)"); + + [archiver release]; + + // Encode and decode + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSLengthFormatter"); + + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode with NSKeyedUnarchiver"); + PASS([decoded isKindOfClass: [NSLengthFormatter class]], + "Decoded object is correct class"); + + // Verify properties survive round-trip + PASS([decoded isForPersonHeightUse] == [formatter isForPersonHeightUse], + "forPersonHeightUse survives round-trip"); + PASS([decoded unitStyle] == [formatter unitStyle], + "unitStyle survives round-trip"); + PASS([decoded numberFormatter] != nil, + "numberFormatter survives round-trip"); + + // Verify formatting works after decode + original = [formatter stringFromMeters: 1.75]; + afterDecode = [decoded stringFromMeters: 1.75]; + PASS(original != nil && afterDecode != nil, + "Both formatters produce output"); + + END_SET("NSLengthFormatter macOS encoding compatibility"); + return 0; +} diff --git a/Tests/base/NSLinguisticTagger/TestInfo b/Tests/base/NSLinguisticTagger/TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSLinguisticTagger/basic.m b/Tests/base/NSLinguisticTagger/basic.m new file mode 100644 index 000000000..edc8b12e7 --- /dev/null +++ b/Tests/base/NSLinguisticTagger/basic.m @@ -0,0 +1,307 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import + +int main() +{ + NSLinguisticTagger *tagger; + NSArray *schemes; + NSArray *tags; + NSArray *ranges; + NSString *text; + NSString *language; + NSRange range; + NSRange effectiveRange; + NSLinguisticTag tag; + NSOrthography *orthography; +#if __has_feature(blocks) + __block int enumerationCount; +#endif + + START_SET("NSLinguisticTagger basic"); + + // Test instance creation + schemes = [NSArray arrayWithObjects: + NSLinguisticTagSchemeTokenType, + NSLinguisticTagSchemeLexicalClass, + nil]; + tagger = AUTORELEASE([[NSLinguisticTagger alloc] initWithTagSchemes: schemes + options: 0]); + PASS(tagger != nil, "Can create NSLinguisticTagger instance"); + + // Test tag schemes + PASS([tagger tagSchemes] != nil, "Tag schemes property works"); + PASS([[tagger tagSchemes] count] == 2, "Tag schemes count correct"); + + // Test string property + text = @"Hello world!"; + [tagger setString: text]; + PASS([[tagger string] isEqual: text], "String property works"); + + // Test available tag schemes for unit + schemes = [NSLinguisticTagger availableTagSchemesForUnit: NSLinguisticTaggerUnitWord + language: @"en"]; + PASS(schemes != nil && [schemes count] > 0, + "availableTagSchemesForUnit:language: returns schemes"); + + // Test available tag schemes for language + schemes = [NSLinguisticTagger availableTagSchemesForLanguage: @"en"]; + PASS(schemes != nil && [schemes count] > 0, + "availableTagSchemesForLanguage: returns schemes"); + + // Test dominant language detection + language = [NSLinguisticTagger dominantLanguageForString: @"Hello world"]; + PASS(language != nil, "dominantLanguageForString: returns language"); + + language = [tagger dominantLanguage]; + PASS(language != nil, "dominantLanguage property works"); + + END_SET("NSLinguisticTagger basic"); + + START_SET("NSLinguisticTagger tokenization"); + + // Test token range detection + schemes = [NSArray arrayWithObjects: + NSLinguisticTagSchemeTokenType, + NSLinguisticTagSchemeLexicalClass, + nil]; + tagger = AUTORELEASE([[NSLinguisticTagger alloc] initWithTagSchemes: schemes + options: 0]); + text = @"Hello world!"; + [tagger setString: text]; + + range = [tagger tokenRangeAtIndex: 0 unit: NSLinguisticTaggerUnitWord]; + PASS(range.location == 0 && range.length == 5, + "Token range at start of string (Hello)"); + + range = [tagger tokenRangeAtIndex: 6 unit: NSLinguisticTaggerUnitWord]; + PASS(range.location == 6 && range.length == 5, + "Token range in middle of string (world)"); + + range = [tagger tokenRangeAtIndex: 11 unit: NSLinguisticTaggerUnitWord]; + PASS(range.location == 11 && range.length == 1, + "Token range for punctuation (!)"); + + // Test sentence range detection + text = @"Hello world! How are you?"; + [tagger setString: text]; + + range = [tagger sentenceRangeForRange: NSMakeRange(0, 0)]; + PASS(range.location == 0 && range.length > 0, + "Sentence range from beginning"); + + range = [tagger sentenceRangeForRange: NSMakeRange(15, 0)]; + PASS(range.location > 0, + "Sentence range for second sentence"); + + END_SET("NSLinguisticTagger tokenization"); + + START_SET("NSLinguisticTagger tagging"); + + schemes = [NSArray arrayWithObjects: + NSLinguisticTagSchemeTokenType, + NSLinguisticTagSchemeLexicalClass, + nil]; + tagger = AUTORELEASE([[NSLinguisticTagger alloc] initWithTagSchemes: schemes + options: 0]); + text = @"The quick brown fox."; + [tagger setString: text]; + + // Test tag at index + tag = [tagger tagAtIndex: 0 + unit: NSLinguisticTaggerUnitWord + scheme: NSLinguisticTagSchemeTokenType + tokenRange: NULL]; + PASS(tag != nil, "tagAtIndex:unit:scheme:tokenRange: returns tag"); + + // Test with token range + tag = [tagger tagAtIndex: 0 + unit: NSLinguisticTaggerUnitWord + scheme: NSLinguisticTagSchemeTokenType + tokenRange: &range]; + PASS(tag != nil && range.location != NSNotFound, + "tagAtIndex with tokenRange output works"); + + // Test tags in range + tags = [tagger tagsInRange: NSMakeRange(0, [text length]) + unit: NSLinguisticTaggerUnitWord + scheme: NSLinguisticTagSchemeTokenType + options: 0 + tokenRanges: NULL]; + PASS(tags != nil && [tags count] > 0, + "tagsInRange:unit:scheme:options:tokenRanges: returns tags"); + + // Test with token ranges output + ranges = nil; + tags = [tagger tagsInRange: NSMakeRange(0, [text length]) + unit: NSLinguisticTaggerUnitWord + scheme: NSLinguisticTagSchemeTokenType + options: 0 + tokenRanges: &ranges]; + PASS(ranges != nil && [ranges count] == [tags count], + "Token ranges output matches tag count"); + + // Test lexical class scheme + tag = [tagger tagAtIndex: 19 + unit: NSLinguisticTaggerUnitWord + scheme: NSLinguisticTagSchemeLexicalClass + tokenRange: NULL]; + PASS(tag != nil, "LexicalClass scheme returns tag"); + + END_SET("NSLinguisticTagger tagging"); + +#if __has_feature(blocks) + START_SET("NSLinguisticTagger enumeration"); + + schemes = [NSArray arrayWithObjects: + NSLinguisticTagSchemeTokenType, + NSLinguisticTagSchemeLexicalClass, + nil]; + tagger = AUTORELEASE([[NSLinguisticTagger alloc] initWithTagSchemes: schemes + options: 0]); + text = @"Hello world!"; + [tagger setString: text]; + + enumerationCount = 0; + [tagger enumerateTagsInRange: NSMakeRange(0, [text length]) + unit: NSLinguisticTaggerUnitWord + scheme: NSLinguisticTagSchemeTokenType + options: 0 + usingBlock: ^(NSLinguisticTag t, NSRange r, BOOL *stop) { + enumerationCount++; + }]; + PASS(enumerationCount > 0, "Enumeration with block works"); + + // Test enumeration with options + enumerationCount = 0; + [tagger enumerateTagsInRange: NSMakeRange(0, [text length]) + unit: NSLinguisticTaggerUnitWord + scheme: NSLinguisticTagSchemeTokenType + options: NSLinguisticTaggerOmitPunctuation + usingBlock: ^(NSLinguisticTag t, NSRange r, BOOL *stop) { + enumerationCount++; + }]; + PASS(enumerationCount >= 2, "Enumeration with OmitPunctuation works"); + + // Test enumeration stop + enumerationCount = 0; + [tagger enumerateTagsInRange: NSMakeRange(0, [text length]) + unit: NSLinguisticTaggerUnitWord + scheme: NSLinguisticTagSchemeTokenType + options: 0 + usingBlock: ^(NSLinguisticTag t, NSRange r, BOOL *stop) { + enumerationCount++; + *stop = YES; + }]; + PASS(enumerationCount == 1, "Enumeration stops when stop is set"); + + END_SET("NSLinguisticTagger enumeration"); +#endif + + START_SET("NSLinguisticTagger class methods"); + + text = @"The quick brown fox."; + range = NSMakeRange(0, [text length]); + + // Test class method for single tag + tag = [NSLinguisticTagger tagForString: text + atIndex: 0 + unit: NSLinguisticTaggerUnitWord + scheme: NSLinguisticTagSchemeTokenType + orthography: nil + tokenRange: NULL]; + PASS(tag != nil, "Class method tagForString:atIndex:... works"); + + // Test class method for tags array + tags = [NSLinguisticTagger tagsForString: text + range: range + unit: NSLinguisticTaggerUnitWord + scheme: NSLinguisticTagSchemeTokenType + options: 0 + orthography: nil + tokenRanges: NULL]; + PASS(tags != nil && [tags count] > 0, + "Class method tagsForString:range:... works"); + +#if __has_feature(blocks) + // Test class enumeration method + enumerationCount = 0; + [NSLinguisticTagger enumerateTagsForString: text + range: range + unit: NSLinguisticTaggerUnitWord + scheme: NSLinguisticTagSchemeTokenType + options: 0 + orthography: nil + usingBlock: ^(NSLinguisticTag t, NSRange r, BOOL *stop) { + enumerationCount++; + }]; + PASS(enumerationCount > 0, "Class enumeration method works"); +#endif + + END_SET("NSLinguisticTagger class methods"); + + START_SET("NSLinguisticTagger orthography"); + + schemes = [NSArray arrayWithObjects: + NSLinguisticTagSchemeTokenType, + NSLinguisticTagSchemeLexicalClass, + nil]; + tagger = AUTORELEASE([[NSLinguisticTagger alloc] initWithTagSchemes: schemes + options: 0]); + text = @"Hello world!"; + [tagger setString: text]; + + // Test orthography setting + orthography = [NSOrthography orthographyWithDominantScript: @"Latn" + languageMap: [NSDictionary dictionaryWithObject: [NSArray arrayWithObject: @"en"] + forKey: @"Latn"]]; + if (orthography != nil) + { + [tagger setOrthography: orthography range: NSMakeRange(0, [text length])]; + + orthography = [tagger orthographyAtIndex: 0 effectiveRange: &effectiveRange]; + PASS(orthography != nil, "setOrthography:range: and orthographyAtIndex:effectiveRange: work"); + } + else + { + SKIP("NSOrthography creation not available"); + } + + END_SET("NSLinguisticTagger orthography"); + + START_SET("NSLinguisticTagger NSString category"); + + text = @"Hello world!"; + range = NSMakeRange(0, [text length]); + + // Test NSString category method + tags = [text linguisticTagsInRange: range + scheme: NSLinguisticTagSchemeTokenType + options: 0 + orthography: nil + tokenRanges: NULL]; + PASS(tags != nil && [tags count] > 0, + "NSString linguisticTagsInRange:... works"); + +#if __has_feature(blocks) + // Test NSString enumeration + enumerationCount = 0; + [text enumerateLinguisticTagsInRange: range + scheme: NSLinguisticTagSchemeTokenType + options: 0 + orthography: nil + usingBlock: ^(NSLinguisticTag t, NSRange r, NSRange s, BOOL *stop) { + enumerationCount++; + }]; + PASS(enumerationCount > 0, + "NSString enumerateLinguisticTagsInRange:... works"); +#endif + + END_SET("NSLinguisticTagger NSString category"); + + return 0; +} diff --git a/Tests/base/NSMassFormatter/TestInfo b/Tests/base/NSMassFormatter/TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSMassFormatter/advanced.m b/Tests/base/NSMassFormatter/advanced.m new file mode 100644 index 000000000..39a7a2d60 --- /dev/null +++ b/Tests/base/NSMassFormatter/advanced.m @@ -0,0 +1,233 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSMassFormatter advanced"); + + NSMassFormatter *formatter; + NSString *result; + NSString *result2; + NSMassFormatterUnit usedUnit; + + formatter = AUTORELEASE([[NSMassFormatter alloc] init]); + + // Test very large mass values + result = [formatter stringFromValue: 1000000.0 unit: NSMassFormatterUnitKilogram]; + PASS(result != nil && [result length] > 0, "Format 1 million kilograms"); + + result = [formatter stringFromValue: 10000.0 unit: NSMassFormatterUnitPound]; + PASS(result != nil && [result length] > 0, "Format 10000 pounds"); + + // Test very small values + result = [formatter stringFromValue: 0.001 unit: NSMassFormatterUnitGram]; + PASS(result != nil && [result length] > 0, "Format milligram-scale value"); + + result = [formatter stringFromValue: 0.001 unit: NSMassFormatterUnitKilogram]; + PASS(result != nil && [result length] > 0, "Format 1 gram as kilograms"); + + // Test negative values + result = [formatter stringFromValue: -50.0 unit: NSMassFormatterUnitKilogram]; + PASS(result != nil, "Handle negative mass value"); + + result = [formatter stringFromKilograms: -10.0]; + PASS(result != nil, "Handle negative kilograms"); + + // Test zero + result = [formatter stringFromValue: 0.0 unit: NSMassFormatterUnitKilogram]; + PASS(result != nil && [result length] > 0, "Format zero mass"); + + result = [formatter stringFromKilograms: 0.0]; + PASS(result != nil && [result length] > 0, "Format zero kilograms"); + + // Test conversion accuracy (1 kg ≈ 2.205 lb) + result = [formatter stringFromValue: 1.0 unit: NSMassFormatterUnitKilogram]; + result2 = [formatter stringFromValue: 2.205 unit: NSMassFormatterUnitPound]; + PASS(result != nil && result2 != nil, "Kilogram to pound conversion"); + + // Test ounce to pound conversion (16 oz = 1 lb) + result = [formatter stringFromValue: 16.0 unit: NSMassFormatterUnitOunce]; + result2 = [formatter stringFromValue: 1.0 unit: NSMassFormatterUnitPound]; + PASS(result != nil && result2 != nil, "Ounce to pound conversion"); + + // Test stone (1 stone = 14 pounds) + result = [formatter stringFromValue: 1.0 unit: NSMassFormatterUnitStone]; + result2 = [formatter stringFromValue: 14.0 unit: NSMassFormatterUnitPound]; + PASS(result != nil && result2 != nil, "Stone to pound conversion"); + + // Test person mass vs regular mass + [formatter setForPersonMassUse: YES]; + result = [formatter stringFromKilograms: 70.0]; // Average adult + [formatter setForPersonMassUse: NO]; + result2 = [formatter stringFromKilograms: 70.0]; + PASS(result != nil && result2 != nil, + "Person mass vs regular mass may use different units"); + + // Test typical person mass values + [formatter setForPersonMassUse: YES]; + result = [formatter stringFromKilograms: 50.0]; // Lighter person + PASS(result != nil, "Format lighter person mass"); + + result = [formatter stringFromKilograms: 70.0]; // Average person + PASS(result != nil, "Format average person mass"); + + result = [formatter stringFromKilograms: 100.0]; // Heavier person + PASS(result != nil, "Format heavier person mass"); + + result = [formatter stringFromKilograms: 3.5]; // Baby weight + PASS(result != nil, "Format baby mass"); + + // Test unit styles with different mass values + [formatter setForPersonMassUse: NO]; + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + result = [formatter stringFromKilograms: 5.5]; + PASS(result != nil && [result length] > 0, "Short style with kilograms"); + + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + result = [formatter stringFromKilograms: 5.5]; + PASS(result != nil && [result length] > 0, "Medium style with kilograms"); + + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + result = [formatter stringFromKilograms: 5.5]; + PASS(result != nil && [result length] > 0, "Long style with kilograms"); + + // Test all unit types + result = [formatter stringFromValue: 1000.0 unit: NSMassFormatterUnitGram]; + PASS(result != nil && [result length] > 0, "Format grams"); + + result = [formatter stringFromValue: 1.0 unit: NSMassFormatterUnitKilogram]; + PASS(result != nil && [result length] > 0, "Format kilograms"); + + result = [formatter stringFromValue: 16.0 unit: NSMassFormatterUnitOunce]; + PASS(result != nil && [result length] > 0, "Format ounces"); + + result = [formatter stringFromValue: 1.0 unit: NSMassFormatterUnitPound]; + PASS(result != nil && [result length] > 0, "Format pounds"); + + result = [formatter stringFromValue: 10.0 unit: NSMassFormatterUnitStone]; + PASS(result != nil && [result length] > 0, "Format stones"); + + // Test unit string extraction + result = [formatter unitStringFromValue: 1.0 unit: NSMassFormatterUnitGram]; + PASS(result != nil && [result length] > 0, "Extract gram unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSMassFormatterUnitKilogram]; + PASS(result != nil && [result length] > 0, "Extract kilogram unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSMassFormatterUnitOunce]; + PASS(result != nil && [result length] > 0, "Extract ounce unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSMassFormatterUnitPound]; + PASS(result != nil && [result length] > 0, "Extract pound unit string"); + + result = [formatter unitStringFromValue: 1.0 unit: NSMassFormatterUnitStone]; + PASS(result != nil && [result length] > 0, "Extract stone unit string"); + + // Test unitStringFromKilograms with used unit output + usedUnit = NSMassFormatterUnitKilogram; + result = [formatter unitStringFromKilograms: 5.0 usedUnit: &usedUnit]; + PASS(result != nil && [result length] > 0, "Extract unit string from kilograms"); + + result = [formatter unitStringFromKilograms: 0.5 usedUnit: &usedUnit]; + PASS(result != nil, "Extract unit string from fractional kilograms"); + + // Test with nil unit pointer + result = [formatter unitStringFromKilograms: 5.0 usedUnit: NULL]; + PASS(result != nil && [result length] > 0, + "unitStringFromKilograms works with NULL unit pointer"); + + // Test number formatter customization + NSNumberFormatter *numFormatter = AUTORELEASE([[NSNumberFormatter alloc] init]); + [numFormatter setMaximumFractionDigits: 2]; + [formatter setNumberFormatter: numFormatter]; + result = [formatter stringFromKilograms: 12.3456]; + PASS(result != nil, "Custom number formatter applied"); + + // Reset to default + [formatter setNumberFormatter: nil]; + PASS([formatter numberFormatter] != nil, + "Number formatter auto-creates when set to nil"); + + // Test with various NSNumber types + result = [formatter stringForObjectValue: [NSNumber numberWithDouble: 75]]; + PASS(result != nil && [result length] > 0, "Format integer NSNumber"); + + result = [formatter stringForObjectValue: [NSNumber numberWithDouble: 75.5]]; + PASS(result != nil && [result length] > 0, "Format floating-point NSNumber"); + + result = [formatter stringForObjectValue: [NSNumber numberWithDouble: 80.25]]; + PASS(result != nil && [result length] > 0, "Format double NSNumber"); + + // Test with nil and invalid objects + result = [formatter stringForObjectValue: nil]; + PASS(result != nil, "Handle nil object gracefully"); + + result = [formatter stringForObjectValue: @"not a number"]; + PASS(result != nil, "Handle non-number string"); + + result = [formatter stringForObjectValue: [NSDate date]]; + PASS(result != nil, "Handle invalid object type"); + + // Test fractional values + result = [formatter stringFromKilograms: 0.5]; + PASS(result != nil, "Format half kilogram"); + + result = [formatter stringFromKilograms: 1.25]; + PASS(result != nil, "Format 1.25 kilograms"); + + result = [formatter stringFromValue: 2.75 unit: NSMassFormatterUnitPound]; + PASS(result != nil, "Format fractional pounds"); + + // Test boundary between units + result = [formatter stringFromKilograms: 0.999]; + result2 = [formatter stringFromKilograms: 1.001]; + PASS(result != nil && result2 != nil, + "Format values at unit boundary"); + + // Test consistency across multiple calls + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + [formatter setForPersonMassUse: NO]; + result = [formatter stringFromKilograms: 25.5]; + result2 = [formatter stringFromKilograms: 25.5]; + PASS(result != nil && result2 != nil && [result isEqual: result2], + "Multiple calls produce consistent results"); + + // Test locale sensitivity (metric vs imperial) + NSLocale *usLocale = [NSLocale localeWithLocaleIdentifier: @"en_US"]; + [numFormatter setLocale: usLocale]; + [formatter setNumberFormatter: numFormatter]; + result = [formatter stringFromKilograms: 70.0]; + PASS(result != nil, "US locale formatting works"); + + NSLocale *ukLocale = [NSLocale localeWithLocaleIdentifier: @"en_GB"]; + [numFormatter setLocale: ukLocale]; + result = [formatter stringFromKilograms: 70.0]; + PASS(result != nil, "UK locale formatting works"); + + NSLocale *deLocale = [NSLocale localeWithLocaleIdentifier: @"de_DE"]; + [numFormatter setLocale: deLocale]; + result = [formatter stringFromKilograms: 70.0]; + PASS(result != nil, "German locale formatting works"); + + // Test parsing (if implemented) + id parsedValue = nil; + NSString *error = nil; + BOOL parsed = [formatter getObjectValue: &parsedValue + forString: @"5 kg" + errorDescription: &error]; + PASS(parsed == YES || parsedValue != nil || error != nil, + "Parsing returns some result"); + + parsed = [formatter getObjectValue: &parsedValue + forString: @"10.5 lb" + errorDescription: &error]; + PASS(parsed == YES || parsedValue != nil || error != nil, + "Parsing pounds returns some result"); + + END_SET("NSMassFormatter advanced"); + return 0; +} diff --git a/Tests/base/NSMassFormatter/basic.m b/Tests/base/NSMassFormatter/basic.m new file mode 100644 index 000000000..ac01d0111 --- /dev/null +++ b/Tests/base/NSMassFormatter/basic.m @@ -0,0 +1,102 @@ +#import "ObjectTesting.h" +#import +#import +#import + +int main() +{ + START_SET("NSMassFormatter basic"); + + NSMassFormatter *formatter; + NSString *result; + NSNumber *number; + + // Test instance creation + formatter = AUTORELEASE([[NSMassFormatter alloc] init]); + PASS(formatter != nil, "Can create NSMassFormatter instance"); + + // Test basic mass formatting + result = [formatter stringFromValue: 0.0 unit: NSMassFormatterUnitGram]; + PASS(result != nil && [result length] > 0, "Format 0 grams"); + + result = [formatter stringFromValue: 1.0 unit: NSMassFormatterUnitGram]; + PASS(result != nil && [result length] > 0, "Format 1 gram"); + + result = [formatter stringFromValue: 1000.0 unit: NSMassFormatterUnitGram]; + PASS(result != nil && [result length] > 0, "Format 1000 grams"); + + result = [formatter stringFromValue: 1.0 unit: NSMassFormatterUnitKilogram]; + PASS(result != nil && [result length] > 0, "Format 1 kilogram"); + + result = [formatter stringFromValue: 1.0 unit: NSMassFormatterUnitOunce]; + PASS(result != nil && [result length] > 0, "Format 1 ounce"); + + result = [formatter stringFromValue: 1.0 unit: NSMassFormatterUnitPound]; + PASS(result != nil && [result length] > 0, "Format 1 pound"); + + result = [formatter stringFromValue: 1.0 unit: NSMassFormatterUnitStone]; + PASS(result != nil && [result length] > 0, "Format 1 stone"); + + // Test stringFromKilograms: + result = [formatter stringFromKilograms: 1.0]; + PASS(result != nil && [result length] > 0, "stringFromKilograms: works"); + + result = [formatter stringFromKilograms: 0.5]; + PASS(result != nil && [result length] > 0, + "stringFromKilograms: with fractional value"); + + // Test unit styles + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + result = [formatter stringFromKilograms: 1.5]; + PASS(result != nil, "Short unit style works"); + + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + result = [formatter stringFromKilograms: 1.5]; + PASS(result != nil, "Medium unit style works"); + + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + result = [formatter stringFromKilograms: 1.5]; + PASS(result != nil, "Long unit style works"); + + // Test for person mass use + [formatter setForPersonMassUse: YES]; + result = [formatter stringFromKilograms: 70.0]; + PASS(result != nil, "Person mass formatting works"); + + [formatter setForPersonMassUse: NO]; + result = [formatter stringFromKilograms: 70.0]; + PASS(result != nil, "Non-person mass formatting works"); + + + // Test number formatter property + [formatter setNumberFormatter: nil]; + PASS([formatter numberFormatter] != nil, + "Number formatter is never nil (creates default)"); + + // Test stringForObjectValue: + number = [NSNumber numberWithDouble: 2.5]; + result = [formatter stringForObjectValue: number]; + PASS(result != nil && [result length] > 0, + "stringForObjectValue: works with NSNumber"); + + // Test unit conversion + result = [formatter unitStringFromValue: 1.0 unit: NSMassFormatterUnitKilogram]; + PASS(result != nil && [result length] > 0, "unitStringFromValue:unit: works"); + + result = [formatter unitStringFromKilograms: 1.0 + usedUnit: NULL]; + PASS(result != nil && [result length] > 0, + "unitStringFromKilograms:usedUnit: works"); + + // Test parsing + double value; + NSString *error = nil; + number = nil; + BOOL parsed = [formatter getObjectValue: &number + forString: @"1.5 kg" + errorDescription: &error]; + PASS(parsed || number != nil || error != nil, "Can parse mass string"); + + END_SET("NSMassFormatter basic"); + return 0; +} diff --git a/Tests/base/NSMassFormatter/encoding.TestInfo b/Tests/base/NSMassFormatter/encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSMassFormatter/encoding.m b/Tests/base/NSMassFormatter/encoding.m new file mode 100644 index 000000000..dc7800cb9 --- /dev/null +++ b/Tests/base/NSMassFormatter/encoding.m @@ -0,0 +1,56 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSMassFormatter encoding"); + + NSMassFormatter *formatter; + NSMassFormatter *decoded; + NSData *data; + NSString *result1; + NSString *result2; + NSNumberFormatter *nf; + + formatter = AUTORELEASE([[NSMassFormatter alloc] init]); + + // Configure the formatter + [formatter setForPersonMassUse: YES]; + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + + nf = AUTORELEASE([[NSNumberFormatter alloc] init]); + [nf setMaximumFractionDigits: 2]; + [formatter setNumberFormatter: nf]; + + // Encode the formatter + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSMassFormatter"); + + // Decode the formatter + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode NSMassFormatter"); + PASS([decoded isKindOfClass: [NSMassFormatter class]], + "Decoded object is NSMassFormatter"); + + // Verify properties are preserved + PASS([decoded isForPersonMassUse] == YES, + "forPersonMassUse preserved"); + PASS([decoded unitStyle] == NSFormattingUnitStyleShort, + "unitStyle preserved"); + PASS([decoded numberFormatter] != nil, + "numberFormatter preserved"); + + // Verify formatting behavior is consistent + result1 = [formatter stringFromKilograms: 75.5]; + result2 = [decoded stringFromKilograms: 75.5]; + PASS(result1 != nil && result2 != nil && + [result1 length] > 0 && [result2 length] > 0, + "Both formatters produce valid output"); + + END_SET("NSMassFormatter encoding"); + return 0; +} diff --git a/Tests/base/NSMassFormatter/format_validation.m b/Tests/base/NSMassFormatter/format_validation.m new file mode 100644 index 000000000..98e6c5d89 --- /dev/null +++ b/Tests/base/NSMassFormatter/format_validation.m @@ -0,0 +1,62 @@ +#import "ObjectTesting.h" +#import +#import + +int main() +{ + START_SET("NSMassFormatter format validation"); + + NSMassFormatter *formatter; + NSString *result; + + formatter = AUTORELEASE([[NSMassFormatter alloc] init]); + + // Test that format includes both number and unit + result = [formatter stringFromKilograms: 1.0]; + PASS([result rangeOfString: @"1"].location != NSNotFound && + ([result rangeOfString: @"kg"].location != NSNotFound || + [result rangeOfString: @"kilogram"].location != NSNotFound), + "1 kg format includes number and unit"); + + // Test gram formatting + result = [formatter stringFromValue: 500.0 unit: NSMassFormatterUnitGram]; + PASS([result rangeOfString: @"500"].location != NSNotFound && + ([result rangeOfString: @"g"].location != NSNotFound || + [result rangeOfString: @"gram"].location != NSNotFound), + "500 g format correct"); + + // Test pound formatting + result = [formatter stringFromValue: 10.0 unit: NSMassFormatterUnitPound]; + PASS([result rangeOfString: @"10"].location != NSNotFound && + ([result rangeOfString: @"lb"].location != NSNotFound || + [result rangeOfString: @"pound"].location != NSNotFound), + "10 lb format correct"); + + // Test unit style Short + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + result = [formatter stringFromKilograms: 2.5]; + PASS([result rangeOfString: @"2"].location != NSNotFound || + [result rangeOfString: @"3"].location != NSNotFound, + "Short style shows number"); + + // Test unit style Long includes full word + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + result = [formatter stringFromKilograms: 1.0]; + PASS([result rangeOfString: @"kilogram"].location != NSNotFound || + [result rangeOfString: @"kg"].location != NSNotFound, + "Long style shows unit name"); + + // Test zero handling + result = [formatter stringFromKilograms: 0.0]; + PASS([result rangeOfString: @"0"].location != NSNotFound, + "Zero kg shows 0"); + + // Test fractional values + result = [formatter stringFromKilograms: 1.5]; + PASS([result rangeOfString: @"1"].location != NSNotFound || + [result rangeOfString: @"2"].location != NSNotFound, + "1.5 kg formats correctly"); + + END_SET("NSMassFormatter format validation"); + return 0; +} diff --git a/Tests/base/NSMassFormatter/format_validation.m.TestInfo b/Tests/base/NSMassFormatter/format_validation.m.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSMassFormatter/macos_encoding.TestInfo b/Tests/base/NSMassFormatter/macos_encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSMassFormatter/macos_encoding.m b/Tests/base/NSMassFormatter/macos_encoding.m new file mode 100644 index 000000000..ff5023437 --- /dev/null +++ b/Tests/base/NSMassFormatter/macos_encoding.m @@ -0,0 +1,96 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import +#import +#import "../Shared/TestKeyedArchiver.h" + +int main() +{ + START_SET("NSMassFormatter macOS encoding compatibility"); + + NSMassFormatter *formatter; + NSMassFormatter *decoded; + NSData *data; + NSNumberFormatter *nf; + NSString *original; + NSString *afterDecode; + TestKeyedArchiver *archiver; + NSMutableData *mdata; + NSArray *keys; + NSString *key; + BOOL allHaveNSPrefix; + int i; + + formatter = AUTORELEASE([[NSMassFormatter alloc] init]); + + // Configure with properties + [formatter setForPersonMassUse: YES]; + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + + nf = AUTORELEASE([[NSNumberFormatter alloc] init]); + [nf setMaximumFractionDigits: 2]; + [formatter setNumberFormatter: nf]; + + // Encode using custom archiver to capture keys + mdata = [NSMutableData data]; + archiver = [[TestKeyedArchiver alloc] initForWritingWithMutableData: mdata]; + [archiver encodeObject: formatter forKey: @"root"]; + [archiver finishEncoding]; + + keys = [archiver capturedKeys]; + PASS(keys != nil && [keys count] > 0, "Captured encoding keys"); + + // Check that all keys use NS prefix (macOS convention) + allHaveNSPrefix = YES; + for (i = 0; i < [keys count]; i++) + { + key = [keys objectAtIndex: i]; + if (![key isEqualToString: @"root"] && + ![key hasPrefix: @"NS"] && + ![key hasPrefix: @"$"]) + { + allHaveNSPrefix = NO; + NSLog(@"Found non-NS key: %@", key); + break; + } + } + PASS(allHaveNSPrefix, "All keys use macOS naming convention (NS prefix)"); + + // Verify specific keys expected by macOS + PASS([keys containsObject: @"NS.numberFormatter"], + "Has NS.numberFormatter key (macOS convention)"); + PASS([keys containsObject: @"NS.unitOptions"], + "Has NS.unitOptions key (macOS convention)"); + + [archiver release]; + + // Encode and decode + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSMassFormatter"); + + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode with NSKeyedUnarchiver"); + PASS([decoded isKindOfClass: [NSMassFormatter class]], + "Decoded object is correct class"); + + // Verify properties survive round-trip + PASS([decoded isForPersonMassUse] == [formatter isForPersonMassUse], + "forPersonMassUse survives round-trip"); + PASS([decoded unitStyle] == [formatter unitStyle], + "unitStyle survives round-trip"); + PASS([decoded numberFormatter] != nil, + "numberFormatter survives round-trip"); + + // Verify formatting works after decode + original = [formatter stringFromKilograms: 75.5]; + afterDecode = [decoded stringFromKilograms: 75.5]; + PASS(original != nil && afterDecode != nil, + "Both formatters produce output"); + + END_SET("NSMassFormatter macOS encoding compatibility"); + return 0; +} diff --git a/Tests/base/NSMeasurementFormatter/TestInfo b/Tests/base/NSMeasurementFormatter/TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSMeasurementFormatter/advanced.m b/Tests/base/NSMeasurementFormatter/advanced.m new file mode 100644 index 000000000..22f7ae8e9 --- /dev/null +++ b/Tests/base/NSMeasurementFormatter/advanced.m @@ -0,0 +1,359 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSMeasurementFormatter advanced"); + + NSMeasurementFormatter *formatter; + NSString *result; + NSString *result2; + NSMeasurement *measurement; + NSUnit *unit; + + formatter = AUTORELEASE([[NSMeasurementFormatter alloc] init]); + + // Test length conversions + unit = [NSUnitLength meters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 1000.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 1000 meters"); + + unit = [NSUnitLength centimeters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 2.5 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 2.5 centimeters"); + + unit = [NSUnitLength millimeters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 150.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 150 millimeters"); + + unit = [NSUnitLength inches]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 12.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 12 inches"); + + unit = [NSUnitLength feet]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 6.5 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 6.5 feet"); + + unit = [NSUnitLength miles]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 26.2 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 26.2 miles (marathon)"); + + // Test mass measurements with various units + unit = [NSUnitMass grams]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 500.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 500 grams"); + + unit = [NSUnitMass milligrams]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 250.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 250 milligrams"); + + unit = [NSUnitMass ounces]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 16.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 16 ounces"); + + unit = [NSUnitMass pounds]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 150.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 150 pounds"); + + // Test temperature with various scales + unit = [NSUnitTemperature celsius]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 0.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 0°C (freezing point)"); + + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 100.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 100°C (boiling point)"); + + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: -40.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format -40°C (same as -40°F)"); + + unit = [NSUnitTemperature fahrenheit]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 32.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 32°F (freezing point)"); + + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 212.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 212°F (boiling point)"); + + unit = [NSUnitTemperature kelvin]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 273.15 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 273.15 K (freezing point)"); + + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 0.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 0 K (absolute zero)"); + + // Test speed measurements + unit = [NSUnitSpeed metersPerSecond]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 100.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 100 m/s"); + + unit = [NSUnitSpeed kilometersPerHour]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 120.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 120 km/h"); + + unit = [NSUnitSpeed milesPerHour]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 65.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 65 mph"); + + unit = [NSUnitSpeed knots]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 30.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 30 knots"); + + // Test volume measurements + unit = [NSUnitVolume liters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 5.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 5 liters"); + + unit = [NSUnitVolume milliliters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 250.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 250 milliliters"); + + unit = [NSUnitVolume gallons]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 10.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 10 gallons"); + + unit = [NSUnitVolume cubicMeters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 2.5 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 2.5 cubic meters"); + + // Test duration measurements + unit = [NSUnitDuration seconds]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 3600.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 3600 seconds"); + + unit = [NSUnitDuration minutes]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 90.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 90 minutes"); + + unit = [NSUnitDuration hours]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 24.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 24 hours"); + + // Test area measurements + unit = [NSUnitArea squareMeters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 100.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 100 square meters"); + + unit = [NSUnitArea squareKilometers]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 2.5 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 2.5 square kilometers"); + + unit = [NSUnitArea acres]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 40.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 40 acres"); + + // Test pressure measurements + unit = [NSUnitPressure newtonsPerMetersSquared]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 101325.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format atmospheric pressure in Pa"); + + unit = [NSUnitPressure bars]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 1.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 1 bar"); + + // Test energy measurements + unit = [NSUnitEnergy joules]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 1000.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 1000 joules"); + + unit = [NSUnitEnergy kilocalories]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 2000.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 2000 kcal"); + + // Test power measurements + unit = [NSUnitPower watts]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 100.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 100 watts"); + + unit = [NSUnitPower kilowatts]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 2.5 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format 2.5 kilowatts"); + + // Test unit styles with different measurements + unit = [NSUnitLength meters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 100.0 + unit: unit]); + + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Short unit style"); + + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Medium unit style"); + + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Long unit style"); + + // Test unit options + [formatter setUnitOptions: NSMeasurementFormatterUnitOptionsProvidedUnit]; + unit = [NSUnitLength meters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 5000.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Provided unit option (keep meters)"); + + [formatter setUnitOptions: NSMeasurementFormatterUnitOptionsNaturalScale]; + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Natural scale option (may convert to km)"); + + // Test with very small values + [formatter setUnitOptions: NSMeasurementFormatterUnitOptionsProvidedUnit]; + unit = [NSUnitLength meters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 0.001 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format very small measurement"); + + // Test with very large values + measurement = AUTORELEASE([[NSMeasurement alloc] + initWithDoubleValue: 1000000.0 unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format very large measurement"); + + // Test with negative values + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: -50.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format negative measurement"); + + // Test with zero + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 0.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Format zero measurement"); + + // Test number formatter customization + NSNumberFormatter *numFormatter + = AUTORELEASE([[NSNumberFormatter alloc] init]); + [numFormatter setMaximumFractionDigits: 2]; + [formatter setNumberFormatter: numFormatter]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 12.3456 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Custom number formatter applied"); + + // Reset to default + [formatter setNumberFormatter: nil]; + PASS([formatter numberFormatter] != nil, + "Number formatter auto-creates when set to nil"); + + // Test stringForObjectValue + unit = [NSUnitMass kilograms]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 75.0 + unit: unit]); + result = [formatter stringForObjectValue: measurement]; + PASS(result != nil && [result length] > 0, + "stringForObjectValue: works with NSMeasurement"); + + result = [formatter stringForObjectValue: nil]; + PASS(result != nil, "Handle nil object"); + + result = [formatter stringForObjectValue: @"not a measurement"]; + PASS(result != nil, "Handle non-measurement object"); + + // Test consistency + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + [formatter setUnitOptions: NSMeasurementFormatterUnitOptionsProvidedUnit]; + unit = [NSUnitLength kilometers]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 42.195 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + result2 = [formatter stringFromMeasurement: measurement]; + PASS(result != nil && result2 != nil && [result isEqual: result2], + "Multiple calls produce consistent results"); + + // Test locale sensitivity + NSLocale *usLocale = [NSLocale localeWithLocaleIdentifier: @"en_US"]; + [numFormatter setLocale: usLocale]; + [formatter setNumberFormatter: numFormatter]; + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "US locale formatting"); + + NSLocale *deLocale = [NSLocale localeWithLocaleIdentifier: @"de_DE"]; + [numFormatter setLocale: deLocale]; + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "German locale formatting"); + + END_SET("NSMeasurementFormatter advanced"); + return 0; +} diff --git a/Tests/base/NSMeasurementFormatter/basic.m b/Tests/base/NSMeasurementFormatter/basic.m new file mode 100644 index 000000000..b2796380e --- /dev/null +++ b/Tests/base/NSMeasurementFormatter/basic.m @@ -0,0 +1,116 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSMeasurementFormatter basic"); + + NSMeasurementFormatter *formatter; + NSString *result; + NSMeasurement *measurement; + NSUnit *unit; + + // Test instance creation + formatter = AUTORELEASE([[NSMeasurementFormatter alloc] init]); + PASS(formatter != nil, "Can create NSMeasurementFormatter instance"); + + // Test length measurements + unit = [NSUnitLength meters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 1.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil && [result length] > 0, "Format 1 meter"); + + unit = [NSUnitLength kilometers]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 5.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil && [result length] > 0, "Format 5 kilometers"); + + // Test mass measurements + unit = [NSUnitMass kilograms]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 2.5 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil && [result length] > 0, "Format 2.5 kilograms"); + + // Test unit styles + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Short unit style works"); + + [formatter setUnitStyle: NSFormattingUnitStyleMedium]; + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Medium unit style works"); + + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Long unit style works"); + + // Test unit options + [formatter setUnitOptions: NSMeasurementFormatterUnitOptionsProvidedUnit]; + unit = [NSUnitLength meters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 1000.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Provided unit option works"); + + [formatter setUnitOptions: NSMeasurementFormatterUnitOptionsNaturalScale]; + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil, "Natural scale option works"); + + // Test number formatter + [formatter setNumberFormatter: nil]; + PASS([formatter numberFormatter] != nil, + "Number formatter is never nil (creates default)"); + + // Test stringForObjectValue: + unit = [NSUnitLength meters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 10.0 + unit: unit]); + result = [formatter stringForObjectValue: measurement]; + PASS(result != nil && [result length] > 0, + "stringForObjectValue: works with NSMeasurement"); + + // Test temperature measurements + unit = [NSUnitTemperature celsius]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 25.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil && [result length] > 0, "Format temperature in Celsius"); + + // Test speed measurements + unit = [NSUnitSpeed metersPerSecond]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 10.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil && [result length] > 0, "Format speed in m/s"); + + // Test volume measurements + unit = [NSUnitVolume liters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 2.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil && [result length] > 0, "Format volume in liters"); + + // Test duration measurements + unit = [NSUnitDuration seconds]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 60.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil && [result length] > 0, "Format duration in seconds"); + + // Test area measurements + unit = [NSUnitArea squareMeters]; + measurement = AUTORELEASE([[NSMeasurement alloc] initWithDoubleValue: 100.0 + unit: unit]); + result = [formatter stringFromMeasurement: measurement]; + PASS(result != nil && [result length] > 0, "Format area in square meters"); + + END_SET("NSMeasurementFormatter basic"); + return 0; +} diff --git a/Tests/base/NSMeasurementFormatter/encoding.TestInfo b/Tests/base/NSMeasurementFormatter/encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSMeasurementFormatter/encoding.m b/Tests/base/NSMeasurementFormatter/encoding.m new file mode 100644 index 000000000..380896ee1 --- /dev/null +++ b/Tests/base/NSMeasurementFormatter/encoding.m @@ -0,0 +1,69 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import +#import +#import + +int main() +{ + START_SET("NSMeasurementFormatter encoding"); + + NSMeasurementFormatter *formatter; + NSMeasurementFormatter *decoded; + NSData *data; + NSString *result1; + NSString *result2; + NSMeasurement *measurement; + NSNumberFormatter *nf; + NSLocale *locale; + + formatter = AUTORELEASE([[NSMeasurementFormatter alloc] init]); + + // Configure the formatter + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + [formatter setUnitOptions: NSMeasurementFormatterUnitOptionsProvidedUnit]; + + locale = [NSLocale localeWithLocaleIdentifier: @"en_US"]; + [formatter setLocale: locale]; + + nf = AUTORELEASE([[NSNumberFormatter alloc] init]); + [nf setMaximumFractionDigits: 2]; + [formatter setNumberFormatter: nf]; + + // Encode the formatter + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSMeasurementFormatter"); + + // Decode the formatter + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode NSMeasurementFormatter"); + PASS([decoded isKindOfClass: [NSMeasurementFormatter class]], + "Decoded object is NSMeasurementFormatter"); + + // Verify properties are preserved + PASS([decoded unitStyle] == NSFormattingUnitStyleShort, + "unitStyle preserved"); + PASS([decoded unitOptions] == NSMeasurementFormatterUnitOptionsProvidedUnit, + "unitOptions preserved"); + PASS([decoded locale] != nil, + "locale preserved"); + PASS([decoded numberFormatter] != nil, + "numberFormatter preserved"); + + // Verify formatting behavior is consistent + measurement = [[NSMeasurement alloc] initWithDoubleValue: 5.0 + unit: [NSUnitLength kilometers]]; + result1 = [formatter stringFromMeasurement: measurement]; + result2 = [decoded stringFromMeasurement: measurement]; + RELEASE(measurement); + PASS(result1 != nil && result2 != nil && + [result1 length] > 0 && [result2 length] > 0, + "Both formatters produce valid output"); + + END_SET("NSMeasurementFormatter encoding"); + return 0; +} diff --git a/Tests/base/NSMeasurementFormatter/format_validation.m b/Tests/base/NSMeasurementFormatter/format_validation.m new file mode 100644 index 000000000..e2e8665dd --- /dev/null +++ b/Tests/base/NSMeasurementFormatter/format_validation.m @@ -0,0 +1,81 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import + +int main() +{ + START_SET("NSMeasurementFormatter format validation"); + + NSMeasurementFormatter *formatter; + NSString *result; + NSMeasurement *measurement; + + formatter = AUTORELEASE([[NSMeasurementFormatter alloc] init]); + + // Test length measurement + measurement = [[NSMeasurement alloc] initWithDoubleValue: 5.0 + unit: [NSUnitLength meters]]; + AUTORELEASE(measurement); + result = [formatter stringFromMeasurement: measurement]; + PASS([result rangeOfString: @"5"].location != NSNotFound && + ([result rangeOfString: @"m"].location != NSNotFound || + [result rangeOfString: @"meter"].location != NSNotFound), + "5 meters format includes number and unit"); + + // Test mass measurement + measurement = [[NSMeasurement alloc] initWithDoubleValue: 2.5 + unit: [NSUnitMass kilograms]]; + AUTORELEASE(measurement); + result = [formatter stringFromMeasurement: measurement]; + PASS([result rangeOfString: @"2"].location != NSNotFound && + ([result rangeOfString: @"kg"].location != NSNotFound || + [result rangeOfString: @"kilogram"].location != NSNotFound), + "2.5 kg format correct"); + + // Test temperature measurement + measurement = [[NSMeasurement alloc] initWithDoubleValue: 25.0 + unit: [NSUnitTemperature celsius]]; + AUTORELEASE(measurement); + result = [formatter stringFromMeasurement: measurement]; + PASS([result rangeOfString: @"25"].location != NSNotFound && + ([result rangeOfString: @"°C"].location != NSNotFound || + [result rangeOfString: @"C"].location != NSNotFound || + [result rangeOfString: @"celsius"].location != NSNotFound), + "25°C format correct"); + + // Test unit style variations + measurement = [[NSMeasurement alloc] initWithDoubleValue: 100.0 + unit: [NSUnitLength meters]]; + AUTORELEASE(measurement); + + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + NSString *shortResult = [formatter stringFromMeasurement: measurement]; + + [formatter setUnitStyle: NSFormattingUnitStyleLong]; + NSString *longResult = [formatter stringFromMeasurement: measurement]; + + PASS(![shortResult isEqualToString: longResult] || + [shortResult length] > 0, + "Different unit styles produce different or valid results"); + + // Test zero value + measurement = [[NSMeasurement alloc] initWithDoubleValue: 0.0 + unit: [NSUnitLength meters]]; + AUTORELEASE(measurement); + result = [formatter stringFromMeasurement: measurement]; + PASS([result rangeOfString: @"0"].location != NSNotFound, + "Zero measurement shows 0"); + + // Test fractional values + measurement = [[NSMeasurement alloc] initWithDoubleValue: 1.234 + unit: [NSUnitLength meters]]; + AUTORELEASE(measurement); + result = [formatter stringFromMeasurement: measurement]; + PASS([result rangeOfString: @"1"].location != NSNotFound, + "Fractional measurement formats"); + + END_SET("NSMeasurementFormatter format validation"); + return 0; +} diff --git a/Tests/base/NSMeasurementFormatter/format_validation.m.TestInfo b/Tests/base/NSMeasurementFormatter/format_validation.m.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSMeasurementFormatter/macos_encoding.TestInfo b/Tests/base/NSMeasurementFormatter/macos_encoding.TestInfo new file mode 100644 index 000000000..e69de29bb diff --git a/Tests/base/NSMeasurementFormatter/macos_encoding.m b/Tests/base/NSMeasurementFormatter/macos_encoding.m new file mode 100644 index 000000000..94cf2d709 --- /dev/null +++ b/Tests/base/NSMeasurementFormatter/macos_encoding.m @@ -0,0 +1,103 @@ +#import "ObjectTesting.h" +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import "../Shared/TestKeyedArchiver.h" + +int main() +{ + START_SET("NSMeasurementFormatter macOS encoding compatibility"); + + NSMeasurementFormatter *formatter; + NSMeasurementFormatter *decoded; + NSData *data; + NSNumberFormatter *nf; + NSLocale *locale; + NSMeasurement *measurement; + NSString *original; + NSString *afterDecode; + TestKeyedArchiver *archiver; + NSMutableData *mdata; + NSArray *keys; + NSString *key; + BOOL allHaveNSPrefix; + int i; + + formatter = AUTORELEASE([[NSMeasurementFormatter alloc] init]); + + // Configure with properties + [formatter setUnitStyle: NSFormattingUnitStyleShort]; + [formatter setUnitOptions: NSMeasurementFormatterUnitOptionsProvidedUnit]; + + locale = [NSLocale localeWithLocaleIdentifier: @"en_US"]; + [formatter setLocale: locale]; + + nf = AUTORELEASE([[NSNumberFormatter alloc] init]); + [nf setMaximumFractionDigits: 2]; + [formatter setNumberFormatter: nf]; + + // Encode using custom archiver to capture keys + mdata = [NSMutableData data]; + archiver = [[TestKeyedArchiver alloc] initForWritingWithMutableData: mdata]; + [archiver encodeObject: formatter forKey: @"root"]; + [archiver finishEncoding]; + + keys = [archiver capturedKeys]; + PASS(keys != nil && [keys count] > 0, "Captured encoding keys"); + + // Check that all keys use NS prefix (macOS convention) + allHaveNSPrefix = YES; + for (i = 0; i < [keys count]; i++) + { + key = [keys objectAtIndex: i]; + if (![key isEqualToString: @"root"] && + ![key hasPrefix: @"NS"] && + ![key hasPrefix: @"$"]) + { + allHaveNSPrefix = NO; + NSLog(@"Found non-NS key: %@", key); + break; + } + } + PASS(allHaveNSPrefix, "All keys use macOS naming convention (NS prefix)"); + + [archiver release]; + + // Encode and decode + data = [NSKeyedArchiver archivedDataWithRootObject: formatter]; + PASS(data != nil && [data length] > 0, "Can encode NSMeasurementFormatter"); + + decoded = [NSKeyedUnarchiver unarchiveObjectWithData: data]; + PASS(decoded != nil, "Can decode with NSKeyedUnarchiver"); + PASS([decoded isKindOfClass: [NSMeasurementFormatter class]], + "Decoded object is correct class"); + + // Verify properties survive round-trip + PASS([decoded unitStyle] == [formatter unitStyle], + "unitStyle survives round-trip"); + PASS([decoded unitOptions] == [formatter unitOptions], + "unitOptions survives round-trip"); + PASS([decoded locale] != nil, + "locale survives round-trip"); + PASS([decoded numberFormatter] != nil, + "numberFormatter survives round-trip"); + + // Verify formatting works after decode + measurement = [[NSMeasurement alloc] initWithDoubleValue: 5.0 + unit: [NSUnitLength kilometers]]; + original = [formatter stringFromMeasurement: measurement]; + afterDecode = [decoded stringFromMeasurement: measurement]; + RELEASE(measurement); + PASS(original != nil && afterDecode != nil, + "Both formatters produce output"); + + END_SET("NSMeasurementFormatter macOS encoding compatibility"); + return 0; +} diff --git a/Tests/base/Shared/TestKeyedArchiver.h b/Tests/base/Shared/TestKeyedArchiver.h new file mode 100644 index 000000000..6e49d637d --- /dev/null +++ b/Tests/base/Shared/TestKeyedArchiver.h @@ -0,0 +1,97 @@ +#import +#import +#import + +@interface TestKeyedArchiver : NSKeyedArchiver +{ + NSMutableArray *_keys; +} +- (NSArray *) capturedKeys; +@end + +@implementation TestKeyedArchiver +- (id) init +{ + self = [super init]; + if (self != nil) + { + _keys = [[NSMutableArray alloc] init]; + } + return self; +} + +- (id) initForWritingWithMutableData: (NSMutableData *)data +{ + self = [super initForWritingWithMutableData: data]; + if (self != nil) + { + _keys = [[NSMutableArray alloc] init]; + } + return self; +} + +- (void) dealloc +{ + [_keys release]; + [super dealloc]; +} + +- (void) encodeObject: (id)object forKey: (NSString *)key +{ + if (key != nil) + { + [_keys addObject: key]; + } + [super encodeObject: object forKey: key]; +} + +- (void) encodeInt: (int)value forKey: (NSString *)key +{ + if (key != nil) + { + [_keys addObject: key]; + } + [super encodeInt: value forKey: key]; +} + +- (void) encodeInteger: (NSInteger)value forKey: (NSString *)key +{ + if (key != nil) + { + [_keys addObject: key]; + } + [super encodeInteger: value forKey: key]; +} + +- (void) encodeBool: (BOOL)value forKey: (NSString *)key +{ + if (key != nil) + { + [_keys addObject: key]; + } + [super encodeBool: value forKey: key]; +} + +- (void) encodeDouble: (double)value forKey: (NSString *)key +{ + if (key != nil) + { + [_keys addObject: key]; + } + [super encodeDouble: value forKey: key]; +} + +- (void) encodeInt64: (int64_t)value forKey: (NSString *)key +{ + if (key != nil) + { + [_keys addObject: key]; + } + [super encodeInt64: value forKey: key]; +} + +- (NSArray *) capturedKeys +{ + return _keys; +} +@end