81 |
static STRBUF *ib; |
static STRBUF *ib; |
82 |
static char root[MAXPATHLEN + 1]; |
static char root[MAXPATHLEN + 1]; |
83 |
static size_t rootlen; |
static size_t rootlen; |
|
static char buf[MAXPATHLEN + 1]; |
|
84 |
static int opened; |
static int opened; |
85 |
#define FIND_OPEN 1 |
#define FIND_OPEN 1 |
86 |
#define FILELIST_OPEN 2 |
#define FILELIST_OPEN 2 |
|
static int retval; |
|
87 |
|
|
88 |
static void trim(char *); |
static void trim(char *); |
89 |
static char *find_read_filelist(void); |
static char *find_read_filelist(void); |
140 |
trim(sufflist); |
trim(sufflist); |
141 |
{ |
{ |
142 |
const char *suffp; |
const char *suffp; |
143 |
|
int retval; |
144 |
|
|
145 |
strbuf_reset(sb); |
strbuf_reset(sb); |
146 |
strbuf_puts(sb, "\\.("); /* ) */ |
strbuf_puts(sb, "\\.("); /* ) */ |
249 |
strbuf_unputc(reg, '|'); |
strbuf_unputc(reg, '|'); |
250 |
strbuf_putc(reg, ')'); |
strbuf_putc(reg, ')'); |
251 |
if (reg_count > 0) { |
if (reg_count > 0) { |
252 |
|
int retval; |
253 |
|
|
254 |
/* |
/* |
255 |
* compile regular expression. |
* compile regular expression. |
256 |
*/ |
*/ |
555 |
static char * |
static char * |
556 |
find_read_filelist() |
find_read_filelist() |
557 |
{ |
{ |
558 |
|
static char buf[MAXPATHLEN + 1]; |
559 |
char *path; |
char *path; |
560 |
|
|
561 |
for (;;) { |
for (;;) { |