aboutsummaryrefslogtreecommitdiff
path: root/gnu/lib/libreadline/examples/fileman.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/lib/libreadline/examples/fileman.c')
-rw-r--r--gnu/lib/libreadline/examples/fileman.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/gnu/lib/libreadline/examples/fileman.c b/gnu/lib/libreadline/examples/fileman.c
index 0adc2a19e2f8..d1e72c5d5311 100644
--- a/gnu/lib/libreadline/examples/fileman.c
+++ b/gnu/lib/libreadline/examples/fileman.c
@@ -247,11 +247,7 @@ com_list (arg)
if (!arg)
arg = "*";
-#ifdef __GO32__
- sprintf (syscom, "ls -lp %s", arg);
-#else
sprintf (syscom, "ls -FClg %s", arg);
-#endif
system (syscom);
}
@@ -397,49 +393,3 @@ valid_argument (caller, arg)
* compile-command: "cc -g -I../.. -L.. -o fileman fileman.c -lreadline -ltermcap"
* end:
*/
-
-#ifdef __GO32__
-/* **************************************************************** */
-/* */
-/* xmalloc and xrealloc () */
-/* */
-/* **************************************************************** */
-
-static void memory_error_and_abort ();
-
-char *
-xmalloc (bytes)
- int bytes;
-{
- char *temp = (char *)malloc (bytes);
-
- if (!temp)
- memory_error_and_abort ();
- return (temp);
-}
-
-char *
-xrealloc (pointer, bytes)
- char *pointer;
- int bytes;
-{
- char *temp;
-
- if (!pointer)
- temp = (char *)xmalloc (bytes);
- else
- temp = (char *)realloc (pointer, bytes);
-
- if (!temp)
- memory_error_and_abort ();
-
- return (temp);
-}
-
-static void
-memory_error_and_abort ()
-{
- fprintf (stderr, "xmalloc: Out of virtual memory!\n");
- abort ();
-}
-#endif