/[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.155 by shigio, Mon Nov 7 12:17:49 2005 UTC revision 1.156 by h-iwamoto, Mon Nov 7 14:53:00 2005 UTC
# Line 296  main(int argc, char **argv) Line 296  main(int argc, char **argv)
296                  STRBUF *ib = strbuf_open(MAXBUFLEN);                  STRBUF *ib = strbuf_open(MAXBUFLEN);
297                  const char *fid;                  const char *fid;
298                  char *p, *q;                  char *p, *q;
299                  int c;                  int c, type;
300    
301                  /*                  /*
302                   * [Job]                   * [Job]
# Line 309  main(int argc, char **argv) Line 309  main(int argc, char **argv)
309                   *                              v                   *                              v
310                   * <a href='http://xxx/global/S/39.html#110'>main</a>\n                   * <a href='http://xxx/global/S/39.html#110'>main</a>\n
311                   *                   *
312                   * If the file name is not found in GPATH, change into the path to CGI script.                   * If the file is not source code, change into the path to CGI script.
313                   * <a href='http://xxx/global/S/ ./README .html#9'>main</a>\n                   * <a href='http://xxx/global/S/ ./README .html#9'>main</a>\n
314                   *                              |                   *                              |
315                   *                              v                   *                              v
# Line 341  main(int argc, char **argv) Line 341  main(int argc, char **argv)
341                          *q++ = '\0';                          *q++ = '\0';
342                          /*                          /*
343                           * Convert path name into URL.                           * Convert path name into URL.
344                           * The output of 'global -xgo' may include lines about                           * The output of 'global -xgo' and 'global -xPo' may include
345                           * files other than source code. In this case, file id                           * lines about files other than source code. In this case,
346                           * doesn't exist in GPATH.                           * the HTML file corresponding to file id may not exist.
347                           */                           */
348                          fid = gpath_path2fid(p, NULL);                          fid = gpath_path2fid(p, &type);
349                          if (fid) {                          if (fid && type == GPATH_SOURCE) {
350                                  fputs("/S/", stdout);                                  fputs("/S/", stdout);
351                                  fputs(fid, stdout);                                  fputs(fid, stdout);
352                                  fputs(q, stdout);                                  fputs(q, stdout);

Legend:
Removed from v.1.155  
changed lines
  Added in v.1.156

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