6 years ago* Manage nested functions in macr2tree/tree2code. 22/16722/4
Vincent COUVERT [Tue, 23 Jun 2015 08:24:36 +0000]
* Manage nested functions in macr2tree/tree2code.
* Update tests since fun2string has been removed.
* Better management of "rc" and "cc" operations.
test_run functions bug_731
test_run m2sci bug_1124
test_run m2sci bug_683
test_run m2sci bug_943

Change-Id: Ie87f4c4dca4d3cd2f25f5a6a38abf53d58deb253

6 years agoerror stack management and displaying 91/16691/6
Cedric Delamarre [Mon, 15 Jun 2015 12:45:47 +0000]
error stack management and displaying

  * print of error in Scierror and catches removed
  * print done only in the catch of runner
  * new call stack displaying
  * file name stored in types::Macro

Change-Id: I89c26ff915bf0fb3bb2cf038475e236b36c5b61d

6 years agoFix Mac OS X compilation 21/16721/2
Vincent COUVERT [Mon, 22 Jun 2015 11:50:11 +0000]
Fix Mac OS X compilation

Change-Id: Ib6ba908b00c1841fdb8988b0b1004420e68fd6e7

6 years agobug_8232 : drop a file in scilab console fixed. 25/16625/2
Cedric Delamarre [Thu, 11 Jun 2015 07:44:49 +0000]
bug_8232 : drop a file in scilab console fixed.

Change-Id: I30e5c1f82e05af2c5450b669e6eed92190695df5

6 years agoRemove test based on removed function fun2string 20/16720/1
Vincent COUVERT [Mon, 22 Jun 2015 08:43:36 +0000]
Remove test based on removed function fun2string

Change-Id: Ie99a4365b39dee235f45a738139a38911adc038c

6 years agoMinor modifications in tests: 19/16719/2
Vincent COUVERT [Mon, 22 Jun 2015 08:19:09 +0000]
Minor modifications in tests:
 - parser differences between 5/6 versions
 - minor differences on macr2tree output
test_run m2sci bug_1003
test_run m2sci bug_1004
test_run m2sci bug_1082
test_run m2sci bug_1123
test_run m2sci bug_1636
test_run m2sci bug_800
test_run m2sci bug_924

Change-Id: I0e57954d855272080c43bf093c5aa716a16e6eee

6 years agoBug 13807 fixed: Invalid margins when the visibility of figure was to off 10/16710/1
Calixte DENIZET [Wed, 3 Jun 2015 14:19:47 +0000]
Bug 13807 fixed: Invalid margins when the visibility of figure was to off

Change-Id: I6994d707392321fb9665fc5afded923d2bc4c545

6 years agoreduce Eigen headers visibility 88/16588/4
Antoine ELIAS [Thu, 4 Jun 2015 09:26:14 +0000]
reduce Eigen headers visibility

Change-Id: If6bb508198c680c9685fe7fff02f7c318994f101

6 years agoReplace macr2lst by macr2tree in head_comments. 27/16627/2
Vincent COUVERT [Thu, 11 Jun 2015 08:15:58 +0000]
Replace macr2lst by macr2tree in head_comments.
test_run functions bug_2987
test_run functions bug_13093

Change-Id: Iceecd6a2ec9f8616d0564736980c3c30f98b2dff

6 years agoXcos MVC: use var2vec/vec2var encoding for 'exprs' 80/16680/4
Paul Bignier [Fri, 12 Jun 2015 11:34:23 +0000]
Xcos MVC: use var2vec/vec2var encoding for 'exprs'

Change-Id: If0cbc70f6c5de963e8581894b325aa9cf5f80ff6

6 years agofixed bug_10121 : pass the file in hdf5 75/16675/3
Sylvain GENIN [Thu, 11 Jun 2015 14:01:11 +0000]
fixed bug_10121 : pass the file in hdf5

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

Change-Id: I15cfd21ea1ff07707c822ef24b0c63a7382399f9

6 years agofixed: save push button of the plot 70/16670/2
Sylvain GENIN [Thu, 11 Jun 2015 10:26:40 +0000]
fixed:  save push button of the plot

Change-Id: I76f728f4cc1ff4ccfe7a798beb830ee2e1f3756b

6 years ago* Bug #13901 fixed - lines() was not updated when resizing Scilab console. 97/16697/2
Vincent COUVERT [Wed, 17 Jun 2015 12:27:13 +0000]
* Bug #13901 fixed - lines() was not updated when resizing Scilab console.

Change-Id: I3ae4cb469ac05ce9e491e0165f0c178b2a71e2e2

6 years agoScicos src: fix sublist and substruct reading in vec2var 79/16679/5
Paul Bignier [Fri, 12 Jun 2015 09:42:36 +0000]
Scicos src: fix sublist and substruct reading in vec2var

Change-Id: I75a62c6eafda7ec3a8a0f31b7dd4217f587947f6

6 years ago* Bug #13932 fixed - macrovar was broken in YaSp branch. 93/16693/4
Vincent COUVERT [Tue, 16 Jun 2015 13:26:48 +0000]
* Bug #13932 fixed - macrovar was broken in YaSp branch.
Tests added in macrovar.tst: test_run functions macrovar

Change-Id: I6e8e81d87874745d04162a861f8e24f351a697ce

6 years agogetVarNameFromPosition: he can read the name of the Callable 92/16692/4
Sylvain GENIN [Tue, 16 Jun 2015 08:57:23 +0000]
getVarNameFromPosition: he can read the name of the Callable

fixed : test_run("graphics","bug_10298",["no_check_error_output" ]);

Change-Id: I7b4c76b54c7cd7d0a98b62669d2c4a6dc25f0604

6 years agoXcos tests: regenerate .dia.ref files and fix minor .tst 06/16706/3
Paul Bignier [Fri, 19 Jun 2015 07:38:11 +0000]
Xcos tests: regenerate .dia.ref files and fix minor .tst

 * Adapt to YaSp new display and redefine messagebox to avoid popups when necessary

Change-Id: I7e8fefe0200485c481f439574ea92003ef09c4bd

6 years agoXcos tests: fix bug_8397 because of new funptr() and replaced disp(mprintf) by disp... 04/16704/5
Paul Bignier [Thu, 18 Jun 2015 14:08:38 +0000]
Xcos tests: fix bug_8397 because of new funptr() and replaced disp(mprintf) by disp(msprintf)

 * funptr doesn't return indexes anymore, so needed a new way to save & restore messagebox()
 * The mprintf fix notably concerns error_reporting_nw.tst, but 'try catch' is still failing so can't validate the test yet
mprintf directly prints in the console, so it makes no sense to add a disp to it!

Change-Id: I8d8c8bb30fab0ba92889117d41af657c59660a22

6 years agoRemove dead code in core module + references to these files in other modules 05/16705/3
Vincent COUVERT [Thu, 18 Jun 2015 15:20:46 +0000]
Remove dead code in core module + references to these files in other modules

Change-Id: I9d7f04d16dd5595680d4fc3c2e14b296e9fcd558

6 years agoScicos tests: fix scicos.tst to load Scicos libs correctly 02/16702/2
Paul Bignier [Thu, 18 Jun 2015 10:16:34 +0000]
Scicos tests: fix scicos.tst to load Scicos libs correctly

Change-Id: I5beef1fd3c4c45aeac2225a8bdea48f68afcc9af

6 years agoScicos gateways: fix for sci_scicosim 00/16700/1
Paul Bignier [Wed, 17 Jun 2015 15:06:52 +0000]
Scicos gateways: fix for sci_scicosim

https://codereview.scilab.org/#/c/16682/ correctly casted opar & outtb, but the pointer size failed under linux

Change-Id: I408339143fe637e9375021e07817cbeb2a2cc67f

6 years agoexec and ecestr fixed about parsing error. 94/16694/3
Cedric Delamarre [Wed, 17 Jun 2015 09:42:51 +0000]
exec and ecestr fixed about parsing error.

f=mopen(TMPDIR+"/test", "w");
mfprintf(1, "funtion test()\nend");

[err, num] = lasterror()
exec(TMPDIR+"/test", "errcatch")
[err, num] = lasterror()

execstr("funtion test(),end")
[err, num] = lasterror()
execstr("funtion test(),end", "errcatch")
[err, num] = lasterror()

Change-Id: Icba7c9df3738e030f6e30666a598ac9c534f6b54

6 years agofix bug 414 14/16114/3
Anais AUBERT [Mon, 9 Mar 2015 10:11:09 +0000]
fix bug 414

Change-Id: Ifad18db764d49e965c0e91801c5fbe484216b97b

6 years agoXcos tests: fix computational_functions, cumsum, error_reporting_nw, model2blk, bug_1... 82/16682/2
Paul Bignier [Wed, 3 Jun 2015 07:51:10 +0000]
Xcos tests: fix computational_functions, cumsum, error_reporting_nw, model2blk, bug_12998 and bug_8235

