* Bug 14718 fixed [doc]: user() was still documented 73/21573/3
Samuel GOUGEON [Mon, 10 Aug 2020 15:41:20 +0000 (17:41 +0200)]
  http://bugzilla.scilab.org/14718

  No other occurrence of [^_]user\s*[(<]  found in any SCI/modules
   .sci .sce .tst .xml files

Change-Id: I8d5f9dffdb16b98b26c936fa229b668ea0f75019

scilab/CHANGES.md
scilab/modules/core/tests/nonreg_tests/bug_7453.dia.ref [deleted file]
scilab/modules/core/tests/nonreg_tests/bug_7453.tst
scilab/modules/dynamic_link/help/en_US/user.xml [deleted file]
scilab/modules/dynamic_link/help/fr_FR/user.xml [deleted file]
scilab/modules/dynamic_link/help/ja_JP/user.xml [deleted file]
scilab/modules/dynamic_link/help/pt_BR/user.xml [deleted file]
scilab/modules/dynamic_link/help/ru_RU/user.xml [deleted file]

index f44c730..47a8d89 100644 (file)
@@ -284,6 +284,7 @@ Bug Fixes
 * [#12889](https://bugzilla.scilab.org/12889): In the help browser, add a menu allowing to select the language of help pages, regardless of the language of the session.
 * [#13593](https://bugzilla.scilab.org/13593): `csvRead()` did not take the `range` into account when `header` is provided. `[]` could not be used as default `range`.
 * [#13762](https://bugzilla.scilab.org/13762): In the `fft` page, the formula for the inverse FFT missed the 1/n normalization factor.
+* [#14718](https://bugzilla.scilab.org/14718): `user` is removed for a while but was still documented.
 * [#14873](https://bugzilla.scilab.org/14873): `setfield` page: The output and the 6.0 history were documented only on the en_US version. The input was wrongly restricted to matrices, while any Scilab object is acceptable. The specific role of `setfield` for mlists was not really described nor illustrated. The example did not include any call to setfield.
 * [#15280](https://bugzilla.scilab.org/15280): `gsort` was unable to sort any hypermatrix along dimensions > "r"|"c".
 * [#15839](https://bugzilla.scilab.org/15839): `gsort`: the only sparse possible input were real or complex vectors, and only with the `g` method.
diff --git a/scilab/modules/core/tests/nonreg_tests/bug_7453.dia.ref b/scilab/modules/core/tests/nonreg_tests/bug_7453.dia.ref
deleted file mode 100644 (file)
index 08a59ef..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2010 - DIGITEO - Bernard HUGUENEY
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-//
-// <-- CLI SHELL MODE -->
-//
-// <-- Non-regression test for bug 7453 -->
-//
-// <-- Bugzilla URL -->
-// http://bugzilla.scilab.org/show_bug.cgi?id=7453
-//
-// <-- Short Description -->
-// after hashtable rewrite, it was not possible anymore to call newfun()
-// after removing the funptr with clearfun()
-//
-//
-id = funptr('user');
-if id == 0 then bugmes();quit;end
-if clearfun('user') <> %t then bugmes();quit;end
-newfun('user', id);
-if user(3) <> 3 then bugmes();quit;end
index d3aacf0..e01c54d 100644 (file)
@@ -19,9 +19,8 @@
 //
 //
 
-id = funptr("user");
-if id == 0 then pause, end
-if clearfun("user") <> %t then pause, end
-newfun("user", id);
-if user(3) <> 3 then pause, end
-
+id = funptr("sin");
+assert_checktrue(id <> 0);
+assert_checktrue(clearfun("sin"));
+newfun("sin", id);
+assert_checktrue(sin(0) == 0);
diff --git a/scilab/modules/dynamic_link/help/en_US/user.xml b/scilab/modules/dynamic_link/help/en_US/user.xml
deleted file mode 100644 (file)
index 48a13ee..0000000
+++ /dev/null
@@ -1,33 +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:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="user">
-    <refnamediv>
-        <refname>user</refname>
-        <refpurpose>interfacing a Fortran or C routine</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Syntax</title>
-        <synopsis>[s_1,s_2,...,s_lhs]=user(e_1,e_2,...,e_rhs)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Description</title>
-        <para>
-            With this command it is possible to use an external program
-            as a Scilab command
-            where  <literal>(s_1,s_2,...,s_lhs)</literal> are the output variables and
-            <literal>(e_1,e_2,...,e_rhs)</literal> are the input variables. To insert this command
-            in Scilab one has to write a few lines in the <literal>user</literal> fortran subroutine
-            of Scilab.
-        </para>
-    </refsection>
-    <refsection role="see also">
-        <title>See also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="call">call</link>
-            </member>
-            <member>
-                <link linkend="link">link</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/dynamic_link/help/fr_FR/user.xml b/scilab/modules/dynamic_link/help/fr_FR/user.xml
deleted file mode 100644 (file)
index dbe1f92..0000000
+++ /dev/null
@@ -1,31 +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:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="user">
-    <refnamediv>
-        <refname>user</refname>
-        <refpurpose>interfaçage d'une routine Fortran ou C  </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Séquence d'appel</title>
-        <synopsis>[s_1,s_2,...,s_lhs]=user(e_1,e_2,...,e_rhs)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Description</title>
-        <para>
-            Avec cette commande il est possible d'utiliser un programme externe
-            comme une commande Scilab où
-            <literal>(s_1,s_2,...,s_lhs)</literal> sont les variables de sortie et
-            <literal>(e_1,e_2,...,e_rhs)</literal> sont les variables d'entrée. Pour utiliser cette commande dans Scilab il faut écrire quelques lignes dans la subroutine Fortran <literal>user</literal> de Scilab.
-        </para>
-    </refsection>
-    <refsection role="see also">
-        <title>Voir aussi</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="call">call</link>
-            </member>
-            <member>
-                <link linkend="link">link</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/dynamic_link/help/ja_JP/user.xml b/scilab/modules/dynamic_link/help/ja_JP/user.xml
deleted file mode 100644 (file)
index 76151aa..0000000
+++ /dev/null
@@ -1,33 +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:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="user">
-    <refnamediv>
-        <refname>user</refname>
-        <refpurpose>Fortran または C ルーチンとのインターフェイスを作成</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>呼出し手順</title>
-        <synopsis>[s_1,s_2,...,s_lhs]=user(e_1,e_2,...,e_rhs)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>説明</title>
-        <para>
-            このコマンドにより,Scilabコマンドとして外部プログラムを使用できるように
-            なります.
-            ただし,<literal>(s_1,s_2,...,s_lhs)</literal>は出力変数であり,
-            <literal>(e_1,e_2,...,e_rhs)</literal>は入力変数です.
-            このコマンドをScilabに挿入するには,ScilabのFortranサブルーチン
-            <literal>user</literal>に数行を追加する必要があります.
-        </para>
-    </refsection>
-    <refsection role="see also">
-        <title>参照</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="call">call</link>
-            </member>
-            <member>
-                <link linkend="link">link</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/dynamic_link/help/pt_BR/user.xml b/scilab/modules/dynamic_link/help/pt_BR/user.xml
deleted file mode 100644 (file)
index 047f273..0000000
+++ /dev/null
@@ -1,32 +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:ns4="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="user" xml:lang="pt">
-    <refnamediv>
-        <refname>user</refname>
-        <refpurpose>interface para rotinas FORTRAN ou C</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Seqüência de Chamamento</title>
-        <synopsis>[s_1,s_2,...,s_lhs]=user(e_1,e_2,...,e_rhs)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Descrição</title>
-        <para>Com este comando, é possível utilizar um programa externo como um
-            comando do Scilab onde <literal>(s_1,s_2,...,s_lhs)</literal> são as
-            variáveis de saída e<literal> (e_1,e_2,...,e_rhs)</literal> asão as
-            variáveis de entrada. Para inserir este comando no Scilab, é necessário
-            escrever algumas linhas na subrotina FORTRAN <literal>user</literal> do
-            Scilab.
-        </para>
-    </refsection>
-    <refsection>
-        <title> Ver Também </title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="call">call</link>
-            </member>
-            <member>
-                <link linkend="link">link</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/dynamic_link/help/ru_RU/user.xml b/scilab/modules/dynamic_link/help/ru_RU/user.xml
deleted file mode 100644 (file)
index b1765e0..0000000
+++ /dev/null
@@ -1,32 +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:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="user">
-    <refnamediv>
-        <refname>user</refname>
-        <refpurpose>установка связи с подпрограммами Fortran или C</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Синтаксис</title>
-        <synopsis>[s_1,s_2,...,s_lhs]=user(e_1,e_2,...,e_rhs)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Описание</title>
-        <para>
-            С этой командой можно использовать внешнюю программу как команду Scilab'а, где
-            <literal>(s_1,s_2,...,s_lhs)</literal> -- выходные переменные, а
-            <literal>(e_1,e_2,...,e_rhs)</literal> -- входные переменные. Чтобы ввести эту
-            команду в Scilab, нужно написать несколько строк в fortran-подпрограмме
-            <literal>user</literal> Scilab'а.
-        </para>
-    </refsection>
-    <refsection role="see also">
-        <title>Смотрите также</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="call">call</link>
-            </member>
-            <member>
-                <link linkend="link">link</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>