/[global]/global/libutil/find.c
ViewVC logotype

Diff of /global/libutil/find.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.55 by shigio, Sun Sep 4 02:00:46 2005 UTC revision 1.56 by shigio, Tue Oct 4 07:59:04 2005 UTC
# Line 95  extern int debug; Line 95  extern int debug;
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    
# Line 300  prepare_skip(void) Line 299  prepare_skip(void)
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;
# Line 352  static  struct { Line 350  static  struct {
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;
# Line 401  getdirs(dir, sb) Line 397  getdirs(dir, sb)
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;
# Line 436  find_open(start) Line 431  find_open(start)
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;
# Line 561  find_read(void) Line 554  find_read(void)
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];

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26