Leading space bug corrected.
This commit is contained in:
parent
1912d652f6
commit
d0c3eaf5fe
|
|
@ -1,3 +1,10 @@
|
||||||
|
2004-02-10 Paolo Nenzi <p.nenzi@ieee.org>
|
||||||
|
|
||||||
|
* src/frontend/inpcom.c: Applied patch from Dietmar Warning
|
||||||
|
to solve the bug discovered by Jelle Haandrikman: wrong
|
||||||
|
subcircuit expansion when leading spaces are present in the
|
||||||
|
subcircuit netlist.
|
||||||
|
|
||||||
2004-01-28 Paolo Nenzi <p.nenzi@ieee.org>
|
2004-01-28 Paolo Nenzi <p.nenzi@ieee.org>
|
||||||
|
|
||||||
* configure.in: changed version to rework15.
|
* configure.in: changed version to rework15.
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ readline(FILE *fd)
|
||||||
strptr = tmalloc(memlen);
|
strptr = tmalloc(memlen);
|
||||||
memlen -= 1; /* Save constant -1's in while loop */
|
memlen -= 1; /* Save constant -1's in while loop */
|
||||||
while((c = getc(fd)) != EOF) {
|
while((c = getc(fd)) != EOF) {
|
||||||
if (strlen == 0 && c == '\n')
|
if (strlen == 0 && (c == '\n' || c == ' ')) /* Leading spaces away */
|
||||||
continue;
|
continue;
|
||||||
strptr[strlen] = c;
|
strptr[strlen] = c;
|
||||||
strlen++;
|
strlen++;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue