Build via include

This commit is contained in:
jl777
2019-02-02 04:13:53 -11:00
parent eaa3bcb493
commit 70664f4be5
4 changed files with 45 additions and 0 deletions

View File

@@ -403,6 +403,40 @@ std::string CClib_rawtxgen(struct CCcontract_info *cp,uint8_t funcid,cJSON *para
}
#ifdef BUILD_ROGUE
#include "rogue/vers.c"
#include "rogue/extern.c"
#include "rogue/armor.c"
#include "rogue/chase.c"
#include "rogue/command.c"
#include "rogue/daemon.c"
#include "rogue/daemons.c"
#include "rogue/fight.c"
#include "rogue/init.c"
#include "rogue/io.c"
#include "rogue/list.c"
#include "rogue/mach_dep.c"
#include "rogue/rogue.c"
#include "rogue/mdport.c"
#include "rogue/misc.c"
#include "rogue/monsters.c"
#include "rogue/move.c"
#include "rogue/new_level.c"
#include "rogue/options.c"
#include "rogue/pack.c"
#include "rogue/passages.c"
#include "rogue/potions.c"
#include "rogue/rings.c"
#include "rogue/rip.c"
#include "rogue/rooms.c"
#include "rogue/save.c"
#include "rogue/scrolls.c"
#include "rogue/state.c"
#include "rogue/sticks.c"
#include "rogue/things.c"
#include "rogue/weapons.c"
#include "rogue/wizard.c"
#include "rogue/xcrypt.c"
#else
#include "sudoku.cpp"
#endif

View File

@@ -10,6 +10,8 @@
* See the file LICENSE.TXT for full copyright and licensing information.
*/
#ifndef H_EXTERN_ROGUE_H
#define H_EXTERN_ROGUE_H
#ifdef HAVE_CONFIG_H
#ifdef PDCURSES
@@ -179,4 +181,5 @@ void md_onsignal_autosave(void);
void md_onsignal_exit(void);
void md_onsignal_default(void);
int md_issymlink(char *sp);
#endif

View File

@@ -10,6 +10,9 @@
* See the file LICENSE.TXT for full copyright and licensing information.
*/
#ifndef H_ROGUE_H
#define H_ROGUE_H
#include "extern.h"
#undef lines
@@ -783,3 +786,5 @@ extern char *wood[];
extern int cNWOOD;
extern char *metal[];
extern int cNMETAL;
#endif

View File

@@ -9,6 +9,8 @@
*
* See the file LICENSE.TXT for full copyright and licensing information.
*/
#ifndef H_SCORE_H
#define H_SCORE_H
struct sc_ent {
unsigned int sc_uid;
@@ -24,3 +26,4 @@ typedef struct sc_ent SCORE;
void rd_score(SCORE *top_ten);
void wr_score(SCORE *top_ten);
#endif