1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* Trampoline accessor test */
/*
* Copyright 1995-1999, 2002 Bruno Haible, <bruno@clisp.org>
*
* This is free software distributed under the GNU General Public Licence
* described in the file COPYING. Contact the author if you don't have this
* or can't live with it. There is ABSOLUTELY NO WARRANTY, explicit or implied,
* on this software.
*/
#include <stdio.h>
#include <stdlib.h>
#include "trampoline_r.h"
#ifdef __cplusplus
typedef int (*function)(...);
#else
typedef int (*function)();
#endif
#if defined(__STDC__) || defined(__GNUC__) || defined(__cplusplus)
int f (int x)
#else
int f (x)
int x;
#endif
{ return x; }
#define MAGIC1 0x9db9af42
#define MAGIC2 0x614a13c9
int main ()
{
|
|
<
<
<
<
<
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* Trampoline accessor test */
/*
* Copyright 1995-1999, 2002, 2005 Bruno Haible, <bruno@clisp.org>
*
* This is free software distributed under the GNU General Public Licence
* described in the file COPYING. Contact the author if you don't have this
* or can't live with it. There is ABSOLUTELY NO WARRANTY, explicit or implied,
* on this software.
*/
#include <stdio.h>
#include <stdlib.h>
#include "trampoline_r.h"
#ifdef __cplusplus
typedef int (*function)(...);
#else
typedef int (*function)();
#endif
int f (int x)
{ return x; }
#define MAGIC1 0x9db9af42
#define MAGIC2 0x614a13c9
int main ()
{
|