117 |
continue; |
continue; |
118 |
prev[0] = 0; |
prev[0] = 0; |
119 |
first_line[0] = 0; |
first_line[0] = 0; |
120 |
snprintf(command, sizeof(command), "global -xn%s%s \".*\" | gtags --sort", dynamic ? "n" : "", option); |
snprintf(command, sizeof(command), "global -xn%s%s \".*\"%s", |
121 |
|
dynamic ? "n" : "", option, |
122 |
|
(!dynamic || db == GSYMS) ? " | gtags --sort" : ""); |
123 |
if ((ip = popen(command, "r")) == NULL) |
if ((ip = popen(command, "r")) == NULL) |
124 |
die("cannot execute command '%s'.", command); |
die("cannot execute command '%s'.", command); |
125 |
while ((ctags_x = strbuf_fgets(sb, ip, STRBUF_NOCRLF)) != NULL) { |
while ((ctags_x = strbuf_fgets(sb, ip, STRBUF_NOCRLF)) != NULL) { |