Mercurial > hg-old > index.cgi
annotate lwlink/lwlink.c @ 166:178995c346d9
Updated changelog
author | lost |
---|---|
date | Sat, 31 Jan 2009 18:22:58 +0000 |
parents | 106c2fe3c9d9 |
children | d610b8aef91b |
rev | line source |
---|---|
112 | 1 /* |
2 lwlink.c | |
118 | 3 Copyright © 2009 William Astle |
112 | 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 | |
21 | |
22 */ | |
23 | |
24 #ifdef HAVE_CONFIG_H | |
25 #include "config.h" | |
26 #endif | |
27 | |
28 #define __lwlink_c_seen__ | |
29 | |
30 #include <argp.h> | |
31 #include <errno.h> | |
32 #include <stdio.h> | |
33 #include <stdlib.h> | |
34 | |
35 #include "lwlink.h" | |
114
c65fcec346cd
Handle input files on command line and add some memory management utility functions
lost
parents:
112
diff
changeset
|
36 #include "util.h" |
112 | 37 |
38 int debug_level = 0; | |
39 int outformat = OUTPUT_DECB; | |
40 char *outfile = NULL; | |
117 | 41 char *scriptfile = NULL; |
112 | 42 |
115 | 43 fileinfo_t **inputfiles = NULL; |
114
c65fcec346cd
Handle input files on command line and add some memory management utility functions
lost
parents:
112
diff
changeset
|
44 int ninputfiles = 0; |
c65fcec346cd
Handle input files on command line and add some memory management utility functions
lost
parents:
112
diff
changeset
|
45 |
c65fcec346cd
Handle input files on command line and add some memory management utility functions
lost
parents:
112
diff
changeset
|
46 void add_input_file(char *fn) |
c65fcec346cd
Handle input files on command line and add some memory management utility functions
lost
parents:
112
diff
changeset
|
47 { |
115 | 48 inputfiles = lw_realloc(inputfiles, sizeof(fileinfo_t *) * (ninputfiles + 1)); |
49 inputfiles[ninputfiles] = lw_malloc(sizeof(fileinfo_t)); | |
50 inputfiles[ninputfiles++] -> filename = lw_strdup(fn); | |
114
c65fcec346cd
Handle input files on command line and add some memory management utility functions
lost
parents:
112
diff
changeset
|
51 } |
c65fcec346cd
Handle input files on command line and add some memory management utility functions
lost
parents:
112
diff
changeset
|
52 |