* Headers/Additions/GNUstepBase/GSCategories.h:

* Source/Additions/GSCompatibility.m (GSCurrentThread) Implement
        and declare for non *-gnu-*.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18663 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2004-02-25 13:57:59 +00:00
parent 6d8828396e
commit 25e91f01c9
3 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-02-25 David Ayers <d.ayers@inode.at>
* Headers/Additions/GNUstepBase/GSCategories.h:
* Source/Additions/GSCompatibility.m (GSCurrentThread) Implement
and declare for non *-gnu-*.
2004-02-24 Fred Kiefer <FredKiefer@gmx.de>
* Headers/Foundation/NSDictionary.h:

View file

@ -310,6 +310,7 @@ GS_EXPORT BOOL GSDebugSet(NSString *level);
GS_EXPORT NSString *GetEncodingName(NSStringEncoding availableEncodingValue);
GS_EXPORT NSString *GSEncodingName(NSStringEncoding availableEncodingValue);
GS_EXPORT NSThread *GSCurrentThread(void);
GS_EXPORT NSMutableDictionary *GSCurrentThreadDictionary(void);
GS_EXPORT NSString *GSDebugMethodMsg(id obj, SEL sel, const char *file,

View file

@ -38,6 +38,11 @@ NSString *GSEncodingName(NSStringEncoding availableEncodingValue)
return (NSString *)CFStringGetNameOfEncoding(CFStringConvertNSStringEncodingToEncoding(availableEncodingValue));
}
NSThread *GSCurrentThread()
{
return [NSThread currentThread];
}
NSMutableDictionary *GSCurrentThreadDictionary()
{
return [[NSThread currentThread] threadDictionary];