/[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.111 by shigio, Tue May 10 05:17:52 2005 UTC revision 1.112 by h-iwamoto, Mon Jun 20 17:18:12 2005 UTC
# Line 181  match(curtag, line) Line 181  match(curtag, line)
181          for (p = curtag; *p; p++)          for (p = curtag; *p; p++)
182                  if (*p != *q++)                  if (*p != *q++)
183                          return 0;                          return 0;
184          if (!isspace(*q))          if (!isspace((unsigned char)*q))
185                  return 0;                  return 0;
186          return 1;          return 1;
187  }  }
# Line 424  main(argc, argv) Line 424  main(argc, argv)
424                                  die("gtags --sed: path name not found.");                                  die("gtags --sed: path name not found.");
425                          *p++ = '\0';                          *p++ = '\0';
426                          fputs(ctags_x, stdout);                          fputs(ctags_x, stdout);
427                          while (*p && !isspace(*p))                          while (*p && !isspace((unsigned char)*p))
428                                  p++;                                  p++;
429                          fputs(sed_string, stdout);                          fputs(sed_string, stdout);
430                          fputs(p, stdout);                          fputs(p, stdout);
# Line 460  main(argc, argv) Line 460  main(argc, argv)
460                                  /* curtag = current tag name */                                  /* curtag = current tag name */
461                                  STRBUF *curtag = strbuf_open(0);                                  STRBUF *curtag = strbuf_open(0);
462                                  const char *p = ctags_x;                                  const char *p = ctags_x;
463                                  while (!isspace(*p))                                  while (!isspace((unsigned char)*p))
464                                          strbuf_putc(curtag, *p++);                                          strbuf_putc(curtag, *p++);
465                                  /* read until next tag name */                                  /* read until next tag name */
466                                  do {                                  do {
# Line 1033  put_converting(line, absolute, cxref) Line 1033  put_converting(line, absolute, cxref)
1033           */           */
1034          if (cxref) {          if (cxref) {
1035                  /* print tag name */                  /* print tag name */
1036                  for (; *p && !isspace(*p); p++)                  for (; *p && !isspace((unsigned char)*p); p++)
1037                          (void)putc(*p, stdout);                          (void)putc(*p, stdout);
1038                  /* print blanks and line number */                  /* print blanks and line number */
1039                  for (; *p && *p != '.'; p++)                  for (; *p && *p != '.'; p++)
# Line 1045  put_converting(line, absolute, cxref) Line 1045  put_converting(line, absolute, cxref)
1045           * make absolute path.           * make absolute path.
1046           */           */
1047          strbuf_setlen(abspath, start_point);          strbuf_setlen(abspath, start_point);
1048          for (; *p && !isspace(*p); p++)          for (; *p && !isspace((unsigned char)*p); p++)
1049                  strbuf_putc(abspath, *p);                  strbuf_putc(abspath, *p);
1050          /*          /*
1051           * put path with converting.           * put path with converting.

Legend:
Removed from v.1.111  
changed lines
  Added in v.1.112

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