summaryrefslogtreecommitdiff
path: root/libobjc/encoding.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-08 11:23:35 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-08 11:23:35 +0000
commit0dff7c8178a75a07d0b5ac417c2fa71d6ceec5d1 (patch)
treed437e8222e814c9714139a9f5b2ca597196bca13 /libobjc/encoding.c
parentc62c8a78c04cf9a6449576e9ba60dda6879b3584 (diff)
downloadgcc-0dff7c8178a75a07d0b5ac417c2fa71d6ceec5d1.tar.gz
* encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
(objc_get_type_qualifiers): Similarly. * objc/encoding.h (_C_BYREF): Define. (_F_BYREF): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22917 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/encoding.c')
-rw-r--r--libobjc/encoding.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libobjc/encoding.c b/libobjc/encoding.c
index 94c5ab8da51..d4128704b92 100644
--- a/libobjc/encoding.c
+++ b/libobjc/encoding.c
@@ -402,6 +402,7 @@ objc_skip_type_qualifiers (const char* type)
|| *type == _C_INOUT
|| *type == _C_OUT
|| *type == _C_BYCOPY
+ || *type == _C_BYREF
|| *type == _C_ONEWAY
|| *type == _C_GCINVISIBLE)
{
@@ -661,6 +662,7 @@ objc_get_type_qualifiers (const char* type)
case _C_INOUT: res |= _F_INOUT; break;
case _C_OUT: res |= _F_OUT; break;
case _C_BYCOPY: res |= _F_BYCOPY; break;
+ case _C_BYREF: res |= _F_BYREF; break;
case _C_ONEWAY: res |= _F_ONEWAY; break;
case _C_GCINVISIBLE: res |= _F_GCINVISIBLE; break;
default: flag = NO;