Browse Source

correct resistor expression line 3707

pre-master-46
h_vogt 16 years ago
parent
commit
e5e54f9270
  1. 1
      ChangeLog
  2. 4
      src/frontend/inpcom.c

1
ChangeLog

@ -1,6 +1,7 @@
2010-05-08 Holger Vogt 2010-05-08 Holger Vogt
* inpcom.c: patch 20/05/10 by Robert: avoid substraction from a builtin 1.0 * inpcom.c: patch 20/05/10 by Robert: avoid substraction from a builtin 1.0
* inpcom.c: update to E, G sources with expressions * inpcom.c: update to E, G sources with expressions
* inpcom.c, line 3707: put expression for dependent resistor in brackets
2010-04-26 Dietmar Warning 2010-04-26 Dietmar Warning
* parser/inpgval.c: correct parsing of integer model parameter given as double * parser/inpgval.c: correct parsing of integer model parameter given as double

4
src/frontend/inpcom.c

@ -3702,9 +3702,9 @@ static void inp_compat(struct line *deck)
/* Find equation, starts with '{', till end of line */ /* Find equation, starts with '{', till end of line */
str_ptr = strstr(cut_line, "{"); str_ptr = strstr(cut_line, "{");
xlen = strlen(title_tok) + strlen(node1) + strlen(node2) + xlen = strlen(title_tok) + strlen(node1) + strlen(node2) +
strlen(node1) + strlen(node2) + strlen(str_ptr) + 15;
strlen(node1) + strlen(node2) + strlen(str_ptr) + 17;
xline = (char*)tmalloc(xlen); xline = (char*)tmalloc(xlen);
sprintf(xline, "b%s %s %s I = v(%s, %s)/%s", title_tok, node1, node2,
sprintf(xline, "b%s %s %s I = v(%s, %s)/(%s)", title_tok, node1, node2,
node1, node2, str_ptr); node1, node2, str_ptr);
new_line = alloc(struct line); new_line = alloc(struct line);
new_line->li_next = NULL; new_line->li_next = NULL;

Loading…
Cancel
Save