Skip to content

Commit e1e3c1a

Browse files
committed
fix: adjust include paths
1 parent 2648202 commit e1e3c1a

File tree

8 files changed

+17
-16
lines changed

8 files changed

+17
-16
lines changed

example/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
#include "oopetris_wrapper.h"
2+
#include <c_wrapper/wrapper.h>
33

44
#include <assert.h>
55
#include <inttypes.h>

src/c_wrapper/opaque_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#pragma once
44

5-
#include "oopetris_wrapper.h"
5+
#include "./wrapper.h"
66

77
#ifdef __cplusplus
88
extern "C" {

src/c_wrapper/wrapper.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11

22

3-
#include "core/game/mino_stack.hpp"
4-
#include "core/game/tetromino_type.hpp"
5-
#include "core/helper/input_event.hpp"
6-
#include "oopetris_wrapper.h"
7-
#include "opaque_types.h"
8-
#include "recordings/utility/additional_information.hpp"
9-
#include "recordings/utility/recording_writer.hpp"
3+
#include <core/game/mino_stack.hpp>
4+
#include <core/game/tetromino_type.hpp>
5+
#include <core/helper/input_event.hpp>
6+
#include <recordings/recordings.hpp>
7+
#include <recordings/utility/additional_information.hpp>
8+
#include <recordings/utility/recording_writer.hpp>
9+
10+
#include "./opaque_types.h"
11+
#include "./wrapper.h"
12+
1013
#include <filesystem>
1114
#include <memory>
1215
#include <utility>
@@ -32,7 +35,6 @@
3235
#include <core/core.hpp>
3336
#include <cstring>
3437
#include <ctime>
35-
#include <recordings/recordings.hpp>
3638

3739

3840
bool oopetris_is_recording_file(const char* file_path) {

tests/get_recording_information.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <criterion/criterion.h>
22
#include <criterion/new/assert.h>
33

4-
#include "oopetris_wrapper.h"
4+
#include <c_wrapper/wrapper.h>
55

66
Test(GetRecordingInformation, NullptrAsArgument) {
77
OOPetrisRecordingReturnValue* return_value = oopetris_get_recording_information(NULL);

tests/information.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <criterion/new/assert.h>
33
#include <string.h>
44

5-
#include "oopetris_wrapper.h"
5+
#include <c_wrapper/wrapper.h>
66

77
// this tests likely fail, if we update the lib, but this failure on version bump serves as remainder,to check, if other things need changing too, since wrapper may become outdated otherwise
88

tests/is_recording_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <criterion/criterion.h>
22

3-
#include "oopetris_wrapper.h"
3+
#include <c_wrapper/wrapper.h>
44

55
Test(IsRecordingFile, NullptrAsArgument) {
66
bool is_recordings_file = oopetris_is_recording_file(NULL);

tests/malloc_tests.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define OOPETRIS_REALLOC(p, s) mock_realloc(p, s)
88
#define OOPETRIS_FREE(p) mock_free(p)
99

10-
#include "oopetris_wrapper.h"
10+
#include <c_wrapper/wrapper.h>
1111

1212
// this tests likely fail, if we update the lib, but this failure on version bump serves as remainder,to check, if other things need changing too, since wrapper may become outdated otherwise
1313

tests/stb_ds.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ void assert_impl(bool x) {
2121
#define STBDS_ASSERT(x) assert_impl(x);
2222

2323

24-
#include "./thirdparty/stb_ds.h"
25-
24+
#include <c_wrapper/thirdparty/stb_ds.h>
2625

2726
#if defined(__GNUC__)
2827
#pragma GCC diagnostic pop

0 commit comments

Comments
 (0)