refactor: remove conditional compilation layers

This commit is contained in:
2026-08-12 17:27:42 +09:00
parent 91931196e2
commit 0d06ba43cd
4 changed files with 19 additions and 47 deletions

View File

@@ -1,6 +1,11 @@
#define STRANS_TEST_ENGINE
#include "../strans.c"
#include "test.h"
#include "../cutest/cutest.h"
extern Lang testvi;
Str mkstr(char*);
int checkstr(struct ct*, char*, char*, Str*);
Str shownpre(Im*);
static int typekeys(struct ct*, char*, Str*);

View File

@@ -1,12 +1,6 @@
#ifndef STRANS_TEST_H
#define STRANS_TEST_H
#include "../cutest/cutest.h"
#ifndef STRANS_TEST_ENGINE
#include "../dat.h"
#include "../fn.h"
#endif
extern Lang testvi;
@@ -72,5 +66,3 @@ void ipc_response_empty_and_preedit(struct ct*);
void ipc_response_max_and_drain(struct ct*);
void ipc_response_fragmented_and_truncated(struct ct*);
void ipc_broken_peer_send(struct ct*);
#endif