bug no. 3127808, and rem trailing white spaces
This commit is contained in:
parent
e1292b0c3a
commit
2b4069f93e
|
|
@ -1,3 +1,7 @@
|
||||||
|
2010-12-11 Holger Vogt
|
||||||
|
* inpcom.c: && and || in B source, bug no. 3127808
|
||||||
|
* src/makefile.am: trailing white spaces removed
|
||||||
|
|
||||||
2010-12-04 Robert Larice
|
2010-12-04 Robert Larice
|
||||||
* src/xspice/mif/mifdelete.c :
|
* src/xspice/mif/mifdelete.c :
|
||||||
bug fix, segmentation fault caused by `reset' when xspice used
|
bug fix, segmentation fault caused by `reset' when xspice used
|
||||||
|
|
|
||||||
|
|
@ -4352,6 +4352,18 @@ static void inp_bsource_compat(struct line *deck)
|
||||||
str_ptr++;
|
str_ptr++;
|
||||||
ustate = 1; /* we have an operator */
|
ustate = 1; /* we have an operator */
|
||||||
}
|
}
|
||||||
|
else if ((actchar == '|') || (actchar == '&'))
|
||||||
|
{
|
||||||
|
buf[0] = actchar;
|
||||||
|
buf[1] = actchar;
|
||||||
|
buf[2] = '\0';
|
||||||
|
cwl->wl_word = copy(buf);
|
||||||
|
str_ptr++;
|
||||||
|
ustate = 1; /* we have an operator */
|
||||||
|
/* just skip the second & or | */
|
||||||
|
if ((*str_ptr == '|') || (*str_ptr == '&'))
|
||||||
|
str_ptr++;
|
||||||
|
}
|
||||||
else if ((actchar == '-') && (ustate == 0)) {
|
else if ((actchar == '-') && (ustate == 0)) {
|
||||||
buf[0] = actchar;
|
buf[0] = actchar;
|
||||||
buf[1] = '\0';
|
buf[1] = '\0';
|
||||||
|
|
@ -4512,8 +4524,10 @@ static void inp_bsource_compat(struct line *deck)
|
||||||
new_line->li_error = NULL;
|
new_line->li_error = NULL;
|
||||||
new_line->li_actual = NULL;
|
new_line->li_actual = NULL;
|
||||||
new_line->li_line = final_str;
|
new_line->li_line = final_str;
|
||||||
new_line->li_linenum = 0;
|
/* Copy old line numbers into new B source line */
|
||||||
// comment out current old B line
|
new_line->li_linenum = card->li_linenum;
|
||||||
|
new_line->li_linenum_orig = card->li_linenum_orig;
|
||||||
|
// comment out current line (old B source line)
|
||||||
*(card->li_line) = '*';
|
*(card->li_line) = '*';
|
||||||
// insert new B source line immediately after current line
|
// insert new B source line immediately after current line
|
||||||
tmp_ptr = card->li_next;
|
tmp_ptr = card->li_next;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue