]> git.sur5r.net Git - cc65/blob - samples/geos/menu.c
replaced reference to vlink utility with grc call with proper options
[cc65] / samples / geos / menu.c
1 /* Note:
2  * This is just a sample piece of code that shows how to use some structs -
3  * it may not even run.
4  */
5
6
7 #include <geos.h>
8
9
10 /* prototypes are necessary */
11
12 void smenu1 (void);
13 void smenu2 (void);
14 void smenu3 (void);
15
16 typedef void menuString;
17
18 static const menuString subMenu1 = {
19         (char)0, (char)(3*15),
20         (unsigned)0, (unsigned)50,
21         (char)(3 | VERTICAL),
22         "subitem1", (char)MENU_ACTION, (unsigned)smenu1,
23         "subitem2", (char)MENU_ACTION, (unsigned)smenu2,
24         "subitem3", (char)MENU_ACTION, (unsigned)smenu3
25         };
26
27 void main (void)
28 {
29     DoMenu(&subMenu1);
30     }