blob: d42ec27ebe16c1bc04aee7fdefa272a4f91b185d (
plain)
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
|
/*
KITTENC - compile kitten files and attach this to
executables in a way that the kitten library retrieves
the language resources, in the same way that
catgets/kittengets ever did
*/
/*
This software is free software; free to use,
modify, pass to others, whatever
use it at your own risk
*/
#ifndef KITTENC_H
#define KITTENC_H
//internal stuff shared between kitten.c and kittenc.c
struct message_header
{
short len;
short id;
// char message[];
};
struct content
{
char language[4];
long filepos_start; // for this language
long filepos_end;
long reserved; // align on 16 byte to look better in hex editor
};
struct message_end
{
long filepos; // points to content
long resource_count;// number of entries
long fileend_orig; // file end NOW because UPX
char ID[8]; // "KITTENC"
};
#define KITTEN_MAX_RESOURCES 16
#endif /* KITTENC_H */
|