]>
Commit | Line | Data |
---|---|---|
114dae43 NP |
1 | /* GNU Objective C Runtime selector implementation - Private functions |
2 | Copyright (C) 2010 Free Software Foundation, Inc. | |
3 | Contributed by Nicola Pero <nicola.pero@meta-innovation.com> | |
4 | ||
5 | This file is part of GCC. | |
6 | ||
7 | GCC is free software; you can redistribute it and/or modify it under the | |
8 | terms of the GNU General Public License as published by the Free Software | |
9 | Foundation; either version 3, or (at your option) any later version. | |
10 | ||
11 | GCC is distributed in the hope that it will be useful, but WITHOUT ANY | |
12 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
13 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
14 | details. | |
15 | ||
16 | Under Section 7 of GPL version 3, you are granted additional | |
17 | permissions described in the GCC Runtime Library Exception, version | |
18 | 3.1, as published by the Free Software Foundation. | |
19 | ||
20 | You should have received a copy of the GNU General Public License and | |
21 | a copy of the GCC Runtime Library Exception along with this program; | |
22 | see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | |
23 | <http://www.gnu.org/licenses/>. */ | |
24 | ||
25 | #ifndef __objc_private_selector_INCLUDE_GNU | |
26 | #define __objc_private_selector_INCLUDE_GNU | |
27 | ||
114dae43 NP |
28 | /* Private runtime functions that may go away or be rewritten or |
29 | replaced. */ | |
30 | ||
f94e723b NP |
31 | /* Number of selectors stored in each of the selector tables. */ |
32 | extern unsigned int __objc_selector_max_index; | |
33 | ||
34 | /* Initialize the selector tables. This must be called by init.c. */ | |
35 | void __objc_init_selector_tables(void); | |
36 | ||
37 | /* Various private functions to register selectors. */ | |
38 | void __objc_register_selectors_from_class(Class); | |
39 | void __objc_register_selectors_from_list (struct objc_method_list *); | |
40 | void __objc_register_selectors_from_description_list | |
41 | (struct objc_method_description_list *method_list); | |
600cbba2 | 42 | void __objc_register_selectors_from_module (struct objc_selector *selectors); |
f94e723b | 43 | |
114dae43 NP |
44 | /* Return whether a selector is mapped or not ("mapped" meaning that |
45 | it has been inserted into the selector table). This is private as | |
46 | only the runtime should ever encounter or need to know about | |
47 | unmapped selectors. */ | |
48 | BOOL sel_is_mapped (SEL aSel); | |
49 | ||
50 | /* Return selector representing name without registering it if it | |
51 | doesn't exist. Typically used internally by the runtime when it's | |
52 | looking up methods that may or may not exist (such as +initialize) | |
53 | in the most efficient way. */ | |
54 | SEL | |
55 | sel_get_any_uid (const char *name); | |
56 | ||
114dae43 | 57 | #endif /* not __objc_private_selector_INCLUDE_GNU */ |