Move function declarations for maps.c from prototypes.h to map.h

This commit is contained in:
Markus Armbruster 2011-04-09 09:28:58 +02:00
parent 8dc69a9a84
commit d78df0b48b
5 changed files with 10 additions and 5 deletions

View file

@ -59,5 +59,11 @@ extern void writemap(natid);
/* src/lib/subs/border.c */ /* src/lib/subs/border.c */
extern void blankfill(char *, struct range *, int); extern void blankfill(char *, struct range *, int);
extern void border(struct range *, char *, char *); extern void border(struct range *, char *, char *);
/* src/lib/subs/maps.c */
extern int do_map(int bmap, int unit_type, char *arg1, char *arg2);
extern int display_region_map(int bmap, int unit_type, coord curx,
coord cury, char *arg);
extern int bmaps_intersect(natid, natid);
extern int share_bmap(natid, natid, struct nstr_sect *, char, char *);
#endif #endif

View file

@ -449,11 +449,7 @@ extern int has_units(coord, coord, natid, struct lndstr *);
extern int adj_units(coord, coord, natid); extern int adj_units(coord, coord, natid);
extern int islist(char *); extern int islist(char *);
/* maps.c */ /* maps.c */
extern int do_map(int bmap, int unit_type, char *arg1, char *arg2); /* in map.h */
extern int display_region_map(int bmap, int unit_type, coord curx,
coord cury, char *arg);
extern int bmaps_intersect(natid, natid);
extern int share_bmap(natid, natid, struct nstr_sect *, char, char *);
/* mission.c */ /* mission.c */
extern char *mission_name(int); extern char *mission_name(int);
extern int collateral_damage(coord, coord, int); extern int collateral_damage(coord, coord, int);

View file

@ -35,6 +35,7 @@
#include "commands.h" #include "commands.h"
#include "item.h" #include "item.h"
#include "land.h" #include "land.h"
#include "map.h"
#include "optlist.h" #include "optlist.h"
#include "path.h" #include "path.h"
#include "plague.h" #include "plague.h"

View file

@ -33,6 +33,7 @@
#include <config.h> #include <config.h>
#include "commands.h" #include "commands.h"
#include "map.h"
int int
shar(void) shar(void)

View file

@ -35,6 +35,7 @@
#include "commands.h" #include "commands.h"
#include "land.h" #include "land.h"
#include "map.h"
#include "nuke.h" #include "nuke.h"
#include "plane.h" #include "plane.h"
#include "ship.h" #include "ship.h"