diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-01-17 20:23:59 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-01-17 20:23:59 +0000 |
commit | 368c32910bc9484d76eb86158fb75ef2852d2e14 (patch) | |
tree | d87b0970cda535015d7c349688f7ffe90f36ed78 /gcc/objc/objc-parse.y | |
parent | 99d0c1d3d19eaec2fbab064eac0f3a8d1113a864 (diff) | |
download | gcc-368c32910bc9484d76eb86158fb75ef2852d2e14.tar.gz |
* objc-parse.c: Recognize protocol qualifiers in class definitions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17389 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc/objc-parse.y')
-rw-r--r-- | gcc/objc/objc-parse.y | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/objc/objc-parse.y b/gcc/objc/objc-parse.y index 2b4cca9d9ca..a4884b37e41 100644 --- a/gcc/objc/objc-parse.y +++ b/gcc/objc/objc-parse.y @@ -2647,20 +2647,28 @@ semi_or_error: methodproto: '+' { + /* Remember protocol qualifiers in prototypes. */ + remember_protocol_qualifiers (); objc_inherit_code = CLASS_METHOD_DECL; } methoddecl { + /* Forget protocol qualifiers here. */ + forget_protocol_qualifiers (); add_class_method (objc_interface_context, $3); } semi_or_error | '-' { + /* Remember protocol qualifiers in prototypes. */ + remember_protocol_qualifiers (); objc_inherit_code = INSTANCE_METHOD_DECL; } methoddecl { + /* Forget protocol qualifiers here. */ + forget_protocol_qualifiers (); add_instance_method (objc_interface_context, $3); } semi_or_error |