File: fields.c-expected

package info (click to toggle)
vala 0.56.18-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 57,528 kB
  • sloc: ansic: 581,293; sh: 5,357; makefile: 3,980; xml: 3,161; yacc: 1,219; lex: 374; javascript: 23
file content (84 lines) | stat: -rw-r--r-- 1,994 bytes parent folder | download | duplicates (2)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/* delegates_fields.c generated by valac, the Vala compiler
 * generated from delegates_fields.vala, do not modify */

#include <glib.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#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 (*FooFunc) (gpointer user_data);
typedef void (*FooFuncTargetless) (void);

VALA_EXTERN FooFunc foo;
VALA_EXTERN gpointer foo_target;
VALA_EXTERN GDestroyNotify foo_target_destroy_notify;
FooFunc foo = NULL;
gpointer foo_target = NULL;
GDestroyNotify foo_target_destroy_notify = NULL;
VALA_EXTERN FooFunc foo_unowned;
VALA_EXTERN gpointer foo_unowned_target;
FooFunc foo_unowned = NULL;
gpointer foo_unowned_target = NULL;
VALA_EXTERN FooFuncTargetless foo_targetless;
FooFuncTargetless foo_targetless = NULL;

VALA_EXTERN void func (void);
static void _vala_main (void);
static void _func_foo_func (gpointer self);
static void _func_foo_func_targetless (void);

void
func (void)
{
}

static void
_func_foo_func (gpointer self)
{
	func ();
}

static void
_func_foo_func_targetless (void)
{
	func ();
}

static void
_vala_main (void)
{
	(foo_target_destroy_notify == NULL) ? NULL : (foo_target_destroy_notify (foo_target), NULL);
	foo = NULL;
	foo_target = NULL;
	foo_target_destroy_notify = NULL;
	foo = _func_foo_func;
	foo_target = NULL;
	foo_target_destroy_notify = NULL;
	foo_unowned = _func_foo_func;
	foo_unowned_target = NULL;
	foo_targetless = _func_foo_func_targetless;
}

int
main (int argc,
      char ** argv)
{
	_vala_main ();
	return 0;
}