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

Diff of /global/htags/dupindex.c

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

revision 1.9 by shigio, Tue Mar 29 04:43:18 2005 UTC revision 1.10 by shigio, Mon Apr 4 01:05:08 2005 UTC
# Line 155  makedupindex() Line 155  makedupindex()
155                                  }                                                                }                              
156                                  /* single entry */                                  /* single entry */
157                                  if (first_line[0]) {                                  if (first_line[0]) {
                                         char *lno, *filename;  
   
158                                          if (split(first_line, 3, &ptable) < 3) {                                          if (split(first_line, 3, &ptable) < 3) {
159                                                  recover(&ptable);                                                  recover(&ptable);
160                                                  die("too small number of parts.(2)\n'%s'", _);                                                  die("too small number of parts.(2)\n'%s'", _);
161                                          }                                          }
162                                          lno = ptable.part[1].start;                                          snprintf(buf, sizeof(buf), "%s %s", ptable.part[PART_LNO].start, ptable.part[PART_PATH].start);
                                         filename = ptable.part[2].start;  
                                         snprintf(buf, sizeof(buf), "%s %s", lno, filename);  
163                                          cache_put(db, prev, buf);                                          cache_put(db, prev, buf);
164                                          recover(&ptable);                                          recover(&ptable);
165                                  }                                  }
# Line 215  makedupindex() Line 211  makedupindex()
211                  }                  }
212                  if (first_line[0]) {                  if (first_line[0]) {
213                          SPLIT ptable;                          SPLIT ptable;
                         char *lno, *filename;  
214    
215                          if (split(first_line, 3, &ptable) < 3) {                          if (split(first_line, 3, &ptable) < 3) {
216                                  recover(&ptable);                                  recover(&ptable);
217                                  die("too small number of parts.(3)\n'%s'", _);                                  die("too small number of parts.(3)\n'%s'", _);
218                          }                          }
219                          lno = ptable.part[1].start;                          snprintf(buf, sizeof(buf), "%s %s", ptable.part[PART_LNO].start, ptable.part[PART_PATH].start);
                         filename = ptable.part[2].start;  
                         snprintf(buf, sizeof(buf), "%s %s", lno, filename);  
220                          cache_put(db, prev, buf);                          cache_put(db, prev, buf);
221                          recover(&ptable);                          recover(&ptable);
222                  }                  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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