File: example.cfgtmpl

package info (click to toggle)
confetti 20120731-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 264 kB
  • ctags: 183
  • sloc: ansic: 2,404; lex: 568; yacc: 539; makefile: 123; perl: 13
file content (85 lines) | stat: -rw-r--r-- 986 bytes parent folder | download
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
85
%{
#include <prscfg.h>
#include <my_product_cfg.h>

void out_warning(ConfettyError r, char *format, ...);

%}

# foo value is responsible1
foo=1234U, required
bar=-54321L
asdf= {
# asdfffffas asdd
	k1 = "as\"d"
# lkjhsdfiuher
# =========================r
	k2 = NULL, required
	# substruct
	array = [
		qwerty=123.9, ro
		qwer1=123
		substruct = {
			sss = "asdf.array.substruct.sss", required

		}
		subarray = [
			subkey = 12
			subke12 = 7654UL, required
		], ro

	]

	k3 = NULL
}

root_array = [
	ra = -1.344e-08, required
], required

test = [
	#checl reqelem
	{ e=1 }, required
]

empty = [
	wow=NULL
], required

ro_struct = {
	f1 = 1
	f2 = 2
}, ro

array_of_ro_structs = [ {
	f1 = 1
	f2 = 2
}, ro ]

required_struct_with_structs = {
	f1 = 1
	f2 = 2
	s1 = {
		f1 = 1
		f2 = 2
		ss1 = {
			f1 = 1
			f2 = 2
		}
	}
}, required

array_with_required_structs_with_structs = [
	{
		f1 = 1
		f2 = 2
		s = {
			f1 = 1
			f2 = 2
			f3 = false
		}
	}, required
]

flsb = false
flst = true