5 years agoAll unit_tests now pass for ATOMS: 00/16600/1
Vincent COUVERT [Fri, 5 Jun 2015 13:27:47 +0000]
All unit_tests now pass for ATOMS:
 * New scenes created for Scilab 6 (to be updated for others OS than Linux64)
 * New test toolboxes available on http://atoms.scilab.org/
 * Toolbox 7 updated in GIT
 * Sources of testing toolboxes available on http://forge.scilab.org/index.php/p/atoms-tests/

Change-Id: Ie2a1297f69636c98be00802b1057fec9f56ffa05

5 years agoUpdate ref for Scilab 6 91/16591/2
Vincent COUVERT [Thu, 4 Jun 2015 15:07:20 +0000]
Update ref for Scilab 6

Change-Id: Ic25bcb3b0207e63b0463475df6a145864be787b5

5 years agoTests updated after new dedicated scene created: 90/16590/2
Vincent COUVERT [Thu, 4 Jun 2015 15:03:19 +0000]
Tests updated after new dedicated scene created:
test_run atoms atomsAutoloadAdd
test_run atoms atomsAutoloadDel
test_run atoms atomsRemoveList
test_run atoms atomsShow

Change-Id: I4bda3e414a3cbbc85c88c950d3eedd29ddb08500

5 years agoincrease user_data reference on gdf copy 89/16589/1
Antoine ELIAS [Thu, 4 Jun 2015 12:00:32 +0000]
increase user_data reference on gdf copy

Change-Id: Id2ec16ab46121697543c9b2f18c15d004fd1459a

5 years agofix save/load calls in graphic tests: 54/16554/3
Anais AUBERT [Mon, 1 Jun 2015 12:39:59 +0000]
fix save/load calls in graphic tests:
test_run("graphics","figure.resizefcn")
test_run("graphics","figure.closerequestfcn")

Change-Id: I469542d3e6b8d54bd8810944eae92fd2fe6796e9

5 years agofix ast message when insert in handle 31/16531/5
Anais AUBERT [Fri, 29 May 2015 16:01:18 +0000]
fix ast message when insert in handle
Tests:
test_run("graphics","light")
test_run("graphics","bug_8196")

Change-Id: Ieec70092386225be565decfeacce6102b3730539

5 years agofix exit 66/16566/5
Anais AUBERT [Mon, 1 Jun 2015 15:13:25 +0000]
fix exit

Change-Id: Ifb165a422fd15c1ed5eeb0a3a9f53c6d75729b68

5 years agoMerge remote-tracking branch 'origin/master' into YaSp 72/16572/1
Vincent COUVERT [Tue, 2 Jun 2015 08:33:59 +0000]
Merge remote-tracking branch 'origin/master' into YaSp

Conflicts:
scilab/modules/fftw/src/c/fftw_utilities.c
scilab/modules/overloading/macros/%hm_prod.sci
scilab/modules/overloading/macros/%hm_sum.sci

Change-Id: I82b54e5c917e07e8637b561ddec9949fd0bcb038

5 years agoMerge remote-tracking branch 'origin/5.5' 71/16571/1
Vincent COUVERT [Tue, 2 Jun 2015 07:58:06 +0000]
Merge remote-tracking branch 'origin/5.5'

Change-Id: I229c7b1c948afb34dd944f0380c2dc25bd72c67b

5 years agocheckstyle - removing RedundantThrows 70/16570/1
Marcos CARDINOT [Mon, 25 May 2015 18:12:11 +0000]
checkstyle - removing RedundantThrows

Removed on the release 6.2
http://checkstyle.sourceforge.net/releasenotes.html#Release_6.2

Change-Id: I2e8f009da14146c7f5ed101606a69bcb15a0c374
(cherry picked from commit 713adeae49eb5a95c83877c32e3a5264d9a65f2e)

5 years agocheckstyle - removing DoubleCheckedLocking 69/16569/1
Marcos CARDINOT [Mon, 25 May 2015 18:10:01 +0000]
checkstyle - removing DoubleCheckedLocking

Removed on the release 5.6
http://checkstyle.sourceforge.net/releasenotes.html#Release_5.6

Change-Id: I3ce1c86ea417e644410a477ae2ba050c5011ed63
(cherry picked from commit 700de8be8a0339c94f9fca767fda17e08e63f4a9)

5 years agofix windows compilation 68/16568/1
Antoine ELIAS [Tue, 2 Jun 2015 07:52:25 +0000]
fix windows compilation

Change-Id: I1d88dbdcb7db388d15220a78faeb712775a8d989

5 years agoAdd specific tests realated to duplicate bug #10059 67/16567/1
Vincent COUVERT [Tue, 2 Jun 2015 07:50:06 +0000]
Add specific tests realated to duplicate bug #10059

Change-Id: I77a1fd67ce12586358608be0a13d67d4fc0012fb

5 years agoAnalysis: always a WIP but we would expect that the end is nearer than the begin 62/16562/3
Calixte DENIZET [Mon, 1 Jun 2015 14:14:04 +0000]
Analysis: always a WIP but we would expect that the end is nearer than the begin

Change-Id: I8d7a2ee6937950aa6d07caf51fb1677834bd8595

5 years ago* Bug #12202 fixed - Mixing int8 and doubles with colon operator lead to wrong results. 65/16565/1
Vincent COUVERT [Mon, 1 Jun 2015 15:05:33 +0000]
* Bug #12202 fixed - Mixing int8 and doubles with colon operator lead to wrong results.

Change-Id: I8f88f474f4b1d6299122ed3c95785b441ca1fd17

5 years agoAdd non-regression test for bug #10279. 64/16564/1
Vincent COUVERT [Mon, 1 Jun 2015 14:29:50 +0000]
Add non-regression test for bug #10279.
No item added to CHANGES since never released.

Change-Id: I96748e6cccc06ea583b39c1338174056aa40a62c

5 years agoAdd non-regression test for bug #10056. 63/16563/1
Vincent COUVERT [Mon, 1 Jun 2015 14:18:11 +0000]
Add non-regression test for bug #10056.
No item added to CHANGES since never released.

Change-Id: Ibd550b78065e63737e8cd8cbe390800034afabcd

5 years agoAdd new assert check 61/16561/1
Vincent COUVERT [Mon, 1 Jun 2015 14:12:26 +0000]
Add new assert check

Change-Id: Ia5229c2d94518a4927644a0a0ea63b0aba55c5da

5 years agoAdd non-regression test for bug #9669. 60/16560/1
Vincent COUVERT [Mon, 1 Jun 2015 14:09:52 +0000]
Add non-regression test for bug #9669.
No item added to CHANGES since never released.

Change-Id: I8427b8386e748e82f5a135b093717866d889c860

5 years agoAdd non-regression test for bug #9218. 59/16559/1
Vincent COUVERT [Mon, 1 Jun 2015 14:03:44 +0000]
Add non-regression test for bug #9218.
No item added to CHANGES since never released.

Change-Id: I4061f956be42863c4f3a2020f1ef2a21c4fe73a9

5 years agofix bug 3287 ref 57/16557/2
Anais AUBERT [Mon, 1 Jun 2015 13:20:15 +0000]
fix bug 3287 ref

Change-Id: I646ea8a0846ff586844b7155073130eccff00a6e

5 years agoAdd non-regression test for bug #9600. 58/16558/3
Vincent COUVERT [Mon, 1 Jun 2015 13:32:37 +0000]
Add non-regression test for bug #9600.
No item added to CHANGES since never released.

Change-Id: I1cb2c358755a9178a2286783734c36dd480cf80e

5 years agoAdd Scilab 6 generated files to .gitignore 56/16556/1
Vincent COUVERT [Mon, 1 Jun 2015 13:09:57 +0000]
Add Scilab 6 generated files to .gitignore

Change-Id: I4a51c47db501b00c98645f7dea919cdeff919546

5 years ago* Bug #13517 fixed - isdef crashed Scilab when called with a vector of strings 55/16555/1
Vincent COUVERT [Mon, 1 Jun 2015 12:46:35 +0000]
* Bug #13517 fixed - isdef crashed Scilab when called with a vector of strings
                     as input in a function and after a declaration of variable.
Fixed a long time ago, this commit only adds a non-regression test.

Change-Id: Ic1c6ef53a8c0f71f198c5577302a9cc26de09d4b

