annotate lwar/lwar.h @ 448:5cccf90bf838 3.0 tip

Fixed bug with complex external references generating invalid relocations in the object file
author lost@l-w.ca
date Fri, 05 Nov 2010 22:27:00 -0600
parents 1c31e9005ff7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
339
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
1 /*
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
2 lwar.h
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
3 Copyright © 2009 William Astle
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
4
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
5 This file is part of LWAR.
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
6
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
7 LWAR is free software: you can redistribute it and/or modify it under the
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
8 terms of the GNU General Public License as published by the Free Software
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
9 Foundation, either version 3 of the License, or (at your option) any later
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
10 version.
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
11
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
12 This program is distributed in the hope that it will be useful, but WITHOUT
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
15 more details.
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
16
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
17 You should have received a copy of the GNU General Public License along with
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
18 this program. If not, see <http://www.gnu.org/licenses/>.
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
19
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
20 Contains the main defs used by the linker
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
21 */
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
22
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
23
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
24 #define LWAR_OP_LIST 1
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
25 #define LWAR_OP_ADD 2
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
26 #define LWAR_OP_REMOVE 3
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
27 #define LWAR_OP_CREATE 4
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
28 #define LWAR_OP_EXTRACT 5
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
29 #define LWAR_OP_REPLACE 6
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
30
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
31 #ifndef __lwar_h_seen__
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
32 #define __lwar_h_seen__
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
33
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
34 #ifndef __lwar_c_seen__
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
35
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
36 extern char *archive_file;
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
37 extern int debug_level;
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
38 extern int operation;
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
39 extern int nfiles;
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
40 extern char **files;
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
41 extern int mergeflag;
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
42
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
43 //typedef void * ARHANDLE;
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
44
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
45 #define AR_MODE_RD 1
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
46 #define AR_MODE_WR 2
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
47 #define AR_MODE_RW 3
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
48 #define AR_MODE_CREATE 4
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
49
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
50
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
51 #define __lwar_E__ extern
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
52 #else
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
53 #define __lwar_E__
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
54 #endif // __lwar_c_seen__
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
55
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
56 __lwar_E__ void add_file_name(char *fn);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
57
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
58 //__lwar_E__ ARHANDLE open_archive(char *fn, int mode);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
59
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
60 #undef __lwar_E__
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
61
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
62 #endif //__lwar_h_seen__