1 /* Stub functions for Objective-C and Objective-C++ routines
2 that are called from within the C and C++ front-ends,
4 Copyright (C) 1991, 1995, 1997, 1998,
5 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
7 This file is part of GCC.
9 GCC is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free
11 Software Foundation; either version 2, or (at your option) any later
14 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING. If not, write to the Free
21 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
26 #include "coretypes.h"
31 objc_is_class_name (tree
ARG_UNUSED (arg
))
37 objc_is_id (tree
ARG_UNUSED (arg
))
43 objc_is_object_ptr (tree
ARG_UNUSED (arg
))
49 objc_lookup_ivar (tree other
, tree
ARG_UNUSED (arg
))
51 /* Just use whatever C/C++ found. */
56 objc_check_decl (tree
ARG_UNUSED (decl
))
61 objc_is_reserved_word (tree
ARG_UNUSED (ident
))
67 objc_comptypes (tree
ARG_UNUSED (lhs
), tree
ARG_UNUSED (rhs
),
68 int ARG_UNUSED (reflexive
))
74 objc_message_selector (void)
80 objc_declare_alias (tree
ARG_UNUSED (alias
), tree
ARG_UNUSED (orig
))
85 objc_declare_class (tree
ARG_UNUSED (list
))
90 objc_declare_protocols (tree
ARG_UNUSED (list
))
95 objc_start_protocol (tree
ARG_UNUSED (proto
),
96 tree
ARG_UNUSED (protorefs
))
101 objc_start_class_interface (tree
ARG_UNUSED (name
),
102 tree
ARG_UNUSED (super
),
103 tree
ARG_UNUSED (protos
))
108 objc_start_category_interface (tree
ARG_UNUSED (name
),
109 tree
ARG_UNUSED (categ
),
110 tree
ARG_UNUSED (protos
))
115 objc_continue_interface (void)
120 objc_finish_interface (void)
125 objc_add_instance_variable (tree
ARG_UNUSED (decl
))
130 objc_set_visibility (int ARG_UNUSED (vis
))
135 objc_set_method_type (enum tree_code
ARG_UNUSED (code
))
140 objc_start_class_implementation (tree
ARG_UNUSED (name
),
141 tree
ARG_UNUSED (super
))
146 objc_start_category_implementation (tree
ARG_UNUSED (name
),
147 tree
ARG_UNUSED (categ
))
152 objc_continue_implementation (void)
157 objc_clear_super_receiver (void)
162 objc_finish_implementation (void)
167 objc_add_method_declaration (tree
ARG_UNUSED (signature
))
172 objc_start_method_definition (tree
ARG_UNUSED (signature
))
177 objc_finish_method_definition (tree
ARG_UNUSED (fndecl
))
182 objc_build_keyword_decl (tree
ARG_UNUSED (selector
),
183 tree
ARG_UNUSED (typename
),
184 tree
ARG_UNUSED (identifier
))
190 objc_build_method_signature (tree
ARG_UNUSED (rettype
),
191 tree
ARG_UNUSED (selectors
),
192 tree
ARG_UNUSED (optparms
))
198 objc_build_encode_expr (tree
ARG_UNUSED (expr
))
204 objc_build_protocol_expr (tree
ARG_UNUSED (expr
))
210 objc_build_selector_expr (tree
ARG_UNUSED (expr
))
216 objc_build_message_expr (tree
ARG_UNUSED (expr
))
222 objc_build_string_object (tree
ARG_UNUSED (str
))
228 objc_get_class_reference (tree
ARG_UNUSED (name
))
234 objc_get_protocol_qualified_type (tree
ARG_UNUSED (name
),
235 tree
ARG_UNUSED (protos
))
241 objc_static_init_needed_p (void)
247 objc_generate_static_init_call (tree
ARG_UNUSED (ctors
))
253 objc_is_public (tree
ARG_UNUSED (expr
), tree
ARG_UNUSED (identifier
))
259 objc_get_class_ivars (tree
ARG_UNUSED (class_name
))
265 objc_build_throw_stmt (tree
ARG_UNUSED (throw_expr
))
271 objc_build_synchronized (location_t
ARG_UNUSED (start_locus
),
272 tree
ARG_UNUSED (mutex
), tree
ARG_UNUSED (body
))
277 objc_begin_try_stmt (location_t
ARG_UNUSED (try_locus
), tree
ARG_UNUSED (body
))
282 objc_begin_catch_clause (tree
ARG_UNUSED (decl
))
287 objc_finish_catch_clause (void)
292 objc_build_finally_clause (location_t
ARG_UNUSED (finally_locus
),
293 tree
ARG_UNUSED (body
))
298 objc_finish_try_stmt (void)