mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Update to 3.00
- Add LICENSE
This commit is contained in:
parent
94892b663a
commit
69f5a99f22
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=386840
@ -2,18 +2,20 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= bwbasic
|
||||
PORTVERSION= 2.61
|
||||
PORTVERSION= 3.00
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/version%20${PORTVERSION}/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= The Bywater Basic interpreter
|
||||
COMMENT= Bywater Basic interpreter
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
USES= dos2unix zip
|
||||
GNU_CONFIGURE= yes
|
||||
MAKE_ARGS= CFLAGS="${CFLAGS} -ansi"
|
||||
MAKE_ARGS= CFLAGS="${CFLAGS} -ansi -DHAVE_ISNAN=1"
|
||||
ALL_TARGET= ${PORTNAME}
|
||||
|
||||
PORTDOCS= *
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (bwbasic-2.61.zip) = 7f3770388a6ab1d383e4e7a00418f35bfe41967bb77a13223528ea2b4094c601
|
||||
SIZE (bwbasic-2.61.zip) = 210670
|
||||
SHA256 (bwbasic-3.00.zip) = 41f95d3cd8d7551a15aef89580b2414d0557c63e7b1e7e35b290c2e0c3436b5d
|
||||
SIZE (bwbasic-3.00.zip) = 2777709
|
||||
|
@ -1,44 +0,0 @@
|
||||
--- ../../foo/bwbasic-2.20/bwb_dio.c Sun Nov 26 09:02:18 1995
|
||||
+++ bwb_dio.c Thu Jan 16 11:10:58 1997
|
||||
@@ -90,7 +90,6 @@
|
||||
{
|
||||
FILE *fp;
|
||||
struct exp_ese *e;
|
||||
- int previous_buffer;
|
||||
char atbuf[ MAXSTRINGSIZE + 1 ];
|
||||
char first[ MAXSTRINGSIZE + 1 ];
|
||||
char devname[ MAXSTRINGSIZE + 1 ];
|
||||
@@ -98,7 +97,6 @@
|
||||
/* initialize */
|
||||
|
||||
mode = req_devnumber = rlen = -1;
|
||||
- previous_buffer = FALSE;
|
||||
|
||||
/* get the first expression element up to comma or whitespace */
|
||||
|
||||
@@ -435,7 +433,15 @@
|
||||
sprintf( bwb_ebuf, "in bwb_open(): using previously closed file (and buffer)" );
|
||||
bwb_debug( bwb_ebuf );
|
||||
#endif
|
||||
- previous_buffer = TRUE;
|
||||
+ /*
|
||||
+ * Previous code assumed that buffer was always valid, and
|
||||
+ * always the right size. (MJS)
|
||||
+ */
|
||||
+ if (dev_table[ req_devnumber ].buffer != NULL)
|
||||
+ {
|
||||
+ free (dev_table[ req_devnumber ].buffer);
|
||||
+ dev_table[ req_devnumber ].buffer = NULL;
|
||||
+ }
|
||||
}
|
||||
|
||||
if ( ( dev_table[ req_devnumber ].mode != DEVMODE_CLOSED ) &&
|
||||
@@ -512,7 +518,7 @@
|
||||
|
||||
/* allocate a character buffer for random access */
|
||||
|
||||
- if (( mode == DEVMODE_RANDOM ) && ( previous_buffer != TRUE ))
|
||||
+ if ( mode == DEVMODE_RANDOM )
|
||||
{
|
||||
/* Revised to CALLOC pass-thru call by JBV */
|
||||
if ( ( dev_table[ req_devnumber ].buffer = CALLOC( rlen + 1, 1, "bwb_open" )) == NULL )
|
@ -1,19 +0,0 @@
|
||||
--- bwbasic.h.orig 2010-01-25 10:25:35.000000000 +0800
|
||||
+++ bwbasic.h 2010-01-25 10:27:15.000000000 +0800
|
||||
@@ -111,10 +111,16 @@
|
||||
***************************************************************/
|
||||
|
||||
#ifdef __STDC__
|
||||
+#ifndef HAVE_RAISE
|
||||
#define HAVE_RAISE TRUE
|
||||
+#endif
|
||||
+#ifndef HAVE_STRING
|
||||
#define HAVE_STRING TRUE
|
||||
+#endif
|
||||
+#ifndef HAVE_STDLIB
|
||||
#define HAVE_STDLIB TRUE
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
#ifdef __STDC__
|
||||
#define HAVE_SIGNAL TRUE
|
Loading…
Reference in New Issue
Block a user