move xmlreader.c up a directory.

This commit is contained in:
Enno Rehling 2018-01-15 18:11:43 +01:00
parent 823a327254
commit 66ffca3ac4
8 changed files with 58 additions and 58 deletions

View File

@ -129,6 +129,7 @@ set (ERESSEA_SRC
travelthru.c travelthru.c
monsters.c monsters.c
wormhole.c wormhole.c
xmlreader.c
${SPELLS_SRC} ${SPELLS_SRC}
${RACES_SRC} ${RACES_SRC}
${ITEMS_SRC} ${ITEMS_SRC}
@ -239,6 +240,7 @@ set(TESTS_SRC
volcano.test.c volcano.test.c
vortex.test.c vortex.test.c
wormhole.test.c wormhole.test.c
# xmlreader.test.c
spells/flyingship.test.c spells/flyingship.test.c
spells/magicresistance.test.c spells/magicresistance.test.c
triggers/shock.test.c triggers/shock.test.c

View File

@ -1,7 +1,7 @@
#include <platform.h> #include <platform.h>
#include <kernel/xmlreader.h> #include "xmlreader.h"
#include <util/xml.h> #include <util/xml.h>
#include <kernel/race.h> #include <kernel/race.h>
#include <kernel/rules.h> #include <kernel/rules.h>

View File

@ -2,17 +2,6 @@
#include "settings.h" #include "settings.h"
#include "eressea.h" #include "eressea.h"
#include "calendar.h"
#include "chaos.h"
#include "items.h"
#include "creport.h"
#include "report.h"
#include "names.h"
#include "reports.h"
#include "spells.h"
#include "vortex.h"
#include "wormhole.h"
#include <kernel/config.h> #include <kernel/config.h>
#include <util/log.h> #include <util/log.h>
@ -24,7 +13,6 @@
#include <kernel/curse.h> #include <kernel/curse.h>
#include <kernel/equipment.h> #include <kernel/equipment.h>
#include <kernel/item.h> #include <kernel/item.h>
#include <kernel/xmlreader.h>
#include <kernel/database.h> #include <kernel/database.h>
#include <modules/gmcmd.h> #include <modules/gmcmd.h>
#include <modules/xmas.h> #include <modules/xmas.h>
@ -35,6 +23,18 @@
#include <util/message.h> #include <util/message.h>
#include <races/races.h> #include <races/races.h>
#include "calendar.h"
#include "chaos.h"
#include "items.h"
#include "creport.h"
#include "report.h"
#include "names.h"
#include "reports.h"
#include "spells.h"
#include "vortex.h"
#include "wormhole.h"
#include "xmlreader.h"
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -17,13 +17,6 @@
#include <kernel/config.h> #include <kernel/config.h>
#include "gmtool.h" #include "gmtool.h"
#include "gmtool_structs.h"
#include "chaos.h"
#include "console.h"
#include "listbox.h"
#include "wormhole.h"
#include "calendar.h"
#include "teleport.h"
#include <modules/xmas.h> #include <modules/xmas.h>
#include <modules/gmcmd.h> #include <modules/gmcmd.h>
@ -42,7 +35,6 @@
#include <kernel/save.h> #include <kernel/save.h>
#include <kernel/ship.h> #include <kernel/ship.h>
#include <kernel/terrain.h> #include <kernel/terrain.h>
#include <kernel/xmlreader.h>
#include <attributes/attributes.h> #include <attributes/attributes.h>
#include <triggers/triggers.h> #include <triggers/triggers.h>
@ -56,6 +48,15 @@
#include <util/rng.h> #include <util/rng.h>
#include <util/unicode.h> #include <util/unicode.h>
#include "gmtool_structs.h"
#include "chaos.h"
#include "console.h"
#include "listbox.h"
#include "wormhole.h"
#include "calendar.h"
#include "teleport.h"
#include "xmlreader.h"
#include <storage.h> #include <storage.h>
#include <lua.h> #include <lua.h>

View File

@ -32,7 +32,6 @@ spellbook.test.c
spell.test.c spell.test.c
# terrain.test.c # terrain.test.c
unit.test.c unit.test.c
# xmlreader.test.c
) )
SET(_DBFILES db/critbit.c) SET(_DBFILES db/critbit.c)
@ -78,7 +77,6 @@ spellbook.c
spell.c spell.c
terrain.c terrain.c
unit.c unit.c
xmlreader.c
) )
SET(VERSION_SRC ${PROJECT_NAME}/version.c PARENT_SCOPE) SET(VERSION_SRC ${PROJECT_NAME}/version.c PARENT_SCOPE)

