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:
Richard Frith-MacDonald 2010-02-18 16:18:54 +00:00
parent dc0c550db8
commit 85760d2563
17 changed files with 671 additions and 327 deletions

View file

@ -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