diff options
author | Paul Duncan <pabs@pablotron.org> | 2019-01-15 09:35:13 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2019-01-15 09:35:13 -0500 |
commit | faf8258720a4224ced7b9c161afdbb29946e6eb5 (patch) | |
tree | 509ac5a1c43f1e2bd2a4cd7d5204cd61ac67c146 /src | |
parent | 3e658ed87b5795b2be8f50d683dc19241aba0111 (diff) | |
download | sok-faf8258720a4224ced7b9c161afdbb29946e6eb5.tar.bz2 sok-faf8258720a4224ced7b9c161afdbb29946e6eb5.zip |
s/sok-text/text/, s/sok-sdk/sok/, mv src/{text,levels}/levels.[hc], and remove some extraneous headers
Diffstat (limited to 'src')
-rw-r--r-- | src/levels/levels.c (renamed from src/text/levels.c) | 4 | ||||
-rw-r--r-- | src/levels/levels.h (renamed from src/text/levels.h) | 3 | ||||
-rw-r--r-- | src/sdl/draw.h | 2 | ||||
-rw-r--r-- | src/sdl/main.c | 2 | ||||
-rw-r--r-- | src/solve/main.c | 3 | ||||
-rw-r--r-- | src/text/draw.h | 2 | ||||
-rw-r--r-- | src/text/main.c | 4 |
7 files changed, 7 insertions, 13 deletions
diff --git a/src/text/levels.c b/src/levels/levels.c index a091b7f..e8ab085 100644 --- a/src/text/levels.c +++ b/src/levels/levels.c @@ -1,7 +1,3 @@ -#include <stdbool.h> // bool -#include <string.h> // atoi() -#include <stdlib.h> // EXIT_{FAILURE,SUCCESS} -#include <stdio.h> #include "../core/sok.h" #include "levels.h" diff --git a/src/text/levels.h b/src/levels/levels.h index 79ef494..b9fa1aa 100644 --- a/src/text/levels.h +++ b/src/levels/levels.h @@ -4,7 +4,7 @@ #include <stddef.h> // size_t typedef struct { - char *pack, *name, *data; + const char *pack, *name, *data; } level_t; const level_t *levels_get_level(const size_t); @@ -12,4 +12,3 @@ const level_t *levels_get_level(const size_t); size_t levels_get_num_levels(void); #endif /* LEVELS_H */ - diff --git a/src/sdl/draw.h b/src/sdl/draw.h index 956e474..7be5a28 100644 --- a/src/sdl/draw.h +++ b/src/sdl/draw.h @@ -5,7 +5,7 @@ #include <SDL.h> #include <SDL_ttf.h> #include "../core/sok.h" -#include "../text/levels.h" +#include "../levels/levels.h" #include "theme.h" // arbitrary diff --git a/src/sdl/main.c b/src/sdl/main.c index 6ca9b86..28da951 100644 --- a/src/sdl/main.c +++ b/src/sdl/main.c @@ -3,7 +3,7 @@ #include <string.h> // strerror #include <errno.h> // errno #include <SDL.h> -#include "../text/levels.h" +#include "../levels/levels.h" #include "../core/sok.h" #include "util.h" #include "action.h" diff --git a/src/solve/main.c b/src/solve/main.c index c45c5bb..82b3031 100644 --- a/src/solve/main.c +++ b/src/solve/main.c @@ -1,10 +1,9 @@ -#include <stdbool.h> // bool #include <string.h> // atoi() #include <stdlib.h> // EXIT_{FAILURE,SUCCESS} #include <stdio.h> #include "../core/sok.h" #include "../text/util.h" -#include "../text/levels.h" +#include "../levels/levels.h" static void solve_on_error( diff --git a/src/text/draw.h b/src/text/draw.h index c3add0d..a0a6967 100644 --- a/src/text/draw.h +++ b/src/text/draw.h @@ -3,7 +3,7 @@ #include <stddef.h> #include "../core/sok.h" -#include "levels.h" +#include "../levels/levels.h" void draw( const sok_ctx_t * const, diff --git a/src/text/main.c b/src/text/main.c index 1f76bf3..8e89bed 100644 --- a/src/text/main.c +++ b/src/text/main.c @@ -1,10 +1,10 @@ #include <stdbool.h> // bool #include <string.h> // atoi() #include <stdlib.h> // EXIT_{FAILURE,SUCCESS} -#include <stdio.h> +#include <stdio.h> // printf(), fputs() #include "../core/sok.h" +#include "../levels/levels.h" #include "util.h" -#include "levels.h" #include "action.h" #include "draw.h" |