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 |
} |
} |
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); |
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 { |
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++) |
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. |