diff options
Diffstat (limited to 'libobjc/objc/encoding.h')
-rw-r--r-- | libobjc/objc/encoding.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libobjc/objc/encoding.h b/libobjc/objc/encoding.h index 523b129f328..6d98a390aa3 100644 --- a/libobjc/objc/encoding.h +++ b/libobjc/objc/encoding.h @@ -31,8 +31,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see /* This file is to be used with the "traditional" GNU Objective-C Runtime API (the one declared in objc/objc-api.h). If you are using the "modern" GNU Objective-C Runtime API, then the useful - functions from this file are declared in objc/runtime.h. -*/ + functions from this file are declared in objc/runtime.h. */ #include "objc-api.h" #include <ctype.h> @@ -71,9 +70,15 @@ const char *objc_skip_type_qualifiers (const char *type); const char *objc_skip_typespec (const char *type); const char *objc_skip_offset (const char *type); const char *objc_skip_argspec (const char *type); +unsigned objc_get_type_qualifiers (const char *type); + +/* The following functions are replaced, in the modern API, by + method_getNumberOfArguments(), method_getArgumentType(). */ int method_get_number_of_arguments (struct objc_method *); int method_get_sizeof_arguments (struct objc_method *); +/* The following functions are deprecated and they use arglist_t which + is deprecated. */ char *method_get_first_argument (struct objc_method *, arglist_t argframe, const char **type); @@ -84,10 +89,7 @@ char *method_get_nth_argument (struct objc_method *m, int arg, const char **type); -unsigned objc_get_type_qualifiers (const char *type); - - -struct objc_struct_layout +struct objc_struct_layout { const char *original_type; const char *type; |