* Bug 7657 fixed: lstsize() actual removal 98/19798/5
Samuel GOUGEON [Sat, 24 Feb 2018 18:28:31 +0000 (19:28 +0100)]
  http://bugzilla.scilab.org/7657

  - Code already cleaned in https://codereview.scilab.org/19508
  - scilab_macros.txt and DeprecatedChecker.cpp already OK

Change-Id: I29005269848fb5ca78fffe341c63e40c05b2b92c

scilab/CHANGES.md
scilab/modules/data_structures/help/en_US/lstsize.xml [deleted file]
scilab/modules/data_structures/help/fr_FR/lstsize.xml [deleted file]
scilab/modules/data_structures/help/ja_JP/lstsize.xml [deleted file]
scilab/modules/data_structures/help/pt_BR/lstsize.xml [deleted file]
scilab/modules/data_structures/help/ru_RU/lstsize.xml [deleted file]
scilab/modules/data_structures/macros/lstsize.sci [deleted file]
scilab/modules/xcos/tests/nonreg_tests/bug_15149.tst

index a0d30bd..fe0b712 100644 (file)
@@ -180,6 +180,7 @@ Removed Functions
 * `getPreferencesValue` was obsolete and has been removed. Please use `xmlGetValues` instead.
 * `eval` was obsolete and has been removed. Please use `evstr` instead.
 * `hypermat` was obsolete and has been removed. Please use `matrix` instead.
+* `lstsize` was obsolete and has been removed. Please use `size` instead.
 * `square` was obsolete and has been removed.
 * `xgetech` was obsolete and has been removed. Please use `gca` instead.
 
