File: jclkcook.h

package info (click to toggle)
atari800 0.8.6-2
  • links: PTS
  • area: contrib
  • in suites: hamm
  • size: 1,364 kB
  • ctags: 2,457
  • sloc: ansic: 22,055; asm: 2,812; cpp: 581; makefile: 68; sh: 8
file content (111 lines) | stat: -rw-r--r-- 1,833 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/* Joy Clocky CookieJar public interface header file */  

#ifndef byte
typedef unsigned char byte;

#endif							/* 
 */

#define CLOCKY_IDENT		'JCLK'
#define CLOCKY_VERSION		0x206
#define KBDLEN	384

struct _jclkstruct {
	
	long name;					/* compare with CLOCKY_IDENT, must be equal */
	
	short version;				/* compare with CLOCKY_VERSION, it must be equal! */
	
	 byte hotshift;
	
	 byte hottime;
	
	struct {
		
		unsigned ShowTime:1;	/* 31 */
		
		unsigned ShowKuk:1;		/* 30 */
		
		unsigned Showdate:1;	/* 29 */
		
		unsigned Showday:1;		/* 28 */
		
		unsigned Showyear:1;	/* 27 */
		
		unsigned ShowCaps:1;	/* 26 */
		
		
		unsigned Unused1:3;		/* 23-25 */
		
		
		unsigned KbdEHC:1;		/* 22 */
		
		unsigned Kbddead:1;		/* 21 */
		
		unsigned Kbdasci:1;		/* 20 */
		
		unsigned Kbdcink:1;		/* 19 */
		
		unsigned Kbdbell:1;		/* 18 */
		
		unsigned Kbdlayo:2;		/* 16-17 */
		
		
		unsigned Misc4x:1;		/* 15 */
		
		unsigned Miscmys:1;		/* 14 */
		
		unsigned Miscprnt:1;	/* 13 */
		
		unsigned Miscturb:1;	/* 12 */
		
		unsigned Miscinv:1;		/* 11 */
		
		unsigned Misctut:1;		/* 10 */
		
		
		unsigned Unused2:2;		/* 8-9 */
		
		
		unsigned Saveron:1;		/* 7 */
		
		unsigned SaveMod1:1;	/* 6 */
		
		unsigned SaveMod2:1;	/* 5 */
		
		unsigned Saveact1:1;	/* 4 */
		
		unsigned Saveact2:1;	/* 3 */
		
		unsigned Unused3:3;		/* 0-2 */
		
	} parametry;
	
	short saverlen;
	
	short savecount;
	
	long actual_key;
	
#ifdef CLOCKY_CONFIG
	 byte normal_kbd[KBDLEN];
	
	 byte ceska_kbd[KBDLEN];
	
#endif							/* 
 */
};



typedef struct _jclkstruct JCLKSTRUCT;


/* 
 * Pri pouziti struktur je vzdycky dobre zkontrolovat, jestli
 * zvoleny kompiler neco neudelal s rozmistenim polozek v pameti!
 
 #include <assert.h>
 assert( sizeof(JCLKSTRUCT) == (20+2*384) );
 
 */