From a7cf915174c9e1031b30c53238f1a0d784ca95ec Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 21 Jan 1997 17:41:30 +0000 Subject: [PATCH] (run_msdos_command): Remove unused variables. (crlf_to_lf): Remove unused variables. (Fmsdos_downcase_filename): Remove unused variable. (IT_set_frame_parameters): Declare prototypes for external functions. (IT_set_frame_parameters): Correct format specifier. (IT_set_terminal_modes): Remove unused variable. (top level): Add header files which declare used functions. --- src/msdos.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/msdos.c b/src/msdos.c index 864a18d4b83..02bdfc0f31c 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -33,12 +33,16 @@ Boston, MA 02111-1307, USA. */ #include #include #include +#include /* for bzero and string functions */ #include /* for _fixpath */ +#include /* for chdir, dup, dup2, etc. */ #if __DJGPP__ >= 2 #include +#include /* for setmode */ #include /* for __dpmi_xxx stuff */ #include /* for _farsetsel, _farnspokeb */ #include /* for _USE_LFN */ +#include /* for cputs */ #endif #include "dosfns.h" @@ -839,10 +843,6 @@ x_set_menu_bar_lines (f, value, oldval) static IT_set_terminal_modes (void) { - char *colors; - FRAME_PTR f; - struct face *fp; - if (termscript) fprintf (termscript, "\n"); highlight = 0; @@ -974,7 +974,7 @@ IT_set_frame_parameters (f, alist) FRAME_FOREGROUND_PIXEL (f) = new_color; redraw = 1; if (termscript) - fprintf (termscript, "\n", new_color); + fprintf (termscript, "\n", new_color); } } else if (EQ (prop, intern ("background-color"))) @@ -985,7 +985,7 @@ IT_set_frame_parameters (f, alist) FRAME_BACKGROUND_PIXEL (f) = new_color; redraw = 1; if (termscript) - fprintf (termscript, "\n", new_color); + fprintf (termscript, "\n", new_color); } } else if (EQ (prop, intern ("menu-bar-lines"))) @@ -994,12 +994,17 @@ IT_set_frame_parameters (f, alist) if (redraw) { + extern void recompute_basic_faces (FRAME_PTR); + extern void redraw_frame (FRAME_PTR); + recompute_basic_faces (f); if (f == selected_frame) redraw_frame (f); } } +extern void init_frame_faces (FRAME_PTR); + #endif /* !HAVE_X_WINDOWS */ @@ -1562,6 +1567,8 @@ and then the scan code.") /* Get a char from keyboard. Function keys are put into the event queue. */ +extern void kbd_buffer_store_event (struct input_event *); + static int dos_rawgetc () { @@ -2369,7 +2376,6 @@ crlf_to_lf (n, buf) unsigned char *np = buf; unsigned char *startp = buf; unsigned char *endp = buf + n; - unsigned char c; if (n == 0) return n; @@ -2618,7 +2624,6 @@ The argument object is never altered--the value is a copy.") (filename) Lisp_Object filename; { - char *fname; Lisp_Object tem; if (! STRINGP (filename)) @@ -2933,7 +2938,7 @@ run_msdos_command (argv, dir, tempin, tempout, temperr) char *saveargv1, *saveargv2, **envv, *lowcase_argv0, *pa, *pl; char oldwd[MAXPATHLEN + 1]; /* Fixed size is safe on MSDOS. */ int msshell, result = -1; - int in, out, inbak, outbak, errbak; + int inbak, outbak, errbak; int x, y; Lisp_Object cmd; -- 2.39.2