moved tim.h to include/

This commit is contained in:
2026-01-09 02:35:38 +05:00
parent f7b4809db8
commit 025cede850
12 changed files with 26 additions and 28 deletions

View File

@@ -1,6 +1,6 @@
// Shows xterm-256 color palette.
#include "../tim.h"
#include "tim.h"
static void foo(int x, int y, int c) {
char buf[16] = {0};
@@ -27,4 +27,3 @@ int main(void) {
}
}
}

View File

@@ -1,6 +1,6 @@
// Test string functions.
#include "../tim.h"
#include "tim.h"
#define U(s) (uint8_t*)(""s), (sizeof(s) - 1)
#define TEST(t) printf("\33[3%s\33[0m %s\n", (t) ? "2mpass" : "1mfail", #t)
@@ -68,4 +68,3 @@ int main(void) {
TEST(is_wide_perhaps(U("")) == true);
TEST(is_wide_perhaps(U("𐍈")) == true);
}

View File

@@ -1,4 +1,4 @@
#include "../tim.h"
#include "tim.h"
static inline void test_screen(TimEvent_t* e) {
static TimEvent_t me;
@@ -118,4 +118,3 @@ int main(void) {
}
}
}

View File

@@ -1,7 +1,7 @@
// Test character width.
#include <assert.h>
#include "../tim.h"
#include "tim.h"
static int cp_to_utf8(int32_t cp, char* s) {
assert(cp > 0 && cp < 0x110000);