/[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.47 by shigio, Wed Aug 24 01:58:52 2005 UTC revision 1.48 by shigio, Wed Aug 24 05:44:51 2005 UTC
# Line 81  static FILE *ip; Line 81  static FILE *ip;
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);
# Line 142  prepare_source(void) Line 140  prepare_source(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, "\\.(");       /* ) */
# Line 250  prepare_skip(void) Line 249  prepare_skip(void)
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                   */                   */
# Line 554  find_read(void) Line 555  find_read(void)
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 (;;) {

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

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