beautify code

This commit is contained in:
h_vogt 2012-05-01 14:32:07 +02:00
parent d65259fd45
commit 80ca57eb76
1 changed files with 413 additions and 415 deletions

View File

@ -278,8 +278,7 @@ beginPlot(JOB *analysisPtr, CKTcircuit *circuitPtr, char *cktName, char *analNam
addSpecialDesc(run, tmpname, namebuf, parambuf, depind); addSpecialDesc(run, tmpname, namebuf, parambuf, depind);
}; };
strcpy(ch, "[ib]"); strcpy(ch, "[ib]");
} else } else if ((strstr(ch, "#internal")!=NULL)&&(tmpname[1]=='d')) {
if ((strstr(ch, "#internal")!=NULL)&&(tmpname[1]=='d')) {
strcpy(ch, "[id]"); strcpy(ch, "[id]");
} else { } else {
fprintf(cp_err, fprintf(cp_err,
@ -287,7 +286,8 @@ beginPlot(JOB *analysisPtr, CKTcircuit *circuitPtr, char *cktName, char *analNam
continue; continue;
}; };
if (parseSpecial(tmpname, namebuf, parambuf, depbuf)) { if (parseSpecial(tmpname, namebuf, parambuf, depbuf)) {
if (*depbuf) { fprintf( stderr, if (*depbuf) {
fprintf( stderr,
"Warning : unexpected dependent variable on %s\n", tmpname); "Warning : unexpected dependent variable on %s\n", tmpname);
} else { } else {
addSpecialDesc(run, tmpname, namebuf, parambuf, depind); addSpecialDesc(run, tmpname, namebuf, parambuf, depind);
@ -344,8 +344,7 @@ beginPlot(JOB *analysisPtr, CKTcircuit *circuitPtr, char *cktName, char *analNam
if (numNames && if (numNames &&
( (run->numData == 1 && run->refIndex != -1) ( (run->numData == 1 && run->refIndex != -1)
|| (run->numData == 0 && run->refIndex == -1)) ) /* va: suggested parentheses */ || (run->numData == 0 && run->refIndex == -1)) ) { /* va: suggested parentheses */
{
fprintf(cp_err, "Error: no data saved for %s; analysis not run\n", fprintf(cp_err, "Error: no data saved for %s; analysis not run\n",
spice_analysis_get_description(analysisPtr->JOBtype)); spice_analysis_get_description(analysisPtr->JOBtype));
return E_NOTFOUND; return E_NOTFOUND;
@ -506,8 +505,7 @@ OUTpData(runDesc *plotPtr, IFvalue *refValue, IFvalue *valuePtr)
fprintf(stderr, "OUTpData: unsupported data type\n"); fprintf(stderr, "OUTpData: unsupported data type\n");
} else { } else {
/* should pre-check instance */ /* should pre-check instance */
if (!getSpecial(&run->data[i], run, &val)) if (!getSpecial(&run->data[i], run, &val)) {
{
/* If this is the first data point, print a warning for any unrecognized /* If this is the first data point, print a warning for any unrecognized
variables, since this has not already been checked */ variables, since this has not already been checked */