Merge from mainline (163495:164578).
[official-gcc/graphite-test-results.git] / libobjc / objc / message.h
blob31ee33b305c8d282188eec7cfd4bf5d12f5763d8
1 /* GNU Objective C Runtime messaging declarations
2 Copyright (C) 1993, 1995, 1996, 2004, 2009,
3 2010 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 Under Section 7 of GPL version 3, you are granted additional
18 permissions described in the GCC Runtime Library Exception, version
19 3.1, as published by the Free Software Foundation.
21 You should have received a copy of the GNU General Public License and
22 a copy of the GCC Runtime Library Exception along with this program;
23 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24 <http://www.gnu.org/licenses/>. */
26 #ifndef __objc_message_INCLUDE_GNU
27 #define __objc_message_INCLUDE_GNU
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
33 #include "objc.h"
35 /* This file includes declarations of the messaging functions and types. */
37 typedef void* retval_t; /* return value */
38 typedef void(*apply_t)(void); /* function pointer */
39 typedef union arglist {
40 char *arg_ptr;
41 char arg_regs[sizeof (char*)];
42 } *arglist_t; /* argument frame */
44 IMP objc_msg_lookup(id receiver, SEL op);
46 /* TODO: Add the remaining messaging declarations from objc-api.h. */
48 #ifdef __cplusplus
50 #endif
52 #endif /* not __objc_message_INCLUDE_GNU */