summaryrefslogtreecommitdiff
path: root/ted-internal.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-09-24 10:32:07 -0400
committerpommicket <pommicket@gmail.com>2023-09-24 10:32:07 -0400
commit114c05577dc3306b7c416fb0cf02a431e48de952 (patch)
treeb2c6057bf2c0cca7f4525c99e0ae447599c724f7 /ted-internal.h
parentcdf94949a4a12b0f99d855dcfb113905ac8a90f4 (diff)
nicer logging (always show pid, timestamp)
Diffstat (limited to 'ted-internal.h')
-rw-r--r--ted-internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ted-internal.h b/ted-internal.h
index 0efa6b6..2a6eb27 100644
--- a/ted-internal.h
+++ b/ted-internal.h
@@ -265,6 +265,8 @@ struct Ted {
LSP *lsps[TED_LSP_MAX + 1];
/// current time (see time_get_seconds), as of the start of this frame
double frame_time;
+ /// current time as a human readable string (used for logs)
+ char frame_time_string[64];
Macro *macros;
Macro *recording_macro;
@@ -345,6 +347,8 @@ struct Ted {
Usages *usages;
RenameSymbol *rename_symbol;
Formatting *formatting;
+ /// process ID
+ int pid;
FILE *log;
@@ -708,6 +712,8 @@ void syntax_quit(void);
SymbolInfo *tags_get_symbols(Ted *ted);
// === ted.c ===
+/// update `ted->frame_time`
+void ted_update_time(Ted *ted);
/// set ted's active buffer to something nice
void ted_reset_active_buffer(Ted *ted);
/// set ted's error message to the buffer's error.