]> git.ozlabs.org Git - ccan-lca-2011.git/blob - ccan/cdump/test/test_header.h
cdump: first cut of translation of Tridge's genstruct junkcode.
[ccan-lca-2011.git] / ccan / cdump / test / test_header.h
1 CDUMP_SAVED enum fruit {APPLE, ORANGE=2, PEAR,
2                       RASBERRY, PEACH};
3
4 CDUMP_SAVED
5 struct test2 
6 {
7         int x1;
8         char *foo;
9         char fstring[20];
10         int dlen;
11         char *dfoo CDUMP_LEN(dlen);
12         enum fruit fvalue;
13         struct test2 *next;
14 };
15
16 CDUMP_SAVED struct test1 {
17         char foo[100];
18         char *foo2[20];
19         int xlen;
20         int *iarray CDUMP_LEN(xlen);
21         unsigned slen;
22         char **strings CDUMP_LEN(slen);
23         char *s2[5];
24         double d1, d2, d3;
25         struct test2 *test2;
26         int alen;
27         struct test2 *test2_array CDUMP_LEN(alen);
28         struct test2 *test2_fixed[2];
29         int plen;
30         struct test2 **test2_parray CDUMP_LEN(plen);
31 };