OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [c-family/] [c-objc.h] - Blame information for rev 714

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 707 jeremybenn
/* Definitions of Objective-C front-end entry points used for C and C++.
2
   Copyright (C) 1987, 1993, 1994, 1995, 1997, 1998,
3
   1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011
4
   Free Software Foundation, Inc.
5
 
6
This file is part of GCC.
7
 
8
GCC is free software; you can redistribute it and/or modify it under
9
the terms of the GNU General Public License as published by the Free
10
Software Foundation; either version 3, or (at your option) any later
11
version.
12
 
13
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14
WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16
for more details.
17
 
18
You should have received a copy of the GNU General Public License
19
along with GCC; see the file COPYING3.  If not see
20
<http://www.gnu.org/licenses/>.  */
21
 
22
#ifndef GCC_C_COMMON_OBJC_H
23
#define GCC_C_COMMON_OBJC_H
24
 
25
/* ObjC ivar visibility types.  */
26
typedef enum objc_ivar_visibility_kind {
27
  OBJC_IVAR_VIS_PROTECTED = 0,
28
  OBJC_IVAR_VIS_PUBLIC    = 1,
29
  OBJC_IVAR_VIS_PRIVATE   = 2,
30
  OBJC_IVAR_VIS_PACKAGE   = 3
31
} objc_ivar_visibility_kind;
32
 
33
/* Objective-C / Objective-C++ entry points.  */
34
 
35
/* The following ObjC/ObjC++ functions are called by the C and/or C++
36
   front-ends; they all must have corresponding stubs in stub-objc.c.  */
37
extern void objc_write_global_declarations (void);
38
extern tree objc_is_class_name (tree);
39
extern tree objc_is_object_ptr (tree);
40
extern void objc_check_decl (tree);
41
extern void objc_check_global_decl (tree);
42
extern tree objc_common_type (tree, tree);
43
extern bool objc_compare_types (tree, tree, int, tree);
44
extern bool objc_have_common_type (tree, tree, int, tree);
45
extern bool objc_diagnose_private_ivar (tree);
46
extern void objc_volatilize_decl (tree);
47
extern tree objc_rewrite_function_call (tree, tree);
48
extern tree objc_message_selector (void);
49
extern tree objc_lookup_ivar (tree, tree);
50
extern void objc_clear_super_receiver (void);
51
extern int objc_is_public (tree, tree);
52
extern tree objc_is_id (tree);
53
extern void objc_declare_alias (tree, tree);
54
extern void objc_declare_class (tree);
55
extern void objc_declare_protocol (tree, tree);
56
extern tree objc_build_message_expr (tree, tree);
57
extern tree objc_finish_message_expr (tree, tree, tree, tree*);
58
extern tree objc_build_selector_expr (location_t, tree);
59
extern tree objc_build_protocol_expr (tree);
60
extern tree objc_build_encode_expr (tree);
61
extern tree objc_build_string_object (tree);
62
extern tree objc_get_protocol_qualified_type (tree, tree);
63
extern tree objc_get_class_reference (tree);
64
extern tree objc_get_class_ivars (tree);
65
extern bool objc_detect_field_duplicates (bool);
66
extern void objc_start_class_interface (tree, tree, tree, tree);
67
extern void objc_start_category_interface (tree, tree, tree, tree);
68
extern void objc_start_protocol (tree, tree, tree);
69
extern void objc_continue_interface (void);
70
extern void objc_finish_interface (void);
71
extern void objc_start_class_implementation (tree, tree);
72
extern void objc_start_category_implementation (tree, tree);
73
extern void objc_continue_implementation (void);
74
extern void objc_finish_implementation (void);
75
extern void objc_set_visibility (objc_ivar_visibility_kind);
76
extern tree objc_build_method_signature (bool, tree, tree, tree, bool);
77
extern void objc_add_method_declaration (bool, tree, tree);
78
extern bool objc_start_method_definition (bool, tree, tree, tree);
79
extern void objc_finish_method_definition (tree);
80
extern void objc_add_instance_variable (tree);
81
extern tree objc_build_keyword_decl (tree, tree, tree, tree);
82
extern tree objc_build_throw_stmt (location_t, tree);
83
extern void objc_begin_try_stmt (location_t, tree);
84
extern tree objc_finish_try_stmt (void);
85
extern void objc_begin_catch_clause (tree);
86
extern void objc_finish_catch_clause (void);
87
extern void objc_build_finally_clause (location_t, tree);
88
extern tree objc_build_synchronized (location_t, tree, tree);
89
extern int objc_static_init_needed_p (void);
90
extern tree objc_generate_static_init_call (tree);
91
extern tree objc_generate_write_barrier (tree, enum tree_code, tree);
92
extern void objc_set_method_opt (bool);
93
extern void objc_finish_foreach_loop (location_t, tree, tree, tree, tree, tree);
94
extern bool  objc_method_decl (enum tree_code);
95
extern void objc_add_property_declaration (location_t, tree, bool, bool, bool,
96
                                           bool, bool, bool, tree, tree);
97
extern tree objc_maybe_build_component_ref (tree, tree);
98
extern tree objc_build_class_component_ref (tree, tree);
99
extern tree objc_maybe_build_modify_expr (tree, tree);
100
extern tree objc_build_incr_expr_for_property_ref (location_t, enum tree_code,
101
                                                   tree, tree);
102
extern void objc_add_synthesize_declaration (location_t, tree);
103
extern void objc_add_dynamic_declaration (location_t, tree);
104
extern const char * objc_maybe_printable_name (tree, int);
105
extern bool objc_is_property_ref (tree);
106
extern bool objc_string_ref_type_p (tree);
107
extern void objc_check_format_arg (tree, tree);
108
extern void objc_finish_function (void);
109
extern void objc_maybe_warn_exceptions (location_t);
110
 
111
/* The following are provided by the C and C++ front-ends, and called by
112
   ObjC/ObjC++.  */
113
extern void *objc_get_current_scope (void);
114
extern void objc_mark_locals_volatile (void *);
115
 
116
#endif /* ! GCC_C_COMMON_OBJC_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.