annotate lwar/lwar.h @ 196:e7309c716059

Allow relative addressing to ignore a # before the operand (16 bit too!)
author lost
date Sun, 22 Mar 2009 17:58:43 +0000
parents bb2665c7005c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
171
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
1 /*
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
2 lwar.h
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
3 Copyright © 2009 William Astle
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
4
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
5 This file is part of LWAR.
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
6
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
7 LWAR is free software: you can redistribute it and/or modify it under the
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
8 terms of the GNU General Public License as published by the Free Software
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
9 Foundation, either version 3 of the License, or (at your option) any later
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
10 version.
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
11
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
12 This program is distributed in the hope that it will be useful, but WITHOUT
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
15 more details.
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
16
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
17 You should have received a copy of the GNU General Public License along with
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
18 this program. If not, see <http://www.gnu.org/licenses/>.
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
19
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
20 Contains the main defs used by the linker
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
21 */
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
22
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
23
172
47427342e41d lwar now creates, lists, and adds to archive files
lost
parents: 171
diff changeset
24 #define LWAR_OP_LIST 1
47427342e41d lwar now creates, lists, and adds to archive files
lost
parents: 171
diff changeset
25 #define LWAR_OP_ADD 2
47427342e41d lwar now creates, lists, and adds to archive files
lost
parents: 171
diff changeset
26 #define LWAR_OP_REMOVE 3
47427342e41d lwar now creates, lists, and adds to archive files
lost
parents: 171
diff changeset
27 #define LWAR_OP_CREATE 4
188
bb2665c7005c Added --extract and --replace to lwar
lost
parents: 174
diff changeset
28 #define LWAR_OP_EXTRACT 5
bb2665c7005c Added --extract and --replace to lwar
lost
parents: 174
diff changeset
29 #define LWAR_OP_REPLACE 6
172
47427342e41d lwar now creates, lists, and adds to archive files
lost
parents: 171
diff changeset
30
171
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
31 #ifndef __lwar_h_seen__
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
32 #define __lwar_h_seen__
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
33
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
34 #ifndef __lwar_c_seen__
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
35
172
47427342e41d lwar now creates, lists, and adds to archive files
lost
parents: 171
diff changeset
36 extern char *archive_file;
171
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
37 extern int debug_level;
172
47427342e41d lwar now creates, lists, and adds to archive files
lost
parents: 171
diff changeset
38 extern int operation;
47427342e41d lwar now creates, lists, and adds to archive files
lost
parents: 171
diff changeset
39 extern int nfiles;
47427342e41d lwar now creates, lists, and adds to archive files
lost
parents: 171
diff changeset
40 extern char **files;
174
cc41ccee8f64 added --merge to lwar
lost
parents: 172
diff changeset
41 extern int mergeflag;
cc41ccee8f64 added --merge to lwar
lost
parents: 172
diff changeset
42
cc41ccee8f64 added --merge to lwar
lost
parents: 172
diff changeset
43 //typedef void * ARHANDLE;
cc41ccee8f64 added --merge to lwar
lost
parents: 172
diff changeset
44
cc41ccee8f64 added --merge to lwar
lost
parents: 172
diff changeset
45 #define AR_MODE_RD 1
cc41ccee8f64 added --merge to lwar
lost
parents: 172
diff changeset
46 #define AR_MODE_WR 2
cc41ccee8f64 added --merge to lwar
lost
parents: 172
diff changeset
47 #define AR_MODE_RW 3
cc41ccee8f64 added --merge to lwar
lost
parents: 172
diff changeset
48 #define AR_MODE_CREATE 4
cc41ccee8f64 added --merge to lwar
lost
parents: 172
diff changeset
49
171
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
50
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
51 #define __lwar_E__ extern
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
52 #else
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
53 #define __lwar_E__
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
54 #endif // __lwar_c_seen__
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
55
172
47427342e41d lwar now creates, lists, and adds to archive files
lost
parents: 171
diff changeset
56 __lwar_E__ void add_file_name(char *fn);
47427342e41d lwar now creates, lists, and adds to archive files
lost
parents: 171
diff changeset
57
174
cc41ccee8f64 added --merge to lwar
lost
parents: 172
diff changeset
58 //__lwar_E__ ARHANDLE open_archive(char *fn, int mode);
cc41ccee8f64 added --merge to lwar
lost
parents: 172
diff changeset
59
171
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
60 #undef __lwar_E__
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
61
d610b8aef91b Added LWAR skeleton
lost
parents:
diff changeset
62 #endif //__lwar_h_seen__