summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
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"