]> git.sur5r.net Git - cc65/blob - src/grc/grc.h
Use CHAR_BITS instead of a hardcoded 8 bits/byte.
[cc65] / src / grc / grc.h
1
2 /* I hope that no one will be able to create a .grc bigger than this... */
3 #define BLOODY_BIG_BUFFER 65000
4 /* there are no 6MB GEOS binaries... I hope! */
5 #define THIS_BUFFER_IS_SOOO_HUGE 6000000
6
7 struct menuitem {
8         char *name;
9         char *type;
10         char *target;
11         struct menuitem *next; };
12
13 struct menu {
14         char *name;
15         int top, left;
16         int bot, right;
17         char *type;
18         struct menuitem *item; };
19
20 struct appheader {
21         int year,month,day,hour,min;
22         int mode;
23         int dostype;
24         int geostype;
25         int structure;
26         char *dosname;
27         char *classname;
28         char *version;
29         char *author;
30         char *info; };
31
32 const char *mainToken[] = {
33         "MENU", "HEADER", "ICON", "DIALOG", "VLIR", "" };
34
35 const char *hdrFTypes[] = {
36         "APPLICATION", "AUTO_EXEC", "DESK_ACC", "ASSEMBLY", "DISK_DEVICE", "PRINTER", "SYSTEM", "" };
37
38 const char *hdrFields[] = {
39         "author", "info", "date", "dostype", "mode", "structure", "" };
40
41 const char *hdrDOSTp[] = {
42         "seq", "SEQ", "prg", "PRG", "usr", "USR", "" };
43
44 const char *hdrStructTp[] = {
45         "seq", "SEQ", "vlir", "VLIR", "" };
46
47 const char *hdrModes[] = {
48         "any", "40only", "80only", "c64only", "" };
49
50 const int BSWTab[] = { 0,
51         0x005, 0x007, 0x00b, 0x011, 0x017,
52         0x01d, 0x023, 0x025, 0x029, 0x02d, 0x033, 0x039, 0x03c, 0x041, 0x043,
53         0x04a, 0x04f, 0x052, 0x056, 0x05a, 0x05f, 0x063, 0x068, 0x06d, 0x072,
54         0x077, 0x079, 0x07c, 0x080, 0x084, 0x088, 0x08e, 0x094, 0x09a, 0x09f,
55         0x0a4, 0x0a9, 0x0ad, 0x0b1, 0x0b6, 0x0bc, 0x0be, 0x0c2, 0x0c8, 0x0cc,
56         0x0d4, 0x0da, 0x0e0, 0x0e5, 0x0eb, 0x0f0, 0x0f5, 0x0f9, 0x0fe, 0x104,
57         0x10c, 0x112, 0x118, 0x11e, 0x121, 0x129, 0x12c, 0x132, 0x13a, 0x13e,
58         0x143, 0x148, 0x14d, 0x152, 0x157, 0x15a, 0x15f, 0x164, 0x166, 0x168,
59         0x16d, 0x16f, 0x177, 0x17c, 0x182, 0x187, 0x18c, 0x18f, 0x193, 0x196,
60         0x19b, 0x1a1, 0x1a9, 0x1af, 0x1b4, 0x1ba, 0x1be, 0x1c0, 0x1c4, 0x1ca,
61         0x1d2, 0x1dd };
62
63 const unsigned char icon1[] = {
64          255, 255, 255, 128, 0, 1, 128, 0, 1, 128, 0, 1, 128, 0, 1, 128, 0, 1,
65                         128, 0, 1, 128, 0, 1, 128, 0, 1, 128, 0, 1, 128, 0, 1,
66                         128, 0, 1, 128, 0, 1, 128, 0, 1, 128, 0, 1, 128, 0, 1,
67                         128, 0, 1, 128, 0, 1, 128, 0, 1, 128, 0, 1, 255, 255, 255 };
68
69 char *ProgName; /* for AbEnd, later remove and use common/cmdline.h */
70
71 char *outputCName=NULL, *outputSName=NULL, *outputVName=NULL;
72 FILE *outputCFile, *outputSFile, *outputVFile;
73 int CFnum=0, SFnum=0, VFnum=0;
74 int forceFlag=0;
75 char outputCMode[2]="w";
76 char outputSMode[2]="w";
77 char outputVMode[2]="w";