2
* Copyright 1995-1999, 2003-2005 Bruno Haible, <bruno@clisp.org>
4
* This is free software distributed under the GNU General Public Licence
5
* described in the file COPYING. Contact the author if you don't have this
6
* or can't live with it. There is ABSOLUTELY NO WARRANTY, explicit or implied,
22
/* This is the function pointer vacall(). A function pointer indirection is
23
needed because gcc-3.4 generates invalid code when the address of a symbol
24
is casted to a function pointer with different return type.
25
(http://gcc.gnu.org/ml/gcc-patches/2003-12/msg01767.html) */
27
extern "C" void __vacall (); /* the return type is variable, not void! */
29
extern void __vacall (); /* the return type is variable, not void! */
31
void (*vacall) () = __vacall;
33
/* This is the function called by vacall(). */
34
void (* vacall_function) (va_alist);
38
/* Room for returning structs according to the pcc non-reentrant struct return convention. */
39
__va_struct_buffer_t __va_struct_buffer;
41
int /* no return type, since this never returns */
42
__va_error1 (enum __VAtype start_type, enum __VAtype return_type)
44
/* If you see this, fix your code. */
45
fprintf (stderr, "vacall: va_start type %d and va_return type %d disagree.\n",
46
(int)start_type, (int)return_type);
48
#if defined(__cplusplus)
53
int /* no return type, since this never returns */
54
__va_error2 (unsigned int size)
56
/* If you see this, increase __VA_ALIST_WORDS: */
57
fprintf (stderr, "vacall: struct of size %u too large for pcc struct return.\n",
60
#if defined(__cplusplus)