From 65e5b7c7b8bac75cd725115b00efba9bb02017b3 Mon Sep 17 00:00:00 2001 From: Cedric Delamarre Date: Fri, 27 Sep 2013 16:04:37 +0200 Subject: [PATCH] add_param : Second output argument tagged as obsolete. Change-Id: I575ae99de52d1ecb98a6947cb835bdd4b413ddb6 --- scilab/CHANGES_5.5.X | 6 ++++-- scilab/modules/parameters/help/en_US/add_param.xml | 14 +++++++++++++- scilab/modules/parameters/macros/add_param.sci | 5 +++++ 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/scilab/CHANGES_5.5.X b/scilab/CHANGES_5.5.X index 8779a7b..88db933 100644 --- a/scilab/CHANGES_5.5.X +++ b/scilab/CHANGES_5.5.X @@ -156,10 +156,12 @@ Obsolete & Removed Functions * chart tagged as obsolete. Will be removed in Scilab 5.5.1. Please use nicholschart instead. - + * mvvacov tagged as obsolete. Will be removed in Scilab 6.0.0. Please use cov instead. +* Second output argument of add_param tagged as obsolete. Will be removed in Scilab 5.5.1. + * dft removed, please use fft instead. * sscanf removed, please use msscanf instead. @@ -749,7 +751,7 @@ Scilab Bug Fixes Xcos Bug Fixes -============== +=============== * Bug #7350 fixed - The I/O ports numbering of a superblock was not updated when a new port was dropped. diff --git a/scilab/modules/parameters/help/en_US/add_param.xml b/scilab/modules/parameters/help/en_US/add_param.xml index f1bb972..df03133 100644 --- a/scilab/modules/parameters/help/en_US/add_param.xml +++ b/scilab/modules/parameters/help/en_US/add_param.xml @@ -55,6 +55,9 @@ an error flag which is set to %T if list_name is not of type plist (this list has not been initialized by a call to init_param). + + This argument is obsolete and will be removed in Scilab 5.5.1. + @@ -67,7 +70,7 @@ Examples - @@ -92,4 +95,13 @@ mylist = add_param(mylist,'minbound',[0 0 0]); + + History + + + 5.5.0 + Second output argument (err) tagged as obsolete. + + + diff --git a/scilab/modules/parameters/macros/add_param.sci b/scilab/modules/parameters/macros/add_param.sci index 80964f9..9c2f2ce 100644 --- a/scilab/modules/parameters/macros/add_param.sci +++ b/scilab/modules/parameters/macros/add_param.sci @@ -11,6 +11,11 @@ function [plist, err] = add_param(list_name, param_name, param_value) [nargout, nargin] = argn(); + if nargout == 2 then + warning(sprintf(_("Second output argument of %s is obsolete.\n"), "add_param")) + warning(sprintf(_("This argument will be permanently removed in Scilab %s"), "5.5.1")) + end + if nargin <> 2 & nargin <> 3 then error(sprintf(gettext("%s: Wrong number of input arguments: %d to %d expected.\n"), "add_param", 2, 3)); end -- 1.7.9.5