mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
* 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:
parent
413c44d80a
commit
65265d2ea7
3 changed files with 25 additions and 3 deletions
|
@ -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>
|
2003-09-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/Unicode.m: Fix minor errors in utf8 handling.
|
* Source/Unicode.m: Fix minor errors in utf8 handling.
|
||||||
|
|
|
@ -202,13 +202,18 @@ GS_EXPORT BOOL GSDebugSet(NSString *level);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
GS_EXPORT NSArray *NSStandardLibraryPaths();
|
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 *GetEncodingName(NSStringEncoding availableEncodingValue);
|
||||||
GS_EXPORT NSString *GSEncodingName(NSStringEncoding availableEncodingValue);
|
GS_EXPORT NSString *GSEncodingName(NSStringEncoding availableEncodingValue);
|
||||||
|
|
||||||
GS_EXPORT NSMutableDictionary *GSCurrentThreadDictionary();
|
GS_EXPORT NSMutableDictionary *GSCurrentThreadDictionary();
|
||||||
|
|
||||||
GS_EXPORT NSString *GSDebugMethodMsg(id obj, SEL sel, const char *file, int line, NSString *fmt);
|
GS_EXPORT NSString *GSDebugMethodMsg(id obj, SEL sel, const char *file,
|
||||||
GS_EXPORT NSString *GSDebugFunctionMsg(const char *func, const char *file, int line, NSString *fmt);
|
int line, NSString *fmt);
|
||||||
|
GS_EXPORT NSString *GSDebugFunctionMsg(const char *func, const char *file,
|
||||||
|
int line, NSString *fmt);
|
||||||
|
|
||||||
#endif /* NexT_FOUNDATION_LIB */
|
#endif /* NexT_FOUNDATION_LIB */
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,18 @@ NSMutableDictionary *GSCurrentThreadDictionary()
|
||||||
|
|
||||||
NSArray *NSStandardLibraryPaths()
|
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
|
// Defined in NSDebug.m
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue