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

Diff of /global/global/global.c

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

revision 1.104 by shigio, Sun Sep 4 02:00:45 2005 UTC revision 1.105 by shigio, Sun Sep 4 02:44:32 2005 UTC
# Line 60  void parsefile(int, char **, const char Line 60  void parsefile(int, char **, const char
60  static int exec_parser(const char *, STRBUF *, const char *, const char *, FILE *);  static int exec_parser(const char *, STRBUF *, const char *, const char *, FILE *);
61  void printtag(FILE *, const char *);  void printtag(FILE *, const char *);
62  int search(const char *, const char *, const char *, int);  int search(const char *, const char *, const char *, int);
 int includepath(const char *, const char *);  
63  void ffformat(char *, int, const char *);  void ffformat(char *, int, const char *);
64    
65  STRBUF *sortfilter;                     /* sort filter          */  STRBUF *sortfilter;                     /* sort filter          */
# Line 1117  search(pattern, root, dbpath, db) Line 1116  search(pattern, root, dbpath, db)
1116          return count;          return count;
1117  }  }
1118  /*  /*
  * includepath: check if the path included in tag line or not.  
  *  
  *      i)      line    tag line  
  *      i)      path    path  
  *      r)              0: doesn't included, 1: included  
  */  
 int  
 includepath(line, path)  
         const char *line;  
         const char *path;  
 {  
         const char *p;  
         int length;  
   
         if (!(p = locatestring(line, "./", MATCH_FIRST)))  
                 die("invalid tag format (path not found).");  
         length = strlen(path);  
         if (strncmp(p, path, length))  
                 return 0;  
         p += length;  
         if (*p == ' ' || *p == '\t')  
                 return 1;  
         return 0;  
 }  
 /*  
1119   * ffformat: string copy with converting blank chars into %ff format.   * ffformat: string copy with converting blank chars into %ff format.
1120   *   *
1121   *      o)      to      result   *      o)      to      result

Legend:
Removed from v.1.104  
changed lines
  Added in v.1.105

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