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 | |
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')
-rw-r--r-- | lang/bwbasic/distinfo | 3 | ||||
-rw-r--r-- | lang/bwbasic/patches/patch-ab | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/lang/bwbasic/distinfo b/lang/bwbasic/distinfo index 67e812e1898..7a3715f014c 100644 --- a/lang/bwbasic/distinfo +++ b/lang/bwbasic/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.6 2005/11/03 22:19:01 rillig Exp $ +$NetBSD: distinfo,v 1.7 2005/12/30 23:29:36 joerg Exp $ SHA1 (bwbasic-2.20pl2/bwbasic-2.20.tar.Z) = b96ff440c573b9aac17dfd90830e3defa46a5592 RMD160 (bwbasic-2.20pl2/bwbasic-2.20.tar.Z) = a6ae5cdde2aa18228258314a34b776d3681cb0e8 Size (bwbasic-2.20pl2/bwbasic-2.20.tar.Z) = 485971 bytes SHA1 (patch-aa) = 45a1ff2c8e76a8f8c7d1c1f4876acb8e0bb55add +SHA1 (patch-ab) = 7c2efa205c5866733bfd99dbd102aa517afc819f SHA1 (patch-ac) = 286c3f91c90b33d1bab2de1581900129661ca74a 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" ); |