Scilab: fix examples (no paging which stops tests)

This commit is contained in:
Simon Marchetto 2013-08-20 10:26:08 +02:00
commit 62b61b5349
15 changed files with 21 additions and 19 deletions

View file

@ -1,4 +1,4 @@
// loader the *.so lines(0);
exec loader.sce; exec loader.sce;
// ----- Object creation ----- // ----- Object creation -----

View file

@ -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());

View file

@ -1,4 +1,4 @@
// loader the *.so lines(0);
exec loader.sce; exec loader.sce;
// Call our gcd() function // Call our gcd() function

View file

@ -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

View file

@ -1,4 +1,4 @@
// loader the *.so lines(0);
exec loader.sce; exec loader.sce;
a = 37 a = 37

View file

@ -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();

View file

@ -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()");

View file

@ -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")

View file

@ -1,4 +1,4 @@
// loader the *.so lines(0);
exec loader.sce; exec loader.sce;
// Call our gcd() function // Call our gcd() function

View file

@ -1,3 +1,4 @@
lines(0);
exec loader.sce; exec loader.sce;
SWIG_Init(); SWIG_Init();

View file

@ -1,4 +1,4 @@
// file: runme.sci lines(0);
exec loader.sce; exec loader.sce;
SWIG_Init(); SWIG_Init();

View file

@ -1,3 +1,4 @@
lines(0);
exec loader.sce; exec loader.sce;
SWIG_Init(); SWIG_Init();

View file

@ -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();

View file

@ -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);

View file

@ -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);