4-variable-simplifier/scope/variable/new.c
2026-04-25 16:00:10 -04:00

22 lines
314 B
C

#include <debug.h>
#include "struct.h"
#include "new.h"
struct variable* new_variable(
struct string* name,
truthtable_t value)
{
ENTER;
struct variable* this = smalloc(sizeof(*this));
this->name = inc_string(name);
this->value = value;
EXIT;
return this;
}