4 ported to small C on 25-27.10.1999
5 by Maciej 'YTM/Elysium' Witkowiak
11 struct f_date { /* date in filedesctiptor */
19 struct s_date { /* system date & time */
28 struct tr_se { /* track and sector */
33 struct fileheader { /* header block (like fileHeader) */
49 struct filehandle { /* filehandle in directory sectors */
50 char dostype; /* or in dirEntryBuf */
60 struct pixel { /* describes point */
65 struct fontdesc { /* describes font */
73 struct window { /* describes screen region */
80 struct VLIR_info { /* VLIR information */
81 char curRecord; /* currently only used in VLIR */
82 char usedRecords; /* as system info (curRecord is mainly of your interest */
87 struct process { /* process info, declare table of that type */
88 int pointer; /* (like: struct process proctab[2]=... */
89 int jiffies; /* last entry HAVE TO BE {0,0} */
93 struct iconpic { /* icon/encoded bitmap description */
94 char *pic_ptr; /* ptr to a photo scrap (or encoded bitmap) */
95 char x; /* position in cards (*8 pixels) */
97 char width; /* in cards */
98 char heigth; /* in lines (pixels) */
101 struct icondef { /* icon definition for DoIcons */
102 char *pic_ptr; /* ptr to a photo scrap (or encoded bitmap) */
103 char x; /* position in cards (*8 pixels) */
105 char width; /* of icon (in cards) */
106 char heigth; /* of icon in lines (pixels) */
107 int proc_ptr; /* pointer to function handling that icon */
111 char number; /* number of declared icons */
112 struct pixel mousepos; /* position of mouse after DoIcons */
113 struct icondef *tab; /* table of size declared by icontab.number */
117 structures below might be used to speed up access to own menus
118 e.g. if you have menu defined as TopMenu and you want to change the number of
120 ((struct menu*)&TopMenu)->number=newNumber;
121 This will allow cc65 to emit better code.
127 int rest; /* may be ptr to function, or if submenu ptr to struct menu */
133 struct menuitem *items;
136 struct inittab { /* use struct inittab mytab[n] for initram */
137 int ptr; /* ptr to 1st byte */
138 char number; /* number of following bytes */
139 char *values; /* actual string of bytes */