From f166293e7365cae699922af6da902bae05368881 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Wed, 9 Oct 2013 14:56:43 +0800 Subject: [PATCH] Clean up extern's in C files. --- display.h | 3 +++ main.c | 11 +++++------ search.c | 1 - 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/display.h b/display.h index 8892a8f..e3b9b13 100644 --- a/display.h +++ b/display.h @@ -21,6 +21,9 @@ void mlwrite( const char *fmt, ...) ; void mlforce( char *s) ; void mlputs( char *s) ; void getscreensize( int *widthp, int *heightp) ; + +#ifdef SIGWINCH void sizesignal( int signr) ; +#endif #endif diff --git a/main.c b/main.c index 76af13a..994eb7b 100644 --- a/main.c +++ b/main.c @@ -59,12 +59,16 @@ #include #include +#include "estruct.h" /* Global structures and defines. */ +#if UNIX +#include +#endif + #include "basic.h" #include "bind.h" #include "bindable.h" #include "buffer.h" #include "display.h" -#include "estruct.h" /* Global structures and defines. */ #include "globals.h" /* Global definitions. */ #include "eval.h" #include "execute.h" @@ -89,11 +93,6 @@ extern unsigned _stklen = 32766; #endif #if UNIX -#include -#ifdef SIGWINCH -extern void sizesignal(int); -#endif - static void emergencyexit(int signr) { quickexit(FALSE, 0); diff --git a/search.c b/search.c index 7ef94b8..1b9cc7a 100644 --- a/search.c +++ b/search.c @@ -1471,7 +1471,6 @@ static int mceq(int bc, struct magic *mt) return result; } -extern char *clearbits(void); /* * cclmake -- create the bitmap for the character class.