]> gcc.gnu.org Git - gcc.git/commitdiff
* objc-parse.c: Recognize protocol qualifiers in class definitions.
authorDavid T. McWherter <dtm@waterw.com>
Sat, 17 Jan 1998 20:23:59 +0000 (20:23 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 17 Jan 1998 20:23:59 +0000 (13:23 -0700)
From-SVN: r17389

gcc/ChangeLog
gcc/objc/objc-parse.y

index a73c8969a07e5360f12a543cd9e78948efc2f1df..c0adc1c4866a77288dcceadd4fdf42157634cc70 100644 (file)
@@ -1,3 +1,7 @@
+Sat Jan 17 21:24:16 1998  David T. McWherter <dtm@waterw.com>
+
+       * objc-parse.c: Recognize protocol qualifiers in class definitions.
+
 Sat Jan 17 21:16:19 1998  Jeffrey A Law  (law@cygnus.com)
 
        * jump.c (jump_optimize): Remove Dec 17, 1997 chance in
index 2b4cca9d9ca8e7e5910fada102bfb571bfde8e4f..a4884b37e41abab2b9b3f7e1c0c9d942b8d4a8c8 100644 (file)
@@ -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
This page took 0.075155 seconds and 5 git commands to generate.