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 | |
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')
-rw-r--r-- | macros/FunctionAnnotation/FA_SZ_SEL1.sci | 12 | ||||
-rw-r--r-- | macros/FunctionAnnotation/FA_SZ_SEL2.sci | 4 |
2 files changed, 10 insertions, 6 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');
diff --git a/macros/FunctionAnnotation/FA_SZ_SEL2.sci b/macros/FunctionAnnotation/FA_SZ_SEL2.sci index ebf74282..69b38fd1 100644 --- a/macros/FunctionAnnotation/FA_SZ_SEL2.sci +++ b/macros/FunctionAnnotation/FA_SZ_SEL2.sci @@ -29,9 +29,9 @@ SCI2CNInArgCheck(argn(2),2,2); ReportFileName = '';
in2 = string(in2);
-if (in2 == '1')
+if (in2 == '1'| in2 == '""rr""')
opout = in1;
-elseif (in2 == '2')
+elseif (in2 == '2'| in2 == '""c""')
opout = '1';
else
PrintStringInfo(' ',ReportFileName,'both','y');
|