From 0d50547ac1f4263bea83bd9041574423d0e715da Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sun, 21 Aug 2016 23:13:47 +0200 Subject: [PATCH] commands.c: allow 10000 tokens for 'echo' and 'wrdata' --- src/frontend/commands.c | 6 +++--- src/include/ngspice/cpdefs.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/frontend/commands.c b/src/frontend/commands.c index 16b1b0ec6..548c5459c 100644 --- a/src/frontend/commands.c +++ b/src/frontend/commands.c @@ -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, diff --git a/src/include/ngspice/cpdefs.h b/src/include/ngspice/cpdefs.h index e8b33f853..743b42c64 100644 --- a/src/include/ngspice/cpdefs.h +++ b/src/include/ngspice/cpdefs.h @@ -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.