@@ -193,6 +194,7 @@ Bug Fixes
 
 ### Bugs fixed in 6.1.0:
 * [#2694](http://bugzilla.scilab.org/show_bug.cgi?id=2694): `bitget` did not accept positive integers of types int8, int16 or int32.
+* [#7657](http://bugzilla.scilab.org/show_bug.cgi?id=7657): `lstsize` was a duplicate of `size` and should be removed.
 * [#7724](http://bugzilla.scilab.org/show_bug.cgi?id=7724): When a figure is created in .auto_resize="on" mode, its .axes_size sets its .figure_size accordingly, not the reverse. But this was not documented.
 * [#7765](http://bugzilla.scilab.org/show_bug.cgi?id=7765): `champ1()` is useless. `champ().colored` is available for a long time.
 * [#7967](http://bugzilla.scilab.org/show_bug.cgi?id=7967): The tricky size `[ny,nx]` of `meshgrid(x,y)` results and usages with graphics was not enough documented.
diff --git a/scilab/modules/data_structures/help/en_US/lstsize.xml b/scilab/modules/data_structures/help/en_US/lstsize.xml
deleted file mode 100644 (file)
index e8f36a0..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) 2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
-          xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml"
-          xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
-          xmlns:scilab="http://www.scilab.org" xml:id="lstsize" xml:lang="en">
-    <refnamediv>
-        <refname>lstsize</refname>
-        <refpurpose>list, tlist, mlist numbers of entries <emphasis role="bold">(obsolete)</emphasis>
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Syntax</title>
-        <synopsis>n=lstsize(l)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>l</term>
-                <listitem>
-                    <para>a list, tlist or mlist object</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>n</term>
-                <listitem>
-                    <para>an integer, the number of entries</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <literal>lstsize(l)</literal> returns the number of entries for
-            list, list, mlist objects. This function is more efficient than the
-            <literal>size</literal> function and works similarly with all list types
-            while <literal>size</literal> is overloaded for <literal>mlist</literal>
-            objects.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[
-lstsize(list(1,'aqsdf'))
-x=ssrand(3,2,4);
-[ny,nu]=size(x)
-lstsize(x)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="length">length</link>
-            </member>
-            <member>
-                <link linkend="size">size</link>
-            </member>
-            <member>
-                <link linkend="list">list</link>
-            </member>
-            <member>
-                <link linkend="tlist">tlist</link>
-            </member>
-            <member>
-                <link linkend="mlist">mlist</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection role="history">
-        <title>History</title>
-        <revhistory>
-            <revision>
-                <revnumber>6.0.1</revnumber>
-                <revdescription>
-                    <literal>lstsize()</literal> is declared obsolete, to be removed from Scilab 6.1.
-                    Please use <literal>size()</literal> instead.
-                </revdescription>
-            </revision>
-        </revhistory>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/data_structures/help/fr_FR/lstsize.xml b/scilab/modules/data_structures/help/fr_FR/lstsize.xml
deleted file mode 100644 (file)
index b4ab335..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
-          xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml"
-          xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
-          xmlns:scilab="http://www.scilab.org" xml:id="lstsize" xml:lang="fr">
-    <refnamediv>
-        <refname>lstsize</refname>
-        <refpurpose>nombre d'éléments des objets list, tlist et mlist   <emphasis role="bold">(obsolète)</emphasis>
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Séquence d'appel</title>
-        <synopsis>n=lstsize(l)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Paramètres</title>
-        <variablelist>
-            <varlistentry>
-                <term>l</term>
-                <listitem>
-                    <para>un object de type list, tlist ou mlist</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>n</term>
-                <listitem>
-                    <para>un entier, le nombre d'éléments de la liste</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <literal>lstsize(x)</literal> retourne le nombre d'élément d'un
-            objet de type list, tlist ou mlist. Cette fonction est plus efficace que
-            la fonction <literal>size</literal> et à la même signification pour tous
-            les objets de type list tandis que <literal>size</literal> est surcharge
-            pour les objets de type <literal>mlist</literal>.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemples</title>
-        <programlisting role="example"><![CDATA[
-lstsize(list(1,'aqsdf'))
-x=ssrand(3,2,4);
-[ny,nu]=size(x)
-lstsize(x)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Voir aussi</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="length">length</link>
-            </member>
-            <member>
-                <link linkend="size">size</link>
-            </member>
-            <member>
-                <link linkend="list">list</link>
-            </member>
-            <member>
-                <link linkend="tlist">tlist</link>
-            </member>
-            <member>
-                <link linkend="mlist">mlist</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection role="history">
-        <title>Historique</title>
-        <revhistory>
-            <revision>
-                <revnumber>6.0.1</revnumber>
-                <revdescription>
-                    <literal>lstsize()</literal> est déclarée obsolète, pour un retrait de Scilab 6.1.
-                    Elle est remplacée par <literal>size()</literal>.
-                </revdescription>
-            </revision>
-        </revhistory>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/data_structures/help/ja_JP/lstsize.xml b/scilab/modules/data_structures/help/ja_JP/lstsize.xml
deleted file mode 100644 (file)
index c8cc5a9..0000000
+++ /dev/null
@@ -1,162 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) 2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- *
- -->
-
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
-          xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml"
-          xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
-          xmlns:scilab="http://www.scilab.org" xml:id="lstsize" xml:lang="ja">
-
-    <refnamediv>
-
-        <refname>lstsize</refname>
-
-        <refpurpose>list, tlist, mlist エントリの数   <emphasis role="bold">(obsolete)</emphasis>
-        </refpurpose>
-
-    </refnamediv>
-
-    <refsynopsisdiv>
-
-        <title>呼び出し手順</title>
-
-        <synopsis>n=lstsize(x)</synopsis>
-
-    </refsynopsisdiv>
-
-    <refsection>
-
-        <title>引数</title>
-
-        <variablelist>
-
-            <varlistentry>
-
-                <term>l</term>
-
-                <listitem>
-
-                    <para>list, tlist または mlist オブジェクト</para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>n</term>
-
-                <listitem>
-
-                    <para>整数, エントリの数</para>
-
-                </listitem>
-
-            </varlistentry>
-
-        </variablelist>
-
-    </refsection>
-
-    <refsection>
-
-        <title>説明</title>
-
-        <para>
-
-            <literal>lstsize(x)</literal> はlist, list, mlistオブジェクト
-
-            のエントリの数を返します.
-
-            この関数は <literal>size</literal>よりも効率的で
-
-            全てのリスト型で類似の動作をします.
-
-            この際,<literal>size</literal>は<literal>mlist</literal>
-
-            オブジェクト用にオーバーロードされます.
-
-        </para>
-
-    </refsection>
-
-    <refsection>
-
-        <title>例</title>
-
-        <programlisting role="example"><![CDATA[
-lstsize(list(1,'aqsdf'))
-x=ssrand(3,2,4);
-[ny,nu]=size(x)
-lstsize(x)
- ]]></programlisting>
-
-    </refsection>
-
-    <refsection role="see also">
-
-        <title>参照</title>
-
-        <simplelist type="inline">
-
-            <member>
-
-                <link linkend="length">length</link>
-
-            </member>
-
-            <member>
-
-                <link linkend="size">size</link>
-
-            </member>
-
-            <member>
-
-                <link linkend="list">list</link>
-
-            </member>
-
-            <member>
-
-                <link linkend="tlist">tlist</link>
-
-            </member>
-
-            <member>
-
-                <link linkend="mlist">mlist</link>
-
-            </member>
-
-        </simplelist>
-
-    </refsection>
-    <refsection role="history">
-        <title>履歴</title>
-        <revhistory>
-            <revision>
-                <revnumber>6.0.1</revnumber>
-                <revdescription>
-                    <literal>lstsize()</literal> is declared obsolete, to be removed from Scilab 6.1.
-                    Please use <literal>size()</literal> instead.
-                </revdescription>
-            </revision>
-        </revhistory>
-    </refsection>
-
-</refentry>
-
diff --git a/scilab/modules/data_structures/help/pt_BR/lstsize.xml b/scilab/modules/data_structures/help/pt_BR/lstsize.xml
deleted file mode 100644 (file)
index 0ec3cb3..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) 2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
-          xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml"
-          xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
-          xmlns:scilab="http://www.scilab.org" xml:id="lstsize" xml:lang="pt">
-    <refnamediv>
-        <refname>lstsize</refname>
-        <refpurpose>números de entradas de uma lista, tlist ou mlist   <emphasis role="bold">(obsolete)</emphasis>
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Seqüência de Chamamento</title>
-        <synopsis>n=lstsize(x)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Parâmetros</title>
-        <variablelist>
-            <varlistentry>
-                <term>l</term>
-                <listitem>
-                    <para>uma lista, tlist ou mlist </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>n</term>
-                <listitem>
-                    <para>um inteiro, número de entradas</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Descrição</title>
-        <para>
-            <literal>lstsize(x)</literal> retorna o número de entradas de uma
-            lista, tlist ou mlist. Esta função é mais eficiente que a função
-            <literal>size</literal> e opera de modo semelhante para todos os tipos de
-            listas, enquanto a função <literal>size</literal> fica sobrecarregada para
-            <literal>mlist</literal>'s.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[
-lstsize(list(1,'aqsdf'))
-x=ssrand(3,2,4);
-[ny,nu]=size(x)
-lstsize(x)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Ver Também</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="length">length</link>
-            </member>
-            <member>
-                <link linkend="size">size</link>
-            </member>
-            <member>
-                <link linkend="list">list</link>
-            </member>
-            <member>
-                <link linkend="tlist">tlist</link>
-            </member>
-            <member>
-                <link linkend="mlist">mlist</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection role="history">
-        <title>Histórico</title>
-        <revhistory>
-            <revision>
-                <revnumber>6.0.1</revnumber>
-                <revdescription>
-                    <literal>lstsize()</literal> is declared obsolete, to be removed from Scilab 6.1.
-                    Please use <literal>size()</literal> instead.
-                </revdescription>
-            </revision>
-        </revhistory>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/data_structures/help/ru_RU/lstsize.xml b/scilab/modules/data_structures/help/ru_RU/lstsize.xml
deleted file mode 100644 (file)
index 563da59..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) 2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
-          xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml"
-          xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
-          xmlns:scilab="http://www.scilab.org" xml:id="lstsize" xml:lang="ru">
-    <refnamediv>
-        <refname>lstsize</refname>
-        <refpurpose>количество элементов list, tlist, mlist   <emphasis role="bold">(obsolete)</emphasis>
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Синтаксис</title>
-        <synopsis>n=lstsize(l)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Аргументы</title>
-        <variablelist>
-            <varlistentry>
-                <term>l</term>
-                <listitem>
-                    <para>объект список (list), типизированный список (tlist) или матрично-ориентированный список (mlist)</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>n</term>
-                <listitem>
-                    <para>целое число, количество элементов</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Описание</title>
-        <para>
-            <literal>lstsize(l)</literal> возвращает количество элементов для объектов
-            списка (list), типизированного списка (tlist) или матрично-ориентированного
-            списка (mlist). Эта функция гораздо эффективнее, чем функция
-            <literal>size</literal> и работает одинаково со всеми типами списка, в то
-            время как <literal>size</literal> перегружается для объектов матрично-ориентированного
-            списка (<literal>mlist</literal>).
-        </para>
-    </refsection>
-    <refsection>
-        <title>Примеры</title>
-        <programlisting role="example"><![CDATA[
-lstsize(list(1,'aqsdf'))
-x=ssrand(3,2,4);
-[ny,nu]=size(x)
-lstsize(x)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Смотрите также</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="length">length</link>
-            </member>
-            <member>
-                <link linkend="size">size</link>
-            </member>
-            <member>
-                <link linkend="list">list</link>
-            </member>
-            <member>
-                <link linkend="tlist">tlist</link>
-            </member>
-            <member>
-                <link linkend="mlist">mlist</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection role="history">
-        <title>История</title>
-        <revhistory>
-            <revision>
-                <revnumber>6.0.1</revnumber>
-                <revdescription>
-                    <literal>lstsize()</literal> is declared obsolete, to be removed from Scilab 6.1.
-                    Please use <literal>size()</literal> instead.
-                </revdescription>
-            </revision>
-        </revhistory>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/data_structures/macros/lstsize.sci b/scilab/modules/data_structures/macros/lstsize.sci
deleted file mode 100644 (file)
index 449d91f..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2012 - Scilab Enterprises - Antoine ELIAS
-//
-// Copyright (C) 2012 - 2016 - Scilab Enterprises
-//
-// This file is hereby licensed under the terms of the GNU GPL v2.0,
-// pursuant to article 5.3.4 of the CeCILL v.2.1.
-// This file was originally licensed under the terms of the CeCILL v2.1,
-// and continues to be available under such terms.
-// For more information, see the COPYING file which you should have received
-// along with this program.
-
-
-function l=lstsize(varargin)
-    warnobsolete("size()","6.1");
-    [lhs, rhs] = argn(0);
-    if lhs <> 1 then
-        error(msprintf(_("%s: Wrong number of output arguments: %d expected.\n"), "lstsize", 1));
-    end
-
-    if rhs <> 1 then
-        error(msprintf(_("%s: Wrong number of input arguments: %d expected.\n"), "lstsize", 1));
-    end
-
-
-    var = varargin(1);
-    if type(var) <> 15 & type(var) <> 16 & type(var) <> 17 then
-        error(msprintf(_("%s: Wrong type for argument %d: List expected.\n"), "lstsize", 1));
-    end
-
-    l = size(var);
-endfunction
index 64d19c5..0de695e 100644 (file)
@@ -30,11 +30,11 @@ scs_m2 = xcosDiagramToScilab("TMPDIR/foo.zcos");
 scs_m3 = xcosDiagramToScilab("TMPDIR/foo.zcos");
 
 // check that objs have the same size
-assert_checkequal(lstsize(scs_m1.objs), lstsize(scs_m2.objs));
-assert_checkequal(lstsize(scs_m1.objs), lstsize(scs_m3.objs));
+assert_checkequal(size(scs_m1.objs), size(scs_m2.objs));
+assert_checkequal(size(scs_m1.objs), size(scs_m3.objs));
 
 // check that all blocks are connected
-for i=1:lstsize(scs_m1.objs)
+for i=1:size(scs_m1.objs)
     o = scs_m1.objs(i);
     if typeof(o) == "Block" then
         assert_checktrue(o.graphics.pin <> 0);
@@ -43,7 +43,7 @@ for i=1:lstsize(scs_m1.objs)
         assert_checktrue(o.graphics.peout <> 0);
     end
 end
-for i=1:lstsize(scs_m2.objs)
+for i=1:size(scs_m2.objs)
     o = scs_m2.objs(i);
     if typeof(o) == "Block" then
         assert_checktrue(o.graphics.pin <> 0);
@@ -52,7 +52,7 @@ for i=1:lstsize(scs_m2.objs)
         assert_checktrue(o.graphics.peout <> 0);
     end
 end
-for i=1:lstsize(scs_m3.objs)
+for i=1:size(scs_m3.objs)
     o = scs_m3.objs(i);
     if typeof(o) == "Block" then
         assert_checktrue(o.graphics.pin <> 0);
@@ -70,11 +70,11 @@ end
 scicos_simulate(scs_m1, "nw");
 
 // check that objs have the same size
-assert_checkequal(lstsize(scs_m1.objs), lstsize(scs_m2.objs));
-assert_checkequal(lstsize(scs_m1.objs), lstsize(scs_m3.objs));
+assert_checkequal(size(scs_m1.objs), size(scs_m2.objs));
+assert_checkequal(size(scs_m1.objs), size(scs_m3.objs));
 
 // check that all blocks are connected
-for i=1:lstsize(scs_m1.objs)
+for i=1:size(scs_m1.objs)
     o = scs_m1.objs(i);
     if typeof(o) == "Block" then
         assert_checktrue(o.graphics.pin <> 0);
@@ -83,7 +83,7 @@ for i=1:lstsize(scs_m1.objs)
         assert_checktrue(o.graphics.peout <> 0);
     end
 end
-for i=1:lstsize(scs_m2.objs)
+for i=1:size(scs_m2.objs)
     o = scs_m2.objs(i);
     if typeof(o) == "Block" then
         assert_checktrue(o.graphics.pin <> 0);
@@ -92,7 +92,7 @@ for i=1:lstsize(scs_m2.objs)
         assert_checktrue(o.graphics.peout <> 0);
     end
 end
-for i=1:lstsize(scs_m3.objs)
+for i=1:size(scs_m3.objs)
     o = scs_m3.objs(i);
     if typeof(o) == "Block" then
         assert_checktrue(o.graphics.pin <> 0);
@@ -106,11 +106,11 @@ end
 scicos_simulate(scs_m2, "nw");
 
 // check that objs have the same size
-assert_checkequal(lstsize(scs_m1.objs), lstsize(scs_m2.objs));
-assert_checkequal(lstsize(scs_m1.objs), lstsize(scs_m3.objs));
+assert_checkequal(size(scs_m1.objs), size(scs_m2.objs));
+assert_checkequal(size(scs_m1.objs), size(scs_m3.objs));
 
 // check that all blocks are connected
-for i=1:lstsize(scs_m1.objs)
+for i=1:size(scs_m1.objs)
     o = scs_m1.objs(i);
     if typeof(o) == "Block" then
         assert_checktrue(o.graphics.pin <> 0);
@@ -119,7 +119,7 @@ for i=1:lstsize(scs_m1.objs)
         assert_checktrue(o.graphics.peout <> 0);
     end
 end
-for i=1:lstsize(scs_m2.objs)
+for i=1:size(scs_m2.objs)
     o = scs_m2.objs(i);
     if typeof(o) == "Block" then
         assert_checktrue(o.graphics.pin <> 0);
@@ -128,7 +128,7 @@ for i=1:lstsize(scs_m2.objs)
         assert_checktrue(o.graphics.peout <> 0);
     end
 end
-for i=1:lstsize(scs_m3.objs)
+for i=1:size(scs_m3.objs)
     o = scs_m3.objs(i);
     if typeof(o) == "Block" then
         assert_checktrue(o.graphics.pin <> 0);