diff options
author | joerg <joerg> | 2005-12-30 23:29:36 +0000 |
---|---|---|
committer | joerg <joerg> | 2005-12-30 23:29:36 +0000 |
commit | a2c630fe0f7159ee230e96613da76868048eed78 (patch) | |
tree | 1b96b962eb0d3745ccc40741c15c533e951deba9 /lang/bwbasic/patches | |
parent | addc8e46401cb6acb07d74c2d48565f830a5bc23 (diff) | |
download | pkgsrc-a2c630fe0f7159ee230e96613da76868048eed78.tar.gz |
Move init of errfdevice to bwb_init, it should be the first
function which is ran and stderr can't be used as lvalue in
file scope.
Diffstat (limited to 'lang/bwbasic/patches')
-rw-r--r-- | lang/bwbasic/patches/patch-ab | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/bwbasic/patches/patch-ab b/lang/bwbasic/patches/patch-ab new file mode 100644 index 00000000000..a2787303c18 --- /dev/null +++ b/lang/bwbasic/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1 2005/12/30 23:29:36 joerg Exp $ + +--- bwbasic-2.20/bwbasic.c.orig 2005-12-30 23:25:02.000000000 +0000 ++++ bwbasic-2.20/bwbasic.c +@@ -51,7 +51,7 @@ + char *bwb_ebuf; /* error buffer */ + static char *read_line; + int bwb_trace = FALSE; +-FILE *errfdevice = stderr; /* output device for error messages */ ++FILE *errfdevice; /* output device for error messages */ + + #if HAVE_LONGJUMP + jmp_buf mark; +@@ -133,6 +133,8 @@ bwb_init( argc, argv ) + static char end_buf[] = "\0"; + #endif + ++ errfdevice = stderr; ++ + #if INTENSIVE_DEBUG + prn_xprintf( stderr, "Memory Allocation Statistics:\n" ); + prn_xprintf( stderr, "----------------------------\n" ); |