Permalink
Browse files

scilab: coding style remove "_" from parameter names

  • Loading branch information...
smarchetto committed Jul 21, 2014
1 parent 81879c0 commit f365f8e8201ce51c0abb9ab1c55b8a9989534a80
View
@@ -53,20 +53,20 @@ 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;
}
- if (isBooleanType(_pvApiCtx, piAddrVar)) {
+ 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;
@@ -87,7 +87,7 @@ SWIG_SciBoolean_AsBoolArrayAndSize(void *_pvApiCtx, int iVar, int *iRows, int *i
%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;
@@ -96,7 +96,7 @@ SWIG_SciBoolean_FromBoolArrayAndSize(void *_pvApiCtx, int iVarOut, int iRows, in
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,19 +114,19 @@ SWIG_SciBoolean_FromBoolArrayAndSize(void *_pvApiCtx, int iVarOut, int iRows, in
*/
%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;
}
- if (isBooleanType(_pvApiCtx, piAddrVar)) {
+ 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;
@@ -143,10 +143,10 @@ SWIG_SciBoolean_AsIntArrayAndSize(void *_pvApiCtx, int iVar, int *iRows, int *iC
%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;
View
@@ -12,7 +12,7 @@
}
%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;
@@ -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[1] = '\0';
- if (createSingleString(_pvApiCtx, SWIG_NbInputArgument(_pvApiCtx) + iVarOut, pchValue))
+ if (createSingleString(pvApiCtx, SWIG_NbInputArgument(pvApiCtx) + iVarOut, pchValue))
return SWIG_ERROR;
free(pchValue);
@@ -82,19 +82,19 @@ 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;
}
- iRet = getAllocatedSingleString(_pvApiCtx, piAddrVar, &pcTmpValue);
+ iRet = getAllocatedSingleString(pvApiCtx, piAddrVar, &pcTmpValue);
if (iRet) {
return SWIG_ERROR;
}
@@ -114,19 +114,19 @@ SWIG_SciString_AsCharPtr(void *_pvApiCtx, int iVar, char *pcValue, int iLength,
}
%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;
}
- iRet = getAllocatedSingleString(_pvApiCtx, piAddrVar, &pstStrings);
+ iRet = getAllocatedSingleString(pvApiCtx, piAddrVar, &pstStrings);
if (iRet) {
return SWIG_ERROR;
}
@@ -154,15 +154,15 @@ SWIG_SciString_AsCharPtrAndSize(void *_pvApiCtx, int iVar, char **pcValue, size_
}
%fragment("SWIG_SciString_FromCharPtr", "header") {
SWIGINTERN int
-SWIG_SciString_FromCharPtr(void *_pvApiCtx, int iVarOut, const char *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);
- 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,27 +187,27 @@ 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));
- 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;
@@ -219,7 +219,7 @@ SWIG_SciString_AsCharPtrArrayAndSize(void *_pvApiCtx, int iVar, int *iRows, int
(*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, int
%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,7 +256,7 @@ 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];
@@ -265,7 +265,7 @@ SWIG_CreateScilabVariable_dec(char)(void *_pvApiCtx, const char* psVariableName,
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;
- sciErr = createNamedMatrixOfString(_pvApiCtx, psVariableName, 1, 1, psStrings);
+ sciErr = createNamedMatrixOfString(pvApiCtx, psVariableName, 1, 1, psStrings);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
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)) {
+ if (!isDoubleType(pvApiCtx, piAddrVar) || isVarComplex(pvApiCtx, piAddrVar)) {
Scierror(999, _("%s: Wrong type for input argument #%d: A real expected.\n"), fname, iVar);
return SWIG_ERROR;
}
- if (!isScalar(_pvApiCtx, piAddrVar)) {
+ if (!isScalar(pvApiCtx, piAddrVar)) {
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,18 +54,18 @@ SWIG_SciDouble_FromDouble(void *_pvApiCtx, int iVarOut, double dblValue, char *f
%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);
+ if (isDoubleType(pvApiCtx, piAddrVar) && !isVarComplex(pvApiCtx, piAddrVar)) {
+ sciErr = getMatrixOfDouble(pvApiCtx, piAddrVar, iRows, iCols, pdValue);
if (sciErr.iErr) {
printError(&sciErr, 0);
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, i
%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;
View
@@ -8,9 +8,9 @@
}
%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;
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;
}
}
Oops, something went wrong.

0 comments on commit f365f8e

Please sign in to comment.