#ifndef CGEN_PRV_H #define CGEN_PRV_H #include "cgen.h" #include "call.h" #include "from.h" #include "print.h" #include "set.h" #include "storage.h" struct cgen_drv { int (*print)(const struct print *, struct cgen *, const char *); int (*gl)(const struct storage *, struct cgen *); int (*ws)(const struct storage *, struct cgen *); int (*call)(const struct call *, struct cgen *); int (*from)(const struct from *, struct cgen *); int (*set)(const struct set *, struct cgen *); int (*fn)(const struct fn *, struct cgen *); void (*free)(struct cgen_prv *); }; int cgen_qbe(const struct ast *ast, struct cgen *c); #endif