aboutsummaryrefslogtreecommitdiff
path: root/libobjc/objc
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-15 01:35:20 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-15 01:35:20 +0000
commit75f3d126074fe6d556ed6eff96ee7e428d1dfe6c (patch)
tree0d43553d867985c3884770b2576694ef4657a4aa /libobjc/objc
parented38fc471da28a8c3f2ba0fe905305040789f277 (diff)
In libobjc/:
2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com> * ivars.c (class_addIvar): Use the 'size' argument instead of trying to calculate it using objc_sizeof_type(). * objc/runtime.h (class_addIvar): Updated comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167837 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/objc')
-rw-r--r--libobjc/objc/runtime.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/libobjc/objc/runtime.h b/libobjc/objc/runtime.h
index f5df691fe52..94f5bf7f10a 100644
--- a/libobjc/objc/runtime.h
+++ b/libobjc/objc/runtime.h
@@ -319,11 +319,10 @@ objc_EXPORT Ivar * class_copyIvarList (Class class_, unsigned int *numberOfRetur
instance variables to classes already registered with the runtime.
'size' is the size of the instance variable, 'alignment' the
alignment, and 'type' the type encoding of the variable type. You
- can use objc_sizeof_type() (or sizeof()), objc_alignof_type() (or
- __alignof__()) and @encode() to determine the right 'size',
- 'alignment' and 'type' for your instance variable. For example, to
- add an instance variable name "my_variable" and of type 'id', you
- can use:
+ can use sizeof(), __alignof__() and @encode() to determine the
+ right 'size', 'alignment' and 'type' for your instance variable.
+ For example, to add an instance variable name "my_variable" and of
+ type 'id', you can use:
class_addIvar (class, "my_variable", sizeof (id), __alignof__ (id),
@encode (id));