summaryrefslogtreecommitdiffstats
path: root/lang/bwbasic
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2002-06-03 21:37:05 +0000
committerwollman <wollman@FreeBSD.org>2002-06-03 21:37:05 +0000
commite7998ee1f80b7b750a8105bf2fc60f29d4ebfc79 (patch)
tree11f0cfb73a6c0a6f1f659385c41c82c47a7cbeed /lang/bwbasic
parentf2bf964f1323a961e2b537c565477beb02582f07 (diff)
downloadFreeBSD-ports-e7998ee1f80b7b750a8105bf2fc60f29d4ebfc79.zip
FreeBSD-ports-e7998ee1f80b7b750a8105bf2fc60f29d4ebfc79.tar.gz
Don't assume that stderr is a compile-time constant.
Diffstat (limited to 'lang/bwbasic')
-rw-r--r--lang/bwbasic/files/patch-bwbasic.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/lang/bwbasic/files/patch-bwbasic.c b/lang/bwbasic/files/patch-bwbasic.c
new file mode 100644
index 0000000..d7cbf7d
--- /dev/null
+++ b/lang/bwbasic/files/patch-bwbasic.c
@@ -0,0 +1,27 @@
+--- bwbasic.c.orig Mon Jun 3 17:28:28 2002
++++ bwbasic.c Mon Jun 3 17:33:08 2002
+@@ -32,6 +32,7 @@
+ /* NOTE: Modifications marked "JBV" were made by Jon B. Volkoff, */
+ /* 11/1995 (eidetics@cerf.net). */
+ /*---------------------------------------------------------------*/
++/* Modifications marked (GAW) were made by Garrett Wollman 2002-06-03 */
+
+ #include <stdio.h>
+ #include <ctype.h>
+@@ -51,7 +52,7 @@
+ char *bwb_ebuf; /* error buffer */
+ static char *read_line;
+ int bwb_trace = FALSE;
+-FILE *errfdevice = stderr; /* output device for error messages */
++FILE *errfdevice /* = stderr (GAW) */; /* output device for error messages */
+
+ #if HAVE_LONGJUMP
+ jmp_buf mark;
+@@ -133,6 +134,7 @@
+ static char end_buf[] = "\0";
+ #endif
+
++ errfdevice = stderr; /* XXX will just get overwritten below? (GAW)*/
+ #if INTENSIVE_DEBUG
+ prn_xprintf( stderr, "Memory Allocation Statistics:\n" );
+ prn_xprintf( stderr, "----------------------------\n" );
OpenPOWER on IntegriCloud