Released calc 2.12.6.7 with help and input fixes

Fixed errors in various help files such as:

	mat randbit seed srandom types

    Removed the MAXSTRING symbol because it was no longer used by calc.

    Increased HIST_SIZE (depth of the history stack) from 10k to 32k.

    Increased TTYSIZE (reallocation size for terminal buffers) from 100 to 8191.

    Increased MAXDEPTH (maximum depth of input stack) from 10 to 255.

    Increased interactive input buffer size from 1024 to 256k.  This has the
    effect of increasing the maximum length of an input line from a tty.
    This helps with an interactive bug that was reported by Ruslan Kabatsayev
    (b7 dot 10110111 at gmail dot com).
k
This commit is contained in:
Landon Curt Noll
2018-03-04 11:09:09 -08:00
parent b29fcf2dd5
commit e555a718c0
9 changed files with 25 additions and 11 deletions

17
CHANGES
View File

@@ -8,6 +8,23 @@ The following are the changes from calc version 2.12.6.6 to date:
Added work around for a gcc warning bug, thanks to a report by Mike Added work around for a gcc warning bug, thanks to a report by Mike
<michael dot d dot ince at gmail dot com>. <michael dot d dot ince at gmail dot com>.
Fixed errors in various help files such as:
mat randbit seed srandom types
Removed the MAXSTRING symbol because it was no longer used by calc.
Increased HIST_SIZE (depth of the history stack) from 10k to 32k.
Increased TTYSIZE (reallocation size for terminal buffers) from 100 to 8191.
Increased MAXDEPTH (maximum depth of input stack) from 10 to 255.
Increased interactive input buffer size from 1024 to 256k. This has the
effect of increasing the maximum length of an input line from a tty.
This helps with an interactive bug that was reported by Ruslan Kabatsayev
(b7 dot 10110111 at gmail dot com).
The following are the changes from calc version 2.12.6.4 to 2.12.6.5: The following are the changes from calc version 2.12.6.4 to 2.12.6.5:

View File

@@ -1054,7 +1054,7 @@ EXT=
# The default calc versions # The default calc versions
# #
VERSION= 2.12.6.6 VERSION= 2.12.6.7
# Names of shared libraries with versions # Names of shared libraries with versions
# #

1
calc.h
View File

@@ -65,7 +65,6 @@
#define SYMBOLSIZE 256 /* maximum symbol name size */ #define SYMBOLSIZE 256 /* maximum symbol name size */
#define MAXLABELS 100 /* maximum number of user labels in function */ #define MAXLABELS 100 /* maximum number of user labels in function */
#define MAXSTRING 1024 /* maximum size of string constant */
#define MAXSTACK 2048 /* maximum depth of evaluation stack */ #define MAXSTACK 2048 /* maximum depth of evaluation stack */
#define MAXFILES 20 /* maximum number of opened files */ #define MAXFILES 20 /* maximum number of opened files */
#define PROMPT1 "> " /* default normal prompt*/ #define PROMPT1 "> " /* default normal prompt*/

View File

@@ -348,7 +348,7 @@ EXT=
# The default calc versions # The default calc versions
# #
VERSION= 2.12.6.6 VERSION= 2.12.6.7
# Names of shared libraries with versions # Names of shared libraries with versions
# #

View File

@@ -348,7 +348,7 @@ EXT=
# The default calc versions # The default calc versions
# #
VERSION= 2.12.6.6 VERSION= 2.12.6.7
# Names of shared libraries with versions # Names of shared libraries with versions
# #

View File

@@ -173,8 +173,6 @@ STATIC struct infoname sys_info[] = {
(FULL)MAXSCANCOUNT}, (FULL)MAXSCANCOUNT},
{"MAXSTACK", "max depth of evaluation stack", NULL, {"MAXSTACK", "max depth of evaluation stack", NULL,
(FULL)MAXSTACK}, (FULL)MAXSTACK},
{"MAXSTRING", "max size of string constant", NULL,
(FULL)MAXSTRING},
{"MAXUFULL", "largest FULL value", NULL, {"MAXUFULL", "largest FULL value", NULL,
(FULL)MAXUFULL}, (FULL)MAXUFULL},
{"MAXULONG", "largest unsigned long val", NULL, {"MAXULONG", "largest unsigned long val", NULL,

2
hist.h
View File

@@ -36,7 +36,7 @@
#endif #endif
#ifndef HIST_SIZE #ifndef HIST_SIZE
#define HIST_SIZE (1024*10) #define HIST_SIZE (1024*32)
#endif #endif

View File

@@ -59,8 +59,8 @@ E_FUNC FILE *f_open(char *name, char *mode);
E_FUNC FILE *curstream(void); E_FUNC FILE *curstream(void);
#define TTYSIZE 100 /* reallocation size for terminal buffers */ #define TTYSIZE 8191 /* reallocation size for terminal buffers */
#define MAXDEPTH 10 /* maximum depth of input */ #define MAXDEPTH 255 /* maximum depth of input */
#define IS_READ 1 /* reading normally */ #define IS_READ 1 /* reading normally */
#define IS_REREAD 2 /* reread current character */ #define IS_REREAD 2 /* reread current character */
#define chartoint(ch) ((ch) & 0xff) /* make sure char is not negative */ #define chartoint(ch) ((ch) & 0xff) /* make sure char is not negative */
@@ -789,7 +789,7 @@ ttychar(void)
{ {
int ch; /* current char */ int ch; /* current char */
int len; /* length of current command */ int len; /* length of current command */
STATIC char charbuf[1024]; STATIC char charbuf[256*1024];
/* /*
* If we have more to read from the saved command line, then do that. * If we have more to read from the saved command line, then do that.

View File

@@ -45,7 +45,7 @@ static char *program;
#define MAJOR_VER 2 /* major library version */ #define MAJOR_VER 2 /* major library version */
#define MINOR_VER 12 /* minor library version */ #define MINOR_VER 12 /* minor library version */
#define MAJOR_PATCH 6 /* major software level under library version */ #define MAJOR_PATCH 6 /* major software level under library version */
#define MINOR_PATCH 6 /* minor software level or 0 if not patched */ #define MINOR_PATCH 7 /* minor software level or 0 if not patched */
/* /*