diff options
author | nutricato | 2009-06-16 15:36:03 +0000 |
---|---|---|
committer | nutricato | 2009-06-16 15:36:03 +0000 |
commit | 07ab664e098eb82948de08da55d5200d69ffe566 (patch) | |
tree | 866b08ef6218cf6db60e05fdb1df3c403b3c0197 /macros | |
parent | 9f080c28ca2fbb57b9d2227a51beec1fc990b26f (diff) | |
download | scilab2c-07ab664e098eb82948de08da55d5200d69ffe566.tar.gz scilab2c-07ab664e098eb82948de08da55d5200d69ffe566.tar.bz2 scilab2c-07ab664e098eb82948de08da55d5200d69ffe566.zip |
Diffstat (limited to 'macros')
-rw-r--r-- | macros/CCodeGeneration/C_GenDeclarations.sci | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/macros/CCodeGeneration/C_GenDeclarations.sci b/macros/CCodeGeneration/C_GenDeclarations.sci index d63fcf41..242bafd9 100644 --- a/macros/CCodeGeneration/C_GenDeclarations.sci +++ b/macros/CCodeGeneration/C_GenDeclarations.sci @@ -44,11 +44,12 @@ if (ArgStruct.Dimension > 0) // if ((ArgStruct.Scope=='Temp') | (ArgStruct.FindLike == -1) | (SCI2Cisnum(ArgStruct.Size(1))==%F) | (SCI2Cisnum(ArgStruct.Size(2))==%F)) // #RNU_RES_E if (ArgStruct.Type=='g') - if (isnan(ArgStruct.Value)) + // if (isnan(ArgStruct.Value) ) + if ((SCI2Cisnum(ArgStruct.Size(1))==%F) | (SCI2Cisnum(ArgStruct.Size(2))==%F) ) Cdeclaration(1) = Cdeclaration(1)+C_Type(ArgStruct.Type)+... ' * '+ArgStruct.Name+';'; else - if (FlagExt == 1) + if ((FlagExt == 1) | (isnan(ArgStruct.Value))) Cdeclaration(1) = Cdeclaration(1)+C_Type(ArgStruct.Type)+... ' '+ArgStruct.Name+'['+ArgStruct.Size(1)+'*'+ArgStruct.Size(2)+'];'; else |