tb Command aliases, preloading scripts

This commit is contained in:
2025-09-19 19:55:35 +02:00
parent 24a90b24e8
commit 40b7dcedf8
6 changed files with 66 additions and 7 deletions

View File

@ -11,8 +11,18 @@ typedef struct RtCmd {
bool (*fn)(struct Token *tks);
} RtCmd;
#define RTALIAS_NAMEBUF_MAX 0x100
#define RTALIAS_VALBUF_MAX 0x1000
typedef struct RtAlias {
struct RtAlias *next;
char namebuf[RTALIAS_NAMEBUF_MAX];
char valbuf[RTALIAS_VALBUF_MAX];
} RtAlias;
void rt_init(void);
extern RtCmd *RTCMDS;
extern RtAlias *RTALIASES;
#endif // TB_RUNTIME_H_