mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
len=l for callback fortran string.
Made basic callback string a "const" in 8 places. git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@9463 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
40c8ebdae6
commit
f31a2c2679
@ -879,7 +879,7 @@ void IPhreeqc::SetBasicFortranCallback(double (*fcn)(double *x1, double *x2, cha
|
||||
this->PhreeqcPtr->register_fortran_basic_callback(fcn);
|
||||
}
|
||||
#else
|
||||
void IPhreeqc::SetBasicFortranCallback(double (*fcn)(double *x1, double *x2, char *str, int l))
|
||||
void IPhreeqc::SetBasicFortranCallback(double (*fcn)(double *x1, double *x2, const char *str, int l))
|
||||
{
|
||||
this->PhreeqcPtr->register_fortran_basic_callback(fcn);
|
||||
}
|
||||
|
||||
@ -1666,7 +1666,7 @@ Headings
|
||||
#ifdef IPHREEQC_NO_FORTRAN_MODULE
|
||||
IPQ_DLL_EXPORT IPQ_RESULT SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, char *str, size_t l));
|
||||
#else
|
||||
IPQ_DLL_EXPORT IPQ_RESULT SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, char *str, int l));
|
||||
IPQ_DLL_EXPORT IPQ_RESULT SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, const char *str, int l));
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@ -713,7 +713,7 @@ public:
|
||||
#ifdef IPHREEQC_NO_FORTRAN_MODULE
|
||||
void SetBasicFortranCallback(double (*fcn)(double *x1, double *x2, char *str, size_t l));
|
||||
#else
|
||||
void SetBasicFortranCallback(double (*fcn)(double *x1, double *x2, char *str, int l));
|
||||
void SetBasicFortranCallback(double (*fcn)(double *x1, double *x2, const char *str, int l));
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@ -795,7 +795,7 @@ SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, char *str,
|
||||
}
|
||||
#else
|
||||
IPQ_RESULT
|
||||
SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, char *str, int l))
|
||||
SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, const char *str, int l))
|
||||
{
|
||||
IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
|
||||
if (IPhreeqcPtr)
|
||||
|
||||
@ -410,7 +410,7 @@ SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, char *st
|
||||
}
|
||||
#else
|
||||
IPQ_RESULT
|
||||
SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, char *str, int l))
|
||||
SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, const char *str, int l))
|
||||
{
|
||||
return ::SetBasicFortranCallback(*id, fcn);
|
||||
}
|
||||
|
||||
@ -136,7 +136,7 @@ extern "C" {
|
||||
#ifdef IPHREEQC_NO_FORTRAN_MODULE
|
||||
IPQ_DLL_EXPORT IPQ_RESULT SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, char *str, size_t l));
|
||||
#else
|
||||
IPQ_DLL_EXPORT IPQ_RESULT SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, char *str, int l));
|
||||
IPQ_DLL_EXPORT IPQ_RESULT SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, const char *str, int l));
|
||||
#endif
|
||||
IPQ_DLL_EXPORT IPQ_RESULT SetCurrentSelectedOutputUserNumberF(int *id, int *n);
|
||||
IPQ_DLL_EXPORT IPQ_RESULT SetDumpFileNameF(int *id, char* fname);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user