summaryrefslogtreecommitdiff
path: root/tags.c
diff options
context:
space:
mode:
Diffstat (limited to 'tags.c')
-rw-r--r--tags.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tags.c b/tags.c
index ebd5497..1d62f00 100644
--- a/tags.c
+++ b/tags.c
@@ -347,26 +347,26 @@ top:;
return success;
}
-SelectorEntry *tags_get_entries(Ted *ted) {
+SymbolInfo *tags_get_symbols(Ted *ted) {
// read tags file and extract tag names
char const *filename = tags_filename(ted, true);
if (!filename) return NULL;
FILE *file = fopen(filename, "rb");
if (!file) return NULL;
- SelectorEntry *entries = NULL;
+ SymbolInfo *infos = NULL;
u32 color = ted_color(ted, COLOR_TEXT);
if (file) {
char line[1024];
while (fgets(line, sizeof line, file)) {
if (line[0] != '!') { // tag metadata is formatted as tag names beginning with !
size_t len = strcspn(line, "\t");
- SelectorEntry *entry = arr_addp(entries);
- entry->name = strn_dup(line, len);
- entry->color = color;
+ SymbolInfo *info = arr_addp(infos);
+ info->name = strn_dup(line, len);
+ info->color = color;
}
}
fclose(file);
}
- return entries;
+ return infos;
}