Update code to use stdlib

This commit is contained in:
2024-02-24 20:45:09 +00:00
parent 84873f1e98
commit 84cdb87a19
11 changed files with 26 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
#ifndef COMP_OPS_H
#define COMP_OPS_H
#include "aliases/aliases.h"
#include "aliases.h"
#include "nodes.h"
enum comp_ops {
@@ -18,7 +18,7 @@ i32 comp_sub(i32 a, i32 b);
i32 comp_mul(i32 a, i32 b);
i32 comp_div(i32 a, i32 b);
INTERNAL node_func ops[COUNT_COMP_OPS] = {
internal node_func ops[COUNT_COMP_OPS] = {
[COMP_OP_ADD] = comp_add,
[COMP_OP_SUB] = comp_sub,
[COMP_OP_MUL] = comp_mul,