Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

scilab: code style: remove underscore in parameters (first part)

  • Loading branch information...
commit 540973ee1dc23b33b9271557eb2326382337f8e5 1 parent 8fdb67c
Simon Marchetto smarchetto authored
46 Lib/scilab/scibool.swg
View
@@ -4,25 +4,25 @@
*/
%fragment(SWIG_AsVal_frag(bool), "header") {
SWIGINTERN int
-SWIG_AsVal_dec(bool)(SwigSciObject _iVar, bool *_pbValue) {
+SWIG_AsVal_dec(bool)(SwigSciObject iVar, bool *pbValue) {
SciErr sciErr;
int iRet = 0;
int *piAddrVar = NULL;
int iTempValue = 0;
- sciErr = getVarAddressFromPosition(pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
}
if (!isBooleanType(pvApiCtx, piAddrVar)) {
- Scierror(999, _("%s: Wrong type for input argument #%d: A boolean expected.\n"), SWIG_Scilab_GetFname(), _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A boolean expected.\n"), SWIG_Scilab_GetFname(), iVar);
return SWIG_ERROR;
}
if (!isScalar(pvApiCtx, piAddrVar)) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A boolean expected.\n"), SWIG_Scilab_GetFname(), _iVar);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A boolean expected.\n"), SWIG_Scilab_GetFname(), iVar);
return SWIG_ERROR;
}
@@ -31,7 +31,7 @@ SWIG_AsVal_dec(bool)(SwigSciObject _iVar, bool *_pbValue) {
return SWIG_ERROR;
}
- *_pbValue = iTempValue;
+ *pbValue = iTempValue;
return SWIG_OK;
}
@@ -53,12 +53,12 @@ SWIG_From_dec(bool)(bool _bValue) {
*/
%fragment("SWIG_SciBoolean_AsBoolArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciBoolean_AsBoolArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int *_iCols, bool **_pbValue, char *_fname) {
+SWIG_SciBoolean_AsBoolArrayAndSize(void *_pvApiCtx, int iVar, int *iRows, int *iCols, bool **pbValue, char *_fname) {
SciErr sciErr;
int *piAddrVar = NULL;
int *piValue = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -66,18 +66,18 @@ SWIG_SciBoolean_AsBoolArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int
if (isBooleanType(_pvApiCtx, piAddrVar)) {
int i;
- sciErr = getMatrixOfBoolean(_pvApiCtx, piAddrVar, _iRows, _iCols, &piValue);
+ sciErr = getMatrixOfBoolean(_pvApiCtx, piAddrVar, iRows, iCols, &piValue);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
}
- *_pbValue = (bool*) malloc((*_iRows) * (*_iCols) * sizeof(bool));
- for (i = 0; i < (*_iRows) * (*_iCols); i++)
- (*_pbValue)[i] = piValue[i] != 0;
+ *pbValue = (bool*) malloc((*iRows) * (*iCols) * sizeof(bool));
+ for (i = 0; i < (*iRows) * (*iCols); i++)
+ (*pbValue)[i] = piValue[i] != 0;
}
else {
- Scierror(999, _("%s: Wrong type for input argument #%d: A boolean matrix expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A boolean matrix expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
@@ -87,16 +87,16 @@ SWIG_SciBoolean_AsBoolArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int
%fragment("SWIG_SciBoolean_FromBoolArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciBoolean_FromBoolArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows, int _iCols, bool *_pbValue) {
+SWIG_SciBoolean_FromBoolArrayAndSize(void *_pvApiCtx, int iVarOut, int iRows, int iCols, bool *pbValue) {
SciErr sciErr;
int *piValue = NULL;
int i;
- piValue = (int*) malloc(_iRows * _iCols * sizeof(int));
- for (i = 0; i < _iRows * _iCols; i++)
- piValue[i] = _pbValue[i];
+ piValue = (int*) malloc(iRows * iCols * sizeof(int));
+ for (i = 0; i < iRows * iCols; i++)
+ piValue[i] = pbValue[i];
- sciErr = createMatrixOfBoolean(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, _iRows, _iCols, piValue);
+ sciErr = createMatrixOfBoolean(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, iRows, iCols, piValue);
if(sciErr.iErr) {
printError(&sciErr, 0);
free(piValue);
@@ -114,11 +114,11 @@ SWIG_SciBoolean_FromBoolArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows,
*/
%fragment("SWIG_SciBoolean_AsIntArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciBoolean_AsIntArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int *_iCols, int **_piValue, char *_fname) {
+SWIG_SciBoolean_AsIntArrayAndSize(void *_pvApiCtx, int iVar, int *iRows, int *iCols, int **piValue, char *_fname) {
SciErr sciErr;
int *piAddrVar = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -126,14 +126,14 @@ SWIG_SciBoolean_AsIntArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int *
if (isBooleanType(_pvApiCtx, piAddrVar)) {
int i;
- sciErr = getMatrixOfBoolean(_pvApiCtx, piAddrVar, _iRows, _iCols, _piValue);
+ sciErr = getMatrixOfBoolean(_pvApiCtx, piAddrVar, iRows, iCols, piValue);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
}
}
else {
- Scierror(999, _("%s: Wrong type for input argument #%d: A boolean matrix expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A boolean matrix expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
@@ -143,10 +143,10 @@ SWIG_SciBoolean_AsIntArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int *
%fragment("SWIG_SciBoolean_FromIntArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciBoolean_FromIntArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows, int _iCols, int *_piValue) {
+SWIG_SciBoolean_FromIntArrayAndSize(void *_pvApiCtx, int iVarOut, int iRows, int iCols, int *piValue) {
SciErr sciErr;
- sciErr = createMatrixOfBoolean(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, _iRows, _iCols, _piValue);
+ sciErr = createMatrixOfBoolean(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, iRows, iCols, piValue);
if(sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
92 Lib/scilab/scichar.swg
View
@@ -12,16 +12,16 @@
}
%fragment("SWIG_SciString_AsChar", "header") {
SWIGINTERN int
-SWIG_SciString_AsChar(void *_pvApiCtx, int _iVar, char *_pcValue, char *_fname) {
+SWIG_SciString_AsChar(void *_pvApiCtx, int iVar, char *pcValue, char *_fname) {
SciErr sciErr;
int iType = 0;
int iRows = 0;
int iCols = 0;
int *piAddrVar = NULL;
- char *_pstStrings = NULL;
- int _piLength = 0;
+ char *pstStrings = NULL;
+ int piLength = 0;
- sciErr = getVarAddressFromPosition(pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -33,23 +33,23 @@ SWIG_SciString_AsChar(void *_pvApiCtx, int _iVar, char *_pcValue, char *_fname)
return SWIG_ERROR;
}
if (iType != sci_strings) {
- Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
- _pstStrings = (char *)malloc(sizeof(char));
- sciErr = getMatrixOfString(pvApiCtx, piAddrVar, &iRows, &iCols, &_piLength, (char **)&_pstStrings);
+ pstStrings = (char *)malloc(sizeof(char));
+ sciErr = getMatrixOfString(pvApiCtx, piAddrVar, &iRows, &iCols, &piLength, (char **)&pstStrings);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
}
if (iRows * iCols != 1) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
- *_pcValue = _pstStrings[0];
+ *pcValue = pstStrings[0];
- free(_pstStrings);
+ free(pstStrings);
return SWIG_OK;
}
@@ -60,12 +60,12 @@ SWIG_SciString_AsChar(void *_pvApiCtx, int _iVar, char *_pcValue, char *_fname)
}
%fragment("SWIG_SciString_FromChar", "header") {
SWIGINTERN int
-SWIG_SciString_FromChar(void *_pvApiCtx, int _iVarOut, char _chValue) {
+SWIG_SciString_FromChar(void *_pvApiCtx, int iVarOut, char chValue) {
char *pchValue = (char*)malloc(sizeof(char) * 2);
- pchValue[0] = _chValue;
+ pchValue[0] = chValue;
pchValue[1] = '\0';
- if (createSingleString(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, pchValue))
+ if (createSingleString(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, pchValue))
return SWIG_ERROR;
free(pchValue);
@@ -82,13 +82,13 @@ SWIG_SciString_FromChar(void *_pvApiCtx, int _iVarOut, char _chValue) {
}
%fragment("SWIG_SciString_AsCharPtr", "header") {
SWIGINTERN int
-SWIG_SciString_AsCharPtr(void *_pvApiCtx, int _iVar, char *_pcValue, int _iLength, char *_fname) {
+SWIG_SciString_AsCharPtr(void *_pvApiCtx, int iVar, char *pcValue, int iLength, char *_fname) {
SciErr sciErr;
int *piAddrVar = NULL;
char* pcTmpValue = NULL;
int iRet;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -99,8 +99,8 @@ SWIG_SciString_AsCharPtr(void *_pvApiCtx, int _iVar, char *_pcValue, int _iLengt
return SWIG_ERROR;
}
- if (_pcValue != NULL) {
- strncpy(_pcValue, pcTmpValue, _iLength);
+ if (pcValue != NULL) {
+ strncpy(pcValue, pcTmpValue, iLength);
}
free(pcTmpValue);
@@ -114,13 +114,13 @@ SWIG_SciString_AsCharPtr(void *_pvApiCtx, int _iVar, char *_pcValue, int _iLengt
}
%fragment("SWIG_SciString_AsCharPtrAndSize", "header") {
SWIGINTERN int
-SWIG_SciString_AsCharPtrAndSize(void *_pvApiCtx, int _iVar, char **_pcValue, size_t *_piLength, int *alloc, char *_fname) {
+SWIG_SciString_AsCharPtrAndSize(void *_pvApiCtx, int iVar, char **pcValue, size_t *piLength, int *alloc, char *_fname) {
SciErr sciErr;
int *piAddrVar = NULL;
int iRet;
char *pstStrings = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -131,18 +131,18 @@ SWIG_SciString_AsCharPtrAndSize(void *_pvApiCtx, int _iVar, char **_pcValue, siz
return SWIG_ERROR;
}
- // TODO: return SWIG_ERROR if _pcValue NULL (now returning SWIG_ERROR fails some typechecks)
- if (_pcValue)
+ // TODO: return SWIG_ERROR if pcValue NULL (now returning SWIG_ERROR fails some typechecks)
+ if (pcValue)
{
- *_pcValue = pstStrings;
+ *pcValue = pstStrings;
}
if (alloc != NULL) {
*alloc = SWIG_NEWOBJ;
}
- if (_piLength != NULL) {
- *_piLength = strlen(*_pcValue) + 1;
+ if (piLength != NULL) {
+ *piLength = strlen(*pcValue) + 1;
}
return SWIG_OK;
@@ -154,15 +154,15 @@ SWIG_SciString_AsCharPtrAndSize(void *_pvApiCtx, int _iVar, char **_pcValue, siz
}
%fragment("SWIG_SciString_FromCharPtr", "header") {
SWIGINTERN int
-SWIG_SciString_FromCharPtr(void *_pvApiCtx, int _iVarOut, const char *_pchValue) {
- if (_pchValue) {
+SWIG_SciString_FromCharPtr(void *_pvApiCtx, int iVarOut, const char *pchValue) {
+ if (pchValue) {
SciErr sciErr;
char **pstData = NULL;
pstData = (char **)malloc(sizeof(char *));
- pstData[0] = strdup(_pchValue);
+ pstData[0] = strdup(pchValue);
- sciErr = createMatrixOfString(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, 1, 1, (char **)pstData);
+ sciErr = createMatrixOfString(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, 1, 1, (char **)pstData);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -171,7 +171,7 @@ SWIG_SciString_FromCharPtr(void *_pvApiCtx, int _iVarOut, const char *_pchValue)
free(pstData[0]);
}
else {
- int iRet = createEmptyMatrix(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut);
+ int iRet = createEmptyMatrix(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut);
if (iRet) {
return SWIG_ERROR;
}
@@ -187,39 +187,39 @@ SWIG_SciString_FromCharPtr(void *_pvApiCtx, int _iVarOut, const char *_pchValue)
%fragment("SWIG_SciString_AsCharPtrArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciString_AsCharPtrArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int *_iCols, char ***_charPtrArray, char *_fname) {
+SWIG_SciString_AsCharPtrArrayAndSize(void *_pvApiCtx, int iVar, int *iRows, int *iCols, char ***charPtrArray, char *_fname) {
SciErr sciErr;
int i = 0;
int *piAddrVar = NULL;
int* piLength = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
}
- sciErr = getMatrixOfString(_pvApiCtx, piAddrVar, _iRows, _iCols, NULL, NULL);
+ sciErr = getMatrixOfString(_pvApiCtx, piAddrVar, iRows, iCols, NULL, NULL);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
}
- piLength = (int*) malloc((*_iRows) * (*_iCols) * sizeof(int));
+ piLength = (int*) malloc((*iRows) * (*iCols) * sizeof(int));
- sciErr = getMatrixOfString(_pvApiCtx, piAddrVar, _iRows, _iCols, piLength, NULL);
+ sciErr = getMatrixOfString(_pvApiCtx, piAddrVar, iRows, iCols, piLength, NULL);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
}
- *_charPtrArray = (char**) malloc((*_iRows) * (*_iCols) * sizeof(char*));
- for(i = 0 ; i < (*_iRows) * (*_iCols); i++)
+ *charPtrArray = (char**) malloc((*iRows) * (*iCols) * sizeof(char*));
+ for(i = 0 ; i < (*iRows) * (*iCols); i++)
{
- (*_charPtrArray)[i] = (char*) malloc(sizeof(char) * (piLength[i] + 1));
+ (*charPtrArray)[i] = (char*) malloc(sizeof(char) * (piLength[i] + 1));
}
- sciErr = getMatrixOfString(_pvApiCtx, piAddrVar, _iRows, _iCols, piLength, *_charPtrArray);
+ sciErr = getMatrixOfString(_pvApiCtx, piAddrVar, iRows, iCols, piLength, *charPtrArray);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -232,10 +232,10 @@ SWIG_SciString_AsCharPtrArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, in
%fragment("SWIG_SciString_FromCharPtrArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciString_FromCharPtrArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows, int _iCols, char **_charPtrArray) {
+SWIG_SciString_FromCharPtrArrayAndSize(void *_pvApiCtx, int iVarOut, int iRows, int iCols, char **charPtrArray) {
SciErr sciErr;
- sciErr = createMatrixOfString(_pvApiCtx, SWIG_NbInputArgument(pvApiCtx) + _iVarOut, _iRows, _iCols, _charPtrArray);
+ sciErr = createMatrixOfString(_pvApiCtx, SWIG_NbInputArgument(pvApiCtx) + iVarOut, iRows, iCols, charPtrArray);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -256,16 +256,16 @@ SWIG_SciString_FromCharPtrArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows
%fragment(SWIG_CreateScilabVariable_frag(char), "wrapper") {
SWIGINTERN int
-SWIG_CreateScilabVariable_dec(char)(void *_pvApiCtx, const char* _psVariableName, const char _cVariableValue) {
+SWIG_CreateScilabVariable_dec(char)(void *_pvApiCtx, const char* psVariableName, const char cVariableValue) {
SciErr sciErr;
char sValue[2];
const char* psStrings[1];
- sValue[0] = _cVariableValue;
+ sValue[0] = cVariableValue;
sValue[1] = '\0';
psStrings[0] = sValue;
- sciErr = createNamedMatrixOfString(_pvApiCtx, _psVariableName, 1, 1, psStrings);
+ sciErr = createNamedMatrixOfString(_pvApiCtx, psVariableName, 1, 1, psStrings);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -276,12 +276,12 @@ SWIG_CreateScilabVariable_dec(char)(void *_pvApiCtx, const char* _psVariableName
%fragment(SWIG_CreateScilabVariable_frag(charptr), "wrapper") {
SWIGINTERN int
-SWIG_CreateScilabVariable_dec(charptr)(void *_pvApiCtx, const char* _psVariableName, const char* _psVariableValue) {
+SWIG_CreateScilabVariable_dec(charptr)(void *_pvApiCtx, const char* psVariableName, const char* psVariableValue) {
SciErr sciErr;
const char* psStrings[1];
- psStrings[0] = _psVariableValue;
+ psStrings[0] = psVariableValue;
- sciErr = createNamedMatrixOfString(_pvApiCtx, _psVariableName, 1, 1, psStrings);
+ sciErr = createNamedMatrixOfString(_pvApiCtx, psVariableName, 1, 1, psStrings);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
6 Lib/scilab/scicontainer.swg
View
@@ -52,7 +52,7 @@ namespace swig
SciSequence_Ref(const SwigSciObject& seq, int index)
: _seq(seq), _index(index)
{
- if (traits_as_sequence<T>::get(_seq, &_piSeqAddr) != SWIG_OK)
+ if (traits_as_sequence<T>::get(_seq, &piSeqAddr) != SWIG_OK)
{
throw std::invalid_argument("Cannot get sequence data.");
}
@@ -62,7 +62,7 @@ namespace swig
{
try
{
- return traits_asval_sequenceitem<T>::asval(_seq, _piSeqAddr, _index);
+ return traits_asval_sequenceitem<T>::asval(_seq, piSeqAddr, _index);
}
catch (std::exception& e)
{
@@ -79,7 +79,7 @@ namespace swig
private:
SwigSciObject _seq;
int _index;
- void *_piSeqAddr;
+ void *piSeqAddr;
};
30 Lib/scilab/scidouble.swg
View
@@ -6,28 +6,28 @@
}
%fragment("SWIG_SciDouble_AsDouble", "header") {
SWIGINTERN int
-SWIG_SciDouble_AsDouble(void *_pvApiCtx, SwigSciObject _iVar, double *_pdblValue, char *_fname) {
+SWIG_SciDouble_AsDouble(void *_pvApiCtx, SwigSciObject iVar, double *pdblValue, char *_fname) {
SciErr sciErr;
int iRet = 0;
int *piAddrVar = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
}
if (!isDoubleType(_pvApiCtx, piAddrVar) || isVarComplex(_pvApiCtx, piAddrVar)) {
- Scierror(999, _("%s: Wrong type for input argument #%d: A real expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A real expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
if (!isScalar(_pvApiCtx, piAddrVar)) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A real expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A real expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
- iRet = getScalarDouble(_pvApiCtx, piAddrVar, _pdblValue);
+ iRet = getScalarDouble(_pvApiCtx, piAddrVar, pdblValue);
if (iRet) {
return SWIG_ERROR;
}
@@ -41,8 +41,8 @@ SWIG_SciDouble_AsDouble(void *_pvApiCtx, SwigSciObject _iVar, double *_pdblValue
}
%fragment("SWIG_SciDouble_FromDouble", "header") {
SWIGINTERN int
-SWIG_SciDouble_FromDouble(void *_pvApiCtx, int _iVarOut, double _dblValue, char *_fname) {
- if (createScalarDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, _dblValue))
+SWIG_SciDouble_FromDouble(void *_pvApiCtx, int iVarOut, double dblValue, char *_fname) {
+ if (createScalarDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, dblValue))
return SWIG_ERROR;
return SWIG_OK;
}
@@ -54,25 +54,25 @@ SWIG_SciDouble_FromDouble(void *_pvApiCtx, int _iVarOut, double _dblValue, char
%fragment("SWIG_SciDouble_AsDoubleArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciDouble_AsDoubleArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int *_iCols, double **_pdValue, char *_fname) {
+SWIG_SciDouble_AsDoubleArrayAndSize(void *_pvApiCtx, int iVar, int *iRows, int *iCols, double **pdValue, char *_fname) {
SciErr sciErr;
int *piAddrVar = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
}
if (isDoubleType(_pvApiCtx, piAddrVar) && !isVarComplex(_pvApiCtx, piAddrVar)) {
- sciErr = getMatrixOfDouble(_pvApiCtx, piAddrVar, _iRows, _iCols, _pdValue);
+ sciErr = getMatrixOfDouble(_pvApiCtx, piAddrVar, iRows, iCols, pdValue);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
}
}
else {
- Scierror(999, _("%s: Wrong type for input argument #%d: A real matrix expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A real matrix expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
@@ -82,9 +82,9 @@ SWIG_SciDouble_AsDoubleArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int
%fragment("SWIG_SciDouble_FromDoubleArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciDouble_FromDoubleArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows, int _iCols, double *_pdblValue) {
+SWIG_SciDouble_FromDoubleArrayAndSize(void *_pvApiCtx, int iVarOut, int iRows, int iCols, double *pdblValue) {
SciErr sciErr;
- sciErr = createMatrixOfDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, _iRows, _iCols, _pdblValue);
+ sciErr = createMatrixOfDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, iRows, iCols, pdblValue);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -96,9 +96,9 @@ SWIG_SciDouble_FromDoubleArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows,
%fragment(SWIG_CreateScilabVariable_frag(double), "wrapper") {
SWIGINTERN int
-SWIG_CreateScilabVariable_dec(double)(void *_pvApiCtx, const char* _psVariableName, const double _dVariableValue) {
+SWIG_CreateScilabVariable_dec(double)(void *_pvApiCtx, const char* psVariableName, const double dVariableValue) {
SciErr sciErr;
- sciErr = createNamedMatrixOfDouble(_pvApiCtx, _psVariableName, 1, 1, &_dVariableValue);
+ sciErr = createNamedMatrixOfDouble(_pvApiCtx, psVariableName, 1, 1, &dVariableValue);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
12 Lib/scilab/scienum.swg
View
@@ -8,11 +8,11 @@
}
%fragment("SWIG_Int_AsEnum", "header", fragment="SWIG_SciDoubleOrInt32_AsInt") {
SWIGINTERN int
-SWIG_Int_AsEnum(void *_pvApiCtx, int _iVar, int *_enumValue, char *_fname) {
+SWIG_Int_AsEnum(void *_pvApiCtx, int iVar, int *enumValue, char *_fname) {
int iValue = 0;
- if (SWIG_SciDoubleOrInt32_AsInt(_pvApiCtx, _iVar, &iValue, fname) != SWIG_OK)
+ if (SWIG_SciDoubleOrInt32_AsInt(_pvApiCtx, iVar, &iValue, fname) != SWIG_OK)
return SWIG_ERROR;
- *_enumValue = iValue;
+ *enumValue = iValue;
return SWIG_OK;
}
}
@@ -22,10 +22,10 @@ SWIG_Int_AsEnum(void *_pvApiCtx, int _iVar, int *_enumValue, char *_fname) {
}
%fragment("SWIG_Int_FromEnum", "header", fragment="SWIG_SciDouble_FromInt") {
SWIGINTERN int
-SWIG_Int_FromEnum(void *_pvApiCtx, int _iVarOut, int _enumValue, char *_fname) {
- if (SWIG_SciDouble_FromInt(_pvApiCtx, _iVarOut, _enumValue, fname) != SWIG_OK)
+SWIG_Int_FromEnum(void *_pvApiCtx, int iVarOut, int enumValue, char *_fname) {
+ if (SWIG_SciDouble_FromInt(_pvApiCtx, iVarOut, enumValue, fname) != SWIG_OK)
return SWIG_ERROR;
- SWIG_Scilab_SetOutput(_pvApiCtx, _iVarOut);
+ SWIG_Scilab_SetOutput(_pvApiCtx, iVarOut);
return SWIG_OK;
}
}
32 Lib/scilab/scifloat.swg
View
@@ -4,13 +4,13 @@
%fragment(SWIG_AsVal_frag(float), "header", fragment=SWIG_AsVal_frag(double)) {
SWIGINTERN int
-SWIG_AsVal_dec(float)(SwigSciObject _iVar, float *_pfValue) {
+SWIG_AsVal_dec(float)(SwigSciObject iVar, float *pfValue) {
double dblValue = 0.0;
- if(SWIG_AsVal_dec(double)(_iVar, &dblValue) != SWIG_OK) {
+ if(SWIG_AsVal_dec(double)(iVar, &dblValue) != SWIG_OK) {
return SWIG_ERROR;
}
- if (_pfValue)
- *_pfValue = (float) dblValue;
+ if (pfValue)
+ *pfValue = (float) dblValue;
return SWIG_OK;
}
}
@@ -27,12 +27,12 @@ SWIG_From_dec(float)(float _flValue) {
%fragment("SWIG_SciDouble_AsFloatArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciDouble_AsFloatArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int *_iCols, float **_pfValue, char *_fname) {
+SWIG_SciDouble_AsFloatArrayAndSize(void *_pvApiCtx, int iVar, int *iRows, int *iCols, float **pfValue, char *_fname) {
SciErr sciErr;
int *piAddrVar = NULL;
double *pdValue = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -41,20 +41,20 @@ SWIG_SciDouble_AsFloatArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int
if (isDoubleType(_pvApiCtx, piAddrVar) && !isVarComplex(_pvApiCtx, piAddrVar)) {
int i;
- sciErr = getMatrixOfDouble(_pvApiCtx, piAddrVar, _iRows, _iCols, &pdValue);
+ sciErr = getMatrixOfDouble(_pvApiCtx, piAddrVar, iRows, iCols, &pdValue);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
}
- *_pfValue = (float *) malloc((*_iRows) * (*_iCols) * sizeof(float));
- for (i=0; i < (*_iRows) * (*_iCols); i++)
- (*_pfValue)[i] = (float) pdValue[i];
+ *pfValue = (float *) malloc((*iRows) * (*iCols) * sizeof(float));
+ for (i=0; i < (*iRows) * (*iCols); i++)
+ (*pfValue)[i] = (float) pdValue[i];
return SWIG_OK;
}
else {
- Scierror(999, _("%s: Wrong type for input argument #%d: A real matrix expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A real matrix expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
}
@@ -62,16 +62,16 @@ SWIG_SciDouble_AsFloatArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int
%fragment("SWIG_SciDouble_FromFloatArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciDouble_FromFloatArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows, int _iCols, float *_pfValue) {
+SWIG_SciDouble_FromFloatArrayAndSize(void *_pvApiCtx, int iVarOut, int iRows, int iCols, float *pfValue) {
SciErr sciErr;
double *pdValue;
int i;
- pdValue = (double *) malloc(_iRows * _iCols * sizeof(double));
- for (i = 0; i < _iRows * _iCols; i++)
- pdValue[i] = _pfValue[i];
+ pdValue = (double *) malloc(iRows * iCols * sizeof(double));
+ for (i = 0; i < iRows * iCols; i++)
+ pdValue[i] = pfValue[i];
- sciErr = createMatrixOfDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, _iRows, _iCols, pdValue);
+ sciErr = createMatrixOfDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, iRows, iCols, pdValue);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
60 Lib/scilab/sciint.swg
View
@@ -8,7 +8,7 @@
}
%fragment("SWIG_SciDoubleOrInt32_AsInt", "header") {
SWIGINTERN int
-SWIG_SciDoubleOrInt32_AsInt(void *_pvApiCtx, SwigSciObject _iVar, int *_piValue, char *_fname)
+SWIG_SciDoubleOrInt32_AsInt(void *_pvApiCtx, SwigSciObject iVar, int *piValue, char *_fname)
{
SciErr sciErr;
int iType = 0;
@@ -16,7 +16,7 @@ SWIG_SciDoubleOrInt32_AsInt(void *_pvApiCtx, SwigSciObject _iVar, int *_piValue,
int iCols = 0;
int *piAddrVar = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -29,7 +29,7 @@ SWIG_SciDoubleOrInt32_AsInt(void *_pvApiCtx, SwigSciObject _iVar, int *_piValue,
}
if (iType == sci_ints) {
- if (_piValue) {
+ if (piValue) {
int iPrec = 0;
int *piData = NULL;
@@ -39,7 +39,7 @@ SWIG_SciDoubleOrInt32_AsInt(void *_pvApiCtx, SwigSciObject _iVar, int *_piValue,
return SWIG_ERROR;
}
if (iPrec != SCI_INT32) {
- Scierror(999, _("%s: Wrong type for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
sciErr = getMatrixOfInteger32(_pvApiCtx, piAddrVar, &iRows, &iCols, &piData);
@@ -48,14 +48,14 @@ SWIG_SciDoubleOrInt32_AsInt(void *_pvApiCtx, SwigSciObject _iVar, int *_piValue,
return SWIG_ERROR;
}
if (iRows * iCols != 1) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
- *_piValue = *piData;
+ *piValue = *piData;
}
}
else if (iType == sci_matrix) {
- if (_piValue) {
+ if (piValue) {
double *pdData = NULL;
double dValue = 0.0f;
sciErr = getMatrixOfDouble(_pvApiCtx, piAddrVar, &iRows, &iCols, &pdData);
@@ -64,23 +64,23 @@ SWIG_SciDoubleOrInt32_AsInt(void *_pvApiCtx, SwigSciObject _iVar, int *_piValue,
return SWIG_ERROR;
}
if (iRows * iCols != 1) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
dValue = *pdData;
if (dValue != floor(dValue)) {
- Scierror(999, _("%s: Incorrect value for input argument #%d: The double value cannot be converted to a 32-bit signed integer.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Incorrect value for input argument #%d: The double value cannot be converted to a 32-bit signed integer.\n"), _fname, iVar);
return SWIG_ValueError;
}
if ((dValue < INT_MIN) || (dValue > INT_MAX)) {
- Scierror(999, _("%s: Overflow error for input argument #%d: The double value cannot be converted to a 32-bit signed integer.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Overflow error for input argument #%d: The double value cannot be converted to a 32-bit signed integer.\n"), _fname, iVar);
return SWIG_OverflowError;
}
- *_piValue = (int) dValue;
+ *piValue = (int) dValue;
}
}
else {
- Scierror(999, _("%s: Wrong type for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
@@ -93,9 +93,9 @@ SWIG_SciDoubleOrInt32_AsInt(void *_pvApiCtx, SwigSciObject _iVar, int *_piValue,
}
%fragment("SWIG_SciDouble_FromInt", "header") {
SWIGINTERN int
-SWIG_SciDouble_FromInt(void *_pvApiCtx, int _iVarOut, int _iValue, char *_fname){
+SWIG_SciDouble_FromInt(void *_pvApiCtx, int iVarOut, int iValue, char *_fname){
if (createScalarDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx)
- + _iVarOut, (double) _iValue))
+ + iVarOut, (double) iValue))
return SWIG_ERROR;
return SWIG_OK;
}
@@ -107,12 +107,12 @@ SWIG_SciDouble_FromInt(void *_pvApiCtx, int _iVarOut, int _iValue, char *_fname)
*/
%fragment("SWIG_SciDoubleOrInt32_AsIntArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciDoubleOrInt32_AsIntArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int *_iCols, int **_piValue, char *_fname) {
+SWIG_SciDoubleOrInt32_AsIntArrayAndSize(void *_pvApiCtx, int iVar, int *iRows, int *iCols, int **piValue, char *_fname) {
SciErr sciErr;
int iType = 0;
int *piAddrVar = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr)
{
printError(&sciErr, 0);
@@ -131,17 +131,17 @@ SWIG_SciDoubleOrInt32_AsIntArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows,
int size = 0;
int i;
- sciErr = getMatrixOfDouble(_pvApiCtx, piAddrVar, _iRows, _iCols, &pdData);
+ sciErr = getMatrixOfDouble(_pvApiCtx, piAddrVar, iRows, iCols, &pdData);
if (sciErr.iErr)
{
printError(&sciErr, 0);
return SWIG_ERROR;
}
- size = (*_iRows) * (*_iCols);
- *_piValue = (int*) malloc(size * sizeof(int*));
+ size = (*iRows) * (*iCols);
+ *piValue = (int*) malloc(size * sizeof(int*));
for (i = 0; i < size; i++)
- (*_piValue)[i] = (int) pdData[i];
+ (*piValue)[i] = (int) pdData[i];
}
else if (iType == sci_ints)
{
@@ -154,10 +154,10 @@ SWIG_SciDoubleOrInt32_AsIntArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows,
}
if (iPrec != SCI_INT32)
{
- Scierror(999, _("%s: Wrong type for input argument #%d: A 32-bit signed integer or a double matrix expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 32-bit signed integer or a double matrix expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
- sciErr = getMatrixOfInteger32(_pvApiCtx, piAddrVar, _iRows, _iCols, _piValue);
+ sciErr = getMatrixOfInteger32(_pvApiCtx, piAddrVar, iRows, iCols, piValue);
if (sciErr.iErr)
{
printError(&sciErr, 0);
@@ -166,7 +166,7 @@ SWIG_SciDoubleOrInt32_AsIntArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows,
}
else
{
- Scierror(999, _("%s: Wrong type for input argument #%d: A 32-bit signed integer or a double matrix expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 32-bit signed integer or a double matrix expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
return SWIG_OK;
@@ -175,16 +175,16 @@ SWIG_SciDoubleOrInt32_AsIntArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows,
%fragment("SWIG_SciDouble_FromIntArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciDouble_FromIntArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows, int _iCols, const int *_piData) {
+SWIG_SciDouble_FromIntArrayAndSize(void *_pvApiCtx, int iVarOut, int iRows, int iCols, const int *piData) {
SciErr sciErr;
double *pdValues = NULL;
int i;
- pdValues = (double*) malloc(_iRows * _iCols * sizeof(double));
- for (i=0; i<_iRows * _iCols; i++)
- pdValues[i] = _piData[i];
+ pdValues = (double*) malloc(iRows * iCols * sizeof(double));
+ for (i=0; i<iRows * iCols; i++)
+ pdValues[i] = piData[i];
- sciErr = createMatrixOfDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, _iRows, _iCols, pdValues);
+ sciErr = createMatrixOfDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, iRows, iCols, pdValues);
if (sciErr.iErr) {
printError(&sciErr, 0);
free(pdValues);
@@ -198,9 +198,9 @@ SWIG_SciDouble_FromIntArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows, in
%fragment(SWIG_CreateScilabVariable_frag(int), "wrapper") {
SWIGINTERN int
-SWIG_CreateScilabVariable_dec(int)(void *_pvApiCtx, const char* _psVariableName, const int _iVariableValue) {
+SWIG_CreateScilabVariable_dec(int)(void *_pvApiCtx, const char* psVariableName, const int iVariableValue) {
SciErr sciErr;
- sciErr = createNamedMatrixOfInteger32(_pvApiCtx, _psVariableName, 1, 1, &_iVariableValue);
+ sciErr = createNamedMatrixOfInteger32(_pvApiCtx, psVariableName, 1, 1, &iVariableValue);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
22 Lib/scilab/scilist.swg
View
@@ -6,11 +6,11 @@
%fragment("SWIG_ScilabList", "header")
{
SWIGINTERN int
-SWIG_GetScilabList(SwigSciObject _obj, int **_piListAddr)
+SWIG_GetScilabList(SwigSciObject obj, int **piListAddr)
{
SciErr sciErr;
- sciErr = getVarAddressFromPosition(pvApiCtx, _obj, _piListAddr);
+ sciErr = getVarAddressFromPosition(pvApiCtx, obj, piListAddr);
if (sciErr.iErr)
{
printError(&sciErr, 0);
@@ -21,19 +21,19 @@ SWIG_GetScilabList(SwigSciObject _obj, int **_piListAddr)
}
SWIGINTERN int
-SWIG_GetScilabListSize(SwigSciObject _obj, int *_piListSize)
+SWIG_GetScilabListSize(SwigSciObject obj, int *piListSize)
{
SciErr sciErr;
int *piListAddr;
- sciErr = getVarAddressFromPosition(pvApiCtx, _obj, &piListAddr);
+ sciErr = getVarAddressFromPosition(pvApiCtx, obj, &piListAddr);
if (sciErr.iErr)
{
printError(&sciErr, 0);
return SWIG_ERROR;
}
- sciErr = getListItemNumber(pvApiCtx, piListAddr, _piListSize);
+ sciErr = getListItemNumber(pvApiCtx, piListAddr, piListSize);
if (sciErr.iErr)
{
printError(&sciErr, 0);
@@ -44,18 +44,18 @@ SWIG_GetScilabListSize(SwigSciObject _obj, int *_piListSize)
}
SWIGINTERN int
-SWIG_GetScilabListAndSize(SwigSciObject _obj, int **_piListAddr, int *_piListSize)
+SWIG_GetScilabListAndSize(SwigSciObject obj, int **piListAddr, int *piListSize)
{
SciErr sciErr;
- sciErr = getVarAddressFromPosition(pvApiCtx, _obj, _piListAddr);
+ sciErr = getVarAddressFromPosition(pvApiCtx, obj, piListAddr);
if (sciErr.iErr)
{
printError(&sciErr, 0);
return SWIG_ERROR;
}
- sciErr = getListItemNumber(pvApiCtx, *_piListAddr, _piListSize);
+ sciErr = getListItemNumber(pvApiCtx, *piListAddr, piListSize);
if (sciErr.iErr)
{
printError(&sciErr, 0);
@@ -66,13 +66,13 @@ SWIG_GetScilabListAndSize(SwigSciObject _obj, int **_piListAddr, int *_piListSiz
}
SWIGINTERN int
-SWIG_CheckScilabList(SwigSciObject _obj)
+SWIG_CheckScilabList(SwigSciObject obj)
{
SciErr sciErr;
int *piListAddr;
int iType;
- sciErr = getVarAddressFromPosition(pvApiCtx, _obj, &piListAddr);
+ sciErr = getVarAddressFromPosition(pvApiCtx, obj, &piListAddr);
if (sciErr.iErr)
{
printError(&sciErr, 0);
@@ -88,7 +88,7 @@ SWIG_CheckScilabList(SwigSciObject _obj)
if ((iType != sci_list) && (iType != sci_tlist) && (iType != sci_mlist))
{
- Scierror(999, _("%s: Wrong type for input argument #%d: A list is expected.\n"), fname, _obj);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A list is expected.\n"), fname, obj);
return SWIG_ERROR;
}
34 Lib/scilab/scilong.swg
View
@@ -8,14 +8,14 @@
}
%fragment("SWIG_SciDoubleOrInt32_AsLong", "header") {
SWIGINTERN int
-SWIG_SciDoubleOrInt32_AsLong(void *_pvApiCtx, SwigSciObject _iVar, long *_plValue, char *_fname) {
+SWIG_SciDoubleOrInt32_AsLong(void *_pvApiCtx, SwigSciObject iVar, long *plValue, char *_fname) {
SciErr sciErr;
int iType = 0;
int iRows = 0;
int iCols = 0;
int *piAddrVar = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -37,7 +37,7 @@ SWIG_SciDoubleOrInt32_AsLong(void *_pvApiCtx, SwigSciObject _iVar, long *_plValu
return SWIG_ERROR;
}
if (iPrec != SCI_INT32) {
- Scierror(999, _("%s: Wrong type for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
sciErr = getMatrixOfInteger32(_pvApiCtx, piAddrVar, &iRows, &iCols, &piData);
@@ -46,10 +46,10 @@ SWIG_SciDoubleOrInt32_AsLong(void *_pvApiCtx, SwigSciObject _iVar, long *_plValu
return SWIG_ERROR;
}
if (iRows * iCols != 1) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
- *_plValue = (long) *piData;
+ *plValue = (long) *piData;
}
else if (iType == sci_matrix) {
double *pdData = NULL;
@@ -61,22 +61,22 @@ SWIG_SciDoubleOrInt32_AsLong(void *_pvApiCtx, SwigSciObject _iVar, long *_plValu
return SWIG_ERROR;
}
if (iRows * iCols != 1) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
dValue = *pdData;
if (dValue != floor(dValue)) {
- Scierror(999, _("%s: Incorrect value for input argument #%d: The double value cannot be converted to a 32-bit signed integer.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Incorrect value for input argument #%d: The double value cannot be converted to a 32-bit signed integer.\n"), _fname, iVar);
return SWIG_ValueError;
}
if ((dValue < LONG_MIN) || (dValue > LONG_MAX)) {
- Scierror(999, _("%s: Overflow error for input argument #%d: The double value cannot be converted to a 32-bit signed integer.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Overflow error for input argument #%d: The double value cannot be converted to a 32-bit signed integer.\n"), _fname, iVar);
return SWIG_OverflowError;
}
- *_plValue = (long) dValue;
+ *plValue = (long) dValue;
}
else {
- Scierror(999, _("%s: Wrong type for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 32-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
@@ -89,9 +89,9 @@ SWIG_SciDoubleOrInt32_AsLong(void *_pvApiCtx, SwigSciObject _iVar, long *_plValu
}
%fragment("SWIG_SciDouble_FromLong", "header") {
SWIGINTERN int
-SWIG_SciDouble_FromLong(void *_pvApiCtx, int _iVarOut, long _lValue, char *_fname) {
+SWIG_SciDouble_FromLong(void *_pvApiCtx, int iVarOut, long lValue, char *_fname) {
if (createScalarDouble(_pvApiCtx,
- SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, (double) _lValue))
+ SWIG_NbInputArgument(_pvApiCtx) + iVarOut, (double) lValue))
return SWIG_ERROR;
return SWIG_OK;
}
@@ -100,17 +100,17 @@ SWIG_SciDouble_FromLong(void *_pvApiCtx, int _iVarOut, long _lValue, char *_fnam
%fragment("SWIG_SciDouble_FromLongArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciDouble_FromLongArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows, int _iCols, const long *_plData) {
+SWIG_SciDouble_FromLongArrayAndSize(void *_pvApiCtx, int iVarOut, int iRows, int iCols, const long *plData) {
SciErr sciErr;
int i;
double *pdValues = NULL;
- pdValues = (double*) malloc(_iRows * _iCols * sizeof(double));
- for (i=0; i<_iRows * _iCols; i++) {
- pdValues[i] = _plData[i];
+ pdValues = (double*) malloc(iRows * iCols * sizeof(double));
+ for (i=0; i<iRows * iCols; i++) {
+ pdValues[i] = plData[i];
}
- sciErr = createMatrixOfDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, _iRows, _iCols, pdValues);
+ sciErr = createMatrixOfDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, iRows, iCols, pdValues);
if (sciErr.iErr) {
printError(&sciErr, 0);
free(pdValues);
8 Lib/scilab/scilonglong.swg
View
@@ -8,7 +8,7 @@
}
%fragment("SWIG_SciInt64_ToLongLong", "header") {
SWIGINTERN int
-SWIG_SciInt64_ToLongLong(void *_pvApiCtx, int _iVar, long long *_pllValue, char *_fname) {
+SWIG_SciInt64_ToLongLong(void *_pvApiCtx, int iVar, long long *pllValue, char *_fname) {
Scierror(999, _("%s: Scilab 5.X does not manage '%s' data type.\n"), "SWIG_SciInt64_ToLongLong", "int64");
return SWIG_ERROR;
}
@@ -19,7 +19,7 @@ SWIG_SciInt64_ToLongLong(void *_pvApiCtx, int _iVar, long long *_pllValue, char
}
%fragment("SWIG_SciInt64_FromLongLong", "header") {
SWIGINTERN int
-SWIG_SciInt64_FromLongLong(void *_pvApiCtx, int _iVarOut, long long _llValue) {
+SWIG_SciInt64_FromLongLong(void *_pvApiCtx, int iVarOut, long long llValue) {
Scierror(999, _("%s: Scilab 5.X does not manage '%s' data type.\n"), "SWIG_SciInt64_ToLongLong", "int64");
return SWIG_ERROR;
}
@@ -35,7 +35,7 @@ SWIG_SciInt64_FromLongLong(void *_pvApiCtx, int _iVarOut, long long _llValue) {
}
%fragment("SWIG_SciUint64_ToUnsignedLongLong", "header") {
SWIGINTERN int
-SWIG_SciUint64_ToUnsignedLongLong(void *_pvApiCtx, int _iVar, unsigned long long *_pullValue, char *_fname) {
+SWIG_SciUint64_ToUnsignedLongLong(void *_pvApiCtx, int iVar, unsigned long long *pullValue, char *_fname) {
Scierror(999, _("%s: Scilab 5.X does not manage '%s' data type.\n"), "SWIG_SciUint64_ToLongLong", "uint64");
return SWIG_ERROR;
}
@@ -46,7 +46,7 @@ SWIG_SciUint64_ToUnsignedLongLong(void *_pvApiCtx, int _iVar, unsigned long long
}
%fragment("SWIG_SciUint64_FromUnsignedLongLong", "header") {
SWIGINTERN int
-SWIG_SciUint64_FromUnsignedLongLong(void *_pvApiCtx, int _iVarOut, unsigned long long _llValue) {
+SWIG_SciUint64_FromUnsignedLongLong(void *_pvApiCtx, int iVarOut, unsigned long long llValue) {
Scierror(999, _("%s: Scilab 5.X does not manage '%s' data type.\n"), "SWIG_SciUint64_ToLongLong", "uint64");
return SWIG_ERROR;
}
30 Lib/scilab/scimisctypes.swg
View
@@ -11,14 +11,14 @@
%fragment("SWIG_Int_AsSize", "header", fragment=SWIG_AsVal_frag(int))
{
SWIGINTERN int
-SWIG_Int_AsSize(void *_pvApiCtx, SwigSciObject _iVar, size_t *_piValue, char *_fname) {
+SWIG_Int_AsSize(void *_pvApiCtx, SwigSciObject iVar, size_t *piValue, char *_fname) {
int iValue = 0;
- if (SWIG_AsVal_dec(int)(_iVar, &iValue) != SWIG_OK)
+ if (SWIG_AsVal_dec(int)(iVar, &iValue) != SWIG_OK)
return SWIG_ERROR;
-
- if (_piValue)
- *_piValue = (size_t) iValue;
-
+
+ if (piValue)
+ *piValue = (size_t) iValue;
+
return SWIG_OK;
}
}
@@ -26,11 +26,11 @@ SWIG_Int_AsSize(void *_pvApiCtx, SwigSciObject _iVar, size_t *_piValue, char *_f
%fragment(SWIG_From_frag(size_t), "header", fragment="SWIG_Int_FromSize") {
%#define SWIG_From_size_t(scilabValue) SWIG_Int_FromSize(pvApiCtx, SWIG_Scilab_GetOutputPosition(), scilabValue, SWIG_Scilab_GetFname())
}
-%fragment("SWIG_Int_FromSize", "header", fragment=SWIG_From_frag(int))
+%fragment("SWIG_Int_FromSize", "header", fragment=SWIG_From_frag(int))
{
SWIGINTERN int
-SWIG_Int_FromSize(void *_pvApiCtx, int _iVarOut, size_t _iValue, char *_fname) {
- return SWIG_From_dec(int)((int)_iValue);
+SWIG_Int_FromSize(void *_pvApiCtx, int iVarOut, size_t iValue, char *_fname) {
+ return SWIG_From_dec(int)((int)iValue);
}
}
@@ -45,13 +45,13 @@ SWIG_Int_FromSize(void *_pvApiCtx, int _iVarOut, size_t _iValue, char *_fname) {
%fragment("SWIG_Int_AsPtrDiff", "header", fragment=SWIG_AsVal_frag(int))
{
SWIGINTERN int
-SWIG_Int_AsPtrDiff(void *_pvApiCtx, SwigSciObject _iVar, ptrdiff_t *_piValue, char *_fname) {
+SWIG_Int_AsPtrDiff(void *_pvApiCtx, SwigSciObject iVar, ptrdiff_t *piValue, char *_fname) {
int iValue = 0;
- if (SWIG_AsVal_dec(int)(_iVar, &iValue) != SWIG_OK)
+ if (SWIG_AsVal_dec(int)(iVar, &iValue) != SWIG_OK)
return SWIG_ERROR;
- if (_piValue)
- *_piValue = (ptrdiff_t) iValue;
+ if (piValue)
+ *piValue = (ptrdiff_t) iValue;
return SWIG_OK;
}
@@ -62,8 +62,8 @@ SWIG_Int_AsPtrDiff(void *_pvApiCtx, SwigSciObject _iVar, ptrdiff_t *_piValue, ch
}
%fragment("SWIG_Int_FromPtrDiff", "header", fragment=SWIG_From_frag(int)) {
SWIGINTERN int
-SWIG_Int_FromPtrDiff(void *_pvApiCtx, int _iVarOut, ptrdiff_t _iValue, char *_fname) {
- return SWIG_From_dec(int)((int)_iValue);
+SWIG_Int_FromPtrDiff(void *_pvApiCtx, int iVarOut, ptrdiff_t iValue, char *_fname) {
+ return SWIG_From_dec(int)((int)iValue);
}
}
16 Lib/scilab/scirun.swg
View
@@ -101,12 +101,12 @@ SWIG_Scilab_SetOutput(void *_pvApiCtx, SwigSciObject _output) {
/* Pointer conversion functions */
SWIGINTERN int
-SwigScilabPtrToObject(void *_pvApiCtx, int _iVar, void **_pObjValue, swig_type_info *_descriptor, int _flags, char *_fname) {
+SwigScilabPtrToObject(void *_pvApiCtx, int iVar, void **_pObjValue, swig_type_info *_descriptor, int _flags, char *_fname) {
SciErr sciErr;
int iType = 0;
int *piAddrVar = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -133,10 +133,10 @@ SwigScilabPtrToObject(void *_pvApiCtx, int _iVar, void **_pObjValue, swig_type_i
}
SWIGRUNTIMEINLINE int
-SwigScilabPtrFromObject(void *_pvApiCtx, int _iVarOut, void *_object, swig_type_info *_descriptor, int _flags) {
+SwigScilabPtrFromObject(void *_pvApiCtx, int iVarOut, void *obj, swig_type_info *_descriptor, int _flags) {
SciErr sciErr;
- sciErr = createPointer(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, (void *)_object);
+ sciErr = createPointer(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, (void *)obj);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -146,13 +146,13 @@ SwigScilabPtrFromObject(void *_pvApiCtx, int _iVarOut, void *_object, swig_type_
}
SWIGRUNTIME int
-SWIG_Scilab_ConvertPacked(void *_pvApiCtx, int _iVar, void *_ptr, int sz, swig_type_info *ty, char *_fname) {
+SWIG_Scilab_ConvertPacked(void *_pvApiCtx, int iVar, void *_ptr, int sz, swig_type_info *ty, char *_fname) {
swig_cast_info *tc;
int *piAddrVar = NULL;
char *pstStrings = NULL;
SciErr sciErr;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -183,7 +183,7 @@ SWIG_Scilab_ConvertPacked(void *_pvApiCtx, int _iVar, void *_ptr, int sz, swig_t
}
SWIGRUNTIME int
-SWIG_Scilab_NewMemberObj(void *_pvApiCtx, int _iVarOut, void *_ptr, int _sz, swig_type_info *_type) {
+SWIG_Scilab_NewMemberObj(void *_pvApiCtx, int iVarOut, void *_ptr, int _sz, swig_type_info *_type) {
char result[1024];
char *r = result;
@@ -194,7 +194,7 @@ SWIG_Scilab_NewMemberObj(void *_pvApiCtx, int _iVarOut, void *_ptr, int _sz, swi
r = SWIG_PackData(r, _ptr, _sz);
strcpy(r, _type->name);
- if (createSingleString(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, &result[0]))
+ if (createSingleString(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, &result[0]))
return SWIG_ERROR;
return SWIG_OK;
38 Lib/scilab/scisequencebool.swg
View
@@ -9,11 +9,11 @@
%fragment(SWIG_AsCheck_Sequence_frag(bool), "header") {
SWIGINTERN int
-SWIG_AsCheck_Sequence_dec(bool)(SwigSciObject _obj) {
+SWIG_AsCheck_Sequence_dec(bool)(SwigSciObject obj) {
SciErr sciErr;
int *piAddrVar;
- sciErr = getVarAddressFromPosition(pvApiCtx, _obj, &piAddrVar);
+ sciErr = getVarAddressFromPosition(pvApiCtx, obj, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -25,7 +25,7 @@ SWIG_AsCheck_Sequence_dec(bool)(SwigSciObject _obj) {
}
else
{
- Scierror(999, _("%s: Wrong type for input argument #%d: A boolean is expected.\n"), SWIG_Scilab_GetFname(), _obj);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A boolean is expected.\n"), SWIG_Scilab_GetFname(), obj);
return SWIG_ERROR;
}
}
@@ -35,10 +35,10 @@ SWIG_AsCheck_Sequence_dec(bool)(SwigSciObject _obj) {
fragment="SWIG_SciBoolean_AsIntArrayAndSize") {
SWIGINTERN int
-SWIG_AsGet_Sequence_dec(bool)(SwigSciObject _obj, int **_pSequence) {
+SWIG_AsGet_Sequence_dec(bool)(SwigSciObject obj, int **pSequence) {
int iMatrixRowCount;
int iMatrixColCount;
- return (SWIG_SciBoolean_AsIntArrayAndSize(pvApiCtx, _obj, &iMatrixRowCount, &iMatrixColCount, _pSequence, SWIG_Scilab_GetFname()));
+ return (SWIG_SciBoolean_AsIntArrayAndSize(pvApiCtx, obj, &iMatrixRowCount, &iMatrixColCount, pSequence, SWIG_Scilab_GetFname()));
}
}
@@ -46,16 +46,16 @@ SWIG_AsGet_Sequence_dec(bool)(SwigSciObject _obj, int **_pSequence) {
fragment="SWIG_SciBoolean_AsIntArrayAndSize") {
SWIGINTERN int
-SWIG_AsSize_Sequence_dec(bool)(SwigSciObject _obj, int *_piSize) {
+SWIG_AsSize_Sequence_dec(bool)(SwigSciObject obj, int *piSize) {
int *piMatrix;
int iMatrixRowCount;
int iMatrixColCount;
- if (SWIG_SciBoolean_AsIntArrayAndSize(pvApiCtx, _obj, &iMatrixRowCount, &iMatrixColCount, &piMatrix, SWIG_Scilab_GetFname()) == SWIG_OK) {
+ if (SWIG_SciBoolean_AsIntArrayAndSize(pvApiCtx, obj, &iMatrixRowCount, &iMatrixColCount, &piMatrix, SWIG_Scilab_GetFname()) == SWIG_OK) {
if ((iMatrixRowCount > 1) && (iMatrixColCount > 1)) {
- Scierror(999, _("%s: Wrong size for input argument #%d: An integer vector is expected.\n"), SWIG_Scilab_GetFname(), _obj);
+ Scierror(999, _("%s: Wrong size for input argument #%d: An integer vector is expected.\n"), SWIG_Scilab_GetFname(), obj);
return SWIG_ERROR;
}
- *_piSize = iMatrixRowCount * iMatrixColCount;
+ *piSize = iMatrixRowCount * iMatrixColCount;
return SWIG_OK;
}
return SWIG_ERROR;
@@ -65,9 +65,9 @@ SWIG_AsSize_Sequence_dec(bool)(SwigSciObject _obj, int *_piSize) {
%fragment(SWIG_FromCreate_Sequence_frag(bool), "header") {
SWIGINTERN int
-SWIG_FromCreate_Sequence_dec(bool)(int _size, int **_sequence) {
- *_sequence = new int[_size];
- return *_sequence != NULL ? SWIG_OK : SWIG_ERROR;
+SWIG_FromCreate_Sequence_dec(bool)(int size, int **pSequence) {
+ *pSequence = new int[size];
+ return *pSequence != NULL ? SWIG_OK : SWIG_ERROR;
}
}
@@ -75,9 +75,9 @@ SWIG_FromCreate_Sequence_dec(bool)(int _size, int **_sequence) {
fragment="SWIG_SciBoolean_FromIntArrayAndSize") {
SWIGINTERN SwigSciObject
-SWIG_FromSet_Sequence_dec(bool)(int _size, int *_sequence) {
- SwigSciObject obj = SWIG_SciBoolean_FromIntArrayAndSize(pvApiCtx, SWIG_Scilab_GetOutputPosition(), 1, _size, _sequence);
- delete (int *)_sequence;
+SWIG_FromSet_Sequence_dec(bool)(int size, int *pSequence) {
+ SwigSciObject obj = SWIG_SciBoolean_FromIntArrayAndSize(pvApiCtx, SWIG_Scilab_GetOutputPosition(), 1, size, pSequence);
+ delete (int *)pSequence;
return obj;
}
}
@@ -85,16 +85,16 @@ SWIG_FromSet_Sequence_dec(bool)(int _size, int *_sequence) {
%fragment(SWIG_AsVal_SequenceItem_frag(bool), "header") {
SWIGINTERN bool
-SWIG_AsVal_SequenceItem_dec(bool)(SwigSciObject _obj, int *_pSequence, int _iItemIndex) {
- return _pSequence[_iItemIndex];
+SWIG_AsVal_SequenceItem_dec(bool)(SwigSciObject obj, int *pSequence, int iItemIndex) {
+ return pSequence[iItemIndex];
}
}
%fragment(SWIG_From_SequenceItem_frag(bool), "header") {
SWIGINTERN int
-SWIG_From_SequenceItem_dec(bool)(int *_pSequence, int _iItemIndex, bool _itemValue) {
- _pSequence[_iItemIndex] = _itemValue;
+SWIG_From_SequenceItem_dec(bool)(int *pSequence, int iItemIndex, bool itemValue) {
+ pSequence[iItemIndex] = itemValue;
return SWIG_OK;
}
}
38 Lib/scilab/scisequencedouble.swg
View
@@ -9,11 +9,11 @@
%fragment(SWIG_AsCheck_Sequence_frag(double), "header") {
SWIGINTERN int
-SWIG_AsCheck_Sequence_dec(double)(SwigSciObject _obj) {
+SWIG_AsCheck_Sequence_dec(double)(SwigSciObject obj) {
SciErr sciErr;
int *piAddrVar;
- sciErr = getVarAddressFromPosition(pvApiCtx, _obj, &piAddrVar);
+ sciErr = getVarAddressFromPosition(pvApiCtx, obj, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -25,7 +25,7 @@ SWIG_AsCheck_Sequence_dec(double)(SwigSciObject _obj) {
}
else
{
- Scierror(999, _("%s: Wrong type for input argument #%d: A double is expected.\n"), SWIG_Scilab_GetFname(), _obj);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A double is expected.\n"), SWIG_Scilab_GetFname(), obj);
return SWIG_ERROR;
}
}
@@ -35,10 +35,10 @@ SWIG_AsCheck_Sequence_dec(double)(SwigSciObject _obj) {
fragment="SWIG_SciDouble_AsDoubleArrayAndSize") {
SWIGINTERN int
-SWIG_AsGet_Sequence_dec(double)(SwigSciObject _obj, double **_pSequence) {
+SWIG_AsGet_Sequence_dec(double)(SwigSciObject obj, double **pSequence) {
int iMatrixRowCount;
int iMatrixColCount;
- return (SWIG_SciDouble_AsDoubleArrayAndSize(pvApiCtx, _obj, &iMatrixRowCount, &iMatrixColCount, _pSequence, SWIG_Scilab_GetFname()));
+ return (SWIG_SciDouble_AsDoubleArrayAndSize(pvApiCtx, obj, &iMatrixRowCount, &iMatrixColCount, pSequence, SWIG_Scilab_GetFname()));
}
}
@@ -46,16 +46,16 @@ SWIG_AsGet_Sequence_dec(double)(SwigSciObject _obj, double **_pSequence) {
fragment="SWIG_SciDouble_AsDoubleArrayAndSize") {
SWIGINTERN int
-SWIG_AsSize_Sequence_dec(double)(SwigSciObject _obj, int *_piSize) {
+SWIG_AsSize_Sequence_dec(double)(SwigSciObject obj, int *piSize) {
double *pdblMatrix;
int iMatrixRowCount;
int iMatrixColCount;
- if (SWIG_SciDouble_AsDoubleArrayAndSize(pvApiCtx, _obj, &iMatrixRowCount, &iMatrixColCount, &pdblMatrix, SWIG_Scilab_GetFname()) == SWIG_OK) {
+ if (SWIG_SciDouble_AsDoubleArrayAndSize(pvApiCtx, obj, &iMatrixRowCount, &iMatrixColCount, &pdblMatrix, SWIG_Scilab_GetFname()) == SWIG_OK) {
if ((iMatrixRowCount > 1) && (iMatrixColCount > 1)) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A double vector is expected.\n"), SWIG_Scilab_GetFname(), _obj);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A double vector is expected.\n"), SWIG_Scilab_GetFname(), obj);
return SWIG_ERROR;
}
- *_piSize = iMatrixRowCount * iMatrixColCount;
+ *piSize = iMatrixRowCount * iMatrixColCount;
return SWIG_OK;
}
return SWIG_ERROR;
@@ -65,9 +65,9 @@ SWIG_AsSize_Sequence_dec(double)(SwigSciObject _obj, int *_piSize) {
%fragment(SWIG_FromCreate_Sequence_frag(double), "header") {
SWIGINTERN int
-SWIG_FromCreate_Sequence_dec(double)(int _size, double **_sequence) {
- *_sequence = new double[_size];
- return *_sequence != NULL ? SWIG_OK : SWIG_ERROR;
+SWIG_FromCreate_Sequence_dec(double)(int size, double **pSequence) {
+ *pSequence = new double[size];
+ return *pSequence != NULL ? SWIG_OK : SWIG_ERROR;
}
}
@@ -75,9 +75,9 @@ SWIG_FromCreate_Sequence_dec(double)(int _size, double **_sequence) {
fragment="SWIG_SciDouble_FromDoubleArrayAndSize") {
SWIGINTERN SwigSciObject
-SWIG_FromSet_Sequence_dec(double)(int _size, double *_sequence) {
- SwigSciObject obj = SWIG_SciDouble_FromDoubleArrayAndSize(pvApiCtx, SWIG_Scilab_GetOutputPosition(), 1, _size, _sequence);
- delete (double *)_sequence;
+SWIG_FromSet_Sequence_dec(double)(int size, double *pSequence) {
+ SwigSciObject obj = SWIG_SciDouble_FromDoubleArrayAndSize(pvApiCtx, SWIG_Scilab_GetOutputPosition(), 1, size, pSequence);
+ delete (double *)pSequence;
return obj;
}
}
@@ -85,16 +85,16 @@ SWIG_FromSet_Sequence_dec(double)(int _size, double *_sequence) {
%fragment(SWIG_AsVal_SequenceItem_frag(double), "header") {
SWIGINTERN double
-SWIG_AsVal_SequenceItem_dec(double)(SwigSciObject _obj, double *_pSequence, int _iItemIndex) {
- return _pSequence[_iItemIndex];
+SWIG_AsVal_SequenceItem_dec(double)(SwigSciObject obj, double *pSequence, int iItemIndex) {
+ return pSequence[iItemIndex];
}
}
%fragment(SWIG_From_SequenceItem_frag(double), "header") {
SWIGINTERN int
-SWIG_From_SequenceItem_dec(double)(double *_pSequence, int _iItemIndex, double _itemValue) {
- _pSequence[_iItemIndex] = _itemValue;
+SWIG_From_SequenceItem_dec(double)(double *pSequence, int iItemIndex, double itemValue) {
+ pSequence[iItemIndex] = itemValue;
return SWIG_OK;
}
}
40 Lib/scilab/scisequencefloat.swg
View
@@ -9,11 +9,11 @@
%fragment(SWIG_AsCheck_Sequence_frag(float), "header") {
SWIGINTERN int
-SWIG_AsCheck_Sequence_dec(float)(SwigSciObject _obj) {
+SWIG_AsCheck_Sequence_dec(float)(SwigSciObject obj) {
SciErr sciErr;
int *piAddrVar;
- sciErr = getVarAddressFromPosition(pvApiCtx, _obj, &piAddrVar);
+ sciErr = getVarAddressFromPosition(pvApiCtx, obj, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -25,7 +25,7 @@ SWIG_AsCheck_Sequence_dec(float)(SwigSciObject _obj) {
}
else
{
- Scierror(999, _("%s: Wrong type for input argument #%d: A double is expected.\n"), SWIG_Scilab_GetFname(), _obj);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A double is expected.\n"), SWIG_Scilab_GetFname(), obj);
return SWIG_ERROR;
}
}
@@ -35,11 +35,10 @@ SWIG_AsCheck_Sequence_dec(float)(SwigSciObject _obj) {
fragment="SWIG_SciDouble_AsFloatArrayAndSize") {
SWIGINTERN int
-SWIG_AsGet_Sequence_dec(float)(SwigSciObject _obj, float **_pSequence) {
+SWIG_AsGet_Sequence_dec(float)(SwigSciObject obj, float **pSequence) {
int iMatrixRowCount;
int iMatrixColCount;
-
- return (SWIG_SciDouble_AsFloatArrayAndSize(pvApiCtx, _obj, &iMatrixRowCount, &iMatrixColCount, _pSequence, SWIG_Scilab_GetFname()));
+ return (SWIG_SciDouble_AsFloatArrayAndSize(pvApiCtx, obj, &iMatrixRowCount, &iMatrixColCount, pSequence, SWIG_Scilab_GetFname()));
}
}
@@ -47,16 +46,16 @@ SWIG_AsGet_Sequence_dec(float)(SwigSciObject _obj, float **_pSequence) {
fragment="SWIG_SciDouble_AsFloatArrayAndSize") {
SWIGINTERN int
-SWIG_AsSize_Sequence_dec(float)(SwigSciObject _obj, int *_piSize) {
+SWIG_AsSize_Sequence_dec(float)(SwigSciObject obj, int *piSize) {
float *pdblMatrix;
int iMatrixRowCount;
int iMatrixColCount;
- if (SWIG_SciDouble_AsFloatArrayAndSize(pvApiCtx, _obj, &iMatrixRowCount, &iMatrixColCount, &pdblMatrix, SWIG_Scilab_GetFname()) == SWIG_OK) {
+ if (SWIG_SciDouble_AsFloatArrayAndSize(pvApiCtx, obj, &iMatrixRowCount, &iMatrixColCount, &pdblMatrix, SWIG_Scilab_GetFname()) == SWIG_OK) {
if ((iMatrixRowCount > 1) && (iMatrixColCount > 1)) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A float vector is expected.\n"), SWIG_Scilab_GetFname(), _obj);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A float vector is expected.\n"), SWIG_Scilab_GetFname(), obj);
return SWIG_ERROR;
}
- *_piSize = iMatrixRowCount * iMatrixColCount;
+ *piSize = iMatrixRowCount * iMatrixColCount;
return SWIG_OK;
}
return SWIG_ERROR;
@@ -66,9 +65,9 @@ SWIG_AsSize_Sequence_dec(float)(SwigSciObject _obj, int *_piSize) {
%fragment(SWIG_FromCreate_Sequence_frag(float), "header") {
SWIGINTERN int
-SWIG_FromCreate_Sequence_dec(float)(int _size, float **_sequence) {
- *_sequence = new float[_size];
- return *_sequence != NULL ? SWIG_OK : SWIG_ERROR;
+SWIG_FromCreate_Sequence_dec(float)(int size, float **pSequence) {
+ *pSequence = new float[size];
+ return *pSequence != NULL ? SWIG_OK : SWIG_ERROR;
}
}
@@ -76,9 +75,9 @@ SWIG_FromCreate_Sequence_dec(float)(int _size, float **_sequence) {
fragment="SWIG_SciDouble_FromFloatArrayAndSize") {
SWIGINTERN SwigSciObject
-SWIG_FromSet_Sequence_dec(float)(int _size, float *_sequence) {
- SwigSciObject obj = SWIG_SciDouble_FromFloatArrayAndSize(pvApiCtx, SWIG_Scilab_GetOutputPosition(), 1, _size, _sequence);
- delete (float *)_sequence;
+SWIG_FromSet_Sequence_dec(float)(int size, float *pSequence) {
+ SwigSciObject obj = SWIG_SciDouble_FromFloatArrayAndSize(pvApiCtx, SWIG_Scilab_GetOutputPosition(), 1, size, pSequence);
+ delete (float *)pSequence;
return obj;
}
}
@@ -86,16 +85,15 @@ SWIG_FromSet_Sequence_dec(float)(int _size, float *_sequence) {
%fragment(SWIG_AsVal_SequenceItem_frag(float), "header") {
SWIGINTERN float
-SWIG_AsVal_SequenceItem_dec(float)(SwigSciObject _obj, float *_pSequence, int _iItemIndex) {
- return _pSequence[_iItemIndex];
+SWIG_AsVal_SequenceItem_dec(float)(SwigSciObject obj, float *pSequence, int iItemIndex) {
+ return pSequence[iItemIndex];
}
}
%fragment(SWIG_From_SequenceItem_frag(float), "header") {
-
SWIGINTERN int
-SWIG_From_SequenceItem_dec(float)(float *_pSequence, int _iItemIndex, float _itemValue) {
- _pSequence[_iItemIndex] = _itemValue;
+SWIG_From_SequenceItem_dec(float)(float *pSequence, int iItemIndex, float itemValue) {
+ pSequence[iItemIndex] = itemValue;
return SWIG_OK;
}
}
38 Lib/scilab/scisequenceint.swg
View
@@ -9,12 +9,12 @@
%fragment(SWIG_AsCheck_Sequence_frag(int), "header") {
SWIGINTERN int
-SWIG_AsCheck_Sequence_dec(int)(SwigSciObject _obj) {
+SWIG_AsCheck_Sequence_dec(int)(SwigSciObject obj) {
SciErr sciErr;
int *piAddrVar;
int iType = 0;
- sciErr = getVarAddressFromPosition(pvApiCtx, _obj, &piAddrVar);
+ sciErr = getVarAddressFromPosition(pvApiCtx, obj, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -32,7 +32,7 @@ SWIG_AsCheck_Sequence_dec(int)(SwigSciObject _obj) {
}
else
{
- Scierror(999, _("%s: Wrong type for input argument #%d: An integer is expected.\n"), SWIG_Scilab_GetFname(), _obj);
+ Scierror(999, _("%s: Wrong type for input argument #%d: An integer is expected.\n"), SWIG_Scilab_GetFname(), obj);
return SWIG_ERROR;
}
}
@@ -41,10 +41,10 @@ SWIG_AsCheck_Sequence_dec(int)(SwigSciObject _obj) {
%fragment(SWIG_AsGet_Sequence_frag(int), "header",
fragment="SWIG_SciDoubleOrInt32_AsIntArrayAndSize") {
SWIGINTERN int
-SWIG_AsGet_Sequence_dec(int)(SwigSciObject _obj, int **_pSequence) {
+SWIG_AsGet_Sequence_dec(int)(SwigSciObject obj, int **pSequence) {
int iMatrixRowCount;
int iMatrixColCount;
- return (SWIG_SciDoubleOrInt32_AsIntArrayAndSize(pvApiCtx, _obj, &iMatrixRowCount, &iMatrixColCount, _pSequence, SWIG_Scilab_GetFname()));
+ return (SWIG_SciDoubleOrInt32_AsIntArrayAndSize(pvApiCtx, obj, &iMatrixRowCount, &iMatrixColCount, pSequence, SWIG_Scilab_GetFname()));
}
}
@@ -52,16 +52,16 @@ SWIG_AsGet_Sequence_dec(int)(SwigSciObject _obj, int **_pSequence) {
fragment="SWIG_SciDoubleOrInt32_AsIntArrayAndSize") {
SWIGINTERN int
-SWIG_AsSize_Sequence_dec(int)(SwigSciObject _obj, int *_piSize) {
+SWIG_AsSize_Sequence_dec(int)(SwigSciObject obj, int *piSize) {
int *piMatrix;
int iMatrixRowCount;
int iMatrixColCount;
- if (SWIG_SciDoubleOrInt32_AsIntArrayAndSize(pvApiCtx, _obj, &iMatrixRowCount, &iMatrixColCount, &piMatrix, SWIG_Scilab_GetFname()) == SWIG_OK) {
+ if (SWIG_SciDoubleOrInt32_AsIntArrayAndSize(pvApiCtx, obj, &iMatrixRowCount, &iMatrixColCount, &piMatrix, SWIG_Scilab_GetFname()) == SWIG_OK) {
if ((iMatrixRowCount > 1) && (iMatrixColCount > 1)) {
- Scierror(999, _("%s: Wrong size for input argument #%d: An integer vector is expected.\n"), SWIG_Scilab_GetFname(), _obj);
+ Scierror(999, _("%s: Wrong size for input argument #%d: An integer vector is expected.\n"), SWIG_Scilab_GetFname(), obj);
return SWIG_ERROR;
}
- *_piSize = iMatrixRowCount * iMatrixColCount;
+ *piSize = iMatrixRowCount * iMatrixColCount;
return SWIG_OK;
}
return SWIG_ERROR;
@@ -71,9 +71,9 @@ SWIG_AsSize_Sequence_dec(int)(SwigSciObject _obj, int *_piSize) {
%fragment(SWIG_FromCreate_Sequence_frag(int), "header") {
SWIGINTERN int
-SWIG_FromCreate_Sequence_dec(int)(int _size, int **_sequence) {
- *_sequence = new int[_size];
- return *_sequence != NULL ? SWIG_OK : SWIG_ERROR;
+SWIG_FromCreate_Sequence_dec(int)(int size, int **pSequence) {
+ *pSequence = new int[size];
+ return *pSequence != NULL ? SWIG_OK : SWIG_ERROR;
}
}
@@ -81,9 +81,9 @@ SWIG_FromCreate_Sequence_dec(int)(int _size, int **_sequence) {
fragment="SWIG_SciDouble_FromIntArrayAndSize") {
SWIGINTERN SwigSciObject
-SWIG_FromSet_Sequence_dec(int)(int _size, int *_sequence) {
- SwigSciObject obj = SWIG_SciDouble_FromIntArrayAndSize(pvApiCtx, SWIG_Scilab_GetOutputPosition(), 1, _size, _sequence);
- delete (int *)_sequence;
+SWIG_FromSet_Sequence_dec(int)(int size, int *pSequence) {
+ SwigSciObject obj = SWIG_SciDouble_FromIntArrayAndSize(pvApiCtx, SWIG_Scilab_GetOutputPosition(), 1, size, pSequence);
+ delete (int *)pSequence;
return obj;
}
}
@@ -91,16 +91,16 @@ SWIG_FromSet_Sequence_dec(int)(int _size, int *_sequence) {
%fragment(SWIG_AsVal_SequenceItem_frag(int), "header") {
SWIGINTERN int
-SWIG_AsVal_SequenceItem_dec(int)(SwigSciObject _obj, int *_pSequence, int _iItemIndex) {
- return _pSequence[_iItemIndex];
+SWIG_AsVal_SequenceItem_dec(int)(SwigSciObject obj, int *pSequence, int iItemIndex) {
+ return pSequence[iItemIndex];
}
}
%fragment(SWIG_From_SequenceItem_frag(int), "header") {
SWIGINTERN int
-SWIG_From_SequenceItem_dec(int)(int *_pSequence, int _iItemIndex, int _itemValue) {
- _pSequence[_iItemIndex] = _itemValue;
+SWIG_From_SequenceItem_dec(int)(int *pSequence, int iItemIndex, int itemValue) {
+ pSequence[iItemIndex] = itemValue;
return SWIG_OK;
}
}
40 Lib/scilab/scisequencepointer.swg
View
@@ -14,8 +14,8 @@
fragment="SWIG_ScilabList") {
SWIGINTERN int
-SWIG_AsCheck_Sequence_dec(ptr)(SwigSciObject _obj) {
- return SWIG_CheckScilabList(_obj);
+SWIG_AsCheck_Sequence_dec(ptr)(SwigSciObject obj) {
+ return SWIG_CheckScilabList(obj);
}
}
@@ -23,8 +23,8 @@ SWIG_AsCheck_Sequence_dec(ptr)(SwigSciObject _obj) {
fragment="SWIG_ScilabList") {
SWIGINTERN int
-SWIG_AsGet_Sequence_dec(ptr)(SwigSciObject _obj, int **_piSequence) {
- return SWIG_GetScilabList(_obj, _piSequence);
+SWIG_AsGet_Sequence_dec(ptr)(SwigSciObject obj, int **piSequence) {
+ return SWIG_GetScilabList(obj, piSequence);
}
}
@@ -32,8 +32,8 @@ SWIG_AsGet_Sequence_dec(ptr)(SwigSciObject _obj, int **_piSequence) {
fragment="SWIG_ScilabList") {
SWIGINTERN int
-SWIG_AsSize_Sequence_dec(ptr)(SwigSciObject _obj, int *_piSize) {
- return SWIG_GetScilabListSize(_obj, _piSize);
+SWIG_AsSize_Sequence_dec(ptr)(SwigSciObject obj, int *piSize) {
+ return SWIG_GetScilabListSize(obj, piSize);
}
}
@@ -41,9 +41,9 @@ SWIG_AsSize_Sequence_dec(ptr)(SwigSciObject _obj, int *_piSize) {
fragment="<stdint.h>") {
SWIGINTERN int
-SWIG_FromCreate_Sequence_dec(ptr)(int _size, uintptr_t **_sequence) {
- *_sequence = new uintptr_t[_size];
- return *_sequence != NULL ? SWIG_OK : SWIG_ERROR;
+SWIG_FromCreate_Sequence_dec(ptr)(int size, uintptr_t **pSequence) {
+ *pSequence = new uintptr_t[size];
+ return *pSequence != NULL ? SWIG_OK : SWIG_ERROR;
}
}
@@ -51,29 +51,29 @@ SWIG_FromCreate_Sequence_dec(ptr)(int _size, uintptr_t **_sequence) {
fragment="<stdint.h>") {
SWIGINTERN SwigSciObject
-SWIG_FromSet_Sequence_dec(ptr)(int _size, uintptr_t *_sequence) {
+SWIG_FromSet_Sequence_dec(ptr)(int size, uintptr_t *pSequence) {
SciErr sciErr;
int *piListAddr;
int iVarOut = SWIG_NbInputArgument(pvApiCtx) + SWIG_Scilab_GetOutputPosition();
- sciErr = createList(pvApiCtx, iVarOut, _size, &piListAddr);
+ sciErr = createList(pvApiCtx, iVarOut, size, &piListAddr);
if (sciErr.iErr)
{
printError(&sciErr, 0);
return SWIG_ERROR;
}
- for (int i=0; i<_size; i++)
+ for (int i=0; i<size; i++)
{
- sciErr = createPointerInList(pvApiCtx, iVarOut, piListAddr, i + 1, (void *)_sequence[i]);
+ sciErr = createPointerInList(pvApiCtx, iVarOut, piListAddr, i + 1, (void *)pSequence[i]);
if (sciErr.iErr)
{
printError(&sciErr, 0);
return SWIG_ERROR;
}
}
- delete (int*)_sequence;
+ delete (int*)pSequence;
return SWIG_OK;
}
}
@@ -81,14 +81,14 @@ SWIG_FromSet_Sequence_dec(ptr)(int _size, uintptr_t *_sequence) {
%fragment(SWIG_AsVal_SequenceItem_frag(ptr), "header") {
SWIGINTERN void*
-SWIG_AsVal_SequenceItem_dec(ptr)(SwigSciObject _obj, int *_piSequence, int _itemIndex)
+SWIG_AsVal_SequenceItem_dec(ptr)(SwigSciObject obj, int *piSequence, int itemIndex)
{
SciErr sciErr;
int *piItemAddr;
int iType;
void* pItemValue = NULL;
- sciErr = getListItemAddress(pvApiCtx, _piSequence, _itemIndex + 1, &piItemAddr);
+ sciErr = getListItemAddress(pvApiCtx, piSequence, itemIndex + 1, &piItemAddr);
if (sciErr.iErr)
{
printError(&sciErr, 0);
@@ -104,11 +104,11 @@ SWIG_AsVal_SequenceItem_dec(ptr)(SwigSciObject _obj, int *_piSequence, int _item
if (iType != sci_pointer)
{
- Scierror(999, _("%s: Wrong type for input argument #%d: A pointer is expected at list item #%d.\n"), fname, _obj, _itemIndex + 1);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A pointer is expected at list item #%d.\n"), fname, obj, itemIndex + 1);
return NULL;
}
- sciErr = getPointerInList(pvApiCtx, _piSequence, _itemIndex + 1, &pItemValue);
+ sciErr = getPointerInList(pvApiCtx, piSequence, itemIndex + 1, &pItemValue);
if (sciErr.iErr)
{
printError(&sciErr, 0);
@@ -123,8 +123,8 @@ SWIG_AsVal_SequenceItem_dec(ptr)(SwigSciObject _obj, int *_piSequence, int _item
fragment="<stdint.h>") {
SWIGINTERN int
-SWIG_From_SequenceItem_dec(ptr)(uintptr_t *_pSequence, int _iItemIndex, uintptr_t _itemValue) {
- _pSequence[_iItemIndex] = _itemValue;
+SWIG_From_SequenceItem_dec(ptr)(uintptr_t *pSequence, int iItemIndex, uintptr_t itemValue) {
+ pSequence[iItemIndex] = itemValue;
return SWIG_OK;
}
}
40 Lib/scilab/scisequencestring.swg
View
@@ -9,11 +9,11 @@
%fragment(SWIG_AsCheck_Sequence_frag(std::string), "header") {
SWIGINTERN int
-SWIG_AsCheck_Sequence_dec(std::string)(SwigSciObject _obj) {
+SWIG_AsCheck_Sequence_dec(std::string)(SwigSciObject obj) {
SciErr sciErr;
int *piAddrVar;
- sciErr = getVarAddressFromPosition(pvApiCtx, _obj, &piAddrVar);
+ sciErr = getVarAddressFromPosition(pvApiCtx, obj, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -25,7 +25,7 @@ SWIG_AsCheck_Sequence_dec(std::string)(SwigSciObject _obj) {
}
else
{
- Scierror(999, _("%s: Wrong type for input argument #%d: A string is expected.\n"), SWIG_Scilab_GetFname(), _obj);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A string is expected.\n"), SWIG_Scilab_GetFname(), obj);
return SWIG_ERROR;
}
}
@@ -35,10 +35,10 @@ SWIG_AsCheck_Sequence_dec(std::string)(SwigSciObject _obj) {
fragment="SWIG_SciString_AsCharPtrArrayAndSize") {
SWIGINTERN int
-SWIG_AsGet_Sequence_dec(std::string)(SwigSciObject _obj, char ***_pSequence) {
+SWIG_AsGet_Sequence_dec(std::string)(SwigSciObject obj, char ***pSequence) {
int iRows = 0;
int iCols = 0;
- return (SWIG_SciString_AsCharPtrArrayAndSize(pvApiCtx, _obj, &iRows, &iCols, _pSequence, SWIG_Scilab_GetFname()));
+ return (SWIG_SciString_AsCharPtrArrayAndSize(pvApiCtx, obj, &iRows, &iCols, pSequence, SWIG_Scilab_GetFname()));
}
}
@@ -46,12 +46,12 @@ SWIG_AsGet_Sequence_dec(std::string)(SwigSciObject _obj, char ***_pSequence) {
fragment="SWIG_SciString_AsCharPtrArrayAndSize") {
SWIGINTERN int
-SWIG_AsSize_Sequence_dec(std::string)(SwigSciObject _obj, int *_piSize) {
+SWIG_AsSize_Sequence_dec(std::string)(SwigSciObject obj, int *piSize) {
char **pstMatrix;
int iCols = 0;
int iRows = 0;
- if (SWIG_SciString_AsCharPtrArrayAndSize(pvApiCtx, _obj, &iRows, &iCols, &pstMatrix, SWIG_Scilab_GetFname()) == SWIG_OK) {
- *_piSize = iRows * iCols;
+ if (SWIG_SciString_AsCharPtrArrayAndSize(pvApiCtx, obj, &iRows, &iCols, &pstMatrix, SWIG_Scilab_GetFname()) == SWIG_OK) {
+ *piSize = iRows * iCols;
return SWIG_OK;
}
return SWIG_ERROR;
@@ -61,9 +61,9 @@ SWIG_AsSize_Sequence_dec(std::string)(SwigSciObject _obj, int *_piSize) {
%fragment(SWIG_FromCreate_Sequence_frag(std::string), "header") {
SWIGINTERN int
-SWIG_FromCreate_Sequence_dec(std::string)(int _size, char ***_sequence) {
- *_sequence = new char*[_size];
- return *_sequence != NULL ? SWIG_OK : SWIG_ERROR;
+SWIG_FromCreate_Sequence_dec(std::string)(int size, char ***pSequence) {
+ *pSequence = new char*[size];
+ return *pSequence != NULL ? SWIG_OK : SWIG_ERROR;
}
}
@@ -71,9 +71,9 @@ SWIG_FromCreate_Sequence_dec(std::string)(int _size, char ***_sequence) {
fragment="SWIG_SciString_FromCharPtrArrayAndSize") {
SWIGINTERN SwigSciObject
-SWIG_FromSet_Sequence_dec(std::string)(int _size, char **_sequence) {
- SwigSciObject obj = SWIG_SciString_FromCharPtrArrayAndSize(pvApiCtx, SWIG_Scilab_GetOutputPosition(), 1, _size, _sequence);
- delete (char **)_sequence;
+SWIG_FromSet_Sequence_dec(std::string)(int size, char **pSequence) {
+ SwigSciObject obj = SWIG_SciString_FromCharPtrArrayAndSize(pvApiCtx, SWIG_Scilab_GetOutputPosition(), 1, size, pSequence);
+ delete (char **)pSequence;
return obj;
}
}
@@ -81,18 +81,18 @@ SWIG_FromSet_Sequence_dec(std::string)(int _size, char **_sequence) {
%fragment(SWIG_AsVal_SequenceItem_frag(std::string), "header") {
SWIGINTERN std::string
-SWIG_AsVal_SequenceItem_dec(std::string)(SwigSciObject _obj, char **_pSequence, int _iItemIndex) {
- return std::string(_pSequence[_iItemIndex]);
+SWIG_AsVal_SequenceItem_dec(std::string)(SwigSciObject obj, char **pSequence, int iItemIndex) {
+ return std::string(pSequence[iItemIndex]);
}
}
%fragment(SWIG_From_SequenceItem_frag(std::string), "header") {
SWIGINTERN int
-SWIG_From_SequenceItem_dec(std::string)(char **_pSequence, int _iItemIndex, std::string _itemValue) {
- char *pChar = new char(_itemValue.size() + 1);
- strcpy(pChar, _itemValue.c_str());
- _pSequence[_iItemIndex] = pChar;
+SWIG_From_SequenceItem_dec(std::string)(char **pSequence, int iItemIndex, std::string itemValue) {
+ char *pChar = new char(itemValue.size() + 1);
+ strcpy(pChar, itemValue.c_str());
+ pSequence[iItemIndex] = pChar;
return SWIG_OK;
}
}
52 Lib/scilab/scishort.swg
View
@@ -8,14 +8,14 @@
}
%fragment("SWIG_SciDoubleOrInt16_AsShort", "header") {
SWIGINTERN int
-SWIG_SciDoubleOrInt16_AsShort(void *_pvApiCtx, int _iVar, short *_psValue, char *_fname) {
+SWIG_SciDoubleOrInt16_AsShort(void *_pvApiCtx, int iVar, short *psValue, char *_fname) {
SciErr sciErr;
int iType = 0;
int iRows = 0;
int iCols = 0;
int *piAddrVar = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -37,7 +37,7 @@ SWIG_SciDoubleOrInt16_AsShort(void *_pvApiCtx, int _iVar, short *_psValue, char
return SWIG_ERROR;
}
if (iPrec != SCI_INT16) {
- Scierror(999, _("%s: Wrong type for input argument #%d: A 16-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 16-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
sciErr = getMatrixOfInteger16(_pvApiCtx, piAddrVar, &iRows, &iCols, &psData);
@@ -46,10 +46,10 @@ SWIG_SciDoubleOrInt16_AsShort(void *_pvApiCtx, int _iVar, short *_psValue, char
return SWIG_ERROR;
}
if (iRows * iCols != 1) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A 16-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A 16-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
- *_psValue = *psData;
+ *psValue = *psData;
}
else if (iType == sci_matrix) {
double *pdData = NULL;
@@ -61,22 +61,22 @@ SWIG_SciDoubleOrInt16_AsShort(void *_pvApiCtx, int _iVar, short *_psValue, char
return SWIG_ERROR;
}
if (iRows * iCols != 1) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A 16-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A 16-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
dValue = *pdData;
if (dValue != floor(dValue)) {
- Scierror(999, _("%s: Incorrect value for input argument #%d: The double value cannot be converted to a 16-bit signed integer.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Incorrect value for input argument #%d: The double value cannot be converted to a 16-bit signed integer.\n"), _fname, iVar);
return SWIG_ValueError;
}
if ((dValue < SHRT_MIN) || (dValue > SHRT_MAX)) {
- Scierror(999, _("%s: Overflow error for input argument #%d: The double value cannot be converted to a 16-bit signed integer.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Overflow error for input argument #%d: The double value cannot be converted to a 16-bit signed integer.\n"), _fname, iVar);
return SWIG_OverflowError;
}
- *_psValue = (short) dValue;
+ *psValue = (short) dValue;
}
else {
- Scierror(999, _("%s: Wrong type for input argument #%d: A 16-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 16-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
@@ -89,9 +89,9 @@ SWIG_SciDoubleOrInt16_AsShort(void *_pvApiCtx, int _iVar, short *_psValue, char
}
%fragment("SWIG_SciDouble_FromShort", "header") {
SWIGINTERN int
-SWIG_SciDouble_FromShort(void *_pvApiCtx, int _iVarOut, short _sValue, char *_fname) {
+SWIG_SciDouble_FromShort(void *_pvApiCtx, int iVarOut, short sValue, char *_fname) {
if (createScalarDouble(_pvApiCtx,
- SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, (double) _sValue))
+ SWIG_NbInputArgument(_pvApiCtx) + iVarOut, (double) sValue))
return SWIG_ERROR;
return SWIG_OK;
}
@@ -103,13 +103,13 @@ SWIG_SciDouble_FromShort(void *_pvApiCtx, int _iVarOut, short _sValue, char *_fn
*/
%fragment("SWIG_SciDoubleOrInt16_AsShortArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciDoubleOrInt16_AsShortArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int *_iCols, short **_psValue, char *_fname) {
+SWIG_SciDoubleOrInt16_AsShortArrayAndSize(void *_pvApiCtx, int iVar, int *iRows, int *iCols, short **psValue, char *_fname) {
SciErr sciErr;
int iType = 0;
int iPrec = 0;
int *piAddrVar = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -127,17 +127,17 @@ SWIG_SciDoubleOrInt16_AsShortArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRow
int size = 0;
int i;
- sciErr = getMatrixOfDouble(_pvApiCtx, piAddrVar, _iRows, _iCols, &pdData);
+ sciErr = getMatrixOfDouble(_pvApiCtx, piAddrVar, iRows, iCols, &pdData);
if (sciErr.iErr)
{
printError(&sciErr, 0);
return SWIG_ERROR;
}
- size = (*_iRows) * (*_iCols);
- *_psValue = (short*) malloc(size * sizeof(int*));
+ size = (*iRows) * (*iCols);
+ *psValue = (short*) malloc(size * sizeof(int*));
for (i = 0; i < size; i++)
- (*_psValue)[i] = (short) pdData[i];
+ (*psValue)[i] = (short) pdData[i];
}
else if (iType == sci_ints)
{
@@ -149,11 +149,11 @@ SWIG_SciDoubleOrInt16_AsShortArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRow
return SWIG_ERROR;
}
if (iPrec != SCI_INT16) {
- Scierror(999, _("%s: Wrong type for input argument #%d: A 16-bit signed integer or a double matrix expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 16-bit signed integer or a double matrix expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
- sciErr = getMatrixOfInteger16(_pvApiCtx, piAddrVar, _iRows, _iCols, _psValue);
+ sciErr = getMatrixOfInteger16(_pvApiCtx, piAddrVar, iRows, iCols, psValue);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -161,7 +161,7 @@ SWIG_SciDoubleOrInt16_AsShortArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRow
}
else
{
- Scierror(999, _("%s: Wrong type for input argument #%d: A 16-bit signed integer or a double matrix expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 16-bit signed integer or a double matrix expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
@@ -170,16 +170,16 @@ SWIG_SciDoubleOrInt16_AsShortArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRow
}
%fragment("SWIG_SciDouble_FromShortArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciDouble_FromShortArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows, int _iCols, short *_psValue) {
+SWIG_SciDouble_FromShortArrayAndSize(void *_pvApiCtx, int iVarOut, int iRows, int iCols, short *psValue) {
SciErr sciErr;
int i;
double *pdValues = NULL;
- pdValues = (double*) malloc(_iRows * _iCols * sizeof(double));
- for (i=0; i<_iRows * _iCols; i++)
- pdValues[i] = _psValue[i];
+ pdValues = (double*) malloc(iRows * iCols * sizeof(double));
+ for (i=0; i<iRows * iCols; i++)
+ pdValues[i] = psValue[i];
- sciErr = createMatrixOfDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, _iRows, _iCols, pdValues);
+ sciErr = createMatrixOfDouble(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, iRows, iCols, pdValues);
if (sciErr.iErr) {
printError(&sciErr, 0);
free(pdValues);
54 Lib/scilab/scisignedchar.swg
View
@@ -7,7 +7,7 @@
}
%fragment("SWIG_SciDoubleOrInt8_AsShort", "header") {
SWIGINTERN int
-SWIG_SciDoubleOrInt8_AsShort(void *_pvApiCtx, int _iVar, signed char *_pscValue, char *_fname) {
+SWIG_SciDoubleOrInt8_AsShort(void *_pvApiCtx, int iVar, signed char *pscValue, char *_fname) {
SciErr sciErr;
int iType = 0;
int iRows = 0;
@@ -15,7 +15,7 @@ SWIG_SciDoubleOrInt8_AsShort(void *_pvApiCtx, int _iVar, signed char *_pscValue,
int iPrec = 0;
int *piAddrVar = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -36,7 +36,7 @@ SWIG_SciDoubleOrInt8_AsShort(void *_pvApiCtx, int _iVar, signed char *_pscValue,
return SWIG_ERROR;
}
if (iPrec != SCI_INT8) {
- Scierror(999, _("%s: Wrong type for input argument #%d: A 8-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 8-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
sciErr = getMatrixOfInteger8(_pvApiCtx, piAddrVar, &iRows, &iCols, &pcData);
@@ -45,10 +45,10 @@ SWIG_SciDoubleOrInt8_AsShort(void *_pvApiCtx, int _iVar, signed char *_pscValue,
return SWIG_ERROR;
}
if (iRows * iCols != 1) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A 8-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A 8-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
- *_pscValue = *pcData;
+ *pscValue = *pcData;
}
else if (iType == sci_matrix) {
double *pdData = NULL;
@@ -60,22 +60,22 @@ SWIG_SciDoubleOrInt8_AsShort(void *_pvApiCtx, int _iVar, signed char *_pscValue,
return SWIG_ERROR;
}
if (iRows * iCols != 1) {
- Scierror(999, _("%s: Wrong size for input argument #%d: A 8-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong size for input argument #%d: A 8-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
dValue = *pdData;
if (dValue != floor(dValue)) {
- Scierror(999, _("%s: Incorrect value for input argument #%d: The double value cannot be converted to a 8-bit signed integer.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Incorrect value for input argument #%d: The double value cannot be converted to a 8-bit signed integer.\n"), _fname, iVar);
return SWIG_ValueError;
}
if ((dValue < SCHAR_MIN) || (dValue > SCHAR_MAX)) {
- Scierror(999, _("%s: Overflow error for input argument #%d: The double value cannot be converted to a 8-bit signed integer.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Overflow error for input argument #%d: The double value cannot be converted to a 8-bit signed integer.\n"), _fname, iVar);
return SWIG_OverflowError;
}
- *_pscValue = (signed char) dValue;
+ *pscValue = (signed char) dValue;
}
else {
- Scierror(999, _("%s: Wrong type for input argument #%d: A 8-bit signed integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 8-bit signed integer or a double expected.\n"), _fname, iVar);
return SWIG_TypeError;
}
@@ -88,9 +88,9 @@ SWIG_SciDoubleOrInt8_AsShort(void *_pvApiCtx, int _iVar, signed char *_pscValue,
}
%fragment("SWIG_SciDouble_FromSignedChar", "header") {
SWIGINTERN int
-SWIG_SciDouble_FromSignedChar(void *_pvApiCtx, int _iVarOut, signed char _scValue) {
+SWIG_SciDouble_FromSignedChar(void *_pvApiCtx, int iVarOut, signed char scValue) {
if (createScalarDouble(_pvApiCtx,
- SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, (double) _scValue))
+ SWIG_NbInputArgument(_pvApiCtx) + iVarOut, (double) scValue))
return SWIG_ERROR;
return SWIG_OK;
}
@@ -102,12 +102,12 @@ SWIG_SciDouble_FromSignedChar(void *_pvApiCtx, int _iVarOut, signed char _scValu
*/
%fragment("SWIG_SciDoubleOrInt8_AsSignedCharArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciDoubleOrInt8_AsSignedCharArrayAndSize(void *_pvApiCtx, int _iVar, int *_iRows, int *_iCols, signed char **_pscValue, char *_fname) {
+SWIG_SciDoubleOrInt8_AsSignedCharArrayAndSize(void *_pvApiCtx, int iVar, int *iRows, int *iCols, signed char **pscValue, char *_fname) {
SciErr sciErr;
int iType = 0;
int *piAddrVar = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -125,17 +125,17 @@ SWIG_SciDoubleOrInt8_AsSignedCharArrayAndSize(void *_pvApiCtx, int _iVar, int *_
int size = 0;
int i;
- sciErr = getMatrixOfDouble(_pvApiCtx, piAddrVar, _iRows, _iCols, &pdData);
+ sciErr = getMatrixOfDouble(_pvApiCtx, piAddrVar, iRows, iCols, &pdData);
if (sciErr.iErr)
- {
+ {i
printError(&sciErr, 0);
return SWIG_ERROR;
}
- size = (*_iRows) * (*_iCols);
- *_pscValue = (signed char*) malloc(size * sizeof(int*));
+ size = (*iRows) * (*iCols);
+ *pscValue = (signed char*) malloc(size * sizeof(int*));
for (i = 0; i < size; i++)
- (*_pscValue)[i] = (signed char) pdData[i];
+ (*pscValue)[i] = (signed char) pdData[i];
}
else if (iType == sci_ints)
{
@@ -147,11 +147,11 @@ SWIG_SciDoubleOrInt8_AsSignedCharArrayAndSize(void *_pvApiCtx, int _iVar, int *_
return SWIG_ERROR;
}
if (iPrec != SCI_INT8) {
- Scierror(999, _("%s: Wrong type for input argument #%d: A 8-bit signed integer or a double matrix expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 8-bit signed integer or a double matrix expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
- sciErr = getMatrixOfInteger8(_pvApiCtx, piAddrVar, _iRows, _iCols, (char **)_pscValue);
+ sciErr = getMatrixOfInteger8(_pvApiCtx, piAddrVar, iRows, iCols, (char **)pscValue);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -159,7 +159,7 @@ SWIG_SciDoubleOrInt8_AsSignedCharArrayAndSize(void *_pvApiCtx, int _iVar, int *_
}
else
{
- Scierror(999, _("%s: Wrong type for input argument #%d: A 8-bit signed integer or a double matrix expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 8-bit signed integer or a double matrix expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
return SWIG_OK;
@@ -168,16 +168,16 @@ SWIG_SciDoubleOrInt8_AsSignedCharArrayAndSize(void *_pvApiCtx, int _iVar, int *_
%fragment("SWIG_SciDouble_FromSignedCharArrayAndSize", "header") {
SWIGINTERN int
-SWIG_SciDouble_FromSignedCharArrayAndSize(void *_pvApiCtx, int _iVarOut, int _iRows, int _iCols, const signed char *_pscValue) {
+SWIG_SciDouble_FromSignedCharArrayAndSize(void *_pvApiCtx, int iVarOut, int iRows, int iCols, const signed char *pscValue) {
SciErr sciErr;
int i;
double *pdValues = NULL;
- pdValues = (double*) malloc(_iRows * _iCols * sizeof(double));
- for (i=0; i<_iRows * _iCols; i++)
- pdValues[i] = _pscValue[i];
+ pdValues = (double*) malloc(iRows * iCols * sizeof(double));
+ for (i=0; i<iRows * iCols; i++)
+ pdValues[i] = pscValue[i];
- sciErr = createMatrixOfDouble(pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + _iVarOut, _iRows, _iCols, pdValues);
+ sciErr = createMatrixOfDouble(pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, iRows, iCols, pdValues);
if (sciErr.iErr) {
printError(&sciErr, 0);
free(pdValues);
56 Lib/scilab/sciunsignedchar.swg
View
@@ -7,7 +7,7 @@
}
%fragment("SWIG_SciUint8_AsUnsignedChar", "header") {
SWIGINTERN int
-SWIG_SciUint8_AsUnsignedChar(void *_pvApiCtx, int _iVar, unsigned char *_pucValue, char *_fname) {
+SWIG_SciUint8_AsUnsignedChar(void *_pvApiCtx, int iVar, unsigned char *pucValue, char *_fname) {
SciErr sciErr;
int iType = 0;
int iRows = 0;
@@ -16,7 +16,7 @@ SWIG_SciUint8_AsUnsignedChar(void *_pvApiCtx, int _iVar, unsigned char *_pucValu
int *piAddrVar = NULL;
unsigned char *pucData = NULL;
- sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar);
+ sciErr = getVarAddressFromPosition(_pvApiCtx, iVar, &piAddrVar);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -29,14 +29,14 @@ SWIG_SciUint8_AsUnsignedChar(void *_pvApiCtx, int _iVar, unsigned char *_pucValu
}
if (iType == sci_ints) {
- if (_pucValue) {
+ if (pucValue) {
sciErr = getMatrixOfIntegerPrecision(_pvApiCtx, piAddrVar, &iPrec);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
}
if (iPrec != SCI_UINT8) {
- Scierror(999, _("%s: Wrong type for input argument #%d: A 8-bit unsigned integer or a double expected.\n"), _fname, _iVar);
+ Scierror(999, _("%s: Wrong type for input argument #%d: A 8-bit unsigned integer or a double expected.\n"), _fname, iVar);
return SWIG_ERROR;
}
@@ -46,14 +46,14 @@ SWIG_SciUint8_AsUnsignedChar(void *_pvApiCtx, int _iVar, unsigned char *_pucValu
return SWIG_ERROR;
}