]> git.pond.sub.org Git - empserver/commitdiff
(player_login): Replace pr_player() by equivalent pr_id().
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 13 Jun 2005 19:05:37 +0000 (19:05 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 13 Jun 2005 19:05:37 +0000 (19:05 +0000)
(pr_player, upr_player): Internal linkage.

(pr_hilite): Unused, remove.

include/prototypes.h
src/lib/player/login.c
src/lib/subs/pr.c

index 788d5943f2bd7306853865f7d71633d69bd8489c..224f0a757d561455b3cc38a9967f3b01de266889 100644 (file)
@@ -600,9 +600,6 @@ extern void pr_inform(struct player *, char *, ...)
                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);
index 6b1a528b8e5886303b0e563d35e781e17e3761a1..3a5bb4f9d4a94948dd96afc09326d8338f405b82 100644 (file)
@@ -101,7 +101,7 @@ player_login(void *ud)
     }
     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) ;
     }
index 8a4e72800325376f5782b662a1ae379b7a26811d..1baf343cf3a96c75d79c5da479f3418eca0567ef 100644 (file)
@@ -55,6 +55,8 @@
 #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);
 
 /*
@@ -193,7 +195,7 @@ pr_wall(char *format, ...)
  * 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;
@@ -229,7 +231,7 @@ pr_player(struct player *pl, int id, char *buf)
  * 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;
@@ -276,26 +278,6 @@ upr_player(struct player *pl, int id, char *buf)
     }
 }
 
-/*
- * 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.