apply new formatting rules to the whole project

This commit is contained in:
2025-07-24 11:40:12 +02:00
parent cdf13b7529
commit 1d5df8df0a
12 changed files with 37 additions and 37 deletions

View File

@@ -4,7 +4,7 @@
#include <GLFW/glfw3.h>
void key_callback(GLFWwindow* win, int key, int scancode, int action, int mods) {
void key_callback(GLFWwindow *win, int key, int scancode, int action, int mods) {
(void)win, (void)key, (void)scancode, (void)action, (void)mods; // make the compiler shut up as this is fine
#ifndef NDEBUG
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)

View File

@@ -4,4 +4,4 @@
#include <GLFW/glfw3.h>
void key_callback(GLFWwindow* win, int key, int scancode, int action, int mods);
void key_callback(GLFWwindow *win, int key, int scancode, int action, int mods);

View File

@@ -7,4 +7,4 @@
#include <GLFW/glfw3.h>
int render_init(void);
void render_update(GLFWwindow* win);
void render_update(GLFWwindow *win);

View File

@@ -12,7 +12,7 @@
#define NAM_E(name) _binary_res_##name##_end // name of an end variable
// macro for generating the variable declarations
#define DEF_GLSL(name) \
#define DEF_GLSL(name) \
extern char const NAM_S(name)[]; \
extern char const NAM_E(name)[]
@@ -24,7 +24,7 @@ DEF_GLSL(sh_geom_glsl);
// NOLINTEND
/* compile a shader */
static GLuint shader_compile(GLenum type, char const* src, size_t len) {
static GLuint shader_compile(GLenum type, const char *src, size_t len) {
int ilen = len;
GLuint shader = glCreateShader(type);
glShaderSource(shader, 1, &src, &ilen);

View File

@@ -16,7 +16,7 @@
#define WIN_DEFAULT_WIDTH 640
#define WIN_DEFAULT_HEIGHT 480
static GLFWwindow* win = NULL;
static GLFWwindow *win = NULL;
int window_init(void) {
#ifndef NDEBUG