Give some identifiers internal linkage

Give draw_map(), xdeval(), LwpSchedQ[], LwpDeadQ, LwpContextPtr,
LwpMaxpri, LwpStackGrowsDown internal linkage.
This commit is contained in:
Markus Armbruster 2008-08-03 21:00:40 -04:00
parent 0a49cd24a3
commit aee8272d3d
6 changed files with 8 additions and 11 deletions

View file

@ -105,7 +105,7 @@ xdinit(struct xdstr *xd, natid cnum, int human, void (*pr)(char *fmt, ...))
* PTR points to the context object.
* IDX is the index within the attribute.
*/
struct valstr *
static struct valstr *
xdeval(struct valstr *val, struct xdstr *xd,
struct castr *ca, void *ptr, int idx)
{
@ -311,7 +311,7 @@ xdftr(struct xdstr *xd, int n)
/*
* Dump meta-data for items of type TYPE to XD.
* Return RET_OK.
* Return RET_SYN when TYPE doesn't have meta-data, else RET_OK.
*/
int
xdmeta(struct xdstr *xd, int type)

View file

@ -39,12 +39,12 @@
#include "lwpint.h"
#include "prototypes.h"
struct lwpQueue LwpSchedQ[LWP_MAX_PRIO], LwpDeadQ;
static struct lwpQueue LwpSchedQ[LWP_MAX_PRIO], LwpDeadQ;
struct lwpProc *LwpCurrent = NULL;
void **LwpContextPtr;
int LwpMaxpri = 0; /* maximum priority so far */
int LwpStackGrowsDown;
static void **LwpContextPtr;
static int LwpMaxpri = 0; /* maximum priority so far */
static int LwpStackGrowsDown;
static void lwpDestroy(struct lwpProc *proc);
static void lwpStackCheckInit(struct lwpProc *newp);

View file

@ -71,8 +71,6 @@ struct lwpQueue {
/* XXX Note that this assumes sizeof(int) == 4 */
#define LWP_CHECKMARK 0x5a5a5a5a
extern int LwpStackGrowsDown;
int lwpNewContext(struct lwpProc *);
void lwpSwitchContext(struct lwpProc *, struct lwpProc *);
void lwpAddTail(struct lwpQueue *, struct lwpProc *);

View file

@ -53,6 +53,7 @@
#include "ship.h"
#include "xy.h"
static int draw_map(int, char, int, struct nstr_sect *);
static int bmnxtsct(struct nstr_sect *);
static char map_char(int, natid, int);
static int unit_map(int, int, struct nstr_sect *, char *);
@ -115,7 +116,7 @@ do_map(int bmap, int unit_type, char *arg, char *map_flags_arg)
return draw_map(bmap, origin, map_flags, &ns);
}
int
static int
draw_map(int bmap, char origin, int map_flags, struct nstr_sect *nsp)
{
struct natstr *np;