Move some function prototypes around and make static.
authorDavid Griffith <dave@661.org>
Sun, 26 Jul 2015 01:06:05 +0000 (18:06 -0700)
committerDavid Griffith <dave@661.org>
Sun, 26 Jul 2015 01:06:05 +0000 (18:06 -0700)
src/curses/ux_frotz.h
src/curses/ux_init.c

index 91e69a6e9f91607a05312bd3e0154d09f1956961..c780e36619ea393bf7a9f839d44ed5f05603a67f 100644 (file)
@@ -93,17 +93,7 @@ void unix_init_scrollback(void);     /* ux_screen.c */
 void unix_save_screen(int);            /* ux_screen.c */
 void unix_do_scrollback(void);         /* ux_screen.c */
 
-
-
-int     getconfig(char *);
-int     geterrmode(char *);
-int     getcolor(char *);
-int     getbool(char *);
 FILE   *pathopen(const char *, const char *, const char *, char *);
-void   sigwinch_handler(int);
-void    sigint_handler(int);
-void   redraw(void);
-
 
 #ifdef NO_MEMMOVE
 void *memmove(void *, void *);
index b6f4e1a189b9215c67431c21e7834714a04e6531..114aa8560dcc93b768207bf0321424574e0a0620 100644 (file)
 f_setup_t f_setup;
 u_setup_t u_setup;
 
+static int getconfig(char *);
+static int geterrmode(char *);
+static int getcolor(char *);
+static int getbool(char *);
+
+static void sigwinch_handler(int);
+static void sigint_handler(int);
+static void redraw(void);
+
+
 #define INFORMATION "\
 An interpreter for all Infocom and other Z-Machine games.\n\
 Complies with standard 1.0 of Graham Nelson's specification.\n\
@@ -716,7 +726,7 @@ FILE *pathopen(const char *name, const char *p, const char *mode, char *fullname
  * compile targets to have those two tools installed.
  *
  */
-int getconfig(char *configfile)
+static int getconfig(char *configfile)
 {
        FILE    *fp;
 
@@ -865,7 +875,7 @@ int getconfig(char *configfile)
  * Otherwise return FALSE.
  *
  */
-int getbool(char *value)
+static int getbool(char *value)
 {
        int num;
 
@@ -893,7 +903,7 @@ int getbool(char *value)
  * corresponding to the color macros defined in frotz.h.
  *
  */
-int getcolor(char *value)
+static int getcolor(char *value)
 {
        int num;
 
@@ -939,7 +949,7 @@ int getcolor(char *value)
  * defined in ux_frotz.h related to the error reporting mode.
  *
  */
-int geterrmode(char *value)
+static int geterrmode(char *value)
 {
        int num;
 
@@ -968,7 +978,7 @@ int geterrmode(char *value)
  *
  */
 
-void sigwinch_handler(int sig)
+static void sigwinch_handler(int sig)
 {
 /*
 There are some significant problems involved in getting resizes to work
@@ -986,7 +996,7 @@ does nothing.
  * is not done.
  *
  */
-void sigint_handler(int dummy)
+static void sigint_handler(int dummy)
 {
     signal(SIGINT, sigint_handler);