Browse Source

commands.c: 'options' equivalent to 'option' and allow 'loadsnap' and 'savesnap'

which have been EXPERIMENTAL_CODE so far
h_vogt 14 years ago
parent
commit
07727f74f0
  1. 13
      src/frontend/commands.c
  2. 2
      src/frontend/spiceif.c
  3. 2
      src/frontend/spiceif.h
  4. 2
      src/main.c

13
src/frontend/commands.c

@ -86,10 +86,7 @@
#include "arg.h"
#ifdef EXPERIMENTAL_CODE
#include "com_option.h"
#include "spiceif.h" /* for com_loadsnap() and com_savesnap() */
#endif
#include "com_dl.h"
@ -131,12 +128,16 @@ struct comm spcp_coms[] = {
"[option] [option = value] ... : Set a variable." } ,
/* PN support for altering options in interactive mode */
/* support for altering options in interactive mode,
using either command 'option' or 'options'*/
{ "option", com_option, TRUE, TRUE,
{ 020000, 020000, 020000, 020000 }, E_DEFHMASK, 0, LOTS,
arg_set,
"[option] [option = value] ... : Set a simulator option." } ,
#ifdef EXPERIMENTAL_CODE
{ "options", com_option, TRUE, TRUE,
{ 020000, 020000, 020000, 020000 }, E_DEFHMASK, 0, LOTS,
arg_set,
"[option] [option = value] ... : Set a simulator option." } ,
{ "savesnap", com_savesnap, FALSE, TRUE,
{ 1, 040000, 040000, 040000 }, E_DEFHMASK, 1, 1,
NULL,
@ -145,8 +146,6 @@ struct comm spcp_coms[] = {
{ 1, 040000, 040000, 040000 }, E_DEFHMASK, 2, 2,
NULL,
"file : Load a snapshot." } ,
#endif
{ "alias", com_alias, FALSE, FALSE,
{ 02, 04, 04, 04 }, E_ADVANCED, 0, LOTS,
NULL,

2
src/frontend/spiceif.c

@ -1319,7 +1319,6 @@ if_getstat(CKTcircuit *ckt, char *name) {
LTRA transmission line will not do.
Many others are not tested.
*/
#ifdef EXPERIMENTAL_CODE
#include "ngspice/cktdefs.h"
#include "ngspice/trandefs.h"
@ -1726,4 +1725,3 @@ void com_savesnap(wordlist *wl)
}
#endif /* EXPERIMENTAL_CODE */

2
src/frontend/spiceif.h

@ -13,9 +13,7 @@ void if_dump(CKTcircuit *ckt, FILE *file);
void if_cktfree(CKTcircuit *ckt, INPtables *tab);
int if_analQbyName(CKTcircuit *ckt, int which, JOB *anal, char *name, IFvalue *parm);
#ifdef EXPERIMENTAL_CODE
void com_loadsnap(wordlist *wl);
void com_savesnap(wordlist *wl);
#endif
#endif /* SPICEIF_H_INCLUDED */

2
src/main.c

@ -353,10 +353,8 @@ if_getstat(CKTcircuit *ckt, char *name)
return (NULL);
}
#ifdef EXPERIMENTAL_CODE
void com_loadsnap(wordlist *wl) { return; }
void com_savesnap(wordlist *wl) { return; }
#endif
void SMPprint( SMPmatrix *n1 , char *n2)
{

Loading…
Cancel
Save