From d4773b71ce3d80db11718552e5917d6944fa3129 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 12 Mar 2017 19:42:29 +0100 Subject: [PATCH] untabify commit "Fixed file_source. See the example.cir," --- src/xspice/icm/analog/file_source/cfunc.mod | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xspice/icm/analog/file_source/cfunc.mod b/src/xspice/icm/analog/file_source/cfunc.mod index f19329e49..1e16d9ae8 100644 --- a/src/xspice/icm/analog/file_source/cfunc.mod +++ b/src/xspice/icm/analog/file_source/cfunc.mod @@ -211,8 +211,8 @@ void cm_filesource(ARGS) /* structure holding parms, inputs, outputs, etc. /* When TIME was *less* than the last read time, originally the code would read nothing at all. */ if (TIME < loc->timeinterval[0]) { - rewind(loc->state->fp); /* mhx: e.g. ALTER statement */ - loc->timeinterval[0] = loc->timeinterval[1] = PARAM_NULL(timeoffset) ? 0.0 : PARAM(timeoffset); + rewind(loc->state->fp); /* mhx: e.g. ALTER statement */ + loc->timeinterval[0] = loc->timeinterval[1] = PARAM_NULL(timeoffset) ? 0.0 : PARAM(timeoffset); } while (TIME >= loc->timeinterval[1] && !loc->state->atend) { @@ -228,7 +228,7 @@ void cm_filesource(ARGS) /* structure holding parms, inputs, outputs, etc. } cpdel = cp = strdup(line); - /* read the time channel; update the time difference */ + /* read the time channel; update the time difference */ while (*cp && isspace_c(*cp)) ++cp; if (*cp == '#' || *cp == ';') { @@ -250,7 +250,7 @@ void cm_filesource(ARGS) /* structure holding parms, inputs, outputs, etc. loc->timeinterval[0] = loc->timeinterval[1]; loc->timeinterval[1] = t; - /* read the channels; update the amplitude difference of each channel */ + /* read the channels; update the amplitude difference of each channel */ for (i = 0; i < size; ++i) loc->amplinterval[2 * i] = loc->amplinterval[2 * i + 1]; for (i = 0; i < size; ++i) {