Fixed tests:
 * computational_functions: "two dots spacing" doesn't work in YaSp
 * cumsum: had trouble when 'opar' contained complex values
 * error_reporting_nw: fixed deliberate wrong 'ipar' in an inner input/output Superblock block yielding an error
by arbitrarily replacing the wrong value with the maximum possible value (like in Scilab 5)
 * model2blk: squaring with Scilab 5's createblklist
 * bug_12998: inserting an empty diagram in 'block.model.rpar' failed
 * bug_8235: modified script2var logic to not use the stack at all anymore, because it changed a lot between Scilab 5 and 6

In progress / missing in YaSp:
 * bug_9478: in ModelAdapter, allowed 'dep_ut' to be a row OR column vector, but test doesn't pass yet because of export_to_hdf5
 * DEBUG_SCICOS: made a big leap forward, but cannot test yet because YaSp doesn't allow saving functions in files yet!
 * scicos_diagram: need fieldnames(scs_m) to work.
So far I am able to return ["props" "objs "version" "contrib"] but not with "diagram" at the beginning.
How should it be detected by sci_fieldnames.cpp? By hardcoding it? By including "DiagramAdapter.hxx" to call get getSharedTypeStr()?

 * Regenerated bug_13396, fromws_c, fromws_tows_c and post_xcos_simulate ref files

Change-Id: I3f830e679878f09024ab04982cab8ac7976d0646

6 years agoRevert "Xcos tests: fix computational_functions, cumsum, error_reporting_nw, model2bl... 81/16681/1
Clément DAVID [Fri, 12 Jun 2015 17:37:47 +0000]
Revert "Xcos tests: fix computational_functions, cumsum, error_reporting_nw, model2blk, bug_12998 and bug_8235"

This reverts commit f9b656ddca889130350fffecf2043d28f4401fa4 as it broke
the Windows build.

Change-Id: Ic9c2920f999f9e85fa9b59c40eb10e1ac70444cc

6 years agoXcos tests: fix computational_functions, cumsum, error_reporting_nw, model2blk, bug_1... 83/16583/6
Paul Bignier [Wed, 3 Jun 2015 07:51:10 +0000]
Xcos tests: fix computational_functions, cumsum, error_reporting_nw, model2blk, bug_12998 and bug_8235

Fixed tests:
 * computational_functions: "two dots spacing" doesn't work in YaSp
 * cumsum: had trouble when 'opar' contained complex values
 * error_reporting_nw: fixed deliberate wrong 'ipar' in an inner input/output Superblock block yielding an error
by arbitrarily replacing the wrong value with the maximum possible value (like in Scilab 5)
 * model2blk: squaring with Scilab 5's createblklist
 * bug_12998: inserting an empty diagram in 'block.model.rpar' failed
 * bug_8235: modified script2var logic to not use the stack at all anymore, because it changed a lot between Scilab 5 and 6

In progress / missing in YaSp:
 * bug_9478: in ModelAdapter, allowed 'dep_ut' to be a row OR column vector, but test doesn't pass yet because of export_to_hdf5
 * DEBUG_SCICOS: made a big leap forward, but cannot test yet because YaSp doesn't allow saving functions in files yet!
 * scicos_diagram: need fieldnames(scs_m) to work.
So far I am able to return ["props" "objs "version" "contrib"] but not with "diagram" at the beginning.
How should it be detected by sci_fieldnames.cpp? By hardcoding it? By including "DiagramAdapter.hxx" to call get getSharedTypeStr()?

 * Regenerated bug_13396, fromws_c, fromws_tows_c and post_xcos_simulate ref files

Change-Id: Ib6636788b72506ae22f68457728e1ef869a3e12a

6 years agoXcos tests: allow CONSTRAINT2_c, EXTRACT, LOOKUP2D, MPBLOCK, MCLOCK_f, ENDBLK and... 75/16575/4
Paul Bignier [Tue, 2 Jun 2015 08:01:55 +0000]
Xcos tests: allow CONSTRAINT2_c, EXTRACT, LOOKUP2D, MPBLOCK, MCLOCK_f, ENDBLK and FROMWSB blocks to pass 'define' and 'set'

 * blocks_set.tst tests those blocks (makes a "define" and a "set" on all blocks)

Change-Id: I790a1a24a36fe7e98af366514e529e5fcb0a2a8a

6 years agoXcos MVC: fix for Deleted blocks 74/16574/4
Paul Bignier [Fri, 29 May 2015 14:22:35 +0000]
Xcos MVC: fix for Deleted blocks

 * The modification in ModelAdapter.cpp echoes with DiagramAdapter.cpp L 209, setting the ID at 0ll
 * %model_p didn't even mind the Deleted...
 * This is tested by blocks_set.tst when calling GEN_SQR.sci which involves Deleted blocks

Change-Id: I63cbddc4536a4fde1f347e3a27bd1700e8c0817b

6 years agoXcos MVC: allow column vectors for all properties 23/16623/3
Paul Bignier [Thu, 11 Jun 2015 06:55:55 +0000]
Xcos MVC: allow column vectors for all properties

 * 'thick', 'ct', 'state', 'dstate', 'nzcross', 'nmode' and 'context' only allowed row vectors. Allow column vectors for backward compatibility.
They are always stored and returned as row vectors anyway!

Change-Id: Ibcef4c2db4a05d14197214e97a6791744819ad1e

6 years agoXcos blocks: make scifunc_block_m work 28/16428/5
Paul Bignier [Thu, 30 Apr 2015 09:59:48 +0000]
Xcos blocks: make scifunc_block_m work

 * "Inverted pendulum" demo contains that block

Change-Id: Ifea2c72b6de1a1068a41c387ae5a262aea677e3b

6 years agoScicos tests: embark LV.cosf in the binary to test its loading 24/16624/2
Paul Bignier [Thu, 11 Jun 2015 07:40:52 +0000]
Scicos tests: embark LV.cosf in the binary to test its loading

Change-Id: I250451819155a75f2aa80462e9e3a4871e211471

6 years agoFix heterogenous string 22/16622/1
Vincent COUVERT [Wed, 10 Jun 2015 14:42:18 +0000]
Fix heterogenous string

Change-Id: I97a27a6b59c795e7ca6870c75ee86102a7af52c5

6 years agoUpdate ref for Linux 21/16621/1
Vincent COUVERT [Wed, 10 Jun 2015 11:53:39 +0000]
Update ref for Linux

Change-Id: If6011537d50cfed6c1017ae424a30978842d1fe1

6 years ago * Update Windows ref for atomsShow.tst 20/16620/1
Vincent COUVERT [Wed, 10 Jun 2015 07:42:01 +0000]
 * Update Windows ref for atomsShow.tst
 * Impose English for atomsUpdate.tst

Change-Id: Icc84d46611745e6452e197db099aba9a2f508cf0

6 years agoScicos sources: fix model2blk 28/16528/5
Paul Bignier [Fri, 29 May 2015 09:10:06 +0000]
Scicos sources: fix model2blk

 * 'inptr' does the same memset as 'outptr'
 * 'ipar' (properly) uses 'nipar' instead of 'nrpar', which was for 'rpar'
 * Tested by "xcos/tests/unit_tests/blocks_link.tst" (used to segfault out),
although the test is excrutiatingly slow

Change-Id: I518f0f43bcbf310e7e73e82862013c6c4cc5e35f

6 years agoFix build of help for toolbox_skeleton: 17/16617/3
Vincent COUVERT [Tue, 9 Jun 2015 11:24:25 +0000]
Fix build of help for toolbox_skeleton:
 * Activate build in builder.sce
 * Activate load in toolbox_skeleton.start
 * Manage files with BOM in parser (files created by Java for images generation contain a BOM).
 * Use mprintf instead of disp for better print.
To test:
test_run modules_manager toolbox_skeleton
test_run modules_manager bug_9339

Change-Id: Ib36872455ea50f42b5c1725d06f3422c056ab9ef

6 years agoUpdate package after (de)serialization modifications (https://codereview.scilab.org... 19/16619/1
Vincent COUVERT [Tue, 9 Jun 2015 12:16:34 +0000]
Update package after (de)serialization modifications (https://codereview.scilab.org/16614)

Change-Id: I537c546c9b93f3f01b626743f0c2bc68e567fd44

6 years agotake care of ref before deleting singlepoly in polynoms 18/16618/1
Antoine ELIAS [Tue, 9 Jun 2015 11:27:28 +0000]
take care of ref before deleting singlepoly in polynoms

Change-Id: I4f8cee1106f297067d66f4dc91baa59496408c83

6 years agoChangelog: add a Syntax clarification section 09/16609/2
Clément DAVID [Mon, 8 Jun 2015 10:22:40 +0000]
Changelog: add a Syntax clarification section

Change-Id: I57b7664f0a9b742ea2b250219fb00ec8774dd0ea

6 years agoserialize and deserialize wchar_t as char for compatibility between linux and windows 14/16614/2
Antoine ELIAS [Tue, 9 Jun 2015 07:32:13 +0000]
serialize and deserialize wchar_t as char for compatibility between linux and windows

Change-Id: I2188aaeb634121f66509ecada08c1fdba2be0ea7

6 years agoFix call to clear to avoid to clear macros libraries 13/16613/2
Vincent COUVERT [Mon, 8 Jun 2015 15:27:48 +0000]
Fix call to clear to avoid to clear macros libraries

Change-Id: Ie509d31bb83b39953ee68408cfc6b01e3e868098

6 years agoXcos interactive tests: typo fixes and .cosf extension fixed 07/16607/2
Paul Bignier [Mon, 8 Jun 2015 09:42:19 +0000]
Xcos interactive tests: typo fixes and .cosf extension fixed

 * Note: not all tests can be validated yet because of stuff still missing in YaSp
(palette-related java features, export_to_hdf5, scifunc_bock_m, etc)

Change-Id: I59ec85c7f550f96d37fe309a0a30a2db4781d873

6 years ago* Bug #13289 fixed - Using non-integer indexes for mlists made Scilab crash. 08/16608/1
Vincent COUVERT [Mon, 8 Jun 2015 10:12:47 +0000]
* Bug #13289 fixed - Using non-integer indexes for mlists made Scilab crash.

Change-Id: I35f68d39a080240cc0dbcff5abca2d8e68b52564

6 years ago* Bug #13838 fixed - Sparse and complex substraction made Scilab crash. 06/16606/1
Vincent COUVERT [Mon, 8 Jun 2015 09:31:27 +0000]
* Bug #13838 fixed - Sparse and complex substraction made Scilab crash.

Change-Id: I00f22d118eb447cc3ce62ddd6eacadbaf9df8b36

6 years agomemory leak fixed in svd gateway. 02/16602/3
Cedric Delamarre [Fri, 5 Jun 2015 14:48:47 +0000]
memory leak fixed in svd gateway.

Change-Id: I04502180f09845d6a5951c0fdbdb74936d6fa27e

6 years agoreset first field since opts is declared static in calling function 99/16599/4
Sylvain GENIN [Fri, 5 Jun 2015 12:25:03 +0000]
reset first field since opts is declared static in calling function

fixed : test_run("graphics","fec",["no_check_error_output" ]);

Change-Id: I7801668d5423f30eeb50db37d221ce41fc45c86b

6 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

6 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

6 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

6 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

6 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:

Change-Id: I469542d3e6b8d54bd8810944eae92fd2fe6796e9

6 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

Change-Id: Ieec70092386225be565decfeacce6102b3730539

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

Change-Id: Ifb165a422fd15c1ed5eeb0a3a9f53c6d75729b68

6 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


Change-Id: I82b54e5c917e07e8637b561ddec9949fd0bcb038

6 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

6 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

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

6 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

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

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

Change-Id: I1d88dbdcb7db388d15220a78faeb712775a8d989

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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)

6 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

6 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

6 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

6 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.

Change-Id: I3b90752cdae7cdfe172bed30d8ad67959dc787f6

6 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

6 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

6 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

6 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

6 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

6 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.

mputl(["function ret = lib_test";"  ret= ""lib1""";"endfunction"], "lib_test.sci");

Change-Id: I2dc68bb459d33e4f4246bc59e93d8d8583412b1d

6 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

6 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

6 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:
  !--error 999
Scilab 'GUI' module not installed.

This reverts commit 01b41203f2879039653c1bc6119b6704ddf0abf1.

Change-Id: I28636a8662f46d23535a404f615d39ffa532e531

6 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

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

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

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

Change-Id: I29144af5cda06ce9c4f5c317405c787412a0d53c

6 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

6 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

6 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

6 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

6 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;

Change-Id: I19a35cd59c0cf026f9b95dadae6434df0ae4f0e5

6 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

6 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

6 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

name = 'gw_example1';
table = ['sci_func1', 'func1'];
n1 = ilib_gen_gateway(name,table);
r1 = fileinfo(n1)

Change-Id: I8a03a4584f12fa9be3253cfcbc346956e2668fd0

6 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

6 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

6 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

6 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

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

6 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

6 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