From 36eb551ab07c22705dbef9b4ff5e1254a5be0fd6 Mon Sep 17 00:00:00 2001 From: Jon Foster Date: Mon, 27 Sep 2021 09:42:07 -0700 Subject: [PATCH] v2.61 * Bug fix from Matthias Rustler --- Makefile.in | 2 +- Makefile.ncu | 4 ++-- README | 10 +++++++++- bwb_prn.c | 2 +- bwbasic.h | 4 ++-- bwx_tty.c | 2 ++ compile.bat | 4 ++-- configure | 0 stdcomp.bat | 4 ++-- 9 files changed, 21 insertions(+), 11 deletions(-) mode change 100755 => 100644 configure diff --git a/Makefile.in b/Makefile.in index 984e7ac..97de1cf 100644 --- a/Makefile.in +++ b/Makefile.in @@ -102,7 +102,7 @@ realclean: distclean rm -f TAGS dist: $(DISTFILES) - echo bwbasic-2.50 > .fname + echo bwbasic-2.61 > .fname rm -rf `cat .fname` mkdir `cat .fname` ln $(DISTFILES) `cat .fname` diff --git a/Makefile.ncu b/Makefile.ncu index f4448f1..1d2aa3f 100644 --- a/Makefile.ncu +++ b/Makefile.ncu @@ -113,9 +113,9 @@ distclean: clean realclean: distclean rm -f TAGS -# Version number changed from 2.20 to 2.40 by PE +# Version number changed to 2.61 by PE dist: $(DISTFILES) - echo bwbasic-2.40 > .fname + echo bwbasic-2.61 > .fname rm -rf `cat .fname` mkdir `cat .fname` ln $(DISTFILES) `cat .fname` diff --git a/README b/README index 1e4340b..d3eeecb 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ README file for - Bywater BASIC Interpreter/Shell, version 2.60 + Bywater BASIC Interpreter/Shell, version 2.61 --------------------------------------------- Copyright (c) 1993, Ted A. Campbell @@ -30,6 +30,9 @@ Version 2.60 modifications by Paul Edwards, 6 November 2012 + Version 2.61 modifications by Paul Edwards, + 4 August 2014 + @@ -203,6 +206,11 @@ CHANGE HISTORY +CHANGES FROM 2.60 to 2.61 + + * Bug fix from Matthias Rustler + + CHANGES FROM 2.50 to 2.60 * New maths functions and append mode support from Edmond Orignac diff --git a/bwb_prn.c b/bwb_prn.c index c92bd44..76efd67 100644 --- a/bwb_prn.c +++ b/bwb_prn.c @@ -1328,7 +1328,7 @@ prn_precision( v ) ***************************************************************/ -#if PERMANENT_DEBUG +#if PERMANENT_DEBUG || INTENSIVE_DEBUG #if ANSI_C int diff --git a/bwbasic.h b/bwbasic.h index 8b5f43a..40269e7 100644 --- a/bwbasic.h +++ b/bwbasic.h @@ -41,7 +41,7 @@ /* Version number */ -#define VERSION "2.60" /* Current version number */ +#define VERSION "2.61" /* Current version number */ /*************************************************************** @@ -1176,7 +1176,7 @@ extern int fnc_checkargs( int argc, struct bwb_variable *argv, int min, int max ); extern int ufsc; /* user function stack counter */ -#if DEBUG +#if DEBUG || INTENSIVE_DEBUG extern struct bwb_variable *fnc_test( int argc, struct bwb_variable *argv, int unique_id ); #endif diff --git a/bwx_tty.c b/bwx_tty.c index 45593c5..4483738 100644 --- a/bwx_tty.c +++ b/bwx_tty.c @@ -256,6 +256,8 @@ bwx_input( prompt, buffer ) prn_xprintf( stdout, prompt ); + fflush( stdout ); + fgets( buffer, MAXREADLINESIZE, stdin ); * prn_getcol( stdout ) = 1; /* reset column */ diff --git a/compile.bat b/compile.bat index 917916b..d624442 100644 --- a/compile.bat +++ b/compile.bat @@ -21,5 +21,5 @@ call stdcomp bwb_stc.c call stdcomp bwx_tty.c call stdcomp unixio.c -gcc -mno-cygwin -s -o bwbasic.exe *.o -rem bcc32 -ebwbasic.exe *.obj +rem gcc -mno-cygwin -s -o bwbasic.exe *.o +bcc32 -O -ebwbasic.exe *.obj diff --git a/configure b/configure old mode 100755 new mode 100644 diff --git a/stdcomp.bat b/stdcomp.bat index 13c2122..4772824 100644 --- a/stdcomp.bat +++ b/stdcomp.bat @@ -1,3 +1,3 @@ -gcc -w -c -ansi -mno-cygwin -I . %1 %2 %3 %4 %5 %6 %7 %8 %9 -rem bcc32 -w- -A -c -I. %1 %2 %3 %4 %5 %6 %7 %8 %9 +rem gcc -w -c -ansi -mno-cygwin -I . %1 %2 %3 %4 %5 %6 %7 %8 %9 +bcc32 -O -w- -A -c -I. %1 %2 %3 %4 %5 %6 %7 %8 %9 rem gccmvs -Os -S -ansi -nostdinc -I ../pdos/pdpclib -I . %1 %2 %3 %4 %5 %6 %7 %8 %9