mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
move a bit more stuff into additions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29666 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dc0c550db8
commit
85760d2563
17 changed files with 671 additions and 327 deletions
|
@ -1,21 +1,21 @@
|
|||
#define INTEGER_MACRO(type, name, ignored) \
|
||||
- (type) name ## Value\
|
||||
{\
|
||||
return (type)VALUE;\
|
||||
return (type)VALUE;\
|
||||
}
|
||||
#include "GSNumberTypes.h"
|
||||
- (const char *)objCType
|
||||
- (const char *) objCType
|
||||
{
|
||||
return @encode(typeof(VALUE));
|
||||
return @encode(typeof(VALUE));
|
||||
}
|
||||
- (NSString*)descriptionWithLocale: (id)aLocale
|
||||
- (NSString*) descriptionWithLocale: (id)aLocale
|
||||
{
|
||||
return [[[NSString alloc] initWithFormat: FORMAT
|
||||
locale: aLocale, VALUE] autorelease];
|
||||
return [[[NSString alloc] initWithFormat: FORMAT
|
||||
locale: aLocale, VALUE] autorelease];
|
||||
}
|
||||
- (void)getValue: (void*)buffer
|
||||
- (void) getValue: (void*)buffer
|
||||
{
|
||||
typeof(VALUE) *ptr = buffer;
|
||||
*ptr = VALUE;
|
||||
typeof(VALUE) *ptr = buffer;
|
||||
*ptr = VALUE;
|
||||
}
|
||||
#undef FORMAT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue