Finish newdb -> dungeon renaming.
This commit is contained in:
parent
db281a96d7
commit
1ee0e5c7b0
9 changed files with 27 additions and 29 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -1,17 +1,15 @@
|
||||||
advent
|
advent
|
||||||
dungeon
|
|
||||||
*.gcda
|
*.gcda
|
||||||
*.gcno
|
*.gcno
|
||||||
*.o
|
*.o
|
||||||
*.html
|
*.html
|
||||||
database.h
|
dungeon.h
|
||||||
|
dungeon.c
|
||||||
advent.6
|
advent.6
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
MANIFEST
|
MANIFEST
|
||||||
*.adv
|
*.adv
|
||||||
.*~
|
.*~
|
||||||
newdb.h
|
|
||||||
newdb.c
|
|
||||||
cheat
|
cheat
|
||||||
advent.info
|
advent.info
|
||||||
coverage/*
|
coverage/*
|
||||||
|
|
34
Makefile
34
Makefile
|
@ -38,40 +38,40 @@ endif
|
||||||
|
|
||||||
OBJS=main.o init.o actions.o score.o misc.o saveresume.o
|
OBJS=main.o init.o actions.o score.o misc.o saveresume.o
|
||||||
CHEAT_OBJS=cheat.o init.o actions.o score.o misc.o saveresume.o
|
CHEAT_OBJS=cheat.o init.o actions.o score.o misc.o saveresume.o
|
||||||
SOURCES=$(OBJS:.o=.c) advent.h adventure.text adventure.yaml Makefile control linenoise/linenoise.[ch] newdungeon.py
|
SOURCES=$(OBJS:.o=.c) advent.h adventure.text adventure.yaml Makefile control linenoise/linenoise.[ch] make_dungeon.py
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CCFLAGS) $(DBX) -c $<
|
$(CC) $(CCFLAGS) $(DBX) -c $<
|
||||||
|
|
||||||
advent: $(OBJS) linenoise.o newdb.o
|
advent: $(OBJS) linenoise.o dungeon.o
|
||||||
$(CC) $(CCFLAGS) $(DBX) -o advent $(OBJS) newdb.o linenoise.o $(LDFLAGS) $(LIBS)
|
$(CC) $(CCFLAGS) $(DBX) -o advent $(OBJS) dungeon.o linenoise.o $(LDFLAGS) $(LIBS)
|
||||||
|
|
||||||
main.o: advent.h newdb.h
|
main.o: advent.h dungeon.h
|
||||||
|
|
||||||
init.o: advent.h newdb.h
|
init.o: advent.h dungeon.h
|
||||||
|
|
||||||
actions.o: advent.h newdb.h
|
actions.o: advent.h dungeon.h
|
||||||
|
|
||||||
score.o: advent.h newdb.h
|
score.o: advent.h dungeon.h
|
||||||
|
|
||||||
misc.o: advent.h newdb.h
|
misc.o: advent.h dungeon.h
|
||||||
|
|
||||||
cheat.o: advent.h newdb.h
|
cheat.o: advent.h dungeon.h
|
||||||
|
|
||||||
saveresume.o: advent.h newdb.h
|
saveresume.o: advent.h dungeon.h
|
||||||
|
|
||||||
newdb.o: newdb.c newdb.h
|
dungeon.o: dungeon.c dungeon.h
|
||||||
$(CC) $(CCFLAGS) $(DBX) -c newdb.c
|
$(CC) $(CCFLAGS) $(DBX) -c dungeon.c
|
||||||
|
|
||||||
newdb.c newdb.h: newdungeon.py adventure.yaml
|
dungeon.c dungeon.h: make_dungeon.py adventure.yaml
|
||||||
python3 newdungeon.py
|
python3 make_dungeon.py
|
||||||
|
|
||||||
linenoise.o: linenoise/linenoise.h
|
linenoise.o: linenoise/linenoise.h
|
||||||
$(CC) $(CCFLAGS) -c linenoise/linenoise.c
|
$(CC) $(CCFLAGS) -c linenoise/linenoise.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o advent cheat *.html *.gcno *.gcda
|
rm -f *.o advent cheat *.html *.gcno *.gcda
|
||||||
rm -f newdb.c newdb.h
|
rm -f dungeon.c dungeon.h
|
||||||
rm -f README advent.6 MANIFEST *.tar.gz
|
rm -f README advent.6 MANIFEST *.tar.gz
|
||||||
rm -f *~
|
rm -f *~
|
||||||
rm -f .*~
|
rm -f .*~
|
||||||
|
@ -79,8 +79,8 @@ clean:
|
||||||
cd tests; $(MAKE) --quiet clean
|
cd tests; $(MAKE) --quiet clean
|
||||||
|
|
||||||
|
|
||||||
cheat: $(CHEAT_OBJS) linenoise.o newdb.o
|
cheat: $(CHEAT_OBJS) linenoise.o dungeon.o
|
||||||
$(CC) $(CCFLAGS) $(DBX) -o cheat $(CHEAT_OBJS) linenoise.o newdb.o $(LDFLAGS) $(LIBS)
|
$(CC) $(CCFLAGS) $(DBX) -o cheat $(CHEAT_OBJS) linenoise.o dungeon.o $(LDFLAGS) $(LIBS)
|
||||||
|
|
||||||
check: advent cheat
|
check: advent cheat
|
||||||
cd tests; $(MAKE) --quiet
|
cd tests; $(MAKE) --quiet
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "advent.h"
|
#include "advent.h"
|
||||||
#include "newdb.h"
|
#include "dungeon.h"
|
||||||
|
|
||||||
static int fill(token_t, token_t);
|
static int fill(token_t, token_t);
|
||||||
|
|
||||||
|
|
2
advent.h
2
advent.h
|
@ -3,7 +3,7 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "newdb.h"
|
#include "dungeon.h"
|
||||||
|
|
||||||
#define LINESIZE 100
|
#define LINESIZE 100
|
||||||
#define NDWARVES 6 /* number of dwarves */
|
#define NDWARVES 6 /* number of dwarves */
|
||||||
|
|
2
cheat.c
2
cheat.c
|
@ -6,7 +6,7 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "advent.h"
|
#include "advent.h"
|
||||||
#include "linenoise/linenoise.h"
|
#include "linenoise/linenoise.h"
|
||||||
#include "newdb.h"
|
#include "dungeon.h"
|
||||||
|
|
||||||
struct game_t game;
|
struct game_t game;
|
||||||
|
|
||||||
|
|
2
main.c
2
main.c
|
@ -23,7 +23,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "advent.h"
|
#include "advent.h"
|
||||||
#include "linenoise/linenoise.h"
|
#include "linenoise/linenoise.h"
|
||||||
#include "newdb.h"
|
#include "dungeon.h"
|
||||||
|
|
||||||
#define DIM(a) (sizeof(a)/sizeof(a[0]))
|
#define DIM(a) (sizeof(a)/sizeof(a[0]))
|
||||||
|
|
||||||
|
|
2
misc.c
2
misc.c
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
#include "advent.h"
|
#include "advent.h"
|
||||||
#include "linenoise/linenoise.h"
|
#include "linenoise/linenoise.h"
|
||||||
#include "newdb.h"
|
#include "dungeon.h"
|
||||||
|
|
||||||
const char new_advent_to_ascii[] = {
|
const char new_advent_to_ascii[] = {
|
||||||
' ', '!', '"', '#', '$', '%', '&', '\'',
|
' ', '!', '"', '#', '$', '%', '&', '\'',
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "advent.h"
|
#include "advent.h"
|
||||||
#include "newdb.h"
|
#include "dungeon.h"
|
||||||
#include "linenoise/linenoise.h"
|
#include "linenoise/linenoise.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
2
score.c
2
score.c
|
@ -1,6 +1,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "advent.h"
|
#include "advent.h"
|
||||||
#include "newdb.h"
|
#include "dungeon.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* scoring and wrap-up
|
* scoring and wrap-up
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue