region- und shipcurse kompilieren auch

This commit is contained in:
Enno Rehling 2002-05-09 11:41:20 +00:00
parent b8125fb624
commit b5e2fd8b36
4 changed files with 24 additions and 11 deletions

View File

@ -16,10 +16,11 @@
#include "regioncurse.h" #include "regioncurse.h"
/* kernel includes */ /* kernel includes */
#include "message.h" #include <region.h>
#include "nrmessage.h" #include <message.h>
#include "objtypes.h" #include <nrmessage.h>
#include "curse.h" #include <objtypes.h>
#include <curse.h>
/* util includes */ /* util includes */
#include <message.h> #include <message.h>
@ -112,3 +113,8 @@ cinfo_magicstreet(const locale * lang,void * obj, typ_t typ, curse *c, int self)
return 1; return 1;
} }
void register_regioncurse(void)
{
}

View File

@ -14,10 +14,14 @@
#ifndef _RCURSE_H #ifndef _RCURSE_H
#define _RCURSE_H #define _RCURSE_H
/*
int cinfo_region(const locale *, void *, typ_t, curse *, int); int cinfo_region(const locale *, void *, typ_t, curse *, int);
int cinfo_cursed_by_the_gods(const locale *, void *, typ_t, curse *, int); int cinfo_cursed_by_the_gods(const locale *, void *, typ_t, curse *, int);
int cinfo_dreamcurse(const locale *, void *, typ_t, curse *, int); int cinfo_dreamcurse(const locale *, void *, typ_t, curse *, int);
int cinfo_magicstreet(const locale *, void *, typ_t, curse *, int); int cinfo_magicstreet(const locale *, void *, typ_t, curse *, int);
*/
extern void register_regioncurse(void);
#endif /* _RCURSE_H */ #endif /* _RCURSE_H */

View File

@ -16,13 +16,15 @@
#include "shipcurse.h" #include "shipcurse.h"
/* kernel includes */ /* kernel includes */
#include "message.h" #include <message.h>
#include "nrmessage.h" #include <ship.h>
#include "objtypes.h" #include <nrmessage.h>
#include "curse.h" #include <objtypes.h>
#include <curse.h>
/* util includes */ /* util includes */
#include <message.h> #include <message.h>
#include <base36.h>
/* libc includes */ /* libc includes */
#include <string.h> #include <string.h>
@ -53,11 +55,10 @@ static int
cinfo_ship_onlyowner(const locale * lang, void * obj, typ_t typ, curse *c, int self) cinfo_ship_onlyowner(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
message * msg; message * msg;
ship * sh;
unused(obj);
unused(typ); unused(typ);
assert(typ == TYP_SHIP); assert(typ == TYP_SHIP);
sh = (ship*)obj;
if (self){ if (self){
msg = msg_message(mkname("curseinfo", c->type->cname), "id", c->no); msg = msg_message(mkname("curseinfo", c->type->cname), "id", c->no);

View File

@ -14,6 +14,8 @@
#ifndef _SCURSE_H #ifndef _SCURSE_H
#define _SCURSE_H #define _SCURSE_H
/*
int cinfo_shipnodrift(const locale *, void *, typ_t, curse *, int); int cinfo_shipnodrift(const locale *, void *, typ_t, curse *, int);
*/
#endif /* _SCURSE_H */ #endif /* _SCURSE_H */