blob: c39528bf71099ad8bef9a82faf9981ae0c0002c8 (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/* delegates_bug595639.c generated by valac, the Vala compiler
* generated from delegates_bug595639.vala, do not modify */
#include <glib.h>
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif
typedef void (*Foo) (gpointer user_data);
VALA_EXTERN void do_foo (Foo foo,
gpointer foo_target,
GDestroyNotify foo_target_destroy_notify);
static void _vala_main (void);
void
do_foo (Foo foo,
gpointer foo_target,
GDestroyNotify foo_target_destroy_notify)
{
Foo bar = NULL;
Foo _tmp0_;
gpointer _tmp0__target;
GDestroyNotify _tmp0__target_destroy_notify;
gpointer bar_target;
GDestroyNotify bar_target_destroy_notify;
_tmp0_ = foo;
_tmp0__target = foo_target;
_tmp0__target_destroy_notify = foo_target_destroy_notify;
foo = NULL;
foo_target = NULL;
foo_target_destroy_notify = NULL;
bar = _tmp0_;
bar_target = _tmp0__target;
bar_target_destroy_notify = _tmp0__target_destroy_notify;
(bar_target_destroy_notify == NULL) ? NULL : (bar_target_destroy_notify (bar_target), NULL);
bar = NULL;
bar_target = NULL;
bar_target_destroy_notify = NULL;
(foo_target_destroy_notify == NULL) ? NULL : (foo_target_destroy_notify (foo_target), NULL);
foo = NULL;
foo_target = NULL;
foo_target_destroy_notify = NULL;
}
static void
_vala_main (void)
{
}
int
main (int argc,
char ** argv)
{
_vala_main ();
return 0;
}
|