summaryrefslogtreecommitdiff
path: root/libobjc/objc/objc-api.h
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2005-10-06 23:47:09 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2005-10-06 23:47:09 +0000
commitb7add5063821f73f2b8463317d224b68cd1aeb3e (patch)
tree3cc8a1b6d5845bd1ab7cdfd443741e2b87663e38 /libobjc/objc/objc-api.h
parenta7e0b07571554b64a7290739299e77a5463b22f3 (diff)
downloadgcc-b7add5063821f73f2b8463317d224b68cd1aeb3e.tar.gz
re PR testsuite/23612 (obj-c++.dg/encode-6.mm fail with the GNU runtime)
PR libobjc/23612 * objc/objc-api.h (struct objc_ivar): Move definition to global scope. From-SVN: r105073
Diffstat (limited to 'libobjc/objc/objc-api.h')
-rw-r--r--libobjc/objc/objc-api.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libobjc/objc/objc-api.h b/libobjc/objc/objc-api.h
index f647fbdbd9e..1f5b5191ff8 100644
--- a/libobjc/objc/objc-api.h
+++ b/libobjc/objc/objc-api.h
@@ -213,14 +213,7 @@ typedef struct objc_module {
** The compiler generates one of these structures for a class that has
** instance variables defined in its specification.
*/
-typedef struct objc_ivar* Ivar_t;
-typedef struct objc_ivar_list {
- int ivar_count; /* Number of structures (Ivar)
- contained in the list. One
- structure per instance
- variable defined in the
- class. */
- struct objc_ivar {
+typedef struct objc_ivar {
const char* ivar_name; /* Name of the instance
variable as entered in the
class definition. */
@@ -230,8 +223,15 @@ typedef struct objc_ivar_list {
int ivar_offset; /* Byte offset from the base
address of the instance
structure to the variable. */
+} *Ivar_t;
- } ivar_list[1]; /* Variable length
+typedef struct objc_ivar_list {
+ int ivar_count; /* Number of structures (Ivar)
+ contained in the list. One
+ structure per instance
+ variable defined in the
+ class. */
+ struct objc_ivar ivar_list[1]; /* Variable length
structure. */
} IvarList, *IvarList_t;