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;
|
exec loader.sce;
|
||||||
|
|
||||||
// ----- Object creation -----
|
// ----- Object creation -----
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// loader the *.so
|
lines(0);
|
||||||
exec loader.sce;
|
exec loader.sce;
|
||||||
|
|
||||||
printf("ICONST = %i (should be 42)\n", ICONST_get());
|
printf("ICONST = %i (should be 42)\n", ICONST_get());
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// loader the *.so
|
lines(0);
|
||||||
exec loader.sce;
|
exec loader.sce;
|
||||||
|
|
||||||
// Call our gcd() function
|
// Call our gcd() function
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// loader the *.so
|
lines(0);
|
||||||
exec loader.sce;
|
exec loader.sce;
|
||||||
|
|
||||||
// Print out the value of some enums
|
// Print out the value of some enums
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// loader the *.so
|
lines(0);
|
||||||
exec loader.sce;
|
exec loader.sce;
|
||||||
|
|
||||||
a = 37
|
a = 37
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// loader the *.so
|
lines(0);
|
||||||
exec loader.sce
|
exec loader.sce;
|
||||||
|
|
||||||
// create a new matrix
|
// create a new matrix
|
||||||
x = new_matrix();
|
x = new_matrix();
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
exec loader.sce
|
lines(0);
|
||||||
|
exec loader.sce;
|
||||||
|
|
||||||
// Test lib double matrix functions
|
// Test lib double matrix functions
|
||||||
disp("Call lib function getDoubleMatrix()");
|
disp("Call lib function getDoubleMatrix()");
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// loader the *.so
|
lines(0);
|
||||||
exec loader.sce
|
exec loader.sce;
|
||||||
|
|
||||||
// First create some objects using the pointer library.
|
// First create some objects using the pointer library.
|
||||||
printf("Testing the pointer library\n")
|
printf("Testing the pointer library\n")
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// loader the *.so
|
lines(0);
|
||||||
exec loader.sce;
|
exec loader.sce;
|
||||||
|
|
||||||
// Call our gcd() function
|
// Call our gcd() function
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
lines(0);
|
||||||
exec loader.sce;
|
exec loader.sce;
|
||||||
SWIG_Init();
|
SWIG_Init();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// file: runme.sci
|
lines(0);
|
||||||
exec loader.sce;
|
exec loader.sce;
|
||||||
SWIG_Init();
|
SWIG_Init();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
lines(0);
|
||||||
exec loader.sce;
|
exec loader.sce;
|
||||||
SWIG_Init();
|
SWIG_Init();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
//loader the *.so
|
lines(0);
|
||||||
exec loader.sce
|
exec loader.sce;
|
||||||
|
|
||||||
//create a struct
|
//create a struct
|
||||||
a=new_Bar();
|
a=new_Bar();
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
lines(0);
|
||||||
|
exec loader.sce;
|
||||||
|
|
||||||
function printShape(shape, name)
|
function printShape(shape, name)
|
||||||
printf("\nShape %s position:\n", name);
|
printf("\nShape %s position:\n", name);
|
||||||
printf(" (x, y) = (%f, %f)\n", ShapeDouble_x_get(shape), ShapeDouble_y_get(shape))
|
printf(" (x, y) = (%f, %f)\n", ShapeDouble_x_get(shape), ShapeDouble_y_get(shape))
|
||||||
|
|
@ -9,8 +12,6 @@ function printShape(shape, name)
|
||||||
printf("\n");
|
printf("\n");
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
exec loader.sce;
|
|
||||||
|
|
||||||
printf("Creating some objects:\n");
|
printf("Creating some objects:\n");
|
||||||
c = new_CircleDouble(10);
|
c = new_CircleDouble(10);
|
||||||
s = new_SquareDouble(10);
|
s = new_SquareDouble(10);
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
|
exec loader.sce;
|
||||||
//loader the *.so
|
|
||||||
exec loader.sce
|
|
||||||
|
|
||||||
// Try to set the values of some global variables
|
// Try to set the values of some global variables
|
||||||
ivar_set(42);
|
ivar_set(42);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue