* Source/Additions/GSCompatibility.h

* Source/Additions/GSCompatibility.m
        (NSDecimalFromComponents): Added compatibility function.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17656 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2003-09-11 16:59:45 +00:00
parent eaee725163
commit 1b3295f48d
3 changed files with 25 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2003-09-11 Philip Moetteli <philip.moetteli@tele2.ch>
* Source/Additions/GSCompatibility.h
* Source/Additions/GSCompatibility.m
(NSDecimalFromComponents): Added compatibility function.
2003-09-11 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Unicode.m: Fix minor errors in utf8 handling.

View file

@ -202,13 +202,18 @@ GS_EXPORT BOOL GSDebugSet(NSString *level);
*/
GS_EXPORT NSArray *NSStandardLibraryPaths();
GS_EXPORT void NSDecimalFromComponents(NSDecimal *result,
unsigned long long mantissa,
short exponent, BOOL negative);
GS_EXPORT NSString *GetEncodingName(NSStringEncoding availableEncodingValue);
GS_EXPORT NSString *GSEncodingName(NSStringEncoding availableEncodingValue);
GS_EXPORT NSMutableDictionary *GSCurrentThreadDictionary();
GS_EXPORT NSString *GSDebugMethodMsg(id obj, SEL sel, const char *file, int line, NSString *fmt);
GS_EXPORT NSString *GSDebugFunctionMsg(const char *func, const char *file, int line, NSString *fmt);
GS_EXPORT NSString *GSDebugMethodMsg(id obj, SEL sel, const char *file,
int line, NSString *fmt);
GS_EXPORT NSString *GSDebugFunctionMsg(const char *func, const char *file,
int line, NSString *fmt);
#endif /* NexT_FOUNDATION_LIB */

View file

@ -49,7 +49,18 @@ NSMutableDictionary *GSCurrentThreadDictionary()
NSArray *NSStandardLibraryPaths()
{
return NSSearchPathForDirectoriesInDomains(NSAllLibrariesDirectory, NSAllDomainsMask, YES);
return NSSearchPathForDirectoriesInDomains(NSAllLibrariesDirectory,
NSAllDomainsMask, YES);
}
// Defined in NSDecimal.m
void NSDecimalFromComponents(NSDecimal *result,
unsigned long long mantissa,
short exponent, BOOL negative)
{
*result = [[NSDecimalNumber decimalNumberWithMantissa:mantissa
exponent:exponent
isNegative:negative] decimalValue];
}
// Defined in NSDebug.m