(pr_player, upr_player): Internal linkage.
(pr_hilite): Unused, remove.
ATTRIBUTE((format (printf, 2, 3)));
extern void pr_wall(char *, ...)
ATTRIBUTE((format (printf, 1, 2)));
-extern void pr_player(struct player *pl, int id, s_char *buf);
-extern void upr_player(struct player *pl, int id, char *buf);
-extern void pr_hilite(s_char *buf);
extern void prredir(char *redir);
extern void prexec(char *file);
extern void prprompt(int min, int btu);
}
player->state = PS_SHUTDOWN;
if (!io_eof(player->iop)) {
- pr_player(player, C_EXIT, "so long...\n");
+ pr_id(player, C_EXIT, "so long...\n");
io_noblocking(player->iop, 0);
while (io_output(player->iop, IO_WAIT) > 0) ;
}
#include "server.h"
#include "prototypes.h"
+static void pr_player(struct player *pl, int id, char *buf);
+static void upr_player(struct player *pl, int id, char *buf);
static void outid(struct player *pl, int n);
/*
* If a partial line with different id is buffered, terminate it with
* a newline first.
*/
-void
+static void
pr_player(struct player *pl, int id, char *buf)
{
char *p;
* If a partial line with different id is buffered, terminate it with
* a newline first.
*/
-void
+static void
upr_player(struct player *pl, int id, char *buf)
{
char *bp;
}
}
-/*
- * highlighted characters have hex 80 or'ed in
- * with them to designate their highlightedness
- */
-void
-pr_hilite(s_char *buf)
-{
- register s_char *bp;
- register s_char c;
- s_char *p;
-
- p = malloc(strlen(buf) + 1);
- strcpy(p, buf);
- for (bp = p; 0 != (c = *bp); bp++)
- if (isprint(c))
- *bp |= 0x80;
- pr(p);
- free(p);
-}
-
/*
* Send id N to PL.
* This runs always at the beginning of a line.