diff options
author | simon | 2009-08-17 09:35:00 +0000 |
---|---|---|
committer | simon | 2009-08-17 09:35:00 +0000 |
commit | 839d659e6b1c25be20bd556aba6386eaceb1245f (patch) | |
tree | db14979c751b0fb88cb194bb78756dcf1347fc98 /macros/FunctionAnnotation/FA_REAL.sci | |
parent | c413c4e2a17838912c95bedc34fdf258390f13b2 (diff) | |
download | scilab2c-839d659e6b1c25be20bd556aba6386eaceb1245f.tar.gz scilab2c-839d659e6b1c25be20bd556aba6386eaceb1245f.tar.bz2 scilab2c-839d659e6b1c25be20bd556aba6386eaceb1245f.zip |
Updated FA_REAL to handle the case where there is a %i which has not been handled by other functions ( as in OpColon)
added test for OpColon
updated INIT_FillSCI2LibCDirs
Diffstat (limited to 'macros/FunctionAnnotation/FA_REAL.sci')
-rw-r--r-- | macros/FunctionAnnotation/FA_REAL.sci | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/macros/FunctionAnnotation/FA_REAL.sci b/macros/FunctionAnnotation/FA_REAL.sci index 2b030f7e..e55583d7 100644 --- a/macros/FunctionAnnotation/FA_REAL.sci +++ b/macros/FunctionAnnotation/FA_REAL.sci @@ -40,7 +40,11 @@ if (SCI2Cisnum(in1)) else
opout = string(outnum);
end
-else
- opout = in2+"0real"+FA_TP_REAL(in2)+"0"+"("+in1+")";
+else + if (in1 == "%i") + opout = " 0 "; + else
+ opout = in2+"0real"+FA_TP_REAL(in2)+"0"+"("+in1+")"; + end
end
endfunction
|