parent
025a9fe599
commit
83fef9306f
|
|
@ -153,6 +153,7 @@ static bool cont_condition;
|
||||||
#include "ngspice/memory.h"
|
#include "ngspice/memory.h"
|
||||||
#include "frontend/com_measure2.h"
|
#include "frontend/com_measure2.h"
|
||||||
#include "frontend/misccoms.h"
|
#include "frontend/misccoms.h"
|
||||||
|
#include "ngspice/stringskip.h"
|
||||||
|
|
||||||
#ifdef HAVE_FTIME
|
#ifdef HAVE_FTIME
|
||||||
#include <sys/timeb.h>
|
#include <sys/timeb.h>
|
||||||
|
|
@ -978,8 +979,7 @@ int ngSpice_Circ(char** circa){
|
||||||
immediate = FALSE;
|
immediate = FALSE;
|
||||||
/* count the entries */
|
/* count the entries */
|
||||||
while (circa[entries]) {
|
while (circa[entries]) {
|
||||||
entries++;
|
char* line = skip_ws(circa[entries++]);
|
||||||
char* line = circa[entries - 1];
|
|
||||||
if (ciprefix(".end", line) && (line[4] == '\0' || isspace_c(line[4])))
|
if (ciprefix(".end", line) && (line[4] == '\0' || isspace_c(line[4])))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue