From: Eric S. Raymond Date: Sun, 16 Jul 2017 19:17:39 +0000 (-0400) Subject: Information hiding. X-Git-Tag: 1.3~69 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2fca59d9fd6a6c2240ce715d010995c614836999;p=open-adventure.git Information hiding. --- diff --git a/advent.h b/advent.h index b9f24fe..62d3696 100644 --- a/advent.h +++ b/advent.h @@ -206,7 +206,6 @@ extern struct settings_t settings; extern void packed_to_token(long, char token[]); extern long token_to_packed(const char token[]); extern void tokenize(char*, struct command_t *); -extern void vspeak(const char*, bool, va_list); extern void wordclear(token_t *); extern void speak(const char*, ...); extern void sspeak(long msg, ...); diff --git a/misc.c b/misc.c index c4dc351..f3b0f3d 100644 --- a/misc.c +++ b/misc.c @@ -135,7 +135,7 @@ void wordclear(token_t *v) /* I/O routines (speak, pspeak, rspeak, sspeak, get_input, yes) */ -void vspeak(const char* msg, bool blank, va_list ap) +static void vspeak(const char* msg, bool blank, va_list ap) { // Do nothing if we got a null pointer. if (msg == NULL)