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

Diff of /global/libutil/gtagsop.c

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

revision 1.78 by shigio, Tue Oct 11 00:52:26 2005 UTC revision 1.79 by shigio, Tue Oct 11 01:37:59 2005 UTC
# Line 380  gtags_put(GTOP *gtop, const char *tag, c Line 380  gtags_put(GTOP *gtop, const char *tag, c
380          else {          else {
381                  SPLIT ptable;                  SPLIT ptable;
382                  struct sh_entry *entry;                  struct sh_entry *entry;
                 VARRAY *vb;  
383                  int *lno;                  int *lno;
384    
385                  if (split((char *)ctags_x, 4, &ptable) != 4) {                  if (split((char *)ctags_x, 4, &ptable) != 4) {
# Line 414  gtags_put(GTOP *gtop, const char *tag, c Line 413  gtags_put(GTOP *gtop, const char *tag, c
413                   */                   */
414                  entry = strhash_assign(gtop->pool, ptable.part[PART_TAG].start, 1);                  entry = strhash_assign(gtop->pool, ptable.part[PART_TAG].start, 1);
415                  if (entry->value == NULL)                  if (entry->value == NULL)
416                          entry->value = vb = varray_open(sizeof(int), 100);                          entry->value = varray_open(sizeof(int), 100);
417                  else                  lno = varray_append((VARRAY *)entry->value);
                         vb = (VARRAY *)entry->value;  
                 lno = varray_append(vb);  
418                  *lno = atoi(ptable.part[PART_LNO].start);                  *lno = atoi(ptable.part[PART_LNO].start);
419                  recover(&ptable);                  recover(&ptable);
420          }          }

Legend:
Removed from v.1.78  
changed lines
  Added in v.1.79

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