comparison lwar/lwar.c @ 174:cc41ccee8f64

added --merge to lwar
author lost
date Tue, 03 Mar 2009 00:42:47 +0000
parents 47427342e41d
children bae1e3ecdce1
comparison
equal deleted inserted replaced
173:0395e6fd67e9 174:cc41ccee8f64
24 24
25 #ifdef HAVE_CONFIG_H 25 #ifdef HAVE_CONFIG_H
26 #include "config.h" 26 #include "config.h"
27 #endif 27 #endif
28 28
29 #include <stdio.h>
29 #include <stdlib.h> 30 #include <stdlib.h>
31 #include <sys/stat.h>
32 #include <sys/types.h>
33 #include <unistd.h>
30 34
31 #define __lwar_c_seen__ 35 #define __lwar_c_seen__
32 #include "lwar.h" 36 #include "lwar.h"
33 #include "util.h" 37 #include "util.h"
34 38
39 typedef struct
40 {
41 FILE *f;
42 } arhandle_real;
43
35 int debug_level = 0; 44 int debug_level = 0;
36 int operation = 0; 45 int operation = 0;
37 int nfiles = 0; 46 int nfiles = 0;
38 char *archive_file = NULL; 47 char *archive_file = NULL;
48 int mergeflag = 0;
39 49
40 char **files = NULL; 50 char **files = NULL;
41 51
42 void add_file_name(char *fn) 52 void add_file_name(char *fn)
43 { 53 {