summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjofret2010-07-26 07:41:53 +0000
committerjofret2010-07-26 07:41:53 +0000
commit3c8c6dfb7e6cc5c9caace05da4fe048df00fa0c1 (patch)
treeec697d5c85b79f88bef95f8270098d5efdde30a0
parentc116469164bf1939674b05fde84fcef625cb0c85 (diff)
downloadscilab2c-3c8c6dfb7e6cc5c9caace05da4fe048df00fa0c1.tar.gz
scilab2c-3c8c6dfb7e6cc5c9caace05da4fe048df00fa0c1.tar.bz2
scilab2c-3c8c6dfb7e6cc5c9caace05da4fe048df00fa0c1.zip
Move SCI2CInt -> int
-rw-r--r--macros/CCodeGeneration/C_Funcall.sci10
1 files changed, 5 insertions, 5 deletions
diff --git a/macros/CCodeGeneration/C_Funcall.sci b/macros/CCodeGeneration/C_Funcall.sci
index 65aad5e2..339c8451 100644
--- a/macros/CCodeGeneration/C_Funcall.sci
+++ b/macros/CCodeGeneration/C_Funcall.sci
@@ -178,7 +178,7 @@ if (FunInfo.CFunctionName == SharedInfo.CMainFunName)
if (FlagCall == 1)
error(9999, 'main function called in a source code!');
else
- CCall =CCall+'SCI2Cint ';
+ CCall =CCall+'int ';
end
else
if (PosFirstOutScalar >= 1)
@@ -227,7 +227,7 @@ for counterin = 1:NInArg
CCall = CCall+TmpInArgName+',';
else
if (FlagCall == 0)
- CCall = CCall+TmpInArgType+'* '+TmpInArgName+', SCI2Cint* __'+TmpInArgName+'Size,';
+ CCall = CCall+TmpInArgType+'* '+TmpInArgName+', int* __'+TmpInArgName+'Size,';
else
CCall = CCall+TmpInArgName+', '+TmpInArgSizeVar+',';
end
@@ -267,13 +267,13 @@ for counterout = 1:NOutArg
if (FlagCall == 0)
CCall = CCall+TmpOutArgType+'* '+TmpOutArgName+',';
if (OutArg(counterout).FindLike == 1)
- CCall = CCall+'SCI2Cint* __'+TmpOutArgName+'Size'+',';
+ CCall = CCall+'int* __'+TmpOutArgName+'Size'+',';
end
// #RNU_RES_B
//NUT prova a sostituire le variabili strutture con variabili dichiarate all'inizio del codice.
// --- Declare the size of the output arguments. ---
// #RNU_RES_E
- outscalardeclaration = 'SCI2Cint __'+TmpOutArgName+'Size[2];';
+ outscalardeclaration = 'int __'+TmpOutArgName+'Size[2];';
PrintStringInfo(outscalardeclaration,ReportFileName,'file','y');
PrintStringInfo(C_IndentBlanks(1)+outscalardeclaration,CDeclarationFileName,'file','y');
outscalardeclaration = '__'+TmpOutArgName+'Size[0] = '+(OutArg(counterout).Size(1))+';';
@@ -286,7 +286,7 @@ for counterout = 1:NOutArg
else
CCall = CCall+OutArg(counterout).Name+',';
if (OutArg(counterout).FindLike == 1)
- CCall = CCall+'(SCI2Cint* ) __'+TmpOutArgName+'Size'+',';
+ CCall = CCall+'(int* ) __'+TmpOutArgName+'Size'+',';
end
end
end