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

View File

@@ -59,8 +59,8 @@ E_FUNC FILE *f_open(char *name, char *mode);
E_FUNC FILE *curstream(void);
#define TTYSIZE 100 /* reallocation size for terminal buffers */
#define MAXDEPTH 10 /* maximum depth of input */
#define TTYSIZE 8191 /* reallocation size for terminal buffers */
#define MAXDEPTH 255 /* maximum depth of input */
#define IS_READ 1 /* reading normally */
#define IS_REREAD 2 /* reread current character */
#define chartoint(ch) ((ch) & 0xff) /* make sure char is not negative */
@@ -789,7 +789,7 @@ ttychar(void)
{
int ch; /* current char */
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.