5 years agoXcos MVC: slight improvements in Adapters 72/15672/12
Paul Bignier [Mon, 8 Dec 2014 15:17:47 +0000]
Xcos MVC: slight improvements in Adapters

 * Allow consecutive initialization thanks to data protection in DiagramAdapter.cpp
 * Allow negative values for 'from' and 'to' block field Link properties
 * Give dummy properties to Cpr and State Adapters to be able to use them, returned as TLists
 * Copy a Block's 'doc_content' field when inserting it in a diagram
 * is_valid() now logically treats link_t items
 * Regenerate ref test files

Change-Id: Id068c30d18e110b486ccbbcfd336335c623d28a7

5 years agoVisitor: fix some GCC 4.9 warnings 15/15715/1
Clément DAVID [Tue, 16 Dec 2014 16:00:18 +0000]
Visitor: fix some GCC 4.9 warnings

Change-Id: I13dfc8f66586037599838206de20b9df6406181f

5 years agoXcos MVC: fix a register_view artifact after d229abd4 09/15709/2
Clément DAVID [Tue, 16 Dec 2014 10:01:54 +0000]
Xcos MVC: fix a register_view artifact after d229abd4

Change-Id: Ib7772c979ecff9556d411096597770df96ac7a0c

5 years agofix compilation under windows : 08/15708/2
Sylvain GENIN [Tue, 16 Dec 2014 09:56:19 +0000]
fix compilation under windows :
there was a conflict in ERROR variable in (enum LogLevel) corrective make added a prefix to the variables in the enum

Change-Id: If2d6a2451e3f28c0e8547e652f7afc8b06b26e1d

5 years agoScicos tests: use scicos_log on tests 84/15684/3
Clément DAVID [Wed, 10 Dec 2014 08:45:59 +0000]
Scicos tests: use scicos_log on tests

Change-Id: Iadaedd8556a2ea7f13ad958635448fee1907dff3

5 years agoXcos MVC: add a gateway to configure logging 83/15683/3
Clément DAVID [Mon, 8 Dec 2014 10:07:06 +0000]
Xcos MVC: add a gateway to configure logging

Change-Id: Iaea8564727473c6e5d2cdf7ea59c86d3fb7a33df

5 years agoimprove sprintf on %s and %c 91/15691/5
Antoine ELIAS [Thu, 11 Dec 2014 10:55:12 +0000]
improve sprintf on %s and %c

test_run("output_stream","sprintf",["no_check_error_output" ]);
test_run("output_stream","msprintf",["no_check_error_output" ]);

Change-Id: I0b28d8e8df38e63131eaab8c082e542ef87355f2

5 years agoabort management 90/15690/2
Antoine ELIAS [Thu, 11 Dec 2014 10:06:02 +0000]
abort management

interactive test bug_1391

Change-Id: Ic3aba9904858b95a809ae4b91acf8de3a9fea971

5 years agobug_11953 fixed. 89/15689/2
Cedric Delamarre [Thu, 11 Dec 2014 09:11:14 +0000]
bug_11953 fixed.

Change-Id: Ic9af8cb8fa3bf9dd271a2d37fc244569f828a92a

5 years agoRemove old residual file 43/15643/3
Vincent COUVERT [Wed, 3 Dec 2014 07:53:02 +0000]
Remove old residual file

Change-Id: Icdb0f525c2bc7fce2a224e1a33d729075d74b90d

5 years agofix bug 11265: the sprintf function cannot take string arguments longer than 4096 87/15687/6
Sylvain GENIN [Wed, 10 Dec 2014 10:05:35 +0000]
fix bug 11265: the sprintf function cannot take string arguments longer than 4096

r = rand(35, 1024); // 35k values
str = string(r);
s = strcat(str, " , ");
tts = sprintf('%s', s);

Change-Id: I9433c79dfbc598f4d460bef815ca738cae592364

5 years agomode() about empty line fixed. 73/15673/2
Cedric Delamarre [Mon, 8 Dec 2014 16:12:22 +0000]
mode() about empty line fixed.

Change-Id: I7a7727889969d067c97f710ed48631205da96bfd

5 years agolist display fixed 62/15662/2
Cedric Delamarre [Fri, 5 Dec 2014 16:22:16 +0000]
list display fixed

after commit https://codereview.scilab.org/#/c/15649/

a=list(12)
a // too much spaces before a(1)