View File

@ -14,20 +14,32 @@
#ifdef _MSC_VER #ifdef _MSC_VER
#include <platform.h> #include <platform.h>
#endif #endif
#include <kernel/config.h>
#include "spells.h"
#include "guard.h" #include "guard.h"
#include "spy.h" #include "spy.h"
#include "vortex.h" #include "vortex.h"
#include "laws.h" #include "laws.h"
#include "spells.h"
#include "direction.h" #include "direction.h"
#include "randenc.h" #include "randenc.h"
#include "monsters.h" #include "monsters.h"
#include "teleport.h" #include "teleport.h"
#include "xmlreader.h"
/* triggers includes */
#include <triggers/changefaction.h>
#include <triggers/changerace.h>
#include <triggers/createcurse.h>
#include <triggers/createunit.h>
#include <triggers/killunit.h>
#include <triggers/timeout.h>
/* attributes includes */
#include <attributes/targetregion.h>
#include <attributes/hate.h>
#include <attributes/attributes.h> #include <attributes/attributes.h>
#include <races/races.h>
#include <spells/borders.h> #include <spells/borders.h>
#include <spells/buildingcurse.h> #include <spells/buildingcurse.h>
#include <spells/regioncurse.h> #include <spells/regioncurse.h>
@ -38,6 +50,7 @@
/* kernel includes */ /* kernel includes */
#include <kernel/building.h> #include <kernel/building.h>
#include <kernel/config.h>
#include <kernel/curse.h> #include <kernel/curse.h>
#include <kernel/connection.h> #include <kernel/connection.h>
#include <kernel/faction.h> #include <kernel/faction.h>
@ -54,9 +67,6 @@
#include <kernel/terrain.h> #include <kernel/terrain.h>
#include <kernel/terrainid.h> #include <kernel/terrainid.h>
#include <kernel/unit.h> #include <kernel/unit.h>
#include <kernel/xmlreader.h>
#include <races/races.h>
/* util includes */ /* util includes */
#include <util/assert.h> #include <util/assert.h>
@ -91,17 +101,6 @@
#include <string.h> #include <string.h>
#include <limits.h> #include <limits.h>
/* triggers includes */
#include <triggers/changefaction.h>
#include <triggers/changerace.h>
#include <triggers/createcurse.h>
#include <triggers/createunit.h>
#include <triggers/killunit.h>
#include <triggers/timeout.h>
/* attributes includes */
#include <attributes/targetregion.h>
#include <attributes/hate.h>
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
#if defined(_MSC_VER) && _MSC_VER >= 1900 #if defined(_MSC_VER) && _MSC_VER >= 1900

View File

@ -12,28 +12,28 @@ without prior permission by the authors of Eressea.
#include <platform.h> #include <platform.h>
#include <kernel/config.h> #include <kernel/config.h>
#include "xmlreader.h" #include "xmlreader.h"
#include "building.h" #include "kernel/building.h"
#include "guard.h" #include "kernel/equipment.h"
#include "equipment.h" #include "kernel/item.h"
#include "item.h" #include "kernel/messages.h"
#include "keyword.h" #include "kernel/race.h"
#include "messages.h" #include "kernel/region.h"
#include "race.h" #include "kernel/resources.h"
#include "region.h" #include "kernel/ship.h"
#include "resources.h" #include "kernel/terrain.h"
#include "ship.h" #include "kernel/skills.h"
#include "terrain.h" #include "kernel/spell.h"
#include "skills.h" #include "kernel/spellbook.h"
#include "spell.h"
#include "spellbook.h"
#include "calendar.h"
#include "prefix.h"
#include "move.h"
/* TODO: core code should not include these files: */
#include "alchemy.h" #include "alchemy.h"
#include "calendar.h"
#include "guard.h"
#include "keyword.h"
#include "move.h"
#include "prefix.h"
#include <modules/score.h> #include <modules/score.h>
#include <attributes/attributes.h> #include <attributes/attributes.h>