Browse Source

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

pre-master-46
h_vogt 10 years ago
committed by rlar
parent
commit
0d50547ac1
  1. 6
      src/frontend/commands.c
  2. 1
      src/include/ngspice/cpdefs.h

6
src/frontend/commands.c

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

1
src/include/ngspice/cpdefs.h

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

Loading…
Cancel
Save