Browse Source

cleanup, void return

rlar 14 years ago
parent
commit
5a69b9efc4
  1. 9
      src/frontend/inp.c
  2. 2
      src/frontend/plotting/plotit.c

9
src/frontend/inp.c

@ -102,7 +102,6 @@ com_listing(wordlist *wl)
} }
} else } else
fprintf(cp_err, "Error: no circuit loaded.\n"); fprintf(cp_err, "Error: no circuit loaded.\n");
return;
} }
/* returns inp_casefix() or NULL */ /* returns inp_casefix() or NULL */
@ -275,7 +274,6 @@ top2:
} else } else
fprintf(cp_err, "inp_list: Internal Error: bad type %d\n", fprintf(cp_err, "inp_list: Internal Error: bad type %d\n",
type); type);
return;
} }
/* /*
@ -689,8 +687,6 @@ inp_spsource(FILE *fp, bool comfile, char *filename)
cp_curin = lastin; cp_curin = lastin;
cp_curout = lastout; cp_curout = lastout;
cp_curerr = lasterr; cp_curerr = lasterr;
return;
} }
@ -951,7 +947,6 @@ inp_dodeck(
/* add title of deck to data base */ /* add title of deck to data base */
cp_addkword(CT_CKTNAMES, tt); cp_addkword(CT_CKTNAMES, tt);
return;
} }
@ -1039,8 +1034,6 @@ com_edit(wordlist *wl)
fprintf(cp_out, "running circuit\n"); fprintf(cp_out, "running circuit\n");
com_run(NULL); com_run(NULL);
} }
return;
} }
static bool static bool
@ -1114,7 +1107,6 @@ com_source(wordlist *wl)
cp_interactive = inter; cp_interactive = inter;
if (tempfile) if (tempfile)
unlink(tempfile); unlink(tempfile);
return;
} }
void void
@ -1123,5 +1115,4 @@ inp_source(char *file)
static struct wordlist wl = { NULL, NULL, NULL } ; static struct wordlist wl = { NULL, NULL, NULL } ;
wl.wl_word = file; wl.wl_word = file;
com_source(&wl); com_source(&wl);
return;
} }

2
src/frontend/plotting/plotit.c

@ -123,7 +123,6 @@ xtend(struct dvec *v, int length)
} }
v->v_length = length; v->v_length = length;
return;
} }
@ -170,7 +169,6 @@ compress(struct dvec *d, double *xcomp, double *xind)
d->v_length = i; d->v_length = i;
} }
} }
return;
} }

Loading…
Cancel
Save