diff options
author | Shashank | 2017-05-29 12:40:26 +0530 |
---|---|---|
committer | Shashank | 2017-05-29 12:40:26 +0530 |
commit | 0345245e860375a32c9a437c4a9d9cae807134e9 (patch) | |
tree | ad51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/parameters | |
download | scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2 scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip |
CMSCOPE changed
Diffstat (limited to 'modules/parameters')
102 files changed, 9956 insertions, 0 deletions
diff --git a/modules/parameters/.libs/libsciparameters.a b/modules/parameters/.libs/libsciparameters.a Binary files differnew file mode 100755 index 000000000..80aeebea2 --- /dev/null +++ b/modules/parameters/.libs/libsciparameters.a diff --git a/modules/parameters/.libs/libsciparameters.la b/modules/parameters/.libs/libsciparameters.la new file mode 120000 index 000000000..61d1f2bb8 --- /dev/null +++ b/modules/parameters/.libs/libsciparameters.la @@ -0,0 +1 @@ +../libsciparameters.la
\ No newline at end of file diff --git a/modules/parameters/Localization_Import.def b/modules/parameters/Localization_Import.def new file mode 100755 index 000000000..427b06008 --- /dev/null +++ b/modules/parameters/Localization_Import.def @@ -0,0 +1,4 @@ + LIBRARY scilocalization.dll + + +EXPORTS diff --git a/modules/parameters/Makefile b/modules/parameters/Makefile new file mode 100755 index 000000000..eb8cf407b --- /dev/null +++ b/modules/parameters/Makefile @@ -0,0 +1,1243 @@ +# Makefile.in generated by automake 1.14.1 from Makefile.am. +# modules/parameters/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2008 - INRIA - Pierre MARECHAL +# +# This file must be used under the terms of the CeCILL. +# This source file is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at +# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +### SOURCES ### + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr> +# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +# +# This file must be used under the terms of the CeCILL. +# This source file is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at +# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +# + +########## +### Makefile included stuff +### Target, variable, suffixes which are supposed to be useful in every makefile.am +########## + + + +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/scilab +pkgincludedir = $(includedir)/scilab +pkglibdir = $(libdir)/scilab +pkglibexecdir = $(libexecdir)/scilab +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +DIST_COMMON = $(top_srcdir)/Makefile.incl.am $(srcdir)/Makefile.in \ + $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs \ + $(top_srcdir)/config/depcomp +am__append_1 = java +subdir = modules/parameters +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \ + $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \ + $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \ + $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \ + $(top_srcdir)/m4/intel_compiler.m4 \ + $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \ + $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \ + $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \ + $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \ + $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \ + $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \ + $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(pkglibdir)" \ + "$(DESTDIR)$(libparameters_la_etcdir)" \ + "$(DESTDIR)$(libparameters_la_rootdir)" +LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES) +libsciparameters_la_LIBADD = +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = src/c/libsciparameters_la-parameters.lo +am_libsciparameters_la_OBJECTS = $(am__objects_1) +libsciparameters_la_OBJECTS = $(am_libsciparameters_la_OBJECTS) +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +am__v_lt_1 = +am_libsciparameters_la_rpath = +#am_libsciparameters_la_rpath = -rpath \ +# $(pkglibdir) +AM_V_P = $(am__v_P_$(V)) +am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY)) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I. -I$(top_builddir)/modules/core/includes +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(libsciparameters_la_SOURCES) +DIST_SOURCES = $(libsciparameters_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(libparameters_la_etc_DATA) $(libparameters_la_root_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing aclocal-1.14 +ALL_LINGUAS = en_US fr_FR zh_CN zh_TW ru_RU ca_ES de_DE es_ES pt_BR ja_JP it_IT uk_UA pl_PL cs_CZ +ALL_LINGUAS_DOC = en_US fr_FR pt_BR ja_JP ru_RU +AMTAR = $${TAR-tar} +AM_DEFAULT_VERBOSITY = 1 +ANT = /usr/bin/ant +ANTLR = /usr/share/java/antlr.jar +AR = ar +ARPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -larpack +ASM3 = /usr/share/java/asm3-3.3.2.jar +AUTOCONF = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoconf +AUTOHEADER = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoheader +AUTOMAKE = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing automake-1.14 +AVALON_FRAMEWORK = /home/shashank/scilab-master_5.5.2/thirdparty/avalon-framework.jar +AWK = mawk +BATIK = /home/shashank/scilab-master_5.5.2/thirdparty/batik-all-1.7.jar +BLAS_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lblas +CC = gcc +CCACHE = +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CHECKSTYLE = +COBERTURA = /usr/share/java/cobertura.jar +COMMONS_BEANUTILS = +COMMONS_IO = /home/shashank/scilab-master_5.5.2/thirdparty/commons-io.jar +COMMONS_LOGGING = /home/shashank/scilab-master_5.5.2/thirdparty/commons-logging.jar +CPP = gcc -E +CPPFLAGS = +CURL_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +CURL_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/curl-config +CURL_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lcurl -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lssl -lcrypto -lrt -lz +CURL_VERSION = libcurl 7.19.7 +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DEFS = -DHAVE_CONFIG_H +DEMOTOOLS_ENABLE = yes +DEPDIR = .deps +DLLTOOL = false +DOCBOOK_ROOT = /home/shashank/scilab-master_5.5.2/thirdparty/docbook/ +DOXYGEN_BIN = +DSYMUTIL = +DUMPBIN = +ECHO_C = +ECHO_N = -n +ECHO_T = +ECJ = /home/shashank/scilab-master_5.5.2/thirdparty/ecj.jar +EGREP = /bin/grep -E +EXEEXT = +F77 = gfortran +FFLAGS = -g -O2 +FFTW3_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lfftw3 +FFTW_ENABLE = yes +FGREP = /bin/grep -F +FLEXDOCK = /home/shashank/scilab-master_5.5.2/thirdparty/flexdock-1.2.4.jar +FLIBS = -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lpthread -ldl -lcurses -lgfortran -lm -lquadmath +FOP = /home/shashank/scilab-master_5.5.2/thirdparty/fop.jar +FREEHEP_GRAPHICS2D = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphics2d.jar +FREEHEP_GRAPHICSIO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio.jar +FREEHEP_GRAPHICSIO_EMF = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio-emf.jar +FREEHEP_IO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-io.jar +FREEHEP_UTIL = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-util.jar +GENHTML = +GETTEXT_MACRO_VERSION = 0.19 +GIWS_BIN = +GLUEGEN2_RT = /home/shashank/scilab-master_5.5.2/thirdparty/gluegen2-rt.jar +GMSGFMT = /usr/bin/msgfmt +GMSGFMT_015 = /usr/bin/msgfmt +GRAPHICS_ENABLE = yes +GREP = /bin/grep +GUI_ENABLE = yes +HDF5_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +HDF5_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lhdf5 -lhdf5_hl +HELP_ENABLE = yes +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +INTLLIBS = +INTL_MACOSX_LIBS = +JAR = /usr/lib/jvm/java-8-openjdk-amd64/bin/jar +JAVA = /usr/lib/jvm/java-8-openjdk-amd64/bin/java +JAVAC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javac +JAVAC_DEBUG = off +JAVADOC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc +JAVAH = /usr/lib/jvm/java-8-openjdk-amd64/bin/javah +JAVASCI_ENABLE = yes +JAVA_ENABLE = yes +JAVA_G = /usr/lib/jvm/java-8-openjdk-amd64/bin/java +JAVA_HOME = /usr/lib/jvm/java-8-openjdk-amd64 +JAVA_JNI_INCLUDE = -I/usr/lib/jvm/java-8-openjdk-amd64/include -I/usr/lib/jvm/java-8-openjdk-amd64/include/linux +JAVA_JNI_LIBS = -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64 -ljava -lverify -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server -ljvm +JDB = /usr/lib/jvm/java-8-openjdk-amd64/bin/jdb +JEUCLID_CORE = /home/shashank/scilab-master_5.5.2/thirdparty/jeuclid-core.jar +JGRAPHX = /home/shashank/scilab-master_5.5.2/thirdparty/jgraphx.jar +JHALL = /home/shashank/scilab-master_5.5.2/thirdparty/jhall.jar +JLATEXMATH = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-1.0.3.jar +JLATEXMATH_FOP = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-fop-1.0.3.jar +JOGL2 = /home/shashank/scilab-master_5.5.2/thirdparty/jogl2.jar +JROSETTA_API = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-API.jar +JROSETTA_ENGINE = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-engine.jar +JUNIT4 = /usr/share/java/junit4.jar +LAPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -llapack +LCOV = +LD = /usr/bin/ld -m elf_x86_64 +LDFLAGS = -Wl,--no-as-needed +LIBICONV = -liconv +LIBINTL = +LIBM = -lm +LIBOBJS = +LIBS = -lpthread -ldl -lcurses -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool +LIPO = +LN_S = ln -s +LOGGING_LEVEL = SEVERE +LOOKS = /home/shashank/scilab-master_5.5.2/thirdparty/looks-2.1.1.jar +LTLIBICONV = -liconv +LTLIBINTL = +LTLIBOBJS = +MAINT = # +MAKEINFO = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing makeinfo +MANIFEST_TOOL = : +MATIO_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +MATIO_ENABLE = yes +MATIO_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lm -lz -lmatio -lhdf5 +MKDIR_P = /bin/mkdir -p +MPI_ENABLE = no +MSGCAT = /usr/bin/msgcat +MSGFMT = /usr/bin/msgfmt +MSGFMT_015 = /usr/bin/msgfmt +MSGMERGE = /usr/bin/msgmerge +NM = nm +NMEDIT = +OBJDUMP = objdump +OBJEXT = o +OCAMLC = ocamlc +OCAMLDEP = ocamldep +OCAMLLEX = ocamllex +OCAMLOPT = ocamlopt +OCAMLYACC = ocamlyacc +OPENMPI_CC = +OPENMPI_CFLAGS = +OPENMPI_CXX = +OPENMPI_CXXFLAGS = +OPENMPI_LIBS = +OPENMP_CFLAGS = -fopenmp +OPENMP_CXXFLAGS = -fopenmp +OPENMP_ENABLE = yes +OPENMP_LIBS = -lgomp -lstdc++ +OTOOL = +OTOOL64 = +PACKAGE = scilab +PACKAGE_BUGREPORT = http://bugzilla.scilab.org/ +PACKAGE_NAME = Scilab +PACKAGE_STRING = Scilab 5 +PACKAGE_TARNAME = scilab +PACKAGE_URL = +PACKAGE_VERSION = 5 +PATH_SEPARATOR = : +PCRE_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +PCRE_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/pcre-config +PCRE_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lpcreposix -lpcre +PCRE_VERSION = 8.35 +PKG_CONFIG = /usr/bin/pkg-config +POSUB = po +POW_LIB = +PYTHON = +RANLIB = ranlib +RELOCATABLE = no +RT_LIB = -lrt +SAXON = /home/shashank/scilab-master_5.5.2/thirdparty/saxon9he.jar +SCILAB_BINARY_VERSION = 5.5.2 +SCILAB_LIBRARY_VERSION = 5:5:2 +SCILAB_VERSION_MAINTENANCE = 2 +SCILAB_VERSION_MAJOR = 5 +SCILAB_VERSION_MINOR = 5 +SCIRENDERER = ${modules.dir}/scirenderer/${build.jar.dir}/scirenderer.jar +SCIRENDERER_CP = $SCILAB/modules/scirenderer/jar/scirenderer.jar +SCI_CFLAGS = -D_LARGEFILE64_SOURCE -DNDEBUG -m64 -fno-stack-protector +SCI_CXXFLAGS = -DNDEBUG -fno-stack-protector +SCI_FFLAGS = -DNDEBUG -m64 -fPIC +SCI_LDFLAGS = +SED = /bin/sed +SET_MAKE = +SET_RELOCATABLE = +SHELL = /bin/bash +SKINLF = /home/shashank/scilab-master_5.5.2/thirdparty/skinlf.jar +SPLINT = no +STRIP = strip +SWIG_BIN = +SWIG_JAVA = +SWIG_RUNTIME_LIBS_DIR = +SWIG_SCILAB = +TCLTK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -ltk8.5 -L/home/shashank/scilab-master_5.5.2/usr/lib -ltcl8.5 -ldl +TCL_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include +TK_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include +UMFPACK_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +UMFPACK_ENABLE = yes +UMFPACK_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lumfpack -lamd +USE_NLS = yes +VERSION = 5 +WITH_OCAML = +WITH_TKSCI = yes +XCOS_ENABLE = yes +XGETTEXT = /usr/bin/xgettext +XGETTEXT_015 = /usr/bin/xgettext +XGETTEXT_EXTRA_OPTIONS = +XMKMF = +XMLGRAPHICS_COMMONS = /home/shashank/scilab-master_5.5.2/thirdparty/xmlgraphics-commons-1.4.jar +XML_APIS_EXT = /home/shashank/scilab-master_5.5.2/thirdparty/xml-apis-ext.jar +XML_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/xml2-config +XML_FLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include/libxml2 +XML_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lxml2 -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lz -lm -ldl +XML_VERSION = 2.9.1 +X_CFLAGS = +X_EXTRA_LIBS = +X_LIBS = +X_PRE_LIBS = +abs_builddir = /home/shashank/scilab-master_5.5.2/modules/parameters +abs_srcdir = /home/shashank/scilab-master_5.5.2/modules/parameters +abs_top_builddir = /home/shashank/scilab-master_5.5.2 +abs_top_srcdir = /home/shashank/scilab-master_5.5.2 +ac_ct_AR = ar +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_DUMPBIN = +ac_ct_F77 = gfortran +am__include = include +am__leading_dot = . +am__quote = +am__tar = $${TAR-tar} chof - "$$tardir" +am__untar = $${TAR-tar} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +cxx_present = yes +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = ${SHELL} /home/shashank/scilab-master_5.5.2/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = $(MKDIR_P) +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_build_prefix = ../../ +top_builddir = ../.. +top_srcdir = ../.. +PARAMETERS_C_SOURCES = src/c/parameters.c +libsciparameters_la_CPPFLAGS = -I$(srcdir)/includes/ \ +-I$(srcdir)/src/c/ \ +-I$(top_srcdir)/modules/api_scilab/includes/ \ +-I$(top_srcdir)/modules/core/includes/ \ +-I$(top_srcdir)/modules/output_stream/includes/ \ +-I$(top_srcdir)/modules/localization/includes/ \ +$(AM_CPPFLAGS) + +#pkglib_LTLIBRARIES = libsciparameters.la +noinst_LTLIBRARIES = libsciparameters.la +libsciparameters_la_SOURCES = $(PARAMETERS_C_SOURCES) + +# For the code check (splint) +CHECK_SRC = $(libsciparameters_la_SOURCES) +INCLUDE_FLAGS = $(libsciparameters_la_CPPFLAGS) + +#### Target ###### +modulename = parameters + +#### parameters : Conf files #### +libparameters_la_rootdir = $(mydatadir) +libparameters_la_root_DATA = license.txt + +#### parameters : init scripts #### +libparameters_la_etcdir = $(mydatadir)/etc +libparameters_la_etc_DATA = etc/parameters.quit etc/parameters.start + +# Where all the Scilab stuff is installed (macros, help, ...) +mydatadir = $(pkgdatadir)/modules/$(modulename) + +# Set AM_* SCI detected settings +AM_CPPFLAGS = $(SCI_CPPFLAGS) +AM_CFLAGS = $(SCI_CFLAGS) +AM_CXXFLAGS = $(SCI_CXXFLAGS) +# append includes to AM_FFLAGS to manage fortran includes +AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/ + +# Tag shared libraries with the Scilab version +AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION) + +# splint options +SPLINT_OPTIONS = -weak -booltype BOOL + +########################### JAVA ###################################### +#### We are delegating java compilation to ant... Thanks to that +#### the procedure will be the same with Microsoft Windows (C) +#### and Linux/Unix +####################################################################### +TARGETS_ALL = $(am__append_1) + +################ MACROS ###################### +# Rule to build a macro +# NOT USED AT THE MOMENT +SUFFIXES = .sci + +########### INSTALL DOCUMENTATION ################### + +# Install documentation files into the right target +# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because +# automake needs the html files to be present which is not the case when +# we are building Scilab + +# Where it should be installed +pkgdocdir = $(mydatadir) + +# What is the mask of the help source +DOCMASKXML = *.xml + +# What is the mask of the MathML sources +DOCMASKMML = *.mml + +########### INSTALL DATA ################### +# Install macros, help & demos +# Where it should be installed +pkgmacrosdir = $(mydatadir) +# Which directory we process +MACRODIRS = macros/ +# Mask of the Scilab sources macros +MACROMASK = *.sci +# Mask of the Scilab executable sources macros +MACROBUILDMASK = *.sce +# Mask of the Scilab compiled macros +MACROBINMASK = *.bin +# List of the standard directory for tests +TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java +# Where the demos should be installed +pkgdemosdir = $(mydatadir) +# List of the standard directory for demos +DEMOS_DIR = demos +# List of the standard directory for examples +EXAMPLES_DIR = examples +# Where to export JAVA archives (.jar) +JARDIR = jar/ +# JAR files mask +JARMASK = *.jar +# Chapter file +HELP_CHAPTERDIR = help/ +HELP_CHAPTERFILE = addchapter.sce +HELP_CHAPTERLANG = en_US fr_FR pt_BR +all: all-am + +.SUFFIXES: +.SUFFIXES: .sci .bin .c .lo .o .obj +$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/parameters/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign modules/parameters/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; +$(top_srcdir)/Makefile.incl.am: + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: # $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): # $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +clean-noinstLTLIBRARIES: + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) + @list='$(noinst_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } + +install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ + } + +uninstall-pkglibLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ + done + +clean-pkglibLTLIBRARIES: + -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) + @list='$(pkglib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } +src/c/$(am__dirstamp): + @$(MKDIR_P) src/c + @: > src/c/$(am__dirstamp) +src/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) src/c/$(DEPDIR) + @: > src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libsciparameters_la-parameters.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) + +libsciparameters.la: $(libsciparameters_la_OBJECTS) $(libsciparameters_la_DEPENDENCIES) $(EXTRA_libsciparameters_la_DEPENDENCIES) + $(AM_V_CCLD)$(LINK) $(am_libsciparameters_la_rpath) $(libsciparameters_la_OBJECTS) $(libsciparameters_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f src/c/*.$(OBJEXT) + -rm -f src/c/*.lo + +distclean-compile: + -rm -f *.tab.c + +include src/c/$(DEPDIR)/libsciparameters_la-parameters.Plo + +.c.o: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ + $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CC)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(COMPILE) -c -o $@ $< + +.c.obj: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ + $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CC)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ + $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Plo +# $(AM_V_CC)source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LTCOMPILE) -c -o $@ $< + +src/c/libsciparameters_la-parameters.lo: src/c/parameters.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciparameters_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libsciparameters_la-parameters.lo -MD -MP -MF src/c/$(DEPDIR)/libsciparameters_la-parameters.Tpo -c -o src/c/libsciparameters_la-parameters.lo `test -f 'src/c/parameters.c' || echo '$(srcdir)/'`src/c/parameters.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libsciparameters_la-parameters.Tpo src/c/$(DEPDIR)/libsciparameters_la-parameters.Plo +# $(AM_V_CC)source='src/c/parameters.c' object='src/c/libsciparameters_la-parameters.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciparameters_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libsciparameters_la-parameters.lo `test -f 'src/c/parameters.c' || echo '$(srcdir)/'`src/c/parameters.c + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf src/c/.libs src/c/_libs +install-libparameters_la_etcDATA: $(libparameters_la_etc_DATA) + @$(NORMAL_INSTALL) + @list='$(libparameters_la_etc_DATA)'; test -n "$(libparameters_la_etcdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libparameters_la_etcdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libparameters_la_etcdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libparameters_la_etcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libparameters_la_etcdir)" || exit $$?; \ + done + +uninstall-libparameters_la_etcDATA: + @$(NORMAL_UNINSTALL) + @list='$(libparameters_la_etc_DATA)'; test -n "$(libparameters_la_etcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libparameters_la_etcdir)'; $(am__uninstall_files_from_dir) +install-libparameters_la_rootDATA: $(libparameters_la_root_DATA) + @$(NORMAL_INSTALL) + @list='$(libparameters_la_root_DATA)'; test -n "$(libparameters_la_rootdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libparameters_la_rootdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libparameters_la_rootdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libparameters_la_rootdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libparameters_la_rootdir)" || exit $$?; \ + done + +uninstall-libparameters_la_rootDATA: + @$(NORMAL_UNINSTALL) + @list='$(libparameters_la_root_DATA)'; test -n "$(libparameters_la_rootdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libparameters_la_rootdir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-local +check: check-am +all-am: Makefile $(LTLIBRARIES) $(DATA) all-local +installdirs: + for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libparameters_la_etcdir)" "$(DESTDIR)$(libparameters_la_rootdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f src/c/$(DEPDIR)/$(am__dirstamp) + -rm -f src/c/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf src/c/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-local distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-data-local install-libparameters_la_etcDATA \ + install-libparameters_la_rootDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-pkglibLTLIBRARIES + +install-html: install-html-am + +install-html-am: install-html-local + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf src/c/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libparameters_la_etcDATA \ + uninstall-libparameters_la_rootDATA \ + uninstall-pkglibLTLIBRARIES + +.MAKE: check-am install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am \ + check-local clean clean-generic clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES cscopelist-am \ + ctags ctags-am distclean distclean-compile distclean-generic \ + distclean-libtool distclean-local distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-data-local install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-html-local install-info \ + install-info-am install-libparameters_la_etcDATA \ + install-libparameters_la_rootDATA install-man install-pdf \ + install-pdf-am install-pkglibLTLIBRARIES install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am uninstall-libparameters_la_etcDATA \ + uninstall-libparameters_la_rootDATA \ + uninstall-pkglibLTLIBRARIES + + +# This target enables tests for Scilab +check-local: $(top_builddir)/scilab-bin test + if test -d $(mydatadir)/tests; then \ + @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \ + fi +check-code: + if test -f build.xml; then \ + $(ANT) checkstyle; \ + fi + if test -x "$(SPLINT)"; then \ + $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \ + fi +java: +# Some configurations needs to export JAVA_HOME in the current env + @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ + if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT); \ + fi + +clean-java: +# Some configurations needs to export JAVA_HOME in the current env + @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ + if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT) clean; \ + fi; + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +#swig: $(SWIG_WRAPPERS) +# @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \ +# SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \ +# if test -n "$(SWIG_WRAPPERS)"; then \ +# for file in $(SWIG_WRAPPERS) ; do \ +# echo "Swig process of $$file (Java) ..."; \ +# $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \ +# done; \ +# fi + +#swig-scilab: $(SWIG_SCILAB_WRAPPERS) +# @SWIG_OUTDIR=src/swig/; \ +# if test -n "$(SWIG_SCILAB_WRAPPERS)"; then \ +# for file in $(SWIG_SCILAB_WRAPPERS) ; do \ +# echo "Swig process of $$file (Scilab) ..."; \ +# $(SWIG_BIN) $(SWIG_SCILAB) -outdir $$SWIG_OUTDIR $$file; \ +# done; \ +# fi + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +#giws: $(GIWS_WRAPPERS) +# @GIWS_OUTPUTDIR=src/jni/; \ +# MANDATORY_OPTIONS="--throws-exception-on-error --description-file"; \ +# if test -n "$(GIWS_WRAPPERS)"; then \ +# for file in $(GIWS_WRAPPERS) ; do \ +# echo "GIWS process of $$file ..."; \ +# if test -z "$(GIWS_OPTIONS)"; then \ +# $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +# else \ +# echo "Custom GIWS call with '$$GIWS_OPTIONS'"; \ +# $(GIWS_BIN) $$GIWS_OPTIONS --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +# fi \ +# done; \ +# fi + +#giws-exception: +# @GIWS_OUTPUTDIR=src/jni/;\ +# echo "GIWS: Generation of exception class ..."; \ +# $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR + +macros: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been built"; \ + else \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\ + fi) + +# Removes the macros +clean-macros: +# Removes macros (*.bin generated from .sci) + @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \ + rm -f $(builddir)/$$dir/$(MACROBINMASK); \ + done + +test: +# More tests could be added here + @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT) test; \ + fi + +all-local: $(TARGETS_ALL) + +.sci.bin: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been build"; \ + else \ + echo "Creating $@"; \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \ + fi ) + +install-html-local: + +install-data-local-local: +# Mainly for javasci + @if test -d $(srcdir)/javadoc; then \ + cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \ + fi +# If the user wants the help sources to be installed + @echo "-------- Install of XML sources of help files --------"; \ + for lang in $(ALL_LINGUAS); do \ + if test -d $(srcdir)/help/$$lang; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \ + if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \ + for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \ + done ; \ + fi; \ + fi; \ + done; \ + @echo "-------- Install of MathML sources --------"; \ + if test -d $(srcdir)/help/mml/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \ + if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \ + for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \ + done ; \ + fi; \ + fi +install-data-local: +# Install the tests + @echo "-------- Install tests (if any) --------"; \ + for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the help chapter + @echo "-------- Install the help chapter (if any) --------"; \ + for lang in $(HELP_CHAPTERLANG); do \ + HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \ + if test -f $$HELPFILE; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + fi; \ + done +# Install the demos & examples + @echo "-------- Install demos & examples (if any) --------"; \ + for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the macros + @echo "-------- Install macros (if any) --------"; \ + for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + if test -d $(srcdir)/$$dir/; then \ + FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\ + if test -n "$(MACROSSPECIALEXT)"; then \ + specialExtDir=""; \ + for specialExt in $(MACROSSPECIALEXT); do \ + specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \ + done; \ + FILELIST="$$FILELIST $$specialExtDir"; \ + fi; \ + for file in `ls -1 $$FILELIST 2>/dev/null`; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \ + done; \ + fi; \ + done +# Install java files (.jar) + @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \ + echo "-------- Install jar files --------"; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \ + for file in $(srcdir)/$(JARDIR)$(JARMASK); do\ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \ + done ; \ + fi + +########### CLEAN ################### +# Clean help (generated automatically by Scilab) +# It used to clean the macro (clean-macros) but this was causing +# make clean && make to fail Scilab startup +clean-local: clean-java +#clean-local: + +distclean-local: + rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_* + +.PHONY: macros java swig giws + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/modules/parameters/Makefile.am b/modules/parameters/Makefile.am new file mode 100755 index 000000000..60df20ed1 --- /dev/null +++ b/modules/parameters/Makefile.am @@ -0,0 +1,47 @@ +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2008 - INRIA - Pierre MARECHAL +# +# This file must be used under the terms of the CeCILL. +# This source file is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at +# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +### SOURCES ### + +PARAMETERS_C_SOURCES = src/c/parameters.c + +libsciparameters_la_CPPFLAGS=-I$(srcdir)/includes/ \ +-I$(srcdir)/src/c/ \ +-I$(top_srcdir)/modules/api_scilab/includes/ \ +-I$(top_srcdir)/modules/core/includes/ \ +-I$(top_srcdir)/modules/output_stream/includes/ \ +-I$(top_srcdir)/modules/localization/includes/ \ +$(AM_CPPFLAGS) + +if MAINTAINER_MODE +pkglib_LTLIBRARIES = libsciparameters.la +else +noinst_LTLIBRARIES = libsciparameters.la +endif + + + +libsciparameters_la_SOURCES = $(PARAMETERS_C_SOURCES) + +# For the code check (splint) +CHECK_SRC= $(libsciparameters_la_SOURCES) +INCLUDE_FLAGS = $(libsciparameters_la_CPPFLAGS) + +#### Target ###### +modulename=parameters + +#### parameters : Conf files #### +libparameters_la_rootdir = $(mydatadir) +libparameters_la_root_DATA = license.txt + +#### parameters : init scripts #### +libparameters_la_etcdir = $(mydatadir)/etc +libparameters_la_etc_DATA = etc/parameters.quit etc/parameters.start + +include $(top_srcdir)/Makefile.incl.am diff --git a/modules/parameters/Makefile.in b/modules/parameters/Makefile.in new file mode 100755 index 000000000..190dc3048 --- /dev/null +++ b/modules/parameters/Makefile.in @@ -0,0 +1,1243 @@ +# Makefile.in generated by automake 1.14.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2008 - INRIA - Pierre MARECHAL +# +# This file must be used under the terms of the CeCILL. +# This source file is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at +# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +### SOURCES ### + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr> +# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +# +# This file must be used under the terms of the CeCILL. +# This source file is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at +# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +# + +########## +### Makefile included stuff +### Target, variable, suffixes which are supposed to be useful in every makefile.am +########## + + +VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +DIST_COMMON = $(top_srcdir)/Makefile.incl.am $(srcdir)/Makefile.in \ + $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs \ + $(top_srcdir)/config/depcomp +@NEED_JAVA_TRUE@am__append_1 = java +subdir = modules/parameters +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \ + $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \ + $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \ + $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \ + $(top_srcdir)/m4/intel_compiler.m4 \ + $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \ + $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \ + $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \ + $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \ + $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \ + $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \ + $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(pkglibdir)" \ + "$(DESTDIR)$(libparameters_la_etcdir)" \ + "$(DESTDIR)$(libparameters_la_rootdir)" +LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES) +libsciparameters_la_LIBADD = +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = src/c/libsciparameters_la-parameters.lo +am_libsciparameters_la_OBJECTS = $(am__objects_1) +libsciparameters_la_OBJECTS = $(am_libsciparameters_la_OBJECTS) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +@MAINTAINER_MODE_FALSE@am_libsciparameters_la_rpath = +@MAINTAINER_MODE_TRUE@am_libsciparameters_la_rpath = -rpath \ +@MAINTAINER_MODE_TRUE@ $(pkglibdir) +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/modules/core/includes +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(libsciparameters_la_SOURCES) +DIST_SOURCES = $(libsciparameters_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(libparameters_la_etc_DATA) $(libparameters_la_root_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +ALL_LINGUAS_DOC = @ALL_LINGUAS_DOC@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +ANT = @ANT@ +ANTLR = @ANTLR@ +AR = @AR@ +ARPACK_LIBS = @ARPACK_LIBS@ +ASM3 = @ASM3@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AVALON_FRAMEWORK = @AVALON_FRAMEWORK@ +AWK = @AWK@ +BATIK = @BATIK@ +BLAS_LIBS = @BLAS_LIBS@ +CC = @CC@ +CCACHE = @CCACHE@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CHECKSTYLE = @CHECKSTYLE@ +COBERTURA = @COBERTURA@ +COMMONS_BEANUTILS = @COMMONS_BEANUTILS@ +COMMONS_IO = @COMMONS_IO@ +COMMONS_LOGGING = @COMMONS_LOGGING@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CURL_CFLAGS = @CURL_CFLAGS@ +CURL_CONFIG = @CURL_CONFIG@ +CURL_LIBS = @CURL_LIBS@ +CURL_VERSION = @CURL_VERSION@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEMOTOOLS_ENABLE = @DEMOTOOLS_ENABLE@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOCBOOK_ROOT = @DOCBOOK_ROOT@ +DOXYGEN_BIN = @DOXYGEN_BIN@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +ECJ = @ECJ@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +FFTW3_LIB = @FFTW3_LIB@ +FFTW_ENABLE = @FFTW_ENABLE@ +FGREP = @FGREP@ +FLEXDOCK = @FLEXDOCK@ +FLIBS = @FLIBS@ +FOP = @FOP@ +FREEHEP_GRAPHICS2D = @FREEHEP_GRAPHICS2D@ +FREEHEP_GRAPHICSIO = @FREEHEP_GRAPHICSIO@ +FREEHEP_GRAPHICSIO_EMF = @FREEHEP_GRAPHICSIO_EMF@ +FREEHEP_IO = @FREEHEP_IO@ +FREEHEP_UTIL = @FREEHEP_UTIL@ +GENHTML = @GENHTML@ +GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ +GIWS_BIN = @GIWS_BIN@ +GLUEGEN2_RT = @GLUEGEN2_RT@ +GMSGFMT = @GMSGFMT@ +GMSGFMT_015 = @GMSGFMT_015@ +GRAPHICS_ENABLE = @GRAPHICS_ENABLE@ +GREP = @GREP@ +GUI_ENABLE = @GUI_ENABLE@ +HDF5_CFLAGS = @HDF5_CFLAGS@ +HDF5_LIBS = @HDF5_LIBS@ +HELP_ENABLE = @HELP_ENABLE@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JAR = @JAR@ +JAVA = @JAVA@ +JAVAC = @JAVAC@ +JAVAC_DEBUG = @JAVAC_DEBUG@ +JAVADOC = @JAVADOC@ +JAVAH = @JAVAH@ +JAVASCI_ENABLE = @JAVASCI_ENABLE@ +JAVA_ENABLE = @JAVA_ENABLE@ +JAVA_G = @JAVA_G@ +JAVA_HOME = @JAVA_HOME@ +JAVA_JNI_INCLUDE = @JAVA_JNI_INCLUDE@ +JAVA_JNI_LIBS = @JAVA_JNI_LIBS@ +JDB = @JDB@ +JEUCLID_CORE = @JEUCLID_CORE@ +JGRAPHX = @JGRAPHX@ +JHALL = @JHALL@ +JLATEXMATH = @JLATEXMATH@ +JLATEXMATH_FOP = @JLATEXMATH_FOP@ +JOGL2 = @JOGL2@ +JROSETTA_API = @JROSETTA_API@ +JROSETTA_ENGINE = @JROSETTA_ENGINE@ +JUNIT4 = @JUNIT4@ +LAPACK_LIBS = @LAPACK_LIBS@ +LCOV = @LCOV@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBM = @LIBM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LOGGING_LEVEL = @LOGGING_LEVEL@ +LOOKS = @LOOKS@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MATIO_CFLAGS = @MATIO_CFLAGS@ +MATIO_ENABLE = @MATIO_ENABLE@ +MATIO_LIBS = @MATIO_LIBS@ +MKDIR_P = @MKDIR_P@ +MPI_ENABLE = @MPI_ENABLE@ +MSGCAT = @MSGCAT@ +MSGFMT = @MSGFMT@ +MSGFMT_015 = @MSGFMT_015@ +MSGMERGE = @MSGMERGE@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OCAMLC = @OCAMLC@ +OCAMLDEP = @OCAMLDEP@ +OCAMLLEX = @OCAMLLEX@ +OCAMLOPT = @OCAMLOPT@ +OCAMLYACC = @OCAMLYACC@ +OPENMPI_CC = @OPENMPI_CC@ +OPENMPI_CFLAGS = @OPENMPI_CFLAGS@ +OPENMPI_CXX = @OPENMPI_CXX@ +OPENMPI_CXXFLAGS = @OPENMPI_CXXFLAGS@ +OPENMPI_LIBS = @OPENMPI_LIBS@ +OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@ +OPENMP_ENABLE = @OPENMP_ENABLE@ +OPENMP_LIBS = @OPENMP_LIBS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PCRE_CFLAGS = @PCRE_CFLAGS@ +PCRE_CONFIG = @PCRE_CONFIG@ +PCRE_LIBS = @PCRE_LIBS@ +PCRE_VERSION = @PCRE_VERSION@ +PKG_CONFIG = @PKG_CONFIG@ +POSUB = @POSUB@ +POW_LIB = @POW_LIB@ +PYTHON = @PYTHON@ +RANLIB = @RANLIB@ +RELOCATABLE = @RELOCATABLE@ +RT_LIB = @RT_LIB@ +SAXON = @SAXON@ +SCILAB_BINARY_VERSION = @SCILAB_BINARY_VERSION@ +SCILAB_LIBRARY_VERSION = @SCILAB_LIBRARY_VERSION@ +SCILAB_VERSION_MAINTENANCE = @SCILAB_VERSION_MAINTENANCE@ +SCILAB_VERSION_MAJOR = @SCILAB_VERSION_MAJOR@ +SCILAB_VERSION_MINOR = @SCILAB_VERSION_MINOR@ +SCIRENDERER = @SCIRENDERER@ +SCIRENDERER_CP = @SCIRENDERER_CP@ +SCI_CFLAGS = @SCI_CFLAGS@ +SCI_CXXFLAGS = @SCI_CXXFLAGS@ +SCI_FFLAGS = @SCI_FFLAGS@ +SCI_LDFLAGS = @SCI_LDFLAGS@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SET_RELOCATABLE = @SET_RELOCATABLE@ +SHELL = @SHELL@ +SKINLF = @SKINLF@ +SPLINT = @SPLINT@ +STRIP = @STRIP@ +SWIG_BIN = @SWIG_BIN@ +SWIG_JAVA = @SWIG_JAVA@ +SWIG_RUNTIME_LIBS_DIR = @SWIG_RUNTIME_LIBS_DIR@ +SWIG_SCILAB = @SWIG_SCILAB@ +TCLTK_LIBS = @TCLTK_LIBS@ +TCL_INC_PATH = @TCL_INC_PATH@ +TK_INC_PATH = @TK_INC_PATH@ +UMFPACK_CFLAGS = @UMFPACK_CFLAGS@ +UMFPACK_ENABLE = @UMFPACK_ENABLE@ +UMFPACK_LIB = @UMFPACK_LIB@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +WITH_OCAML = @WITH_OCAML@ +WITH_TKSCI = @WITH_TKSCI@ +XCOS_ENABLE = @XCOS_ENABLE@ +XGETTEXT = @XGETTEXT@ +XGETTEXT_015 = @XGETTEXT_015@ +XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ +XMKMF = @XMKMF@ +XMLGRAPHICS_COMMONS = @XMLGRAPHICS_COMMONS@ +XML_APIS_EXT = @XML_APIS_EXT@ +XML_CONFIG = @XML_CONFIG@ +XML_FLAGS = @XML_FLAGS@ +XML_LIBS = @XML_LIBS@ +XML_VERSION = @XML_VERSION@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +cxx_present = @cxx_present@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +PARAMETERS_C_SOURCES = src/c/parameters.c +libsciparameters_la_CPPFLAGS = -I$(srcdir)/includes/ \ +-I$(srcdir)/src/c/ \ +-I$(top_srcdir)/modules/api_scilab/includes/ \ +-I$(top_srcdir)/modules/core/includes/ \ +-I$(top_srcdir)/modules/output_stream/includes/ \ +-I$(top_srcdir)/modules/localization/includes/ \ +$(AM_CPPFLAGS) + +@MAINTAINER_MODE_TRUE@pkglib_LTLIBRARIES = libsciparameters.la +@MAINTAINER_MODE_FALSE@noinst_LTLIBRARIES = libsciparameters.la +libsciparameters_la_SOURCES = $(PARAMETERS_C_SOURCES) + +# For the code check (splint) +CHECK_SRC = $(libsciparameters_la_SOURCES) +INCLUDE_FLAGS = $(libsciparameters_la_CPPFLAGS) + +#### Target ###### +modulename = parameters + +#### parameters : Conf files #### +libparameters_la_rootdir = $(mydatadir) +libparameters_la_root_DATA = license.txt + +#### parameters : init scripts #### +libparameters_la_etcdir = $(mydatadir)/etc +libparameters_la_etc_DATA = etc/parameters.quit etc/parameters.start + +# Where all the Scilab stuff is installed (macros, help, ...) +mydatadir = $(pkgdatadir)/modules/$(modulename) + +# Set AM_* SCI detected settings +AM_CPPFLAGS = $(SCI_CPPFLAGS) +AM_CFLAGS = $(SCI_CFLAGS) +AM_CXXFLAGS = $(SCI_CXXFLAGS) +# append includes to AM_FFLAGS to manage fortran includes +AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/ + +# Tag shared libraries with the Scilab version +AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION) + +# splint options +SPLINT_OPTIONS = -weak -booltype BOOL + +########################### JAVA ###################################### +#### We are delegating java compilation to ant... Thanks to that +#### the procedure will be the same with Microsoft Windows (C) +#### and Linux/Unix +####################################################################### +TARGETS_ALL = $(am__append_1) + +################ MACROS ###################### +# Rule to build a macro +# NOT USED AT THE MOMENT +SUFFIXES = .sci + +########### INSTALL DOCUMENTATION ################### + +# Install documentation files into the right target +# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because +# automake needs the html files to be present which is not the case when +# we are building Scilab + +# Where it should be installed +pkgdocdir = $(mydatadir) + +# What is the mask of the help source +DOCMASKXML = *.xml + +# What is the mask of the MathML sources +DOCMASKMML = *.mml + +########### INSTALL DATA ################### +# Install macros, help & demos +# Where it should be installed +pkgmacrosdir = $(mydatadir) +# Which directory we process +MACRODIRS = macros/ +# Mask of the Scilab sources macros +MACROMASK = *.sci +# Mask of the Scilab executable sources macros +MACROBUILDMASK = *.sce +# Mask of the Scilab compiled macros +MACROBINMASK = *.bin +# List of the standard directory for tests +TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java +# Where the demos should be installed +pkgdemosdir = $(mydatadir) +# List of the standard directory for demos +DEMOS_DIR = demos +# List of the standard directory for examples +EXAMPLES_DIR = examples +# Where to export JAVA archives (.jar) +JARDIR = jar/ +# JAR files mask +JARMASK = *.jar +# Chapter file +HELP_CHAPTERDIR = help/ +HELP_CHAPTERFILE = addchapter.sce +HELP_CHAPTERLANG = en_US fr_FR pt_BR +all: all-am + +.SUFFIXES: +.SUFFIXES: .sci .bin .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/parameters/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign modules/parameters/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; +$(top_srcdir)/Makefile.incl.am: + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +clean-noinstLTLIBRARIES: + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) + @list='$(noinst_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } + +install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ + } + +uninstall-pkglibLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ + done + +clean-pkglibLTLIBRARIES: + -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) + @list='$(pkglib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } +src/c/$(am__dirstamp): + @$(MKDIR_P) src/c + @: > src/c/$(am__dirstamp) +src/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) src/c/$(DEPDIR) + @: > src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libsciparameters_la-parameters.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) + +libsciparameters.la: $(libsciparameters_la_OBJECTS) $(libsciparameters_la_DEPENDENCIES) $(EXTRA_libsciparameters_la_DEPENDENCIES) + $(AM_V_CCLD)$(LINK) $(am_libsciparameters_la_rpath) $(libsciparameters_la_OBJECTS) $(libsciparameters_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f src/c/*.$(OBJEXT) + -rm -f src/c/*.lo + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libsciparameters_la-parameters.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +src/c/libsciparameters_la-parameters.lo: src/c/parameters.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciparameters_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libsciparameters_la-parameters.lo -MD -MP -MF src/c/$(DEPDIR)/libsciparameters_la-parameters.Tpo -c -o src/c/libsciparameters_la-parameters.lo `test -f 'src/c/parameters.c' || echo '$(srcdir)/'`src/c/parameters.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libsciparameters_la-parameters.Tpo src/c/$(DEPDIR)/libsciparameters_la-parameters.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/parameters.c' object='src/c/libsciparameters_la-parameters.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciparameters_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libsciparameters_la-parameters.lo `test -f 'src/c/parameters.c' || echo '$(srcdir)/'`src/c/parameters.c + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf src/c/.libs src/c/_libs +install-libparameters_la_etcDATA: $(libparameters_la_etc_DATA) + @$(NORMAL_INSTALL) + @list='$(libparameters_la_etc_DATA)'; test -n "$(libparameters_la_etcdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libparameters_la_etcdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libparameters_la_etcdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libparameters_la_etcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libparameters_la_etcdir)" || exit $$?; \ + done + +uninstall-libparameters_la_etcDATA: + @$(NORMAL_UNINSTALL) + @list='$(libparameters_la_etc_DATA)'; test -n "$(libparameters_la_etcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libparameters_la_etcdir)'; $(am__uninstall_files_from_dir) +install-libparameters_la_rootDATA: $(libparameters_la_root_DATA) + @$(NORMAL_INSTALL) + @list='$(libparameters_la_root_DATA)'; test -n "$(libparameters_la_rootdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libparameters_la_rootdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libparameters_la_rootdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libparameters_la_rootdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libparameters_la_rootdir)" || exit $$?; \ + done + +uninstall-libparameters_la_rootDATA: + @$(NORMAL_UNINSTALL) + @list='$(libparameters_la_root_DATA)'; test -n "$(libparameters_la_rootdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libparameters_la_rootdir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-local +check: check-am +all-am: Makefile $(LTLIBRARIES) $(DATA) all-local +installdirs: + for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libparameters_la_etcdir)" "$(DESTDIR)$(libparameters_la_rootdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f src/c/$(DEPDIR)/$(am__dirstamp) + -rm -f src/c/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf src/c/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-local distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-data-local install-libparameters_la_etcDATA \ + install-libparameters_la_rootDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-pkglibLTLIBRARIES + +install-html: install-html-am + +install-html-am: install-html-local + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf src/c/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libparameters_la_etcDATA \ + uninstall-libparameters_la_rootDATA \ + uninstall-pkglibLTLIBRARIES + +.MAKE: check-am install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am \ + check-local clean clean-generic clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES cscopelist-am \ + ctags ctags-am distclean distclean-compile distclean-generic \ + distclean-libtool distclean-local distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-data-local install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-html-local install-info \ + install-info-am install-libparameters_la_etcDATA \ + install-libparameters_la_rootDATA install-man install-pdf \ + install-pdf-am install-pkglibLTLIBRARIES install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am uninstall-libparameters_la_etcDATA \ + uninstall-libparameters_la_rootDATA \ + uninstall-pkglibLTLIBRARIES + + +# This target enables tests for Scilab +check-local: $(top_builddir)/scilab-bin test + if test -d $(mydatadir)/tests; then \ + @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \ + fi +check-code: + if test -f build.xml; then \ + $(ANT) checkstyle; \ + fi + if test -x "$(SPLINT)"; then \ + $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \ + fi +@NEED_JAVA_TRUE@java: +# Some configurations needs to export JAVA_HOME in the current env +@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ +@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ +@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \ +@NEED_JAVA_TRUE@ $(ANT); \ +@NEED_JAVA_TRUE@ fi + +@NEED_JAVA_TRUE@clean-java: +# Some configurations needs to export JAVA_HOME in the current env +@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ +@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ +@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \ +@NEED_JAVA_TRUE@ $(ANT) clean; \ +@NEED_JAVA_TRUE@ fi; + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +@SWIG_TRUE@swig: $(SWIG_WRAPPERS) +@SWIG_TRUE@ @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \ +@SWIG_TRUE@ SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \ +@SWIG_TRUE@ if test -n "$(SWIG_WRAPPERS)"; then \ +@SWIG_TRUE@ for file in $(SWIG_WRAPPERS) ; do \ +@SWIG_TRUE@ echo "Swig process of $$file (Java) ..."; \ +@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \ +@SWIG_TRUE@ done; \ +@SWIG_TRUE@ fi + +@SWIG_TRUE@swig-scilab: $(SWIG_SCILAB_WRAPPERS) +@SWIG_TRUE@ @SWIG_OUTDIR=src/swig/; \ +@SWIG_TRUE@ if test -n "$(SWIG_SCILAB_WRAPPERS)"; then \ +@SWIG_TRUE@ for file in $(SWIG_SCILAB_WRAPPERS) ; do \ +@SWIG_TRUE@ echo "Swig process of $$file (Scilab) ..."; \ +@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_SCILAB) -outdir $$SWIG_OUTDIR $$file; \ +@SWIG_TRUE@ done; \ +@SWIG_TRUE@ fi + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +@GIWS_TRUE@giws: $(GIWS_WRAPPERS) +@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/; \ +@GIWS_TRUE@ MANDATORY_OPTIONS="--throws-exception-on-error --description-file"; \ +@GIWS_TRUE@ if test -n "$(GIWS_WRAPPERS)"; then \ +@GIWS_TRUE@ for file in $(GIWS_WRAPPERS) ; do \ +@GIWS_TRUE@ echo "GIWS process of $$file ..."; \ +@GIWS_TRUE@ if test -z "$(GIWS_OPTIONS)"; then \ +@GIWS_TRUE@ $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +@GIWS_TRUE@ else \ +@GIWS_TRUE@ echo "Custom GIWS call with '$$GIWS_OPTIONS'"; \ +@GIWS_TRUE@ $(GIWS_BIN) $$GIWS_OPTIONS --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +@GIWS_TRUE@ fi \ +@GIWS_TRUE@ done; \ +@GIWS_TRUE@ fi + +@GIWS_TRUE@giws-exception: +@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/;\ +@GIWS_TRUE@ echo "GIWS: Generation of exception class ..."; \ +@GIWS_TRUE@ $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR + +macros: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been built"; \ + else \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\ + fi) + +# Removes the macros +clean-macros: +# Removes macros (*.bin generated from .sci) + @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \ + rm -f $(builddir)/$$dir/$(MACROBINMASK); \ + done + +test: +# More tests could be added here + @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT) test; \ + fi + +all-local: $(TARGETS_ALL) + +.sci.bin: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been build"; \ + else \ + echo "Creating $@"; \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \ + fi ) + +install-html-local: + +install-data-local-local: +# Mainly for javasci + @if test -d $(srcdir)/javadoc; then \ + cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \ + fi +# If the user wants the help sources to be installed +@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of XML sources of help files --------"; \ +@INSTALL_HELP_XML_TRUE@ for lang in $(ALL_LINGUAS); do \ +@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/$$lang; then \ +@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \ +@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \ +@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \ +@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \ +@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \ +@INSTALL_HELP_XML_TRUE@ done ; \ +@INSTALL_HELP_XML_TRUE@ fi; \ +@INSTALL_HELP_XML_TRUE@ fi; \ +@INSTALL_HELP_XML_TRUE@ done; \ +@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of MathML sources --------"; \ +@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/mml/; then \ +@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \ +@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \ +@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \ +@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \ +@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \ +@INSTALL_HELP_XML_TRUE@ done ; \ +@INSTALL_HELP_XML_TRUE@ fi; \ +@INSTALL_HELP_XML_TRUE@ fi +install-data-local: +# Install the tests + @echo "-------- Install tests (if any) --------"; \ + for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the help chapter + @echo "-------- Install the help chapter (if any) --------"; \ + for lang in $(HELP_CHAPTERLANG); do \ + HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \ + if test -f $$HELPFILE; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + fi; \ + done +# Install the demos & examples + @echo "-------- Install demos & examples (if any) --------"; \ + for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the macros + @echo "-------- Install macros (if any) --------"; \ + for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + if test -d $(srcdir)/$$dir/; then \ + FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\ + if test -n "$(MACROSSPECIALEXT)"; then \ + specialExtDir=""; \ + for specialExt in $(MACROSSPECIALEXT); do \ + specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \ + done; \ + FILELIST="$$FILELIST $$specialExtDir"; \ + fi; \ + for file in `ls -1 $$FILELIST 2>/dev/null`; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \ + done; \ + fi; \ + done +# Install java files (.jar) + @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \ + echo "-------- Install jar files --------"; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \ + for file in $(srcdir)/$(JARDIR)$(JARMASK); do\ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \ + done ; \ + fi + +########### CLEAN ################### +# Clean help (generated automatically by Scilab) +# It used to clean the macro (clean-macros) but this was causing +# make clean && make to fail Scilab startup +@NEED_JAVA_TRUE@clean-local: clean-java +@NEED_JAVA_FALSE@clean-local: + +distclean-local: + rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_* + +.PHONY: macros java swig giws + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/modules/parameters/Scilab_windows_Import.def b/modules/parameters/Scilab_windows_Import.def new file mode 100755 index 000000000..af2ead7c3 --- /dev/null +++ b/modules/parameters/Scilab_windows_Import.def @@ -0,0 +1,7 @@ +LIBRARY scilab_windows.dll + + +EXPORTS + strdup_windows + wstrdup_windows +
\ No newline at end of file diff --git a/modules/parameters/core_Import.def b/modules/parameters/core_Import.def new file mode 100755 index 000000000..b66d68ea3 --- /dev/null +++ b/modules/parameters/core_Import.def @@ -0,0 +1,11 @@ +LIBRARY core.dll + + +EXPORTS +vstk_ +iop_ +com_ +stack_ +freeArrayOfString +MyHeapAlloc +MyHeapFree diff --git a/modules/parameters/demos/parameters.dem.gateway.sce b/modules/parameters/demos/parameters.dem.gateway.sce new file mode 100755 index 000000000..525c007a1 --- /dev/null +++ b/modules/parameters/demos/parameters.dem.gateway.sce @@ -0,0 +1,18 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +function subdemolist = demo_gateway() + + demopath = get_absolute_file_path("parameters.dem.gateway.sce"); + add_demo(_("Parameters"), demopath + "parameters.dem.gateway.sce"); + + subdemolist = [_("plist handling") ,"params_demo.sce"] + + subdemolist(:,2) = demopath + subdemolist(:,2); + +endfunction + +subdemolist = demo_gateway(); +clear demo_gateway; diff --git a/modules/parameters/demos/params_demo.sce b/modules/parameters/demos/params_demo.sce new file mode 100755 index 000000000..5b99c2776 --- /dev/null +++ b/modules/parameters/demos/params_demo.sce @@ -0,0 +1,59 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier +// Copyright (C) 2012 - DIGITEO +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +function demo_param() + + lines(0); + + messagebox(_("This demo shows examples of plist utilizations: creation, insertion, removal, ..."), "modal", "info"); + + printf(_("\nCreate a plist ''%s'' containing two fields ''min'' = [0 0 0] and ''max'' = [1 1 1].\n"), "test_list"); + + test_list = init_param(); + + test_list = add_param(test_list, "min"); + test_list = add_param(test_list, "max"); + disp(list_param(test_list)); + + printf(_("\nCheck fields: \n")); + printf(" is_param(test_list, ''min'') = %f\n", 1.0*is_param(test_list, "min")); + printf(" is_param(test_list, ''max'') = %f\n", 1.0*is_param(test_list, "max")); + printf(" is_param(test_list, ''mex'') = %f\n\n", 1.0*is_param(test_list, "mex")); + + printf(_("Set ''min'' = [0 0 0] and ''max'' = [1 1 1]:\n")); + printf(" set_param(test_list, ''min'', [0 0 0]);\n"); + printf(" set_param(test_list, ''max'', [1 1 1]);\n\n"); + test_list = set_param(test_list, "min", [0 0 0]); + test_list = set_param(test_list, "max", [1 1 1]); + + printf(_("Check values: \n")); + printf(" get_param(test_list, ''min'') = "); disp(get_param(test_list, "min")); + printf(" get_param(test_list, ''max'') = "); disp(get_param(test_list, "max")); + printf(" get_param(test_list, ''mex'') = "); disp(get_param(test_list, "mex")); + + printf(_("\nRemove the parameter ''min'' from %s.\n"), "test_list"); + printf(_("\nBefore remove_param: \n")); + disp(list_param(test_list)); + + printf("\n test_list = remove_param(test_list, ''min'');\n") + test_list = remove_param(test_list, "min"); + + printf(_("\nAfter remove_param: \n")); + disp(list_param(test_list)); + + printf(_("\nCheck removal: \n")); + printf(" get_param(test_list, ''min'') = "); + disp(get_param(test_list, "min")); + + printf(_("\nCheck type: \n")); + printf(" typeof(test_list) = %s\n\n", typeof(test_list)); + +endfunction + +demo_param(); +clear demo_param; diff --git a/modules/parameters/etc/parameters.quit b/modules/parameters/etc/parameters.quit new file mode 100755 index 000000000..ab83f0c89 --- /dev/null +++ b/modules/parameters/etc/parameters.quit @@ -0,0 +1,10 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + diff --git a/modules/parameters/etc/parameters.start b/modules/parameters/etc/parameters.start new file mode 100755 index 000000000..d26035fbd --- /dev/null +++ b/modules/parameters/etc/parameters.start @@ -0,0 +1,13 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// Load functions libraries +// ============================================================================= +load("SCI/modules/parameters/macros/lib"); + diff --git a/modules/parameters/help/en_US/add_param.xml b/modules/parameters/help/en_US/add_param.xml new file mode 100755 index 000000000..8786660a2 --- /dev/null +++ b/modules/parameters/help/en_US/add_param.xml @@ -0,0 +1,101 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="add_param"> + <refnamediv> + <refname>add_param</refname> + <refpurpose>Add a parameter to a list of parameters </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>param_list = add_param(list_name,param_name,param_value)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>list_name</term> + <listitem> + <para>the list of parameters. This list must have been initialize by a call to init_param. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_name</term> + <listitem> + <para>a string. The name of the parameter to be added in the list of parameters. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_value</term> + <listitem> + <para>the value associated to the parameter param_name. This parameter is optional. You can set the value of this parameter via a call to set_param. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_list</term> + <listitem> + <para>the updated list of parameters. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + This function creates a new parameter in a list of parameters. You can set the value of the parameter using this function or you can set it via a call to set_param. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="init_param">init_param</link> + </member> + <member> + <link linkend="set_param">set_param</link> + </member> + <member> + <link linkend="get_param">get_param</link> + </member> + <member> + <link linkend="remove_param">remove_param</link> + </member> + <member> + <link linkend="is_param">is_param</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>History</title> + <revhistory> + <revision> + <revnumber>5.5.0</revnumber> + <revremark>Second output argument (err) tagged as obsolete.</revremark> + </revision> + <revision> + <revnumber>5.5.1</revnumber> + <revremark>Second output argument removed.</revremark> + </revision> + </revhistory> + </refsection> +</refentry> diff --git a/modules/parameters/help/en_US/addchapter.sce b/modules/parameters/help/en_US/addchapter.sce new file mode 100755 index 000000000..d7a522975 --- /dev/null +++ b/modules/parameters/help/en_US/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Parameters",SCI+"/modules/parameters/help/en_US",%T); + diff --git a/modules/parameters/help/en_US/get_param.xml b/modules/parameters/help/en_US/get_param.xml new file mode 100755 index 000000000..5e2c10388 --- /dev/null +++ b/modules/parameters/help/en_US/get_param.xml @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="get_param" xml:lang="en"> + <refnamediv> + <refname>get_param</refname> + <refpurpose>Get the value of a parameter in a parameter list</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>[res,err] = get_param(list_name,param_name,default_value)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>list_name</term> + <listitem> + <para>the list of parameters. This list must have been initialized + by a call to init_param. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_name</term> + <listitem> + <para>a string. The name of the parameter to be add in the list of + parameters. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>default_value</term> + <listitem> + <para>the default value to be stored in the parameter if param_name + has not been found. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>the value of the parameter. If the parameter does not exist, + res = []. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>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). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>This function returns the value of the parameter param_name in a + parameter list. If the err output parameter is not present, when an + error occurs, a message is printed in the console. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); +disp(get_param(mylist,'minbound',-[1 1 1])); +disp(get_param(mylist,'maxbound', [1 1 1])); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="init_param">init_param</link> + </member> + <member> + <link linkend="set_param">set_param</link> + </member> + <member> + <link linkend="add_param">add_param</link> + </member> + <member> + <link linkend="remove_param">remove_param</link> + </member> + <member> + <link linkend="is_param">is_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/en_US/init_param.xml b/modules/parameters/help/en_US/init_param.xml new file mode 100755 index 000000000..27238a1ea --- /dev/null +++ b/modules/parameters/help/en_US/init_param.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="init_param" xml:lang="en"> + <refnamediv> + <refname>init_param</refname> + <refpurpose>Initialize the structure which will handles the parameters + list + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>param_list = init_param(['param_name1',param_value1,...])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>param_list</term> + <listitem> + <para>an initialized list of parameters (if no input + parameters are shipped, this list is empty and is + of type plist). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>This function initialize an empty list of parameters. You must + initialize the list of parameters before using it. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// Creation of an empty plist +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); + +// Creation of a pre-filled plist +mylist_2 = init_param('minbound', [0 0 0], 'maxbound', [1 1 1]); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="add_param">add_param</link> + </member> + <member> + <link linkend="set_param">set_param</link> + </member> + <member> + <link linkend="get_param">get_param</link> + </member> + <member> + <link linkend="remove_param">remove_param</link> + </member> + <member> + <link linkend="is_param">is_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/en_US/is_param.xml b/modules/parameters/help/en_US/is_param.xml new file mode 100755 index 000000000..86dd444bf --- /dev/null +++ b/modules/parameters/help/en_US/is_param.xml @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="is_param" xml:lang="en"> + <refnamediv> + <refname>is_param</refname> + <refpurpose>Check if a parameter is present in a parameter + list + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>[res,err] = is_param(list_name,param_name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>list_name</term> + <listitem> + <para>the list of parameters. This list must have been initialize by + a call to init_param. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_name</term> + <listitem> + <para>a string. The name of the parameter to be add in the list of + parameters. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>the result: %T is the parameter is present, %F + otherwise. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>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). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>This function checks if a parameter is present in a parameter + list. If the err output parameter is not present, when an error + occurs, a message is printed in the console. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); +disp(is_param(mylist,'minbound')); +disp(is_param(mylist,'maxbound')); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="init_param">init_param</link> + </member> + <member> + <link linkend="set_param">set_param</link> + </member> + <member> + <link linkend="get_param">get_param</link> + </member> + <member> + <link linkend="remove_param">remove_param</link> + </member> + <member> + <link linkend="add_param">add_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/en_US/list_param.xml b/modules/parameters/help/en_US/list_param.xml new file mode 100755 index 000000000..f81f9137e --- /dev/null +++ b/modules/parameters/help/en_US/list_param.xml @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="list_param" xml:lang="en"> + <refnamediv> + <refname>list_param</refname> + <refpurpose>List all the parameters name in a list of + parameters + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>[string_list,err] = list_param(list_name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>list_name</term> + <listitem> + <para>the list of parameters. This list must have been initialize by + a call to init_param. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_list</term> + <listitem> + <para>the list of parameters name.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>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). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>List all the parameters name in a list of parameters. If the err + output parameter is not present, when an error occurs, a message is + printed in the console. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); +mylist = add_param(mylist,'maxbound',[1 1 1]); +disp(list_param(mylist)); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="init_param">init_param</link> + </member> + <member> + <link linkend="set_param">set_param</link> + </member> + <member> + <link linkend="get_param">get_param</link> + </member> + <member> + <link linkend="remove_param">remove_param</link> + </member> + <member> + <link linkend="is_param">is_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/en_US/remove_param.xml b/modules/parameters/help/en_US/remove_param.xml new file mode 100755 index 000000000..28fa54aa7 --- /dev/null +++ b/modules/parameters/help/en_US/remove_param.xml @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="remove_param" xml:lang="en"> + <refnamediv> + <refname>remove_param</refname> + <refpurpose>Remove a parameter and its associated value from a list of + parameters + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>[param_list,err] = remove_param(list_name,param_name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>list_name</term> + <listitem> + <para>the list of parameters. This list must have been initialize by + a call to init_param. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_name</term> + <listitem> + <para>a string. The name of the parameter to be removed from the + list of parameters. If the parameter does not exist, nothing + happens. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_list</term> + <listitem> + <para>the updated list of parameters.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>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). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>This function allows to remove a parameter and its associated + value from a list of parameters. If the err output parameter is not + present, when an error occurs, a message is printed in the + console. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); +mylist = add_param(mylist,'maxbound',[0 0 0]); +mylist = remove_param(mylist,'minbound'); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="init_param">init_param</link> + </member> + <member> + <link linkend="set_param">set_param</link> + </member> + <member> + <link linkend="get_param">get_param</link> + </member> + <member> + <link linkend="add_param">add_param</link> + </member> + <member> + <link linkend="is_param">is_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/en_US/set_param.xml b/modules/parameters/help/en_US/set_param.xml new file mode 100755 index 000000000..9f54c5a83 --- /dev/null +++ b/modules/parameters/help/en_US/set_param.xml @@ -0,0 +1,101 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="set_param" xml:lang="en"> + <refnamediv> + <refname>set_param</refname> + <refpurpose>Set the value of a parameter in a parameter list</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>[param_list,err] = set_param(list_name,param_name,param_value)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>list_name</term> + <listitem> + <para>the list of parameters. This list must have been initialize by + a call to init_param. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_name</term> + <listitem> + <para>a string. The name of the parameter to be added in the list of + parameters. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_value</term> + <listitem> + <para>the value to be associated to the parameter param_name.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_list</term> + <listitem> + <para>the updated list of parameters.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>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). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>This function sets the value of an already existing parameter. + If the parameter does not exist, err is set to %T. If the err output + parameter is not present, when an error occurs, a message is printed + in the console. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); +[mylist,err] = set_param(mylist,'minbound',[1 1 1]); disp(err); +[mylist,err] = set_param(mylist,'maxbound',[1 1 1]); disp(err); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="init_param">init_param</link> + </member> + <member> + <link linkend="add_param">add_param</link> + </member> + <member> + <link linkend="get_param">get_param</link> + </member> + <member> + <link linkend="remove_param">remove_param</link> + </member> + <member> + <link linkend="is_param">is_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/fr_FR/addchapter.sce b/modules/parameters/help/fr_FR/addchapter.sce new file mode 100755 index 000000000..cc81df69e --- /dev/null +++ b/modules/parameters/help/fr_FR/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Parameters",SCI+"/modules/parameters/help/fr_FR",%T); + diff --git a/modules/parameters/help/ja_JP/add_param.xml b/modules/parameters/help/ja_JP/add_param.xml new file mode 100755 index 000000000..b9aa495bc --- /dev/null +++ b/modules/parameters/help/ja_JP/add_param.xml @@ -0,0 +1,93 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="add_param"> + <refnamediv> + <refname>add_param</refname> + <refpurpose>パラメータリストにパラメータを追加</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>param_list = add_param(list_name,param_name,param_value)</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>list_name</term> + <listitem> + <para>パラメータのリスト. このリストはinit_paramにより + 初期化されている必要があります. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_name</term> + <listitem> + <para>文字列. パラメータのリストに追加されるパラメータの名前. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_value</term> + <listitem> + <para>パラメータparam_nameの値. このパラメータはオプションです. + このパラメータの値は set_param をコールすることにより + 設定可能です. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_list</term> + <listitem> + <para>更新後のパラメータのリスト. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + この関数は,パラメータのリストに新しいパラメータを作成します. + このパラメータの値は,この関数またはset_paramをコールすることにより + 設定できます. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="init_param">init_param</link> + </member> + <member> + <link linkend="set_param">set_param</link> + </member> + <member> + <link linkend="get_param">get_param</link> + </member> + <member> + <link linkend="remove_param">remove_param</link> + </member> + <member> + <link linkend="is_param">is_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/ja_JP/addchapter.sce b/modules/parameters/help/ja_JP/addchapter.sce new file mode 100755 index 000000000..5abea3431 --- /dev/null +++ b/modules/parameters/help/ja_JP/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Parameters",SCI+"/modules/parameters/help/ja_JP",%T); + diff --git a/modules/parameters/help/ja_JP/get_param.xml b/modules/parameters/help/ja_JP/get_param.xml new file mode 100755 index 000000000..91bd8c51b --- /dev/null +++ b/modules/parameters/help/ja_JP/get_param.xml @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="get_param" xml:lang="ja"> + <refnamediv> + <refname>get_param</refname> + <refpurpose>パラメータリストからパラメータの値を取得</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>[res,err] = get_param(list_name,param_name,default_value)</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>list_name</term> + <listitem> + <para>パラメータのリスト. このリストはinit_paramをコールすることにより + 初期化されている必要があります. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_name</term> + <listitem> + <para>文字列. パラメータのリストのパラメータの名前.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>default_value</term> + <listitem> + <para>param_nameが見つからない場合に使用されるデフォルト値.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>パラメータの値. パラメータが存在しない場合, + res = [] となります. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>エラーフラグで,list_nameがplist型でない + (このリストはinit_paramをコールすることにより初期化されていない) + 場合 %T に設定されます. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para>この関数はパラメータリストのパラメータparam_nameの値を返します. + エラー発生時に出力パラメータerrが存在しない場合, + メッセージがコンソールに出力されます. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); +disp(get_param(mylist,'minbound',-[1 1 1])); +disp(get_param(mylist,'maxbound', [1 1 1])); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="init_param">init_param</link> + </member> + <member> + <link linkend="set_param">set_param</link> + </member> + <member> + <link linkend="add_param">add_param</link> + </member> + <member> + <link linkend="remove_param">remove_param</link> + </member> + <member> + <link linkend="is_param">is_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/ja_JP/init_param.xml b/modules/parameters/help/ja_JP/init_param.xml new file mode 100755 index 000000000..571ed514e --- /dev/null +++ b/modules/parameters/help/ja_JP/init_param.xml @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="init_param" xml:lang="ja"> + <refnamediv> + <refname>init_param</refname> + <refpurpose>パラメータリストを扱う構造体を初期化</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>param_list = init_param(['param_name1',param_value1,...])</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>param_list</term> + <listitem> + <para>初期化済みのパラメータのリスト + (入力パラメータが指定されない場合, このリストは空となり, + plist 型となります). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para>この関数はパラメータの空のリストを初期化します. + パラメータのリストは使用前に初期化する必要があります. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +// 空の plistを作成 +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); +// 代入済みのplistを作成 +mylist_2 = init_param('minbound', [0 0 0], 'maxbound', [1 1 1]); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="add_param">add_param</link> + </member> + <member> + <link linkend="set_param">set_param</link> + </member> + <member> + <link linkend="get_param">get_param</link> + </member> + <member> + <link linkend="remove_param">remove_param</link> + </member> + <member> + <link linkend="is_param">is_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/ja_JP/is_param.xml b/modules/parameters/help/ja_JP/is_param.xml new file mode 100755 index 000000000..2143d328d --- /dev/null +++ b/modules/parameters/help/ja_JP/is_param.xml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="is_param" xml:lang="ja"> + <refnamediv> + <refname>is_param</refname> + <refpurpose>パラメータがパラメータリストに存在するかどうかを確認</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>[res,err] = is_param(list_name,param_name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>list_name</term> + <listitem> + <para>パラメータのリスト.このリストはinit_paramにより + 初期化されている必要があります. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_name</term> + <listitem> + <para>文字列. + パラメータリストで調べるパラメータの名前. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>結果: パラメータが存在する場合は %T, それ以外は %F.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>エラーフラグで,list_nameがplist型でない + (このリストはinit_paramをコールすることにより初期化されていない) + 場合 %T に設定されます. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para>この関数は,指定したパラメータがパラメータリストに + 存在するかどうかを調べます. + エラー発生時に出力パラメータerrが存在しない場合, + メッセージがコンソールに出力されます. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); +disp(is_param(mylist,'minbound')); +disp(is_param(mylist,'maxbound')); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="init_param">init_param</link> + </member> + <member> + <link linkend="set_param">set_param</link> + </member> + <member> + <link linkend="get_param">get_param</link> + </member> + <member> + <link linkend="remove_param">remove_param</link> + </member> + <member> + <link linkend="add_param">add_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/ja_JP/list_param.xml b/modules/parameters/help/ja_JP/list_param.xml new file mode 100755 index 000000000..ccf7e28a2 --- /dev/null +++ b/modules/parameters/help/ja_JP/list_param.xml @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="list_param" xml:lang="ja"> + <refnamediv> + <refname>list_param</refname> + <refpurpose>パラメータリストのパラメータ名のリストを取得 + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>[string_list,err] = list_param(list_name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>list_name</term> + <listitem> + <para>パラメータのリスト.このリストはinit_paramにより + 初期化されている必要があります. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_list</term> + <listitem> + <para>パラメータ名のリスト.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>エラーフラグで,list_nameがplist型でない + (このリストはinit_paramをコールすることにより初期化されていない) + 場合 %T に設定されます. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + パラメータリストのパラメータ名のリストを取得します. + エラー発生時に出力パラメータerrが存在しない場合, + メッセージがコンソールに出力されます. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); +mylist = add_param(mylist,'maxbound',[1 1 1]); +disp(list_param(mylist)); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="init_param">init_param</link> + </member> + <member> + <link linkend="set_param">set_param</link> + </member> + <member> + <link linkend="get_param">get_param</link> + </member> + <member> + <link linkend="remove_param">remove_param</link> + </member> + <member> + <link linkend="is_param">is_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/ja_JP/remove_param.xml b/modules/parameters/help/ja_JP/remove_param.xml new file mode 100755 index 000000000..5e13255e6 --- /dev/null +++ b/modules/parameters/help/ja_JP/remove_param.xml @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="remove_param" xml:lang="ja"> + <refnamediv> + <refname>remove_param</refname> + <refpurpose>パラメータリストからパラメータとその値を削除する + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>[param_list,err] = remove_param(list_name,param_name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>list_name</term> + <listitem> + <para>パラメータのリスト. このリストはinit_paramをコールすることにより + 初期化されている必要があります. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_name</term> + <listitem> + <para>文字列. パラメータリストから削除するパラメータの名前. + このパラメータが存在しない場合,何も行われません. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_list</term> + <listitem> + <para>更新後のパラメータリスト.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>エラーフラグで,list_nameがplist型でない + (このリストはinit_paramをコールすることにより初期化されていない) + 場合 %T に設定されます. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para>この関数によりパラメータリストから + パラメータおよびその値を削除することが可能です. + エラー発生時に出力パラメータerrが存在しない場合, + メッセージがコンソールに出力されます. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); +mylist = add_param(mylist,'maxbound',[0 0 0]); +mylist = remove_param(mylist,'minbound'); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="init_param">init_param</link> + </member> + <member> + <link linkend="set_param">set_param</link> + </member> + <member> + <link linkend="get_param">get_param</link> + </member> + <member> + <link linkend="add_param">add_param</link> + </member> + <member> + <link linkend="is_param">is_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/ja_JP/set_param.xml b/modules/parameters/help/ja_JP/set_param.xml new file mode 100755 index 000000000..a34fa2af7 --- /dev/null +++ b/modules/parameters/help/ja_JP/set_param.xml @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<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="set_param" xml:lang="ja"> + <refnamediv> + <refname>set_param</refname> + <refpurpose>パラメータリストのパラメータの値を設定する</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>[param_list,err] = set_param(list_name,param_name,param_value)</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>list_name</term> + <listitem> + <para>パラメータのリスト. このリストはinit_paramをコールすることにより + 初期化されている必要があります. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_name</term> + <listitem> + <para>文字列. 値を指定するパラメータリストのパラメータ.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_value</term> + <listitem> + <para>パラメータparam_nameの値.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>param_list</term> + <listitem> + <para>更新後のパラメータリスト.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>エラーフラグで,list_nameがplist型でない + (このリストはinit_paramをコールすることにより初期化されていない) + 場合 %T に設定されます. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para>この関数は,既に存在するパラメータの値を設定します. + パラメータ存在しない場合,errが%Tに設定されます. + エラー発生時に出力パラメータerrが存在しない場合, + メッセージがコンソールに出力されます. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +mylist = init_param(); +mylist = add_param(mylist,'minbound',[0 0 0]); +[mylist,err] = set_param(mylist,'minbound',[1 1 1]); disp(err); +[mylist,err] = set_param(mylist,'maxbound',[1 1 1]); disp(err); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="init_param">init_param</link> + </member> + <member> + <link linkend="add_param">add_param</link> + </member> + <member> + <link linkend="get_param">get_param</link> + </member> + <member> + <link linkend="remove_param">remove_param</link> + </member> + <member> + <link linkend="is_param">is_param</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/parameters/help/pt_BR/addchapter.sce b/modules/parameters/help/pt_BR/addchapter.sce new file mode 100755 index 000000000..a5c2a7329 --- /dev/null +++ b/modules/parameters/help/pt_BR/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Parâmetros",SCI+"/modules/parameters/help/pt_BR",%T); + diff --git a/modules/parameters/help/ru_RU/addchapter.sce b/modules/parameters/help/ru_RU/addchapter.sce new file mode 100755 index 000000000..39aa796cf --- /dev/null +++ b/modules/parameters/help/ru_RU/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Parameters",SCI+"/modules/parameters/help/ru_RU",%T); + diff --git a/modules/parameters/includes/parameters.h b/modules/parameters/includes/parameters.h new file mode 100755 index 000000000..e4e126125 --- /dev/null +++ b/modules/parameters/includes/parameters.h @@ -0,0 +1,194 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010 - DIGITEO - Yann COLLETTE + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + */ + +#ifndef PARAMETERS_H +#define PARAMETERS_H + +#include "api_scilab.h" + +enum type_check +{ + CHECK_NONE, + CHECK_SIZE, + CHECK_MIN, + CHECK_MAX, + CHECK_BOTH, + CHECK_VALUES +}; + +/** + * Get a pointer to an existing plist + * @param[in] _iVar position on the stack + * @param[out] _piAddress variable address + * @return a SciErr structure + */ +SciErr initPList(void* _pvCtx, int _iVar, int ** _piAddress); + +/** + * Check that a pointer points to an existing plist + * @param[in] _piAddress variable address + * @return !0 if it's a plist 0 otherwise + */ +int checkPList(void* _pvCtx, int * _piAddress); + +/** + * Check that a label exists in a plist + * @param[in] _piAddress variable address + * @param[in] _pstLabel the label to be checked + * @return the position of the label in the plist -1 otherwise + */ +int hasLabelInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel); + +/** + * Check that a label is partially matched in a plist + * @param[in] _piAddress variable address + * @param[in] _pstLabel the label to be checked + * @return the position of the label in the plist -1 otherwise + */ +int hasPartialLabelInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel); + +/** + * Get a C int associated to a label from a plist + * @param[in] _piAddress variable address + * @param[in] _pstLabel the label to be checked + * @param[out] _piValue the value stored in the plist + * @param[out] _piFound !-1 if the label has been found -1 otherwise + * @param[in] _iDefaultValue the value returned in '_piValue' if the label has not been found + * @param[in] _iLog display information messages during type_check + * @param[in] check a type of checking in the value returned in '_piValue' + * @return a SciErr structure + */ +SciErr getIntInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel, int * _piValue, int * _piFound, + int _iDefaultValue, int _iLog, enum type_check check, ...); + +/** + * Get a C double associated to a label from a plist + * @param[in] _piAddress variable address + * @param[in] _pstLabel the label to be checked + * @param[out] _pdblValue the value stored in the plist + * @param[out] _piFound !-1 if the label has been found -1 otherwise + * @param[in] _dblDefaultValue the value returned in '_pdblValue' if the label has not been found + * @param[in] _iLog display information messages during type_check + * @param[in] check a type of checking in the value returned in '_pdblValue' + * @return a SciErr structure + */ +SciErr getDoubleInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel, double * _pdblValue, int * _piFound, + double _dblDefaultValue, int _iLog, enum type_check check, ...); + +/** + * Get a C string associated to a label from a plist + * @param[in] _piAddress variable address + * @param[in] _pstLabel the label to be checked + * @param[out] _pstValue the value stored in the plist + * @param[out] _piFound !-1 if the label has been found -1 otherwise + * @param[in] _pstDefaultValue the value returned in '_pstValue' if the label has not been found + * @param[in] _iLog display information messages during type_check + * @param[in] check a type of checking in the value returned in '_pstValue' + * @return a SciErr structure + */ +SciErr getStringInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel, char ** _pstValue, int * _piFound, + const char * _pstDefaultValue, int _iLog, enum type_check check, ...); + +/** + * Get a C column vector of int associated to a label from a plist + * @param[in] _piAddress variable address + * @param[in] _pstLabel the label to be checked + * @param[out] _piValue the value stored in the plist + * @param[out] _piFound !-1 if the label has been found -1 otherwise + * @param[in] _iDefaultValue the value returned in '_piValue' if the label has not been found + * @param[in] _iDefaultSize the size of the vector of int that must be returned + * @param[out] _piSize the size of the vector of int that has been read + * @param[in] _iLog display information messages during type_check + * @param[in] check a type of checking in the value returned in '_piValue' + * @return a SciErr structure + */ +SciErr getColVectorOfIntInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel, int * _piValue, int * _piFound, + int _iDefaultValue, int _iDefaultSize, int * _piSize, int _iLog, enum type_check check, ...); + +/** + * Get a C column vector of double associated to a label from a plist + * @param[in] _piAddress variable address + * @param[in] _pstLabel the label to be checked + * @param[out] _pdblValue the value stored in the plist + * @param[out] _piFound !-1 if the label has been found -1 otherwise + * @param[in] _dblDefaultValue the value returned in '_pdblValue' if the label has not been found + * @param[in] _iDefaultSize the size of the vector of int that must be returned + * @param[out] _piSize the size of the vector of int that has been read + * @param[in] _iLog display information messages during type_check + * @param[in] check a type of checking in the value returned in '_pdblValue' + * @return a SciErr structure + */ +SciErr getColVectorOfDoubleInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel, double * _pdblValue, int * _piFound, + double _dblDefaultValue, int _iDefaultSize, int * _piSize, int _iLog, enum type_check check, ...); + +/** + * Create a plist + * @param[in] _iVar the position on the stack of the plist + * @param[in] _piAddress variable address + * @param[in] _pstLabelNames a vector of labels for the plist + * @param[in] _iNbParams the number of labels + * @return a SciErr structure + */ +SciErr createPList(void* _pvCtx, int _iVar, int ** _piAddress, char ** _pstLabelNames, int _iNbParams); + +/** + * Store a C int value in a plist and associates it to the given label + * @param[in] _iVar the position on the stack of the plist + * @param[in] _piAddress variable address + * @param[in] _pstLabelName the label to which the value must be associated + * @param[in] _iValue the value to be stored in the plist + * @return a SciErr structure + */ +SciErr createIntInPList(void* _pvCtx, int _iVar, int * _piAddress, char * _pstLabelName, int _iValue); + +/** + * Store a C double value in a plist and associates it to the given label + * @param[in] _iVar the position on the stack of the plist + * @param[in] _piAddress variable address + * @param[in] _pstLabelName the label to which the value must be associated + * @param[in] _dblValue the value to be stored in the plist + * @return a SciErr structure + */ +SciErr createDoubleInPList(void* _pvCtx, int _iVar, int * _piAddress, char * _pstLabelName, double _dblValue); + +/** + * Store a C string value in a plist and associates it to the given label + * @param[in] _iVar the position on the stack of the plist + * @param[in] _piAddress variable address + * @param[in] _pstLabelName the label to which the value must be associated + * @param[in] _pstValue the value to be stored in the plist + * @return a SciErr structure + */ +SciErr createStringInPList(void* _pvCtx, int _iVar, int * _piAddress, char * _pstLabelName, char * _pstValue); + +/** + * Store a C column vector of int values in a plist and associates it to the given label + * @param[in] _iVar the position on the stack of the plist + * @param[in] _piAddress variable address + * @param[in] _pstLabelName the label to which the value must be associated + * @param[in] _iNbValues the size of the vector to be stored in the plist + * @param[in] _piValue the value to be stored in the plist + * @return a SciErr structure + */ +SciErr createColVectorOfIntInPList(void* _pvCtx, int _iVar, int * _piAddress, char * _pstLabelName, int _iNbValues, int * _piValue); + +/** + * Store a C column vector of double values in a plist and associates it to the given label + * @param[in] _iVar the position on the stack of the plist + * @param[in] _piAddress variable address + * @param[in] _pstLabelName the label to which the value must be associated + * @param[in] _iNbValues the size of the vector to be stored in the plist + * @param[in] _pdblValue the value to be stored in the plist + * @return a SciErr structure + */ +SciErr createColVectorOfDoubleInPList(void* _pvCtx, int _iVar, int * _piAddress, char * _pstLabelName, int _iNbValues, double * _pdblValue); + +#endif diff --git a/modules/parameters/libsciparameters.la b/modules/parameters/libsciparameters.la new file mode 100755 index 000000000..9ae473ee3 --- /dev/null +++ b/modules/parameters/libsciparameters.la @@ -0,0 +1,41 @@ +# libsciparameters.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='' + +# Names of this library. +library_names='' + +# The name of the static archive. +old_library='libsciparameters.a' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -lpthread -ldl -lcurses -lm' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for libsciparameters. +current= +age= +revision= + +# Is this an already installed library? +installed=no + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='' diff --git a/modules/parameters/license.txt b/modules/parameters/license.txt new file mode 100755 index 000000000..da3e0b896 --- /dev/null +++ b/modules/parameters/license.txt @@ -0,0 +1,9 @@ +Copyright: +Copyright (c) 2008 - Yann Collette + +License: +This module must be used under the terms of the CeCILL. +This module file is licensed as described in the file COPYING, which +you should have received as part of this distribution. The terms +are also available at +http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt diff --git a/modules/parameters/locales/ca_ES.po b/modules/parameters/locales/ca_ES.po new file mode 100755 index 000000000..ffec94e10 --- /dev/null +++ b/modules/parameters/locales/ca_ES.po @@ -0,0 +1,203 @@ +# Catalan translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2011-09-01 09:49+0000\n" +"Last-Translator: oriolsbd <oriolsbd@yahoo.es>\n" +"Language-Team: Catalan <ca@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: ca\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "" +"%s: El paràmetre és d'un tipus incorrecte. Ha de ser un %s. Es retorna el " +"valor predeterminat %d.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "" +"%s: No s'ha trobat el paràmetre. Es retorna el valor predeterminat %d.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "" +"%s: El límit inferior del paràmetre %s és invàlid: Límit inferior %d, valor " +"%d\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "" +"%s: El límit superior del paràmetre %s és invàlid: Límit superior %d, valor " +"%d\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "%s: El paràmetre %s té un valor incorrecte: valor %d\n" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s: paràmetres esperats: " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "" +"%s: El paràmetre és d'un tipus incorrecte. Ha de ser un %s. Es retorna el " +"valor predeterminat %f.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "" +"%s: No s'ha trobat el paràmetre. Es retorna el valor predeterminat %f.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "" +"%s: El límit inferior del paràmetre %s és invàlid: Límit inferior %f, valor " +"%f\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "" +"%s: El límit superior del paràmetre %s és invàlid: Límit superior %f, valor " +"%f\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "%s: El paràmetre %s té un valor incorrecte: valor %f\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "" +"%s: El paràmetre és d'un tipus incorrecte. Ha de ser un %s. Es retorna el " +"valor predeterminat %s.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "" +"%s: No s'ha trobat el paràmetre. Es retorna el valor predeterminat %s.\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "%s: El paràmetre %s té un valor incorrecte: valor %s\n" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "" +"%s: El paràmetre %s té una mida incorrecta. Es demanava %d, i s'ha rebut " +"%d.\n" + +msgid "Parameters" +msgstr "" + +msgid "plist handling" +msgstr "" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "" + +#, c-format +msgid "Check values: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser %s.\n" + +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s: No s'ha definit el paràmetre %s" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "" +"%s: El nombre d'arguments d'entrada és incorrecte: Ha de ser un nombre " +"senar.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser un text.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s: No existeix el paràmetre" diff --git a/modules/parameters/locales/cs_CZ.po b/modules/parameters/locales/cs_CZ.po new file mode 100755 index 000000000..575289516 --- /dev/null +++ b/modules/parameters/locales/cs_CZ.po @@ -0,0 +1,179 @@ +# Czech translation for scilab +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2011-09-02 15:17+0000\n" +"Last-Translator: davidcl <Unknown>\n" +"Language-Team: Czech <cs@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "%s: špatný typ parametru. Očekáván %s. Návrat původní hodnoty %d.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "%s: parametr nenalezen. Návrat původní hodnoty %d.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "%s: špatná min hranice pro parametr %s: min hranice %d, hodnota %d\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "%s: špatná max hranice pro parametr %s: max hranice %d, hodnota %d\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "%s: špatná velikost parametru %s: hodnota %d\n" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s: očekávané parametry: " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "%s: špatný typ parametru. Očekáván %s. Návrat původní hodnoty %f.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "%s: parametr nenalezen. Návrat původní hodnoty %f.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "%s: špatná min hranice pro parametr %s: min hranice %f, hodnota %f\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "%s: špatná max hranice pro parametr %s: max hranice %f, hodnota %f\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "%s: špatná velikost parametru %s: hodnota %f\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "%s: špatný typ parametru. Očekáván %s. Návrat původní hodnoty %s.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "%s: parametr nenalezen. Návrat původní hodnoty %s.\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "%s: špatná velikost parametru %s: hodnota %s\n" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "%s: špatná velikost parametru %s: požadován %d, zadáno %d\n" + +msgid "Parameters" +msgstr "" + +msgid "plist handling" +msgstr "" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "" + +#, c-format +msgid "Check values: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: očekáváno %s.\n" + +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s: parametr %s není stanoven" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "%s: Špatný počet vstupních argumentů: Očekáváno sudé číslo.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: Očekáván řetězec.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s: parametr neexistuje" diff --git a/modules/parameters/locales/de_DE.po b/modules/parameters/locales/de_DE.po new file mode 100755 index 000000000..c3a116376 --- /dev/null +++ b/modules/parameters/locales/de_DE.po @@ -0,0 +1,193 @@ +# German translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2012-03-04 18:11+0000\n" +"Last-Translator: Dennis Baudys <Unknown>\n" +"Language-Team: German <de@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: de\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "" +"%s: Falscher Parametertyp. %s erwartet. Rückgabe von Defaultwert %d.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "%s: Parameter nicht gefunden. Rückgabe von Defaultwert %d.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "" +"%s: Unverträglich mit unterer Grenze für Parameter %s: Untere Grenze %d, " +"Wert %d\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "" +"%s: Unverträglich mit oberer Grenze für Parameter %s: Obere Grenze %d, Wert " +"%d\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "%s: Falscher Wert für Parameter %s: Wert %d\n" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s: Erwartete Parameter: " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "" +"%s: Falscher Parametertyp. %s erwartet. Rückgabe von Defaultwert %f.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "%s: Parameter nicht gefunden. Rückgabe von Defaultwert %f.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "" +"%s: Unverträglich mit unterer Grenze für Parameter %s: Untere Grenze %f, " +"Wert %f\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "" +"%s: Unverträglich mit oberer Grenze für Parameter %s: Obere Grenze %f, Wert " +"%f\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "%s: Falscher Wert für Parameter %s: Wert %f\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "" +"%s: Falscher Parametertyp. %s erwartet. Rückgabe von Defaultwert %s.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "%s: Parameter nicht gefunden. Rückgabe von Defaultwert %s.\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "%s: Falscher Wert für Parameter %s: Wert %s\n" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "%s: Falsche Größe für Parameter %s: %d angefordert, %d erhalten\n" + +msgid "Parameters" +msgstr "" + +msgid "plist handling" +msgstr "" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "" + +#, c-format +msgid "Check values: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "%s: Falscher Typ für Eingangsargument #%d: %s erwartet.\n" + +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s: Parameter %s nicht definiert" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "" +"%s: Falsche Anzahl von Eingangsargumenten: eine gerade Anzahl erwartet.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: Falscher Typ für Eingangsargument #%d: eine Zeichenkette erwartet.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s: Parameter existiert nicht" diff --git a/modules/parameters/locales/es_ES.po b/modules/parameters/locales/es_ES.po new file mode 100755 index 000000000..395d405f1 --- /dev/null +++ b/modules/parameters/locales/es_ES.po @@ -0,0 +1,194 @@ +# Spanish translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2011-09-01 09:53+0000\n" +"Last-Translator: Scilab.team <Unknown>\n" +"Language-Team: Spanish <es@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: es\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "" +"%s: tipo de parámetro incorrecto. Se esperaba %s. valor predeterminado %d.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "%s: parámetro no encontrado. Valor predeterminado %d.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "" +"%s: límite inferior del parámetro %s es incorrecto: límite inferior %d, " +"valor %d\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "" +"%s: límite superior del parámetro %s es incorrecto: límite superior %d, " +"valor %d\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "%s: valor del parámetro %s incorrecto: valor %d\n" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s: parámetros esperados: " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "" +"%s: tipo de parámetro incorrecto. Se esperaba %s. valor predeterminado %f.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "%s: parámetro no encontrado. Valor predeterminado %f.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "" +"%s: límite inferior del parámetro %s es incorrecto: límite inferior %f, " +"valor %f\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "" +"%s: límite superior del parámetro %s es incorrecto: límite superior %f, " +"valor %f\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "%s: valor del parámetro %s incorrecto: valor %f\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "" +"%s: tipo de parámetro incorrecto. Se esperaba %s. valor predeterminado %s.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "%s: parámetro no encontrado. Valor predeterminado %s.\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "%s: valor del parámetro %s incorrecto: valor %s\n" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "" +"%s: tamaño del parámetro %s incorrecto: Se pidió %d, pero se obtuvo %d\n" + +msgid "Parameters" +msgstr "" + +msgid "plist handling" +msgstr "" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "" + +#, c-format +msgid "Check values: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba %s.\n" + +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s: el parámetro %s no está definido" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "" +"%s: Número incorrecto de argumentos de entrada: Se esperaba un número par.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un string.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s: parámetro inexistente" diff --git a/modules/parameters/locales/fr_FR.po b/modules/parameters/locales/fr_FR.po new file mode 100755 index 000000000..5a1a10854 --- /dev/null +++ b/modules/parameters/locales/fr_FR.po @@ -0,0 +1,212 @@ +# French translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2013-12-11 14:26+0000\n" +"Last-Translator: Julie PAUL <Unknown>\n" +"Language-Team: French <fr@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: fr\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "" +"%s : Type de paramètre erroné. %s attendu. Valeur de retour par défaut %d.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "" +"%s : Impossible de trouver le paramètre. Valeur de retour par défaut %d.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "" +"%s : Limite minimum erronée du paramètre %s : Limite minimum %d, valeur %d\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "" +"%s : Limite maximum erronée du paramètre %s : Limite maximum %d, valeur %d\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "%s : Valeur erronée du paramètre %s : Valeur %d\n" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s : Paramètres attendus : " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "" +"%s : Type de paramètre erroné. %s attendu. Valeur de retour par défaut %f.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "" +"%s : Impossible de trouver le paramètre. Valeur de retour par défaut %f.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "" +"%s : Limite minimum erronée du paramètre %s : Limite minimum %f, valeur %f\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "" +"%s : Limite maximum erronée du paramètre %s : Limite maximum %f, valeur %f\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "%s : Valeur erronée du paramètre %s : Valeur %f\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "" +"%s : Type de paramètre erroné. %s attendu. Valeur de retour par défaut %s.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "" +"%s : Impossible de trouver le paramètre. Valeur de retour par défaut %s.\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "%s : Valeur erronée du paramètre %s : Valeur %s\n" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "%s : Dimension erronée du paramètre %s : %d attendu, %d obtenu\n" + +msgid "Parameters" +msgstr "Paramètres" + +msgid "plist handling" +msgstr "Gestion d'une plist" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" +"Cette démonstration donne des exemples d'utilisation d'une plist : création, " +"insertion, suppression..." + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" +"\n" +"Création d'une plist '%s' contenant deux champs 'min' = [0 0 0] et 'max' = " +"[1 1 1].\n" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" +"\n" +"Vérification des champs : \n" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "Configuration de 'min' = [0 0 0] et 'max' = [1 1 1] :\n" + +#, c-format +msgid "Check values: \n" +msgstr "Vérification des valeurs : \n" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" +"\n" +"Suppression du paramètre 'min' de %s.\n" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" +"\n" +"Avant remove_param : \n" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" +"\n" +"Après remove_param : \n" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" +"\n" +"Vérification de la suppression : \n" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" +"\n" +"Vérification du type : \n" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "Le deuxième argument de sortie de %s est obsolète.\n" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "Cet argument sera définitivement supprimé dans Scilab %s" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "%s : Nombre erroné d'arguments d'entrée : %d à %d attendus.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : La clé %s a déjà été " +"définie.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "%s : Type erroné de l'argument d'entrée n°%d : %s attendu.\n" + +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s : Le paramètre %s n'est pas défini" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "" +"%s : Nombre erroné d'argument(s) d'entrée : Un nombre pair attendu.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une chaîne de caractères " +"attendue.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s : Nombre erroné d'arguments d'entrée : %d attendus.\n" + +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s : Ce paramètre n'existe pas" diff --git a/modules/parameters/locales/it_IT.po b/modules/parameters/locales/it_IT.po new file mode 100755 index 000000000..bbb0792f6 --- /dev/null +++ b/modules/parameters/locales/it_IT.po @@ -0,0 +1,222 @@ +# Italian translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2015-02-14 22:21+0000\n" +"Last-Translator: Carml <mighty.carml@gmail.com>\n" +"Language-Team: Italian <it@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: it\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "" +"%s: parametro di tipo sbagliato. Era atteso %s. Restituisce il valore " +"predefinito %d.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "%s: parametro non trovato. Restituisce il valore predefinito %d.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "" +"%s: il limite minimo per il parametro %s è sbagliato: limite minimo %d, " +"valore %d\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "" +"%s: il limite massimo per il parametro %s è sbagliato: limite massimo %d, " +"valore %d\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "%s: valore sbagliato per il parametro %s: valore %d\n" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s: parametri attesi: " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "" +"%s: parametro di tipo sbagliato. Era atteso %s. Restituisce il valore " +"predefinito %f.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "%s: parametro non trovato. Restituisce il valore predefinito %f.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "" +"%s: il limite minimo per il parametro %s è sbagliato: limite minimo %f, " +"valore %f\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "" +"%s: il limite massimo per il parametro %s è sbagliato: limite massimo %f, " +"valore %f\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "%s: valore sbagliato per il parametro %s: valore %f\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "" +"%s: parametro di tipo sbagliato. Era atteso %s. Restituisce il valore " +"predefinito %s.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "%s: parametro non trovato. Restituisce il valore predefinito %s.\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "%s: valore sbagliato per il parametro %s: valore %s\n" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "" +"%s: dimensione sbagliata per il parametro %s: richiesto %d,ottenuto %d\n" + +msgid "Parameters" +msgstr "Parametri" + +msgid "plist handling" +msgstr "gestione delle plist" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" +"Questa demo mostra esempi d'uso delle plist: creazione, inserimento, " +"rimozione, ..." + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" +"\n" +"Crea una plist \"%s\" contenente due campi \"min\" = [0 0 0] e \"max\" = [1 " +"1 1].\n" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" +"\n" +"Controllare i campi: \n" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "Imposta \"min\" = [0 0 0] e \"max\" = [1 1 1]:\n" + +#, c-format +msgid "Check values: \n" +msgstr "Controllare i valori: \n" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" +"\n" +"Rimuovere il parametro \"min\" da %s.\n" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" +"\n" +"Prima di remove_param: \n" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" +"\n" +"Dopo remove_param: \n" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" +"\n" +"Controllare la rimozione: \n" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" +"\n" +"Controllare il tipo: \n" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "Il secondo argomento in uscita di %s è obsoleto.\n" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "Questo argomento verrà rimosso permanentemente in Scilab %s" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" +"%s: Il numero degli argomenti in ingresso è sbagliato: era atteso da %d a " +"%d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: la chiave %s è già " +"definita.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era atteso %s.\n" + +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s: il parametro %s non è definito" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "" +"%s: Il numero degli argomenti in ingresso è sbagliato: era atteso un numero " +"pari.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una " +"stringa.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" +"%s: Il numero degli argomenti in ingresso è sbagliato: ne erano attesi %d.\n" + +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s: il parametro non esiste" diff --git a/modules/parameters/locales/ja_JP.po b/modules/parameters/locales/ja_JP.po new file mode 100755 index 000000000..cc7fd92b4 --- /dev/null +++ b/modules/parameters/locales/ja_JP.po @@ -0,0 +1,200 @@ +# Japanese translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2013-12-08 11:54+0000\n" +"Last-Translator: Rui Hirokawa <Unknown>\n" +"Language-Team: Japanese <z-saito@guitar.ocn.ne.jp>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"X-Poedit-Country: Japan\n" +"Language: ja\n" +"X-Poedit-Language: Japanese\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "%s: パラメータの型が間違っています. %s を指定してください. デフォルト値 %d を返します.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "%s: パラメータが見つかりません. デフォルト値 %d を返します.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "%s: パラメータ %s の下界が誤っています: 下界 %d, 値 %d\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "%s: パラメータ %s の上界が誤っています: 上界 %d, 値 %d\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "%s: パラメータ %s の値が間違っています: 値 %d\n" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s: 必要なパラメータ: " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "%s: パラメータの型が間違っています. %s を指定してください. デフォルト値 %f を返します.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "%s: パラメータが見つかりません. デフォルト値 %f を返します.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "%s: パラメータ %s の下界が誤っています: 下界 %f, 値 %f\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "%s: パラメータ %s の上界が誤っています: 上界 %f, 値 %f\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "%s: パラメータ %s の値が間違っています: 値 %f\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "%s: パラメータの型が間違っています. %s を指定してください. デフォルト値 %s を返します.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "%s: パラメータが見つかりません. デフォルト値 %s を返します.\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "%s: パラメータ %s の値が間違っています: 値 %s\n" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "%s: パラメータ %s の大きさが間違っています: %d が必要ですが, %d が指定されました.\n" + +msgid "Parameters" +msgstr "パラメータ" + +msgid "plist handling" +msgstr "plist処理" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "このデモはplistの使用例を示します: 作成, 挿入, 削除, ..." + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" +"\n" +"2つのフィールド 'min' = [0 0 0] と 'max' = [1 1 1] を有する plist '%s' を作成します.\n" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" +"\n" +"フィールドを確認: \n" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "'min' = [0 0 0] 及び 'max' = [1 1 1] と設定:\n" + +#, c-format +msgid "Check values: \n" +msgstr "値を確認: \n" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" +"\n" +"%s からパラメータ 'min' を削除.\n" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" +"\n" +"remove_paramの前: \n" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" +"\n" +"remove_paramの後: \n" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" +"\n" +"削除を確認: \n" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" +"\n" +"型を確認: \n" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "%s の第二出力引数は廃止予定です.\n" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "この引数は Scilab %s から削除されます" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "%s: 入力引数の数が間違っています: %d から %d 個の引数を指定してください.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "%s: 入力引数 #%d の値が間違っています: キー %s が既に定義されています.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "%s: 入力引数 #%d の型が間違っています : %s を指定してください.\n" + +# +# File: macros/get_param.sci, line: 28 +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s: パラメータ %s は定義されていません" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "%s: 入力引数の数が間違っています: 偶数を指定してください.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s: 入力引数 #%d の型が間違っています : 文字列を指定してください.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: 入力引数の数が間違っています: %d 個の引数を指定してください.\n" + +# +# File: macros/set_param.sci, line: 19 +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s: パラメーターは存在しません" diff --git a/modules/parameters/locales/parameters.pot b/modules/parameters/locales/parameters.pot new file mode 100755 index 000000000..b7f66b054 --- /dev/null +++ b/modules/parameters/locales/parameters.pot @@ -0,0 +1,304 @@ +# Localization of the module parameters +# Please see in SCI/tools/localization for localization management +# Copyright (C) 2007-2008 - INRIA +# Copyright (C) 2008-2011 - DIGITEO +# Copyright (C) 2012-2014 - Scilab-Enterprises +# This file is distributed under the same license as the Scilab package. +# +msgid "" +msgstr "" +"Project-Id-Version: Scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"Last-Translator: Vincent COUVERT <vincent.couvert@scilab-enterprises.com>\n" +"Language-Team: Scilab Localization <localization@lists.scilab.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Revision-Date: 2015-03-27 13:54+0100\n" + +# File: src/c/parameters.c, line: 144 +# File: src/c/parameters.c, line: 571 +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 153 +# File: src/c/parameters.c, line: 581 +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 178 +# File: src/c/parameters.c, line: 181 +# File: src/c/parameters.c, line: 206 +# File: src/c/parameters.c, line: 210 +# File: src/c/parameters.c, line: 621 +# File: src/c/parameters.c, line: 624 +# File: src/c/parameters.c, line: 649 +# File: src/c/parameters.c, line: 653 +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 192 +# File: src/c/parameters.c, line: 195 +# File: src/c/parameters.c, line: 220 +# File: src/c/parameters.c, line: 223 +# File: src/c/parameters.c, line: 635 +# File: src/c/parameters.c, line: 638 +# File: src/c/parameters.c, line: 663 +# File: src/c/parameters.c, line: 666 +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 241 +# File: src/c/parameters.c, line: 256 +# File: src/c/parameters.c, line: 684 +# File: src/c/parameters.c, line: 699 +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 242 +# File: src/c/parameters.c, line: 390 +# File: src/c/parameters.c, line: 507 +# File: src/c/parameters.c, line: 685 +# File: src/c/parameters.c, line: 888 +#, c-format +msgid "%s: awaited parameters: " +msgstr "" + +# +# File: src/c/parameters.c, line: 292 +# File: src/c/parameters.c, line: 750 +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 301 +# File: src/c/parameters.c, line: 760 +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 326 +# File: src/c/parameters.c, line: 329 +# File: src/c/parameters.c, line: 354 +# File: src/c/parameters.c, line: 358 +# File: src/c/parameters.c, line: 805 +# File: src/c/parameters.c, line: 813 +# File: src/c/parameters.c, line: 843 +# File: src/c/parameters.c, line: 852 +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 340 +# File: src/c/parameters.c, line: 343 +# File: src/c/parameters.c, line: 368 +# File: src/c/parameters.c, line: 371 +# File: src/c/parameters.c, line: 824 +# File: src/c/parameters.c, line: 832 +# File: src/c/parameters.c, line: 862 +# File: src/c/parameters.c, line: 870 +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 389 +# File: src/c/parameters.c, line: 404 +# File: src/c/parameters.c, line: 887 +# File: src/c/parameters.c, line: 904 +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 453 +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 462 +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 506 +# File: src/c/parameters.c, line: 527 +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "" + +# +# File: src/c/parameters.c, line: 607 +# File: src/c/parameters.c, line: 610 +# File: src/c/parameters.c, line: 786 +# File: src/c/parameters.c, line: 794 +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "" + +# File: demos/parameters.dem.gateway.sce, line: 9 +msgid "Parameters" +msgstr "" + +# +# File: demos/parameters.dem.gateway.sce, line: 11 +msgid "plist handling" +msgstr "" + +# +# File: demos/params_demo.sce, line: 13 +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" + +# +# File: demos/params_demo.sce, line: 15 +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" + +# +# File: demos/params_demo.sce, line: 23 +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" + +# +# File: demos/params_demo.sce, line: 28 +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "" + +# +# File: demos/params_demo.sce, line: 34 +#, c-format +msgid "Check values: \n" +msgstr "" + +# +# File: demos/params_demo.sce, line: 39 +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" + +# +# File: demos/params_demo.sce, line: 40 +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" + +# +# File: demos/params_demo.sce, line: 46 +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" + +# +# File: demos/params_demo.sce, line: 49 +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" + +# +# File: demos/params_demo.sce, line: 53 +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" + +# +# File: macros/add_param.sci, line: 15 +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "" + +# +# File: macros/add_param.sci, line: 16 +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "" + +# +# File: macros/add_param.sci, line: 20 +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" + +# +# File: macros/add_param.sci, line: 30 +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" + +# +# File: macros/add_param.sci, line: 33 +# File: macros/get_param.sci, line: 51 +# File: macros/is_param.sci, line: 27 +# File: macros/is_param.sci, line: 33 +# File: macros/list_param.sci, line: 21 +# File: macros/remove_param.sci, line: 40 +# File: macros/set_param.sci, line: 25 +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "" + +# +# File: macros/get_param.sci, line: 44 +#, c-format +msgid "%s: parameter %s not defined" +msgstr "" + +# +# File: macros/init_param.sci, line: 14 +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "" + +# +# File: macros/init_param.sci, line: 18 +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" + +# +# File: macros/is_param.sci, line: 15 +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +# +# File: macros/set_param.sci, line: 19 +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "" diff --git a/modules/parameters/locales/pl_PL.po b/modules/parameters/locales/pl_PL.po new file mode 100755 index 000000000..a6d9abdcc --- /dev/null +++ b/modules/parameters/locales/pl_PL.po @@ -0,0 +1,189 @@ +# Polish translation for scilab +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2011-09-01 09:43+0000\n" +"Last-Translator: Scilab.team <Unknown>\n" +"Language-Team: Polish <pl@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: pl\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "" +"%s: Nieprawidłowy typ parametru. Oczekiwano %s. Zwracana jest wartość " +"domyślna %d.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "%s: Parametr nie znaleziono. Zwracana jest wartość domyślna %d.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "%s: Zła dolna granica parametru %s: dolna granica %d, wartość %d\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "%s: Zła górna granica parametru %s: górna granica %d, wartość %d\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "%s: Niepoprawna wartość parametru %s: wartość %d\n" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s: oczekiwane parametry: " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "" +"%s: Nieprawidłowy typ parametru. Oczekiwano %s. Zwracana jest wartość " +"domyślna %f.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "%s: Parametr nie znaleziono. Zwracana jest wartość domyślna %f.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "%s: Zła dolna granica parametru %s: dolna granica %f, wartość %f\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "%s: Zła górna granica parametru %s: górna granica %f, wartość %f\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "%s: Niepoprawna wartość parametru %s: wartość %f\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "" +"%s: Nieprawidłowy typ parametru. Oczekiwano %s. Zwracana jest wartość " +"domyślna %s.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "%s: Parametr nie znaleziono. Zwracana jest wartość domyślna %s.\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "%s: Niepoprawna wartość parametru %s: wartość %s\n" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "%s: nieprawidłowy rozmiar parametru %s: wymagano %d, otrzymano %d\n" + +msgid "Parameters" +msgstr "" + +msgid "plist handling" +msgstr "" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "" + +#, c-format +msgid "Check values: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "%s: Niepoprawny typ parametru wejściowego nr %d: oczekiwano %s.\n" + +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s: parameter %s nie zdefiniowany" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "" +"%s: nieprawidłowa liczba parametrów wejściowych: Oczekiwano liczbę " +"parzystą.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: oczekiwano łańcuch.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s: parametr nie istnieje" diff --git a/modules/parameters/locales/pt_BR.po b/modules/parameters/locales/pt_BR.po new file mode 100755 index 000000000..361344d15 --- /dev/null +++ b/modules/parameters/locales/pt_BR.po @@ -0,0 +1,184 @@ +# Brazilian Portuguese translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2011-09-01 09:43+0000\n" +"Last-Translator: RodolfoRG <rodolforg@gmail.com>\n" +"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: pt_BR\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "%s: parâmetro não localizado. Devolvendo valor padrão %d.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s: parâmetros esperados: " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "%s: parâmetro não localizado. Devolvendo valor padrão %f.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "%s: parâmetro não localizado. Devolvendo valor padrão %s.\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "" + +msgid "Parameters" +msgstr "" + +msgid "plist handling" +msgstr "" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "" + +#, c-format +msgid "Check values: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se %s.\n" + +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s: o parâmetro %s não está definido" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "" +"%s: Quantidade incorreta de argumentos de entrada: esperava-se uma " +"quantidade par.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um texto.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s: o parâmetro não existe" diff --git a/modules/parameters/locales/ru_RU.po b/modules/parameters/locales/ru_RU.po new file mode 100755 index 000000000..f3018ee31 --- /dev/null +++ b/modules/parameters/locales/ru_RU.po @@ -0,0 +1,208 @@ +# Russian translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2013-12-14 07:08+0000\n" +"Last-Translator: Stanislav V. Kroter <krotersv@gmail.com>\n" +"Language-Team: Russian <ru@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: ru\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "" +"%s: неверный тип параметра. Ожидался %s. Возвращается значение по умолчанию " +"%d.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "%s: параметр не найден. Возвращается значение по умолчанию %d.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "" +"%s: неверный нижний предел параметра %s: нижний предел %d, значение %d\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "" +"%s: неверный верхний предел параметра %s: верхний предел %d, значение %d\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "%s: неверное значение параметра %s: значение %d\n" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s: ожидаемые параметры: " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "" +"%s: неверный тип параметра. Ожидался %s. Возвращается значение по умолчанию " +"%f.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "%s: параметр не найден. Возвращается значение по умолчанию %f.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "" +"%s: неверный нижний предел параметра %s: нижний предел %f, значение %f\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "" +"%s: неверный верхний предел параметра %s: верхний предел %f, значение %f\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "%s: неверное значение параметра %s: значение %f\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "" +"%s: неверный тип параметра. Ожидался %s. Возвращается значение по умолчанию " +"%s.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "%s: параметр не найден. Возвращается значение по умолчанию %s.\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "%s: неверное значение параметра %s: значение %s\n" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "%s: неверный размер параметра %s: требуется %d, получено %d\n" + +msgid "Parameters" +msgstr "Параметры" + +msgid "plist handling" +msgstr "обработка plist" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" +"Эта демонстрация показывает примеры использования plist: создание, вставка, " +"удаление..." + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" +"\n" +"Создать plist '%s', содержащий два поля 'min' = [0 0 0] и 'max' = [1 1 1].\n" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" +"\n" +"Проверьте поля: \n" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "Установите 'min' = [0 0 0] и 'max' = [1 1 1]:\n" + +#, c-format +msgid "Check values: \n" +msgstr "Проверьте значения: \n" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" +"\n" +"Удалите параметр 'min' из %s.\n" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" +"\n" +"Перед remove_param: \n" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" +"\n" +"После remove_param: \n" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" +"\n" +"Проверьте удаление: \n" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" +"\n" +"Проверьте тип: \n" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "Второй выходной аргумент %s устарел.\n" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "Этот аргумент будет навсегда удалён в Scilab %s" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "%s: Неверное количество входных аргументов: ожидалось от %d до %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" +"%s: Неверное значение входного аргумента №%d: ключ %s уже определён.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидался %s.\n" + +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s: параметр %s не определен" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "" +"%s: Неверное количество входных параметров: ожидалось чётное число.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидалась строка.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Неверное количество входных аргументов: ожидалось %d.\n" + +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s: параметр не существует" diff --git a/modules/parameters/locales/uk_UA.po b/modules/parameters/locales/uk_UA.po new file mode 100755 index 000000000..d7e672fb5 --- /dev/null +++ b/modules/parameters/locales/uk_UA.po @@ -0,0 +1,220 @@ +# Ukrainian translation for scilab +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 +# This file is distributed under the same license as the scilab package. +# +# FIRST AUTHOR <EMAIL@ADDRESS>, 2010. +# Yuri Chornoivan <yurchor@gmail.com>, 2010. +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2013-12-06 19:43+0000\n" +"Last-Translator: Yuri Chornoivan <yurchor@gmail.com>\n" +"Language-Team: Ukrainian <translation@linux.org.ua>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: uk\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "" +"%s: помилковий тип параметра. Слід використовувати %s. Повернуто типове " +"значення %d.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "%s: параметр не знайдено. Повернуто типове значення %d.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "" +"%s: помилкове обмеження мінімального значення параметра %s: мінімальне " +"значення — %d, значення — %d\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "" +"%s: помилкове обмеження максимального значення параметра %s: максимальне " +"значення — %d, значення — %d\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "%s: помилкове значення параметра %s: значення — %d\n" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s: очікувані параметри: " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "" +"%s: помилковий тип параметра. Слід використовувати %s. Повернуто типове " +"значення %f.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "%s: параметр не знайдено. Повернуто типове значення %f.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "" +"%s: помилкове обмеження мінімального значення параметра %s: мінімальне " +"значення — %f, значення — %f\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "" +"%s: помилкове обмеження максимального значення параметра %s: максимальне " +"значення — %f, значення — %f\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "%s: помилкове значення параметра %s: значення — %f\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "" +"%s: помилковий тип параметра. Слід використовувати %s. Повернуто типове " +"значення %s.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "%s: параметр не знайдено. Повернуто типове значення %s.\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "%s: помилкове значення параметра %s: значення — %s\n" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "%s: помилкова розмірність параметра %s: мало бути %d, отримано %d\n" + +msgid "Parameters" +msgstr "Параметри" + +msgid "plist handling" +msgstr "обробка plist" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" +"У цій демонстрації ми наведемо приклад дій з користування plist: створення, " +"вставлення, вилучення, ..." + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" +"\n" +"Створємо plist «%s», що містить два поля, 'min' = [0 0 0] і 'max' = [1 1 " +"1].\n" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" +"\n" +"Перевіряємо поля: \n" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "Встановлюємо 'min' = [0 0 0] і 'max' = [1 1 1]:\n" + +#, c-format +msgid "Check values: \n" +msgstr "Перевіряємо значення: \n" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" +"\n" +"Вилучаємо параметр «min» з %s.\n" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" +"\n" +"До remove_param: \n" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" +"\n" +"Після remove_param: \n" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" +"\n" +"Перевіряємо вилучення: \n" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" +"\n" +"Перевіряємо тип: \n" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "Другий параметр виведення %s є застарілим.\n" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "Цей параметр буде остаточно вилучено у версії Scilab %s" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" +"%s: помилкова кількість вхідних параметрів: слід використовувати від %d до " +"%d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: ключ %s вже визначено.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "" +"%s: помилкова розмірність вхідного параметра №%d: слід використовувати %s.\n" + +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s: параметр %s не визначено" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "" +"%s: помилкова кількість вхідних параметрів: кількість мала бути парною.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати тип " +"«string».\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" +"%s: помилкова кількість вхідних параметрів: слід використовувати %d.\n" + +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s: параметра з такою назвою не існує" diff --git a/modules/parameters/locales/zh_CN.po b/modules/parameters/locales/zh_CN.po new file mode 100755 index 000000000..54e372a2c --- /dev/null +++ b/modules/parameters/locales/zh_CN.po @@ -0,0 +1,180 @@ +# Simplified Chinese translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2012-06-23 07:52+0000\n" +"Last-Translator: Wesh <Unknown>\n" +"Language-Team: Simplified Chinese <zh_CN@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: \n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "%s:参数类型错误。应该为%s。返回默认值%d。\n" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "%s:参数未找到。返回默认值%d。\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "%s:参数%s的最小边界错误:最小边界%d,值%d。\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "%s:参数%s的最大边界错误:最大边界%d,值%d。\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "%s:参数%s的值错误:值%d\n" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s:等待参数: " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "%s:参数类型错误。应该为%s。返回默认值%f。\n" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "%s:参数未找到。返回默认值%f。\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "%s:参数%s的最小边界错误:最小边界%f,值%f\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "%s:参数%s的最大边界错误:最大边界%f,值%f\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "%s:参数%s的值错误:值%f\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "%s:参数类型错误。应该为%s。返回默认值%s。\n" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "%s:参数未找到。返回默认值%s。\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "%s:参数%s的值错误:值%s\n" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "%s:参数%s的大小错误: 要求为%d,得到%d\n" + +msgid "Parameters" +msgstr "" + +msgid "plist handling" +msgstr "" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "" + +#, c-format +msgid "Check values: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "%s:第%d个输入参数的类型错误:应该为%s。\n" + +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s:参数%s未定义。" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "%s:输入参数的输入错误:应该为偶数个。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s:第%d个输入参数的类型错误:应该为字符串。\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s:参数不存在。" diff --git a/modules/parameters/locales/zh_TW.po b/modules/parameters/locales/zh_TW.po new file mode 100755 index 000000000..7034fce2b --- /dev/null +++ b/modules/parameters/locales/zh_TW.po @@ -0,0 +1,180 @@ +# Traditional Chinese translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2011-09-01 09:46+0000\n" +"Last-Translator: tim loo <timloo0710@gmail.com>\n" +"Language-Team: Traditional Chinese <zh_TW@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: \n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %d.\n" +msgstr "%s: 參數型別有誤. %s 才對. 返回 預設值 %d.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %d.\n" +msgstr "%s: 沒發現參數. 返回 預設值 %d.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %d, value %d\n" +msgstr "%s: 參數 %s的最小邊界有誤: max bound %d, value %d\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %d, value %d\n" +msgstr "%s: 參數 %s的最大邊界有誤: max bound %d, value %d\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %d\n" +msgstr "%s: 參數值%s有誤. 值 %d.\n" + +#, c-format +msgid "%s: awaited parameters: " +msgstr "%s: 期待的參數: " + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %f.\n" +msgstr "%s: 參數型別有誤. %s 才對. 返回 預設值 %f.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %f.\n" +msgstr "%s: 沒發現參數. 返回 預設值 %f.\n" + +#, c-format +msgid "%s: wrong min bound for parameter %s: min bound %f, value %f\n" +msgstr "%s: 參數 %s的最小邊界有誤: max bound %f, value %f\n" + +#, c-format +msgid "%s: wrong max bound for parameter %s: max bound %f, value %f\n" +msgstr "%s: 參數 %s的最大邊界有誤: max bound %f, value %f\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %f\n" +msgstr "%s: 參數值%s有誤. 值 %f.\n" + +#, c-format +msgid "%s: wrong parameter type. %s expected. Return default value %s.\n" +msgstr "%s: 參數型別有誤. %s 才對. 返回 預設值 %s.\n" + +#, c-format +msgid "%s: parameter not found. Return default value %s.\n" +msgstr "%s: 沒發現參數. 返回 預設值 %s.\n" + +#, c-format +msgid "%s: wrong value for parameter %s: value %s\n" +msgstr "%s: 參數值%s有誤. 值 %s.\n" + +#, c-format +msgid "%s: wrong size for parameter %s: %d requested, got %d\n" +msgstr "%s: 參數%s長度有誤 : %d 才對, 卻得 %d.\n" + +msgid "Parameters" +msgstr "" + +msgid "plist handling" +msgstr "" + +msgid "" +"This demo shows examples of plist utilizations: creation, insertion, " +"removal, ..." +msgstr "" + +#, c-format +msgid "" +"\n" +"Create a plist '%s' containing two fields 'min' = [0 0 0] and 'max' = [1 1 " +"1].\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check fields: \n" +msgstr "" + +#, c-format +msgid "Set 'min' = [0 0 0] and 'max' = [1 1 1]:\n" +msgstr "" + +#, c-format +msgid "Check values: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Remove the parameter 'min' from %s.\n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Before remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"After remove_param: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check removal: \n" +msgstr "" + +#, c-format +msgid "" +"\n" +"Check type: \n" +msgstr "" + +#, c-format +msgid "Second output argument of %s is obsolete.\n" +msgstr "" + +#, c-format +msgid "This argument will be permanently removed in Scilab %s" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: key %s already defined.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: %s expected.\n" +msgstr "%s: 第 %d 個輸入參數的資料型態錯誤: 應該是 %s.\n" + +#, c-format +msgid "%s: parameter %s not defined" +msgstr "%s: %s 參數未被定義" + +#, c-format +msgid "%s: Wrong number of input argument(s): An even number expected.\n" +msgstr "%s: 參數個數有誤: 偶數才對.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤:字串才對.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: parameter doesn't exist" +msgstr "%s: 參數並不存在" diff --git a/modules/parameters/macros/add_param.bin b/modules/parameters/macros/add_param.bin Binary files differnew file mode 100755 index 000000000..7a8d68480 --- /dev/null +++ b/modules/parameters/macros/add_param.bin diff --git a/modules/parameters/macros/add_param.sci b/modules/parameters/macros/add_param.sci new file mode 100755 index 000000000..5581dba3c --- /dev/null +++ b/modules/parameters/macros/add_param.sci @@ -0,0 +1,37 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) DIGITEO - 2008-2010 - Yann COLLETTE +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function plist = 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 + + if typeof(list_name) == "plist" then + if ~is_param(list_name, param_name) then + setfield(1, [getfield(1, list_name) param_name], list_name); + if nargin == 3 then + list_name(param_name) = param_value; + end + else + error(sprintf(gettext("%s: Wrong value for input argument #%d: key ""%s"" already defined.\n"), "add_param", 2, param_name)); + end + else + error(sprintf(gettext("%s: Wrong type for input argument #%d: %s expected.\n"), "add_param", 1, "plist")); + end + plist = list_name; + +endfunction diff --git a/modules/parameters/macros/buildmacros.bat b/modules/parameters/macros/buildmacros.bat new file mode 100755 index 000000000..c4e35ec40 --- /dev/null +++ b/modules/parameters/macros/buildmacros.bat @@ -0,0 +1 @@ +@..\..\..\bin\scilex -nwni -ns -e exec('buildmacros.sce');quit;
\ No newline at end of file diff --git a/modules/parameters/macros/buildmacros.sce b/modules/parameters/macros/buildmacros.sce new file mode 100755 index 000000000..8fc9bc731 --- /dev/null +++ b/modules/parameters/macros/buildmacros.sce @@ -0,0 +1,14 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +if (isdef("genlib") == %f) then + exec(SCI+"/modules/functions/scripts/buildmacros/loadgenlib.sce"); +end + +genlib("parameterslib","SCI/modules/parameters/macros",%f,%t); diff --git a/modules/parameters/macros/cleanmacros.bat b/modules/parameters/macros/cleanmacros.bat new file mode 100755 index 000000000..5079dfd71 --- /dev/null +++ b/modules/parameters/macros/cleanmacros.bat @@ -0,0 +1,3 @@ +@del *.bin 2>NUL +@del lib 2>NUL +@del names 2>NUL
\ No newline at end of file diff --git a/modules/parameters/macros/get_param.bin b/modules/parameters/macros/get_param.bin Binary files differnew file mode 100755 index 000000000..37e3d3243 --- /dev/null +++ b/modules/parameters/macros/get_param.bin diff --git a/modules/parameters/macros/get_param.sci b/modules/parameters/macros/get_param.sci new file mode 100755 index 000000000..88ae5b20a --- /dev/null +++ b/modules/parameters/macros/get_param.sci @@ -0,0 +1,54 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// Copyright (C) 2009-2010 - DIGITEO - Yann COLLETTE +// Copyright (C) 2010 - DIGITEO - Michael Baudin +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function [result,err] = get_param(list_name,param_name,param_default) + [nargout,nargin] = argn(); + if ~isdef("param_default","local") then + param_default = []; + end + + if ( type(param_default) == 13 ) then + prot=funcprot() + funcprot(0); + end + result = param_default; + if ( type(param_default) == 13 ) then + funcprot(prot); + end + + if typeof(list_name)=="plist" then + if is_param(list_name,param_name) then + if ( type(param_default) == 13 ) then + prot=funcprot() + funcprot(0); + end + result = list_name(param_name); + if ( type(param_default) == 13 ) then + funcprot(prot); + end + if nargout==2 then + err = %F; + end + else + if nargout==2 then + err = %T; + else + warning(sprintf(gettext("%s: parameter %s not defined"),"get_param",param_name)); + end + end + else + if nargout==2 then + err = %T; + else + error(sprintf(gettext("%s: Wrong type for input argument #%d: %s expected.\n"), "get_param", 1, "plist")); + end + end +endfunction diff --git a/modules/parameters/macros/init_param.bin b/modules/parameters/macros/init_param.bin Binary files differnew file mode 100755 index 000000000..42c0929dc --- /dev/null +++ b/modules/parameters/macros/init_param.bin diff --git a/modules/parameters/macros/init_param.sci b/modules/parameters/macros/init_param.sci new file mode 100755 index 000000000..3cb321e22 --- /dev/null +++ b/modules/parameters/macros/init_param.sci @@ -0,0 +1,27 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function plist = init_param(varargin) + param_name = []; + param_val = []; + if (modulo(length(varargin),2)~=0) then + error(sprintf(gettext("%s: Wrong number of input argument(s): An even number expected.\n"),"init_param")); + end + for i=1:2:length(varargin) + if typeof(varargin(i))~="string" then + error(sprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"),"init_param",i)); + end + end + + plist = mlist(["plist"],[]); + + for i=1:2:length(varargin) + plist = add_param(plist,varargin(i),varargin(i+1)); + end +endfunction diff --git a/modules/parameters/macros/is_param.bin b/modules/parameters/macros/is_param.bin Binary files differnew file mode 100755 index 000000000..9a2b59d0d --- /dev/null +++ b/modules/parameters/macros/is_param.bin diff --git a/modules/parameters/macros/is_param.sci b/modules/parameters/macros/is_param.sci new file mode 100755 index 000000000..90d1decdf --- /dev/null +++ b/modules/parameters/macros/is_param.sci @@ -0,0 +1,37 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function [result, err] = is_param(list_name, param_name) + + [nargout, nargin] = argn(); + + if nargin <> 2 then + error(sprintf(gettext("%s: Wrong number of input arguments: %d expected.\n"), "is_param", 2)); + end + + result = []; + if typeof(list_name) == "plist" then + if typeof(param_name) == "string" then + result_vec = getfield(1, list_name) == param_name; + result = or(result_vec(2:$)); + if nargout == 2 then + err = %F; + end + else + error(sprintf(gettext("%s: Wrong type for input argument #%d: %s expected.\n"), "is_param", 2, "String")); + end + else + if nargout == 2 then + err = %T; + else + error(sprintf(gettext("%s: Wrong type for input argument #%d: %s expected.\n"), "is_param", 1, "plist")); + end + end + +endfunction diff --git a/modules/parameters/macros/lib b/modules/parameters/macros/lib Binary files differnew file mode 100755 index 000000000..d39ee00db --- /dev/null +++ b/modules/parameters/macros/lib diff --git a/modules/parameters/macros/list_param.bin b/modules/parameters/macros/list_param.bin Binary files differnew file mode 100755 index 000000000..fc57fbdc1 --- /dev/null +++ b/modules/parameters/macros/list_param.bin diff --git a/modules/parameters/macros/list_param.sci b/modules/parameters/macros/list_param.sci new file mode 100755 index 000000000..ea1c2e019 --- /dev/null +++ b/modules/parameters/macros/list_param.sci @@ -0,0 +1,24 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function [string_list,err] = list_param(list_name) + [nargout,nargin] = argn(); + string_list = []; + if typeof(list_name)=="plist" then + string_list = getfield(1,list_name); + string_list = string_list(2:$); + if nargout==2 then err = %F; end + else + if nargout==2 then + err = %T; + else + error(sprintf(gettext("%s: Wrong type for input argument #%d: %s expected.\n"), "list_param", 1, "plist")); + end + end +endfunction diff --git a/modules/parameters/macros/names b/modules/parameters/macros/names new file mode 100755 index 000000000..07b17d169 --- /dev/null +++ b/modules/parameters/macros/names @@ -0,0 +1,7 @@ +add_param +get_param +init_param +is_param +list_param +remove_param +set_param diff --git a/modules/parameters/macros/remove_param.bin b/modules/parameters/macros/remove_param.bin Binary files differnew file mode 100755 index 000000000..2afc523e8 --- /dev/null +++ b/modules/parameters/macros/remove_param.bin diff --git a/modules/parameters/macros/remove_param.sci b/modules/parameters/macros/remove_param.sci new file mode 100755 index 000000000..541ebe6e2 --- /dev/null +++ b/modules/parameters/macros/remove_param.sci @@ -0,0 +1,43 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function [plist,err] = remove_param(list_name,param_name) + [nargout,nargin] = argn(); + plist = []; + if typeof(list_name)=="plist" then + if is_param(list_name,param_name) then + Index = grep(getfield(1,list_name),param_name); + Aux = getfield(1,list_name); + if Index==1 then + Aux = Aux(:,2:$); + elseif Index==size(getfield(1,list_name),2) then + Aux = Aux(:,1:$-1); + else + Aux = Aux(:,[1:Index-1 Index+1:size(Aux,2)]); + end + new_list = mlist(Aux); + New_Index = 2; + for i=2:size(getfield(1,list_name),2) + if i==Index then continue; end + new_list(Aux(New_Index)) = getfield(i,list_name); + New_Index = New_Index + 1; + end + else + plist = list_name; + end + plist = new_list; + if nargout==2 then err = %F; end + else + if nargout==2 then + err = %T; + else + error(sprintf(gettext("%s: Wrong type for input argument #%d: %s expected.\n"), "remove_param", 1, "plist")); + end + end +endfunction diff --git a/modules/parameters/macros/set_param.bin b/modules/parameters/macros/set_param.bin Binary files differnew file mode 100755 index 000000000..f6e9a6c63 --- /dev/null +++ b/modules/parameters/macros/set_param.bin diff --git a/modules/parameters/macros/set_param.sci b/modules/parameters/macros/set_param.sci new file mode 100755 index 000000000..f95754428 --- /dev/null +++ b/modules/parameters/macros/set_param.sci @@ -0,0 +1,28 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function [plist,err] = set_param(list_name,param_name,param_value) + [nargout,nargin] = argn(); + plist = list_name; + if typeof(list_name)=="plist" then + if nargout==2 then err = %F; end + if is_param(plist,param_name) then + plist(param_name) = param_value; + else + err = %T; + warning(sprintf(gettext("%s: parameter doesn''t exist"),"set_param")); + end + else + if nargout==2 then + err = %T; + else + error(sprintf(gettext("%s: Wrong type for input argument #%d: %s expected.\n"), "set_param", 1, "plist")); + end + end +endfunction diff --git a/modules/parameters/parameters.iss b/modules/parameters/parameters.iss new file mode 100755 index 000000000..3122079fa --- /dev/null +++ b/modules/parameters/parameters.iss @@ -0,0 +1,40 @@ +; +; Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +; Copyright (C) DIGITEO - 2010 - Allan CORNET +; +; This file must be used under the terms of the CeCILL. +; This source file is licensed as described in the file COPYING, which +; you should have received as part of this distribution. The terms +; are also available at +; http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +; +;-------------------------------------------------------------------------------------------------------------- +; Inno Setup Script (5.3 and more) for Scilab (UNICODE version required) +; +;-------------------------------------------------------------------------------------------------------------- +; parameters module +;-------------------------------------------------------------------------------------------------------------- +; +#define PARAMETERS "parameters" +; +Source: bin\{#PARAMETERS}.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB} +Source: bin\{#PARAMETERS}.lib; DestDir: {app}\bin; Components: {#COMPN_SCILAB} +; +Source: modules\{#PARAMETERS}\includes\parameters.h; DestDir: {app}\modules\{#PARAMETERS}\includes; Components: {#COMPN_SCILAB} +; +Source: modules\{#PARAMETERS}\license.txt; DestDir: {app}\modules\{#PARAMETERS}; Components: {#COMPN_SCILAB} +; +Source: modules\{#PARAMETERS}\etc\{#PARAMETERS}.quit; DestDir: {app}\modules\{#PARAMETERS}\etc; Components: {#COMPN_SCILAB} +Source: modules\{#PARAMETERS}\etc\{#PARAMETERS}.start; DestDir: {app}\modules\{#PARAMETERS}\etc; Components: {#COMPN_SCILAB} +; +Source: modules\{#PARAMETERS}\macros\lib; DestDir: {app}\modules\{#PARAMETERS}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +Source: modules\{#PARAMETERS}\macros\names; DestDir: {app}\modules\{#PARAMETERS}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +Source: modules\{#PARAMETERS}\macros\*.bin; DestDir: {app}\modules\{#PARAMETERS}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +Source: modules\{#PARAMETERS}\macros\*.sci; DestDir: {app}\modules\{#PARAMETERS}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +Source: modules\{#PARAMETERS}\macros\buildmacros.sce; DestDir: {app}\modules\{#PARAMETERS}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +Source: modules\{#PARAMETERS}\macros\buildmacros.bat; DestDir: {app}\modules\{#PARAMETERS}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +Source: modules\{#PARAMETERS}\macros\cleanmacros.bat; DestDir: {app}\modules\{#PARAMETERS}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +; +Source: modules\{#PARAMETERS}\tests\*.*; DestDir: {app}\modules\{#PARAMETERS}\tests; Flags: recursesubdirs; Components: {#COMPN_SCILAB} and {#COMPN_TESTS} +; +;-------------------------------------------------------------------------------------------------------------- diff --git a/modules/parameters/parameters.vcxproj b/modules/parameters/parameters.vcxproj new file mode 100755 index 000000000..c4732baa1 --- /dev/null +++ b/modules/parameters/parameters.vcxproj @@ -0,0 +1,282 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectGuid>{A09E8584-0713-48A5-97BA-ACED0F3728F8}</ProjectGuid> + <RootNamespace>parameters</RootNamespace> + <Keyword>Win32Proj</Keyword> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <WholeProgramOptimization>false</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <WholeProgramOptimization>false</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup> + <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>includes;src/c;../core/includes;../api_scilab/includes;../output_stream/includes;../localization/includes;../../libs/intl;../windows_tools/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>FORDLL;_DEBUG;_WINDOWS;_USRDLL;PARAMETERS_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <PreLinkEvent> + <Message>Build $(ProjectName).def</Message> + <Command>setlocal EnableDelayedExpansion +cd $(ConfigurationName) +set LIST_OBJ= +for %%f in (*.obj) do set LIST_OBJ=!LIST_OBJ! %%f +"$(SolutionDir)bin\dumpexts" -o $(ProjectName).def $(ProjectName).dll %LIST_OBJ% +copy $(ProjectName).def ..\$(ProjectName)_export.def >nul +del *.def >nul +cd .. +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;scilab_windows.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>parameters_export.def</ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + <PreBuildEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Scilab_windows_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)scilab_windows.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>includes;src/c;../core/includes;../api_scilab/includes;../output_stream/includes;../localization/includes;../../libs/intl;../windows_tools/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>FORDLL;_DEBUG;_WINDOWS;_USRDLL;PARAMETERS_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <PreLinkEvent> + <Message>Build $(ProjectName).def</Message> + <Command>setlocal EnableDelayedExpansion +cd $(ConfigurationName) +set LIST_OBJ= +for %%f in (*.obj) do set LIST_OBJ=!LIST_OBJ! %%f +"$(SolutionDir)bin\dumpexts" -o $(ProjectName).def $(ProjectName).dll %LIST_OBJ% +copy $(ProjectName).def ..\$(ProjectName)_export.def >nul +del *.def >nul +cd .. +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;scilab_windows.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>parameters_export.def</ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + <PreBuildEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Scilab_windows_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)scilab_windows.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>includes;src/c;../core/includes;../api_scilab/includes;../output_stream/includes;../localization/includes;../../libs/intl;../windows_tools/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>FORDLL;NDEBUG;_WINDOWS;_USRDLL;PARAMETERS_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <FunctionLevelLinking>true</FunctionLevelLinking> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + </ClCompile> + <PreLinkEvent> + <Message>Build $(ProjectName).def</Message> + <Command>setlocal EnableDelayedExpansion +cd $(ConfigurationName) +set LIST_OBJ= +for %%f in (*.obj) do set LIST_OBJ=!LIST_OBJ! %%f +"$(SolutionDir)bin\dumpexts" -o $(ProjectName).def $(ProjectName).dll %LIST_OBJ% +copy $(ProjectName).def ..\$(ProjectName)_export.def >nul +del *.def >nul +cd .. +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;scilab_windows.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>parameters_export.def</ModuleDefinitionFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + <PreBuildEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Scilab_windows_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)scilab_windows.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>includes;src/c;../core/includes;../api_scilab/includes;../output_stream/includes;../localization/includes;../../libs/intl;../windows_tools/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>FORDLL;NDEBUG;_WINDOWS;_USRDLL;PARAMETERS_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <FunctionLevelLinking>true</FunctionLevelLinking> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + </ClCompile> + <PreLinkEvent> + <Message>Build $(ProjectName).def</Message> + <Command>setlocal EnableDelayedExpansion +cd $(ConfigurationName) +set LIST_OBJ= +for %%f in (*.obj) do set LIST_OBJ=!LIST_OBJ! %%f +"$(SolutionDir)bin\dumpexts" -o $(ProjectName).def $(ProjectName).dll %LIST_OBJ% +copy $(ProjectName).def ..\$(ProjectName)_export.def >nul +del *.def >nul +cd .. +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;scilab_windows.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>parameters_export.def</ModuleDefinitionFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + <PreBuildEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Scilab_windows_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)scilab_windows.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="src\c\DllmainParameters.c" /> + <ClCompile Include="src\c\parameters.c" /> + </ItemGroup> + <ItemGroup> + <ClInclude Include="includes\parameters.h" /> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="src\c\parameters.rc" /> + </ItemGroup> + <ItemGroup> + <None Include="core_import.def" /> + <None Include="locales\parameters.pot" /> + <None Include="Scilab_windows_Import.def" /> + <None Include="parameters_export.def" /> + <None Include="parameters_header.def" /> + <None Include="Makefile.am" /> + <None Include="parameters.iss" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\Visual-Studio-settings\rename-vc-files\rename-vc-files.vcxproj"> + <Project>{dd8a0506-8d31-4cf8-856a-c10ece9c13a4}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\api_scilab\api_scilab.vcxproj"> + <Project>{43c5bab1-1dca-4743-a183-77e0d42fe7d0}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\output_stream\src\c\output_stream.vcxproj"> + <Project>{a5911cd7-f8e8-440c-a23e-4843a0636f3a}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/parameters/parameters.vcxproj.filters b/modules/parameters/parameters.vcxproj.filters new file mode 100755 index 000000000..0fbdf8107 --- /dev/null +++ b/modules/parameters/parameters.vcxproj.filters @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions> + </Filter> + <Filter Include="localization"> + <UniqueIdentifier>{a08a1bb0-42d6-47fa-89f1-e3a68953672b}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies"> + <UniqueIdentifier>{c1619684-3ac2-49ce-863d-0220f601b5af}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies\Imports"> + <UniqueIdentifier>{f6d8f46d-407b-4f19-8370-117a3081191c}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies\Export"> + <UniqueIdentifier>{3e800ca7-dfcf-4478-85a1-3973fe2afe49}</UniqueIdentifier> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="src\c\DllmainParameters.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="src\c\parameters.c"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <ClInclude Include="includes\parameters.h"> + <Filter>Header Files</Filter> + </ClInclude> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="src\c\parameters.rc"> + <Filter>Resource Files</Filter> + </ResourceCompile> + </ItemGroup> + <ItemGroup> + <None Include="core_import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <None Include="Scilab_windows_Import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <None Include="parameters_export.def"> + <Filter>Libraries Dependencies\Export</Filter> + </None> + <None Include="parameters_header.def"> + <Filter>Libraries Dependencies\Export</Filter> + </None> + <None Include="Makefile.am" /> + <None Include="parameters.iss" /> + <None Include="locales\parameters.pot"> + <Filter>localization</Filter> + </None> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/parameters/src/c/.deps/.dirstamp b/modules/parameters/src/c/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/parameters/src/c/.deps/.dirstamp diff --git a/modules/parameters/src/c/.deps/libsciparameters_la-parameters.Plo b/modules/parameters/src/c/.deps/libsciparameters_la-parameters.Plo new file mode 100755 index 000000000..882ee16e6 --- /dev/null +++ b/modules/parameters/src/c/.deps/libsciparameters_la-parameters.Plo @@ -0,0 +1,297 @@ +src/c/libsciparameters_la-parameters.lo: src/c/parameters.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h includes/parameters.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/core/includes/freeArrayOfString.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/output_stream/includes/sciprint.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +includes/parameters.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/core/includes/freeArrayOfString.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/output_stream/includes/sciprint.h: + +../../modules/core/includes/BOOL.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: diff --git a/modules/parameters/src/c/.dirstamp b/modules/parameters/src/c/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/parameters/src/c/.dirstamp diff --git a/modules/parameters/src/c/.libs/libsciparameters_la-parameters.o b/modules/parameters/src/c/.libs/libsciparameters_la-parameters.o Binary files differnew file mode 100755 index 000000000..c842d8cc7 --- /dev/null +++ b/modules/parameters/src/c/.libs/libsciparameters_la-parameters.o diff --git a/modules/parameters/src/c/DllmainParameters.c b/modules/parameters/src/c/DllmainParameters.c new file mode 100755 index 000000000..96bd1e099 --- /dev/null +++ b/modules/parameters/src/c/DllmainParameters.c @@ -0,0 +1,33 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010 - DIGITEO - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +/*--------------------------------------------------------------------------*/ +#include <windows.h> +/*--------------------------------------------------------------------------*/ +#pragma comment(lib,"../../bin/libintl.lib") +/*--------------------------------------------------------------------------*/ +int WINAPI DllMain (HINSTANCE hInstance , DWORD reason, PVOID pvReserved) +{ + switch (reason) + { + case DLL_PROCESS_ATTACH: + break; + case DLL_PROCESS_DETACH: + break; + case DLL_THREAD_ATTACH: + break; + case DLL_THREAD_DETACH: + break; + } + return 1; +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/parameters/src/c/libsciparameters_la-parameters.lo b/modules/parameters/src/c/libsciparameters_la-parameters.lo new file mode 100755 index 000000000..b2a96adeb --- /dev/null +++ b/modules/parameters/src/c/libsciparameters_la-parameters.lo @@ -0,0 +1,12 @@ +# src/c/libsciparameters_la-parameters.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libsciparameters_la-parameters.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/parameters/src/c/parameters.c b/modules/parameters/src/c/parameters.c new file mode 100755 index 000000000..960641142 --- /dev/null +++ b/modules/parameters/src/c/parameters.c @@ -0,0 +1,1192 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010 - DIGITEO - Yann COLLETTE + * Copyright (C) 2010 - DIGITEO - Allan CORNET + * Copyright (C) 2010 - DIGITEO - Bernard HUGUENEY + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + */ +/*--------------------------------------------------------------------------*/ +#include <string.h> +#include <stdarg.h> +/*--------------------------------------------------------------------------*/ +#include "parameters.h" +#include "sci_types.h" +#include "MALLOC.h" +#include "freeArrayOfString.h" +#include "Scierror.h" +#include "sciprint.h" +#include "api_scilab.h" +#include "localization.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +/*--------------------------------------------------------------------------*/ +static int commonFindLabel(void* _pvCtx, int * _piAddress, char const * const _pstLabelToFind); +static int commonFindLabelPartial(void* _pvCtx, int * _piAddress, char const * const _pstLabelToFind); +static void int_fill_n(int* dst, size_t n, int v); +static void double_fill_n(double* dst, size_t n, int v); +/*--------------------------------------------------------------------------*/ +SciErr initPList(void* _pvCtx, int _iVar, int ** _piAddress) +{ + SciErr _SciErr; + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + _SciErr = getVarAddressFromPosition(_pvCtx, _iVar, _piAddress); + return _SciErr; +} +/*--------------------------------------------------------------------------*/ +int checkPList(void* _pvCtx, int * _piAddress) +{ + int nb_param = 0, i = 0, var_type = 0; + int m_label = 0, n_label = 0; + int * len_label = NULL; + char ** label_list = NULL; + int result = 0; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + _SciErr = getVarType(_pvCtx, _piAddress, &var_type); + if (var_type != sci_mlist) + { + return 0; + } + + _SciErr = getListItemNumber(_pvCtx, _piAddress, &nb_param); + + if (nb_param != 0) + { + _SciErr = getMatrixOfStringInList(_pvCtx, _piAddress, 1, &m_label, &n_label, NULL, NULL); + + len_label = (int *)MALLOC(m_label * n_label * sizeof(int)); + _SciErr = getMatrixOfStringInList(_pvCtx, _piAddress, 1, &m_label, &n_label, len_label, NULL); + + label_list = (char **)MALLOC(m_label * n_label * sizeof(char *)); + for (i = 0; i < n_label * m_label; i++) + { + label_list[i] = (char *)MALLOC((len_label[i] + 1) * sizeof(char)); + } + _SciErr = getMatrixOfStringInList(_pvCtx, _piAddress, 1, &m_label, &n_label, len_label, label_list); + if (strcmp(label_list[0], "plist") != 0) + { + if (len_label) + { + FREE(len_label); + len_label = NULL; + } + freeArrayOfString(label_list, m_label * n_label); + + return 0; + } + + if (len_label) + { + FREE(len_label); + len_label = NULL; + } + freeArrayOfString(label_list, m_label * n_label); + } + + result = 1; + + return result; +} +/*--------------------------------------------------------------------------*/ +int hasPartialLabelInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel) +{ + SciErr _SciErr; + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + return commonFindLabelPartial(_pvCtx, _piAddress, _pstLabel); +} +/*--------------------------------------------------------------------------*/ +int hasLabelInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel) +{ + SciErr _SciErr; + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + return commonFindLabel(_pvCtx, _piAddress, _pstLabel); +} +/*--------------------------------------------------------------------------*/ +SciErr getIntInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel, int * _piValue, int * _piFound, + int _iDefaultValue, int _iLog, enum type_check _eCheck, ...) +{ + int pos_label = 0, i = 0; + int m_tmp = 0, n_tmp = 0; + double * tmp_dbl = NULL; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + pos_label = commonFindLabel(_pvCtx, _piAddress, _pstLabel); + *_piFound = pos_label; + + if (pos_label != -1) + { + _SciErr = getMatrixOfDoubleInList(_pvCtx, _piAddress, pos_label + 1, &m_tmp, &n_tmp, &tmp_dbl); + if (!_SciErr.iErr) + { + *_piValue = (int)tmp_dbl[0]; + } + else + { + if (_iLog) + { + sciprint(_("%s: wrong parameter type. %s expected. Return default value %d.\n"), "getIntInPList", "int", _iDefaultValue); + } + *_piValue = _iDefaultValue; + } + } + else + { + if (_iLog) + { + sciprint(_("%s: parameter not found. Return default value %d.\n"), "getIntInPList", _iDefaultValue); + } + *_piValue = _iDefaultValue; + } + + /* Now check parameters */ + + if (_eCheck != CHECK_NONE) + { + va_list vl; + int nb_value_to_check = 0; + int value_to_check = 0; + int check_res = 0; + + va_start(vl, _eCheck); + + switch (_eCheck) + { + case CHECK_MIN: + value_to_check = va_arg(vl, int); + va_end(vl); + if (value_to_check > *_piValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong min bound for parameter %s: min bound %d, value %d\n"), "getIntInPList", _pstLabel, value_to_check, *_piValue); + } + *_piValue = _iDefaultValue; + addErrorMessage(&_SciErr, 999, _("%s: wrong min bound for parameter %s: min bound %d, value %d\n"), "getIntInPList", _pstLabel, value_to_check, *_piValue); + return _SciErr; + } + break; + case CHECK_MAX: + value_to_check = va_arg(vl, int); + va_end(vl); + if (value_to_check < *_piValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong max bound for parameter %s: max bound %d, value %d\n"), "getIntInPList", _pstLabel, value_to_check, *_piValue); + } + *_piValue = _iDefaultValue; + addErrorMessage(&_SciErr, 999, _("%s: wrong max bound for parameter %s: max bound %d, value %d\n"), "getIntInPList", _pstLabel, value_to_check, *_piValue); + return _SciErr; + } + break; + case CHECK_BOTH: + // First value is the min bound + value_to_check = va_arg(vl, int); + if (value_to_check > *_piValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong min bound for parameter %s: min bound %d, value %d\n"), "getIntInPList", _pstLabel, value_to_check, *_piValue); + } + *_piValue = _iDefaultValue; + va_end(vl); + addErrorMessage(&_SciErr, 999, _("%s: wrong min bound for parameter %s: min bound %d, value %d\n"), "getIntInPList", _pstLabel, value_to_check, *_piValue); + return _SciErr; + } + // Second value is the max bound + value_to_check = va_arg(vl, int); + va_end(vl); + if (value_to_check < *_piValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong max bound for parameter %s: max bound %d, value %d\n"), "getIntInPList", _pstLabel, value_to_check, *_piValue); + } + *_piValue = _iDefaultValue; + addErrorMessage(&_SciErr, 999, _("%s: wrong max bound for parameter %s: max bound %d, value %d\n"), "getIntInPList", _pstLabel, value_to_check, *_piValue); + return _SciErr; + } + break; + case CHECK_VALUES: + // First parameters is int and contains the number of values to check + nb_value_to_check = va_arg(vl, int); + check_res = 0; + for (i = 0; i < nb_value_to_check; i++) + { + value_to_check = va_arg(vl, int); + check_res = check_res || (value_to_check == *_piValue); + } + + if (!check_res) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong value for parameter %s: value %d\n"), "getIntInPList", _pstLabel, *_piValue); + sciprint(_("%s: awaited parameters: "), "getIntInPList"); + va_start(vl, _eCheck); + nb_value_to_check = va_arg(vl, int); + for (i = 0; i < nb_value_to_check; i++) + { + value_to_check = va_arg(vl, int); + sciprint(" %d", value_to_check); + } + sciprint("\n"); + } + + *_piValue = _iDefaultValue; + + va_end(vl); + addErrorMessage(&_SciErr, 999, _("%s: wrong value for parameter %s: value %d\n"), "getIntInPList", _pstLabel, *_piValue); + return _SciErr; + } + + va_end(vl); + break; + } + } + return _SciErr; +} +/*--------------------------------------------------------------------------*/ +SciErr getDoubleInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel, double * _pdblValue, int * _piFound, + double _dblDefaultValue, int _iLog, enum type_check _eCheck, ...) +{ + int pos_label = 0, i = 0; + int m_tmp = 0, n_tmp = 0; + double * tmp_values = NULL; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + pos_label = commonFindLabel(_pvCtx, _piAddress, _pstLabel); + *_piFound = pos_label; + + if (pos_label != -1) + { + _SciErr = getMatrixOfDoubleInList(_pvCtx, _piAddress, pos_label + 1, &m_tmp, &n_tmp, &tmp_values); + if (!_SciErr.iErr) + { + *_pdblValue = tmp_values[0]; + } + else + { + if (_iLog) + { + sciprint(_("%s: wrong parameter type. %s expected. Return default value %f.\n"), "getDoubleInPList", "double", _dblDefaultValue); + } + *_pdblValue = _dblDefaultValue; + } + } + else + { + if (_iLog) + { + sciprint(_("%s: parameter not found. Return default value %f.\n"), "getDoubleInPList", _dblDefaultValue); + } + *_pdblValue = _dblDefaultValue; + } + + /* Now check parameters */ + + if (_eCheck != CHECK_NONE) + { + va_list vl; + int nb_value_to_check = 0; + double value_to_check = 0; + int check_res = 0; + + va_start(vl, _eCheck); + + switch (_eCheck) + { + case CHECK_MIN: + value_to_check = va_arg(vl, double); + va_end(vl); + if (value_to_check > *_pdblValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong min bound for parameter %s: min bound %f, value %f\n"), "getDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + } + *_pdblValue = _dblDefaultValue; + addErrorMessage(&_SciErr, 999, _("%s: wrong min bound for parameter %s: min bound %f, value %f\n"), "getDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + return _SciErr; + } + break; + case CHECK_MAX: + value_to_check = va_arg(vl, double); + va_end(vl); + if (value_to_check < *_pdblValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong max bound for parameter %s: max bound %f, value %f\n"), "getDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + } + *_pdblValue = _dblDefaultValue; + addErrorMessage(&_SciErr, 999, _("%s: wrong max bound for parameter %s: max bound %f, value %f\n"), "getDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + return _SciErr; + } + break; + case CHECK_BOTH: + /* First value is the min bound */ + value_to_check = va_arg(vl, double); + if (value_to_check > *_pdblValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong min bound for parameter %s: min bound %f, value %f\n"), "getDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + } + *_pdblValue = _dblDefaultValue; + va_end(vl); + addErrorMessage(&_SciErr, 999, _("%s: wrong min bound for parameter %s: min bound %f, value %f\n"), "getDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + return _SciErr; + } + /* Second value is the max bound */ + value_to_check = va_arg(vl, double); + va_end(vl); + if (value_to_check < *_pdblValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong max bound for parameter %s: max bound %f, value %f\n"), "getDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + } + *_pdblValue = _dblDefaultValue; + addErrorMessage(&_SciErr, 999, _("%s: wrong max bound for parameter %s: max bound %f, value %f\n"), "getDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + return _SciErr; + } + break; + case CHECK_VALUES: + /* First parameters is int and contains the number of values to check */ + nb_value_to_check = va_arg(vl, int); + check_res = 0; + for (i = 0; i < nb_value_to_check; i++) + { + value_to_check = va_arg(vl, double); + check_res = check_res || (value_to_check == *_pdblValue); + } + + if (!check_res) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong value for parameter %s: value %f\n"), "getDoubleInPList", _pstLabel, *_pdblValue); + sciprint(_("%s: awaited parameters: "), "getDoubleInPList"); + va_start(vl, _eCheck); + nb_value_to_check = va_arg(vl, int); + for (i = 0; i < nb_value_to_check; i++) + { + value_to_check = va_arg(vl, double); + sciprint(" %f", value_to_check); + } + sciprint("\n"); + } + + *_pdblValue = _dblDefaultValue; + + va_end(vl); + addErrorMessage(&_SciErr, 999, _("%s: wrong value for parameter %s: value %f\n"), "getDoubleInPList", _pstLabel, *_pdblValue); + return _SciErr; + } + + va_end(vl); + break; + } + } + + return _SciErr; +} +/*--------------------------------------------------------------------------*/ +SciErr getStringInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel, char ** _pstValue, int * _piFound, + const char * _pstDefaultValue, int _iLog, enum type_check _eCheck, ...) +{ + int pos_label = 0, i = 0; + int m_label = 0, n_label = 0; + int * len_label = NULL; + char ** label_list = NULL; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + pos_label = commonFindLabel(_pvCtx, _piAddress, _pstLabel); + *_piFound = pos_label; + + if (pos_label != -1) + { + _SciErr = getMatrixOfStringInList(_pvCtx, _piAddress, pos_label + 1, &m_label, &n_label, NULL, NULL); + len_label = (int *)MALLOC(m_label * n_label * sizeof(int)); + _SciErr = getMatrixOfStringInList(_pvCtx, _piAddress, pos_label + 1, &m_label, &n_label, len_label, NULL); + label_list = (char **)MALLOC(m_label * n_label * sizeof(char *)); + for (i = 0; i < n_label * m_label; i++) + { + label_list[i] = (char *)MALLOC((len_label[i] + 1) * sizeof(char)); + } + _SciErr = getMatrixOfStringInList(_pvCtx, _piAddress, pos_label + 1, &m_label, &n_label, len_label, label_list); + + if (!_SciErr.iErr) + { + if (label_list[0]) + { + *_pstValue = strdup(label_list[0]); + } + else + { + if (_iLog) + { + sciprint(_("%s: wrong parameter type. %s expected. Return default value %s.\n"), "getStringInPList", "string", _pstDefaultValue); + } + *_pstValue = strdup(_pstDefaultValue); + } + } + else + { + if (_iLog) + { + sciprint(_("%s: parameter not found. Return default value %s.\n"), "getStringInPList", _pstDefaultValue); + } + *_pstValue = strdup(_pstDefaultValue); + } + + if (len_label) + { + FREE(len_label); + len_label = NULL; + } + freeArrayOfString(label_list, m_label * n_label); + } + else + { + *_pstValue = strdup(_pstDefaultValue); + } + + /* Now check parameters */ + + if (_eCheck != CHECK_NONE) + { + va_list vl; + int nb_value_to_check = 0; + char * value_to_check = 0; + int check_res = 0; + + va_start(vl, _eCheck); + + switch (_eCheck) + { + case CHECK_VALUES: + /* First parameters is int and contains the number of values to check */ + nb_value_to_check = va_arg(vl, int); + check_res = 0; + for (i = 0; i < nb_value_to_check; i++) + { + value_to_check = va_arg(vl, char *); + check_res = check_res || (strcmp(value_to_check, *_pstValue) == 0); + } + + if (!check_res) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong value for parameter %s: value %s\n"), "getStringInPList", _pstLabel, *_pstValue); + sciprint(_("%s: awaited parameters: "), "getStringInPList"); + va_start(vl, _eCheck); + nb_value_to_check = va_arg(vl, int); + for (i = 0; i < nb_value_to_check; i++) + { + value_to_check = va_arg(vl, char *); + sciprint(" \"%s\"", value_to_check); + } + sciprint("\n"); + } + + if (*_pstValue) + { + FREE(*_pstValue); + *_pstValue = NULL; + } + + *_pstValue = strdup(_pstDefaultValue); + + va_end(vl); + addErrorMessage(&_SciErr, 999, _("%s: wrong value for parameter %s: value %s\n"), "getStringInPList", _pstLabel, *_pstValue); + return _SciErr; + } + + va_end(vl); + break; + } + } + + return _SciErr; +} +/*--------------------------------------------------------------------------*/ +/* get vector of double / integers */ +SciErr getColVectorOfIntInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel, int * _piValue, int * _piFound, + int _iDefaultValue, int _iDefaultSize, int * _piSize, int _iLog, enum type_check _eCheck, ...) +{ + int pos_label = 0, i = 0; + int m_tmp = 0, n_tmp = 0; + double * tmp_dbl = 0; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + *_piSize = -1; + + pos_label = commonFindLabel(_pvCtx, _piAddress, _pstLabel); + *_piFound = pos_label; + + if (pos_label != -1) + { + _SciErr = getMatrixOfDoubleInList(_pvCtx, _piAddress, pos_label + 1, &m_tmp, &n_tmp, &tmp_dbl); + if (!_SciErr.iErr) + { + *_piSize = m_tmp * n_tmp; + for (i = 0; i < *_piSize; i++) + { + _piValue[i] = (int)tmp_dbl[i]; + } + } + else + { + if (_iLog) + { + sciprint(_("%s: wrong parameter type. %s expected. Return default value %d.\n"), "getColVectorOfIntInPList", "int", _iDefaultValue); + } + *_piSize = _iDefaultSize; + int_fill_n(_piValue, _iDefaultSize, _iDefaultValue); + } + } + else + { + if (_iLog) + { + sciprint(_("%s: parameter not found. Return default value %d.\n"), "getColVectorOfIntInPList", _iDefaultValue); + } + *_piSize = _iDefaultSize; + int_fill_n(_piValue, _iDefaultSize, _iDefaultValue); + } + + /* Now check parameters */ + + if (_eCheck != CHECK_NONE) + { + va_list vl; + int nb_value_to_check = 0; + int value_to_check = 0; + int check_res = 0; + + va_start(vl, _eCheck); + + switch (_eCheck) + { + case CHECK_SIZE: + value_to_check = va_arg(vl, int); + va_end(vl); + if (value_to_check != *_piSize) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong size for parameter %s: %d requested, got %d\n"), "getColVectorOfIntInPList", _pstLabel, value_to_check, *_piSize); + } + int_fill_n(_piValue, _iDefaultSize, _iDefaultValue); + addErrorMessage(&_SciErr, 999, _("%s: wrong size for parameter %s: %d requested, got %d\n"), "getColVectorOfIntInPList", _pstLabel, value_to_check, *_piSize); + return _SciErr; + } + break; + case CHECK_MIN: + value_to_check = va_arg(vl, int); + va_end(vl); + if (value_to_check > *_piValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong min bound for parameter %s: min bound %d, value %d\n"), "getColVectorOfIntInPList", _pstLabel, value_to_check, *_piValue); + } + int_fill_n(_piValue, _iDefaultSize, _iDefaultValue); + addErrorMessage(&_SciErr, 999, _("%s: wrong min bound for parameter %s: min bound %d, value %d\n"), "getColVectorOfIntInPList", _pstLabel, value_to_check, *_piValue); + return _SciErr; + } + break; + case CHECK_MAX: + value_to_check = va_arg(vl, int); + va_end(vl); + if (value_to_check < *_piValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong max bound for parameter %s: max bound %d, value %d\n"), "getColVectorOfIntInPList", _pstLabel, value_to_check, *_piValue); + } + int_fill_n(_piValue, _iDefaultSize, _iDefaultValue); + addErrorMessage(&_SciErr, 999, _("%s: wrong max bound for parameter %s: max bound %d, value %d\n"), "getColVectorOfIntInPList", _pstLabel, value_to_check, *_piValue); + return _SciErr; + } + break; + case CHECK_BOTH: + /* First value is the min bound */ + value_to_check = va_arg(vl, int); + if (value_to_check > *_piValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong min bound for parameter %s: min bound %d, value %d\n"), "getColVectorOfIntInPList", _pstLabel, value_to_check, *_piValue); + } + int_fill_n(_piValue, _iDefaultSize, _iDefaultValue); + va_end(vl); + addErrorMessage(&_SciErr, 999, _("%s: wrong min bound for parameter %s: min bound %d, value %d\n"), "getColVectorOfIntInPList", _pstLabel, value_to_check, *_piValue); + return _SciErr; + } + /* Second value is the max bound */ + value_to_check = va_arg(vl, int); + va_end(vl); + if (value_to_check < *_piValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong max bound for parameter %s: max bound %d, value %d\n"), "getColVectorOfIntInPList", _pstLabel, value_to_check, *_piValue); + } + int_fill_n(_piValue, _iDefaultSize, _iDefaultValue); + addErrorMessage(&_SciErr, 999, _("%s: wrong max bound for parameter %s: max bound %d, value %d\n"), "getColVectorOfIntInPList", _pstLabel, value_to_check, *_piValue); + return _SciErr; + } + break; + case CHECK_VALUES: + /* First parameters is int and contains the number of values to check */ + nb_value_to_check = va_arg(vl, int); + check_res = 0; + for (i = 0; i < nb_value_to_check; i++) + { + value_to_check = va_arg(vl, int); + check_res = check_res || (value_to_check == *_piValue); + } + + if (!check_res) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong value for parameter %s: value %d\n"), "getColVectorOfIntInPList", _pstLabel, *_piValue); + sciprint(_("%s: awaited parameters: "), "getColVectorOfIntInPList"); + va_start(vl, _eCheck); + nb_value_to_check = va_arg(vl, int); + for (i = 0; i < nb_value_to_check; i++) + { + value_to_check = va_arg(vl, int); + sciprint(" %d", value_to_check); + } + sciprint("\n"); + } + + int_fill_n(_piValue, _iDefaultSize, _iDefaultValue); + + va_end(vl); + addErrorMessage(&_SciErr, 999, _("%s: wrong value for parameter %s: value %d\n"), "getColVectorOfIntInPList", _pstLabel, *_piValue); + return _SciErr; + } + + va_end(vl); + break; + } + } + + return _SciErr; +} + +SciErr getColVectorOfDoubleInPList(void* _pvCtx, int * _piAddress, const char * _pstLabel, double * _pdblValue, int * _piFound, + double _dblDefaultValue, int _iDefaultSize, int * _piSize, int _iLog, enum type_check _eCheck, ...) +{ + int pos_label = 0, i = 0; + int m_label = 0, n_label = 0; + int m_tmp = 0, n_tmp = 0; + int * len_label = NULL; + double * tmp_values = NULL; + char ** label_list = NULL; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + *_piSize = -1; + + pos_label = commonFindLabel(_pvCtx, _piAddress, _pstLabel); + *_piFound = pos_label; + + if (len_label) + { + FREE(len_label); + len_label = NULL; + } + freeArrayOfString(label_list, m_label * n_label); + + if (pos_label != -1) + { + _SciErr = getMatrixOfDoubleInList(_pvCtx, _piAddress, pos_label + 1, &m_tmp, &n_tmp, &tmp_values); + if (!_SciErr.iErr) + { + *_piSize = m_tmp * n_tmp; + + memcpy( _pdblValue, tmp_values, sizeof(double) * (*_piSize)); + } + else + { + if (_iLog) + { + sciprint(_("%s: wrong parameter type. %s expected. Return default value %f.\n"), "getColVectorOfDoubleInPList", "double", _dblDefaultValue); + } + *_piSize = _iDefaultSize; + double_fill_n(_pdblValue, (size_t)_iDefaultSize, (int)_dblDefaultValue); + } + } + else + { + if (_iLog) + { + sciprint(_("%s: parameter not found. Return default value %f.\n"), "getColVectorOfDoubleInPList", _dblDefaultValue); + } + *_piSize = _iDefaultSize; + double_fill_n(_pdblValue, (size_t)_iDefaultSize, (int)_dblDefaultValue); + } + + /* Now check parameters */ + + if (_eCheck != CHECK_NONE) + { + va_list vl; + int nb_value_to_check = 0; + double value_to_check = 0; + int check_res = 0; + + va_start(vl, _eCheck); + + switch (_eCheck) + { + case CHECK_SIZE: + value_to_check = va_arg(vl, double); + va_end(vl); + if (value_to_check != *_piSize) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong size for parameter %s: %d requested, got %d\n"), "getColVectorOfDoubleInPList", _pstLabel, value_to_check, *_piSize); + } + + for (i = 0; i < _iDefaultSize; i++) + { + _pdblValue[i] = _dblDefaultValue; + } + + addErrorMessage(&_SciErr, 999, _("%s: wrong size for parameter %s: %d requested, got %d\n"), "getColVectorOfDoubleInPList", _pstLabel, value_to_check, *_piSize); + return _SciErr; + } + break; + case CHECK_MIN: + value_to_check = va_arg(vl, double); + va_end(vl); + if (value_to_check > *_pdblValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong min bound for parameter %s: min bound %f, value %f\n"), "getColVectorOfDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + } + + for (i = 0; i < _iDefaultSize; i++) + { + _pdblValue[i] = _dblDefaultValue; + } + + addErrorMessage(&_SciErr, 999, _("%s: wrong min bound for parameter %s: min bound %f, value %f\n"), "getColVectorOfDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + return _SciErr; + } + break; + case CHECK_MAX: + value_to_check = va_arg(vl, double); + va_end(vl); + if (value_to_check < *_pdblValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong max bound for parameter %s: max bound %f, value %f\n"), "getColVectorOfDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + } + + for (i = 0; i < _iDefaultSize; i++) + { + _pdblValue[i] = _dblDefaultValue; + } + + addErrorMessage(&_SciErr, 999, _("%s: wrong max bound for parameter %s: max bound %f, value %f\n"), "getColVectorOfDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + return _SciErr; + } + break; + case CHECK_BOTH: + /* First value is the min bound */ + value_to_check = va_arg(vl, double); + if (value_to_check > *_pdblValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong min bound for parameter %s: min bound %f, value %f\n"), "getColVectorOfDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + } + + for (i = 0; i < _iDefaultSize; i++) + { + _pdblValue[i] = _dblDefaultValue; + } + + va_end(vl); + addErrorMessage(&_SciErr, 999, _("%s: wrong min bound for parameter %s: min bound %f, value %f\n"), "getColVectorOfDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + return _SciErr; + } + /* Second value is the max bound */ + value_to_check = va_arg(vl, double); + va_end(vl); + if (value_to_check < *_pdblValue) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong max bound for parameter %s: max bound %f, value %f\n"), "getColVectorOfDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + } + + for (i = 0; i < _iDefaultSize; i++) + { + _pdblValue[i] = _dblDefaultValue; + } + + addErrorMessage(&_SciErr, 999, _("%s: wrong max bound for parameter %s: max bound %f, value %f\n"), "getColVectorOfDoubleInPList", _pstLabel, value_to_check, *_pdblValue); + return _SciErr; + } + break; + case CHECK_VALUES: + /* First parameters is int and contains the number of values to check */ + nb_value_to_check = va_arg(vl, int); + check_res = 0; + for (i = 0; i < nb_value_to_check; i++) + { + value_to_check = va_arg(vl, double); + check_res = check_res || (value_to_check == *_pdblValue); + } + if (!check_res) + { + if ((*_piFound != -1) && (_iLog)) + { + sciprint(_("%s: wrong value for parameter %s: value %f\n"), "getColVectorOfDoubleInPList", _pstLabel, *_pdblValue); + sciprint(_("%s: awaited parameters: "), "getColVectorOfDoubleInPList"); + va_start(vl, _eCheck); + nb_value_to_check = va_arg(vl, int); + for (i = 0; i < nb_value_to_check; i++) + { + value_to_check = va_arg(vl, double); + sciprint(" %f", value_to_check); + } + sciprint("\n"); + } + + for (i = 0; i < _iDefaultSize; i++) + { + _pdblValue[i] = _dblDefaultValue; + } + va_end(vl); + addErrorMessage(&_SciErr, 999, _("%s: wrong value for parameter %s: value %f\n"), "getColVectorOfDoubleInPList", _pstLabel, *_pdblValue); + return _SciErr; + } + va_end(vl); + break; + } + } + + return _SciErr; +} +/*--------------------------------------------------------------------------*/ +SciErr createPList(void* _pvCtx, int _iVar, int ** _piAddress, char ** _pstLabelNames, int _iNbParams) +{ + SciErr _SciErr; + int i = 0; + char ** label_list = NULL; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + _SciErr = createMList(_pvCtx, _iVar, _iNbParams + 1, _piAddress); + label_list = (char **)MALLOC((_iNbParams + 1) * sizeof(char *)); + label_list[0] = strdup("plist"); + + for (i = 1; i <= _iNbParams; i++) + { + label_list[i] = strdup(_pstLabelNames[i - 1]); + } + + _SciErr = createMatrixOfStringInList(_pvCtx, _iVar, *_piAddress, 1, 1, _iNbParams + 1, label_list); + + if (label_list) + { + freeArrayOfString(label_list, _iNbParams + 1); + } + + return _SciErr; +} +/*--------------------------------------------------------------------------*/ +SciErr createIntInPList(void* _pvCtx, int _iVar, int * _piAddress, char * _pstLabelName, int _iValue) +{ + int itemPos = -1; + double tmp_val[1]; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + itemPos = commonFindLabel(_pvCtx, _piAddress, _pstLabelName) + 1; + +#ifdef DEBUG + sciprint("DEBUG: addIntInPList - itemPos = %d _pstLabelName = %s\n", itemPos, _pstLabelName); +#endif + + tmp_val[0] = (double)_iValue; + _SciErr = createMatrixOfDoubleInList(_pvCtx, _iVar, _piAddress, itemPos, 1, 1, tmp_val); + + return _SciErr; +} +/*--------------------------------------------------------------------------*/ +SciErr createDoubleInPList(void* _pvCtx, int _iVar, int * _piAddress, char * _pstLabelName, double _dblValue) +{ + int itemPos = -1; + double tmp_val[1]; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + itemPos = commonFindLabel(_pvCtx, _piAddress, _pstLabelName) + 1; + +#ifdef DEBUG + sciprint("DEBUG: addDoubleInPList - itemPos = %d _pstLabelName = %s\n", itemPos, _pstLabelName); +#endif + + tmp_val[0] = _dblValue; + _SciErr = createMatrixOfDoubleInList(_pvCtx, _iVar, _piAddress, itemPos, 1, 1, tmp_val); + + return _SciErr; +} +/*--------------------------------------------------------------------------*/ +SciErr createStringInPList(void* _pvCtx, int _iVar, int * _piAddress, char * _pstLabelName, char * _pstValue) +{ + int itemPos = -1; + char * tmp_val[1]; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + itemPos = commonFindLabel(_pvCtx, _piAddress, _pstLabelName) + 1; + +#ifdef DEBUG + sciprint("DEBUG: addStringInPList - itemPos = %d _pstLabelName = %s\n", itemPos, _pstLabelName); +#endif + + tmp_val[0] = strdup(_pstValue); + _SciErr = createMatrixOfStringInList(_pvCtx, _iVar, _piAddress, itemPos, 1, 1, tmp_val); + + if (tmp_val[0]) + { + FREE(tmp_val[0]); + tmp_val[0] = NULL; + + } + + return _SciErr; +} +/*--------------------------------------------------------------------------*/ +SciErr createColVectorOfIntInPList(void* _pvCtx, int _iVar, int * _piAddress, char * _pstLabelName, int _iNbValues, int * _piValue) +{ + int itemPos = -1, i = 0; + double * tmp_val = NULL; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + itemPos = commonFindLabel(_pvCtx, _piAddress, _pstLabelName) + 1; + +#ifdef DEBUG + sciprint("DEBUG: addVectorOfIntInPList - itemPos = %d _pstLabelName = %s\n", itemPos, _pstLabelName); +#endif + + tmp_val = (double *)MALLOC(_iNbValues * sizeof(double)); + for (i = 0; i < _iNbValues; i++) + { + tmp_val[i] = (double)_piValue[i]; + } + _SciErr = createMatrixOfDoubleInList(_pvCtx, _iVar, _piAddress, itemPos, _iNbValues, 1, tmp_val); + + if (tmp_val) + { + FREE(tmp_val); + tmp_val = NULL; + } + + return _SciErr; +} +/*--------------------------------------------------------------------------*/ +SciErr createColVectorOfDoubleInPList(void* _pvCtx, int _iVar, int * _piAddress, char * _pstLabelName, int _iNbValues, double * _pdblValue) +{ + int itemPos = -1; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + itemPos = commonFindLabel(_pvCtx, _piAddress, _pstLabelName) + 1; + +#ifdef DEBUG + sciprint("DEBUG: addVectorOfDoubleInPList - itemPos = %d _pstLabelName = %s\n", itemPos, _pstLabelName); +#endif + + _SciErr = createMatrixOfDoubleInList(_pvCtx, _iVar, _piAddress, itemPos, _iNbValues, 1, _pdblValue); + + return _SciErr; +} +/*--------------------------------------------------------------------------*/ +/* Utility functions */ +static int commonFindLabelPartial(void* _pvCtx, int * _piAddress, char const * const _pstLabelToFind) +{ + int Pos = -1, i = 0; + int m_label = 0, n_label = 0; + int * len_label = NULL; + char ** label_list = NULL; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + _SciErr = getMatrixOfStringInList(_pvCtx, _piAddress, 1, &m_label, &n_label, NULL, NULL); + len_label = (int *)MALLOC(m_label * n_label * sizeof(int)); + _SciErr = getMatrixOfStringInList(_pvCtx, _piAddress, 1, &m_label, &n_label, len_label, NULL); + label_list = (char **)MALLOC(m_label * n_label * sizeof(char *)); + + for (i = 0; i < n_label * m_label; i++) + { + label_list[i] = (char *)MALLOC((len_label[i] + 1) * sizeof(char)); + } + _SciErr = getMatrixOfStringInList(_pvCtx, _piAddress, 1, &m_label, &n_label, len_label, label_list); + + if (label_list != NULL) + { + for (i = 0; i < m_label * n_label; i++) + { + /* A bug in scilab: if the mlist contains only the type, the C API returns m_label*n_label==2 !! */ + if (label_list[i] != NULL) + { + if (strncmp(label_list[i], _pstLabelToFind, strlen(_pstLabelToFind)) == 0) + { + Pos = i; + + if (len_label) + { + FREE(len_label); + len_label = NULL; + } + freeArrayOfString(label_list, m_label * n_label); + + return Pos; + } + } + } + } + + if (len_label) + { + FREE(len_label); + len_label = NULL; + } + freeArrayOfString(label_list, m_label * n_label); + + return Pos; +} +/*--------------------------------------------------------------------------*/ +static int commonFindLabel(void* _pvCtx, int * _piAddress, char const * const _pstLabelToFind) +{ + int Pos = -1, i = 0; + int m_label = 0, n_label = 0; + int * len_label = NULL; + char ** label_list = NULL; + SciErr _SciErr; + + _SciErr.iErr = 0; + _SciErr.iMsgCount = 0; + + _SciErr = getMatrixOfStringInList(_pvCtx, _piAddress, 1, &m_label, &n_label, NULL, NULL); + len_label = (int *)MALLOC(m_label * n_label * sizeof(int)); + _SciErr = getMatrixOfStringInList(_pvCtx, _piAddress, 1, &m_label, &n_label, len_label, NULL); + label_list = (char **)MALLOC(m_label * n_label * sizeof(char *)); + for (i = 0; i < n_label * m_label; i++) + { + label_list[i] = (char *)MALLOC((len_label[i] + 1) * sizeof(char)); + } + _SciErr = getMatrixOfStringInList(_pvCtx, _piAddress, 1, &m_label, &n_label, len_label, label_list); + + if (label_list != NULL) + { + for (i = 0; i < m_label * n_label; i++) + { + /* A bug in scilab: if the mlist contains only the type, the C API returns m_label*n_label==2 !! */ + if (label_list[i] != NULL) + { + if (strcmp(label_list[i], (char *)_pstLabelToFind) == 0) + { + Pos = i; + + if (len_label) + { + FREE(len_label); + len_label = NULL; + } + freeArrayOfString(label_list, m_label * n_label); + + return Pos; + } + } + } + } + + if (len_label) + { + FREE(len_label); + len_label = NULL; + } + freeArrayOfString(label_list, m_label * n_label); + + return Pos; +} +/*--------------------------------------------------------------------------*/ +// c versions of std::fill_n +void int_fill_n(int* dst, size_t n, int v) +{ + for (; n; --n, ++dst) + { + *dst = v; + } +} +/*--------------------------------------------------------------------------*/ +void double_fill_n(double* dst, size_t n, int v) +{ + for (; n; --n, ++dst) + { + *dst = v; + } +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/parameters/src/c/parameters.rc b/modules/parameters/src/c/parameters.rc new file mode 100755 index 000000000..a3d389709 --- /dev/null +++ b/modules/parameters/src/c/parameters.rc @@ -0,0 +1,97 @@ +// Microsoft Visual C++ generated resource script. +// + + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +//#include "afxres.h" +#define APSTUDIO_HIDDEN_SYMBOLS +#include "windows.h" +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// French (France) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA) +#ifdef _WIN32 +LANGUAGE LANG_FRENCH, SUBLANG_FRENCH +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 5,5,2,0 + PRODUCTVERSION 5,5,2,0 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x0L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040c04b0" + BEGIN + VALUE "FileDescription", "parameters module" + VALUE "FileVersion", "5, 5, 2, 0" + VALUE "InternalName", "parameters module" + VALUE "LegalCopyright", "Copyright (C) 2017" + VALUE "OriginalFilename", "parameters.dll" + VALUE "ProductName", " parameters" + VALUE "ProductVersion", "5, 5, 2, 0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x40c, 1200 + END +END + +#endif // French (France) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/modules/parameters/tests/nonreg_tests/bug_6774.dia.ref b/modules/parameters/tests/nonreg_tests/bug_6774.dia.ref new file mode 100755 index 000000000..93ac83918 --- /dev/null +++ b/modules/parameters/tests/nonreg_tests/bug_6774.dia.ref @@ -0,0 +1,37 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Michael Baudin +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 6774 --> +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=6774 +// +// <-- Short Description --> +// Detailed description of the problem +// The use of get_param requires to +// be extra-careful when we get the value of an option which is a function. +function y = rastrigin(x) + y = x(1)^2+x(2)^2-cos(12*x(1))-cos(18*x(2)); +endfunction +function x_neigh = myneighfun (x_current, T,param) + sa_min_delta = -0.1*ones(size(x_current,1),size(x_current,2)); + sa_max_delta = 0.1*ones(size(x_current,1),size(x_current,2)); + x_neigh = x_current + (sa_max_delta - sa_min_delta).*rand(size(x_current,1),size(x_current,2)) + sa_min_delta; +endfunction +function T_init = myclientfunction ( x0, cit_f, proba_init, ItMX, param) + [neigh_func,err] = get_param(param,"neigh_func",neigh_func_default); + [type_accept,err] = get_param(param,"type_accept","sa"); + T_init = 0 +endfunction +x0 = [2 2]; +Proba_start = 0.7; +It_Pre = 100; +t_extern = 100; +t_intern = 1000; +params = init_param(); +params = add_param(params,"neigh_func", myneighfun); +T0 = myclientfunction ( x0, rastrigin, Proba_start, It_Pre, params); +// The test is : no warning must be generated. diff --git a/modules/parameters/tests/nonreg_tests/bug_6774.tst b/modules/parameters/tests/nonreg_tests/bug_6774.tst new file mode 100755 index 000000000..3d00f27b6 --- /dev/null +++ b/modules/parameters/tests/nonreg_tests/bug_6774.tst @@ -0,0 +1,47 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Michael Baudin +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 6774 --> +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=6774 +// +// <-- Short Description --> +// Detailed description of the problem +// The use of get_param requires to +// be extra-careful when we get the value of an option which is a function. + + +function y = rastrigin(x) + y = x(1)^2+x(2)^2-cos(12*x(1))-cos(18*x(2)); +endfunction + +function x_neigh = myneighfun (x_current, T,param) + sa_min_delta = -0.1*ones(size(x_current,1),size(x_current,2)); + sa_max_delta = 0.1*ones(size(x_current,1),size(x_current,2)); + x_neigh = x_current + (sa_max_delta - sa_min_delta).*rand(size(x_current,1),size(x_current,2)) + sa_min_delta; +endfunction + +function T_init = myclientfunction ( x0, cit_f, proba_init, ItMX, param) + [neigh_func,err] = get_param(param,"neigh_func",neigh_func_default); + [type_accept,err] = get_param(param,"type_accept","sa"); + T_init = 0 +endfunction + +x0 = [2 2]; +Proba_start = 0.7; +It_Pre = 100; +t_extern = 100; +t_intern = 1000; + +params = init_param(); +params = add_param(params,"neigh_func", myneighfun); +T0 = myclientfunction ( x0, rastrigin, Proba_start, It_Pre, params); + +// The test is : no warning must be generated. + diff --git a/modules/parameters/tests/nonreg_tests/bug_9394.dia.ref b/modules/parameters/tests/nonreg_tests/bug_9394.dia.ref new file mode 100755 index 000000000..4caa4715b --- /dev/null +++ b/modules/parameters/tests/nonreg_tests/bug_9394.dia.ref @@ -0,0 +1,27 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 9394 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9394 +// +// <-- Short Description --> +// is_params() recognized the "plist" field. +p = init_param(); +bool = is_param(p, "plist"); +assert_checkequal(bool, %f); +p = add_param(p, "field1", 10); +bool = is_param(p, "plist"); +bool2 = is_param(p, "field1"); +assert_checkequal(bool, %f); +assert_checkequal(bool2, %t); +refMsg = msprintf(_("%s: Wrong type for input argument #%d: %s expected.\n"), "is_param", 2, "String"); +assert_checkerror("is_param(p, 1);", refMsg); +assert_checkerror("is_param(p, %t);", refMsg); diff --git a/modules/parameters/tests/nonreg_tests/bug_9394.tst b/modules/parameters/tests/nonreg_tests/bug_9394.tst new file mode 100755 index 000000000..cac81f528 --- /dev/null +++ b/modules/parameters/tests/nonreg_tests/bug_9394.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 9394 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9394 +// +// <-- Short Description --> +// is_params() recognized the "plist" field. + +p = init_param(); +bool = is_param(p, "plist"); +assert_checkequal(bool, %f); +p = add_param(p, "field1", 10); +bool = is_param(p, "plist"); +bool2 = is_param(p, "field1"); +assert_checkequal(bool, %f); +assert_checkequal(bool2, %t); + +refMsg = msprintf(_("%s: Wrong type for input argument #%d: %s expected.\n"), "is_param", 2, "String"); +assert_checkerror("is_param(p, 1);", refMsg); +assert_checkerror("is_param(p, %t);", refMsg); diff --git a/modules/parameters/tests/nonreg_tests/bug_9395.dia.ref b/modules/parameters/tests/nonreg_tests/bug_9395.dia.ref new file mode 100755 index 000000000..6a6244e9a --- /dev/null +++ b/modules/parameters/tests/nonreg_tests/bug_9395.dia.ref @@ -0,0 +1,28 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 9395 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9395 +// +// <-- Short Description --> +// add_params() did not check its input arguments. +p = init_param(); +refMsg = msprintf(_("%s: Wrong number of input arguments: %d to %d expected.\n"), "add_param", 2, 3); +assert_checkerror("p = add_param();", refMsg); +assert_checkerror("p = add_param(p);", refMsg); +// set two times the same field. +refMsg = msprintf(_("%s: Wrong value for input argument #%d: key ""%s"" already defined.\n"), "add_param", 2, "field1"); +p = add_param(p, "field1"); +assert_checkerror("p = add_param(p, ""field1"");", refMsg); +// Input list must be a plist. +refMsg = msprintf(_("%s: Wrong type for input argument #%d: %s expected.\n"), "add_param", 1, "plist"); +l = list("field1"); +assert_checkerror("l = add_param(l, ""field1"");", refMsg); diff --git a/modules/parameters/tests/nonreg_tests/bug_9395.tst b/modules/parameters/tests/nonreg_tests/bug_9395.tst new file mode 100755 index 000000000..c9da2eca9 --- /dev/null +++ b/modules/parameters/tests/nonreg_tests/bug_9395.tst @@ -0,0 +1,31 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 9395 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9395 +// +// <-- Short Description --> +// add_params() did not check its input arguments. + +p = init_param(); +refMsg = msprintf(_("%s: Wrong number of input arguments: %d to %d expected.\n"), "add_param", 2, 3); +assert_checkerror("p = add_param();", refMsg); +assert_checkerror("p = add_param(p);", refMsg); + +// set two times the same field. +refMsg = msprintf(_("%s: Wrong value for input argument #%d: key ""%s"" already defined.\n"), "add_param", 2, "field1"); +p = add_param(p, "field1"); +assert_checkerror("p = add_param(p, ""field1"");", refMsg); + +// Input list must be a plist. +refMsg = msprintf(_("%s: Wrong type for input argument #%d: %s expected.\n"), "add_param", 1, "plist"); +l = list("field1"); +assert_checkerror("l = add_param(l, ""field1"");", refMsg); diff --git a/modules/parameters/tests/nonreg_tests/bug_9396.dia.ref b/modules/parameters/tests/nonreg_tests/bug_9396.dia.ref new file mode 100755 index 000000000..87bd9a4de --- /dev/null +++ b/modules/parameters/tests/nonreg_tests/bug_9396.dia.ref @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 9396 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9396 +// +// <-- Short Description --> +// add_params() accepted duplicate keys. +p = init_param(); +p = add_param(p, "field1", 10); +// Check that defining the key "field1" again yields an error +refMsg = msprintf(_("%s: Wrong value for input argument #%d: key ""%s"" already defined.\n"), "add_param", 2, "field1"); +assert_checkerror("p = add_param(p, ''field1'', 10);", refMsg); diff --git a/modules/parameters/tests/nonreg_tests/bug_9396.tst b/modules/parameters/tests/nonreg_tests/bug_9396.tst new file mode 100755 index 000000000..27553c4ff --- /dev/null +++ b/modules/parameters/tests/nonreg_tests/bug_9396.tst @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 9396 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9396 +// +// <-- Short Description --> +// add_params() accepted duplicate keys. + +p = init_param(); +p = add_param(p, "field1", 10); +// Check that defining the key "field1" again yields an error +refMsg = msprintf(_("%s: Wrong value for input argument #%d: key ""%s"" already defined.\n"), "add_param", 2, "field1"); +assert_checkerror("p = add_param(p, ''field1'', 10);", refMsg); diff --git a/modules/parameters/tests/unit_tests/add_param.dia.ref b/modules/parameters/tests/unit_tests/add_param.dia.ref new file mode 100755 index 000000000..5a187c905 --- /dev/null +++ b/modules/parameters/tests/unit_tests/add_param.dia.ref @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +test_list = init_param(); +test_list = add_param(test_list,'test',%T); +if ~is_param(test_list,'test') then bugmes();quit;end diff --git a/modules/parameters/tests/unit_tests/add_param.tst b/modules/parameters/tests/unit_tests/add_param.tst new file mode 100755 index 000000000..94f813a88 --- /dev/null +++ b/modules/parameters/tests/unit_tests/add_param.tst @@ -0,0 +1,18 @@ + +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// <-- JVM_NOT_MANDATORY --> + +test_list = init_param(); + +test_list = add_param(test_list,'test',%T); + +if ~is_param(test_list,'test') then pause,end + diff --git a/modules/parameters/tests/unit_tests/display_param.dia.ref b/modules/parameters/tests/unit_tests/display_param.dia.ref new file mode 100755 index 000000000..fa68d10f4 --- /dev/null +++ b/modules/parameters/tests/unit_tests/display_param.dia.ref @@ -0,0 +1,17 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +// +// <-- JVM_NOT_MANDATORY --> +// Forcing display +test_list = init_param() + test_list = + +Parameters list: +================ +Number of fields = 0 diff --git a/modules/parameters/tests/unit_tests/display_param.tst b/modules/parameters/tests/unit_tests/display_param.tst new file mode 100755 index 000000000..fa3c1b4c2 --- /dev/null +++ b/modules/parameters/tests/unit_tests/display_param.tst @@ -0,0 +1,15 @@ + +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +// +// <-- JVM_NOT_MANDATORY --> + + +// Forcing display +test_list = init_param() diff --git a/modules/parameters/tests/unit_tests/get_param.dia.ref b/modules/parameters/tests/unit_tests/get_param.dia.ref new file mode 100755 index 000000000..e75ec5afd --- /dev/null +++ b/modules/parameters/tests/unit_tests/get_param.dia.ref @@ -0,0 +1,35 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// Copyright (C) 2010 - DIGITEO - Michael Baudin +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +// <-- JVM_NOT_MANDATORY --> +test_list = init_param(); +test_list = add_param(test_list,"test",%T); +if get_param(test_list,"test")~=%T then bugmes();quit;end +function y = rastrigin(x) + y = x(1)^2+x(2)^2-cos(12*x(1))-cos(18*x(2)); +endfunction +function x_neigh = myneighfun (x_current, T,param) + sa_min_delta = -0.1*ones(size(x_current,1),size(x_current,2)); + sa_max_delta = 0.1*ones(size(x_current,1),size(x_current,2)); + x_neigh = x_current + (sa_max_delta - sa_min_delta).*rand(size(x_current,1),size(x_current,2)) + sa_min_delta; +endfunction +function T_init = myclientfunction ( x0, cit_f, proba_init, ItMX, param) + [neigh_func,err] = get_param(param,"neigh_func",neigh_func_default); + [type_accept,err] = get_param(param,"type_accept","sa"); + T_init = 0 +endfunction +x0 = [2 2]; +Proba_start = 0.7; +It_Pre = 100; +t_extern = 100; +t_intern = 1000; +params = init_param(); +params = add_param(params,"neigh_func", myneighfun); +T0 = myclientfunction ( x0, rastrigin, Proba_start, It_Pre, params); +// The test is : no warning must be generated. diff --git a/modules/parameters/tests/unit_tests/get_param.tst b/modules/parameters/tests/unit_tests/get_param.tst new file mode 100755 index 000000000..e3e9cb03a --- /dev/null +++ b/modules/parameters/tests/unit_tests/get_param.tst @@ -0,0 +1,47 @@ + +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// Copyright (C) 2010 - DIGITEO - Michael Baudin +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// <-- JVM_NOT_MANDATORY --> + +test_list = init_param(); + +test_list = add_param(test_list,"test",%T); + +if get_param(test_list,"test")~=%T then pause,end + +function y = rastrigin(x) + y = x(1)^2+x(2)^2-cos(12*x(1))-cos(18*x(2)); +endfunction + +function x_neigh = myneighfun (x_current, T,param) + sa_min_delta = -0.1*ones(size(x_current,1),size(x_current,2)); + sa_max_delta = 0.1*ones(size(x_current,1),size(x_current,2)); + x_neigh = x_current + (sa_max_delta - sa_min_delta).*rand(size(x_current,1),size(x_current,2)) + sa_min_delta; +endfunction + +function T_init = myclientfunction ( x0, cit_f, proba_init, ItMX, param) + [neigh_func,err] = get_param(param,"neigh_func",neigh_func_default); + [type_accept,err] = get_param(param,"type_accept","sa"); + T_init = 0 +endfunction + +x0 = [2 2]; +Proba_start = 0.7; +It_Pre = 100; +t_extern = 100; +t_intern = 1000; + +params = init_param(); +params = add_param(params,"neigh_func", myneighfun); +T0 = myclientfunction ( x0, rastrigin, Proba_start, It_Pre, params); + +// The test is : no warning must be generated. + diff --git a/modules/parameters/tests/unit_tests/init_param.dia.ref b/modules/parameters/tests/unit_tests/init_param.dia.ref new file mode 100755 index 000000000..583e63d3f --- /dev/null +++ b/modules/parameters/tests/unit_tests/init_param.dia.ref @@ -0,0 +1,10 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +test_list = init_param(); +if typeof(test_list)~='plist' then bugmes();quit;end diff --git a/modules/parameters/tests/unit_tests/init_param.tst b/modules/parameters/tests/unit_tests/init_param.tst new file mode 100755 index 000000000..61e03b2e9 --- /dev/null +++ b/modules/parameters/tests/unit_tests/init_param.tst @@ -0,0 +1,15 @@ + +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// <-- JVM_NOT_MANDATORY --> + +test_list = init_param(); + +if typeof(test_list)~='plist' then pause,end diff --git a/modules/parameters/tests/unit_tests/is_param.dia.ref b/modules/parameters/tests/unit_tests/is_param.dia.ref new file mode 100755 index 000000000..5a187c905 --- /dev/null +++ b/modules/parameters/tests/unit_tests/is_param.dia.ref @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +test_list = init_param(); +test_list = add_param(test_list,'test',%T); +if ~is_param(test_list,'test') then bugmes();quit;end diff --git a/modules/parameters/tests/unit_tests/is_param.tst b/modules/parameters/tests/unit_tests/is_param.tst new file mode 100755 index 000000000..94f813a88 --- /dev/null +++ b/modules/parameters/tests/unit_tests/is_param.tst @@ -0,0 +1,18 @@ + +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// <-- JVM_NOT_MANDATORY --> + +test_list = init_param(); + +test_list = add_param(test_list,'test',%T); + +if ~is_param(test_list,'test') then pause,end + diff --git a/modules/parameters/tests/unit_tests/list_param.dia.ref b/modules/parameters/tests/unit_tests/list_param.dia.ref new file mode 100755 index 000000000..42e55a3a9 --- /dev/null +++ b/modules/parameters/tests/unit_tests/list_param.dia.ref @@ -0,0 +1,13 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +test_list = init_param(); +test_list = add_param(test_list,'param_1',1); +test_list = add_param(test_list,'param_2',2); +list_of_params = list_param(test_list); +if size(list_of_params,2)~=2 then bugmes();quit;end diff --git a/modules/parameters/tests/unit_tests/list_param.tst b/modules/parameters/tests/unit_tests/list_param.tst new file mode 100755 index 000000000..d21754cee --- /dev/null +++ b/modules/parameters/tests/unit_tests/list_param.tst @@ -0,0 +1,20 @@ + +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// <-- JVM_NOT_MANDATORY --> + +test_list = init_param(); + +test_list = add_param(test_list,'param_1',1); +test_list = add_param(test_list,'param_2',2); + +list_of_params = list_param(test_list); + +if size(list_of_params,2)~=2 then pause,end diff --git a/modules/parameters/tests/unit_tests/remove_param.dia.ref b/modules/parameters/tests/unit_tests/remove_param.dia.ref new file mode 100755 index 000000000..09a380628 --- /dev/null +++ b/modules/parameters/tests/unit_tests/remove_param.dia.ref @@ -0,0 +1,12 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +test_list = init_param(); +test_list = add_param(test_list,'test',%T); +test_list = remove_param(test_list,'test'); +if is_param(test_list,'test') then bugmes();quit;end diff --git a/modules/parameters/tests/unit_tests/remove_param.tst b/modules/parameters/tests/unit_tests/remove_param.tst new file mode 100755 index 000000000..4eec156d3 --- /dev/null +++ b/modules/parameters/tests/unit_tests/remove_param.tst @@ -0,0 +1,19 @@ + +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// <-- JVM_NOT_MANDATORY --> + +test_list = init_param(); + +test_list = add_param(test_list,'test',%T); + +test_list = remove_param(test_list,'test'); + +if is_param(test_list,'test') then pause, end diff --git a/modules/parameters/tests/unit_tests/set_param.dia.ref b/modules/parameters/tests/unit_tests/set_param.dia.ref new file mode 100755 index 000000000..ceaf64856 --- /dev/null +++ b/modules/parameters/tests/unit_tests/set_param.dia.ref @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +test_list = init_param(); +test_list = add_param(test_list,'test',%T); +if get_param(test_list,'test')~=%T then bugmes();quit;end diff --git a/modules/parameters/tests/unit_tests/set_param.tst b/modules/parameters/tests/unit_tests/set_param.tst new file mode 100755 index 000000000..262bb4de5 --- /dev/null +++ b/modules/parameters/tests/unit_tests/set_param.tst @@ -0,0 +1,17 @@ + +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Yann COLLETTE <yann.collette@renault.com> +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// <-- JVM_NOT_MANDATORY --> + +test_list = init_param(); + +test_list = add_param(test_list,'test',%T); + +if get_param(test_list,'test')~=%T then pause,end |