summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorjussi2024-02-18 19:46:50 +0200
committerjussi2024-02-18 19:46:50 +0200
commit836c9d1d0005c32714c89b3adecbb232472b494a (patch)
tree885fcafb39079e83fbc7f66b5b4b2b2dc77aa321 /src/state.c
parent9b27daefc225752f3f24ea862e9c2be13f8addf6 (diff)
downloadreilua-enhanced-836c9d1d0005c32714c89b3adecbb232472b494a.tar.gz
reilua-enhanced-836c9d1d0005c32714c89b3adecbb232472b494a.tar.bz2
reilua-enhanced-836c9d1d0005c32714c89b3adecbb232472b494a.zip
Pointer variable declaration style change.
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state.c b/src/state.c
index 716bf4e..a3d5b20 100644
--- a/src/state.c
+++ b/src/state.c
@@ -6,7 +6,7 @@
State *state;
-bool stateInit( int argn, const char **argc, const char *exePath ) {
+bool stateInit( int argn, const char** argc, const char* exePath ) {
state = malloc( sizeof( State ) );
state->exePath = malloc( STRING_LEN * sizeof( char ) );
@@ -32,7 +32,7 @@ bool stateInit( int argn, const char **argc, const char *exePath ) {
state->defaultMaterial = LoadMaterialDefault();
state->defaultTexture = (Texture){ 1, 1, 1, 1, 7 };
state->RLGLcurrentShaderLocs = malloc( RL_MAX_SHADER_LOCATIONS * sizeof( int ) );
- int *defaultShaderLocs = rlGetShaderLocsDefault();
+ int* defaultShaderLocs = rlGetShaderLocsDefault();
for ( int i = 0; i < RL_MAX_SHADER_LOCATIONS; i++ ) {
state->RLGLcurrentShaderLocs[i] = defaultShaderLocs[i];
@@ -45,7 +45,7 @@ bool stateInit( int argn, const char **argc, const char *exePath ) {
return state->run;
}
-void stateInitInterpret( int argn, const char **argc ) {
+void stateInitInterpret( int argn, const char** argc ) {
state = malloc( sizeof( State ) );
luaInit( argn, argc );
}