mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
* Headers/gnustep/base/GSObjCRuntime.h
* Source/Additions/GSObjCRuntime.m : White space patch to better conform with GNU coding standards and improve readability. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16878 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0e59d4552d
commit
2fd808651a
3 changed files with 73 additions and 44 deletions
|
@ -53,7 +53,7 @@
|
|||
/** Deprecated ... use GSObjCFindVariable() */
|
||||
BOOL
|
||||
GSFindInstanceVariable(id obj, const char *name,
|
||||
const char **type, unsigned int *size, int *offset)
|
||||
const char **type, unsigned int *size, int *offset)
|
||||
{
|
||||
return GSObjCFindVariable(obj, name, type, size, offset);
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ GSFindInstanceVariable(id obj, const char *name,
|
|||
*/
|
||||
BOOL
|
||||
GSObjCFindVariable(id obj, const char *name,
|
||||
const char **type, unsigned int *size, int *offset)
|
||||
const char **type, unsigned int *size, int *offset)
|
||||
{
|
||||
Class class;
|
||||
struct objc_ivar_list *ivars;
|
||||
|
@ -114,7 +114,7 @@ GSObjCFindVariable(id obj, const char *name,
|
|||
* If obj is a class, this returns the class methods.<br />
|
||||
* Returns nil if obj is nil.
|
||||
*/
|
||||
NSArray*
|
||||
NSArray *
|
||||
GSObjCMethodNames(id obj)
|
||||
{
|
||||
NSMutableSet *set;
|
||||
|
@ -190,7 +190,7 @@ GSObjCMethodNames(id obj)
|
|||
* belong to the class of obj or one of its superclasses.<br />
|
||||
* Returns nil if obj is nil.
|
||||
*/
|
||||
NSArray*
|
||||
NSArray *
|
||||
GSObjCVariableNames(id obj)
|
||||
{
|
||||
NSMutableArray *array;
|
||||
|
@ -283,7 +283,7 @@ ObjcRuntimeUtilities.m by Nicola Pero
|
|||
* <p>The iVars dictionary lists the instance variable names and their types.
|
||||
* </p>
|
||||
*/
|
||||
NSValue*
|
||||
NSValue *
|
||||
GSObjCMakeClass(NSString *name, NSString *superName, NSDictionary *iVars)
|
||||
{
|
||||
Class newClass;
|
||||
|
@ -838,7 +838,7 @@ GSObjCAddClassBehavior(Class receiver, Class behavior)
|
|||
/** Deprecated ... use GSObjCGetValue() */
|
||||
id
|
||||
GSGetValue(NSObject *self, NSString *key, SEL sel,
|
||||
const char *type, unsigned size, int offset)
|
||||
const char *type, unsigned size, int offset)
|
||||
{
|
||||
return GSObjCGetValue(self, key, sel, type, size, offset);
|
||||
}
|
||||
|
@ -854,7 +854,7 @@ GSGetValue(NSObject *self, NSString *key, SEL sel,
|
|||
*/
|
||||
id
|
||||
GSObjCGetValue(NSObject *self, NSString *key, SEL sel,
|
||||
const char *type, unsigned size, int offset)
|
||||
const char *type, unsigned size, int offset)
|
||||
{
|
||||
if (sel != 0)
|
||||
{
|
||||
|
@ -1155,7 +1155,7 @@ GSObjCGetValue(NSObject *self, NSString *key, SEL sel,
|
|||
/** Deprecated ... use GSObjCSetValue() */
|
||||
void
|
||||
GSSetValue(NSObject *self, NSString *key, id val, SEL sel,
|
||||
const char *type, unsigned size, int offset)
|
||||
const char *type, unsigned size, int offset)
|
||||
{
|
||||
GSObjCSetValue(self, key, val, sel, type, size, offset);
|
||||
}
|
||||
|
@ -1171,7 +1171,7 @@ GSSetValue(NSObject *self, NSString *key, id val, SEL sel,
|
|||
*/
|
||||
void
|
||||
GSObjCSetValue(NSObject *self, NSString *key, id val, SEL sel,
|
||||
const char *type, unsigned size, int offset)
|
||||
const char *type, unsigned size, int offset)
|
||||
{
|
||||
static NSNull *null = nil;
|
||||
|
||||
|
@ -1535,10 +1535,10 @@ LPTSTR GetErrorMsg(DWORD msgId)
|
|||
}
|
||||
#else
|
||||
#ifndef HAVE_STRERROR
|
||||
const char*
|
||||
const char *
|
||||
strerror(int eno)
|
||||
{
|
||||
extern char* sys_errlist[];
|
||||
extern char *sys_errlist[];
|
||||
extern int sys_nerr;
|
||||
|
||||
if (eno < 0 || eno >= sys_nerr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue