summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-12 10:41:22 -0300
committerpommicket <pommicket@gmail.com>2023-08-12 10:41:22 -0300
commitdbf441cdc74245c5a5f567ae0165146cd74c3b92 (patch)
treef1ca3bdf3102445a000bbc6e2695333150d0c0a2 /build.c
parenta974b6192479e5f7f6d6fcc328313c76290f486d (diff)
more internralization
Diffstat (limited to 'build.c')
-rw-r--r--build.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/build.c b/build.c
index 63658b9..771fd6d 100644
--- a/build.c
+++ b/build.c
@@ -3,6 +3,18 @@
#include "ted-internal.h"
+struct BuildError {
+ char *path;
+ u32 line;
+ u32 column;
+ /// if this is 1, then column == UTF-32 index.
+ /// if this is 4, for example, then column 4 in a line starting with a tab would
+ /// be the character right after the tab.
+ u8 columns_per_tab;
+ /// which line in the build output corresponds to this error
+ u32 build_output_line;
+};
+
void build_stop(Ted *ted) {
if (ted->building)
process_kill(&ted->build_process);