summaryrefslogtreecommitdiff
path: root/src/msdos.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>1997-01-21 17:41:30 +0000
committerEli Zaretskii <eliz@gnu.org>1997-01-21 17:41:30 +0000
commit8ce62b00a26f85d5d835ae297b48fe318a8bbaad (patch)
treed519fa84288e056fe6f465bb429b74d2099f798d /src/msdos.c
parentae9dd83683d162a926513cd422beeb664e498495 (diff)
downloademacs-8ce62b00a26f85d5d835ae297b48fe318a8bbaad.tar.gz
(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.
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c23
1 files 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 <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 @@ 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<SET_TERM>");
highlight = 0;
@@ -974,7 +974,7 @@ IT_set_frame_parameters (f, alist)
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 @@ IT_set_frame_parameters (f, alist)
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 @@ 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;