diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-05-09 02:56:07 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-06-10 00:12:26 +0200 |
| commit | 3c76d7a24e9748cab54c857e486c1eb6eb466ada (patch) | |
| tree | 4cb345a0378e219b8a4d062ba0e0800ccd0f6010 /stmt.h | |
| download | slcob-3c76d7a24e9748cab54c857e486c1eb6eb466ada.tar.gz | |
Diffstat (limited to 'stmt.h')
| -rw-r--r-- | stmt.h | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -0,0 +1,35 @@ +#ifndef STMTS_H +#define STMTS_H + +#include "cgen.h" +#include "prv.h" +#include "call.h" +#include "display.h" +#include "set.h" +#include "warn.h" + +struct stmt +{ + enum + { + DISPLAY, + SET, + CALL, + WARN + } type; + + union + { + struct display display; + struct set set; + struct call call; + struct warn warn; + } u; +}; + +struct stmt *stmt_cur(const struct prv *p); +int stmt_cgen(const struct stmt *s, struct cgen *c); +void stmt_free(struct stmt *s); +extern const struct seq stmts[]; + +#endif |
