95 |
* trim: remove blanks and '\'. |
* trim: remove blanks and '\'. |
96 |
*/ |
*/ |
97 |
static void |
static void |
98 |
trim(s) |
trim(char *s) |
|
char *s; |
|
99 |
{ |
{ |
100 |
char *p; |
char *p; |
101 |
|
|
299 |
* r) 1: skip, 0: dont skip |
* r) 1: skip, 0: dont skip |
300 |
*/ |
*/ |
301 |
int |
int |
302 |
skipthisfile(path) |
skipthisfile(const char *path) |
|
const char *path; |
|
303 |
{ |
{ |
304 |
const char *first, *last; |
const char *first, *last; |
305 |
int i; |
int i; |
350 |
* means directory 'dir1', file 'file1' and symbolic link 'link'. |
* means directory 'dir1', file 'file1' and symbolic link 'link'. |
351 |
*/ |
*/ |
352 |
static int |
static int |
353 |
getdirs(dir, sb) |
getdirs(const char *dir, STRBUF *sb) |
|
const char *dir; |
|
|
STRBUF *sb; |
|
354 |
{ |
{ |
355 |
DIR *dirp; |
DIR *dirp; |
356 |
struct dirent *dp; |
struct dirent *dp; |
397 |
* If NULL, assumed '.' directory. |
* If NULL, assumed '.' directory. |
398 |
*/ |
*/ |
399 |
void |
void |
400 |
find_open(start) |
find_open(const char *start) |
|
const char *start; |
|
401 |
{ |
{ |
402 |
assert(opened == 0); |
assert(opened == 0); |
403 |
opened = FIND_OPEN; |
opened = FIND_OPEN; |
431 |
* i) root root directory of source tree |
* i) root root directory of source tree |
432 |
*/ |
*/ |
433 |
void |
void |
434 |
find_open_filelist(filename, root) |
find_open_filelist(const char *filename, const char *root) |
|
const char *filename; |
|
|
const char *root; |
|
435 |
{ |
{ |
436 |
assert(opened == 0); |
assert(opened == 0); |
437 |
opened = FILELIST_OPEN; |
opened = FILELIST_OPEN; |
554 |
* r) path |
* r) path |
555 |
*/ |
*/ |
556 |
static char * |
static char * |
557 |
find_read_filelist() |
find_read_filelist(void) |
558 |
{ |
{ |
559 |
STATIC_STRBUF(ib); |
STATIC_STRBUF(ib); |
560 |
static char buf[MAXPATHLEN + 1]; |
static char buf[MAXPATHLEN + 1]; |