Change-Id: Ic86634aea02a44d98e0f739acb9be3b52fc4cd06

5 years agofunction name was not setted when an error occured in execstr. 60/15660/6
Cedric Delamarre [Fri, 5 Dec 2014 14:08:11 +0000]
function name was not setted when an error occured in execstr.

Change-Id: I4aa08d8d27a875ed99795e7ebe97d44c33d9b876

5 years agofix a.b = 1 after https://codereview.scilab.org/#/c/15638/ 88/15688/1
Antoine ELIAS [Wed, 10 Dec 2014 13:37:58 +0000]
fix a.b = 1 after https://codereview.scilab.org/#/c/15638/

Change-Id: Ia6eef4bdfd01bdf6c587a6fbde0ee2bdce1f250d

5 years agobug_3164 updated about error number. 58/15658/2
Cedric Delamarre [Thu, 4 Dec 2014 16:04:02 +0000]
bug_3164 updated about error number.

test_run("core","bug_3164",["no_check_error_output"]);

Change-Id: Id6464c4599a334e6f9a855f7d7f2d23e92906972

5 years agoreset error in execstr with errcatch. 52/15652/3
Cedric Delamarre [Thu, 4 Dec 2014 13:46:04 +0000]
reset error in execstr with errcatch.

execstr("cos()", "errcatch") // must print the error number

Change-Id: If74ed413e7c04945a29388c4fc57b9475a41c958

5 years agotrycatch updated for YaSp 44/15644/2
Cedric Delamarre [Wed, 3 Dec 2014 10:11:41 +0000]
trycatch updated for YaSp

test fail because of parser error and macr2lst

Change-Id: I4bc80849a57a846a33ca6adfb0f50f454bea39a0

5 years agoredefinig a scilab function with insertion. 38/15638/4
Cedric Delamarre [Tue, 2 Dec 2014 15:47:36 +0000]
redefinig a scilab function with insertion.

sin(2) = 12
sin=1
sin(2) = 12

function test()
    sin(3)=15
    disp(sin)
endfunction

test()
clear sin
test()

Change-Id: I04943461e1a28833a4787b69a1390494c8bacb8e

5 years agocheck variable name passed to global function. 26/15626/2
Cedric Delamarre [Tue, 2 Dec 2014 12:35:20 +0000]
check variable name passed to global function.

global a=

Change-Id: Icb0b5e0661e3fcbfaee9f2cc2f827fb5dcbd041d

5 years agoreadgateway removed from YaSp. 21/15621/2
Cedric Delamarre [Tue, 2 Dec 2014 09:27:22 +0000]
readgateway removed from YaSp.

Change-Id: Ibfb62243aad7d37f918bcf1c59c6dadca10ffa36

5 years agocomparison between list, tlist and mlist fixed. 66/15666/3
Cedric Delamarre [Mon, 8 Dec 2014 10:12:47 +0000]
comparison between list, tlist and mlist fixed.

t=tlist("any_type"); t==list()
t=tlist("any_type"); t==tlist("other_type")
t=tlist("any_type"); t==mlist("other_type")

t=list("any_type"); t==list()
t=tlist("any_type"); t==tlist("any_type")
t=tlist("any_type"); t==mlist("any_type")

function res=%mytype_o_l(a,b)
    disp("mytype_o_l");
    res = %t;
endfunction

t=tlist("mytype"); t==list()

Change-Id: I1eaab81014416874ae92cc0543f5a46c126b8179

5 years agoregenerated bug 3842 ref test after related tests modification 65/15665/2
Anais AUBERT [Mon, 8 Dec 2014 08:56:43 +0000]
regenerated bug 3842 ref test after related tests modification

Change-Id: I4245f9c230a5e86db79def0a6b874854858beffa

5 years agobug_3178 about error(number) removed. 69/15669/2
Cedric Delamarre [Mon, 8 Dec 2014 12:37:42 +0000]
bug_3178 about error(number) removed.

Change-Id: Ib8914febc570344018d7a074ffb80dbc2476bf4c

5 years agotest about errclear with a number removed. 67/15667/2
Cedric Delamarre [Mon, 8 Dec 2014 10:59:51 +0000]
test about errclear with a number removed.

Change-Id: Ib1c1dae073fe86978ea7d1dfa09a54d7bae2b44a

5 years agofix bug 4684: display 'Inf' '-Inf' 'Nan' with msprintf function 71/15671/7
Sylvain GENIN [Mon, 8 Dec 2014 13:54:24 +0000]
fix bug 4684: display 'Inf' '-Inf' 'Nan' with msprintf function

msprintf('Value is: %d', %inf)
msprintf('Value is: %d', -%inf)
printf('Value is: %e', %nan)

test_run("output_stream","bug_4684",["no_check_error_output" ]);

Change-Id: I50eb2ae7256e6cf69319696e4ec9f0f09632c855

5 years agofix umf_lusolve test 77/15677/1
Anais AUBERT [Tue, 9 Dec 2014 13:40:57 +0000]
fix umf_lusolve test

Change-Id: I82bd398f3d3e5f368df4766b3d07ee53899292eb

5 years agofix sp2adj 85/15585/4
Anais AUBERT [Mon, 24 Nov 2014 14:44:13 +0000]
fix sp2adj

test_run("sparse","sp2adj",["no_check_error_output" ]);

Change-Id: I1e4fe6457c0b20f8b853c1d5c8adfeca97eba5e0

5 years agobug 8824 test updated for yasp 74/15674/2
Anais AUBERT [Tue, 9 Dec 2014 08:58:46 +0000]
bug 8824 test updated for yasp

Change-Id: I09d024b6f9d51eab3be9406a89855b10045acb66

5 years agofix bug 9277 : managed the slash when he are an odd monbre 61/15661/4
Sylvain GENIN [Fri, 5 Dec 2014 14:16:51 +0000]
fix bug 9277 :  managed the slash when he are an odd monbre

