diff options
-rw-r--r-- | lsp-parse.c | 2 | ||||
-rw-r--r-- | lsp-write.c | 2 | ||||
-rw-r--r-- | menu.c | 2 | ||||
-rw-r--r-- | node.c | 2 | ||||
-rw-r--r-- | os-posix.c | 2 | ||||
-rw-r--r-- | os-win.c | 2 | ||||
-rw-r--r-- | pcre-inc.h | 8 | ||||
-rw-r--r-- | syntax.c | 2 | ||||
-rw-r--r-- | tags.c | 2 | ||||
-rw-r--r-- | ted.c | 2 | ||||
-rw-r--r-- | text.h | 11 | ||||
-rw-r--r-- | ui.c | 2 |
12 files changed, 33 insertions, 6 deletions
diff --git a/lsp-parse.c b/lsp-parse.c index c6c15ff..7bbcbd1 100644 --- a/lsp-parse.c +++ b/lsp-parse.c @@ -1,3 +1,5 @@ +// reading messages from the LSP server + #define LSP_INTERNAL 1 #include "lsp.h" #include "util.h" diff --git a/lsp-write.c b/lsp-write.c index 48229c8..bb41d03 100644 --- a/lsp-write.c +++ b/lsp-write.c @@ -1,3 +1,5 @@ +// writing messages to the LSP server + #define LSP_INTERNAL 1 #include "lsp.h" #include "util.h" @@ -1,3 +1,5 @@ +// deals with all of ted's menus ("open" menu, "save as" menu, etc.) + #include "ted.h" static void menu_close_with_next(Ted *ted, Menu next) { @@ -1,3 +1,5 @@ +// deals with ted's split-screen feature + #include "ted.h" void node_switch_to_tab(Ted *ted, Node *node, u16 new_tab_index) { @@ -1,3 +1,5 @@ +// POSIX implementation of OS functions + #include "os.h" #include "util.h" #include <sys/types.h> @@ -1,3 +1,5 @@ +// windows implementation of OS functions + #include "os.h" #include <sys/types.h> #include <sys/stat.h> @@ -1,3 +1,11 @@ +// includes pcre2.h with the appropriate preprocessor definitions. +// do not include pcre2.h directly. + +#ifndef PCRE_INC_H_ +#define PCRE_INC_H_ + #define PCRE2_STATIC #define PCRE2_CODE_UNIT_WIDTH 32 #include <pcre2.h> + +#endif // PCRE_INC_H_ @@ -1,3 +1,5 @@ +// syntax highlighting for ted + #include "ted.h" #include "keywords.h" @@ -1,3 +1,5 @@ +// support for ctags go-to-definition and completion + #include "ted.h" #include "pcre-inc.h" @@ -1,3 +1,5 @@ +// various core ted functions (opening files, displaying errors, etc.) + #include "ted.h" void die(const char *fmt, ...) { @@ -1,9 +1,3 @@ -#ifndef TEXT_H_ -#define TEXT_H_ - -#include "base.h" -#include "util.h" - // A text-rendering interface. // Example usage: // Font *font = text_font_load("font.ttf", 18); @@ -13,6 +7,11 @@ // text_render(font); // } +#ifndef TEXT_H_ +#define TEXT_H_ + +#include "base.h" +#include "util.h" typedef struct Font Font; @@ -1,3 +1,5 @@ +// various UI elements used by ted + #include "ted.h" #if __unix__ |