changeset 16915:8d28d96f6031

(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.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 21 Jan 1997 17:41:30 +0000
parents 4b79df16b939
children 49435b5ecb29
files src/msdos.c
diffstat 1 files changed, 14 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/msdos.c	Tue Jan 21 09:27:59 1997 +0000
+++ b/src/msdos.c	Tue Jan 21 17:41:30 1997 +0000
@@ -33,12 +33,16 @@
 #include <sys/time.h>
 #include <dos.h>
 #include <errno.h>
+#include <string.h>	 /* for bzero and string functions */
 #include <sys/stat.h>    /* for _fixpath */
+#include <unistd.h>	 /* for chdir, dup, dup2, etc. */
 #if __DJGPP__ >= 2
 #include <fcntl.h>
+#include <io.h>		 /* for setmode */
 #include <dpmi.h>	 /* for __dpmi_xxx stuff */
 #include <sys/farptr.h>	 /* for _farsetsel, _farnspokeb */
 #include <libc/dosio.h>  /* for _USE_LFN */
+#include <conio.h>	 /* for cputs */
 #endif
 
 #include "dosfns.h"
@@ -839,10 +843,6 @@
 static
 IT_set_terminal_modes (void)
 {
-  char *colors;
-  FRAME_PTR f;
-  struct face *fp;
-
   if (termscript)
     fprintf (termscript, "\n<SET_TERM>");
   highlight = 0;
@@ -974,7 +974,7 @@
 	      FRAME_FOREGROUND_PIXEL (f) = new_color;
 	      redraw = 1;
 	      if (termscript)
-		fprintf (termscript, "<FGCOLOR %d>\n", new_color);
+		fprintf (termscript, "<FGCOLOR %lu>\n", new_color);
 	    }
 	}
       else if (EQ (prop, intern ("background-color")))
@@ -985,7 +985,7 @@
 	      FRAME_BACKGROUND_PIXEL (f) = new_color;
 	      redraw = 1;
 	      if (termscript)
-		fprintf (termscript, "<BGCOLOR %d>\n", new_color);
+		fprintf (termscript, "<BGCOLOR %lu>\n", new_color);
 	    }
 	}
       else if (EQ (prop, intern ("menu-bar-lines")))
@@ -994,12 +994,17 @@
 
   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 @@
 
 /* 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 @@
   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 @@
   (filename)
      Lisp_Object filename;
 {
-  char *fname;
   Lisp_Object tem;
 
   if (! STRINGP (filename))
@@ -2933,7 +2938,7 @@
   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;