diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-06 23:47:09 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-06 23:47:09 +0000 |
commit | 64c7c50c03580ea8e3076f683ef9347352f50544 (patch) | |
tree | 3cc8a1b6d5845bd1ab7cdfd443741e2b87663e38 | |
parent | 0cce0323b44fe836f3a93a2a15b1b81908f66ae7 (diff) | |
download | gcc-64c7c50c03580ea8e3076f683ef9347352f50544.tar.gz |
PR libobjc/23612
* objc/objc-api.h (struct objc_ivar): Move definition to
global scope.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105073 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libobjc/ChangeLog | 6 | ||||
-rw-r--r-- | libobjc/objc/objc-api.h | 18 |
2 files changed, 15 insertions, 9 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog index 81e11ccbd5a..08ffb2d53e9 100644 --- a/libobjc/ChangeLog +++ b/libobjc/ChangeLog @@ -1,3 +1,9 @@ +2005-10-07 Ulrich Weigand <uweigand@de.ibm.com> + + PR libobjc/23612 + * objc/objc-api.h (struct objc_ivar): Move definition to + global scope. + 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu> Rasmus Hahn <rassahah@neofonie.de> 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; |