Files
my-os-project2/user/tb/runtime.h

29 lines
484 B
C

#ifndef TB_RUNTIME_H_
#define TB_RUNTIME_H_
#include <stdbool.h>
struct Token;
typedef struct RtCmd {
struct RtCmd *next;
char *cmdname;
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_