Rename function: SwigScilabDoubleFromDouble -> SWIG_SciDouble_FromDouble
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12718 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
28c1e9b437
commit
2535e9ae2f
4 changed files with 16 additions and 16 deletions
|
|
@ -1,16 +1,16 @@
|
||||||
/*
|
/*
|
||||||
* DOUBLE SCALAR
|
* DOUBLE SCALAR
|
||||||
*/
|
*/
|
||||||
%fragment(SWIG_AsVal_frag(double), "header", fragment="SwigScilabDoubleToDouble") {
|
%fragment(SWIG_AsVal_frag(double), "header", fragment="SWIG_SciDouble_AsDouble") {
|
||||||
#define SWIG_AsVal_double(scilabValue, valuePointer) SwigScilabDoubleToDouble(pvApiCtx, scilabValue, valuePointer, fname)
|
#define SWIG_AsVal_double(scilabValue, valuePointer) SWIG_SciDouble_AsDouble(pvApiCtx, scilabValue, valuePointer, fname)
|
||||||
}
|
}
|
||||||
%fragment(SWIG_From_frag(double), "header", fragment="SwigScilabDoubleFromDouble") {
|
%fragment(SWIG_From_frag(double), "header", fragment="SWIG_SciDouble_FromDouble") {
|
||||||
#define SWIG_From_double(value) SwigScilabDoubleFromDouble(pvApiCtx, $result, value)
|
#define SWIG_From_double(value) SWIG_SciDouble_FromDouble(pvApiCtx, $result, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
%fragment("SwigScilabDoubleToDouble", "header") {
|
%fragment("SWIG_SciDouble_AsDouble", "header") {
|
||||||
SWIGINTERN int
|
SWIGINTERN int
|
||||||
SwigScilabDoubleToDouble(void *_pvApiCtx, int _iVar, double *_pdblValue, char *_fname) {
|
SWIG_SciDouble_AsDouble(void *_pvApiCtx, int _iVar, double *_pdblValue, char *_fname) {
|
||||||
SciErr sciErr;
|
SciErr sciErr;
|
||||||
int iRet = 0;
|
int iRet = 0;
|
||||||
int *piAddrVar = NULL;
|
int *piAddrVar = NULL;
|
||||||
|
|
@ -40,9 +40,9 @@ SwigScilabDoubleToDouble(void *_pvApiCtx, int _iVar, double *_pdblValue, char *_
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
%fragment("SwigScilabDoubleFromDouble", "header") {
|
%fragment("SWIG_SciDouble_FromDouble", "header") {
|
||||||
SWIGINTERN int
|
SWIGINTERN int
|
||||||
SwigScilabDoubleFromDouble(void *_pvApiCtx, int _iVarOut, double _dblValue) {
|
SWIG_SciDouble_FromDouble(void *_pvApiCtx, int _iVarOut, double _dblValue) {
|
||||||
int iRet;
|
int iRet;
|
||||||
|
|
||||||
iRet = createScalarDouble(_pvApiCtx, Rhs + _iVarOut, _dblValue);
|
iRet = createScalarDouble(_pvApiCtx, Rhs + _iVarOut, _dblValue);
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@
|
||||||
#define SWIG_From_float(value) SwigScilabDoubleFromFloat(pvApiCtx, $result, value)
|
#define SWIG_From_float(value) SwigScilabDoubleFromFloat(pvApiCtx, $result, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
%fragment("SwigScilabDoubleToFloat", "header", fragment="SwigScilabDoubleToDouble") {
|
%fragment("SwigScilabDoubleToFloat", "header", fragment="SWIG_SciDouble_AsDouble") {
|
||||||
SWIGINTERN int
|
SWIGINTERN int
|
||||||
SwigScilabDoubleToFloat(void *_pvApiCtx, int _iVar, float *_pfValue, char *_fname) {
|
SwigScilabDoubleToFloat(void *_pvApiCtx, int _iVar, float *_pfValue, char *_fname) {
|
||||||
double dblValue = 0.0;
|
double dblValue = 0.0;
|
||||||
if(SwigScilabDoubleToDouble(_pvApiCtx, _iVar, &dblValue, _fname) != SWIG_OK) {
|
if(SWIG_SciDouble_AsDouble(_pvApiCtx, _iVar, &dblValue, _fname) != SWIG_OK) {
|
||||||
return SWIG_ERROR;
|
return SWIG_ERROR;
|
||||||
}
|
}
|
||||||
*_pfValue = (float) dblValue;
|
*_pfValue = (float) dblValue;
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@
|
||||||
%fragment(SWIG_AsVal_frag(size_t), "header", fragment="SWIG_SciDouble_AsInt") {
|
%fragment(SWIG_AsVal_frag(size_t), "header", fragment="SWIG_SciDouble_AsInt") {
|
||||||
#define SWIG_AsVal_size_t(scilabValue, valuePointer) SWIG_SciDouble_AsInt(pvApiCtx, scilabValue, (int*)valuePointer, fname)
|
#define SWIG_AsVal_size_t(scilabValue, valuePointer) SWIG_SciDouble_AsInt(pvApiCtx, scilabValue, (int*)valuePointer, fname)
|
||||||
}
|
}
|
||||||
%fragment("SWIG_SciDouble_AsInt", "header", fragment="SwigScilabDoubleToDouble") {
|
%fragment("SWIG_SciDouble_AsInt", "header", fragment="SWIG_SciDouble_AsDouble") {
|
||||||
SWIGINTERN int
|
SWIGINTERN int
|
||||||
SWIG_SciDouble_AsInt(void *_pvApiCtx, int _iVar, int *_piValue, char *_fname) {
|
SWIG_SciDouble_AsInt(void *_pvApiCtx, int _iVar, int *_piValue, char *_fname) {
|
||||||
double dblValue = 0.0;
|
double dblValue = 0.0;
|
||||||
if(SwigScilabDoubleToDouble(_pvApiCtx, _iVar, &dblValue, _fname) != SWIG_OK) {
|
if(SWIG_SciDouble_AsDouble(_pvApiCtx, _iVar, &dblValue, _fname) != SWIG_OK) {
|
||||||
return SWIG_ERROR;
|
return SWIG_ERROR;
|
||||||
}
|
}
|
||||||
*_piValue = (int) dblValue;
|
*_piValue = (int) dblValue;
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,11 @@
|
||||||
#define SWIG_From_unsigned_SS_long(value) SwigScilabDoubleFromUnsignedLong(pvApiCtx, $result, value)
|
#define SWIG_From_unsigned_SS_long(value) SwigScilabDoubleFromUnsignedLong(pvApiCtx, $result, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
%fragment("SwigScilabDoubleToLong", "header", fragment="SwigScilabDoubleToDouble") {
|
%fragment("SwigScilabDoubleToLong", "header", fragment="SWIG_SciDouble_AsDouble") {
|
||||||
SWIGINTERN int
|
SWIGINTERN int
|
||||||
SwigScilabDoubleToLong(void *_pvApiCtx, int _iVar, long *_plValue, char *_fname) {
|
SwigScilabDoubleToLong(void *_pvApiCtx, int _iVar, long *_plValue, char *_fname) {
|
||||||
double dblValue = 0.0;
|
double dblValue = 0.0;
|
||||||
if(SwigScilabDoubleToDouble(_pvApiCtx, _iVar, &dblValue, _fname) != SWIG_OK) {
|
if(SWIG_SciDouble_AsDouble(_pvApiCtx, _iVar, &dblValue, _fname) != SWIG_OK) {
|
||||||
return SWIG_ERROR;
|
return SWIG_ERROR;
|
||||||
}
|
}
|
||||||
*_plValue = (long) dblValue;
|
*_plValue = (long) dblValue;
|
||||||
|
|
@ -34,11 +34,11 @@ SwigScilabDoubleToLong(void *_pvApiCtx, int _iVar, long *_plValue, char *_fname)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
%fragment("SwigScilabDoubleToUnsignedLong", "header", fragment="SwigScilabDoubleToDouble") {
|
%fragment("SwigScilabDoubleToUnsignedLong", "header", fragment="SWIG_SciDouble_AsDouble") {
|
||||||
SWIGINTERN int
|
SWIGINTERN int
|
||||||
SwigScilabDoubleToUnsignedLong(void *_pvApiCtx, int _iVar, unsigned long *_pulValue, char *_fname) {
|
SwigScilabDoubleToUnsignedLong(void *_pvApiCtx, int _iVar, unsigned long *_pulValue, char *_fname) {
|
||||||
double dblValue = 0.0;
|
double dblValue = 0.0;
|
||||||
if(SwigScilabDoubleToDouble(_pvApiCtx, _iVar, &dblValue, _fname) != SWIG_OK) {
|
if(SWIG_SciDouble_AsDouble(_pvApiCtx, _iVar, &dblValue, _fname) != SWIG_OK) {
|
||||||
return SWIG_ERROR;
|
return SWIG_ERROR;
|
||||||
}
|
}
|
||||||
*_pulValue = (unsigned long) dblValue;
|
*_pulValue = (unsigned long) dblValue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue