Scilab: fix examples (no paging which stops tests)
This commit is contained in:
parent
0fc9e4d0a4
commit
62b61b5349
15 changed files with 21 additions and 19 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// loader the *.so
|
||||
lines(0);
|
||||
exec loader.sce;
|
||||
|
||||
// ----- Object creation -----
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// loader the *.so
|
||||
lines(0);
|
||||
exec loader.sce;
|
||||
|
||||
printf("ICONST = %i (should be 42)\n", ICONST_get());
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// loader the *.so
|
||||
lines(0);
|
||||
exec loader.sce;
|
||||
|
||||
// Call our gcd() function
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// loader the *.so
|
||||
lines(0);
|
||||
exec loader.sce;
|
||||
|
||||
// Print out the value of some enums
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// loader the *.so
|
||||
lines(0);
|
||||
exec loader.sce;
|
||||
|
||||
a = 37
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// loader the *.so
|
||||
exec loader.sce
|
||||
lines(0);
|
||||
exec loader.sce;
|
||||
|
||||
// create a new matrix
|
||||
x = new_matrix();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
exec loader.sce
|
||||
lines(0);
|
||||
exec loader.sce;
|
||||
|
||||
// Test lib double matrix functions
|
||||
disp("Call lib function getDoubleMatrix()");
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// loader the *.so
|
||||
exec loader.sce
|
||||
lines(0);
|
||||
exec loader.sce;
|
||||
|
||||
// First create some objects using the pointer library.
|
||||
printf("Testing the pointer library\n")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// loader the *.so
|
||||
lines(0);
|
||||
exec loader.sce;
|
||||
|
||||
// Call our gcd() function
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
lines(0);
|
||||
exec loader.sce;
|
||||
SWIG_Init();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// file: runme.sci
|
||||
lines(0);
|
||||
exec loader.sce;
|
||||
SWIG_Init();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
lines(0);
|
||||
exec loader.sce;
|
||||
SWIG_Init();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
//loader the *.so
|
||||
exec loader.sce
|
||||
lines(0);
|
||||
exec loader.sce;
|
||||
|
||||
//create a struct
|
||||
a=new_Bar();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
lines(0);
|
||||
exec loader.sce;
|
||||
|
||||
function printShape(shape, name)
|
||||
printf("\nShape %s position:\n", name);
|
||||
printf(" (x, y) = (%f, %f)\n", ShapeDouble_x_get(shape), ShapeDouble_y_get(shape))
|
||||
|
|
@ -9,8 +12,6 @@ function printShape(shape, name)
|
|||
printf("\n");
|
||||
endfunction
|
||||
|
||||
exec loader.sce;
|
||||
|
||||
printf("Creating some objects:\n");
|
||||
c = new_CircleDouble(10);
|
||||
s = new_SquareDouble(10);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
lines(0);
|
||||
|
||||
//loader the *.so
|
||||
exec loader.sce
|
||||
exec loader.sce;
|
||||
|
||||
// Try to set the values of some global variables
|
||||
ivar_set(42);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue