still fixing assignable type checking
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
|
||||
Constant_Stack *head = NULL;
|
||||
int temp2_count = 0;
|
||||
int temp3_count = 0;
|
||||
|
||||
void printdebug_impl(char *file, int line, const char *format, ...) {
|
||||
if (DEBUG) {
|
||||
@ -24,6 +25,12 @@ char *temp_var_gen() {
|
||||
temp2_count++;
|
||||
return ret;
|
||||
}
|
||||
char *arg_var_gen() {
|
||||
char *ret = calloc(9, sizeof(*ret));
|
||||
sprintf(ret, "&t%d", temp3_count);
|
||||
temp3_count++;
|
||||
return ret;
|
||||
}
|
||||
|
||||
Constant_Stack *Push(TableNode *type, void *value, bool isConst) {
|
||||
if (type == NULL || type == undefined) {
|
||||
|
Reference in New Issue
Block a user