mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-01 20:40:53 +00:00
Wrap deprecated API in NO_DEPRICATED macro.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16880 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2fd808651a
commit
c4710ce4f0
2 changed files with 54 additions and 48 deletions
|
@ -3,6 +3,7 @@
|
||||||
* Headers/gnustep/base/GSObjCRuntime.h
|
* Headers/gnustep/base/GSObjCRuntime.h
|
||||||
* Source/Additions/GSObjCRuntime.m : White space patch to better
|
* Source/Additions/GSObjCRuntime.m : White space patch to better
|
||||||
conform with GNU coding standards and improve readability.
|
conform with GNU coding standards and improve readability.
|
||||||
|
Wrap deprecated API in NO_DEPRICATED macro.
|
||||||
|
|
||||||
2003-06-06 David Ayers <d.ayers@inode.at>
|
2003-06-06 David Ayers <d.ayers@inode.at>
|
||||||
|
|
||||||
|
|
|
@ -111,27 +111,6 @@ GS_EXPORT void
|
||||||
GSObjCSetValue(NSObject *self, NSString *key, id val, SEL sel,
|
GSObjCSetValue(NSObject *self, NSString *key, id val, SEL sel,
|
||||||
const char *type, unsigned size, int offset);
|
const char *type, unsigned size, int offset);
|
||||||
|
|
||||||
/*
|
|
||||||
* The next five are old (deprecated) names for the same thing.
|
|
||||||
*/
|
|
||||||
GS_EXPORT BOOL
|
|
||||||
GSFindInstanceVariable(id obj, const char *name,
|
|
||||||
const char **type, unsigned int *size, int *offset);
|
|
||||||
|
|
||||||
GS_EXPORT void
|
|
||||||
GSGetVariable(id obj, int offset, unsigned int size, void *data);
|
|
||||||
|
|
||||||
GS_EXPORT void
|
|
||||||
GSSetVariable(id obj, int offset, unsigned int size, const void *data);
|
|
||||||
|
|
||||||
GS_EXPORT id
|
|
||||||
GSGetValue(NSObject *self, NSString *key, SEL sel,
|
|
||||||
const char *type, unsigned size, int offset);
|
|
||||||
|
|
||||||
GS_EXPORT void
|
|
||||||
GSSetValue(NSObject *self, NSString *key, id val, SEL sel,
|
|
||||||
const char *type, unsigned size, int offset);
|
|
||||||
|
|
||||||
#include <gnustep/base/objc-gnu2next.h>
|
#include <gnustep/base/objc-gnu2next.h>
|
||||||
|
|
||||||
#define GS_STATIC_INLINE static inline
|
#define GS_STATIC_INLINE static inline
|
||||||
|
@ -174,32 +153,6 @@ GSObjCIsKindOf(Class this, Class other)
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ## deprecated ##
|
|
||||||
*/
|
|
||||||
GS_STATIC_INLINE const char*
|
|
||||||
GSObjCName(Class this)
|
|
||||||
{
|
|
||||||
return class_get_class_name(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** ## deprecated ##
|
|
||||||
*/
|
|
||||||
GS_STATIC_INLINE const char*
|
|
||||||
GSObjCSelectorName(SEL this)
|
|
||||||
{
|
|
||||||
if (this == 0)
|
|
||||||
return 0;
|
|
||||||
return sel_get_name(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** ## deprecated ##
|
|
||||||
*/
|
|
||||||
GS_STATIC_INLINE const char*
|
|
||||||
GSObjCSelectorTypes(SEL this)
|
|
||||||
{
|
|
||||||
return sel_get_type(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given a class name, return the corresponding class or
|
* Given a class name, return the corresponding class or
|
||||||
* a nul pointer if the class cannot be found. <br />
|
* a nul pointer if the class cannot be found. <br />
|
||||||
|
@ -346,6 +299,58 @@ GSLastErrorStr(long error_id);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef NO_DEPRECATED
|
||||||
|
/*
|
||||||
|
* The next five are old (deprecated) names for the same thing.
|
||||||
|
*/
|
||||||
|
GS_EXPORT BOOL
|
||||||
|
GSFindInstanceVariable(id obj, const char *name,
|
||||||
|
const char **type, unsigned int *size, int *offset);
|
||||||
|
|
||||||
|
GS_EXPORT void
|
||||||
|
GSGetVariable(id obj, int offset, unsigned int size, void *data);
|
||||||
|
|
||||||
|
GS_EXPORT void
|
||||||
|
GSSetVariable(id obj, int offset, unsigned int size, const void *data);
|
||||||
|
|
||||||
|
GS_EXPORT id
|
||||||
|
GSGetValue(NSObject *self, NSString *key, SEL sel,
|
||||||
|
const char *type, unsigned size, int offset);
|
||||||
|
|
||||||
|
GS_EXPORT void
|
||||||
|
GSSetValue(NSObject *self, NSString *key, id val, SEL sel,
|
||||||
|
const char *type, unsigned size, int offset);
|
||||||
|
|
||||||
|
/** ## deprecated ##
|
||||||
|
*/
|
||||||
|
GS_STATIC_INLINE const char*
|
||||||
|
GSObjCName(Class this)
|
||||||
|
{
|
||||||
|
return class_get_class_name(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** ## deprecated ##
|
||||||
|
*/
|
||||||
|
GS_STATIC_INLINE const char*
|
||||||
|
GSObjCSelectorName(SEL this)
|
||||||
|
{
|
||||||
|
if (this == 0)
|
||||||
|
return 0;
|
||||||
|
return sel_get_name(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** ## deprecated ##
|
||||||
|
*/
|
||||||
|
GS_STATIC_INLINE const char*
|
||||||
|
GSObjCSelectorTypes(SEL this)
|
||||||
|
{
|
||||||
|
return sel_get_type(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* NO_DEPRECATED */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef GS_MAX_OBJECTS_FROM_STACK
|
#ifndef GS_MAX_OBJECTS_FROM_STACK
|
||||||
/**
|
/**
|
||||||
* The number of objects to try to get from varargs into an array on
|
* The number of objects to try to get from varargs into an array on
|
||||||
|
@ -492,6 +497,6 @@ GSLastErrorStr(long error_id);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif /* NO_GNUSTEP */
|
||||||
|
|
||||||
#endif /* __GSObjCRuntime_h_GNUSTEP_BASE_INCLUDE */
|
#endif /* __GSObjCRuntime_h_GNUSTEP_BASE_INCLUDE */
|
||||||
|
|
Loading…
Reference in a new issue