cosmetical changes

This commit is contained in:
rlar 2010-06-30 20:08:57 +00:00
parent 6874c454fc
commit c178bdb059
5 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2010-06-30 Robert Larice
* src/frontend/com_ahelp.c : drop NULL casting
* src/frontend/com_measure2.c : dont mix enum with integer
* src/include/inpptree.h : add parameter-names to a prototype
* src/spicelib/parser/ptfuncs.c : add casts to anonymous data
2010-06-30 Holger Vogt
* inpcom.c: no braces in let, set commands inside control loop
* glob.c: reinstate {$var} expansion (patch by R. Larice)

View File

@ -62,7 +62,7 @@ com_ahelp(wordlist *wl)
"description of \"command\", type \"help command\".\n");
/* sort the commands */
for (n = 0; cp_coms[n].co_func != (void (*)()) NULL; n++) {
for (n = 0; cp_coms[n].co_func != NULL; n++) {
cc[n] = &cp_coms[n];
}
qsort((char *) cc, n, sizeof(struct comm *), hcomp);

View File

@ -1213,10 +1213,10 @@ get_measure2(
char *mName = NULL; // name given to the measured output
char *mFunction = NULL;
int precision; // measurement precision
int mFunctionType, wl_cnt;
ANALYSIS_TYPE_T mFunctionType = AT_UNKNOWN;
int wl_cnt;
char *p;
mFunctionType = -1;
*result = 0.0e0; /* default result */
if (!wl) {

View File

@ -203,7 +203,7 @@ extern double PTle0(double arg);
/* And in IFeval.c */
#ifdef __STDC__
extern int IFeval(IFparseTree *, double, double*, double*, double*);
extern int IFeval(IFparseTree *tree, double gmin, double *result, double *vals, double *derivs);
#else /* stdc */
extern int IFeval();
#endif /* stdc */

View File

@ -294,7 +294,7 @@ PTuminus(double arg)
double
PTpwl(double arg, void *data)
{
struct pwldata { int n; double *vals; } *thing = data;
struct pwldata { int n; double *vals; } *thing = (struct pwldata *) data;
double y;
@ -319,7 +319,7 @@ PTpwl(double arg, void *data)
double
PTpwl_derivative(double arg, void *data)
{
struct pwldata { int n; double *vals; } *thing = data;
struct pwldata { int n; double *vals; } *thing = (struct pwldata *) data;
double y;