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