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

Diff of /global/gtags/gtags.c

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

revision 1.143 by h-iwamoto, Sun Sep 4 11:56:38 2005 UTC revision 1.144 by shigio, Tue Oct 4 07:59:03 2005 UTC
# Line 160  int exitflag = 0; Line 160  int exitflag = 0;
160  static const char *langmap = DEFAULTLANGMAP;  static const char *langmap = DEFAULTLANGMAP;
161    
162  void  void
163  onintr(signo)  onintr(int signo)
         int signo;  
164  {  {
165          signo = 0;      /* to satisfy compiler */          signo = 0;      /* to satisfy compiler */
166          exitflag = 1;          exitflag = 1;
# Line 184  signal_setup(void) Line 183  signal_setup(void)
183   * compare_dup_entry: compare function for sorting.   * compare_dup_entry: compare function for sorting.
184   */   */
185  static int  static int
186  compare_dup_entry(v1, v2)  compare_dup_entry(const void *v1, const void *v2)
         const void *v1;  
         const void *v2;  
187  {  {
188          const struct dup_entry *e1 = v1, *e2 = v2;          const struct dup_entry *e1 = v1, *e2 = v2;
189          int ret;          int ret;
# Line 200  compare_dup_entry(v1, v2) Line 197  compare_dup_entry(v1, v2)
197   * put_lines: sort and print duplicate lines   * put_lines: sort and print duplicate lines
198   */   */
199  static void  static void
200  put_lines(lines, entries, entry_count)  put_lines(char *lines, struct dup_entry *entries, int entry_count)
         char *lines;  
         struct dup_entry *entries;  
         int entry_count;  
201  {  {
202          int i;          int i;
203    
# Line 233  put_lines(lines, entries, entry_count) Line 227  put_lines(lines, entries, entry_count)
227  }  }
228    
229  int  int
230  main(argc, argv)  main(int argc, char **argv)
         int argc;  
         char *argv[];  
231  {  {
232          char root[MAXPATHLEN+1];          char root[MAXPATHLEN+1];
233          char dbpath[MAXPATHLEN+1];          char dbpath[MAXPATHLEN+1];
# Line 731  main(argc, argv) Line 723  main(argc, argv)
723   *      r)              0: not updated, 1: updated   *      r)              0: not updated, 1: updated
724   */   */
725  int  int
726  incremental(dbpath, root)  incremental(const char *dbpath, const char *root)
         const char *dbpath;  
         const char *root;  
727  {  {
728          struct stat statp;          struct stat statp;
729          time_t gtags_mtime;          time_t gtags_mtime;
# Line 877  incremental(dbpath, root) Line 867  incremental(dbpath, root)
867   *      i)      db              GTAGS, GRTAGS, GSYMS   *      i)      db              GTAGS, GRTAGS, GSYMS
868   */   */
869  void  void
870  updatetags(dbpath, root, deleteset, addlist, addtotal, db)  updatetags(const char *dbpath, const char *root, IDSET *deleteset, STRBUF *addlist, int addtotal, int db)
         const char *dbpath;  
         const char *root;  
         IDSET *deleteset;  
         STRBUF *addlist;  
         int addtotal;  
         int db;  
871  {  {
872          GTOP *gtop;          GTOP *gtop;
873          STRBUF *comline = strbuf_open(0);          STRBUF *comline = strbuf_open(0);
# Line 990  updatetags(dbpath, root, deleteset, addl Line 974  updatetags(dbpath, root, deleteset, addl
974   *      i)      db      GTAGS, GRTAGS, GSYMS   *      i)      db      GTAGS, GRTAGS, GSYMS
975   */   */
976  void  void
977  createtags(dbpath, root, db)  createtags(const char *dbpath, const char *root, int db)
         const char *dbpath;  
         const char *root;  
         int db;  
978  {  {
979          const char *path;          const char *path;
980          GTOP *gtop;          GTOP *gtop;
# Line 1118  createtags(dbpath, root, db) Line 1099  createtags(dbpath, root, db)
1099   *      r)              exit code   *      r)              exit code
1100   */   */
1101  int  int
1102  printconf(name)  printconf(const char *name)
         const char *name;  
1103  {  {
1104          int num;          int num;
1105          int exist = 1;          int exist = 1;
# Line 1149  static STRBUF *abspath; Line 1129  static STRBUF *abspath;
1129  static char basedir[MAXPATHLEN+1];  static char basedir[MAXPATHLEN+1];
1130  static int start_point;  static int start_point;
1131  void  void
1132  set_base_directory(root, cwd)  set_base_directory(const char *root, const char *cwd)
         const char *root;  
         const char *cwd;  
1133  {  {
1134          abspath = strbuf_open(MAXPATHLEN);          abspath = strbuf_open(MAXPATHLEN);
1135          strbuf_puts(abspath, root);          strbuf_puts(abspath, root);
# Line 1164  set_base_directory(root, cwd) Line 1142  set_base_directory(root, cwd)
1142          /* leave abspath unclosed. */          /* leave abspath unclosed. */
1143  }  }
1144  void  void
1145  put_converting(line, absolute, cxref)  put_converting(const char *line, int absolute, int cxref)
         const char *line;  
         int absolute;  
         int cxref;  
1146  {  {
1147          char buf[MAXPATHLEN+1];          char buf[MAXPATHLEN+1];
1148          const char *p = line;          const char *p = line;

Legend:
Removed from v.1.143  
changed lines
  Added in v.1.144

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