diff options
author | simon | 2009-08-24 12:04:57 +0000 |
---|---|---|
committer | simon | 2009-08-24 12:04:57 +0000 |
commit | 15947320f16146ccaadabf1d526f30b28b376629 (patch) | |
tree | 61bd342f86e690bf8d5336722fa12dc4db31612e /macros/FunctionAnnotation/FA_SZ_SEL1.sci | |
parent | 28935c0b0b25da99e379200c1e258a520c42dd86 (diff) | |
download | scilab2c-15947320f16146ccaadabf1d526f30b28b376629.tar.gz scilab2c-15947320f16146ccaadabf1d526f30b28b376629.tar.bz2 scilab2c-15947320f16146ccaadabf1d526f30b28b376629.zip |
updated FA_SZ_SEL* to make them able to handle "r" and "c" arguments
Diffstat (limited to 'macros/FunctionAnnotation/FA_SZ_SEL1.sci')
-rw-r--r-- | macros/FunctionAnnotation/FA_SZ_SEL1.sci | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/macros/FunctionAnnotation/FA_SZ_SEL1.sci b/macros/FunctionAnnotation/FA_SZ_SEL1.sci index 4f52c536..ccafe2d9 100644 --- a/macros/FunctionAnnotation/FA_SZ_SEL1.sci +++ b/macros/FunctionAnnotation/FA_SZ_SEL1.sci @@ -24,15 +24,19 @@ function opout = FA_SZ_SEL1(in1,in2) // ------------------------------
// --- Check input arguments. ---
-// ------------------------------
+// ------------------------------ + +
SCI2CNInArgCheck(argn(2),2,2);
ReportFileName = '';
in2 = string(in2);
-if (in2 == '1')
+if (in2 == '1' | in2 == '""rr""' ) // Where can r become rr ???
opout = '1';
-elseif (in2 == '2')
- opout = in1;
+elseif (in2 == '2' | in2 == '""c""' )
+ opout = in1; + +
else
PrintStringInfo(' ',ReportFileName,'both','y');
PrintStringInfo('SCI2CERROR: Cannot associate the second input argument to a known specifier.',ReportFileName,'both','y');
|