5 years agoFix example (See bug #13517) 50/16550/1
Vincent COUVERT [Mon, 1 Jun 2015 12:30:07 +0000]
Fix example (See bug #13517)

Change-Id: I84b84260ac269478f87a90f408840c77fc2e5331
(cherry picked from commit 1745f01479ad93684fd15d8005b444d998767ade)

5 years agoFix example (See bug #13517) 49/16549/1
Vincent COUVERT [Mon, 1 Jun 2015 12:30:07 +0000]
Fix example (See bug #13517)

Change-Id: I84b84260ac269478f87a90f408840c77fc2e5331

5 years agoFix Windows toolbox compilation 27/16527/3
Vincent COUVERT [Fri, 29 May 2015 07:42:20 +0000]
Fix Windows toolbox compilation

This reverts commit 55082a682eab6172472d243c5d03c9aad161cfcd.

Change-Id: I707596aafbd89645412d8b07874a2ea036ef7060

5 years agoScicos gateways: rewrite sci_diffobjs to C++ 30/16530/2
Paul Bignier [Fri, 29 May 2015 11:48:04 +0000]
Scicos gateways: rewrite sci_diffobjs to C++

 * Tested by "scicos_blocks/tests/unit_tests/STEP_FUNCTION.tst", which crashed Scilab

Change-Id: I14bcfdeef47769d2688c05fc60bd87aa93a5bd5f

5 years agostruct clone fixed. 29/16529/2
Cedric Delamarre [Fri, 29 May 2015 09:10:48 +0000]
struct clone fixed.

* A struct cloned must have all SingleStruct reference set to 1
  because we cant increase reference of SingleStruct when we do it
  on a Struct.

z.y = 42;
y.o = z;

// here z is cloned, after extraction of z(1), two Struct
// contain the same SingleStruct with ref = 1 because of extraction without copy.
// When the temporary Struct "z(1)" is deleted, the SingleStruct is deleted too.
z(1).x=12;

Change-Id: I3b90752cdae7cdfe172bed30d8ad67959dc787f6

5 years agoXcos MVC: give default values to scs_m.props.options tlist for backward compatibility 95/16495/3
Paul Bignier [Wed, 20 May 2015 11:29:56 +0000]
Xcos MVC: give default values to scs_m.props.options tlist for backward compatibility

 * Now the scicos tests that displayed a "Wrong diagram version" popup pass
 * Regenerated all the tests that had minor differences

Change-Id: I0044c64692397bc648f17a650307b3355ea99f1d

5 years agoRevert "Fix Windows toolbox compilation" 26/16526/1
Vincent COUVERT [Fri, 29 May 2015 07:41:24 +0000]
Revert "Fix Windows toolbox compilation"
Breaks dynamic_link under Linux: requires -std=c++11
Breaks dynamic_link under Windows: missing includes (SCI\modules\ast\includes\analysis\gvn\*.*) in binary version.

This reverts commit 7ada81d1ab54967b8208bb1933e519c1089087f4.

Change-Id: Iad4692c0654566d1c324eb18b14a27196e663b2d

5 years ago* Bug #13866 fixed - There were some issues with FFTW3 library. 25/16525/1
Vincent COUVERT [Thu, 28 May 2015 14:48:09 +0000]
* Bug #13866 fixed - There were some issues with FFTW3 library.
This bug was already fixed in YaSp branch: https://codereview.scilab.org/#/c/16244/
For more information, see: http://www.fftw.org/doc/New_002darray-Execute-Functions.html#New_002darray-Execute-Functions

Change-Id: Ia93a5cdf179ca1648f2db319f6d5db25673532a6

5 years ago* Bug #13881 fixed - datatipRemoveAll did not work. 24/16524/1
Samuel GOUGEON [Thu, 28 May 2015 13:30:58 +0000]
* Bug #13881 fixed - datatipRemoveAll did not work.

Change-Id: Idc29b1342ce9f5d8d9ba763f3277ddeab41c6ea6

5 years agoFix Windows toolbox compilation 17/16517/2
Vincent COUVERT [Wed, 27 May 2015 14:53:00 +0000]
Fix Windows toolbox compilation

Change-Id: If0785b256d01fc46f9240d20f289e3905d1ac97e

5 years agomemory leak fixed in library management. 22/16522/3
Cedric Delamarre [Thu, 28 May 2015 12:19:58 +0000]
memory leak fixed in library management.

cd TMPDIR;
mputl(["function ret = lib_test";"  ret= ""lib1""";"endfunction"], "lib_test.sci");
genlib("lib1lib",TMPDIR,%f,%t);

Change-Id: I2dc68bb459d33e4f4246bc59e93d8d8583412b1d

5 years agoAST: fix UserType display after https://codereview.scilab.org/#/c/16500/ 23/16523/1
Paul Bignier [Thu, 28 May 2015 11:58:10 +0000]
AST: fix UserType display after https://codereview.scilab.org/#/c/16500/

 * -->loadXcosLibs(); scicos_diagram() could not display (or any other Scicos object)

Change-Id: I02035fffe755d31ea59a79bf828542d7183dc6d0

5 years agoXcos demos: add a Modelica demo to simulate a second order rotational system 21/16521/1
Ahmed Sami AlBassiouni [Thu, 28 May 2015 08:48:58 +0000]
Xcos demos: add a Modelica demo to simulate a second order rotational system

 * Example from http://book.xogeny.com/behavior/equations/mechanical/

Change-Id: I757b8e17a1bf7a698b2d38209c6dd26b5e3074a0

5 years agoRevert "Configure: disable Ubuntu/Debian specific flags" 19/16519/2
Vincent COUVERT [Thu, 28 May 2015 09:02:44 +0000]
Revert "Configure: disable Ubuntu/Debian specific flags"
Breaks GUI/graphics under Ubuntu 15.04:
figure()
  !--error 999
Scilab 'GUI' module not installed.

This reverts commit 01b41203f2879039653c1bc6119b6704ddf0abf1.

Change-Id: I28636a8662f46d23535a404f615d39ffa532e531

5 years ago* fileinfo can now take a row vector as input. 16/16516/1
Vincent COUVERT [Wed, 27 May 2015 13:27:16 +0000]
* fileinfo can now take a row vector as input.

Change-Id: Ice354cbef05e11f4ddb8bfbc8ad8826f7734dd9c

5 years agomemory leak fixed in insertion. 06/16506/3
Cedric Delamarre [Tue, 26 May 2015 08:29:01 +0000]
memory leak fixed in insertion.

a=12;
b=12;
// extraction od b(1,1) was never deleted
a(1,1) = b(1,1);

// argument colon was never deleted
a(:) = b;

Change-Id: I29144af5cda06ce9c4f5c317405c787412a0d53c

5 years agoWindows command.temp EACCES error. 09/16509/2
Cedric Delamarre [Tue, 26 May 2015 13:47:37 +0000]
Windows command.temp EACCES error.

host start
1+1 // scilab crash because of NULL FILE* return by fopen

host start // then close window
1+1 // work

The process was created as inherit process of Scilab, so TMPDIR was locked by this process.

Change-Id: Iae0923e227c769f114d06b72ad03137fc5ddacde

5 years agoAdapt test to Scilab 6: 11/16511/1
Vincent COUVERT [Tue, 26 May 2015 14:08:45 +0000]
Adapt test to Scilab 6:
 - include renamed
 - function returning nothing called with one output argument.
To test: test_run console bug_13226

Change-Id: I34b33fde5f59d6ddf4295615d7e398a60a0c291f

5 years agoFix quotes in .dia.ref 10/16510/1
Vincent COUVERT [Tue, 26 May 2015 14:02:57 +0000]
Fix quotes in .dia.ref

Change-Id: I3623d86e293cb3fb80e1ce5c12539879ce612ccb

5 years agoXcos MVC: remove the "Deleted" adapter 49/16349/3
Clément DAVID [Tue, 7 Apr 2015 13:10:25 +0000]
Xcos MVC: remove the "Deleted" adapter

An mlist("Deleted") datatype is suficient and more natural to use for
temporary deleted objects.

Change-Id: I64d92a8f4a7b55e38db153a9be12762262ea771d

5 years agovar calls like "a;" does not create local variable definition in scope 1 ( console ) 53/16453/2
Antoine ELIAS [Wed, 6 May 2015 14:20:10 +0000]
var calls like "a;" does not create local variable definition in scope 1 ( console )

-->%pi; // %pi level stay 0

function test()
    %pi; //create a local definition of %pi like %pi=%pi;
endfunction

Change-Id: I19a35cd59c0cf026f9b95dadae6434df0ae4f0e5

5 years agoFix quotes in .dia.ref 08/16508/1
Vincent COUVERT [Tue, 26 May 2015 13:01:18 +0000]
Fix quotes in .dia.ref

Change-Id: Ifba011a4819d8c172476fb38e088eb38f9948674

5 years agofix bug 3036 : stacksize no more in yasp 95/16395/2
Anais AUBERT [Wed, 22 Apr 2015 09:04:59 +0000]
fix bug 3036 : stacksize no more in yasp

test_run("graphics","bug_3036",["no_check_error_output" ]);

Change-Id: Ie5ecfea5708423b310a43fad944af08cbd387e7f

5 years agofileinfo transposes intput matrix if it's not a column vector 59/16459/2
Anais AUBERT [Thu, 7 May 2015 09:34:50 +0000]
fileinfo transposes intput matrix if it's not a column vector

cd(TMPDIR);
name = 'gw_example1';
table = ['sci_func1', 'func1'];
WITHOUT_AUTO_PUTLHSVAR = %t;
n1 = ilib_gen_gateway(name,table);
r1 = fileinfo(n1)

Change-Id: I8a03a4584f12fa9be3253cfcbc346956e2668fd0

5 years agodelete test on save of variable in the lib 07/16507/2
Sylvain GENIN [Tue, 26 May 2015 08:56:14 +0000]
delete test on save of variable in the lib

Change-Id: I74a93cc69bc68c979304cb441445ab12d35553b6

5 years ago* Bug #13854 fixed - SciNotes did not initialize a new document at startup. 66/16466/3
Clément DAVID [Mon, 11 May 2015 08:20:43 +0000]
* Bug #13854 fixed - SciNotes did not initialize a new document at startup.

This commit introduce ScilabXPathFactory that enforce the use of the
OpenJDK provided XPathFactory. This ensure that loading saxon.jar or any
other XPathFactory provider did not interact poorly with Scilab usage.

Change-Id: Iffc5d7e79bd1dd1dc448c13f7536e04201d7b3d6

5 years agoWIP jcompile did not report javac errors correctly 47/16447/4
Clément DAVID [Wed, 6 May 2015 06:29:04 +0000]
WIP jcompile did not report javac errors correctly

Change-Id: I6ecb88939a786bb59c4615b5c3e4c0425a4e2160

5 years agoConfigure: disable Ubuntu/Debian specific flags 02/16502/2
Clément DAVID [Wed, 20 May 2015 08:14:09 +0000]
Configure: disable Ubuntu/Debian specific flags

These flags were used to avoid dependency on a recent glibc and thus
allow the binary release to run on older systems than the compilation
chain.

As the compilation chain now use the older system where a Scilab runs
such quirks are no more needed. Let distribution packagers perform their
own choices !

Change-Id: I15683378286ec2439483aafb838ca8c7996ea6cf

5 years agofix precedence of uminus in operation 04/16504/2
Pierre-Aime Agnel [Thu, 21 May 2015 09:18:34 +0000]
fix precedence of uminus in operation

M = matrix(1:4, 2, 2); B = [2; 4];
C = M^-1*B;
assert_checkequal(C, [2;0]);

Change-Id: Ia970740cf7c19d0605062a324175bd5df5055347

5 years agoXcos: do not create #identifier#identifier mxCell 03/16503/2
Clément DAVID [Wed, 20 May 2015 16:18:11 +0000]
Xcos: do not create #identifier#identifier mxCell

When selecting multiple element on a diagram, it was possible to create
invalid identifier cells. This commit also include a cleanup at load
time to remove these invalid cells.

This commit fix the otrs#13058 bug.

Change-Id: I40b245f8df1138f84dd2e2273d3042581b417bbc

5 years agoFix get for colors property: 01/16501/3
Vincent COUVERT [Wed, 20 May 2015 15:15:53 +0000]
Fix get for colors property:
plot2d(1:10,1:10);
e=gce();
e.children

Change-Id: I6b2704035f374e895a1697f6f5a8bccdc5d94647

5 years agoif the variable does not exist then an error message to indicate this 05/16505/2
Sylvain GENIN [Mon, 25 May 2015 13:51:46 +0000]
if the variable does not exist then an error message to indicate this

test_run("io","bug_11997",["no_check_error_output" ]);

Change-Id: I8e434ebe943dab0ee7781f0ebde56a9d8f60d047

5 years ago%_sodload can recover the struct and cell data 76/16376/3
Sylvain GENIN [Wed, 15 Apr 2015 15:29:51 +0000]
%_sodload can recover the struct and cell data

Change-Id: I1203508b82fd8fb8a64693eafee6d582d692c35d

5 years ago%_save can recover the struct and cell data 75/16375/3
Sylvain GENIN [Wed, 15 Apr 2015 15:11:23 +0000]
%_save can recover the struct and cell data

Change-Id: I7fe8491dc7e3a7898733342a160b2b86ff8fd226

5 years agoLexer: slightly improve double conversion 98/15098/2
Calixte DENIZET [Mon, 25 Aug 2014 15:06:00 +0000]
Lexer: slightly improve double conversion

Change-Id: I3698a9df25d50a99ef29a3aba3b6ec93f8b4cdf5

5 years agoLexer: slightly improve strings & comments lexing 00/15100/2
Calixte DENIZET [Tue, 26 Aug 2014 09:46:34 +0000]
Lexer: slightly improve strings & comments lexing

Change-Id: Ie9402e291fac2eba545c4b011923b843d54b0a64

5 years agodon't see a UserType as a GenericType. 00/16500/1
Cedric Delamarre [Wed, 20 May 2015 14:58:22 +0000]
don't see a UserType as a GenericType.

Change-Id: I9e29bfcad377041e6713504329e4166568b42397

5 years agoXcos demos: cosmetic changes for Heat conduction demo 99/16499/1
Paul Bignier [Wed, 20 May 2015 14:50:20 +0000]
Xcos demos: cosmetic changes for Heat conduction demo

 * Slightly improved the diagram layout and clarified the content of the Modelica block

Change-Id: I4c334a8ef09946fde6073c960f8af47328b82263

5 years agofix putInPreviousScope on libraries 98/16498/1
Antoine ELIAS [Wed, 20 May 2015 13:52:39 +0000]
fix putInPreviousScope on libraries

Change-Id: I986c737e90b212c3912314ecadc23972f630cdf5

5 years agoInstallation 94/16494/1
Vincent COUVERT [Wed, 20 May 2015 09:55:47 +0000]
Installation
============

* Under Windows, MKL packages are now included in Scilab installer and no more
  downloaded while installing Scilab.

See https://codereview.scilab.org/16436

Change-Id: Iad7b0682382ec2516866b9819eaa8f5438fa663d

5 years agoinstall: deploy MKL libraries from Scilab setup package (no download) 36/16436/5
Simon Marchetto [Tue, 12 May 2015 15:30:06 +0000]
install: deploy MKL libraries from Scilab setup package (no download)

Change-Id: I5276a69e9107b8fa2014b34fd1402bbecc2a741f

5 years agouse shortcut visitor in whileexp condition evaluation 93/16493/4
Antoine ELIAS [Wed, 20 May 2015 08:30:15 +0000]
use shortcut visitor in whileexp condition evaluation

Change-Id: I384038dcc77ff55307199740ce6bf15af9fd6c2b

5 years agoXcos demos: add a Modelica demo to simulate heat conduction in a rod 91/16491/2
Ahmed Sami AlBassiouni [Wed, 20 May 2015 06:58:46 +0000]
Xcos demos: add a Modelica demo to simulate heat conduction in a rod

Change-Id: Ia7157e1ae9e3c8e9cd7ef7402a4f70dda1f42a9a

5 years agolibrary removed from current scope. 90/16490/1
Cedric Delamarre [Tue, 19 May 2015 15:54:07 +0000]
library removed from current scope.

Change-Id: I76d5827d36d588e0f74887db83b5011232f70d57

5 years agoScicos: fix getscicoslabel 89/16489/1
Paul Bignier [Tue, 19 May 2015 15:11:08 +0000]
Scicos: fix getscicoslabel

 * Was missed in https://codereview.scilab.org/#/c/16483/ The test now passes again

Change-Id: I1552ee121eab0d845716f65d1d64b0bcc69f1831

5 years agoXcos: proper detection and handling of IFTHEL_f and ESELECT_f blocks 68/16468/4
Paul Bignier [Tue, 12 May 2015 10:40:52 +0000]
Xcos: proper detection and handling of IFTHEL_f and ESELECT_f blocks

 * These blocks are treated separately from the others because they have negative simulation function numbers (-1 and -2),
meaning their actual simulation function is defined in scicos.c (see synchro_nev())

 * Commit https://codereview.scilab.org/#/c/15883/ removes the possibility of easily detecting these 2 blocks,
so 'funtyp' needs to be altered when a magic value is found

 * Demos "Simple demo" and "Discrete controller" serve as tests for this commit,
because they use a "freq_div" superblock which has an "IFTHEL_f" inside

 * Used magic values for the simulation function numbers to clarify them

Change-Id: I0d7a7c3a48f4ab18e0ac123422635ac2599e3b80

5 years agoset_data_property "data" fixed, pvData used to know the real type. 88/16488/2
Cedric Delamarre [Tue, 19 May 2015 12:42:42 +0000]
set_data_property "data" fixed, pvData used to know the real type.

plot3d(zeros(299,299));
e=gce();
e.data.z = e.data.z;

Change-Id: Ib353b2de22ec951a7c84510a68ccbeb668e20aa7

5 years agoFix heterogenuous string 86/16486/1
Vincent COUVERT [Tue, 19 May 2015 12:03:16 +0000]
Fix heterogenuous string

Change-Id: I41975ea315436efb6bd9851af91264191c887aa0

5 years agofix bug on cell extraction 85/16485/1
Antoine ELIAS [Tue, 19 May 2015 11:56:43 +0000]
fix bug on cell extraction

Change-Id: I2b5b98181d772043ef5309178809eefd6bc2b5ad

5 years agoplot3d fixed after https://codereview.scilab.org/#/c/16264/ 84/16484/1
Cedric Delamarre [Tue, 19 May 2015 08:55:24 +0000]
plot3d fixed after https://codereview.scilab.org/#/c/16264/

// should not return an error
plot3d(zeros(299,299))

Change-Id: Ifce97599d808697e66cbecf4073e24072233a535

5 years agoplot3d fixed after https://codereview.scilab.org/#/c/16264/ 82/16482/3
Cedric Delamarre [Tue, 19 May 2015 08:55:24 +0000]
plot3d fixed after https://codereview.scilab.org/#/c/16264/

// should not return an error
plot3d(zeros(299,299))

Change-Id: Ifce97599d808697e66cbecf4073e24072233a535

5 years agofix Windows compilation after scicos commits 83/16483/1
Antoine ELIAS [Tue, 19 May 2015 09:16:23 +0000]
fix Windows compilation after scicos commits

Change-Id: I7bacf910b9ee76c27ec2eced241120215b20f997

5 years agoFix invalid read / write detected by valgrind 80/16480/2
Clément DAVID [Mon, 18 May 2015 18:34:20 +0000]
Fix invalid read / write detected by valgrind

Change-Id: I6a073cf728882c74ee0e09606d64f2210a62d0b9

5 years agoFix Linux compilation after https://codereview.scilab.org/#/c/16214/ 81/16481/1
Vincent COUVERT [Tue, 19 May 2015 07:35:54 +0000]
Fix Linux compilation after https://codereview.scilab.org/#/c/16214/

Change-Id: I8225ee5ceb5811f6463aa535872dbac27266f593

5 years agoScicos: var2vec now encode without copy 79/16479/2
Clément DAVID [Tue, 14 Apr 2015 15:15:25 +0000]
Scicos: var2vec now encode without copy

Change-Id: I311c38d141bf53445af69ab6953519a48f09af15

5 years agoXcos blocks: rewrite fromws_c to C++ 14/16214/9
Paul Bignier [Fri, 20 Mar 2015 10:30:47 +0000]
Xcos blocks: rewrite fromws_c to C++

 * Kept all the "fromws_c" names (instead of renaming to _cpp for backward compatibility)
 * Tests already present xcos/tests/unit_tests/fromws_c.tst & fromws_tows_c.tst, but cannot run yet because of importXcosDiagram()

Change-Id: I752d557106bd5c0a38da702d627a1c4a271f88da

5 years agoXcos MVC: fix includes 72/16172/6
Paul Bignier [Wed, 18 Mar 2015 12:45:00 +0000]
Xcos MVC: fix includes

 * Added "utilities.hxx" to all files using 'ScicosID'
 * Added "charEncoding.h" to all files calling 'wide_string_to_UTF8'
 * Also fixed a compilation warning in scicos_log.cpp (unsigned int comparison with 0)

Change-Id: I86e8850eb9d5176f2c4554f7988a4510eec3796e

5 years agoXcos : rewrite sciblk2 to C++ 11/16111/9
Paul Bignier [Fri, 6 Mar 2015 09:53:21 +0000]
Xcos : rewrite sciblk2 to C++

Change-Id: If3d8f877e36a5d07ae24b1f8b0f3f48ebed89c9d

5 years agoXcos gateways: rewrite getscicosvars to C++ 93/16193/8
Paul Bignier [Thu, 19 Mar 2015 10:53:56 +0000]
Xcos gateways: rewrite getscicosvars to C++

Change-Id: I99a8dc056bdd0075a3d95dcab3972d37ec5a318e

5 years agoXcos : rewrite model2blk, callblk and sciblk4 with C++ api 16/16016/20
Antoine ELIAS [Tue, 17 Feb 2015 17:58:15 +0000]
Xcos : rewrite model2blk, callblk and sciblk4 with C++ api

Change-Id: Idbe298eb6def71203792c9d96192320208de05fe

5 years agohasInvokeOption added in UserType to allow the use of optional input arguments. 78/16478/1
Cedric Delamarre [Mon, 18 May 2015 12:34:00 +0000]
hasInvokeOption added in UserType to allow the use of optional input arguments.

Change-Id: Ib2f70b865c86a82fcf585c52bfcd1c900b04d7b8

5 years agoScicos: enable Structs for var2var and vec2var 39/16339/5
Paul Bignier [Wed, 8 Apr 2015 11:46:39 +0000]
Scicos: enable Structs for var2var and vec2var

 * Also enable them in the models (ModelAdapter.cpp)

Change-Id: I3f8180c0d575499c60487f99e3e87b3b28124873

5 years agoRemove obsolete check_mac (inner function) 41/16241/3
Paul Bignier [Wed, 25 Mar 2015 13:21:43 +0000]
Remove obsolete check_mac (inner function)

 * deff() now identifies syntax errors, so testing them with check_mac isn't needed anymore
 * Used by EXPRESSION block:
  --> loadXcosLibs();
  --> exec("SCI/test/xcos/EXPRESSION_en_US.cosf", -1);
  --> cpr=scicos_simulate(scs_m);

Change-Id: I55c943497d370c26c79e68581bd853ef5fdb246b

5 years agoXlist integrated in another Xlist need to be copied to perform an affectation 70/16470/3
Sylvain GENIN [Tue, 12 May 2015 13:45:47 +0000]
Xlist integrated in another Xlist need to be copied to perform  an affectation

example :
 value = mlist(["test", "NAMES", "VALUES", "DATE"], ...
    "a", ...
    ones(2,2), ...
    ones(2,2));

    data=tlist(["test", "DATA", "PT"], ones(4,1), value);

    test = data;
    data.PT.NAMES = "b" ;
    data.PT.NAMES
    test.PT.NAMES

Change-Id: Ia7c7b1bf1f5747f73300808a1833333ccc1f1b60

5 years agoTests deactivated because make test_run fail (parsing issue): will be fixed later. 77/16477/1
Vincent COUVERT [Wed, 13 May 2015 13:38:19 +0000]
Tests deactivated because make test_run fail (parsing issue): will be fixed later.

Change-Id: Ifa9fafed9e36d5305c3db5ff19924dff694c4db9

5 years agoRevert modification pushed by error (https://codereview.scilab.org/#/c/15725/), inden... 76/16476/1
Vincent COUVERT [Wed, 13 May 2015 12:55:51 +0000]
Revert modification pushed by error (https://codereview.scilab.org/#/c/15725/), indent of Scilab files deactivated :(

Change-Id: I5799eae30824b28035f93f5923b133b880e68f0c

5 years agoTests deactivated because make test_run fail (parsing issue): will be fixed later. 75/16475/1
Vincent COUVERT [Wed, 13 May 2015 12:53:23 +0000]
Tests deactivated because make test_run fail (parsing issue): will be fixed later.

Change-Id: I6e73d00169bc5d9f44348f67ad37a16085b13c81

5 years agoSynchronize with YaSp branch version 74/16474/1
Vincent COUVERT [Wed, 13 May 2015 11:31:29 +0000]
Synchronize with YaSp branch version

Change-Id: I6801a3e78b5bd75e50be6e90fdefa396d5e394ad

5 years agoGet this test back (removed by error when merging 'double' mondule into 'ast') 73/16473/2
Vincent COUVERT [Wed, 13 May 2015 11:27:45 +0000]
Get this test back (removed by error when merging 'double' mondule into 'ast')

Change-Id: I68b3ff8639138a58ba8c0acb03adffac541e1cbc

5 years agomacr2tree now works in YaSp branch 72/16472/1
Vincent COUVERT [Wed, 13 May 2015 11:20:11 +0000]
macr2tree now works in YaSp branch

Change-Id: I64f1abc520a25d35f5199c9a42b483bf0750f46a

5 years agoSynchronize tests with 5.5 branch 71/16471/1
Vincent COUVERT [Wed, 13 May 2015 11:19:29 +0000]
Synchronize tests with 5.5 branch

Change-Id: I3d2fa0a192efe8dd7d8528e983da12276ab82afe

5 years agoBug #13829 new fix + side effects of first patch fixed 67/16467/1
Samuel GOUGEON [Tue, 12 May 2015 08:25:16 +0000]
Bug #13829 new fix + side effects of first patch fixed

Change-Id: I7a352dabbca480065f7cc46fac1251c6ffc32822

5 years agoRevert "Manage load of deps for external_objects_java." 65/16465/3
Vincent COUVERT [Thu, 7 May 2015 13:32:39 +0000]
Revert "Manage load of deps for external_objects_java."
Already done in Java code.

This reverts commit 306d1549e04e3b01970e931223fc80c37285ff61.

Change-Id: Id9bbfba600fb1426203346189f3c5132a497423b

5 years agoMove part related to mtlb_mode from listinsertion.tst to mtlb_mode.tst (set as not... 64/16464/1
Vincent COUVERT [Thu, 7 May 2015 12:34:47 +0000]
Move part related to mtlb_mode from listinsertion.tst to mtlb_mode.tst (set as not fixed for the moment).

Test:
test_run data_structures listinsertion

Change-Id: I829febc7b73d03ddead3860e410f399c06cbd5ca

5 years ago * Revert bug_5607.tst removal (https://codereview.scilab.org/#/c/11676/) 62/16462/1
Vincent COUVERT [Thu, 7 May 2015 11:32:30 +0000]
 * Revert bug_5607.tst removal (https://codereview.scilab.org/#/c/11676/)
 * Set tests as NOT FIXED until mtlb_mode is implemented.

Change-Id: I1de3f9f9738f6680735cc59144ce41b6a65c4eed

5 years agoChange error number 144 ==> 999 61/16461/1
Vincent COUVERT [Thu, 7 May 2015 10:45:48 +0000]
Change error number 144 ==> 999

Change-Id: Ib4d8b16a6c6e4cf55453639f2d112f2e78b88520
Test: test_run integer bug_623