#include "type.h" #include void type_print(const struct type *ty) { switch (ty->ty_id) { case TYPE_INT: printf("int"); break; case TYPE_STRING: printf("string"); break; case TYPE_HANDLE: printf("handle"); break; default: break; } }