diff options
author | pommicket <pommicket@gmail.com> | 2022-12-30 14:21:35 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-30 14:21:35 -0500 |
commit | 91fc9b10e1700b482b13af1d25d95d80085a9b79 (patch) | |
tree | 8873099c6de0cefe8304f1d04c7be349e3e189ab /tags.c | |
parent | 66367583a3b57e37e9198838222f45d99e77d8ae (diff) |
go to definition
Diffstat (limited to 'tags.c')
-rw-r--r-- | tags.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; } |