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 COMPOSITOR_H
#define COMPOSITOR_H
#include "aliases/aliases.h"
#include "aliases.h"
i32 run_main_loop(void);

View File

@@ -1,7 +1,7 @@
#ifndef MATH_UTILS_H
#define MATH_UTILS_H
#include "aliases/aliases.h"
#include "aliases.h"
#define square(x) (x * x)
#define absolute(x) (x < 0.0 ? x * -1.0 : x)

View File

@@ -1,7 +1,7 @@
#ifndef NODES_H
#define NODES_H
#include "aliases/aliases.h"
#include "aliases.h"
#include "ui.h"
#define MAX_NODES 1024

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,

View File

@@ -2,7 +2,7 @@
#define UI_H
#include "SDL_events.h"
#include "aliases/aliases.h"
#include "aliases.h"
#include "window.h"
#include <stdbool.h>

View File

@@ -1,7 +1,7 @@
#ifndef WINDOW_H
#define WINDOW_H
#include "aliases/aliases.h"
#include "aliases.h"
#include <SDL2/SDL_pixels.h>
#include <SDL2/SDL_render.h>
#include <SDL2/SDL_video.h>