commands.c: allow 10000 tokens for 'echo' and 'wrdata'

This commit is contained in:
h_vogt 2016-08-21 23:13:47 +02:00 committed by rlar
parent 0d1b4d54c0
commit 0d50547ac1
2 changed files with 4 additions and 3 deletions

View File

@ -206,7 +206,7 @@ struct comm spcp_coms[] = {
NULL,
"file plotargs : Send plot to gnuplot." } ,
{ "wrdata", com_write_simple, FALSE, TRUE,
{ 1, 041000, 041000, 041000 }, E_DEFHMASK, 2, LOTS,
{ 1, 041000, 041000, 041000 }, E_DEFHMASK, 2, NLOTS,
NULL,
"file plotargs : Send plot data to file." } ,
{ "wrs2p", com_write_sparam, FALSE, TRUE,
@ -483,7 +483,7 @@ struct comm spcp_coms[] = {
NULL,
"[-r] [number] : Print command history." } ,
{ "echo", com_echo, FALSE, FALSE,
{ 1, 1, 1, 1 }, E_DEFHMASK, 0, LOTS,
{ 1, 1, 1, 1 }, E_DEFHMASK, 0, NLOTS,
NULL,
"[stuff ...] : Print stuff." } ,
{ "shell", com_shell, FALSE, TRUE,
@ -665,7 +665,7 @@ struct comm nutcp_coms[] = {
NULL,
"file plotargs : Send plot to gnuplot." } ,
{ "wrdata", com_write_simple, FALSE, TRUE,
{ 1, 041000, 041000, 041000 }, E_DEFHMASK, 2, LOTS,
{ 1, 041000, 041000, 041000 }, E_DEFHMASK, 2, NLOTS,
NULL,
"file plotargs : Send plot data to file." } ,
{ "wrs2p", com_write_sparam, FALSE, TRUE,

View File

@ -50,6 +50,7 @@ struct comm {
};
#define LOTS 1000
#define NLOTS 10000
/* The history list. Things get put here after the first (basic) parse.
* The word list will change later, so be sure to copy it.