mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
* Headers/Additions/GNUstepBase/GSObjCRuntime.h
(GSFindInstanceVariable, GSGetVariable, GSSetVariable) (GSGetValue, GSSetValue, GSObjCName, GSObjCSelectorName) (GSObjCSelectorTypes, GSGetInstanceMethod, GSGetClassMethod) (GSGetInstanceMethodNotInherited, GSGetClassMethodNotInherited): Add deprecation markers. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19894 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
826b0fcea8
commit
d1f347deb1
2 changed files with 35 additions and 5 deletions
|
@ -7,6 +7,13 @@
|
|||
|
||||
2004-08-20 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* Headers/Additions/GNUstepBase/GSObjCRuntime.h
|
||||
(GSFindInstanceVariable, GSGetVariable, GSSetVariable)
|
||||
(GSGetValue, GSSetValue, GSObjCName, GSObjCSelectorName)
|
||||
(GSObjCSelectorTypes, GSGetInstanceMethod, GSGetClassMethod)
|
||||
(GSGetInstanceMethodNotInherited, GSGetClassMethodNotInherited):
|
||||
Add deprecation markers.
|
||||
|
||||
* Source/Additions/GSObjCRuntime.m (GSSelectorTypesMatch):
|
||||
Ignore structure names.
|
||||
* Testing/nsmethodsignature.m: Added test for nested structures.
|
||||
|
|
|
@ -674,25 +674,35 @@ GSPrintf (FILE *fptr, NSString *format, ...);
|
|||
|
||||
GS_EXPORT BOOL
|
||||
GSFindInstanceVariable(id obj, const char *name,
|
||||
const char **type, unsigned int *size, int *offset);
|
||||
const char **type,
|
||||
unsigned int *size,
|
||||
int *offset) __attribute__ ((deprecated));
|
||||
|
||||
GS_EXPORT void
|
||||
GSGetVariable(id obj, int offset, unsigned int size, void *data);
|
||||
GSGetVariable(id obj, int offset, unsigned int size,
|
||||
void *data) __attribute__ ((deprecated));
|
||||
|
||||
GS_EXPORT void
|
||||
GSSetVariable(id obj, int offset, unsigned int size, const void *data);
|
||||
GSSetVariable(id obj, int offset, unsigned int size,
|
||||
const void *data) __attribute__ ((deprecated));
|
||||
|
||||
GS_EXPORT id
|
||||
GSGetValue(NSObject *self, NSString *key, SEL sel,
|
||||
const char *type, unsigned size, int offset);
|
||||
const char *type,
|
||||
unsigned size,
|
||||
int offset) __attribute__ ((deprecated));
|
||||
|
||||
GS_EXPORT void
|
||||
GSSetValue(NSObject *self, NSString *key, id val, SEL sel,
|
||||
const char *type, unsigned size, int offset);
|
||||
const char *type,
|
||||
unsigned size,
|
||||
int offset) __attribute__ ((deprecated));
|
||||
|
||||
/** ## deprecated ##
|
||||
*/
|
||||
GS_STATIC_INLINE const char*
|
||||
GSObjCName(Class cls) __attribute__ ((deprecated));
|
||||
GS_STATIC_INLINE const char*
|
||||
GSObjCName(Class cls)
|
||||
{
|
||||
return class_get_class_name(cls);
|
||||
|
@ -701,6 +711,8 @@ GSObjCName(Class cls)
|
|||
/** ## deprecated ##
|
||||
*/
|
||||
GS_STATIC_INLINE const char*
|
||||
GSObjCSelectorName(SEL sel) __attribute__ ((deprecated));
|
||||
GS_STATIC_INLINE const char*
|
||||
GSObjCSelectorName(SEL sel)
|
||||
{
|
||||
if (sel == 0)
|
||||
|
@ -711,29 +723,40 @@ GSObjCSelectorName(SEL sel)
|
|||
/** ## deprecated ##
|
||||
*/
|
||||
GS_STATIC_INLINE const char*
|
||||
GSObjCSelectorTypes(SEL sel) __attribute__ ((deprecated));
|
||||
GS_STATIC_INLINE const char*
|
||||
GSObjCSelectorTypes(SEL sel)
|
||||
{
|
||||
return sel_get_type(sel);
|
||||
}
|
||||
|
||||
GS_STATIC_INLINE GSMethod
|
||||
GSGetInstanceMethod(Class cls, SEL sel) __attribute__ ((deprecated));
|
||||
GS_STATIC_INLINE GSMethod
|
||||
GSGetInstanceMethod(Class cls, SEL sel)
|
||||
{
|
||||
return GSGetMethod(cls, sel, YES, YES);
|
||||
}
|
||||
|
||||
GS_STATIC_INLINE GSMethod
|
||||
GSGetClassMethod(Class cls, SEL sel) __attribute__ ((deprecated));
|
||||
GS_STATIC_INLINE GSMethod
|
||||
GSGetClassMethod(Class cls, SEL sel)
|
||||
{
|
||||
return GSGetMethod(cls, sel, NO, YES);
|
||||
}
|
||||
|
||||
GS_STATIC_INLINE GSMethod
|
||||
GSGetInstanceMethodNotInherited(Class cls,
|
||||
SEL sel) __attribute__ ((deprecated));
|
||||
GS_STATIC_INLINE GSMethod
|
||||
GSGetInstanceMethodNotInherited(Class cls, SEL sel)
|
||||
{
|
||||
return GSGetMethod(cls, sel, YES, NO);
|
||||
}
|
||||
|
||||
GS_STATIC_INLINE GSMethod
|
||||
GSGetClassMethodNotInherited(Class cls, SEL sel) __attribute__ ((deprecated));
|
||||
GS_STATIC_INLINE GSMethod
|
||||
GSGetClassMethodNotInherited(Class cls, SEL sel)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue