Skip to content

Commit e555a71

Browse files
committed
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
1 parent b29fcf2 commit e555a71

File tree

9 files changed

+25
-11
lines changed

9 files changed

+25
-11
lines changed

CHANGES

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,23 @@ The following are the changes from calc version 2.12.6.6 to date:
88
Added work around for a gcc warning bug, thanks to a report by Mike
99
<michael dot d dot ince at gmail dot com>.
1010

11+
Fixed errors in various help files such as:
12+
13+
mat randbit seed srandom types
14+
15+
Removed the MAXSTRING symbol because it was no longer used by calc.
16+
17+
Increased HIST_SIZE (depth of the history stack) from 10k to 32k.
18+
19+
Increased TTYSIZE (reallocation size for terminal buffers) from 100 to 8191.
20+
21+
Increased MAXDEPTH (maximum depth of input stack) from 10 to 255.
22+
23+
Increased interactive input buffer size from 1024 to 256k. This has the
24+
effect of increasing the maximum length of an input line from a tty.
25+
This helps with an interactive bug that was reported by Ruslan Kabatsayev
26+
(b7 dot 10110111 at gmail dot com).
27+
1128

1229
The following are the changes from calc version 2.12.6.4 to 2.12.6.5:
1330

Makefile.ship

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ EXT=
10541054

10551055
# The default calc versions
10561056
#
1057-
VERSION= 2.12.6.6
1057+
VERSION= 2.12.6.7
10581058

10591059
# Names of shared libraries with versions
10601060
#

calc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565

6666
#define SYMBOLSIZE 256 /* maximum symbol name size */
6767
#define MAXLABELS 100 /* maximum number of user labels in function */
68-
#define MAXSTRING 1024 /* maximum size of string constant */
6968
#define MAXSTACK 2048 /* maximum depth of evaluation stack */
7069
#define MAXFILES 20 /* maximum number of opened files */
7170
#define PROMPT1 "> " /* default normal prompt*/

custom/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ EXT=
348348

349349
# The default calc versions
350350
#
351-
VERSION= 2.12.6.6
351+
VERSION= 2.12.6.7
352352

353353
# Names of shared libraries with versions
354354
#

custom/Makefile.head

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ EXT=
348348

349349
# The default calc versions
350350
#
351-
VERSION= 2.12.6.6
351+
VERSION= 2.12.6.7
352352

353353
# Names of shared libraries with versions
354354
#

custom/c_sysinfo.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ STATIC struct infoname sys_info[] = {
173173
(FULL)MAXSCANCOUNT},
174174
{"MAXSTACK", "max depth of evaluation stack", NULL,
175175
(FULL)MAXSTACK},
176-
{"MAXSTRING", "max size of string constant", NULL,
177-
(FULL)MAXSTRING},
178176
{"MAXUFULL", "largest FULL value", NULL,
179177
(FULL)MAXUFULL},
180178
{"MAXULONG", "largest unsigned long val", NULL,

hist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#endif
3737

3838
#ifndef HIST_SIZE
39-
#define HIST_SIZE (1024*10)
39+
#define HIST_SIZE (1024*32)
4040
#endif
4141

4242

input.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ E_FUNC FILE *f_open(char *name, char *mode);
5959
E_FUNC FILE *curstream(void);
6060

6161

62-
#define TTYSIZE 100 /* reallocation size for terminal buffers */
63-
#define MAXDEPTH 10 /* maximum depth of input */
62+
#define TTYSIZE 8191 /* reallocation size for terminal buffers */
63+
#define MAXDEPTH 255 /* maximum depth of input */
6464
#define IS_READ 1 /* reading normally */
6565
#define IS_REREAD 2 /* reread current character */
6666
#define chartoint(ch) ((ch) & 0xff) /* make sure char is not negative */
@@ -789,7 +789,7 @@ ttychar(void)
789789
{
790790
int ch; /* current char */
791791
int len; /* length of current command */
792-
STATIC char charbuf[1024];
792+
STATIC char charbuf[256*1024];
793793

794794
/*
795795
* If we have more to read from the saved command line, then do that.

version.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static char *program;
4545
#define MAJOR_VER 2 /* major library version */
4646
#define MINOR_VER 12 /* minor library version */
4747
#define MAJOR_PATCH 6 /* major software level under library version */
48-
#define MINOR_PATCH 6 /* minor software level or 0 if not patched */
48+
#define MINOR_PATCH 7 /* minor software level or 0 if not patched */
4949

5050

5151
/*

0 commit comments

Comments
 (0)