summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-19 11:13:16 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-19 11:13:16 -0500
commit42572f5c445497296ae70100d5e51370c8bba410 (patch)
tree91547a16a90cd2531e7116cfea40c7989d90fbf5 /ted.h
parentf8f517df2becd809e36a3a315487eff26485f81a (diff)
started tags
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index e5bc126..4676fb7 100644
--- a/ted.h
+++ b/ted.h
@@ -79,6 +79,7 @@ typedef struct {
u8 padding;
u8 scrolloff;
char build_default_command[256];
+ char tags_filename[128];
// [i] = comma-separated string of file extensions for language i, or NULL for none
char *language_extensions[LANG_COUNT];
} Settings;
@@ -159,6 +160,18 @@ typedef struct {
BufferEdit *redo_history; // dynamic array of redo history
} TextBuffer;
+typedef struct {
+ char const *name;
+ char const *file;
+ char const *address;
+} Tag;
+
+typedef struct {
+ Tag *tags; // dynamic array of tags
+ char *file_data;
+ struct timespec last_modified; // time when tags file was last modified
+} TagsFile;
+
ENUM_U16 {
MENU_NONE,
MENU_OPEN,
@@ -254,6 +267,8 @@ typedef struct Ted {
bool build_shown; // are we showing the build output?
bool building; // is the build process running?
+ TagsFile tags;
+
BuildError *build_errors; // dynamic array of build errors
u32 build_error; // build error we are currently "on"