diff options
author | Ziemowit Laski <zlaski@apple.com> | 2003-10-15 00:10:27 +0000 |
---|---|---|
committer | Ziemowit Laski <zlaski@gcc.gnu.org> | 2003-10-15 00:10:27 +0000 |
commit | 4898423cfd4d1b1dfb25e78ee7e734be76e1b44d (patch) | |
tree | 800ea81c078a96a03debae44a7905203b417cccf /gcc/objc/objc-act.c | |
parent | e69166de8e13bd1ec9c30d1871d03cb4b3616f1d (diff) | |
download | gcc-4898423cfd4d1b1dfb25e78ee7e734be76e1b44d.zip gcc-4898423cfd4d1b1dfb25e78ee7e734be76e1b44d.tar.gz gcc-4898423cfd4d1b1dfb25e78ee7e734be76e1b44d.tar.bz2 |
c-parse.in (methoddef, [...]): Call objc_add_method() instead of add_method().
2003-10-14 Ziemowit Laski <zlaski@apple.com>
* c-parse.in (methoddef, methodproto): Call objc_add_method()
instead of add_method().
* objc/objc-act.c (objc_check_decl): Do not check for
constant_string_type.
(add_method): Rename to objc_add_method().
(really_start_method): Call objc_add_method() instead of
add_method().
* objc/objc-act.h (add_method): Rename to objc_add_method().
From-SVN: r72506
Diffstat (limited to 'gcc/objc/objc-act.c')
-rw-r--r-- | gcc/objc/objc-act.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index b905035..ad2b69a 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -947,10 +947,9 @@ objc_check_decl (tree decl) if (TREE_CODE (type) != RECORD_TYPE) return; - if (TYPE_NAME (type) && (type = is_class_name (TYPE_NAME (type))) - && type != constant_string_type) + if (TYPE_NAME (type) && (type = is_class_name (TYPE_NAME (type)))) error ("statically allocated instance of Objective-C class `%s'", - IDENTIFIER_POINTER (type)); + IDENTIFIER_POINTER (type)); } /* Implement static typing. At this point, we know we have an interface. */ @@ -6300,7 +6299,7 @@ add_method_to_hash_list (hash *hash_list, tree method) } tree -add_method (tree class, tree method, int is_class) +objc_add_method (tree class, tree method, int is_class) { tree mth; @@ -7815,8 +7814,8 @@ really_start_method (tree method, tree parmlist) CLASS_SUPER_NAME (objc_implementation_context)); if (interface) - add_method (interface, copy_node (method), - TREE_CODE (method) == CLASS_METHOD_DECL); + objc_add_method (interface, copy_node (method), + TREE_CODE (method) == CLASS_METHOD_DECL); } } } |