From a13750209b3836a4a6a16a7ba881625f397f160f Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Thu, 7 Mar 2024 20:19:26 +0100 Subject: Implement timers properly The timers shown with `M-x timers` are now actual timings. --- src/dged/s8.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/dged/s8.h (limited to 'src/dged/s8.h') diff --git a/src/dged/s8.h b/src/dged/s8.h new file mode 100644 index 0000000..955a642 --- /dev/null +++ b/src/dged/s8.h @@ -0,0 +1,18 @@ +#ifndef _S8_H +#define _S8_H + +#include +#include + +#define s8(s) ((struct s8){s, strlen(s)}) + +struct s8 { + char *s; + uint32_t l; +}; + +bool s8eq(struct s8 s1, struct s8 s2); +int s8cmp(struct s8 s1, struct s8 s2); +char *s8tocstr(struct s8 s); + +#endif -- cgit v1.2.3