missing (void*) casts

This commit is contained in:
rlar
2010-07-11 19:15:26 +00:00
parent 460f7a6485
commit 1bb9d1c633
2 changed files with 42 additions and 38 deletions
+4
View File
@@ -1,3 +1,7 @@
2010-07-11 Robert Larice
* src/spicelib/parser/inpptree.c :
missing (void*) casts
2010-07-11 Robert Larice 2010-07-11 Robert Larice
* src/spicelib/analysis/cktsens.c : * src/spicelib/analysis/cktsens.c :
fix type and usage of some function pointers fix type and usage of some function pointers
+38 -38
View File
@@ -46,11 +46,11 @@ static struct op {
} ops[] = { } ops[] = {
{ {
PT_COMMA, ",", NULL}, { PT_COMMA, ",", NULL}, {
PT_PLUS, "+", PTplus}, { PT_PLUS, "+", (void*) PTplus}, {
PT_MINUS, "-", PTminus}, { PT_MINUS, "-", (void*) PTminus}, {
PT_TIMES, "*", PTtimes}, { PT_TIMES, "*", (void*) PTtimes}, {
PT_DIVIDE, "/", PTdivide}, { PT_DIVIDE, "/", (void*) PTdivide}, {
PT_POWER, "^", PTpower} PT_POWER, "^", (void*) PTpower}
}; };
#define NUM_OPS (int)(sizeof (ops) / sizeof (struct op)) #define NUM_OPS (int)(sizeof (ops) / sizeof (struct op))
@@ -60,40 +60,40 @@ static struct func {
int number; int number;
void *funcptr; void *funcptr;
} funcs[] = { } funcs[] = {
{ "abs", PTF_ABS, PTabs } , { "abs", PTF_ABS, (void*) PTabs } ,
{ "acos", PTF_ACOS, PTacos } , { "acos", PTF_ACOS, (void*) PTacos } ,
{ "acosh", PTF_ACOSH, PTacosh } , { "acosh", PTF_ACOSH, (void*) PTacosh } ,
{ "asin", PTF_ASIN, PTasin } , { "asin", PTF_ASIN, (void*) PTasin } ,
{ "asinh", PTF_ASINH, PTasinh } , { "asinh", PTF_ASINH, (void*) PTasinh } ,
{ "atan", PTF_ATAN, PTatan } , { "atan", PTF_ATAN, (void*) PTatan } ,
{ "atanh", PTF_ATANH, PTatanh } , { "atanh", PTF_ATANH, (void*) PTatanh } ,
{ "cos", PTF_COS, PTcos } , { "cos", PTF_COS, (void*) PTcos } ,
{ "cosh", PTF_COSH, PTcosh } , { "cosh", PTF_COSH, (void*) PTcosh } ,
{ "exp", PTF_EXP, PTexp } , { "exp", PTF_EXP, (void*) PTexp } ,
{ "ln", PTF_LN, PTln } , { "ln", PTF_LN, (void*) PTln } ,
{ "log", PTF_LOG, PTlog } , { "log", PTF_LOG, (void*) PTlog } ,
{ "sgn", PTF_SGN, PTsgn } , { "sgn", PTF_SGN, (void*) PTsgn } ,
{ "sin", PTF_SIN, PTsin } , { "sin", PTF_SIN, (void*) PTsin } ,
{ "sinh", PTF_SINH, PTsinh } , { "sinh", PTF_SINH, (void*) PTsinh } ,
{ "sqrt", PTF_SQRT, PTsqrt } , { "sqrt", PTF_SQRT, (void*) PTsqrt } ,
{ "tan", PTF_TAN, PTtan } , { "tan", PTF_TAN, (void*) PTtan } ,
{ "tanh", PTF_TANH, PTtanh } , { "tanh", PTF_TANH, (void*) PTtanh } ,
{ "u", PTF_USTEP, PTustep } , { "u", PTF_USTEP, (void*) PTustep } ,
{ "uramp", PTF_URAMP, PTuramp } , { "uramp", PTF_URAMP, (void*) PTuramp } ,
{ "-", PTF_UMINUS, PTuminus }, { "-", PTF_UMINUS, (void*) PTuminus },
/* MW. cif function added */ /* MW. cif function added */
{ "u2", PTF_USTEP2, PTustep2}, { "u2", PTF_USTEP2, (void*) PTustep2},
{ "pwl", PTF_PWL, PTpwl}, { "pwl", PTF_PWL, (void*) PTpwl},
{ "pwl_derivative", PTF_PWL_DERIVATIVE, PTpwl_derivative}, { "pwl_derivative", PTF_PWL_DERIVATIVE, (void*) PTpwl_derivative},
{ "eq0", PTF_EQ0, PTeq0}, { "eq0", PTF_EQ0, (void*) PTeq0},
{ "ne0", PTF_NE0, PTne0}, { "ne0", PTF_NE0, (void*) PTne0},
{ "gt0", PTF_GT0, PTgt0}, { "gt0", PTF_GT0, (void*) PTgt0},
{ "lt0", PTF_LT0, PTlt0}, { "lt0", PTF_LT0, (void*) PTlt0},
{ "ge0", PTF_GE0, PTge0}, { "ge0", PTF_GE0, (void*) PTge0},
{ "le0", PTF_LE0, PTle0}, { "le0", PTF_LE0, (void*) PTle0},
{ "pow", PTF_POW, PTpower}, { "pow", PTF_POW, (void*) PTpower},
{ "min", PTF_MIN, PTmin}, { "min", PTF_MIN, (void*) PTmin},
{ "max", PTF_MAX, PTmax}, { "max", PTF_MAX, (void*) PTmax},
} ; } ;
#define NUM_FUNCS (int)(sizeof (funcs) / sizeof (struct func)) #define NUM_FUNCS (int)(sizeof (funcs) / sizeof (struct func))