mirror of
https://github.com/fooflington/wordsearch.git
synced 2025-01-22 09:19:55 +00:00
fixes
This commit is contained in:
parent
755417a3f0
commit
91b07c4ff7
@ -1,5 +1,5 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-DDEBUG_GRID_MAIN
|
CFLAGS=-DDEBUG_GRID_MAIN -std=c99 -g
|
||||||
DEPS=dir.o rnd.o grid.o
|
DEPS=dir.o rnd.o grid.o
|
||||||
|
|
||||||
wordsearch: $(DEPS)
|
wordsearch: $(DEPS)
|
||||||
@ -9,4 +9,4 @@ wordsearch: $(DEPS)
|
|||||||
$(CC) -c -o $@ $< $(CFLAGS)
|
$(CC) -c -o $@ $< $(CFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm $(DEPS)
|
rm $(DEPS)
|
||||||
|
@ -171,7 +171,6 @@ void free_grid(char** grid, int height) {
|
|||||||
free(grid);
|
free(grid);
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_grid(char** grid, int height);
|
|
||||||
void print_grid(char** grid, int height) {
|
void print_grid(char** grid, int height) {
|
||||||
for(int i=0; i<height; i++) {
|
for(int i=0; i<height; i++) {
|
||||||
if(grid[i] == NULL) {
|
if(grid[i] == NULL) {
|
||||||
|
@ -21,5 +21,6 @@ char **init_grid(char** old, int height, int width);
|
|||||||
void free_grid(char** grid, int height);
|
void free_grid(char** grid, int height);
|
||||||
int move_x(int x, enum direction d);
|
int move_x(int x, enum direction d);
|
||||||
int move_y(int y, enum direction d);
|
int move_y(int y, enum direction d);
|
||||||
|
void print_grid(char** grid, int height);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user