tb Command aliases, preloading scripts
This commit is contained in:
@ -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_
|
||||
|
Reference in New Issue
Block a user