diff options
Diffstat (limited to 'stmt.h')
| -rw-r--r-- | stmt.h | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -0,0 +1,32 @@ +#ifndef STMTS_H +#define STMTS_H + +#include "cgen.h" +#include "prv.h" +#include "call.h" +#include "display.h" +#include "set.h" + +struct stmt +{ + enum + { + DISPLAY, + SET, + CALL + } type; + + union + { + struct display display; + struct set set; + struct call call; + } 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 |