msprintf("\\\")

test_run("output_stream","bug_9277",["no_check_error_output" ]);

Change-Id: Ia3948b29caf422ea02a3c016107d1edef5f401db

5 years agotest non_reg bug_1110 updated for YaSp 51/15651/3
Cedric Delamarre [Thu, 4 Dec 2014 10:32:37 +0000]
test non_reg bug_1110 updated for YaSp

Change-Id: I0a90acf2125fdfa27e435f8673e2e69540bde1c5

5 years agotest about (a=b) instead of a==b removed. 50/15650/2
Cedric Delamarre [Thu, 4 Dec 2014 10:08:51 +0000]
test about (a=b) instead of a==b removed.

Change-Id: I68017257008a971b4798e46fb6da638791c1b4ab

5 years agofix lstops : 45/15645/8
Sylvain GENIN [Wed, 3 Dec 2014 14:25:02 +0000]
fix lstops :
 - delete mode(5) from lstops.tst
 - lstsize function accepted the tlist type
 - the tlist accepted the several return value

test_run("data_structures","lstops",["no_check_error_output" ]);

Change-Id: I2e2e2ee1235d02544c8ee26aec7621c9227d6156

5 years agofix getfield on empty struct 36/15636/5
Antoine ELIAS [Tue, 2 Dec 2014 15:32:55 +0000]
fix getfield on empty struct

Change-Id: I685b60ae815c9b5677a8322dea2dcd0b6c4d899e

5 years agofix contructor by assignation instead of copy constructor 17/15617/5
Antoine ELIAS [Tue, 2 Dec 2014 09:10:05 +0000]
fix contructor by assignation instead of copy constructor

Change-Id: Ifc02ead69f049c2ddf32d906f0ebcc6307cc50ba

5 years agoXcos MVC: properly clone model objects to access sub-diagrams 81/15581/18
Paul Bignier [Fri, 21 Nov 2014 16:49:30 +0000]
Xcos MVC: properly clone model objects to access sub-diagrams

 * Fixed 'getfield(1, scs_m)' to add the type of 'scs_m' at the beginning of the return

Change-Id: I8c378f2d9532b1dd1e837d8a9eed8144f7d1a890

5 years agomacro print fixed. 49/15649/2
Cedric Delamarre [Thu, 4 Dec 2014 09:48:15 +0000]
macro print fixed.

function test()
end

myfunc = test

test_run("core","bug_10677",["no_check_error_output" ]);

Change-Id: Ie71b6eb8aee828710dd234f9a538061c4a0e5577

5 years agotest about function error(number) updated 48/15648/3
Cedric Delamarre [Thu, 4 Dec 2014 09:06:35 +0000]
test about function error(number) updated

Change-Id: I8a8d0a71295f6da1f8d68e9f81f378500fbec922

5 years agoinsertion with input arguments in a List fixed. 46/15646/4
Cedric Delamarre [Wed, 3 Dec 2014 14:51:10 +0000]
insertion with input arguments in a List fixed.

tl = tlist(["mytlist", "f1"], 12);
ml = mlist(["mymlist", "f"], tl);
mml = mlist(["mymmlist", "ff1"], ml);

mml(list("ff1", "f1", 2)) = 14

a{2} = 2
a{1}

test_run("ast","insert",["no_check_error_output" ]);

Change-Id: I98a75d7105b5a7571231993539e54a1ebbd97747

5 years agostacksize removed from test bug_169 54/15654/3
Cedric Delamarre [Thu, 4 Dec 2014 13:57:13 +0000]
stacksize removed from test bug_169

Change-Id: I1357a62d481e3e8dcb0c768f8eb77c241ab13467

5 years agotest bug_1659 updated. 53/15653/3
Cedric Delamarre [Thu, 4 Dec 2014 13:51:07 +0000]
test bug_1659 updated.

Change-Id: I7e12f96e1dcf579bbcde1888a0cbddb62f98c654

5 years agobug_2618 updated about error number. 57/15657/2
Cedric Delamarre [Thu, 4 Dec 2014 15:55:34 +0000]
bug_2618 updated about error number.

test_run("core","bug_2618",["no_check_error_output" ]);

Change-Id: I502920cc05cce4eaf953ffdf83bb1bba23e97ae1

5 years agomanagement of multiple return in struct 56/15656/3
Cedric Delamarre [Thu, 4 Dec 2014 15:12:57 +0000]
management of multiple return in struct

test_run("core","bug_2263",["no_check_error_output" ]);

Change-Id: I0a09f0695b84c3162243e35f86ce35612ae2b1b9

5 years agocore no more clone input parameters in C gateways 20/15620/3
Antoine ELIAS [Tue, 2 Dec 2014 09:27:05 +0000]
core no more clone input parameters in C gateways

Change-Id: Id0e14efc70cb6663880ae7a3239c97a0f5d19f72

5 years agoRemove old residual file 37/15637/2
Vincent COUVERT [Tue, 2 Dec 2014 15:44:18 +0000]
Remove old residual file

Change-Id: I73282b85a22a07d03c82a231f53d504466154f4a

5 years agoRevert "FIX Lexer: 2 *... => 2 * ..." 40/15640/2
Antoine ELIAS [Tue, 2 Dec 2014 16:45:48 +0000]
Revert "FIX Lexer: 2 *... => 2 * ..."

This reverts commit bb48c7d4bd378d258ebdbf504ede8dba4c22c8b7.

Change-Id: Ib1da316a1fc907ecd43c1b8431a37e800f87e1c7

5 years agocopy scilab 5.5 behaviour 33/15633/1
Antoine ELIAS [Tue, 2 Dec 2014 15:06:42 +0000]
copy scilab 5.5 behaviour

Change-Id: Id8398d6527e9d7f8594cafbe78bc06e1ad6caf19

5 years agoFixes messagebox function when used in ADV-CLI mode. 32/15632/3
Vincent COUVERT [Tue, 2 Dec 2014 14:58:06 +0000]
Fixes messagebox function when used in ADV-CLI mode.
Components must be created in EDT.

To test: messagebox("Do you see me?")

Change-Id: I19cd5b736ff633ddf9d53ba1e8f070cd1c5652b0

5 years agofix clearglobal 31/15631/2
Antoine ELIAS [Tue, 2 Dec 2014 13:46:53 +0000]
fix clearglobal

clearglobal() // segfault

test_run("core","global",["no_check_error_output" ]);

Change-Id: Ib612e4a96c63d450b339c7fe2b93ecf12cdc710c

5 years agoFix test after recent modifications on display functions 30/15630/1
Vincent COUVERT [Tue, 2 Dec 2014 13:25:17 +0000]
Fix test after recent modifications on display functions

Change-Id: I8f09be48c6fc80a40ae66b6e7e9e426f29f2187f

5 years agoFixes: test_run("linear_algebra","det"); 25/15625/1
Vincent COUVERT [Tue, 2 Dec 2014 12:32:40 +0000]
Fixes: test_run("linear_algebra","det");

Change-Id: I64e5eb71a8817e33865593ff92139684a2b30ac1

5 years agoFix Windows compilation after https://codereview.scilab.org/#/c/15623/ 24/15624/1
Vincent COUVERT [Tue, 2 Dec 2014 12:27:14 +0000]
Fix Windows compilation after https://codereview.scilab.org/#/c/15623/

Change-Id: I6bad2631c9c415fcef807353bbc0aa957c6dff97

5 years agofix bug 11076 test 84/15584/3
Anais AUBERT [Mon, 24 Nov 2014 09:06:49 +0000]
fix bug 11076 test

Change-Id: I2325d759c913fa61c5b57a4e5f2546ada7d31c60

5 years agofix bug 4229 test 78/15578/2
Anais AUBERT [Fri, 21 Nov 2014 13:32:47 +0000]
fix bug 4229 test

Change-Id: If78494cbb5812fddf2785f88a481f8dd80de725e

5 years agofix bug 12170 test 76/15576/3
Anais AUBERT [Fri, 21 Nov 2014 11:07:09 +0000]
fix bug 12170 test

Change-Id: If5724f5cc436787c98d206efd1c282d8c9cf8462

5 years agofix lmisolver 69/15569/3
Anais AUBERT [Thu, 20 Nov 2014 13:17:38 +0000]
fix lmisolver

test_run("optimization","lmisolver",["no_check_error_output" ]);

Change-Id: I99a290c55a0401cc05e4e91bb03277d1a13f2a73

5 years agodisplay test : ref of types removed from diary. 14/15614/2
Cedric Delamarre [Mon, 1 Dec 2014 15:00:41 +0000]
display test : ref of types removed from diary.

test_run("core","display",["no_check_error_output" ]);

Change-Id: Iedec35879ddaafbc0311024e37e200ef41c38ba1

5 years agoformat test : get master diary. 13/15613/2
Cedric Delamarre [Mon, 1 Dec 2014 14:57:06 +0000]
format test : get master diary.

test_run("core","format",["no_check_error_output" ]);

Change-Id: I723761abf0301714d8ff1db21227691e876d9226

5 years agoFIX Lexer: 2 *... => 2 * ... 16/15616/2
Bruno JOFRET [Mon, 1 Dec 2014 16:59:14 +0000]
FIX Lexer: 2 *... => 2 * ...

Change-Id: I4bf95364d6a7ceddd064afdfa60f18eae9d4fe2e

5 years agofixes bug 2964 non-reg test: adding builder for the 'mul' option 15/15615/5
Sylvain GENIN [Mon, 1 Dec 2014 15:48:39 +0000]
fixes bug 2964 non-reg test: adding builder for the 'mul' option

test_run("randlib","bug_2964",["no_check_error_output" ]);

Change-Id: I0bb8fa6c4ece85c3b306167cdf600301dd08b636

5 years agofix spgrand for : 57/15557/7
Sylvain GENIN [Wed, 19 Nov 2014 11:14:40 +0000]
fix spgrand for :
- bug_9584
- bug_10119

test_run("randlib","bug_9584",["no_check_error_output" ]);
test_run("development_tools","bug_10119",["no_check_error_output" ]);

grand(0.0219,1,"exp",99)

Change-Id: I90b47f91f28159d5a7de37106ed27e60dc6102e0

5 years agofix bug 12606: adding of the overloading for grand function '?_grand' 23/15623/6
Sylvain GENIN [Tue, 2 Dec 2014 10:00:50 +0000]
fix bug 12606: adding of the overloading for grand function '?_grand'

valid for Windows

test_run("randlib","bug_12606",["no_check_error_output" ]);

Change-Id: I59470c64bed84c9af230f0e652c920aa19f36fbd

5 years agoTypo fixes 22/15622/1
Paul Bignier [Mon, 1 Dec 2014 16:01:46 +0000]
Typo fixes

Change-Id: Ic83cb1d1130effe8f4a32827f5ec74e663f7c7bd

5 years agoprintf fixed 11/15611/3
Cedric Delamarre [Mon, 1 Dec 2014 13:15:04 +0000]
printf fixed

printf("%s%s\n",["E";"Y";"Z";"G"],["e";"y"])

Change-Id: I0f134ef5770e3d2986a47a5a7c3a27122c4183fa

5 years agoextraction fixed 10/15610/2
Cedric Delamarre [Mon, 1 Dec 2014 11:13:11 +0000]
extraction fixed

a=12;
a("e") // segfault

Change-Id: I35bc97f6c510629cb6a4bd80ca1b3ad879cabfef

5 years ago[Not Fixed] macr2lst 05/15605/2
Cedric Delamarre [Fri, 28 Nov 2014 10:27:53 +0000]
[Not Fixed] macr2lst

Change-Id: I0bed1a3567eeda79f6eb1a94240f0849438546cb

5 years ago[Not Fixed] macr2lst 04/15604/2
Cedric Delamarre [Fri, 28 Nov 2014 09:49:02 +0000]
[Not Fixed] macr2lst

Change-Id: Id42c17d494183d9259bfa0555f690cd1763150b7

5 years agovarargout fixed 03/15603/2
Cedric Delamarre [Fri, 28 Nov 2014 09:40:34 +0000]
varargout fixed

test_run("core","varargout",["no_check_error_output" ]);

Change-Id: I546c963aea7f708f147471d16aced4145bc63e01

5 years agodisplay of complex fixed. 01/15601/3
Cedric Delamarre [Thu, 27 Nov 2014 10:54:40 +0000]
display of complex fixed.

// all values diplayed must be aligned.

g=[%i,2,3;1 %i 3;1 2 %i]

rand(3,3)
rand(3,3) + rand(3,3)*%i

test_run("core","basic_operations",["no_check_error_output" ]);

Change-Id: I40bf253b558eea466c93cfc80190920f028a14eb

5 years agotest of who updated for YaSp. 99/15599/2
Cedric Delamarre [Thu, 27 Nov 2014 09:57:26 +0000]
test of who updated for YaSp.

Change-Id: Ida9f43cd6a10ef8b189b73f3dcc8148199d052f7

5 years agodotpower with poly and scal_vect_mat test fixed. 98/15598/4
Cedric Delamarre [Thu, 27 Nov 2014 09:02:37 +0000]
dotpower with poly and scal_vect_mat test fixed.

x1=[1 %s+1 %s.^3+1];
x1.^2

test_run("core","scal_vect_mat",["no_check_error_output" ]);

Change-Id: Icb0fcb4bc52e2c06d61f6922be555901c60c13f5

5 years agoerrcatch and iserror functions removed from YaSp. 96/15596/2
Cedric Delamarre [Wed, 26 Nov 2014 14:43:51 +0000]
errcatch and iserror functions removed from YaSp.

Change-Id: I4415c658eec6ab3a38ab1ad3cf4c72fe20b6c1f4

5 years agodisplay of some types and lines function fixed. 87/15587/10
Cedric Delamarre [Tue, 25 Nov 2014 08:34:29 +0000]
display of some types and lines function fixed.

digits='abcdefghijklmnopqrstuvwxyz';
numbers='1234567890';
txt = [numbers numbers; digits+digits+digits digits+digits+digits]
[txt' txt']

lines(0,50)
numbers='1234567890';
txt = [numbers numbers; digits+digits+digits digits+digits+digits]
[txt' txt']

lines(0,24);
format(25);
%pi
[%pi %pi]

test_run("core","display",["no_check_error_output" ]);

// lines fixed
oldLines = lines()
lines(0,50)
lines(oldLines)

Change-Id: Ia43c309cf2b9b4b6d194a9dc937d7ccf34737f3e

5 years agomatelm test fixed. 79/15579/2
Cedric Delamarre [Fri, 21 Nov 2014 15:02:03 +0000]
matelm test fixed.

int(%s+%i)
ceil(%s+%i)
floor(%s+%i)

test_run("core","matelm",["no_check_error_output" ]);

Change-Id: I28d6e441b92169bc220531e0a565726f0c29d123

5 years agofptr test fixed 77/15577/3
Cedric Delamarre [Fri, 21 Nov 2014 12:50:01 +0000]
fptr test fixed

test_run("core","fptr",["no_check_error_output" ]);

Change-Id: I4c45d56271cb71b5eacb883a377374257ff5c1ba

5 years agoexec : management of macro and macrofile. 55/11555/8
Cedric Delamarre [Wed, 22 May 2013 07:52:57 +0000]
exec : management of macro and macrofile.

Change-Id: Ia440a19553312f9a658dd0f2d2992abc971fb492

5 years agofix bug_6690: up date random permutations 80/15580/8
Sylvain GENIN [Fri, 21 Nov 2014 16:40:17 +0000]
fix bug_6690: up date random permutations

test_run("randlib","bug_6690",["no_check_error_output" ]);

Change-Id: Id6cc7bd5dc180e89f2b500e09bd0e59da9b8ceff

5 years agodisplay refs only in debug. 02/15602/1
Cedric Delamarre [Thu, 27 Nov 2014 14:10:51 +0000]
display refs only in debug.

Change-Id: I9f74ca43a07b73d0c78d753ba9c308f4ba33d691

5 years agoupdated bug 11996 test 90/15490/2
Anais AUBERT [Thu, 6 Nov 2014 08:40:44 +0000]
updated bug 11996 test

Change-Id: I8622f451e8c01a59347af43144283ef550fb6acf

5 years agoXcos MVC: allow empty matrix in 'equations' 73/15573/3
Paul Bignier [Thu, 20 Nov 2014 13:52:12 +0000]
Xcos MVC: allow empty matrix in 'equations'

 --> loadXcosLibs();
 --> exec("SCI/test/xcos/Boost_Converter.cosf", -1);
 --> exec("SCI/test/xcos/Colpitts_Oscillator.cosf", -1);
 --> exec("SCI/test/xcos/DC_DC_Buck_Converter.cosf", -1);
 --> exec("SCI/test/xcos/Switched_capacitor_integrator.cosf", -1);

Change-Id: I7cafaff1bc6239df4b87d43646b5aec486e7bfe2

5 years agoXcos MVC: properly handle implicit links, extend 'equations' 70/15570/4
Paul Bignier [Thu, 20 Nov 2014 13:22:41 +0000]
Xcos MVC: properly handle implicit links, extend 'equations'

 * Properly separate implicit ports from explicit ones
 * When linking to an already linked port, just disconnect the link that was connected to it
 * Allow real matrices in parameters values field of 'equations' property

Change-Id: I255354b36d3eb23871a61dd043649de5873c8f85

5 years agoXcos MVC: fix for 'opar' and 'odstate' properties 41/15541/7
Paul Bignier [Tue, 18 Nov 2014 10:39:33 +0000]
Xcos MVC: fix for 'opar' and 'odstate' properties

 * Copied only parts of integers. Now using buffers to fully fill the storage integers

 --> loadXcosLibs();
 --> exec("SCI/test/xcos/SRFLIPFLOP_en_US.cosf", -1);

Change-Id: I4f93fc34583dbc34024771e5cb2af24c0e44d290

5 years agoXcos MVC: allow passing mlists to 'objs' 56/15556/4
Paul Bignier [Wed, 19 Nov 2014 11:01:15 +0000]
Xcos MVC: allow passing mlists to 'objs'

 * 'objs' can now receive Annotations as mlists
 * This way, all objects of LV.cosf are properly deleted
 * For Text blocks, allow 'orig', 'sz' and 'exprs' to be defined either in row or column vectors

Change-Id: I4a3ed77ba4210034fc6f350e5b2f4a902c6e42b2

5 years agoXcos MVC: fixes to load LV.cosf 52/15552/4
Paul Bignier [Tue, 18 Nov 2014 16:03:22 +0000]
Xcos MVC: fixes to load LV.cosf

 * Allow 'orig', 'sz' and 'exprs' properties to be defined either in row or column vectors
 * Allow the last 'tol' parameter to be missing (defaults to 0)
 * Ignore the superfluous 'in_implicit' and 'out_implicit' parameters

 --> loadXcosLibs();
 --> exec("SCI/test/xcos/LV.cosf",-1)

Change-Id: Ifa276e546f5420479f495f513a5f318b5e93f814

5 years agoXcos MVC tests: regenerate to satisfy display 74/15574/2
Paul Bignier [Thu, 20 Nov 2014 14:19:18 +0000]
Xcos MVC tests: regenerate to satisfy display

Change-Id: Id57264c74f1c3d3f91f91931976b153e15de25fc

5 years agowindows : fix installation with module fftw 72/15572/2
Antoine ELIAS [Thu, 20 Nov 2014 13:55:20 +0000]
windows : fix installation with module fftw

Change-Id: Id1e1e47a5eaf3435b44af22bae3e14a99eab0f7a

5 years agoactive fftw module 71/15571/2
Antoine ELIAS [Thu, 20 Nov 2014 12:58:03 +0000]
active fftw module

Change-Id: Ibd5f020b458ba5365873597e925e94657546cfdd

5 years agoAST: preserve symbol destruction order across runs 51/15551/2
Clément DAVID [Tue, 18 Nov 2014 15:37:34 +0000]
AST: preserve symbol destruction order across runs

Before this modification, display on scicos tests are not reproductible
as we log destruction order. Preserving the insertion / deletion order
let the user expect the same behavior on each run.

Change-Id: I3da6338675a68f733574b674844f00a8b53d50b2

5 years agoadd isRelease and isDebug macros, ilib_compile take care of scilab compilation mode 67/15567/2
Antoine ELIAS [Thu, 20 Nov 2014 10:29:59 +0000]
add isRelease and isDebug macros, ilib_compile take care of scilab compilation mode

Change-Id: I31a5894375fa57c208c499320f01cc03f9762807

5 years agofix mpi compilation ( not working but compile ) 68/15568/2
Antoine ELIAS [Thu, 20 Nov 2014 12:13:25 +0000]
fix mpi compilation ( not working but compile )

Change-Id: I9e736c11c887c292d66c8d8f6df35d648da5f205

5 years agoUserType print. 08/15508/10
Cedric Delamarre [Mon, 10 Nov 2014 09:45:09 +0000]
UserType print.

test_run("ast","newtype","no_check_error_output");

Change-Id: I4a0a3d3e79d54336133952cc1a1b289d1a533aac

5 years agocomp removed from YaSp. 50/11550/3
Cedric Delamarre [Mon, 20 May 2013 14:06:06 +0000]
comp removed from YaSp.

Change-Id: Iad3fd1473e673401a829c28910d943069b02de21

5 years agofix string test : 59/15559/4
Antoine ELIAS [Fri, 14 Nov 2014 12:55:56 +0000]
fix string test :

 - string(:)
 - string(1:$)
 - ascii("...") must return positive values
 - change tests on macr2tree in not fixed
 - length(sparse) -> return size(sparse, "*")

Change-Id: I6e4b30f5b4ac98658130d01ee0bd16bc47bb08f6

5 years agoFix include paths 64/15564/2
Vincent COUVERT [Wed, 19 Nov 2014 16:05:06 +0000]
Fix include paths

Change-Id: Ia2713fd83ea9a64edff2a4a4eed092803d5e89ad

5 years agofix ldivision with inf and nan 63/15563/4
Anais AUBERT [Wed, 19 Nov 2014 15:55:42 +0000]
fix ldivision with inf and nan

test_run("linear_algebra","bug_2523",["no_check_error_output" ]);

Change-Id: I6cfc8b9338216100731ddbedabcdae357f67169b

5 years agodotDivide scalar complex by matrix fixed. 62/15562/2
Cedric Delamarre [Wed, 19 Nov 2014 15:30:50 +0000]
dotDivide scalar complex by matrix fixed.

// should return a matrix 3x2
2*%i ./ rand(3,2)

test_run("core","QR",["no_check_error_output" ]);

Change-Id: I724e439cb8f013f894383d05147b0ae9bfda494e

5 years agoclear : test and function fixed 61/15561/2
Cedric Delamarre [Wed, 19 Nov 2014 15:03:32 +0000]
clear : test and function fixed

Change-Id: Id23b2dac88f2f6caff5982f36a8e0c6118043464

5 years agoright divide Poly/Double fixed. 60/15560/3
Cedric Delamarre [Wed, 19 Nov 2014 13:29:39 +0000]
right divide Poly/Double fixed.

[%s %s] / [1 2; 3 4]

Change-Id: I957280be650908b19747496039504d4dba4b521b

5 years agocatch error in OpExp to DecreaseRef. 58/15558/2
Cedric Delamarre [Wed, 19 Nov 2014 11:20:11 +0000]
catch error in OpExp to DecreaseRef.

Change-Id: I57bb91826ab9757a51e323f4fad70d8d77ef15c4

5 years agolusolve : bad error message. 54/15554/5
Anais AUBERT [Wed, 19 Nov 2014 09:00:38 +0000]
lusolve : bad error message.

//error must be displayed
non_zeros=[1,2,3,4,5];
rows_cols=[1,1;2,2;3,3;4,4;5,5];
sp=sparse(rows_cols,non_zeros);
[h,rk]=lufact(sp);
x=lusolve(h,[1;1;1;1])

Change-Id: Ibbf70e330649b31476a31ff6f3fdc6efc05ec119