aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.clang-format2
-rw-r--r--CMakeLists.txt5
-rw-r--r--src/maze.c3
-rw-r--r--src/utils.c2
-rw-r--r--src/utils.h2
5 files changed, 7 insertions, 7 deletions
diff --git a/.clang-format b/.clang-format
index 1681843..8394980 100644
--- a/.clang-format
+++ b/.clang-format
@@ -6,4 +6,4 @@ BreakBeforeBraces: Allman
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 0
-AccessModifierOffset: -4 \ No newline at end of file
+AccessModifierOffset: -4
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f74c218..5847c70 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.0.0)
+set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
+
set(CMAKE_C_STANDARD 11)
project(mazerator_project C)
@@ -8,5 +10,4 @@ file(GLOB SOURCES src/*.c)
add_executable(mazerator ${SOURCES})
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
-
+SET(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -Wall)
diff --git a/src/maze.c b/src/maze.c
index d2d7202..92e7fc8 100644
--- a/src/maze.c
+++ b/src/maze.c
@@ -38,8 +38,7 @@ struct Maze maze_create(struct Dimensions dimens, char *wall)
struct Dimensions full_dimens = {
.width = dimens.width * 2 + 1,
- .height = dimens.height * 2 + 1
- };
+ .height = dimens.height * 2 + 1};
maze.full_dimens = full_dimens;
diff --git a/src/utils.c b/src/utils.c
index ce3dcd4..93f7c53 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -14,4 +14,4 @@ int is_number(char *str)
return 0;
}
return 1;
-} \ No newline at end of file
+}
diff --git a/src/utils.h b/src/utils.h
index 357f0d2..a1b69e1 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -3,4 +3,4 @@
int is_number(char *str);
-#endif \ No newline at end of file
+#endif