xref: /haiku/src/bin/rc/tests/array.rdef (revision b671e9bbdbd10268a042b4f4cc4317ccd03d105e)
1
2resource(301) array { $"41" };
3resource(302) array { $"40" $"41" };
4resource(303) array { $"42", $"43" };
5resource(304) array { };
6resource(305) array;
7//resource(306) { };             // syntax error
8//resource(307) { $"40" };       // syntax error
9//resource(308) array { 100, };  // syntax error
10
11resource(310) array { 1234, 5678 };
12resource(311) array { (int16) 1234 };
13resource(312) array { "wassup" };
14resource(313) array { (string) "wassup" };
15
16resource(320) #'CSTR' array { "wassup" };
17resource(321) (#'CSTR') array { "wassup" };
18resource(322) (buffer) array { "hello" };
19resource(323) (raw) array { "there" };
20//resource(324) (string) array { "wassup" };         // invalid cast
21//resource(325) (#'CSTR' string) array { "wassup" }; // invalid cast
22
23resource(330) array { "w00t", "dude" };
24resource(331) #'CSTR' array { "w00t", "dude" };
25resource(332) #'CSTR' array { "blah", "" };
26resource(333) #'CSTR' array { "w00t" "dude" };
27resource(334) #'CSTR' array { "blah" "" };
28resource(335) array { 1234, "text", true, $"4041", 3.14e-1 };
29resource(336) #'LLNG' array { (int64) 1234 };  // decompiles to (int64)1234
30
31// The decompiler should not turn this back into a string, because
32// it contains a non-human-readable character.
33resource(337) array { "hey\0x01there" };
34
35// Should decompile to $"405051416070"
36resource(340) array
37{
38	$"40", array { $"50", $"51" }, $"41", array { $"60", array { $"70" }}
39};
40
41resource(341) array { $"40", message { "field" = "value" }};
42
43enum {
44	R_BeOSBitmap = 100,
45	R_Icon = 100,
46	R_Cursor = 100,
47};
48
49resource(1) #'PNG ' array {
50	$"89504E470D0A1A0A0000000D49484452000000100000001008060000001FF3FF"
51	$"61000000096F464673000000000000000000DA2AB6CE00000009704859730000"
52	$"0FA000000FA001A06A8C770000019E49444154789CA593BF6BDB4018861FFD58"
53	$"8E8B34F51FE812E3D164C968E3C94BF0D041A55BC0244B372BD666BC092BD0B5"
54	$"2590ADD44307378BA7108F598247932CFD07324939B4482883CFE2126208E499"
55	$"8EE37DBFFB78EFFBACD17084499CC427401B686569DA00F07CFF1E5801CB288C"
56	$"7E997A6B5B204EE21670A6940AA494BC85520A29E50C984661B402704D33103C"
57	$"3E557CFFF18FDB878CBC7400104EC9E1BEC778D0454A02ED994661B4B275F133"
58	$"20B8BCBAA317CEB959E7E4A50B5880455EBADCAC737AE19CCBAB3B80407BB0AA"
59	$"AA3A514AFD7C7CAAE885736DDCF0FF7700C0E76FB3FA4E38058BA4CFA73D0B29"
60	$"E5A90DB4A5944C2EAE5F987791972E938B6B744E6D176801DC3E64DB486ACC97"
61	$"4D365A005A6E96A60DCFF7EBC05EB7FF56A1AD364BD386CD0E76BDFE1A5B0F09"
62	$"C229DF6530B59EEFDFDB6C268CC37DEFDD050CEDCA06964A29C6832EC2296A91"
63	$"998179164EC178D0452905B0B446C3117112FF410FD2F9DFF5CEEF144EC1F04B"
64	$"93E3A303805914465FB7214E81D9F1D1018BA44FA72974371550219C824E53B0"
65	$"48FAB5597B3EBE4CD647D7F919F31AB8B0697BD6410000000049454E44AE4260"
66	$"82"
67};
68
69resource(R_Cursor) #'CURS' array {
70	$"1001070707C0183027C859345014A10AA00AB45AA00AA10A5014593427C81830"
71	$"07C0000007C01FF03FF8793C701CE10EE00EF45EE00EE10E701C793C3FF81FF0"
72	$"07C00000"
73};
74
75resource(R_Icon) #'ICON' array {
76	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
77	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
78	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
79	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
80	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF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FFFFFFFFFFFFFFFFFFFFF"
115	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
116	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
117	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
118	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
119	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
120	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
121	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
122	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
123	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
124	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
125	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
126	$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
127};
128
129resource(350) #'CSTR' import "import.txt";
130resource(351) #'CSTR' array import "import.txt";
131
132resource(352) #'CSTR' array
133{
134	array import "import.txt", array import "import.txt"
135};
136
137resource(353) #'CSTR' array
138{
139	import "import.txt"
140};
141
142type #'CSTR' import_t
143{
144	array field1 = array import "import.txt",
145	array field2
146};
147
148resource(354) import_t;
149resource(355) import_t { field1 = array { "a" }, field2 = array { "b" } };
150resource(356) import_t { field2 = array { "-booh" } };
151
152//resource(359) #'CSTR' array import "does-not-exist.txt";
153