Browse Source

bug no. 3201331

pre-master-46
h_vogt 15 years ago
parent
commit
7af24747ec
  1. 3
      ChangeLog
  2. 45
      src/frontend/inpcom.c

3
ChangeLog

@ -1,3 +1,6 @@
2011-03-07 Holger Vogt
* inpcom.c: bug no. 3201331 fixed
2011-03-04 Robert Larice 2011-03-04 Robert Larice
* src/spicelib/devices/isrc/isrcdefs.h : * src/spicelib/devices/isrc/isrcdefs.h :
bug fix, isrc polarity inversion bug fix, isrc polarity inversion

45
src/frontend/inpcom.c

@ -110,6 +110,7 @@ static char* inp_remove_ws( char *s );
static void inp_compat(struct line *deck); static void inp_compat(struct line *deck);
static void inp_bsource_compat(struct line *deck); static void inp_bsource_compat(struct line *deck);
/*-------------------------------------------------------------------------* /*-------------------------------------------------------------------------*
* This routine reads a line (of arbitrary length), up to a '\n' or 'EOF' * * This routine reads a line (of arbitrary length), up to a '\n' or 'EOF' *
* and returns a pointer to the resulting null terminated string. * * and returns a pointer to the resulting null terminated string. *
@ -1204,6 +1205,8 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c
/* only the last title line remains valid */ /* only the last title line remains valid */
if (new_title != NULL) tfree(new_title); if (new_title != NULL) tfree(new_title);
new_title = copy(s); new_title = copy(s);
if (s=strstr(new_title, "\n"))
*s = ' ';
*buffer = '*'; /* change .TITLE line to comment line */ *buffer = '*'; /* change .TITLE line to comment line */
} }
@ -1655,6 +1658,7 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c
inp_fix_gnd_name(working); inp_fix_gnd_name(working);
inp_chk_for_multi_in_vcvs(working, &line_number); inp_chk_for_multi_in_vcvs(working, &line_number);
if (cp_getvar("addcontrol", CP_BOOL, NULL)) if (cp_getvar("addcontrol", CP_BOOL, NULL))
inp_add_control_section(working, &line_number); inp_add_control_section(working, &line_number);
inp_compat_mode = ngspice_compat_mode() ; inp_compat_mode = ngspice_compat_mode() ;
@ -3580,6 +3584,47 @@ inp_split_multi_param_lines( struct line *deck, int line_num )
return line_num; return line_num;
} }
/* pspice compatibility: /* pspice compatibility:
ECOMP 3 0 TABLE {V(1,2)} = (-1MV 0V) (1MV, 10V) ECOMP 3 0 TABLE {V(1,2)} = (-1MV 0V) (1MV, 10V)
--> -->

Loading…
Cancel
Save