/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/findprim.c,v 9.44 1992/01/15 21:25:55 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/findprim.c,v 9.45 1992/01/20 17:35:57 jinx Exp $
-Copyright (c) 1987-92 Massachusetts Institute of Technology
+Copyright (c) 1987-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#include <ctype.h>
-extern int strcmp ();
-extern int strlen ();
+extern int EXFUN (strcmp, (const char *, const char *));
+extern int EXFUN (strlen, (const char *));
typedef int boolean;
#define TRUE 1
#define pseudo_void int
+extern void EXFUN (exit, (int));
+
char *
DEFUN (xmalloc, (length),
int length)
{
char * result;
- extern char * malloc ();
+ extern PTR EXFUN (malloc, (int));
- result = (malloc (length));
+ result = ((char *) (malloc (length)));
if (result == ((char *) 0))
{
fprintf (stderr, "malloc: unable to allocate %d bytes\n", length);
int length)
{
char * result;
- extern char * realloc ();
+ extern PTR EXFUN (realloc, (void *, int));
- result = (realloc (ptr, length));
+ result = ((char *) (realloc (ptr, length)));
if (result == ((char *) 0))
{
fprintf (stderr, "realloc: unable to allocate %d bytes\n", length);
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/prosfile.c,v 1.2 1991/03/01 00:55:26 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/prosfile.c,v 1.3 1992/01/20 17:25:43 jinx Exp $
-Copyright (c) 1987-91 Massachusetts Institute of Technology
+Copyright (c) 1987-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#include "prims.h"
#include "osfile.h"
+extern Tchannel EXFUN (arg_channel, (int));
+
#ifndef OPEN_FILE_HOOK
#define OPEN_FILE_HOOK(channel)
#endif
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/prosfs.c,v 1.5 1991/10/29 22:55:11 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/prosfs.c,v 1.6 1992/01/20 17:29:30 jinx Exp $
-Copyright (c) 1987-91 Massachusetts Institute of Technology
+Copyright (c) 1987-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#include "scheme.h"
#include "prims.h"
+#include "osfile.h"
#include "osfs.h"
+#include "osio.h"
+
+extern int EXFUN (OS_channel_copy,
+ (off_t source_length,
+ Tchannel source_channel,
+ Tchannel destination_channel));
#define STRING_RESULT(expression) \
{ \
#define FILE_COPY_BUFFER_LENGTH 8192
#endif
-extern int EXFUN (OS_channel_copy,
- (off_t source_length,
- Tchannel source_channel,
- Tchannel destination_channel));
-
int
DEFUN (OS_channel_copy, (source_length, source_channel, destination_channel),
off_t source_length AND
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/prosproc.c,v 1.9 1991/10/29 22:55:11 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/prosproc.c,v 1.10 1992/01/20 17:30:50 jinx Exp $
-Copyright (c) 1990-91 Massachusetts Institute of Technology
+Copyright (c) 1990-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#include "prims.h"
#include "osproc.h"
+extern Tchannel EXFUN (arg_channel, (int));
static int EXFUN (string_vector_p, (SCHEME_OBJECT vector));
static char ** EXFUN (convert_string_vector, (SCHEME_OBJECT vector));
\f
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/prosterm.c,v 1.10 1991/10/29 22:55:11 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/prosterm.c,v 1.11 1992/01/20 17:31:47 jinx Exp $
-Copyright (c) 1990-91 Massachusetts Institute of Technology
+Copyright (c) 1990-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#include "prims.h"
#include "osterm.h"
#include "osio.h"
+
+extern Tchannel EXFUN (arg_channel, (int));
\f
static Tchannel
DEFUN (arg_terminal, (argument_number), int argument_number)
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/uxtty.c,v 1.5 1991/01/15 20:18:46 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/uxtty.c,v 1.6 1992/01/20 17:24:17 jinx Exp $
Copyright (c) 1990, 1991 Massachusetts Institute of Technology
void
DEFUN_VOID (UX_initialize_tty)
{
+ extern int EXFUN (atoi, (const char *));
extern Tchannel EXFUN (OS_open_fd, (int fd));
input_channel = (OS_open_fd (STDIN_FILENO));
(CHANNEL_INTERNAL (input_channel)) = 1;
tty_command_clear = "\f";
else
{
+ extern void EXFUN (tputs, (char *, int, void (*) (char)));
char * command = tputs_output_scan;
tputs (tty_command_clear, tty_y_size, tputs_write_char);
(*tputs_output_scan++) = '\0';