From f665403e7cadee82d68113fb2060846806a20984 Mon Sep 17 00:00:00 2001 From: dwarning Date: Sat, 15 Dec 2007 16:37:10 +0000 Subject: [PATCH] rm unused variables --- src/xspice/icm/digital/d_state/cfunc.mod | 11 +++++------ src/xspice/mif/mifsetup.c | 9 ++++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/xspice/icm/digital/d_state/cfunc.mod b/src/xspice/icm/digital/d_state/cfunc.mod index 24e1f5ea6..79809f97d 100644 --- a/src/xspice/icm/digital/d_state/cfunc.mod +++ b/src/xspice/icm/digital/d_state/cfunc.mod @@ -55,6 +55,7 @@ NON-STANDARD FEATURES #include #include #include +#include @@ -150,8 +151,6 @@ typedef char line_t[82]; /* A SPICE size line. <= 80 characters plus '\n\0' */ /*=== FUNCTION PROTOTYPE DEFINITIONS ===*/ - - @@ -192,7 +191,7 @@ NON-STANDARD FEATURES NONE ==============================================================================*/ -#include + /*=== Static CNVgettok ROUTINE ================*/ /* @@ -1903,12 +1902,12 @@ void cm_d_state(ARGS) input from state.in */ *s; /* main string variable */ - char *open_error = "\n***ERROR***\nD_STATE: failed to open state file.\n"; +/* char *open_error = "\n***ERROR***\nD_STATE: failed to open state file.\n";*/ - char *loading_error = "\n***ERROR***\nD_STATE: state file was not read successfully. \nThe most common cause of this problem is a\ntrailing blank line in the state.in file \n"; + char *loading_error = "\n***ERROR***\nD_STATE: state file was not read successfully. \nThe most common cause of this problem is a\ntrailing blank line in the state.in file \n"; char *index_error = "\n***ERROR***\nD_STATE: An error exists in the ordering of states values\n in the states->state[] array. This is usually caused \nby non-contiguous state definitions in the state.in file \n"; - char buf[100]; +/* char buf[100];*/ diff --git a/src/xspice/mif/mifsetup.c b/src/xspice/mif/mifsetup.c index 919f8cbc7..aa8751483 100755 --- a/src/xspice/mif/mifsetup.c +++ b/src/xspice/mif/mifsetup.c @@ -54,10 +54,8 @@ NON-STANDARD FEATURES - extern SPICEdev **DEVices; /* info about all device types */ -Mif_Boolean_t mif_UNSET=MIF_TRUE; /* define macro for easy creation of matrix entries/pointers for outputs */ #define TSTALLOC(ptr,first,second) \ @@ -457,8 +455,9 @@ MIFunsetup(GENmodel *inModel,CKTcircuit *ckt) MIFmodel *model; MIFinstance *here; Mif_Smp_Ptr_t *smp_data_out; - Mif_Smp_Ptr_t *smp_data_cntl; - Mif_Port_Type_t type,in_type,out_type; +/* Mif_Smp_Ptr_t *smp_data_cntl;*/ +/* Mif_Port_Type_t type, in_type, out_type;*/ + Mif_Port_Type_t in_type, out_type; Mif_Cntl_Src_Type_t cntl_src_type; int num_conn,num_port,i,j,k,l,num_port_k; @@ -529,6 +528,6 @@ MIFunsetup(GENmodel *inModel,CKTcircuit *ckt) } } } - //printf("MIFunsetup completed.\n"); + /* printf("MIFunsetup completed.\n");*/ return OK; }