tb Implement a string stack

This commit is contained in:
2025-10-01 21:26:22 +02:00
parent 62cf07afc7
commit 73effcd52a
4 changed files with 101 additions and 13 deletions

View File

@ -20,9 +20,18 @@ typedef struct RtAlias {
char valbuf[RTALIAS_VALBUF_MAX];
} RtAlias;
typedef struct RtStringV {
struct RtStringV *next;
char *data;
} RtStringV;
void rt_init(void);
extern RtCmd *RTCMDS;
extern RtAlias *RTALIASES;
void rtstringv_stackpushcopy(char *s, size_t len);
char *rtstringv_stackpop(void);
char *rtstringv_stackpeek(void);
#endif // TB_RUNTIME_H_