Mercurial > hg-old > index.cgi
annotate src/lwlink.h @ 297:c52ad3135bd3
implement reading files
author | lost |
---|---|
date | Sun, 18 Jan 2009 04:53:57 +0000 |
parents | 14d835cf02d9 |
children | 96a35a4245f3 |
rev | line source |
---|---|
294 | 1 /* |
2 lwlink.h | |
3 Copyright © 2008 William Astle | |
4 | |
5 This file is part of LWLINK. | |
6 | |
7 LWLINK is free software: you can redistribute it and/or modify it under the | |
8 terms of the GNU General Public License as published by the Free Software | |
9 Foundation, either version 3 of the License, or (at your option) any later | |
10 version. | |
11 | |
12 This program is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
15 more details. | |
16 | |
17 You should have received a copy of the GNU General Public License along with | |
18 this program. If not, see <http://www.gnu.org/licenses/>. | |
19 | |
20 Contains the main defs used by the linker | |
21 */ | |
22 | |
23 | |
24 #ifndef __lwlink_h_seen__ | |
25 #define __lwlink_h_seen__ | |
26 | |
27 #define OUTPUT_DECB 0 // DECB multirecord format | |
28 #define OUTPUT_RAW 1 // raw sequence of bytes | |
29 | |
297 | 30 |
31 typedef struct | |
32 { | |
33 char *filename; | |
34 unsigned char *filedata; | |
35 long filesize; | |
36 } fileinfo_t; | |
37 | |
294 | 38 #ifndef __lwlink_c_seen__ |
39 | |
40 extern int debug_level; | |
41 extern int outformat; | |
42 extern char *outfile; | |
296
14d835cf02d9
Handle input files on command line and add some memory management utility functions
lost
parents:
294
diff
changeset
|
43 extern int ninputfiles; |
297 | 44 extern fileinfo_t **inputfiles; |
294 | 45 |
296
14d835cf02d9
Handle input files on command line and add some memory management utility functions
lost
parents:
294
diff
changeset
|
46 #define __lwlink_E__ extern |
14d835cf02d9
Handle input files on command line and add some memory management utility functions
lost
parents:
294
diff
changeset
|
47 #else |
14d835cf02d9
Handle input files on command line and add some memory management utility functions
lost
parents:
294
diff
changeset
|
48 #define __lwlink_E__ |
294 | 49 #endif // __lwlink_c_seen__ |
50 | |
296
14d835cf02d9
Handle input files on command line and add some memory management utility functions
lost
parents:
294
diff
changeset
|
51 __lwlink_E__ void add_input_file(char *fn); |
14d835cf02d9
Handle input files on command line and add some memory management utility functions
lost
parents:
294
diff
changeset
|
52 |
14d835cf02d9
Handle input files on command line and add some memory management utility functions
lost
parents:
294
diff
changeset
|
53 #undef __lwlink_E__ |
294 | 54 #endif //__lwlink_h_seen__ |