From a0b0f550ab249208d8d5aee84b371b2f7ff174ab Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 10 Jul 2010 14:06:14 +0000 Subject: [PATCH] ansi style function args for a function pointer arg of spInitialize() --- ChangeLog | 7 +++++++ src/include/spmatrix.h | 2 +- src/maths/sparse/spbuild.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e3649012..8e2d98c09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-07-10 Robert Larice + * src/include/spmatrix.h , + * src/maths/sparse/spbuild.c : + ansi style function args for a function pointer arg of spInitialize() + NOTE: split personality, user interface talks about `spREAL' + which is internally refered to as `RealNumber' + 2010-07-10 Holger Vogt * com_measure2.c: patch by Bill Swartz from 2010-07-04 diff --git a/src/include/spmatrix.h b/src/include/spmatrix.h index 545b50013..6dfe3881c 100644 --- a/src/include/spmatrix.h +++ b/src/include/spmatrix.h @@ -270,7 +270,7 @@ extern char *spGetInitInfo( spREAL* ); extern int spGetOnes( void *, int, int, int, struct spTemplate* ); extern int spGetQuad( void *, int, int, int, int, struct spTemplate* ); extern int spGetSize( void *, int ); -extern int spInitialize( void *, int (*)() ); +extern int spInitialize( void *, int (*pInit)(spREAL*, char *InitInfo, int, int Col)); extern void spInstallInitInfo( spREAL*, void * ); extern spREAL spLargestElement( void * ); extern void spMNA_Preorder( void * ); diff --git a/src/maths/sparse/spbuild.c b/src/maths/sparse/spbuild.c index 714e440fb..241bf39ad 100644 --- a/src/maths/sparse/spbuild.c +++ b/src/maths/sparse/spbuild.c @@ -1146,7 +1146,7 @@ spGetInitInfo(RealNumber *pElement) int -spInitialize(void *eMatrix, int (*pInit)()) +spInitialize(void *eMatrix, int (*pInit)(RealNumber*, char *InitInfo, int , int Col)) { MatrixPtr Matrix = (MatrixPtr)eMatrix; ElementPtr pElement;