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/io | |
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/io')
348 files changed, 29071 insertions, 0 deletions
diff --git a/modules/io/.libs/libsciio-algo.a b/modules/io/.libs/libsciio-algo.a Binary files differnew file mode 100755 index 000000000..18244fff2 --- /dev/null +++ b/modules/io/.libs/libsciio-algo.a diff --git a/modules/io/.libs/libsciio-algo.la b/modules/io/.libs/libsciio-algo.la new file mode 120000 index 000000000..b66bf21e8 --- /dev/null +++ b/modules/io/.libs/libsciio-algo.la @@ -0,0 +1 @@ +../libsciio-algo.la
\ No newline at end of file diff --git a/modules/io/.libs/libsciio.a b/modules/io/.libs/libsciio.a Binary files differnew file mode 100755 index 000000000..a1f6b4993 --- /dev/null +++ b/modules/io/.libs/libsciio.a diff --git a/modules/io/.libs/libsciio.la b/modules/io/.libs/libsciio.la new file mode 120000 index 000000000..5f75a2558 --- /dev/null +++ b/modules/io/.libs/libsciio.la @@ -0,0 +1 @@ +../libsciio.la
\ No newline at end of file diff --git a/modules/io/Makefile b/modules/io/Makefile new file mode 100755 index 000000000..e9526f71f --- /dev/null +++ b/modules/io/Makefile @@ -0,0 +1,1626 @@ +# Makefile.in generated by automake 1.14.1 from Makefile.am. +# modules/io/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) 2006 - INRIA - Sylvestre LEDRU +# +# This file is distributed under the same license as the Scilab package. + +# 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/io +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)$(libsciio_la_etcdir)" \ + "$(DESTDIR)$(libsciio_la_rootdir)" \ + "$(DESTDIR)$(libsciio_la_sci_gatewaydir)" +LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES) +libsciio_algo_la_LIBADD = +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = src/c/libsciio_algo_la-getpidc.lo \ + src/c/libsciio_algo_la-setenvc.lo \ + src/c/libsciio_algo_la-systemc.lo \ + src/c/libsciio_algo_la-getenvc.lo \ + src/c/libsciio_algo_la-v2cuniterror.lo +am__objects_2 = src/fortran/v2unit.lo src/fortran/newsave.lo \ + src/fortran/v2cunit.lo +am_libsciio_algo_la_OBJECTS = $(am__objects_1) $(am__objects_2) +libsciio_algo_la_OBJECTS = $(am_libsciio_algo_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_libsciio_algo_la_rpath = +#am_libsciio_algo_la_rpath = +libsciio_la_DEPENDENCIES = libsciio-algo.la +am__objects_3 = sci_gateway/c/libsciio_la-sci_read4b.lo \ + sci_gateway/c/libsciio_la-sci_getio.lo \ + sci_gateway/c/libsciio_la-sci_readb.lo \ + sci_gateway/c/libsciio_la-sci_host.lo \ + sci_gateway/c/libsciio_la-sci_file.lo \ + sci_gateway/c/libsciio_la-sci_getenv.lo \ + sci_gateway/c/libsciio_la-sci_write.lo \ + sci_gateway/c/libsciio_la-sci_writeb.lo \ + sci_gateway/c/libsciio_la-sci_setenv.lo \ + sci_gateway/c/libsciio_la-gw_io.lo \ + sci_gateway/c/libsciio_la-sci_read.lo \ + sci_gateway/c/libsciio_la-sci_getpid.lo \ + sci_gateway/c/libsciio_la-sci_write4b.lo \ + sci_gateway/c/libsciio_la-sci_load.lo \ + sci_gateway/c/libsciio_la-sci_unix.lo \ + sci_gateway/c/libsciio_la-sci_save.lo +am__objects_4 = sci_gateway/fortran/intwrite4b.lo \ + sci_gateway/fortran/intwritb.lo \ + sci_gateway/fortran/intwrite.lo \ + sci_gateway/fortran/intread4b.lo \ + sci_gateway/fortran/intread.lo sci_gateway/fortran/intreadb.lo \ + sci_gateway/fortran/intfile.lo +am_libsciio_la_OBJECTS = $(am__objects_3) $(am__objects_4) +libsciio_la_OBJECTS = $(am_libsciio_la_OBJECTS) +am_libsciio_la_rpath = +#am_libsciio_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 = +F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS) +LTF77COMPILE = $(LIBTOOL) $(AM_V_lt) --tag=F77 $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(F77) $(AM_FFLAGS) $(FFLAGS) +AM_V_F77 = $(am__v_F77_$(V)) +am__v_F77_ = $(am__v_F77_$(AM_DEFAULT_VERBOSITY)) +am__v_F77_0 = @echo " F77 " $@; +am__v_F77_1 = +F77LD = $(F77) +F77LINK = $(LIBTOOL) $(AM_V_lt) --tag=F77 $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(F77LD) $(AM_FFLAGS) $(FFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_F77LD = $(am__v_F77LD_$(V)) +am__v_F77LD_ = $(am__v_F77LD_$(AM_DEFAULT_VERBOSITY)) +am__v_F77LD_0 = @echo " F77LD " $@; +am__v_F77LD_1 = +SOURCES = $(libsciio_algo_la_SOURCES) $(libsciio_la_SOURCES) +DIST_SOURCES = $(libsciio_algo_la_SOURCES) $(libsciio_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 = $(libsciio_la_etc_DATA) $(libsciio_la_root_DATA) \ + $(libsciio_la_sci_gateway_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/io +abs_srcdir = /home/shashank/scilab-master_5.5.2/modules/io +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 = ../.. +IO_C_SOURCES = src/c/getpidc.c \ +src/c/setenvc.c \ +src/c/systemc.c \ +src/c/getenvc.c \ +src/c/v2cuniterror.c + +IO_FORTRAN_SOURCES = src/fortran/v2unit.f \ +src/fortran/newsave.f \ +src/fortran/v2cunit.f + +GATEWAY_C_SOURCES = sci_gateway/c/sci_read4b.c \ +sci_gateway/c/sci_getio.c \ +sci_gateway/c/sci_readb.c \ +sci_gateway/c/sci_host.c \ +sci_gateway/c/sci_file.c \ +sci_gateway/c/sci_getenv.c \ +sci_gateway/c/sci_write.c \ +sci_gateway/c/sci_writeb.c \ +sci_gateway/c/sci_setenv.c \ +sci_gateway/c/gw_io.c \ +sci_gateway/c/sci_read.c \ +sci_gateway/c/sci_getpid.c \ +sci_gateway/c/sci_write4b.c \ +sci_gateway/c/sci_load.c \ +sci_gateway/c/sci_unix.c \ +sci_gateway/c/sci_save.c + +GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/intwrite4b.f \ +sci_gateway/fortran/intwritb.f \ +sci_gateway/fortran/intwrite.f \ +sci_gateway/fortran/intread4b.f \ +sci_gateway/fortran/intread.f \ +sci_gateway/fortran/intreadb.f \ +sci_gateway/fortran/intfile.f + +libsciio_la_CPPFLAGS = -I$(srcdir)/includes/ \ + -I$(srcdir)/src/c/ \ + -I$(top_srcdir)/modules/core/includes/ \ + -I$(top_srcdir)/modules/fileio/includes/ \ + -I$(top_srcdir)/modules/api_scilab/includes/ \ + -I$(top_srcdir)/modules/output_stream/includes/ \ + -I$(top_srcdir)/modules/localization/includes/ \ + $(AM_CPPFLAGS) + +#pkglib_LTLIBRARIES = libsciio.la +noinst_LTLIBRARIES = libsciio-algo.la libsciio.la +#noinst_LTLIBRARIES = libsciio-algo.la +libsciio_algo_la_SOURCES = $(IO_C_SOURCES) $(IO_FORTRAN_SOURCES) +libsciio_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) +libsciio_algo_la_CPPFLAGS = $(libsciio_la_CPPFLAGS) + +# For the code check (splint) +CHECK_SRC = $(IO_C_SOURCES) $(GATEWAY_C_SOURCES) +INCLUDE_FLAGS = $(libsciio_la_CPPFLAGS) +libsciio_la_LIBADD = libsciio-algo.la + +#### Target ###### +modulename = io + +#### io : Conf files #### +libsciio_la_rootdir = $(mydatadir) +libsciio_la_root_DATA = license.txt + +####io : init scripts #### +libsciio_la_etcdir = $(mydatadir)/etc +libsciio_la_etc_DATA = etc/io.quit etc/io.start + +####io : gateway declaration #### +libsciio_la_sci_gatewaydir = $(mydatadir)/sci_gateway +libsciio_la_sci_gateway_DATA = sci_gateway/io_gateway.xml + +# 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 .f .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/io/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign modules/io/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/libsciio_algo_la-getpidc.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libsciio_algo_la-setenvc.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libsciio_algo_la-systemc.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libsciio_algo_la-getenvc.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libsciio_algo_la-v2cuniterror.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/fortran/$(am__dirstamp): + @$(MKDIR_P) src/fortran + @: > src/fortran/$(am__dirstamp) +src/fortran/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) src/fortran/$(DEPDIR) + @: > src/fortran/$(DEPDIR)/$(am__dirstamp) +src/fortran/v2unit.lo: src/fortran/$(am__dirstamp) \ + src/fortran/$(DEPDIR)/$(am__dirstamp) +src/fortran/newsave.lo: src/fortran/$(am__dirstamp) \ + src/fortran/$(DEPDIR)/$(am__dirstamp) +src/fortran/v2cunit.lo: src/fortran/$(am__dirstamp) \ + src/fortran/$(DEPDIR)/$(am__dirstamp) + +libsciio-algo.la: $(libsciio_algo_la_OBJECTS) $(libsciio_algo_la_DEPENDENCIES) $(EXTRA_libsciio_algo_la_DEPENDENCIES) + $(AM_V_F77LD)$(F77LINK) $(am_libsciio_algo_la_rpath) $(libsciio_algo_la_OBJECTS) $(libsciio_algo_la_LIBADD) $(LIBS) +sci_gateway/c/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c + @: > sci_gateway/c/$(am__dirstamp) +sci_gateway/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c/$(DEPDIR) + @: > sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_read4b.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_getio.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_readb.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_host.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_file.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_getenv.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_write.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_writeb.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_setenv.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-gw_io.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_read.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_getpid.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_write4b.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_load.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_unix.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_save.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/fortran + @: > sci_gateway/fortran/$(am__dirstamp) +sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/fortran/$(DEPDIR) + @: > sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intwrite4b.lo: \ + sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intwritb.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intwrite.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intread4b.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intread.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intreadb.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intfile.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) + +libsciio.la: $(libsciio_la_OBJECTS) $(libsciio_la_DEPENDENCIES) $(EXTRA_libsciio_la_DEPENDENCIES) + $(AM_V_F77LD)$(F77LINK) $(am_libsciio_la_rpath) $(libsciio_la_OBJECTS) $(libsciio_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f sci_gateway/c/*.$(OBJEXT) + -rm -f sci_gateway/c/*.lo + -rm -f sci_gateway/fortran/*.$(OBJEXT) + -rm -f sci_gateway/fortran/*.lo + -rm -f src/c/*.$(OBJEXT) + -rm -f src/c/*.lo + -rm -f src/fortran/*.$(OBJEXT) + -rm -f src/fortran/*.lo + +distclean-compile: + -rm -f *.tab.c + +include sci_gateway/c/$(DEPDIR)/libsciio_la-gw_io.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_file.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getenv.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getio.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getpid.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_host.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_load.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read4b.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_readb.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_save.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_setenv.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_unix.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write4b.Plo +include sci_gateway/c/$(DEPDIR)/libsciio_la-sci_writeb.Plo +include src/c/$(DEPDIR)/libsciio_algo_la-getenvc.Plo +include src/c/$(DEPDIR)/libsciio_algo_la-getpidc.Plo +include src/c/$(DEPDIR)/libsciio_algo_la-setenvc.Plo +include src/c/$(DEPDIR)/libsciio_algo_la-systemc.Plo +include src/c/$(DEPDIR)/libsciio_algo_la-v2cuniterror.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/libsciio_algo_la-getpidc.lo: src/c/getpidc.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libsciio_algo_la-getpidc.lo -MD -MP -MF src/c/$(DEPDIR)/libsciio_algo_la-getpidc.Tpo -c -o src/c/libsciio_algo_la-getpidc.lo `test -f 'src/c/getpidc.c' || echo '$(srcdir)/'`src/c/getpidc.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libsciio_algo_la-getpidc.Tpo src/c/$(DEPDIR)/libsciio_algo_la-getpidc.Plo +# $(AM_V_CC)source='src/c/getpidc.c' object='src/c/libsciio_algo_la-getpidc.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) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libsciio_algo_la-getpidc.lo `test -f 'src/c/getpidc.c' || echo '$(srcdir)/'`src/c/getpidc.c + +src/c/libsciio_algo_la-setenvc.lo: src/c/setenvc.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libsciio_algo_la-setenvc.lo -MD -MP -MF src/c/$(DEPDIR)/libsciio_algo_la-setenvc.Tpo -c -o src/c/libsciio_algo_la-setenvc.lo `test -f 'src/c/setenvc.c' || echo '$(srcdir)/'`src/c/setenvc.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libsciio_algo_la-setenvc.Tpo src/c/$(DEPDIR)/libsciio_algo_la-setenvc.Plo +# $(AM_V_CC)source='src/c/setenvc.c' object='src/c/libsciio_algo_la-setenvc.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) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libsciio_algo_la-setenvc.lo `test -f 'src/c/setenvc.c' || echo '$(srcdir)/'`src/c/setenvc.c + +src/c/libsciio_algo_la-systemc.lo: src/c/systemc.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libsciio_algo_la-systemc.lo -MD -MP -MF src/c/$(DEPDIR)/libsciio_algo_la-systemc.Tpo -c -o src/c/libsciio_algo_la-systemc.lo `test -f 'src/c/systemc.c' || echo '$(srcdir)/'`src/c/systemc.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libsciio_algo_la-systemc.Tpo src/c/$(DEPDIR)/libsciio_algo_la-systemc.Plo +# $(AM_V_CC)source='src/c/systemc.c' object='src/c/libsciio_algo_la-systemc.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) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libsciio_algo_la-systemc.lo `test -f 'src/c/systemc.c' || echo '$(srcdir)/'`src/c/systemc.c + +src/c/libsciio_algo_la-getenvc.lo: src/c/getenvc.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libsciio_algo_la-getenvc.lo -MD -MP -MF src/c/$(DEPDIR)/libsciio_algo_la-getenvc.Tpo -c -o src/c/libsciio_algo_la-getenvc.lo `test -f 'src/c/getenvc.c' || echo '$(srcdir)/'`src/c/getenvc.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libsciio_algo_la-getenvc.Tpo src/c/$(DEPDIR)/libsciio_algo_la-getenvc.Plo +# $(AM_V_CC)source='src/c/getenvc.c' object='src/c/libsciio_algo_la-getenvc.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) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libsciio_algo_la-getenvc.lo `test -f 'src/c/getenvc.c' || echo '$(srcdir)/'`src/c/getenvc.c + +src/c/libsciio_algo_la-v2cuniterror.lo: src/c/v2cuniterror.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libsciio_algo_la-v2cuniterror.lo -MD -MP -MF src/c/$(DEPDIR)/libsciio_algo_la-v2cuniterror.Tpo -c -o src/c/libsciio_algo_la-v2cuniterror.lo `test -f 'src/c/v2cuniterror.c' || echo '$(srcdir)/'`src/c/v2cuniterror.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libsciio_algo_la-v2cuniterror.Tpo src/c/$(DEPDIR)/libsciio_algo_la-v2cuniterror.Plo +# $(AM_V_CC)source='src/c/v2cuniterror.c' object='src/c/libsciio_algo_la-v2cuniterror.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) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libsciio_algo_la-v2cuniterror.lo `test -f 'src/c/v2cuniterror.c' || echo '$(srcdir)/'`src/c/v2cuniterror.c + +sci_gateway/c/libsciio_la-sci_read4b.lo: sci_gateway/c/sci_read4b.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_read4b.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read4b.Tpo -c -o sci_gateway/c/libsciio_la-sci_read4b.lo `test -f 'sci_gateway/c/sci_read4b.c' || echo '$(srcdir)/'`sci_gateway/c/sci_read4b.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read4b.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read4b.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_read4b.c' object='sci_gateway/c/libsciio_la-sci_read4b.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_read4b.lo `test -f 'sci_gateway/c/sci_read4b.c' || echo '$(srcdir)/'`sci_gateway/c/sci_read4b.c + +sci_gateway/c/libsciio_la-sci_getio.lo: sci_gateway/c/sci_getio.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_getio.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getio.Tpo -c -o sci_gateway/c/libsciio_la-sci_getio.lo `test -f 'sci_gateway/c/sci_getio.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getio.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getio.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getio.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_getio.c' object='sci_gateway/c/libsciio_la-sci_getio.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_getio.lo `test -f 'sci_gateway/c/sci_getio.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getio.c + +sci_gateway/c/libsciio_la-sci_readb.lo: sci_gateway/c/sci_readb.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_readb.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_readb.Tpo -c -o sci_gateway/c/libsciio_la-sci_readb.lo `test -f 'sci_gateway/c/sci_readb.c' || echo '$(srcdir)/'`sci_gateway/c/sci_readb.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_readb.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_readb.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_readb.c' object='sci_gateway/c/libsciio_la-sci_readb.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_readb.lo `test -f 'sci_gateway/c/sci_readb.c' || echo '$(srcdir)/'`sci_gateway/c/sci_readb.c + +sci_gateway/c/libsciio_la-sci_host.lo: sci_gateway/c/sci_host.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_host.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_host.Tpo -c -o sci_gateway/c/libsciio_la-sci_host.lo `test -f 'sci_gateway/c/sci_host.c' || echo '$(srcdir)/'`sci_gateway/c/sci_host.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_host.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_host.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_host.c' object='sci_gateway/c/libsciio_la-sci_host.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_host.lo `test -f 'sci_gateway/c/sci_host.c' || echo '$(srcdir)/'`sci_gateway/c/sci_host.c + +sci_gateway/c/libsciio_la-sci_file.lo: sci_gateway/c/sci_file.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_file.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_file.Tpo -c -o sci_gateway/c/libsciio_la-sci_file.lo `test -f 'sci_gateway/c/sci_file.c' || echo '$(srcdir)/'`sci_gateway/c/sci_file.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_file.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_file.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_file.c' object='sci_gateway/c/libsciio_la-sci_file.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_file.lo `test -f 'sci_gateway/c/sci_file.c' || echo '$(srcdir)/'`sci_gateway/c/sci_file.c + +sci_gateway/c/libsciio_la-sci_getenv.lo: sci_gateway/c/sci_getenv.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_getenv.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getenv.Tpo -c -o sci_gateway/c/libsciio_la-sci_getenv.lo `test -f 'sci_gateway/c/sci_getenv.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getenv.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getenv.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getenv.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_getenv.c' object='sci_gateway/c/libsciio_la-sci_getenv.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_getenv.lo `test -f 'sci_gateway/c/sci_getenv.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getenv.c + +sci_gateway/c/libsciio_la-sci_write.lo: sci_gateway/c/sci_write.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_write.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write.Tpo -c -o sci_gateway/c/libsciio_la-sci_write.lo `test -f 'sci_gateway/c/sci_write.c' || echo '$(srcdir)/'`sci_gateway/c/sci_write.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_write.c' object='sci_gateway/c/libsciio_la-sci_write.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_write.lo `test -f 'sci_gateway/c/sci_write.c' || echo '$(srcdir)/'`sci_gateway/c/sci_write.c + +sci_gateway/c/libsciio_la-sci_writeb.lo: sci_gateway/c/sci_writeb.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_writeb.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_writeb.Tpo -c -o sci_gateway/c/libsciio_la-sci_writeb.lo `test -f 'sci_gateway/c/sci_writeb.c' || echo '$(srcdir)/'`sci_gateway/c/sci_writeb.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_writeb.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_writeb.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_writeb.c' object='sci_gateway/c/libsciio_la-sci_writeb.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_writeb.lo `test -f 'sci_gateway/c/sci_writeb.c' || echo '$(srcdir)/'`sci_gateway/c/sci_writeb.c + +sci_gateway/c/libsciio_la-sci_setenv.lo: sci_gateway/c/sci_setenv.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_setenv.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_setenv.Tpo -c -o sci_gateway/c/libsciio_la-sci_setenv.lo `test -f 'sci_gateway/c/sci_setenv.c' || echo '$(srcdir)/'`sci_gateway/c/sci_setenv.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_setenv.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_setenv.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_setenv.c' object='sci_gateway/c/libsciio_la-sci_setenv.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_setenv.lo `test -f 'sci_gateway/c/sci_setenv.c' || echo '$(srcdir)/'`sci_gateway/c/sci_setenv.c + +sci_gateway/c/libsciio_la-gw_io.lo: sci_gateway/c/gw_io.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-gw_io.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-gw_io.Tpo -c -o sci_gateway/c/libsciio_la-gw_io.lo `test -f 'sci_gateway/c/gw_io.c' || echo '$(srcdir)/'`sci_gateway/c/gw_io.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-gw_io.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-gw_io.Plo +# $(AM_V_CC)source='sci_gateway/c/gw_io.c' object='sci_gateway/c/libsciio_la-gw_io.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-gw_io.lo `test -f 'sci_gateway/c/gw_io.c' || echo '$(srcdir)/'`sci_gateway/c/gw_io.c + +sci_gateway/c/libsciio_la-sci_read.lo: sci_gateway/c/sci_read.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_read.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read.Tpo -c -o sci_gateway/c/libsciio_la-sci_read.lo `test -f 'sci_gateway/c/sci_read.c' || echo '$(srcdir)/'`sci_gateway/c/sci_read.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_read.c' object='sci_gateway/c/libsciio_la-sci_read.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_read.lo `test -f 'sci_gateway/c/sci_read.c' || echo '$(srcdir)/'`sci_gateway/c/sci_read.c + +sci_gateway/c/libsciio_la-sci_getpid.lo: sci_gateway/c/sci_getpid.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_getpid.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getpid.Tpo -c -o sci_gateway/c/libsciio_la-sci_getpid.lo `test -f 'sci_gateway/c/sci_getpid.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getpid.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getpid.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getpid.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_getpid.c' object='sci_gateway/c/libsciio_la-sci_getpid.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_getpid.lo `test -f 'sci_gateway/c/sci_getpid.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getpid.c + +sci_gateway/c/libsciio_la-sci_write4b.lo: sci_gateway/c/sci_write4b.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_write4b.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write4b.Tpo -c -o sci_gateway/c/libsciio_la-sci_write4b.lo `test -f 'sci_gateway/c/sci_write4b.c' || echo '$(srcdir)/'`sci_gateway/c/sci_write4b.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write4b.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write4b.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_write4b.c' object='sci_gateway/c/libsciio_la-sci_write4b.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_write4b.lo `test -f 'sci_gateway/c/sci_write4b.c' || echo '$(srcdir)/'`sci_gateway/c/sci_write4b.c + +sci_gateway/c/libsciio_la-sci_load.lo: sci_gateway/c/sci_load.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_load.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_load.Tpo -c -o sci_gateway/c/libsciio_la-sci_load.lo `test -f 'sci_gateway/c/sci_load.c' || echo '$(srcdir)/'`sci_gateway/c/sci_load.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_load.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_load.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_load.c' object='sci_gateway/c/libsciio_la-sci_load.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_load.lo `test -f 'sci_gateway/c/sci_load.c' || echo '$(srcdir)/'`sci_gateway/c/sci_load.c + +sci_gateway/c/libsciio_la-sci_unix.lo: sci_gateway/c/sci_unix.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_unix.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_unix.Tpo -c -o sci_gateway/c/libsciio_la-sci_unix.lo `test -f 'sci_gateway/c/sci_unix.c' || echo '$(srcdir)/'`sci_gateway/c/sci_unix.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_unix.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_unix.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_unix.c' object='sci_gateway/c/libsciio_la-sci_unix.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_unix.lo `test -f 'sci_gateway/c/sci_unix.c' || echo '$(srcdir)/'`sci_gateway/c/sci_unix.c + +sci_gateway/c/libsciio_la-sci_save.lo: sci_gateway/c/sci_save.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_save.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_save.Tpo -c -o sci_gateway/c/libsciio_la-sci_save.lo `test -f 'sci_gateway/c/sci_save.c' || echo '$(srcdir)/'`sci_gateway/c/sci_save.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_save.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_save.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_save.c' object='sci_gateway/c/libsciio_la-sci_save.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_save.lo `test -f 'sci_gateway/c/sci_save.c' || echo '$(srcdir)/'`sci_gateway/c/sci_save.c + +.f.o: + $(AM_V_F77)$(F77COMPILE) -c -o $@ $< + +.f.obj: + $(AM_V_F77)$(F77COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.f.lo: + $(AM_V_F77)$(LTF77COMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf sci_gateway/c/.libs sci_gateway/c/_libs + -rm -rf sci_gateway/fortran/.libs sci_gateway/fortran/_libs + -rm -rf src/c/.libs src/c/_libs + -rm -rf src/fortran/.libs src/fortran/_libs +install-libsciio_la_etcDATA: $(libsciio_la_etc_DATA) + @$(NORMAL_INSTALL) + @list='$(libsciio_la_etc_DATA)'; test -n "$(libsciio_la_etcdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libsciio_la_etcdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libsciio_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)$(libsciio_la_etcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libsciio_la_etcdir)" || exit $$?; \ + done + +uninstall-libsciio_la_etcDATA: + @$(NORMAL_UNINSTALL) + @list='$(libsciio_la_etc_DATA)'; test -n "$(libsciio_la_etcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libsciio_la_etcdir)'; $(am__uninstall_files_from_dir) +install-libsciio_la_rootDATA: $(libsciio_la_root_DATA) + @$(NORMAL_INSTALL) + @list='$(libsciio_la_root_DATA)'; test -n "$(libsciio_la_rootdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libsciio_la_rootdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libsciio_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)$(libsciio_la_rootdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libsciio_la_rootdir)" || exit $$?; \ + done + +uninstall-libsciio_la_rootDATA: + @$(NORMAL_UNINSTALL) + @list='$(libsciio_la_root_DATA)'; test -n "$(libsciio_la_rootdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libsciio_la_rootdir)'; $(am__uninstall_files_from_dir) +install-libsciio_la_sci_gatewayDATA: $(libsciio_la_sci_gateway_DATA) + @$(NORMAL_INSTALL) + @list='$(libsciio_la_sci_gateway_DATA)'; test -n "$(libsciio_la_sci_gatewaydir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libsciio_la_sci_gatewaydir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libsciio_la_sci_gatewaydir)" || 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)$(libsciio_la_sci_gatewaydir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libsciio_la_sci_gatewaydir)" || exit $$?; \ + done + +uninstall-libsciio_la_sci_gatewayDATA: + @$(NORMAL_UNINSTALL) + @list='$(libsciio_la_sci_gateway_DATA)'; test -n "$(libsciio_la_sci_gatewaydir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libsciio_la_sci_gatewaydir)'; $(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)$(libsciio_la_etcdir)" "$(DESTDIR)$(libsciio_la_rootdir)" "$(DESTDIR)$(libsciio_la_sci_gatewaydir)"; 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 sci_gateway/c/$(DEPDIR)/$(am__dirstamp) + -rm -f sci_gateway/c/$(am__dirstamp) + -rm -f sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) + -rm -f sci_gateway/fortran/$(am__dirstamp) + -rm -f src/c/$(DEPDIR)/$(am__dirstamp) + -rm -f src/c/$(am__dirstamp) + -rm -f src/fortran/$(DEPDIR)/$(am__dirstamp) + -rm -f src/fortran/$(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 sci_gateway/c/$(DEPDIR) 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-libsciio_la_etcDATA \ + install-libsciio_la_rootDATA \ + install-libsciio_la_sci_gatewayDATA + +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 sci_gateway/c/$(DEPDIR) 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-libsciio_la_etcDATA \ + uninstall-libsciio_la_rootDATA \ + uninstall-libsciio_la_sci_gatewayDATA \ + 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-libsciio_la_etcDATA \ + install-libsciio_la_rootDATA \ + install-libsciio_la_sci_gatewayDATA 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-libsciio_la_etcDATA \ + uninstall-libsciio_la_rootDATA \ + uninstall-libsciio_la_sci_gatewayDATA \ + 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/io/Makefile.am b/modules/io/Makefile.am new file mode 100755 index 000000000..64c12f053 --- /dev/null +++ b/modules/io/Makefile.am @@ -0,0 +1,88 @@ +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006 - INRIA - Sylvestre LEDRU +# +# This file is distributed under the same license as the Scilab package. + + +IO_C_SOURCES = src/c/getpidc.c \ +src/c/setenvc.c \ +src/c/systemc.c \ +src/c/getenvc.c \ +src/c/v2cuniterror.c + +IO_FORTRAN_SOURCES = src/fortran/v2unit.f \ +src/fortran/newsave.f \ +src/fortran/v2cunit.f + +GATEWAY_C_SOURCES = sci_gateway/c/sci_read4b.c \ +sci_gateway/c/sci_getio.c \ +sci_gateway/c/sci_readb.c \ +sci_gateway/c/sci_host.c \ +sci_gateway/c/sci_file.c \ +sci_gateway/c/sci_getenv.c \ +sci_gateway/c/sci_write.c \ +sci_gateway/c/sci_writeb.c \ +sci_gateway/c/sci_setenv.c \ +sci_gateway/c/gw_io.c \ +sci_gateway/c/sci_read.c \ +sci_gateway/c/sci_getpid.c \ +sci_gateway/c/sci_write4b.c \ +sci_gateway/c/sci_load.c \ +sci_gateway/c/sci_unix.c \ +sci_gateway/c/sci_save.c + +GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/intwrite4b.f \ +sci_gateway/fortran/intwritb.f \ +sci_gateway/fortran/intwrite.f \ +sci_gateway/fortran/intread4b.f \ +sci_gateway/fortran/intread.f \ +sci_gateway/fortran/intreadb.f \ +sci_gateway/fortran/intfile.f + +libsciio_la_CPPFLAGS = -I$(srcdir)/includes/ \ + -I$(srcdir)/src/c/ \ + -I$(top_srcdir)/modules/core/includes/ \ + -I$(top_srcdir)/modules/fileio/includes/ \ + -I$(top_srcdir)/modules/api_scilab/includes/ \ + -I$(top_srcdir)/modules/output_stream/includes/ \ + -I$(top_srcdir)/modules/localization/includes/ \ + $(AM_CPPFLAGS) + +if MAINTAINER_MODE +pkglib_LTLIBRARIES = libsciio.la +noinst_LTLIBRARIES = libsciio-algo.la +else +noinst_LTLIBRARIES = libsciio-algo.la libsciio.la +endif + + + +libsciio_algo_la_SOURCES = $(IO_C_SOURCES) $(IO_FORTRAN_SOURCES) +libsciio_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) +libsciio_algo_la_CPPFLAGS = $(libsciio_la_CPPFLAGS) + +# For the code check (splint) +CHECK_SRC= $(IO_C_SOURCES) $(GATEWAY_C_SOURCES) +INCLUDE_FLAGS = $(libsciio_la_CPPFLAGS) + +libsciio_la_LIBADD = libsciio-algo.la + + +#### Target ###### +modulename=io + +#### io : Conf files #### +libsciio_la_rootdir = $(mydatadir) +libsciio_la_root_DATA = license.txt + + +####io : init scripts #### +libsciio_la_etcdir = $(mydatadir)/etc +libsciio_la_etc_DATA = etc/io.quit etc/io.start + +####io : gateway declaration #### +libsciio_la_sci_gatewaydir = $(mydatadir)/sci_gateway +libsciio_la_sci_gateway_DATA = sci_gateway/io_gateway.xml + +include $(top_srcdir)/Makefile.incl.am + diff --git a/modules/io/Makefile.in b/modules/io/Makefile.in new file mode 100755 index 000000000..1b6d6d8d4 --- /dev/null +++ b/modules/io/Makefile.in @@ -0,0 +1,1626 @@ +# 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) 2006 - INRIA - Sylvestre LEDRU +# +# This file is distributed under the same license as the Scilab package. + +# 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/io +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)$(libsciio_la_etcdir)" \ + "$(DESTDIR)$(libsciio_la_rootdir)" \ + "$(DESTDIR)$(libsciio_la_sci_gatewaydir)" +LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES) +libsciio_algo_la_LIBADD = +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = src/c/libsciio_algo_la-getpidc.lo \ + src/c/libsciio_algo_la-setenvc.lo \ + src/c/libsciio_algo_la-systemc.lo \ + src/c/libsciio_algo_la-getenvc.lo \ + src/c/libsciio_algo_la-v2cuniterror.lo +am__objects_2 = src/fortran/v2unit.lo src/fortran/newsave.lo \ + src/fortran/v2cunit.lo +am_libsciio_algo_la_OBJECTS = $(am__objects_1) $(am__objects_2) +libsciio_algo_la_OBJECTS = $(am_libsciio_algo_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_libsciio_algo_la_rpath = +@MAINTAINER_MODE_TRUE@am_libsciio_algo_la_rpath = +libsciio_la_DEPENDENCIES = libsciio-algo.la +am__objects_3 = sci_gateway/c/libsciio_la-sci_read4b.lo \ + sci_gateway/c/libsciio_la-sci_getio.lo \ + sci_gateway/c/libsciio_la-sci_readb.lo \ + sci_gateway/c/libsciio_la-sci_host.lo \ + sci_gateway/c/libsciio_la-sci_file.lo \ + sci_gateway/c/libsciio_la-sci_getenv.lo \ + sci_gateway/c/libsciio_la-sci_write.lo \ + sci_gateway/c/libsciio_la-sci_writeb.lo \ + sci_gateway/c/libsciio_la-sci_setenv.lo \ + sci_gateway/c/libsciio_la-gw_io.lo \ + sci_gateway/c/libsciio_la-sci_read.lo \ + sci_gateway/c/libsciio_la-sci_getpid.lo \ + sci_gateway/c/libsciio_la-sci_write4b.lo \ + sci_gateway/c/libsciio_la-sci_load.lo \ + sci_gateway/c/libsciio_la-sci_unix.lo \ + sci_gateway/c/libsciio_la-sci_save.lo +am__objects_4 = sci_gateway/fortran/intwrite4b.lo \ + sci_gateway/fortran/intwritb.lo \ + sci_gateway/fortran/intwrite.lo \ + sci_gateway/fortran/intread4b.lo \ + sci_gateway/fortran/intread.lo sci_gateway/fortran/intreadb.lo \ + sci_gateway/fortran/intfile.lo +am_libsciio_la_OBJECTS = $(am__objects_3) $(am__objects_4) +libsciio_la_OBJECTS = $(am_libsciio_la_OBJECTS) +@MAINTAINER_MODE_FALSE@am_libsciio_la_rpath = +@MAINTAINER_MODE_TRUE@am_libsciio_la_rpath = -rpath $(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 = +F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS) +LTF77COMPILE = $(LIBTOOL) $(AM_V_lt) --tag=F77 $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(F77) $(AM_FFLAGS) $(FFLAGS) +AM_V_F77 = $(am__v_F77_@AM_V@) +am__v_F77_ = $(am__v_F77_@AM_DEFAULT_V@) +am__v_F77_0 = @echo " F77 " $@; +am__v_F77_1 = +F77LD = $(F77) +F77LINK = $(LIBTOOL) $(AM_V_lt) --tag=F77 $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(F77LD) $(AM_FFLAGS) $(FFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_F77LD = $(am__v_F77LD_@AM_V@) +am__v_F77LD_ = $(am__v_F77LD_@AM_DEFAULT_V@) +am__v_F77LD_0 = @echo " F77LD " $@; +am__v_F77LD_1 = +SOURCES = $(libsciio_algo_la_SOURCES) $(libsciio_la_SOURCES) +DIST_SOURCES = $(libsciio_algo_la_SOURCES) $(libsciio_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 = $(libsciio_la_etc_DATA) $(libsciio_la_root_DATA) \ + $(libsciio_la_sci_gateway_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@ +IO_C_SOURCES = src/c/getpidc.c \ +src/c/setenvc.c \ +src/c/systemc.c \ +src/c/getenvc.c \ +src/c/v2cuniterror.c + +IO_FORTRAN_SOURCES = src/fortran/v2unit.f \ +src/fortran/newsave.f \ +src/fortran/v2cunit.f + +GATEWAY_C_SOURCES = sci_gateway/c/sci_read4b.c \ +sci_gateway/c/sci_getio.c \ +sci_gateway/c/sci_readb.c \ +sci_gateway/c/sci_host.c \ +sci_gateway/c/sci_file.c \ +sci_gateway/c/sci_getenv.c \ +sci_gateway/c/sci_write.c \ +sci_gateway/c/sci_writeb.c \ +sci_gateway/c/sci_setenv.c \ +sci_gateway/c/gw_io.c \ +sci_gateway/c/sci_read.c \ +sci_gateway/c/sci_getpid.c \ +sci_gateway/c/sci_write4b.c \ +sci_gateway/c/sci_load.c \ +sci_gateway/c/sci_unix.c \ +sci_gateway/c/sci_save.c + +GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/intwrite4b.f \ +sci_gateway/fortran/intwritb.f \ +sci_gateway/fortran/intwrite.f \ +sci_gateway/fortran/intread4b.f \ +sci_gateway/fortran/intread.f \ +sci_gateway/fortran/intreadb.f \ +sci_gateway/fortran/intfile.f + +libsciio_la_CPPFLAGS = -I$(srcdir)/includes/ \ + -I$(srcdir)/src/c/ \ + -I$(top_srcdir)/modules/core/includes/ \ + -I$(top_srcdir)/modules/fileio/includes/ \ + -I$(top_srcdir)/modules/api_scilab/includes/ \ + -I$(top_srcdir)/modules/output_stream/includes/ \ + -I$(top_srcdir)/modules/localization/includes/ \ + $(AM_CPPFLAGS) + +@MAINTAINER_MODE_TRUE@pkglib_LTLIBRARIES = libsciio.la +@MAINTAINER_MODE_FALSE@noinst_LTLIBRARIES = libsciio-algo.la libsciio.la +@MAINTAINER_MODE_TRUE@noinst_LTLIBRARIES = libsciio-algo.la +libsciio_algo_la_SOURCES = $(IO_C_SOURCES) $(IO_FORTRAN_SOURCES) +libsciio_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) +libsciio_algo_la_CPPFLAGS = $(libsciio_la_CPPFLAGS) + +# For the code check (splint) +CHECK_SRC = $(IO_C_SOURCES) $(GATEWAY_C_SOURCES) +INCLUDE_FLAGS = $(libsciio_la_CPPFLAGS) +libsciio_la_LIBADD = libsciio-algo.la + +#### Target ###### +modulename = io + +#### io : Conf files #### +libsciio_la_rootdir = $(mydatadir) +libsciio_la_root_DATA = license.txt + +####io : init scripts #### +libsciio_la_etcdir = $(mydatadir)/etc +libsciio_la_etc_DATA = etc/io.quit etc/io.start + +####io : gateway declaration #### +libsciio_la_sci_gatewaydir = $(mydatadir)/sci_gateway +libsciio_la_sci_gateway_DATA = sci_gateway/io_gateway.xml + +# 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 .f .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/io/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign modules/io/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/libsciio_algo_la-getpidc.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libsciio_algo_la-setenvc.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libsciio_algo_la-systemc.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libsciio_algo_la-getenvc.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libsciio_algo_la-v2cuniterror.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/fortran/$(am__dirstamp): + @$(MKDIR_P) src/fortran + @: > src/fortran/$(am__dirstamp) +src/fortran/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) src/fortran/$(DEPDIR) + @: > src/fortran/$(DEPDIR)/$(am__dirstamp) +src/fortran/v2unit.lo: src/fortran/$(am__dirstamp) \ + src/fortran/$(DEPDIR)/$(am__dirstamp) +src/fortran/newsave.lo: src/fortran/$(am__dirstamp) \ + src/fortran/$(DEPDIR)/$(am__dirstamp) +src/fortran/v2cunit.lo: src/fortran/$(am__dirstamp) \ + src/fortran/$(DEPDIR)/$(am__dirstamp) + +libsciio-algo.la: $(libsciio_algo_la_OBJECTS) $(libsciio_algo_la_DEPENDENCIES) $(EXTRA_libsciio_algo_la_DEPENDENCIES) + $(AM_V_F77LD)$(F77LINK) $(am_libsciio_algo_la_rpath) $(libsciio_algo_la_OBJECTS) $(libsciio_algo_la_LIBADD) $(LIBS) +sci_gateway/c/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c + @: > sci_gateway/c/$(am__dirstamp) +sci_gateway/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c/$(DEPDIR) + @: > sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_read4b.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_getio.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_readb.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_host.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_file.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_getenv.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_write.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_writeb.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_setenv.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-gw_io.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_read.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_getpid.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_write4b.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_load.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_unix.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libsciio_la-sci_save.lo: sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/fortran + @: > sci_gateway/fortran/$(am__dirstamp) +sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/fortran/$(DEPDIR) + @: > sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intwrite4b.lo: \ + sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intwritb.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intwrite.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intread4b.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intread.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intreadb.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/intfile.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) + +libsciio.la: $(libsciio_la_OBJECTS) $(libsciio_la_DEPENDENCIES) $(EXTRA_libsciio_la_DEPENDENCIES) + $(AM_V_F77LD)$(F77LINK) $(am_libsciio_la_rpath) $(libsciio_la_OBJECTS) $(libsciio_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f sci_gateway/c/*.$(OBJEXT) + -rm -f sci_gateway/c/*.lo + -rm -f sci_gateway/fortran/*.$(OBJEXT) + -rm -f sci_gateway/fortran/*.lo + -rm -f src/c/*.$(OBJEXT) + -rm -f src/c/*.lo + -rm -f src/fortran/*.$(OBJEXT) + -rm -f src/fortran/*.lo + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-gw_io.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_file.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getenv.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getio.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getpid.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_host.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_load.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read4b.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_readb.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_save.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_setenv.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_unix.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write4b.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libsciio_la-sci_writeb.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libsciio_algo_la-getenvc.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libsciio_algo_la-getpidc.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libsciio_algo_la-setenvc.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libsciio_algo_la-systemc.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libsciio_algo_la-v2cuniterror.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/libsciio_algo_la-getpidc.lo: src/c/getpidc.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libsciio_algo_la-getpidc.lo -MD -MP -MF src/c/$(DEPDIR)/libsciio_algo_la-getpidc.Tpo -c -o src/c/libsciio_algo_la-getpidc.lo `test -f 'src/c/getpidc.c' || echo '$(srcdir)/'`src/c/getpidc.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libsciio_algo_la-getpidc.Tpo src/c/$(DEPDIR)/libsciio_algo_la-getpidc.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/getpidc.c' object='src/c/libsciio_algo_la-getpidc.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) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libsciio_algo_la-getpidc.lo `test -f 'src/c/getpidc.c' || echo '$(srcdir)/'`src/c/getpidc.c + +src/c/libsciio_algo_la-setenvc.lo: src/c/setenvc.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libsciio_algo_la-setenvc.lo -MD -MP -MF src/c/$(DEPDIR)/libsciio_algo_la-setenvc.Tpo -c -o src/c/libsciio_algo_la-setenvc.lo `test -f 'src/c/setenvc.c' || echo '$(srcdir)/'`src/c/setenvc.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libsciio_algo_la-setenvc.Tpo src/c/$(DEPDIR)/libsciio_algo_la-setenvc.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/setenvc.c' object='src/c/libsciio_algo_la-setenvc.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) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libsciio_algo_la-setenvc.lo `test -f 'src/c/setenvc.c' || echo '$(srcdir)/'`src/c/setenvc.c + +src/c/libsciio_algo_la-systemc.lo: src/c/systemc.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libsciio_algo_la-systemc.lo -MD -MP -MF src/c/$(DEPDIR)/libsciio_algo_la-systemc.Tpo -c -o src/c/libsciio_algo_la-systemc.lo `test -f 'src/c/systemc.c' || echo '$(srcdir)/'`src/c/systemc.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libsciio_algo_la-systemc.Tpo src/c/$(DEPDIR)/libsciio_algo_la-systemc.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/systemc.c' object='src/c/libsciio_algo_la-systemc.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) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libsciio_algo_la-systemc.lo `test -f 'src/c/systemc.c' || echo '$(srcdir)/'`src/c/systemc.c + +src/c/libsciio_algo_la-getenvc.lo: src/c/getenvc.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libsciio_algo_la-getenvc.lo -MD -MP -MF src/c/$(DEPDIR)/libsciio_algo_la-getenvc.Tpo -c -o src/c/libsciio_algo_la-getenvc.lo `test -f 'src/c/getenvc.c' || echo '$(srcdir)/'`src/c/getenvc.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libsciio_algo_la-getenvc.Tpo src/c/$(DEPDIR)/libsciio_algo_la-getenvc.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/getenvc.c' object='src/c/libsciio_algo_la-getenvc.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) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libsciio_algo_la-getenvc.lo `test -f 'src/c/getenvc.c' || echo '$(srcdir)/'`src/c/getenvc.c + +src/c/libsciio_algo_la-v2cuniterror.lo: src/c/v2cuniterror.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libsciio_algo_la-v2cuniterror.lo -MD -MP -MF src/c/$(DEPDIR)/libsciio_algo_la-v2cuniterror.Tpo -c -o src/c/libsciio_algo_la-v2cuniterror.lo `test -f 'src/c/v2cuniterror.c' || echo '$(srcdir)/'`src/c/v2cuniterror.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libsciio_algo_la-v2cuniterror.Tpo src/c/$(DEPDIR)/libsciio_algo_la-v2cuniterror.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/v2cuniterror.c' object='src/c/libsciio_algo_la-v2cuniterror.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) $(libsciio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libsciio_algo_la-v2cuniterror.lo `test -f 'src/c/v2cuniterror.c' || echo '$(srcdir)/'`src/c/v2cuniterror.c + +sci_gateway/c/libsciio_la-sci_read4b.lo: sci_gateway/c/sci_read4b.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_read4b.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read4b.Tpo -c -o sci_gateway/c/libsciio_la-sci_read4b.lo `test -f 'sci_gateway/c/sci_read4b.c' || echo '$(srcdir)/'`sci_gateway/c/sci_read4b.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read4b.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read4b.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_read4b.c' object='sci_gateway/c/libsciio_la-sci_read4b.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_read4b.lo `test -f 'sci_gateway/c/sci_read4b.c' || echo '$(srcdir)/'`sci_gateway/c/sci_read4b.c + +sci_gateway/c/libsciio_la-sci_getio.lo: sci_gateway/c/sci_getio.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_getio.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getio.Tpo -c -o sci_gateway/c/libsciio_la-sci_getio.lo `test -f 'sci_gateway/c/sci_getio.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getio.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getio.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getio.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_getio.c' object='sci_gateway/c/libsciio_la-sci_getio.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_getio.lo `test -f 'sci_gateway/c/sci_getio.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getio.c + +sci_gateway/c/libsciio_la-sci_readb.lo: sci_gateway/c/sci_readb.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_readb.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_readb.Tpo -c -o sci_gateway/c/libsciio_la-sci_readb.lo `test -f 'sci_gateway/c/sci_readb.c' || echo '$(srcdir)/'`sci_gateway/c/sci_readb.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_readb.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_readb.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_readb.c' object='sci_gateway/c/libsciio_la-sci_readb.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_readb.lo `test -f 'sci_gateway/c/sci_readb.c' || echo '$(srcdir)/'`sci_gateway/c/sci_readb.c + +sci_gateway/c/libsciio_la-sci_host.lo: sci_gateway/c/sci_host.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_host.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_host.Tpo -c -o sci_gateway/c/libsciio_la-sci_host.lo `test -f 'sci_gateway/c/sci_host.c' || echo '$(srcdir)/'`sci_gateway/c/sci_host.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_host.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_host.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_host.c' object='sci_gateway/c/libsciio_la-sci_host.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_host.lo `test -f 'sci_gateway/c/sci_host.c' || echo '$(srcdir)/'`sci_gateway/c/sci_host.c + +sci_gateway/c/libsciio_la-sci_file.lo: sci_gateway/c/sci_file.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_file.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_file.Tpo -c -o sci_gateway/c/libsciio_la-sci_file.lo `test -f 'sci_gateway/c/sci_file.c' || echo '$(srcdir)/'`sci_gateway/c/sci_file.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_file.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_file.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_file.c' object='sci_gateway/c/libsciio_la-sci_file.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_file.lo `test -f 'sci_gateway/c/sci_file.c' || echo '$(srcdir)/'`sci_gateway/c/sci_file.c + +sci_gateway/c/libsciio_la-sci_getenv.lo: sci_gateway/c/sci_getenv.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_getenv.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getenv.Tpo -c -o sci_gateway/c/libsciio_la-sci_getenv.lo `test -f 'sci_gateway/c/sci_getenv.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getenv.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getenv.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getenv.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_getenv.c' object='sci_gateway/c/libsciio_la-sci_getenv.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_getenv.lo `test -f 'sci_gateway/c/sci_getenv.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getenv.c + +sci_gateway/c/libsciio_la-sci_write.lo: sci_gateway/c/sci_write.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_write.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write.Tpo -c -o sci_gateway/c/libsciio_la-sci_write.lo `test -f 'sci_gateway/c/sci_write.c' || echo '$(srcdir)/'`sci_gateway/c/sci_write.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_write.c' object='sci_gateway/c/libsciio_la-sci_write.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_write.lo `test -f 'sci_gateway/c/sci_write.c' || echo '$(srcdir)/'`sci_gateway/c/sci_write.c + +sci_gateway/c/libsciio_la-sci_writeb.lo: sci_gateway/c/sci_writeb.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_writeb.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_writeb.Tpo -c -o sci_gateway/c/libsciio_la-sci_writeb.lo `test -f 'sci_gateway/c/sci_writeb.c' || echo '$(srcdir)/'`sci_gateway/c/sci_writeb.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_writeb.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_writeb.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_writeb.c' object='sci_gateway/c/libsciio_la-sci_writeb.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_writeb.lo `test -f 'sci_gateway/c/sci_writeb.c' || echo '$(srcdir)/'`sci_gateway/c/sci_writeb.c + +sci_gateway/c/libsciio_la-sci_setenv.lo: sci_gateway/c/sci_setenv.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_setenv.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_setenv.Tpo -c -o sci_gateway/c/libsciio_la-sci_setenv.lo `test -f 'sci_gateway/c/sci_setenv.c' || echo '$(srcdir)/'`sci_gateway/c/sci_setenv.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_setenv.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_setenv.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_setenv.c' object='sci_gateway/c/libsciio_la-sci_setenv.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_setenv.lo `test -f 'sci_gateway/c/sci_setenv.c' || echo '$(srcdir)/'`sci_gateway/c/sci_setenv.c + +sci_gateway/c/libsciio_la-gw_io.lo: sci_gateway/c/gw_io.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-gw_io.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-gw_io.Tpo -c -o sci_gateway/c/libsciio_la-gw_io.lo `test -f 'sci_gateway/c/gw_io.c' || echo '$(srcdir)/'`sci_gateway/c/gw_io.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-gw_io.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-gw_io.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/gw_io.c' object='sci_gateway/c/libsciio_la-gw_io.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-gw_io.lo `test -f 'sci_gateway/c/gw_io.c' || echo '$(srcdir)/'`sci_gateway/c/gw_io.c + +sci_gateway/c/libsciio_la-sci_read.lo: sci_gateway/c/sci_read.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_read.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read.Tpo -c -o sci_gateway/c/libsciio_la-sci_read.lo `test -f 'sci_gateway/c/sci_read.c' || echo '$(srcdir)/'`sci_gateway/c/sci_read.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_read.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_read.c' object='sci_gateway/c/libsciio_la-sci_read.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_read.lo `test -f 'sci_gateway/c/sci_read.c' || echo '$(srcdir)/'`sci_gateway/c/sci_read.c + +sci_gateway/c/libsciio_la-sci_getpid.lo: sci_gateway/c/sci_getpid.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_getpid.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getpid.Tpo -c -o sci_gateway/c/libsciio_la-sci_getpid.lo `test -f 'sci_gateway/c/sci_getpid.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getpid.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getpid.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_getpid.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_getpid.c' object='sci_gateway/c/libsciio_la-sci_getpid.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_getpid.lo `test -f 'sci_gateway/c/sci_getpid.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getpid.c + +sci_gateway/c/libsciio_la-sci_write4b.lo: sci_gateway/c/sci_write4b.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_write4b.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write4b.Tpo -c -o sci_gateway/c/libsciio_la-sci_write4b.lo `test -f 'sci_gateway/c/sci_write4b.c' || echo '$(srcdir)/'`sci_gateway/c/sci_write4b.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write4b.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_write4b.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_write4b.c' object='sci_gateway/c/libsciio_la-sci_write4b.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_write4b.lo `test -f 'sci_gateway/c/sci_write4b.c' || echo '$(srcdir)/'`sci_gateway/c/sci_write4b.c + +sci_gateway/c/libsciio_la-sci_load.lo: sci_gateway/c/sci_load.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_load.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_load.Tpo -c -o sci_gateway/c/libsciio_la-sci_load.lo `test -f 'sci_gateway/c/sci_load.c' || echo '$(srcdir)/'`sci_gateway/c/sci_load.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_load.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_load.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_load.c' object='sci_gateway/c/libsciio_la-sci_load.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_load.lo `test -f 'sci_gateway/c/sci_load.c' || echo '$(srcdir)/'`sci_gateway/c/sci_load.c + +sci_gateway/c/libsciio_la-sci_unix.lo: sci_gateway/c/sci_unix.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_unix.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_unix.Tpo -c -o sci_gateway/c/libsciio_la-sci_unix.lo `test -f 'sci_gateway/c/sci_unix.c' || echo '$(srcdir)/'`sci_gateway/c/sci_unix.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_unix.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_unix.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_unix.c' object='sci_gateway/c/libsciio_la-sci_unix.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_unix.lo `test -f 'sci_gateway/c/sci_unix.c' || echo '$(srcdir)/'`sci_gateway/c/sci_unix.c + +sci_gateway/c/libsciio_la-sci_save.lo: sci_gateway/c/sci_save.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libsciio_la-sci_save.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libsciio_la-sci_save.Tpo -c -o sci_gateway/c/libsciio_la-sci_save.lo `test -f 'sci_gateway/c/sci_save.c' || echo '$(srcdir)/'`sci_gateway/c/sci_save.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libsciio_la-sci_save.Tpo sci_gateway/c/$(DEPDIR)/libsciio_la-sci_save.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_save.c' object='sci_gateway/c/libsciio_la-sci_save.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) $(libsciio_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libsciio_la-sci_save.lo `test -f 'sci_gateway/c/sci_save.c' || echo '$(srcdir)/'`sci_gateway/c/sci_save.c + +.f.o: + $(AM_V_F77)$(F77COMPILE) -c -o $@ $< + +.f.obj: + $(AM_V_F77)$(F77COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.f.lo: + $(AM_V_F77)$(LTF77COMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf sci_gateway/c/.libs sci_gateway/c/_libs + -rm -rf sci_gateway/fortran/.libs sci_gateway/fortran/_libs + -rm -rf src/c/.libs src/c/_libs + -rm -rf src/fortran/.libs src/fortran/_libs +install-libsciio_la_etcDATA: $(libsciio_la_etc_DATA) + @$(NORMAL_INSTALL) + @list='$(libsciio_la_etc_DATA)'; test -n "$(libsciio_la_etcdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libsciio_la_etcdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libsciio_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)$(libsciio_la_etcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libsciio_la_etcdir)" || exit $$?; \ + done + +uninstall-libsciio_la_etcDATA: + @$(NORMAL_UNINSTALL) + @list='$(libsciio_la_etc_DATA)'; test -n "$(libsciio_la_etcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libsciio_la_etcdir)'; $(am__uninstall_files_from_dir) +install-libsciio_la_rootDATA: $(libsciio_la_root_DATA) + @$(NORMAL_INSTALL) + @list='$(libsciio_la_root_DATA)'; test -n "$(libsciio_la_rootdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libsciio_la_rootdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libsciio_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)$(libsciio_la_rootdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libsciio_la_rootdir)" || exit $$?; \ + done + +uninstall-libsciio_la_rootDATA: + @$(NORMAL_UNINSTALL) + @list='$(libsciio_la_root_DATA)'; test -n "$(libsciio_la_rootdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libsciio_la_rootdir)'; $(am__uninstall_files_from_dir) +install-libsciio_la_sci_gatewayDATA: $(libsciio_la_sci_gateway_DATA) + @$(NORMAL_INSTALL) + @list='$(libsciio_la_sci_gateway_DATA)'; test -n "$(libsciio_la_sci_gatewaydir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libsciio_la_sci_gatewaydir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libsciio_la_sci_gatewaydir)" || 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)$(libsciio_la_sci_gatewaydir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libsciio_la_sci_gatewaydir)" || exit $$?; \ + done + +uninstall-libsciio_la_sci_gatewayDATA: + @$(NORMAL_UNINSTALL) + @list='$(libsciio_la_sci_gateway_DATA)'; test -n "$(libsciio_la_sci_gatewaydir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libsciio_la_sci_gatewaydir)'; $(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)$(libsciio_la_etcdir)" "$(DESTDIR)$(libsciio_la_rootdir)" "$(DESTDIR)$(libsciio_la_sci_gatewaydir)"; 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 sci_gateway/c/$(DEPDIR)/$(am__dirstamp) + -rm -f sci_gateway/c/$(am__dirstamp) + -rm -f sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) + -rm -f sci_gateway/fortran/$(am__dirstamp) + -rm -f src/c/$(DEPDIR)/$(am__dirstamp) + -rm -f src/c/$(am__dirstamp) + -rm -f src/fortran/$(DEPDIR)/$(am__dirstamp) + -rm -f src/fortran/$(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 sci_gateway/c/$(DEPDIR) 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-libsciio_la_etcDATA \ + install-libsciio_la_rootDATA \ + install-libsciio_la_sci_gatewayDATA + +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 sci_gateway/c/$(DEPDIR) 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-libsciio_la_etcDATA \ + uninstall-libsciio_la_rootDATA \ + uninstall-libsciio_la_sci_gatewayDATA \ + 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-libsciio_la_etcDATA \ + install-libsciio_la_rootDATA \ + install-libsciio_la_sci_gatewayDATA 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-libsciio_la_etcDATA \ + uninstall-libsciio_la_rootDATA \ + uninstall-libsciio_la_sci_gatewayDATA \ + 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/io/etc/io.quit b/modules/io/etc/io.quit new file mode 100755 index 000000000..ab83f0c89 --- /dev/null +++ b/modules/io/etc/io.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/io/etc/io.start b/modules/io/etc/io.start new file mode 100755 index 000000000..d858b1851 --- /dev/null +++ b/modules/io/etc/io.start @@ -0,0 +1,13 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2006 - 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/io/macros/lib'); + diff --git a/modules/io/help/en_US/addchapter.sce b/modules/io/help/en_US/addchapter.sce new file mode 100755 index 000000000..97671116b --- /dev/null +++ b/modules/io/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("Input/Output functions",SCI+"/modules/io/help/en_US",%T); + diff --git a/modules/io/help/en_US/file.xml b/modules/io/help/en_US/file.xml new file mode 100755 index 000000000..8fa1b17da --- /dev/null +++ b/modules/io/help/en_US/file.xml @@ -0,0 +1,366 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="file" xml:lang="en"> + <refnamediv> + <refname>file</refname> + <refpurpose>file management</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>[unit [,err]]=file("open", file-name [,status] [,access [,recl]] [,format]) + file("close", unit) + file("rewind", unit) + file("backspace", unit) + file("last", unit) + [units [,typ [,nams [,mod [,swap]]]]] = file([unit]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>string, file name of the file to be opened</para> + </listitem> + </varlistentry> + <varlistentry> + <term>status</term> + <listitem> + <para>string, The status of the file to be opened</para> + <variablelist> + <varlistentry> + <term>"new"</term> + <listitem> + <para>file must not exist new file (default)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"old"</term> + <listitem> + <para>file must already exists.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"unknown"</term> + <listitem> + <para>unknown status</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"scratch"</term> + <listitem> + <para>file is to be deleted at end of session</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>access</term> + <listitem> + <para>string, The type of access to the file</para> + <variablelist> + <varlistentry> + <term>"sequential"</term> + <listitem> + <para>sequential access (default)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"direct"</term> + <listitem> + <para>direct access.</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>format</term> + <listitem> + <para>string,</para> + <variablelist> + <varlistentry> + <term>"formatted"</term> + <listitem> + <para>for a formatted file (default)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"unformatted"</term> + <listitem> + <para>binary record.</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>recl</term> + <listitem> + <para>integer,is the size of records in bytes when + <literal>access="direct"</literal> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>unit</term> + <listitem> + <para>integer, logical unit descriptor of the opened file</para> + </listitem> + </varlistentry> + <varlistentry> + <term>units</term> + <listitem> + <para>integer vector, logical unit descriptor of the opened files. + Units 5 and 6 (%io) are reserved by the system for input and output + devices. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>typs</term> + <listitem> + <para>Character string vector, type (C or Fortran) of opened + files. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>nams</term> + <listitem> + <para>Character string vector, pathnames of opened files.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>mod</term> + <listitem> + <para>file opening mode. Formed by three digits abc</para> + <variablelist> + <varlistentry> + <term>Fortran files</term> + <listitem> + <variablelist> + <varlistentry> + <term>a</term> + <listitem> + <para>0 stands for formatted and 1 for unformatted + (binary) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>b</term> + <listitem> + <para>0 stands for sequential access and 1 for direct + access + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>c</term> + <listitem> + <para>0 stands for "new", 1 for "old", 2 for "scratch" + and 3 for "unknown" + </para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>C files</term> + <listitem> + <variablelist> + <varlistentry> + <varlistentry> + <term>a</term> + <listitem> + <para>1 stands for "r" (read), 2 stands for "w" (write) + and 3 for "a" (append) + </para> + </listitem> + <varlistentry> + <term>b</term> + <listitem> + <para>is 1 if file has been opened with a "+" (updating) + mode + </para> + </listitem> + </varlistentry> + </varlistentry> + <term>b</term> + <listitem> + <para>is 1 if file has been opened with a "b" (binary) + mode + </para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>swap</term> + <listitem> + <para>automatic swap switch. swap=1 if automatic swap is on. swap is + always 0 for Fortran files. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>integer, error message number (see error), if open fails. If + err is omitted an error message is issued. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + selects a logical unit <varname>unit</varname> and manages the file + <varname>file-name</varname>. + </para> + <variablelist> + <varlistentry> + <term>[unit [,err]]=file("open", file-name [,status] [,access + [,recl]][,format]) + </term> + <listitem> + <para> + allows to open a file with specified + properties and to get the associated unit number <varname>unit</varname>. + This unit number may be used for further actions on this file or as file + descriptor in <function>read</function>, <function>write</function>, + <function>readb</function>, + <function>writb</function>,<function>save</function>, <function>load</function> + function calls. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + file("close", unit) + </term> + <listitem> + <para> + allows to close the file, or move the current file pointer. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + file("rewind", unit) + </term> + <listitem> + <para> + puts the pointer at the beginning of file. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + file("backspace", unit) + </term> + <listitem> + <para> + puts the pointer at the beginning of last record. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + file("last", unit) + </term> + <listitem> + <para> + puts the pointer after last record. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + file() + </term> + <listitem> + <para> + returns the logical unit descriptors of + the opened files. So <literal>file("close",file())</literal> closes all + user opened files (C or Fortran type). + </para> + </listitem> + </varlistentry> + </variablelist> + <para> + This function can not open a UTF filename. In this case, please uses + mopen. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +u=file("open",TMPDIR+"/foo","unknown") +for k=1:4 + a=rand(1,4) + write(u,a) +end +file("rewind",u) +x=read(u,2,4) +file("close",u) +// +u1=file("open",TMPDIR+"/foo","unknown") +u2=mopen(TMPDIR+"/foo1","wb") +[units,typs,nams]=file() +file("close",u1); +mclose(u2); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="save">save</link> + </member> + <member> + <link linkend="load">load</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="read">read</link> + </member> + <member> + <link linkend="writb">writb</link> + </member> + <member> + <link linkend="readb">readb</link> + </member> + <member> + <link linkend="uigetfile">uigetfile</link> + </member> + <member> + <link linkend="mopen">mopen</link> + </member> + <member> + <link linkend="mclose">mclose</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/getenv.xml b/modules/io/help/en_US/getenv.xml new file mode 100755 index 000000000..a49d2b53a --- /dev/null +++ b/modules/io/help/en_US/getenv.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="getenv"> + <refnamediv> + <refname>getenv</refname> + <refpurpose>get the value of an environment variable</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>env=getenv(str [, defaultReturn] )</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>character string specifying environment variable name </para> + </listitem> + </varlistentry> + <varlistentry> + <term>defaultReturn</term> + <listitem> + <para> + an optional character string. When this optional value is used, the function <literal>getenv</literal> returns the value <literal>defaultReturn</literal> when the environment variable <literal>str</literal> is not found. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>env</term> + <listitem> + <para>character string which contain the environment variable value</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Return the value of an environment variable if it exists. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +getenv('SCI') +getenv('FOO','foo') + ]]></programlisting> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/getio.xml b/modules/io/help/en_US/getio.xml new file mode 100755 index 000000000..2d270fbf4 --- /dev/null +++ b/modules/io/help/en_US/getio.xml @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="getio"> + <refnamediv> + <refname>getio</refname> + <refpurpose>get Scilab input/output logical units</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>ios=getio()</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>ios</term> + <listitem> + <para>a vector [rio rte wio wte]</para> + <variablelist> + <varlistentry> + <term>rio</term> + <listitem> + <para>current logical unit for reading instructions</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rte</term> + <listitem> + <para>logical unit assigned for input in main scilab window</para> + </listitem> + </varlistentry> + <varlistentry> + <term>wio</term> + <listitem> + <para>logical unit relative to the diary file if any. wio=0 stands for no diary file opened</para> + </listitem> + </varlistentry> + <varlistentry> + <term>wte</term> + <listitem> + <para>logical unit assigned for output in main scilab window</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <literal>getio</literal> returns logical units assigned for main scilab input and output + </para> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="exec">exec</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/getpid.xml b/modules/io/help/en_US/getpid.xml new file mode 100755 index 000000000..7639eb0e3 --- /dev/null +++ b/modules/io/help/en_US/getpid.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="getpid"> + <refnamediv> + <refname>getpid</refname> + <refpurpose>get Scilab process identificator</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>id=getpid()</synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para> + Return an the scilab process identificator integer + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +d='SD_'+string(getpid())+'_' + ]]></programlisting> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/getscilabkeywords.xml b/modules/io/help/en_US/getscilabkeywords.xml new file mode 100755 index 000000000..acbe2bf5c --- /dev/null +++ b/modules/io/help/en_US/getscilabkeywords.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="getscilabkeywords"> + <refnamediv> + <refname>getscilabkeywords</refname> + <refpurpose>returns a list with all scilab + keywords. + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>list_keywords=getscilabkeywords()</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>list_keywords</term> + <listitem> + <para>a list</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>list_keywords(1) : primitives</para> + <para>list_keywords(2) : commands</para> + <para>list_keywords(3) : predef variables</para> + <para>list_keywords(4) :scilab functions</para> + <para>list_keywords(5) :xcos functions</para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +list_keywords = getscilabkeywords(); +primitives = list_keywords(1) +commands = list_keywords(2) +predef_var = list_keywords(3) +scilab_functions = list_keywords(4) +xcos_functions = list_keywords(5) + ]]></programlisting> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/halt.xml b/modules/io/help/en_US/halt.xml new file mode 100755 index 000000000..14480a1e3 --- /dev/null +++ b/modules/io/help/en_US/halt.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="halt"> + <refnamediv> + <refname>halt</refname> + <refpurpose>stop execution</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>halt() + halt('a message') + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para>stops execution until something is entered in the keyboard.</para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +halt('Press a key') + +halt() + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="pause">pause</link> + </member> + <member> + <link linkend="return">return</link> + </member> + <member> + <link linkend="exec">exec</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/host.xml b/modules/io/help/en_US/host.xml new file mode 100755 index 000000000..50a6f6d18 --- /dev/null +++ b/modules/io/help/en_US/host.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="host"> + <refnamediv> + <refname>host</refname> + <refpurpose>Unix or DOS command execution</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>stat=host(command-name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>command-name</term> + <listitem> + <para>A character string containing Unix sh instruction</para> + </listitem> + </varlistentry> + <varlistentry> + <term>stat</term> + <listitem> + <para>An integer flag</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Sends a string <literal>command-name</literal> to Unix for execution by the command interpreter (sh under Unix, or command.com under DOS). Standard output and standard errors of the shell command are written in the calling shell. + <literal>stat</literal> gives -1 if host can't be called (Not enough system memory + available) or the command interpreter return code. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +//create a getdir function based on host +function wd=getdir() + if getos() == 'Windows' then + host('cd>'+TMPDIR+'\path'); + else + host('pwd>'+TMPDIR+'/path'); + end + wd=read(TMPDIR+'/path',1,1,'(a)') +endfunction +//call it +wd=getdir() + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/input.xml b/modules/io/help/en_US/input.xml new file mode 100755 index 000000000..e3beb080b --- /dev/null +++ b/modules/io/help/en_US/input.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="input"> + <refnamediv> + <refname>input</refname> + <refpurpose>prompt for user input</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>x = input(message [, "string"])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>message</term> + <listitem> + <para>character string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"string" </term> + <listitem> + <para> + the character string <literal>"string"</literal> (may be + abbreviated to <literal>"s"</literal>) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>x</term> + <listitem> + <para>real number (or character string if + <literal>"string"</literal> is in the calling sequence) + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <literal>input(message)</literal> gives the user the prompt in the text string and + then waits for input from the keyboard. + The input can be expression which is evaluated by <link linkend="evstr">evstr</link>. + If nothing but a carriage return is + entered at the prompt <literal>input(message)</literal> returns an empty matrix + </para> + <para> + Invoked with two arguments, the output is a character string which is the + expression entered at keyboard. If nothing but a carriage return is + entered at the prompt <literal>input(message)</literal> returns a single white + space <literal>" "</literal>. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +//x=input("How many iterations?") +//x=input("What is your name?","string") + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="evstr">evstr</link> + </member> + <member> + <link linkend="x_dialog">x_dialog</link> + </member> + <member> + <link linkend="x_mdialog">x_mdialog</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/load.xml b/modules/io/help/en_US/load.xml new file mode 100755 index 000000000..7a7a7f712 --- /dev/null +++ b/modules/io/help/en_US/load.xml @@ -0,0 +1,143 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="load" xml:lang="en"> + <refnamediv> + <refname>load</refname> + <refpurpose>Load a saved variable or a serie of variables</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>load(filename [,x1,...,xn])</synopsis> + <synopsis>load(fd [,x1,...,xn])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>filename</term> + <listitem> + <para>character string containing the path of the file</para> + </listitem> + </varlistentry> + <varlistentry> + <term>fd</term> + <listitem> + <para>a file descriptor given by a call to mopen</para> + </listitem> + </varlistentry> + <varlistentry> + <term>xi</term> + <listitem> + <para>arbitrary Scilab variable name(s) given as strings.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + The <literal>load</literal> command can be used to reload in the + Scilab session variables previously saved in a file with the + <literal> + <link linkend="save">save</link> + </literal> + command. If the file contains graphic handle + variables, the corresponding <link linkend="graphics_entities">graphics_entities</link> are drawn. + </para> + <para> + <literal>load(filename)</literal> loads the variables saved in file + given by its path <literal>filename</literal>. + </para> + <para> + <literal>load(fd)</literal> loads the variables saved in file given + by its descriptor <literal>fd</literal>. <emphasis role="bold">This prototype is obsolete and will be removed in Scilab 6.</emphasis> + </para> + <para> + <literal>load(filename,'x','y')</literal> loads only variables <literal>x,y</literal>. + </para> + <para> + <literal>load(fd,'x','y')</literal> loads only variables <literal>x,y</literal>. <emphasis role="bold">This prototype is obsolete and will be removed in Scilab 6.</emphasis>. + </para> + <para> + The change of format between the family 5 and 6 of Scilab has been decided because the 5 format is undocumented, not specified and hard to read. SOD (Scilab 6 default format) is fully documented and easy to read through HDF5 libraries or applications. + </para> + <para>Note that the written file is portable to other operating systems + and architectures (little and big endian). + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// Binary format readable up to Scilab 5 family +a=eye(2,2);b=ones(a); +save('vals.dat',a,b); +clear a +clear b +load('vals.dat','a','b'); + +// Binary format readable by Scilab 5.4.X and Scilab 6 family +a=eye(2,2);b=ones(a); +save("val.sod", "a", "b"); +clear a +clear b +load("val.sod", "a", "b"); + + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="save">save</link> + </member> + <member> + <link linkend="read">read</link> + </member> + <member> + <link linkend="listvarinfile">listvarinfile</link> + </member> + <member> + <link linkend="save_format">save_format</link> + </member> + <member> + <link linkend="exec">exec</link> + </member> + <member> + <link linkend="mopen">mopen</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>History</title> + <revhistory> + <revision> + <revnumber>5.0.0</revnumber> + <revremark> + All <link linkend="uimenu">uimenu</link> or <link linkend="uicontrol">uicontrol</link> handles are also loaded by this function. + </revremark> + </revision> + <revision> + <revnumber>5.4.0</revnumber> + <revdescription> + <itemizedlist> + <listitem> + The load function is able to handle both Scilab 5 and SOD (Scilab 6 format) by default. + </listitem> + <listitem>The Scilab 5.X format is deprecated and will be removed with Scilab 6.</listitem> + <listitem>Using load with a file descriptor as first input argument is deprecated and will be removed with Scilab 6.</listitem> + </itemizedlist> + </revdescription> + </revision> + </revhistory> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/read.xml b/modules/io/help/en_US/read.xml new file mode 100755 index 000000000..02559060c --- /dev/null +++ b/modules/io/help/en_US/read.xml @@ -0,0 +1,149 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-2008 - INRIA + * 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 + * + --> +<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="read"> + <refnamediv> + <refname>read</refname> + <refpurpose>matrices read</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>[x] = read(file-desc,m,n,[format]) + [x]=read(file-desc,m,n,k,format) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>file-desc</term> + <listitem> + <para> + character string specifying the file name or integer value specifying logical unit (fortran, see <link linkend="file">file</link>). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>m, n</term> + <listitem> + <para>integers (dimensions of the matrix x). Set m=-1 if you do not know the numbers of rows, so the whole file is read.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>format : character string, specifies a "Fortran" format. This</term> + <listitem> + <para>character string must begin with a right parenthesis and end with a left parenthesis. Formats cannot mix floating point or character edition modes.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>k</term> + <listitem> + <para>integer or vector of integer</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + reads row after row + the <literal>mxn</literal> matrix <literal>x</literal> (<literal>n=1</literal> for character chain) in the + file <literal>file-desc</literal> (string or integer). Each row of the matrix <literal>x</literal> + begin in a new line of <literal>file-desc</literal> file. Depending on <literal>format</literal>, a + given row of the <literal>x</literal> matrix may be read from more than one line + of <literal>file-desc</literal> file. + </para> + <para> + The type of the result will depend on the specified format. + If format contains only <literal>(d,e,f,g)</literal> descriptors the function + tries to read numerical data (the result is matrix of real numbers). + </para> + <para> + If format contains only <literal>a</literal> descriptors the function tries to + read character strings (the result is a character string column + vector). In this case n must be equal to 1. + </para> + <para> + <warning>Warning: The character strings are truncated when they are longuer than 4093.</warning> + </para> + <para> + Examples for <literal>format</literal>: + </para> + <programlisting role=""><![CDATA[ +(1x,e10.3,5x,3(f3.0)) +(10x,a20) + ]]></programlisting> + <para> + When format is omitted data are read using numerical free format: + blank, comma and slash may be used as data separators, n*v may be use + to represent n occurrences of value n. + </para> + <para> + A direct access file can be used if using the parameter <literal>k</literal> which is + is the vector of record numbers to be read (one record per row), + thus <literal>m</literal> must be <literal>m=prod(size(k))</literal>. + </para> + <para> + To read on the keyboard use <literal>read(%io(1),...)</literal>. + </para> + </refsection> + <refsection> + <title>Remark</title> + <para> + Last line of data files must be terminated by a newline to be taken into account. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +mdelete(TMPDIR + '/foo'); +A = rand(3,5); +write(TMPDIR + '/foo', A); +B = read(TMPDIR + '/foo', 3, 5); +B = read(TMPDIR + '/foo', -1, 5); +read(%io(1), 1, 1, '(a)') // waits for user's input + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="load">load</link> + </member> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="readb">readb</link> + </member> + <member> + <link linkend="x_dialog">x_dialog</link> + </member> + <member> + <link linkend="mscanf">mscanf</link> + </member> + <member> + <link linkend="mfscanf">mfscanf</link> + </member> + <member> + <link linkend="msscanf">msscanf</link> + </member> + <member> + <link linkend="fscanfMat">fscanfMat</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/read4b.xml b/modules/io/help/en_US/read4b.xml new file mode 100755 index 000000000..bc4034f5e --- /dev/null +++ b/modules/io/help/en_US/read4b.xml @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="read4b"> + <refnamediv> + <refname>read4b</refname> + <refpurpose>fortran file binary read</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>x=read4b(file-name,m,n [,rec])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>string or integer</para> + </listitem> + </varlistentry> + <varlistentry> + <term>m, n</term> + <listitem> + <para>integers (dimensions of the matrix x). Set m=-1 if you do not know the numbers of rows, so all the file is read</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rec</term> + <listitem> + <para> + vector of positive integers. the selected records for direct access. This vector size must be equal to the number of rows of desired <literal>x</literal>. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + binary read of the matrix <literal>x</literal> in the file <literal>file-name</literal>. + Matrix entries are supposed to have been stored on 4 byte words. + </para> + <para> + For direct record access, file must have been previously opened using + <literal>file</literal> function to set the record_length. <literal>file-name</literal> must be + the result of the <literal>file</literal> function. + </para> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="writb">writb</link> + </member> + <member> + <link linkend="mget">mget</link> + </member> + <member> + <link linkend="write4b">write4b</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/readb.xml b/modules/io/help/en_US/readb.xml new file mode 100755 index 000000000..a23d9530b --- /dev/null +++ b/modules/io/help/en_US/readb.xml @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="readb"> + <refnamediv> + <refname>readb</refname> + <refpurpose>fortran file binary read</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>x=readb(file-name,m,n [,rec])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>string or integer</para> + </listitem> + </varlistentry> + <varlistentry> + <term>m, n</term> + <listitem> + <para>integers (dimensions of the matrix x). Set m=-1 if you do not know the numbers of rows, so all the file is read</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rec</term> + <listitem> + <para> + vector of positive integers. the selected records for direct access. This vector size must be equal to the number of rows of desired <literal>x</literal>. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + binary read of the matrix <literal>x</literal> in the file <literal>file-name</literal>. + Matrix entries are supposed to have been stored on 8 byte words. + </para> + <para> + For direct record access, file must have been previously opened using + <literal>file</literal> function to set the record_length. <literal>file-name</literal> must be + the result of the <literal>file</literal> function. + </para> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="writb">writb</link> + </member> + <member> + <link linkend="mget">mget</link> + </member> + <member> + <link linkend="read4b">read4b</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/save.xml b/modules/io/help/en_US/save.xml new file mode 100755 index 000000000..983e94081 --- /dev/null +++ b/modules/io/help/en_US/save.xml @@ -0,0 +1,160 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="save" xml:lang="en"> + <refnamediv> + <refname>save</refname> + <refpurpose>Save a variable or a serie of variables in a binary + file + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>save(filename [,x1,x2,...,xn]) + save(fd [,x1,x2,...,xn]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>filename</term> + <listitem> + <para>Character string containing the path of the file</para> + </listitem> + </varlistentry> + <varlistentry> + <term>fd</term> + <listitem> + <para>A file descriptor given by a call to mopen</para> + </listitem> + </varlistentry> + <varlistentry> + <term>xi</term> + <listitem> + <para>Arbitrary Scilab variable(s)</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + The <literal>save</literal> command can be used to save Scilab + current variables in a binary file. If a variable is a graphic handle, the + <literal>save</literal> function saves all the corresponding <link linkend="graphics_entities">graphics_entities</link> definition. + </para> + <para>The file can be given either by its paths or by its descriptor + previously given by <literal>mopen</literal>. + </para> + <para> + <literal>save(filename)</literal> saves all current variables in the + file defined by <literal>filename</literal>. + </para> + <para> + <literal>save(fd)</literal> saves all current variables in the file + defined by the descriptor <literal>fd</literal>. <emphasis role="bold">This prototype is obsolete and will be removed in Scilab 6.</emphasis> + </para> + <para> + <literal>save(filename,x,y)</literal> or <literal>save(fd,x,y)</literal> (with <literal>x</literal> and <literal>y</literal> variables of your environment) saves only named variables <literal>x</literal> and <literal>y</literal>. <literal>save(fd,x,y)</literal> <emphasis role="bold"> is obsolete and will be removed in Scilab 6.</emphasis> + </para> + <para> + <literal>save(filename,"x","y")</literal> (with <literal>"x"</literal> and <literal>"y"</literal> names of variables of your environment) will save your data using the SOD (Scilab Open Data) format (based on HDF5), format that will be readable by Scilab 6 family. + </para> + <para> + <literal>save(filename,"-append","w", "z")</literal> (with <literal>"w"</literal> and <literal>"z"</literal> names of variables of your environment) will append your data in the existing SOD file called <literal>filename</literal>. + </para> + <para> + The change of format between the family 5 and 6 of Scilab has been decided because the 5 format is undocumented, not specified and hard to read. SOD (Scilab 6 default format) is fully documented and easy to read through HDF5 libraries or applications. + </para> + <para> + Saved variables can be reloaded by the + <literal> + <link linkend="load">load</link> + </literal> + command. + </para> + <para>Note that the written file is portable to other operating systems and architectures (little and big endian). + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// Binary format readable up to Scilab 5 family +a=eye(2,2);b=ones(a); +save('val.dat',a,b); +clear a +clear b +load('val.dat','a','b'); + +// sequential save into a file +fd=mopen('TMPDIR/foo','wb') +for k=1:4, x=k^2;save(fd,x,k),end +mclose(fd) +fd=mopen('TMPDIR/foo','rb') +for i=1:4, load(fd,'x','k');x,k,end +mclose(fd) + +// appending variables to an old save file +fd=mopen('TMPDIR/foo','rb+') +mseek(0,fd,'end') +lst=list(1,2,3) +save(fd,lst) +mclose(fd) + +// Binary format readable by Scilab 5.4.X and Scilab 6 family +a=eye(2,2);b=ones(a); +save("val.sod", "a", "b"); +clear a +clear b +load("val.sod", "a", "b"); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="load">load</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="save_format">save_format</link> + </member> + <member> + <link linkend="mopen">mopen</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>History</title> + <revhistory> + <revision> + <revnumber>5.0.0</revnumber> + <revremark> + All <link linkend="uimenu">uimenu</link> or <link linkend="uicontrol">uicontrol</link> handles are also saved by this function. + </revremark> + </revision> + <revision> + <revnumber>5.4.0</revnumber> + <revdescription> + <itemizedlist> + <listitem>When called with variables names (character string) as input, variables are saved in SOD format, format that will be readable by Scilab 6 family.</listitem> + <listitem>The Scilab 5.X format is deprecated and will be removed with Scilab 6.</listitem> + <listitem>Using save with a file descriptor as first input argument is deprecated and will be removed with Scilab 6.</listitem> + </itemizedlist> + </revdescription> + </revision> + </revhistory> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/setenv.xml b/modules/io/help/en_US/setenv.xml new file mode 100755 index 000000000..79cdf6fdd --- /dev/null +++ b/modules/io/help/en_US/setenv.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="setenv"> + <refnamediv> + <refname>setenv</refname> + <refpurpose>set the value of an environment + variable + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>rep=setenv(name, value )</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>name</term> + <listitem> + <para>Points to the name of an environment variable . (name is a + string) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>value</term> + <listitem> + <para>Points to the value to be assigned to the environment + variable. (value is a string) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>rep</term> + <listitem> + <para>Returns %T if it is ok else %F.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>set the value of an environnment variable.</para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +setenv('toto','example') +getenv('toto') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="getenv">getenv</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/unix.xml b/modules/io/help/en_US/unix.xml new file mode 100755 index 000000000..6601c0cf3 --- /dev/null +++ b/modules/io/help/en_US/unix.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) XXXX-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 + * + --> +<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="unix"> + <refnamediv> + <refname>unix</refname> + <refpurpose>shell (sh) command + execution + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>stat=unix(command-name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>command-name</term> + <listitem> + <para>A character string containing Unix sh instruction</para> + </listitem> + </varlistentry> + <varlistentry> + <term>stat</term> + <listitem> + <para>An integer flag</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Sends a string <literal>command-name</literal> to Unix for execution by the + sh shell. Standard output and standard errors of the shell command are + written in the calling shell. <literal>stat</literal> gives -1 if unix can't be + called (Not enough system memory available) or the sh return code. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +if getos() <> 'Windows' then + unix("ls $SCI/demos"); +end + +function wd=directory() + if getos() == 'Windows' then + unix('cd>'+TMPDIR+'\path'); + else + unix('pwd>'+TMPDIR+'/path'); + end + wd=read(TMPDIR+'/path',1,1,'(a)'); +endfunction + +wd=directory() + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="host">host</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/unix_g.xml b/modules/io/help/en_US/unix_g.xml new file mode 100755 index 000000000..940ae581a --- /dev/null +++ b/modules/io/help/en_US/unix_g.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) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="unix_g" xml:lang="en"> + <refnamediv> + <refname>unix_g</refname> + <refpurpose>shell (sh) command execution, output redirected to a + variable + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>rep=unix_g(cmd) + [rep,stat]=unix_g(cmd) + [rep,stat,stderr]=unix_g(cmd) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>cmd</term> + <listitem> + <para>a character string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rep</term> + <listitem> + <para>a column vector of character strings (standard output)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>stat</term> + <listitem> + <para>an integer, the error status. stat=0 if no error occurred</para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>a column vector of character strings (standard error)</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Sends a string <literal>cmd</literal> to Unix for execution by the + sh shell. The standard output is redirected to scilab variable + <literal>rep</literal>. The standard error is redirected to scilab + variable err or displays if you had only 2 output arguments. Unix execution + errors are trapped; *NOTE* that only the last shell command error is + reported when a list of command separated by ";" is sent: this is not + recommended. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +function d=DIR(path) + path=pathconvert(path,%t,%t) + if getos() == 'Windows' then + d=unix_g('dir '+path) + else + d=unix_g('ls '+path) + end +endfunction + +DIR('SCI/etc') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/unix_s.xml b/modules/io/help/en_US/unix_s.xml new file mode 100755 index 000000000..64cc9864e --- /dev/null +++ b/modules/io/help/en_US/unix_s.xml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="unix_s"> + <refnamediv> + <refname>unix_s</refname> + <refpurpose>shell (sh) command execution, no output</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>unix_s(cmd)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>cmd</term> + <listitem> + <para>a character string</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Sends a string <literal>cmd</literal> to Unix for execution by the sh shell. The standard + output is redirected to /dev/null. + Unix execution errors are trapped. + </para> + <para> + <warning> + *NOTE* that only the last shell command + error is reported when a list of command separated by ";" is sent: this is + not recommended. + </warning> + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then + unix_s("del foo"); +else + unix_s("rm -f foo"); +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/unix_w.xml b/modules/io/help/en_US/unix_w.xml new file mode 100755 index 000000000..ec36b216c --- /dev/null +++ b/modules/io/help/en_US/unix_w.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="unix_w"> + <refnamediv> + <refname>unix_w</refname> + <refpurpose>shell (sh) command execution, output + redirected to scilab window + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>unix_w(cmd)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>cmd</term> + <listitem> + <para>a character string</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Sends a string <literal>cmd</literal> to Unix for execution by the sh shell. + The standard output is redirected to scilab window. Unix execution errors + are trapped. + </para> + <para> + <warning> + *NOTE* that only the last shell command error is reported + when a list of command separated by ";" is sent: this is not + recommended. + </warning> + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then + unix_w("dir "+'""'+WSCI+"\modules"+'""'); +else + unix_w("ls $SCI/modules"); +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/unix_x.xml b/modules/io/help/en_US/unix_x.xml new file mode 100755 index 000000000..13e957328 --- /dev/null +++ b/modules/io/help/en_US/unix_x.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="unix_x"> + <refnamediv> + <refname>unix_x</refname> + <refpurpose>shell (sh) command execution, output + redirected to a window + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>unix_x(cmd)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>cmd</term> + <listitem> + <para>a character string</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Sends a string <literal>cmd</literal> to Unix for execution by the sh shell. + The standard output is redirected to a window. Unix execution errors are + trapped. + </para> + <para> + <warning> + *NOTE* that only the last shell command error is reported when a + list of command separated by ";" is sent: this is not recommended. + </warning> + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then + unix_x("dir "+""""+WSCI+"modules\graphics\demos"+""""); +else + unix_x("ls $SCI/modules/graphics/demos"); +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/writb.xml b/modules/io/help/en_US/writb.xml new file mode 100755 index 000000000..3d34529d1 --- /dev/null +++ b/modules/io/help/en_US/writb.xml @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 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 + * + --> +<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="writb"> + <refnamediv> + <refname>writb</refname> + <refpurpose>fortran file binary write</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>writb(file-name,a [,rec])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>string or integer</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rec</term> + <listitem> + <para> + vector of positive integers. the selected records for direct access. This vector size must be equal to the number of rows of <literal>a</literal> + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + writes in binary format the matrix <literal>a</literal> in the file + <literal>'filename'</literal>.. Matrix entries are stored on 4 byte words + </para> + <para> + For direct record access, file must have been previously opened using + <literal>file</literal> function to set the record_length. <literal>file-name</literal> must be + the result of the <literal>file</literal> function. + </para> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="readb">readb</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="mput">mput</link> + </member> + <member> + <link linkend="write4b">write4b</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/write.xml b/modules/io/help/en_US/write.xml new file mode 100755 index 000000000..43a43ae82 --- /dev/null +++ b/modules/io/help/en_US/write.xml @@ -0,0 +1,142 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="write" xml:lang="en"> + <refnamediv> + <refname>write</refname> + <refpurpose>write in a formatted file</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>write(file-desc,a,[format]) + write(file-desc,a,k,format) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>file-desc</term> + <listitem> + <para>character string specifying the file name or integer value + specifying logical unit (see file). + </para> + <para>This function can not open a UTF filename. In this case, + please uses mopen. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>a</term> + <listitem> + <para>real matrix or column vector of character strings.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>format</term> + <listitem> + <para>character string, specifies a "Fortran" format. This character + string must begin with a right parenthesis and end with a left + parenthesis. Formats cannot mix floating point , integer or + character edition modes + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>k</term> + <listitem> + <para>integer vector</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>writes row-by-row a real matrix or a column vector of character + strings in a formatted file. Each row of the <literal>a</literal> argument + begin in a new line of <literal>file-desc</literal> file. Depending on + <literal>format</literal> a given row of the <literal>a</literal> argument + may be written in more than one line of <literal>file-desc</literal> + file. + </para> + <para> + Format examples : <literal>(1x,e10.3,5x,3(f3.0))</literal> , + <literal>(10x,a20)</literal> ; + </para> + <para>See a Fortran book for more precision.</para> + <para>Direct access files : + <literal>x=write(file_desc,a,k,format)</literal>. Here + <literal>k</literal> is the vector of records (one record by row, i.e. + <literal>m=prod(size(k)</literal>) + </para> + <para> + <literal>write(%io(2),....)</literal> writes on Scilab's window. + Note that in this case <literal>format</literal> should produce one output + line per matrix row. If this contraint is not verified unpredictable + behavior could happen. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then unix('del asave'); +else unix('rm -f asave'); end +A=rand(5,3); write('asave',A); A=read('asave',5,3); +write(%io(2),A,'('' | '',3(f10.3,'' | ''))') +write(%io(2),string(1:10)) +write(%io(2),strcat(string(1:10),',')) +write(%io(2),1:10,'(10(i2,3x))') + +if getos() == 'Windows' then unix('del foo'); +else unix('rm -f foo'); end +write('foo',A) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="read">read</link> + </member> + <member> + <link linkend="save">save</link> + </member> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="fileinfo">fileinfo</link> + </member> + <member> + <link linkend="writb">writb</link> + </member> + <member> + <link linkend="print">print</link> + </member> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="mfprintf">mfprintf</link> + </member> + <member> + <link linkend="mprintf">mprintf</link> + </member> + <member> + <link linkend="msprintf">msprintf</link> + </member> + <member> + <link linkend="fprintfMat">fprintfMat</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/en_US/write4b.xml b/modules/io/help/en_US/write4b.xml new file mode 100755 index 000000000..cd8668638 --- /dev/null +++ b/modules/io/help/en_US/write4b.xml @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="write4b"> + <refnamediv> + <refname>write4b</refname> + <refpurpose>fortran file binary write</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>write4b(file-name,a [,rec])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>string or integer</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rec</term> + <listitem> + <para> + vector of positive integers. the selected records for direct access. This vector size must be equal to the number of rows of <literal>a</literal> + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + writes in binary format the matrix <literal>a</literal> in the file + <literal>'filename'</literal>. Matrix entries are stored on 8 byte words + </para> + <para> + For direct record access, file must have been previously opened using + <literal>file</literal> function to set the record_length. <literal>file-name</literal> must be + the result of the <literal>file</literal> function. + </para> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="readb">readb</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="mput">mput</link> + </member> + <member> + <link linkend="read4b">read4b</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/fr_FR/addchapter.sce b/modules/io/help/fr_FR/addchapter.sce new file mode 100755 index 000000000..3dfa2c778 --- /dev/null +++ b/modules/io/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("Entrées/Sorties",SCI+"/modules/io/help/fr_FR",%T); + diff --git a/modules/io/help/fr_FR/getenv.xml b/modules/io/help/fr_FR/getenv.xml new file mode 100755 index 000000000..9d480b22f --- /dev/null +++ b/modules/io/help/fr_FR/getenv.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="getenv"> + <refnamediv> + <refname>getenv</refname> + <refpurpose>renvoie la valeur d'une variable d'environnement </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>env=getenv(str [, defaultReturn] )</synopsis> + </refsynopsisdiv> + <refsection> + <title>Paramètres</title> + <variablelist> + <varlistentry> + <term>str </term> + <listitem> + <para> + chaîne de caractères contenant le nom de la variable d'environnement. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>defaultReturn</term> + <listitem> + <para> + chaîne de caractères optionnelle. Quand elle est utilisée, <literal>getenv</literal> renvoie la valeur <literal>defaultReturn</literal> quand la variable d'environnement <literal>str</literal> n'existe pas. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>env </term> + <listitem> + <para>chaîne de caractères contenant la valeur de la variable d'environnement + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Renvoie la la valeur d'une variable d'environnement, quand celle-ci existe. + </para> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +getenv('SCI') +getenv('FOO','foo') + ]]></programlisting> + </refsection> +</refentry> diff --git a/modules/io/help/fr_FR/getpid.xml b/modules/io/help/fr_FR/getpid.xml new file mode 100755 index 000000000..bc13c6615 --- /dev/null +++ b/modules/io/help/fr_FR/getpid.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="getpid"> + <refnamediv> + <refname>getpid</refname> + <refpurpose>renvoie le numéro de processus de Scilab </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>id=getpid()</synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para> + Renvoie le numéro de processus de Scilab sous forme d'un entier. + </para> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +d='SD_'+string(getpid())+'_' + ]]></programlisting> + </refsection> +</refentry> diff --git a/modules/io/help/fr_FR/host.xml b/modules/io/help/fr_FR/host.xml new file mode 100755 index 000000000..6681133c6 --- /dev/null +++ b/modules/io/help/fr_FR/host.xml @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="host"> + <refnamediv> + <refname>host</refname> + <refpurpose>exécution d'une commande Unix ou DOS </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>stat=host(command-name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Paramètres</title> + <variablelist> + <varlistentry> + <term>command-name </term> + <listitem> + <para>chaîne de caractères contenant les commandes à exécuter + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>stat </term> + <listitem> + <para>un entier + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Envoie la chaîne <literal>command-name</literal> à l'interpréteur de commande + (sh sous Unix, ou command.com sous DOS). La sortie standard et les erreurs sont reportées dans + l'interpréteur de commande. + </para> + <para> + <literal>stat</literal> vaut -1 en sortie si la fonction ne peut pas être appelée (pas assez de mémoire par exemple) ou + alors le code de sortie de l'interpréteur de commande. + </para> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +//creation d'un fontion pour recuperer la path courant +function wd=getdir() + if getos() == 'Windows' then + host('cd>'+TMPDIR+'\path'); + else + host('pwd>'+TMPDIR+'/path'); + end + wd=read(TMPDIR+'/path',1,1,'(a)') +endfunction +//appel de la fonction +wd=getdir() + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Voir aussi</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/fr_FR/setenv.xml b/modules/io/help/fr_FR/setenv.xml new file mode 100755 index 000000000..94145816e --- /dev/null +++ b/modules/io/help/fr_FR/setenv.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) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="setenv"> + <refnamediv> + <refname>setenv</refname> + <refpurpose>fixe la valeur d'une variable + d'environnement + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>rep=setenv(nom, valeur )</synopsis> + </refsynopsisdiv> + <refsection> + <title>Paramètres</title> + <variablelist> + <varlistentry> + <term>nom</term> + <listitem> + <para>chaîne de caractères contenant le nom de la variable + d'environnement + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>valeur</term> + <listitem> + <para>chaîne de caractères contenant la valeur de la variable + d'environnement + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>rep</term> + <listitem> + <para>retourne %T si la variable d'environnement a ete cree ou %F + dans le cas contraire + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>Fixe la valeur d'une variable d'environnement.</para> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +setenv('chaine','exemple') +getenv('chaine') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Voir aussi</title> + <simplelist type="inline"> + <member> + <link linkend="getenv">getenv</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/fr_FR/unix.xml b/modules/io/help/fr_FR/unix.xml new file mode 100755 index 000000000..0613ecfae --- /dev/null +++ b/modules/io/help/fr_FR/unix.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) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="unix"> + <refnamediv> + <refname>unix</refname> + <refpurpose>exécution d'une commande Unix ou DOS </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>stat=unix(command-name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Paramètres</title> + <variablelist> + <varlistentry> + <term>command-name</term> + <listitem> + <para>chaîne de caractères contenant les commandes à exécuter</para> + </listitem> + </varlistentry> + <varlistentry> + <term>stat</term> + <listitem> + <para>un entier</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Envoie la chaîne <literal>command-name</literal> à l'interpréteur de commande + (sh sous Unix, ou command.com sous DOS). La sortie standard et les erreurs sont reportées dans + l'interpréteur de commande. + </para> + <para> + <literal>stat</literal> vaut -1 en sortie si la fonction ne peut pas être appelée (pas assez de mémoire par exemple) ou + alors le code de sortie de l'interpréteur de commande. + </para> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +if getos() <> 'Windows' then + unix("ls $SCI/demos"); +end + +function wd=directory() + if getos() == 'Windows' then + unix('cd>'+TMPDIR+'\path'); + else + unix('pwd>'+TMPDIR+'/path'); + end + wd=read(TMPDIR+'/path',1,1,'(a)'); +endfunction + +wd=directory() + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Voir aussi</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/fr_FR/unix_g.xml b/modules/io/help/fr_FR/unix_g.xml new file mode 100755 index 000000000..e3acbb362 --- /dev/null +++ b/modules/io/help/fr_FR/unix_g.xml @@ -0,0 +1,107 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="unix_g" xml:lang="fr"> + <refnamediv> + <refname>unix_g</refname> + <refpurpose>exécution d'une commande Unix ou DOS, sortie redirigée vers + une variable + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>rep=unix_g(cmd) + [rep,stat]=unix_g(cmd) + [rep,stat,err]=unix_g(cmd) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Paramètres</title> + <variablelist> + <varlistentry> + <term>command-name</term> + <listitem> + <para>chaîne de caractères</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rep</term> + <listitem> + <para>vecteur colonne de chaînes de caractères (sortie + standard) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>stat</term> + <listitem> + <para>un entier, le statut d'erreur, si stat==0 aucune + erreur. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>vecteur colonne de chaînes de caractères (sortie + d'erreurs) + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Envoie la chaîne <literal>command-name</literal> à l'interpréteur de + commande (sh sous Unix, ou command.com sous DOS). La sortie standard est + reporté dans la variable <literal>rep</literal>. La sortie d'erreurs est + reporté dans la variable <literal>err</literal> ou affichée si seulement + deux arguments de sortie. Les erreurs se produisant dans l'interpréteur de + commande sont interceptées; notez que la *dernière erreur uniquement* est + signalée quand <literal>command-name</literal> est une suite de commandes + séparées par des ";". + </para> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +function d=DIR(path) + path=pathconvert(path,%t,%t) + if getos() == 'Windows' then + d=unix_g('dir '+path) + else + d=unix_g('ls '+path) + end +endfunction + +DIR('SCI/etc') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Voir aussi</title> + <simplelist type="inline"> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/fr_FR/unix_s.xml b/modules/io/help/fr_FR/unix_s.xml new file mode 100755 index 000000000..a70191b5c --- /dev/null +++ b/modules/io/help/fr_FR/unix_s.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="unix_s"> + <refnamediv> + <refname>unix_s</refname> + <refpurpose>exécution d'une commande Unix ou DOS, pas de sortie </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>unix_s(command-name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Paramètres</title> + <variablelist> + <varlistentry> + <term>command-name</term> + <listitem> + <para>chaîne de caractères</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Envoie la chaîne <literal>command-name</literal> à l'interpréteur de commande + (sh sous Unix, ou command.com sous DOS). La sortie standard et les erreurs ne sont pas reportées (redirection vers /dev/null sous Unix). + </para> + <para> + <warning> + Notez que la *dernière erreur uniquement* est signalée quand <literal>command-name</literal> est une suite de commandes séparées par des ";". + </warning> + </para> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then + unix_s("del foo"); +else + unix_s("rm -f foo"); +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Voir aussi</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/fr_FR/unix_w.xml b/modules/io/help/fr_FR/unix_w.xml new file mode 100755 index 000000000..fe9eed939 --- /dev/null +++ b/modules/io/help/fr_FR/unix_w.xml @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="unix_w"> + <refnamediv> + <refname>unix_w</refname> + <refpurpose>exécution d'une commande Unix ou DOS, + sortie redirigée vers la fenêtre de Scilab + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>unix_w(command-name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Paramètres</title> + <variablelist> + <varlistentry> + <term>command-name</term> + <listitem> + <para>chaîne de caractères</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Envoie la chaîne <literal>command-name</literal> à + l'interpréteur de commande (sh sous Unix, ou cmd.com sous Windows). La + sortie standard et les erreurs sont reportées dans la variable + <literal>rep</literal>. Les erreurs se produisant dans l'interpréteur de commande + sont interceptées. + </para> + <para> + <warning> + Notez que la *dernière erreur uniquement* est signalée + quand <literal>command-name</literal> est une suite de commandes séparées par des + ";". + </warning> + </para> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then + unix_w("dir "+'""'+WSCI+"\modules"+'""'); +else + unix_w("ls $SCI/modules"); +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Voir aussi</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/fr_FR/unix_x.xml b/modules/io/help/fr_FR/unix_x.xml new file mode 100755 index 000000000..e42cf0d1d --- /dev/null +++ b/modules/io/help/fr_FR/unix_x.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="unix_x"> + <refnamediv> + <refname>unix_x</refname> + <refpurpose>exécution d'une commande Unix ou DOS, + sortie redirigée vers une fenêtre + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>unix_x(command-name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Paramètres</title> + <variablelist> + <varlistentry> + <term>command-name</term> + <listitem> + <para>chaîne de caractères</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Envoie la chaîne <literal>command-name</literal> à l'interpréteur + de commande (sh sous Unix, ou command.com sous DOS). La sortie standard et + les erreurs sont reportées dans une fenêtre . Les erreurs se produisant dans + l'interpréteur de commande sont interceptées. + </para> + <para> + <warning> + Notez que la *dernière erreur + uniquement* est signalée quand <literal>command-name</literal> est une suite de + commandes séparées par des ";". + </warning> + </para> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then + unix_x("dir "+""""+WSCI+"modules\graphics\demos"+""""); +else + unix_x("ls $SCI/modules/graphics/demos"); +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Voir aussi</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/addchapter.sce b/modules/io/help/ja_JP/addchapter.sce new file mode 100755 index 000000000..7b24fd342 --- /dev/null +++ b/modules/io/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("Input/Output functions",SCI+"/modules/io/help/ja_JP",%T); + diff --git a/modules/io/help/ja_JP/file.xml b/modules/io/help/ja_JP/file.xml new file mode 100755 index 000000000..30d7b3a20 --- /dev/null +++ b/modules/io/help/ja_JP/file.xml @@ -0,0 +1,356 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="file" xml:lang="ja"> + <refnamediv> + <refname>file</refname> + <refpurpose>ファイル管理</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>[unit [,err]]=file('open', file-name [,status] [,access [,recl]] [,format]) + file(action,unit) + [units [,typ [,nams [,mod [,swap]]]]] = file([unit]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>文字列, オープンするファイルのファイル名</para> + </listitem> + </varlistentry> + <varlistentry> + <term>status</term> + <listitem> + <para>文字列, オープンするファイルのステータス</para> + <variablelist> + <varlistentry> + <term>"new"</term> + <listitem> + <para>ファイルは存在せず新規ファイル (デフォルト)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"old"</term> + <listitem> + <para>ファイルは既存.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"unknown"</term> + <listitem> + <para>unknown status</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"scratch"</term> + <listitem> + <para>ファイルはセッション終了時に削除されます</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>access</term> + <listitem> + <para>文字列, ファイルへのアクセス形式</para> + <variablelist> + <varlistentry> + <term>"sequential"</term> + <listitem> + <para>連続アクセス (デフォルト)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"direct"</term> + <listitem> + <para>直接アクセス.</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>format</term> + <listitem> + <para>文字列,</para> + <variablelist> + <varlistentry> + <term>"formatted"</term> + <listitem> + <para>フォーマットされたファイル (デフォルト)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"unformatted"</term> + <listitem> + <para>バイナリレコード.</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>recl</term> + <listitem> + <para>整数, + <literal>access="direct"</literal>の時, + レコードの大きさ(単位:バイト) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>unit</term> + <listitem> + <para>整数, オープンされたファイルの論理ユニット記述子</para> + </listitem> + </varlistentry> + <varlistentry> + <term>units</term> + <listitem> + <para>整数ベクトル, オープンされたファイルの論理ユニット記述子. + ユニット 5 および 6 (%io) は入出力デバイスの + システムにより保存されます. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>typs</term> + <listitem> + <para>文字列ベクトル, オープンするファイルの型 + (C または Fortran). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>nams</term> + <listitem> + <para>文字列ベクトル, オープンするファイルのパス名.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>mod</term> + <listitem> + <para>ファイルをオープンするモード. + 3桁 abc により構成. + </para> + <variablelist> + <varlistentry> + <term>Fortranファイル</term> + <listitem> + <variablelist> + <varlistentry> + <term>a</term> + <listitem> + <para>0 は整形済み, 1 は未整形(バイナリ)を意味します + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>b</term> + <listitem> + <para>0 は連続アクセス, 1 は直接アクセスを意味します</para> + </listitem> + </varlistentry> + <varlistentry> + <term>c</term> + <listitem> + <para>0 は "new", 1 は "old", 2 は "scratch" + および 3 は "unknown"を意味します + </para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>Cファイル</term> + <listitem> + <variablelist> + <varlistentry> + <varlistentry> + <term>a</term> + <listitem> + <para>1は "r" (読み込み)を意味し, 2 は "w" (書き込み) + そして 3 は "a" (追加)を意味します + </para> + </listitem> + <varlistentry> + <term>b</term> + <listitem> + <para> + ファイルが "+" (更新)モードでオープンされている場合に 1 + </para> + </listitem> + </varlistentry> + </varlistentry> + <term>b</term> + <listitem> + <para> + ファイルが "b" (バイナリ)モードで + オープンされている場合に 1 + </para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>swap</term> + <listitem> + <para> + 自動スワップの切替スイッチ. + 自動スワップがオンの場合に swap=1. + Fortranファイルの場合,swapは常に0となります. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>整数, オープンに失敗した場合は, + エラーメッセージ番号 (error 参照). + err が省略された場合,エラーメッセージが発行されます. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>action</term> + <listitem> + <para>以下の文字列のどれかとなります:</para> + <variablelist> + <varlistentry> + <term>"close"</term> + <listitem> + <para> + <literal>units</literal>で指定された + 論理ユニット記述子により指定されたファイルを閉じます + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>"rewind"</term> + <listitem> + <para>ファイルの先頭にポインタを置きます</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"backspace"</term> + <listitem> + <para>ポインタを最後のレコードの先頭に置きます</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"last"</term> + <listitem> + <para> + ポインタを最後のレコードの後に置きます. + </para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + 論理ユニット<literal>unit</literal>を選択し, + ファイル<literal>file-name</literal>を管理します. + </para> + <para> + <literal>[unit [,err]]=file('open', file-name [,status] [,access + [,recl]][,format]) + </literal> + により + プロパティを指定してファイルをオープンし, + ユニット番号<literal>unit</literal>に関連付けることができます. + このユニット番号は,この後,このファイルに関する処理や + <literal>read</literal>, <literal>write</literal>, + <literal>readb</literal>, + <literal>writb</literal>,<literal>save</literal>, <literal>load</literal> + 関数コールにおいてファイル記述子と同様に使用することができます. + </para> + <para>この関数はUTFファイル名をオープンすることができません. + この場合,mopenを使用してください. + </para> + <para> + <literal>file(action,unit)</literal> により,ファイルを閉じたり, + カレントのファイルポインタを移動することができます. + </para> + <para> + <literal>file()</literal> は + オープンされたファイルの論理ユニット記述子を返します.この場合, + <literal>file('close',file() )</literal> は + ユーザにオープンされたファイル(CまたはFortran型)を全て閉じます. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +u=file('open',TMPDIR+'/foo','unknown') +for k=1:4 + a=rand(1,4) + write(u,a) +end +file('rewind',u) +x=read(u,2,4) +file('close',u) +// +u1=file('open',TMPDIR+'/foo','unknown') +u2=mopen(TMPDIR+'/foo1','wb') +[units,typs,nams]=file() +file('close',u1); +mclose(u2); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="save">save</link> + </member> + <member> + <link linkend="load">load</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="read">read</link> + </member> + <member> + <link linkend="writb">writb</link> + </member> + <member> + <link linkend="readb">readb</link> + </member> + <member> + <link linkend="uigetfile">uigetfile</link> + </member> + <member> + <link linkend="mopen">mopen</link> + </member> + <member> + <link linkend="mclose">mclose</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/getenv.xml b/modules/io/help/ja_JP/getenv.xml new file mode 100755 index 000000000..b5a91c231 --- /dev/null +++ b/modules/io/help/ja_JP/getenv.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="getenv"> + <refnamediv> + <refname>getenv</refname> + <refpurpose>環境変数の値を取得</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>env=getenv(str [, rep] )</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>環境変数の名前を指定する文字列</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rep</term> + <listitem> + <para> + オプションの文字列. このオプションの値を使用する時, + 関数 <literal>getenv</literal> は,環境変数 <literal>str</literal> + が見つからない場合に値 <literal>rep</literal> を返します. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>env</term> + <listitem> + <para>環境変数の値を有する文字列</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + 指定した環境変数が存在する場合,その値を返します. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +getenv('SCI') +getenv('FOO','foo') + ]]></programlisting> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/getio.xml b/modules/io/help/ja_JP/getio.xml new file mode 100755 index 000000000..f3e9d4e22 --- /dev/null +++ b/modules/io/help/ja_JP/getio.xml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="getio"> + <refnamediv> + <refname>getio</refname> + <refpurpose>Scilabの入出力論理ユニットを取得 </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>ios=getio()</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>ios</term> + <listitem> + <para>ベクトル [rio rte wio wte]</para> + <variablelist> + <varlistentry> + <term>rio</term> + <listitem> + <para>読み込み命令用のカレントの論理ユニット</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rte</term> + <listitem> + <para> + メインScilabウインドウの入力にアサインされた論理ユニット + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>wio</term> + <listitem> + <para>diaryファイルに関連する論理ユニット. + wio=0はdiaryファイルがオープンされていないことを意味します + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>wte</term> + <listitem> + <para>メインScilabウインドウの出力にアサインされた論理ユニット</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + <literal>getio</literal> はメインScilabウインドウの入出力にアサイン + された論理ユニットを返します + </para> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="exec">exec</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/getpid.xml b/modules/io/help/ja_JP/getpid.xml new file mode 100755 index 000000000..a5aab93ce --- /dev/null +++ b/modules/io/help/ja_JP/getpid.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="getpid"> + <refnamediv> + <refname>getpid</refname> + <refpurpose>ScilabプロセスIDを取得</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>id=getpid()</synopsis> + </refsynopsisdiv> + <refsection> + <title>説明</title> + <para> + ScilabプロセスIDの整数を返します + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +d='SD_'+string(getpid())+'_' + ]]></programlisting> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/getscilabkeywords.xml b/modules/io/help/ja_JP/getscilabkeywords.xml new file mode 100755 index 000000000..4da04830b --- /dev/null +++ b/modules/io/help/ja_JP/getscilabkeywords.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="getscilabkeywords"> + <refnamediv> + <refname>getscilabkeywords</refname> + <refpurpose>Scilabキーワードを全リストを返す.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>list_keywords=getscilabkeywords()</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>list_keywords</term> + <listitem> + <para>リスト</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para>list_keywords(1) : プリミティブ</para> + <para>list_keywords(2) : コマンド</para> + <para>list_keywords(3) : 定義済みの関数</para> + <para>list_keywords(4) :scilab 関数s</para> + <para>list_keywords(5) :xcos 関数</para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +list_keywords = getscilabkeywords(); +primitives = list_keywords(1) +commands = list_keywords(2) +predef_var = list_keywords(3) +scilab_functions = list_keywords(4) +xcos_functions = list_keywords(5) + ]]></programlisting> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/halt.xml b/modules/io/help/ja_JP/halt.xml new file mode 100755 index 000000000..71579c8c5 --- /dev/null +++ b/modules/io/help/ja_JP/halt.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="halt"> + <refnamediv> + <refname>halt</refname> + <refpurpose>実行を停止</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>halt() + halt('a message') + </synopsis> + </refsynopsisdiv> + <refsection> + <title>説明</title> + <para>キーボードから何か入力されるまで実行を停止します.</para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +halt('Press a key') +halt() + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="pause">pause</link> + </member> + <member> + <link linkend="return">return</link> + </member> + <member> + <link linkend="exec">exec</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/host.xml b/modules/io/help/ja_JP/host.xml new file mode 100755 index 000000000..d378cc52d --- /dev/null +++ b/modules/io/help/ja_JP/host.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="host"> + <refnamediv> + <refname>host</refname> + <refpurpose>Unix または DOS コマンドを実行</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>stat=host(command-name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>commmand-name</term> + <listitem> + <para>Unix sh 命令を有する文字列</para> + </listitem> + </varlistentry> + <varlistentry> + <term>stat</term> + <listitem> + <para>整数フラグ</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明n</title> + <para> + コマンドインタプリタ(Unixではsh, DOSでは command.com)により実行される + 文字列<literal>command-name</literal>をUnixに送信します. + シェルコマンドの標準出力および標準エラーは呼び出し側のシェルに + 書き込まれます. + <literal>stat</literal>は, + ホストがコールできない場合(十分なシステムメモリが確保できない場合)に -1, + またはコマンドインタプリタのリターンコードを返します. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +//ホストに基づくgetdir関数を作成 +function wd=getdir() + if getos() == 'Windows' then + host('cd>'+TMPDIR+'\path'); + else + host('pwd>'+TMPDIR+'/path'); + end + wd=read(TMPDIR+'/path',1,1,'(a)') +endfunction +//call it +wd=getdir() + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/input.xml b/modules/io/help/ja_JP/input.xml new file mode 100755 index 000000000..ad5ebc05d --- /dev/null +++ b/modules/io/help/ja_JP/input.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) XXXX-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 + * + --> +<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="input"> + <refnamediv> + <refname>input</refname> + <refpurpose>ユーザ入力用のプロンプト</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>x = input(message [, "string"])</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>message</term> + <listitem> + <para>文字列</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"string" </term> + <listitem> + <para> + 文字列 <literal>"string"</literal> ( + <literal>"s"</literal>と短縮できます) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>x</term> + <listitem> + <para>実数 ( + <literal>"string"</literal>が呼び出し手順にある場合に文字列) + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + <literal>input(message)</literal> は + テキスト文字列でユーザプロンプトを定義し, + キーボードからの入力を待ちます. + 入力は<link linkend="evstr">evstr</link>で評価される式とすることができます. + 復改以外の入力が行われない場合, + プロンプト <literal>input(message)</literal> は空の行列を返します. + </para> + <para> + 2つの引数を指定してコールされた場合, + 出力はキーボードで入力された式の文字列となります. + 復改以外の入力が行われない場合, + プロンプト <literal>input(message)</literal> は空白 <literal>" "</literal>を返します. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +//x=input("How many iterations?") +//x=input("What is your name?","string") + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="evstr">evstr</link> + </member> + <member> + <link linkend="x_dialog">x_dialog</link> + </member> + <member> + <link linkend="x_mdialog">x_mdialog</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/load.xml b/modules/io/help/ja_JP/load.xml new file mode 100755 index 000000000..c3b595783 --- /dev/null +++ b/modules/io/help/ja_JP/load.xml @@ -0,0 +1,150 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="load" xml:lang="ja"> + <refnamediv> + <refname>load</refname> + <refpurpose>保存した1個または複数の変数を読み込む</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>load(filename [,x1,...,xn])</synopsis> + <synopsis>load(fd [,x1,...,xn])</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>filename</term> + <listitem> + <para>ファイルのパスを含む文字列</para> + </listitem> + </varlistentry> + <varlistentry> + <term>fd</term> + <listitem> + <para>mopenのコールにより得られたファイル記述子</para> + </listitem> + </varlistentry> + <varlistentry> + <term>xi</term> + <listitem> + <para>文字列で指定した任意のScilab変数名.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + <literal>load</literal> コマンドは + <literal> + <link linkend="save">save</link> + </literal> + コマンドにより + ファイルに保存されたScilabセッション変数を再度読み込む際に使用されます. + ファイルがグラフィックハンドル変数を含む場合, + 対応する <link linkend="graphics_entities">graphics_entities</link> が描画されます. + </para> + <para> + <literal>load(filename)</literal> はパス <literal>filename</literal>で指定されたファイル + に保存された変数を読み込みます. + </para> + <para> + <literal>load(fd)</literal> は記述子 <literal>fd</literal>で指定された + ファイルに保存された変数を読み込みます. + <emphasis role="bold">このプロトタイプは廃止予定であり,Scilab 6では削除されます.</emphasis> + </para> + <para> + <literal>load(filename,'x','y')</literal> は,変数 <literal>x,y</literal>のみを読み込ます. + </para> + <para> + <literal>load(fd,'x','y')</literal> は,変数 <literal>x,y</literal>のみを読み込みます. + <emphasis role="bold">このプロトタイプは廃止予定であり,Scilab 6では削除されます.</emphasis>. + </para> + <para> + Scilab 5シリーズと6シリーズの間でフォーマットの変更が決められました. + これは,5形式は文書化されておらず,仕様が既定されておらず,読み込むことが困難であったためです. + SOD (Scilab 6 のデフォルト形式)は完全に文書化され,HDF5ライブラリまたはアプリケーションにより + 容易に読み込むことができます. + </para> + <para> + 書き込まれたファイルは他のオペレーティングシステムやアーキテクチャ + (リトルおよびビッグインディアン)に対する可搬性があります. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +// Scilab 5 ファミリーまでで可読なバイナリ形式 +a=eye(2,2);b=ones(a); +save('vals.dat',a,b); +clear a +clear b +load('vals.dat','a','b'); +// Scilab 5.4.X および Scilab 6 ファミリーの両方で可読なバイナリ形式 +a=eye(2,2);b=ones(a); +save("val.sod", "a", "b"); +clear a +clear b +load("val.sod", "a", "b"); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="save">save</link> + </member> + <member> + <link linkend="read">read</link> + </member> + <member> + <link linkend="listvarinfile">listvarinfile</link> + </member> + <member> + <link linkend="save_format">save_format</link> + </member> + <member> + <link linkend="exec">exec</link> + </member> + <member> + <link linkend="mopen">mopen</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>履歴</title> + <revhistory> + <revision> + <revnumber>5.0.0</revnumber> + <revremark> + <link linkend="uimenu">uimenu</link> または <link linkend="uicontrol">uicontrol</link> ハンドルもこの関数で読み込まれます. + </revremark> + </revision> + <revision> + <revnumber>5.4.0</revnumber> + <revdescription> + <itemizedlist> + <listitem> + この関数は,デフォルトでScilab 6 および SOD (Scilab 6形式)を共に + 読み込むことができます. + </listitem> + <listitem>Scilab 5.X 形式は廃止予定であり,Scilab 6で削除されます.</listitem> + <listitem>ファイル記述子を最初の引数とするloadは廃止予定であり,Scilabで削除されます. + </listitem> + </itemizedlist> + </revdescription> + </revision> + </revhistory> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/read.xml b/modules/io/help/ja_JP/read.xml new file mode 100755 index 000000000..d0cbcec8a --- /dev/null +++ b/modules/io/help/ja_JP/read.xml @@ -0,0 +1,162 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="read"> + <refnamediv> + <refname>read</refname> + <refpurpose>行列を読み込む </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>[x]=read(file-desc,m,n,[format]) + [x]=read(file-desc,m,n,k,format) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>file-desc</term> + <listitem> + <para>ファイル名を指定する文字列または論理ユニットを + 指定する整数値(file参照). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>m, n</term> + <listitem> + <para>整数 (行列 xの次元). + 行の数が未知の場合には m=-1を設定します. + この場合,ファイル全体が読み込まれます. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>format : 文字列,"Fortran" 形式で指定します. </term> + <listitem> + <para>この文字列は右括弧で始まり, + 左括弧で終わる必要があります. format では + 浮動小数点数または文字列編集モードを混用することができません. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>k</term> + <listitem> + <para>整数または整数のベクトル</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + ファイル<literal>file-desc</literal> (文字列または整数)から + <literal>mxn</literal> 行列 <literal>x</literal> + (文字連鎖の場合,<literal>n=1</literal>)を行毎に読み込みます. + 行列<literal>x</literal>の各行は, + <literal>file-desc</literal>ファイルの新しい行で + 始まります. + <literal>format</literal>に基づき, + <literal>x</literal>行列の指定した行は + <literal>file-desc</literal>ファイルの複数の行から読み込む + ことができます. + </para> + <para> + 結果の型は指定されたformatに依存します. + formatが<literal>(d,e,f,g)</literal>記述子のみを有する場合, + この関数は数値データを読み込みます(結果は実数の行列です). + </para> + <para> + format が <literal>a</literal>記述子のみを含む場合, + この関数は文字列を読み込みます + (結果は文字列列ベクトルです). + この場合, n は1である必要があります. + 警告: 文字列の長さが 4093 よりも長い場合,丸められます. + </para> + <para> + <literal>format</literal>の例: + </para> + <programlisting role=""><![CDATA[ +(1x,e10.3,5x,3(f3.0)) +(10x,a20) + ]]></programlisting> + <para> + formatが省略された場合,データが数値フリー形式で読み込まれます: + 空白,カンマおよびスラッシュをデータセパレータとして + 使用でき, + 値 v が n 回現れることを指定するためにn*v を使用できます. + </para> + <para> + 読み込むレコード数のベクトル(行毎に1レコード)である + パラメータ<literal>k</literal>を使用する場合, + ファイルの直接アクセスを使用できます. + この場合,<literal>m</literal> は + <literal>m=prod(size(k))</literal>となります. + </para> + <para> + キーボードから読み込むには, + <literal>read(%io(1),...)</literal>を使用してください. + </para> + </refsection> + <refsection> + <title>注意</title> + <para> + データファイルの最後の行は, + 認識されるために,改行で終わる必要があります. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then unix('del foo'); +else unix('rm -f foo'); end +A=rand(3,5); write('foo',A); +B=read('foo',3,5) +B=read('foo',-1,5) +read(%io(1),1,1,'(a)') // ユーザ入力を待つ + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="write">load</link> + </member> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="readb">readb</link> + </member> + <member> + <link linkend="x_dialog">x_dialog</link> + </member> + <member> + <link linkend="mscanf">mscanf</link> + </member> + <member> + <link linkend="mfscanf">mfscanf</link> + </member> + <member> + <link linkend="msscanf">msscanf</link> + </member> + <member> + <link linkend="fscanfMat">fscanfMat</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/read4b.xml b/modules/io/help/ja_JP/read4b.xml new file mode 100755 index 000000000..05fed956d --- /dev/null +++ b/modules/io/help/ja_JP/read4b.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="read4b"> + <refnamediv> + <refname>read4b</refname> + <refpurpose>fortran ファイルバイナリの読み込み</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>x=read4b(file-name,m,n [,rec])</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>文字列または整数</para> + </listitem> + </varlistentry> + <varlistentry> + <term>m, n</term> + <listitem> + <para>整数 (行列 xの次元). 行数が未知の場合, m=-1 を指定してください, + この場合,ファイル全体が読み込まれます + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>rec</term> + <listitem> + <para> + 正の整数のベクトル. + 直接アクセス用に選択されたレコード. + このベクトルの大きさは指定する<literal>x</literal>の行の数に等しい必要があります. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + ファイル<literal>file-name</literal>から + 行列<literal>x</literal>をバイナリ形式で読み込みます. + 行列のエントリは4バイトワードで保存されていると仮定されます. + </para> + <para> + 直接レコードアクセスの場合,record_lengthを設定するために + ファイルは<literal>file</literal>関数によりオープンされている + 必要があります. + <literal>file-name</literal> は<literal>file</literal> + 関数の結果である必要があります. + </para> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="writb">writb</link> + </member> + <member> + <link linkend="mget">mget</link> + </member> + <member> + <link linkend="write4b">write4b</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/readb.xml b/modules/io/help/ja_JP/readb.xml new file mode 100755 index 000000000..f2c5bc977 --- /dev/null +++ b/modules/io/help/ja_JP/readb.xml @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="readb"> + <refnamediv> + <refname>readb</refname> + <refpurpose>fortranファイルバイナリの読み込み</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>x=readb(file-name,m,n [,rec])</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>文字列または整数</para> + </listitem> + </varlistentry> + <varlistentry> + <term>m, n</term> + <listitem> + <para>整数 (行列 xの次元). 行数が不明の場合は m=-1 を指定してください. + この場合,ファイル全体が読み込まれます. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>rec</term> + <listitem> + <para>正の整数のベクトル. + 直接アクセス用に選択されたレコード. + このベクトルの大きさは指定する<literal>x</literal>の行の数に等しい必要があります. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + ファイル<literal>file-name</literal>から行列<literal>x</literal>を + バイナリ形式で読み込みます. + 行列のエントリは8バイトワードで保存されていると仮定されます. + </para> + <para> + 直接レコードアクセスの場合,record_lengthを設定するために + ファイルは<literal>file</literal>関数によりオープンされている + 必要があります. + <literal>file-name</literal> は<literal>file</literal> + 関数の結果である必要があります. + </para> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="writb">writb</link> + </member> + <member> + <link linkend="mget">mget</link> + </member> + <member> + <link linkend="read4b">read4b</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/save.xml b/modules/io/help/ja_JP/save.xml new file mode 100755 index 000000000..dd359a7dc --- /dev/null +++ b/modules/io/help/ja_JP/save.xml @@ -0,0 +1,174 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="save" xml:lang="ja"> + <refnamediv> + <refname>save</refname> + <refpurpose>バイナリファイルに1個または複数の変数を保存する</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>save(filename [,x1,x2,...,xn]) + save(fd [,x1,x2,...,xn]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>filename</term> + <listitem> + <para>ファイルのパスを含む文字列</para> + </listitem> + </varlistentry> + <varlistentry> + <term>fd</term> + <listitem> + <para>mopenをコールすることにより得られたファイル記述子</para> + </listitem> + </varlistentry> + <varlistentry> + <term>xi</term> + <listitem> + <para>任意のScilab変数</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + <literal>save</literal>コマンドはカレントのScilab変数を + バイナリファイルに保存する際に使用されます. + 変数がグラフィックハンドルの場合, + <literal>save</literal>関数は対応する<link linkend="graphics_entities">graphics_entities</link>の定義を全て保存します. + </para> + <para> + ファイルはパスまたは<literal>mopen</literal>により得られたファイル記述子の + どちらかで指定できます. + </para> + <para> + <literal>save(filename)</literal> は<literal>filename</literal>で指定したファイルに + カレントの全ての変数を保存します. + </para> + <para> + <literal>save(fd)</literal>は記述子<literal>fd</literal>で指定したファイルに + カレントの全ての変数を保存します. + <emphasis role="bold">このプロトタイプは廃止予定であり、 + Scilab 6では削除されます. + </emphasis> + </para> + <para> + (実行環境の変数<literal>x</literal> および <literal>y</literal> を指定した) + <literal>save(filename,x,y)</literal> または <literal>save(fd,x,y)</literal> は + <literal>x</literal> および <literal>y</literal>という名前の変数のみを保存します. + <literal>save(fd,x,y)</literal> <emphasis role="bold"> は廃止予定であり, + Scilab 6では削除されます. + </emphasis> + </para> + <para> + (実行環境の変数名 <literal>"x"</literal> および <literal>"y"</literal> を指定した) + <literal>save(filename,"x","y")</literal> は(HDF5に基づく)SOD (Scilab Open Data)形式で + データを保存します.このフォーマットは Scilab 6シリーズで読むことができます. + </para> + <para> + Scilab 5シリーズと6シリーズの間でフォーマットの変更が決められました. + これは,5形式は文書化されておらず,仕様が既定されておらず,読み込むことが困難であったためです. + SOD (Scilab 6 のデフォルト形式)は完全に文書化され,HDF5ライブラリまたはアプリケーションにより + 容易に読み込むことができます. + </para> + <para> + 保存された変数は + <literal> + <link linkend="load">load</link> + </literal> + コマンドにより再度読み込むことができます. + </para> + <para>書き込まれたファイルは他のオペレーティングシステムやアーキテクチャ(リトルおよびビッグインディアン)に + 対する可搬性があります. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +// Scilab 5 ファミリーまでで可読なバイナリ形式 +a=eye(2,2);b=ones(a); +save('val.dat',a,b); +clear a +clear b +load('val.dat','a','b'); +// ファイルにシーケンシャルに保存 +fd=mopen('TMPDIR/foo','wb') +for k=1:4, x=k^2;save(fd,x,k),end +mclose(fd) +fd=mopen('TMPDIR/foo','rb') +for i=1:4, load(fd,'x','k');x,k,end +mclose(fd) +// 変数を既存のファイルに追加 +fd=mopen('TMPDIR/foo','rb+') +mseek(0,fd,'end') +lst=list(1,2,3) +save(fd,lst) +mclose(fd) +// Scilab 5.4.X および Scilab 6 ファミリーで可読なバイナリ形式 +a=eye(2,2);b=ones(a); +save("val.sod", "a", "b"); +clear a +clear b +load("val.sod", "a", "b"); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="load">load</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="save_format">save_format</link> + </member> + <member> + <link linkend="mopen">mopen</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>履歴</title> + <revhistory> + <revision> + <revnumber>5.0.0</revnumber> + <revremark> + <link linkend="uimenu">uimenu</link> または + <link linkend="uicontrol">uicontrol</link> ハンドルもこの関数で保存されます. + </revremark> + </revision> + <revision> + <revnumber>5.4.0</revnumber> + <revdescription> + <itemizedlist> + <listitem> + 変数名(文字列)を入力とする場合,変数はScilab 6ファミリーで可読な + SOD形式で保存されます. + </listitem> + <listitem>Scilab 5.X形式は廃止予定であり,Scilab 6で削除されます.</listitem> + <listitem> + ファイル記述子を入力引数とするsaveは廃止予定であり,Scilab 6で削除されます. + </listitem> + </itemizedlist> + </revdescription> + </revision> + </revhistory> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/setenv.xml b/modules/io/help/ja_JP/setenv.xml new file mode 100755 index 000000000..3608e6a06 --- /dev/null +++ b/modules/io/help/ja_JP/setenv.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="setenv"> + <refnamediv> + <refname>setenv</refname> + <refpurpose>環境変数の値を設定e</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>rep=setenv(name, value )</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>name</term> + <listitem> + <para>環境変数の名前を指す. (name は文字列)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>value</term> + <listitem> + <para>環境変数に代入される値を指す. (value は文字列)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rep</term> + <listitem> + <para>okの場合に %T, それ以外の場合に %F.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para>環境変数の値を設定します.</para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +setenv('toto','example') +getenv('toto') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="getenv">getenv</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/unix.xml b/modules/io/help/ja_JP/unix.xml new file mode 100755 index 000000000..dabe9967c --- /dev/null +++ b/modules/io/help/ja_JP/unix.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) XXXX-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 + * + --> +<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="unix"> + <refnamediv> + <refname>unix</refname> + <refpurpose>シェル (sh) コマンドを実行 + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>stat=unix(command-name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>command-name</term> + <listitem> + <para>Unix sh 命令を含む文字列</para> + </listitem> + </varlistentry> + <varlistentry> + <term>stat</term> + <listitem> + <para>整数フラグ</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + sh シェルにより実行するために文字列<literal>command-name</literal>を + Unixに送信します. + シェルコマンドの標準出力と標準エラーが呼び出し側のシェルに書き込まれます. + Unixがコールされない場合(十分なシステムメモリが有効でない場合)に -1 または sh + のリターンコードが返されます. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +if getos() <> 'Windows' then + unix("ls $SCI/demos"); +end +function wd=directory() + if getos() == 'Windows' then + unix('cd>'+TMPDIR+'\path'); + else + unix('pwd>'+TMPDIR+'/path'); + end + wd=read(TMPDIR+'/path',1,1,'(a)'); +endfunction +wd=directory() + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="host">host</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/unix_g.xml b/modules/io/help/ja_JP/unix_g.xml new file mode 100755 index 000000000..00fe344b3 --- /dev/null +++ b/modules/io/help/ja_JP/unix_g.xml @@ -0,0 +1,97 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="unix_g" xml:lang="ja"> + <refnamediv> + <refname>unix_g</refname> + <refpurpose>シェル (sh)コマンドを実行, 出力を変数にリダイレクト</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>rep=unix_g(cmd) + [rep,stat]=unix_g(cmd) + [rep,stat,stderr]=unix_g(cmd) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>cmd</term> + <listitem> + <para>文字列</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rep</term> + <listitem> + <para>文字列の列ベクトル (標準出力)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>stat</term> + <listitem> + <para>整数, エラーステータス. エラーが発生しない場合, stat=0</para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>文字列の列ベクトル (標準エラー)</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + shシェルで実行する文字列 <literal>cmd</literal> をUnixに送信します. + 標準出力はScilab変数<literal>rep</literal>にリダイレクトされます. + 標準エラーはScilab変数 err にリダイレクトされるか,出力引数が2つのみの場合に表示されます. + Unixの実行エラーはトラップされます; *注意* + コマンドのリストを ";" で区切った場合, + 最後のシェルコマンドエラーのみが + リポートされます.これは推奨されません. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +function d=DIR(path) + path=pathconvert(path,%t,%t) + if getos() == 'Windows' then + d=unix_g('dir '+path) + else + d=unix_g('ls '+path) + end +endfunction +DIR('SCI/etc') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/unix_s.xml b/modules/io/help/ja_JP/unix_s.xml new file mode 100755 index 000000000..65239eace --- /dev/null +++ b/modules/io/help/ja_JP/unix_s.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="unix_s"> + <refnamediv> + <refname>unix_s</refname> + <refpurpose>シェル (sh)コマンドを実行, 出力なし</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>unix_s(cmd)</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>cmd</term> + <listitem> + <para>文字列</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + shシェルで実行する文字列 <literal>cmd</literal>を Unixに送信します. + 標準出力は /dev/null にリダイレクトされます. + Unix実行エラーはトラップされます; *注意* + コマンドのリストを ";" で区切った場合, + 最後のシェルコマンドエラーのみが + リポートされます.これは推奨されません. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then + unix_s("del foo"); +else + unix_s("rm -f foo"); +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/unix_w.xml b/modules/io/help/ja_JP/unix_w.xml new file mode 100755 index 000000000..1b597fa89 --- /dev/null +++ b/modules/io/help/ja_JP/unix_w.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="unix_w"> + <refnamediv> + <refname>unix_w</refname> + <refpurpose>シェル (sh) コマンドを実行, 出力をScilabウインドウにリダイレクトする</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>unix_w(cmd)</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>cmd</term> + <listitem> + <para>文字列</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + shシェルで実行する文字列 <literal>cmd</literal> を Unixに送信します . + 標準出力はScilabウインドウにリダイレクトされます. + Unix実行エラーはトラップされます; *注意* + コマンドのリストを ";" で区切った場合, + 最後のシェルコマンドエラーのみが + リポートされます.これは推奨されません. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then + unix_w("dir "+'""'+WSCI+"\modules"+'""'); +else + unix_w("ls $SCI/modules"); +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/unix_x.xml b/modules/io/help/ja_JP/unix_x.xml new file mode 100755 index 000000000..f53bb0997 --- /dev/null +++ b/modules/io/help/ja_JP/unix_x.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="unix_x"> + <refnamediv> + <refname>unix_x</refname> + <refpurpose>シェル (sh) コマンドを実行, 出力はウインドウにリダイレクト + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>unix_x(cmd)</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>cmd</term> + <listitem> + <para>文字列</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + shシェルで実行する文字列 <literal>cmd</literal> を Unix に送信します. + 標準出力はウインドウにリダイレクトされます. + Unix実行エラーはトラップされます; *注意* + コマンドのリストを ";" で区切った場合, + 最後のシェルコマンドエラーのみが + リポートされます.これは推奨されません. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then + unix_x("dir "+""""+WSCI+"modules\graphics\demos"+""""); +else + unix_x("ls $SCI/modules/graphics/demos"); +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/writb.xml b/modules/io/help/ja_JP/writb.xml new file mode 100755 index 000000000..18534a860 --- /dev/null +++ b/modules/io/help/ja_JP/writb.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 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 + * + --> +<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="writb"> + <refnamediv> + <refname>writb</refname> + <refpurpose>fortranファイルへのバイナリ形式の書き込み</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>writb(file-name,a [,rec])</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>文字列または整数</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rec</term> + <listitem> + <para>正の整数のベクトル. + 直接アクセス用に選択されたレコード. + このベクトルの大きさは<literal>a</literal>の行の数に等しい必要があります. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + 行列<literal>a</literal>をファイル<literal>'filename'</literal>に + バイナリ形式で書き込みます. + 行列のエントリは4バイトワードで書き込まれます. + </para> + <para> + 直接レコードアクセスの場合,record_lengthを設定するために + ファイルは<literal>file</literal>関数によりオープンされている + 必要があります. + <literal>file-name</literal> は<literal>file</literal> + 関数の結果である必要があります. + </para> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="readb">readb</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="mput">mput</link> + </member> + <member> + <link linkend="write4b">write4b</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/write.xml b/modules/io/help/ja_JP/write.xml new file mode 100755 index 000000000..6c93be046 --- /dev/null +++ b/modules/io/help/ja_JP/write.xml @@ -0,0 +1,143 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="write" xml:lang="ja"> + <refnamediv> + <refname>write</refname> + <refpurpose>フォーマットされたファイルに書き込む</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>write(file-desc,a,[format]) + write(file-desc,a,k,format) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>file-desc</term> + <listitem> + <para>ファイル名を指定する文字列または論理ユニットを + 指定する整数値 (file 参照). + </para> + <para>この関数はUTFのファイル名をオープンすることができません. + この場合は mopen を使用してください. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>a</term> + <listitem> + <para>実数行列または文字列の列ベクトル.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>format</term> + <listitem> + <para>文字列, "Fortran" 形式を指定します. この文字列は + 右括弧で始まり,左括弧で終わります. + 形式には浮動小数点数, 整数または文字編集モードを混ぜることは + できません. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>k</term> + <listitem> + <para>整数ベクトル</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + 実数行列または文字列の列ベクトルを整形されたファイルに + 行毎に書き込みます. + 引数<literal>a</literal>の各行は, + <literal>file-desc</literal>ファイルの新しい行で始まります. + <literal>format</literal> に基づき + <literal>a</literal>引数の指定した行が + <literal>file-desc</literal>ファイルの複数行に書き込まれます. + </para> + <para> + Formatの例 : <literal>(1x,e10.3,5x,3(f3.0))</literal> , + <literal>(10x,a20)</literal> ; + </para> + <para>詳細はFortranブックを参照ください.</para> + <para>直接アクセスファイル : + <literal>x=write(file_desc,a,k,format)</literal>. ここで + <literal>k</literal> はレコードのベクトルです (行毎に1レコード, すなわち, + <literal>m=prod(size(k)</literal>) + </para> + <para> + <literal>write(%io(2),....)</literal> は Scilabのウインドウを書き込みます. + この場合,<literal>format</literal>は + 行列の各行について1行出力する必要があります. + この拘束条件が確認できない場合,予測できない結果となる可能性があります. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then unix('del asave'); +else unix('rm -f asave'); end +A=rand(5,3); write('asave',A); A=read('asave',5,3); +write(%io(2),A,'('' | '',3(f10.3,'' | ''))') +write(%io(2),string(1:10)) +write(%io(2),strcat(string(1:10),',')) +write(%io(2),1:10,'(10(i2,3x))') +if getos() == 'Windows' then unix('del foo'); +else unix('rm -f foo'); end +write('foo',A) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="read">read</link> + </member> + <member> + <link linkend="save">save</link> + </member> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="fileinfo">fileinfo</link> + </member> + <member> + <link linkend="writb">writb</link> + </member> + <member> + <link linkend="print">print</link> + </member> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="mfprintf">mfprintf</link> + </member> + <member> + <link linkend="mprintf">mprintf</link> + </member> + <member> + <link linkend="msprintf">msprintf</link> + </member> + <member> + <link linkend="fprintfMat">fprintfMat</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ja_JP/write4b.xml b/modules/io/help/ja_JP/write4b.xml new file mode 100755 index 000000000..856762b1d --- /dev/null +++ b/modules/io/help/ja_JP/write4b.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="write4b"> + <refnamediv> + <refname>write4b</refname> + <refpurpose>fortranファイルバイナリ書き込み</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>write4b(file-name,a [,rec])</synopsis> + </refsynopsisdiv> + <refsection> + <title>パラメータ</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>文字列または整数</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rec</term> + <listitem> + <para>正の整数のベクトル. + 直接アクセス用に選択されたレコード. + このベクトルの大きさは<literal>a</literal>の行の数に等しい必要があります. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + 行列<literal>a</literal> をファイル<literal>'filename'</literal>に + バイナリ形式で書き込みます. + 行列のエントリは8バイトワードで保存されます. + </para> + <para> + 直接レコードアクセスの場合,record_lengthを設定するために + ファイルは<literal>file</literal>関数によりオープンされている + 必要があります. + <literal>file-name</literal> は<literal>file</literal> + 関数の結果である必要があります. + </para> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="readb">readb</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="mput">mput</link> + </member> + <member> + <link linkend="read4b">read4b</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/addchapter.sce b/modules/io/help/pt_BR/addchapter.sce new file mode 100755 index 000000000..db463b470 --- /dev/null +++ b/modules/io/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("Funções de Entrada/Saída",SCI+"/modules/io/help/pt_BR",%T); + diff --git a/modules/io/help/pt_BR/file.xml b/modules/io/help/pt_BR/file.xml new file mode 100755 index 000000000..9b5261275 --- /dev/null +++ b/modules/io/help/pt_BR/file.xml @@ -0,0 +1,347 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="file" xml:lang="en"> + <refnamediv> + <refname>file</refname> + <refpurpose>Gerenciamento de arquivos</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>[unit [,err]]=file('open', file-name [,status] [,access [,recl]] [,format]) + file(action,unit) + [units [,typ [,nams [,mod [,swap]]]]] = file([unit]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>string, nome o arquivo a ser aberto</para> + </listitem> + </varlistentry> + <varlistentry> + <term>status</term> + <listitem> + <para>string, o status do arquivo a ser aberto</para> + <variablelist> + <varlistentry> + <term>"new"</term> + <listitem> + <para>o arquivo no deve existir, novo arquivo (padro)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"old"</term> + <listitem> + <para>o arquivo j deve existir</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"unknown"</term> + <listitem> + <para>status desconhecido</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"scratch"</term> + <listitem> + <para>o arquivo deve ser deletado ao fim da sesso</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>access</term> + <listitem> + <para>string, o tipo de acesso ao arquivo</para> + <variablelist> + <varlistentry> + <term>"sequential"</term> + <listitem> + <para>acesso seqencial (padro)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"direct"</term> + <listitem> + <para>acesso direto</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>format</term> + <listitem> + <para>string,</para> + <variablelist> + <varlistentry> + <term>"formatted"</term> + <listitem> + <para>para um arquivo formatado (padro)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"unformatted"</term> + <listitem> + <para>registro binrio</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>recl</term> + <listitem> + <para>inteiro, o tamanho de registros quando + <literal>access="direct"</literal> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>unit</term> + <listitem> + <para>inteiro, descritor de unidade lgica do arquivo aberto</para> + </listitem> + </varlistentry> + <varlistentry> + <term>units</term> + <listitem> + <para>vetor de inteiros, descritores de unidades lgicas dos + arquivos abertos. As unidades 5 e 6 so reservadas pelo sistema para + dispositivos de entrada e sada. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>typs</term> + <listitem> + <para>vetor de strings, tipo (C ou Fortran) dos arquivos + abertos. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>nams</term> + <listitem> + <para>vetor de strings, endereos dos arquivos abertos.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>mod</term> + <listitem> + <para>modo de abertura de arquivo. Formado por trs dgitos + abc + </para> + <variablelist> + <varlistentry> + <term>Arquivos Fortran</term> + <listitem> + <variablelist> + <varlistentry> + <term>a</term> + <listitem> + <para>0 significa formatado e 1 no formatado + (binrio) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>b</term> + <listitem> + <para>0 significa acesso sequencial e 1 acesso + direto + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>c</term> + <listitem> + <para>0 significa "new", 1 significa "old", 2 significa + "scratch" e 3 significa "unknown" + </para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>Arquivos C</term> + <listitem> + <variablelist> + <varlistentry> + <term>a</term> + <listitem> + <para>1 significa "r" (leitura), 2 significa "w" + (escrita) e 3 significa "a" (anexao) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>b</term> + <listitem> + <para> 1 se o arquivo foi aberto pelo modo "+" + (atualizao) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>c</term> + <listitem> + <para> 1 se o arquivo foi aberto pelo modo "b" + (binrio) + </para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>swap</term> + <listitem> + <para>alavanca de troca automtica. swap=1 se a troca automtica + estiver ativada. swap sempre 0 para arquivos Fortran. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>inteiro, nmero de mensagem de erro (ver error), se a abertura + falha. Se err for omitido, uma mensagem de erro aparece. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>action</term> + <listitem> + <para> um dos seguintes strings:</para> + <variablelist> + <varlistentry> + <term>"close"</term> + <listitem> + <para>fecha os arquivos fornecidos pelos descritores de + unidades lgicas fornecidos em <literal>units</literal> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>"rewind"</term> + <listitem> + <para>coloca o ponteiro no incio do arquivo</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"backspace"</term> + <listitem> + <para>coloca o ponteiro no incio do ltimo registro.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"last"</term> + <listitem> + <para>coloca o ponteiro aps o ltimo registro.</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + Seleciona uma unidade lgica <literal>unit</literal> e gerencia o + arquivo <literal>file-name</literal>. + </para> + <para> + <literal>[unit [,err]]=file('open', file-name [,status] [,access + [,recl]][,format]) + </literal> + permite abrir um arquivo com propriedades + especificadas e obter o nmero de unidade associado + <literal>unit</literal>. Este nmero de unidade pode ser utilizado para + aes futuras no arquivo, ou como descritor de arquivo em chamadas s + funes <literal>read</literal>, <literal>write</literal>, + <literal>readb</literal>, + <literal>writb</literal>,<literal>save</literal>, + <literal>load</literal>. + </para> + <para> + <literal>file(action,unit)</literal> permite fechar o arquivo, ou + mover o ponteiro do arquivo corrente. + </para> + <para> + <literal>file()</literal> retorna os descritores de unidades lgicas + dos arquivos abertos. So <literal>file('close',file() )</literal> fecha + todos os arquivos do usurio abertos (tipo C ou Fortran). + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +u=file('open',TMPDIR+'/foo','unknown') +for k=1:4 + a=rand(1,4) + write(u,a) +end +file('rewind',u) +x=read(u,2,4) +file('close',u) +// +u1=file('open',TMPDIR+'/foo','unknown') +u2=mopen(TMPDIR+'/foo1','wb') +[units,typs,nams]=file() +file('close',u1); +mclose(u2); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="save">save</link> + </member> + <member> + <link linkend="load">load</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="read">read</link> + </member> + <member> + <link linkend="writb">writb</link> + </member> + <member> + <link linkend="readb">readb</link> + </member> + <member> + <link linkend="uigetfile">uigetfile</link> + </member> + <member> + <link linkend="mopen">mopen</link> + </member> + <member> + <link linkend="mclose">mclose</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/getenv.xml b/modules/io/help/pt_BR/getenv.xml new file mode 100755 index 000000000..c04929d43 --- /dev/null +++ b/modules/io/help/pt_BR/getenv.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="getenv" xml:lang="en"> + <refnamediv> + <refname>getenv</refname> + <refpurpose>retorna o valor de uma varivel de ambiente</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>env=getenv(str [, rep] )</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>string especificando o nome da varivel de ambiente; rep : um + string opcional. Quando este valor opcional usado, a funo + <literal>getenv</literal> retorna o valor <literal>rep</literal> + quando a varivel de ambiente <literal>str</literal> no + encontrada. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>env</term> + <listitem> + <para>string que contm o valor da varivel de ambiente</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para>Retorna o valor de uma varivel de ambiente, se existir.</para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +getenv('SCI') +getenv('FOO','foo') + ]]></programlisting> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/getio.xml b/modules/io/help/pt_BR/getio.xml new file mode 100755 index 000000000..ca48068c9 --- /dev/null +++ b/modules/io/help/pt_BR/getio.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="getio" xml:lang="en"> + <refnamediv> + <refname>getio</refname> + <refpurpose>retorno de unidades lgicas de entrada/sada do + Scilab + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>ios=getio()</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>ios</term> + <listitem> + <para>um vetor [rio rte wio wte]</para> + <variablelist> + <varlistentry> + <term>rio</term> + <listitem> + <para>unidade lgica corrente para leitura de + instrues + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>rte</term> + <listitem> + <para>unidade lgica designada para entrada na janela do + Scilab + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>wio</term> + <listitem> + <para>unidade lgica relativa ao arquivo de dirio, se houer. + wio=0 significa que nenhum arquivo de dirio foi aberto + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>wte</term> + <listitem> + <para>unidade lgica designada para sada na janela do + Scilab + </para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>getio</literal> retorna unidades lgicas designadas para + entrada e sada principais no Scilab. + </para> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="exec">exec</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/getpid.xml b/modules/io/help/pt_BR/getpid.xml new file mode 100755 index 000000000..f64cc558f --- /dev/null +++ b/modules/io/help/pt_BR/getpid.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="getpid" xml:lang="en"> + <refnamediv> + <refname>getpid</refname> + <refpurpose>Retorna o identificador do processo Scilab</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>id=getpid()</synopsis> + </refsynopsisdiv> + <refsection> + <title>Descrio</title> + <para>Retorna retorna um inteiro correspondente ao identificador do + processo Scilab. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +d='SD_'+string(getpid())+'_' + ]]></programlisting> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/getscilabkeywords.xml b/modules/io/help/pt_BR/getscilabkeywords.xml new file mode 100755 index 000000000..5c61a5cda --- /dev/null +++ b/modules/io/help/pt_BR/getscilabkeywords.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="getscilabkeywords" xml:lang="en"> + <refnamediv> + <refname>getscilabkeywords</refname> + <refpurpose>retorna uma lista com todas as palavras-chave do + Scilab + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>list_keywords=getscilabkeywords()</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>list_keywords</term> + <listitem> + <para>uma lista</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para>list_keywords(1) : primitivas</para> + <para>list_keywords(2) : comandos</para> + <para>list_keywords(3) : variveis predefinidas</para> + <para>list_keywords(4) : funes Scilab</para> + <para>list_keywords(5) : funes xcos</para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +list_keywords = getscilabkeywords(); +primitives = list_keywords(1) +commands = list_keywords(2) +predef_var = list_keywords(3) +scilab_functions = list_keywords(4) +xcos_functions = list_keywords(5) + ]]></programlisting> + </refsection> + <refsection> + <title>Autores</title> + <para>A.C, adaptado do cdigo de Enrico Segre's no Scipad.</para> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/halt.xml b/modules/io/help/pt_BR/halt.xml new file mode 100755 index 000000000..09e91d5ef --- /dev/null +++ b/modules/io/help/pt_BR/halt.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="halt" xml:lang="en"> + <refnamediv> + <refname>halt</refname> + <refpurpose>para execuo</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>halt() + halt('a message') + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Descrio</title> + <para>Para execuo at a entrada de algo no teclado.</para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +halt('Press a key') + +halt() + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="pause">pause</link> + </member> + <member> + <link linkend="return">return</link> + </member> + <member> + <link linkend="exec">exec</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/host.xml b/modules/io/help/pt_BR/host.xml new file mode 100755 index 000000000..c3b0d6755 --- /dev/null +++ b/modules/io/help/pt_BR/host.xml @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="host" xml:lang="en"> + <refnamediv> + <refname>host</refname> + <refpurpose>execuo de comandos do Unix ou DOS</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>stat=host(command-name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>command-name</term> + <listitem> + <para>um string contendo uma instruo sh Unix </para> + </listitem> + </varlistentry> + <varlistentry> + <term>stat</term> + <listitem> + <para>um flag ("indicador") inteiro </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + Envia um string <literal>command-name</literal> para o Unix para + execuo pelo interpretador de comando (sh em Unix, ou command.com em + DOS). As sadas e os erros padres do comando do shell so escritos no + shell chamado. <literal>stat</literal> fornece -1 se o "host" (significa + "anfitrio") no pode ser chamado (memria disponvel do sistema + insuficiente) ou se o interpretador de comando retorna o cdigo. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +//criando uma funo getdir baseda no host +function wd=getdir() + if getos() == 'Windows' then + host('cd>'+TMPDIR+'\path'); + else + host('pwd>'+TMPDIR+'/path'); + end + wd=read(TMPDIR+'/path',1,1,'(a)') +endfunction +//chamando-a +wd=getdir() + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/input.xml b/modules/io/help/pt_BR/input.xml new file mode 100755 index 000000000..edc602159 --- /dev/null +++ b/modules/io/help/pt_BR/input.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="input" xml:lang="en"> + <refnamediv> + <refname>input</refname> + <refpurpose>prompt para entrada do usurio</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>x = input(message [, "string"])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>message</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"string"</term> + <listitem> + <para> + string <literal>"string"</literal> (pode ser abreviado para + <literal>"s"</literal>) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>x</term> + <listitem> + <para> + nmero real (ou string se <literal>"string"</literal> estiver + na seqncia de chamamento) + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>input(message)</literal> fornece ao usurio o prompt no + string de texto e ento espera por entrada no teclado. A entrada pode ser + a expresso avaliada por <link linkend="evstr">evstr</link>. Se apenas um + retorno-de-carro for fornecido no prompt, + <literal>input(message)</literal> retorna uma matriz vazia. + </para> + <para>Chamado com dois argumentos, a sada um string que a expresso + fornecida pelo teclado. Se apenas um retorno de carro for fornecido, + <literal>input(message)</literal> retorna um nico espao em branco + <literal>" "</literal>. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +//x=input("Quantas iteraes") +//x=input("Qual o seu nome?","string") + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="evstr">evstr</link> + </member> + <member> + <link linkend="x_dialog">x_dialog</link> + </member> + <member> + <link linkend="x_mdialog">x_mdialog</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/load.xml b/modules/io/help/pt_BR/load.xml new file mode 100755 index 000000000..7dfebb886 --- /dev/null +++ b/modules/io/help/pt_BR/load.xml @@ -0,0 +1,108 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="load" xml:lang="en"> + <refnamediv> + <refname>load</refname> + <refpurpose>carrega varivel salva</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>load(filename [,x1,...,xn]) + load(fd [,x1,...,xn]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>filename</term> + <listitem> + <para>string contendo o endereo do arquivo</para> + </listitem> + </varlistentry> + <varlistentry> + <term>fd</term> + <listitem> + <para>descritor de arquivo fornecido por uma chamada a mopen</para> + </listitem> + </varlistentry> + <varlistentry> + <term>xi</term> + <listitem> + <para>nome(s) de variveis Scilab arbitrrias fornecidos como + strings + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + O comando <literal>load</literal> pode ser utilizado para recarregar + no Scilab variveis de sesso previamente gravadas com o comando + <literal>save</literal>. Se o arquivo contm variveis correspondentes a + manipuladores grficos, as <link linkend="graphics_entities">graphics_entities</link> (entidades grficas) + correspondentes so desenhados. + </para> + <para> + Desde o Scilab 5.0, todos os manipuladores <link linkend="uimenu">uimenu</link> ou <link linkend="uicontrol">uicontrol</link> tambm so desenhados. + </para> + <para> + <literal>load(filename)</literal> carrega variveis no arquivo dado + pelo endereo <literal>filename</literal>. + </para> + <para> + <literal>load(fd)</literal> carrega variveis no arquivo fornecido + pelo seu descritor <literal>fd</literal>. + </para> + <para> + <literal>load(filename,'x','y')</literal> ou + <literal>load(fd,'x','y')</literal> carrega apenas as variveis + <literal>x,y</literal>. + </para> + <para>Mesmo que o formato de arquivo binrio tenha mudado na verso 2.5, + <literal>load(filename,...)</literal> capaz de ler formatos antigos. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +a=eye(2,2);b=ones(a); +save('vals.dat',a,b); +clear a +clear b +load('vals.dat','a','b'); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="save">save</link> + </member> + <member> + <link linkend="listvarinfile">listvarinfile</link> + </member> + <member> + <link linkend="save_format">save_format</link> + </member> + <member> + <link linkend="exec">exec</link> + </member> + <member> + <link linkend="mopen">mopen</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/read.xml b/modules/io/help/pt_BR/read.xml new file mode 100755 index 000000000..2f3f8fbc9 --- /dev/null +++ b/modules/io/help/pt_BR/read.xml @@ -0,0 +1,151 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-2008 - INRIA + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="read" xml:lang="en"> + <refnamediv> + <refname>read</refname> + <refpurpose>Leitura de matrizes</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>[x]=read(file-desc,m,n,[format]) + [x]=read(file-desc,m,n,k,format) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>file-desc</term> + <listitem> + <para>string especificando o nome do arquivo ou valor inteiro + especificando uma unidade lgica (fortran)(ver <link linkend="file">file</link>). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>m, n</term> + <listitem> + <para>inteiros (dimenses da matriz x). Ajuste m=-1 se voc + desconhece o nmero de linhas, para que todo o arquivo seja + lido. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>format</term> + <listitem> + <para>string, especifica um formato "Fortran". Este string deve + comear com um parntese direito e terminar com um parntese + esquerdo. Formatos no podem misturar pontos flutuantes, inteiros ou + modo de edio de caractere + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>k</term> + <listitem> + <para>inteiro ou vetor de inteiros</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + L linha aps linha a matriz x <literal>mxn</literal> + (<literal>n=1</literal> para cadeia de caracteres) no arquivo + <literal>file-desc</literal> (string ou inteiro). Cada linha da matriz + <literal>x</literal> comea em uma nova linha do arquivo + <literal>file-desc</literal>. Dependendo de <literal>format</literal>, uma + dada linha da matriz <literal>x</literal> pode ser lida de mais de uma + linha do arquivo <literal>file-desc</literal>. + </para> + <para>O tipo do resultado depender do formato especificado. Se format + contm apenas os descritores <literal>(d,e,f,g)</literal> a funo tenta + ler dados numricos (o resultado uma matriz de nmeros reais). + </para> + <para> + Se format contm apenas o descritor <literal>a</literal> a funo + tenta ler strings (o resultado um vetor coluna de strings). Neste caso, + n deve ser igual a 1. Aviso: Os strings sero truncados se tiverem tamanho + maior que 4093. + </para> + <para> + Exemplos para <literal>format</literal>: + </para> + <programlisting role=""><![CDATA[ +(1x,e10.3,5x,3(f3.0)) +(10x,a20) + ]]></programlisting> + <para>Quando format o omitido, os dados so lidos utilizando-se o + formato numrico livre: espaos em branco, vrgulas e barras podem ser + utilizados como separadores de dados, n*v pode ser utilizado para + representar n ocorrncias do valor n. + </para> + <para>Um arquivo de acesso direto pode ser utilzado na presena de um + parmetro <literal>k</literal> que um vetor de nmeros de gravaes a + serem lidas (uma gravao por linha), logo <literal>m</literal> deve ser + <literal>m=prod(size(k))</literal>. + </para> + <para> + Para ler no teclado use <literal>read(%io(1),...)</literal>. + </para> + </refsection> + <refsection> + <title>Observao</title> + <para>A ltima linha de cada arquivo de dados devemser terminada por uma + nova linha (newline) a ser levada em conta. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +mdelete(TMPDIR + '/foo'); +A = rand(3,5); +write(TMPDIR + '/foo', A); +B = read(TMPDIR + '/foo', 3, 5); +B = read(TMPDIR + '/foo', -1, 5); +read(%io(1), 1, 1, '(a)') // espera por entrada do usurio + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="readb">readb</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="x_dialog">x_dialog</link> + </member> + <member> + <link linkend="mscanf">mscanf</link> + </member> + <member> + <link linkend="mfscanf">mfscanf</link> + </member> + <member> + <link linkend="msscanf">msscanf</link> + </member> + <member> + <link linkend="fscanfMat">fscanfMat</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/read4b.xml b/modules/io/help/pt_BR/read4b.xml new file mode 100755 index 000000000..a058d4e64 --- /dev/null +++ b/modules/io/help/pt_BR/read4b.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="read4b" xml:lang="en"> + <refnamediv> + <refname>read4b</refname> + <refpurpose>leitura de arquivo FORTRAN binrio</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>x=read4b(file-name,m,n [,rec])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>string ou inteiro</para> + </listitem> + </varlistentry> + <varlistentry> + <term>m, n</term> + <listitem> + <para>inteiros (dimenses da matriz x). Ajuste m=-1 se voc no sabe + o nmero de linhas, ento todo o arquivo ser lido + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>rec</term> + <listitem> + <para>vetor de inteiros positivos, os registros selecionados para + acesso direto. O tamanho desejado deve ter o mesmo tamanho de + <literal>x</literal> desejado. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + Leitura binria da matriz <literal>x</literal> no arquivo + <literal>file-name</literal>. Supe-se que as entradas da matriz foram + armazenadas em palavras de quatro bytes. + </para> + <para>Para acesso a registros direto, o arquivo deve ter sido previamente + aberto com a funo <literal>file</literal> para se ajustar o comprimento + do registro. <literal>file-name</literal> deve ser o resultado da funo + <literal>file</literal>. + </para> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="writb">writb</link> + </member> + <member> + <link linkend="mget">mget</link> + </member> + <member> + <link linkend="write4b">write4b</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/readb.xml b/modules/io/help/pt_BR/readb.xml new file mode 100755 index 000000000..3e1c10f3e --- /dev/null +++ b/modules/io/help/pt_BR/readb.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="readb" xml:lang="en"> + <refnamediv> + <refname>readb</refname> + <refpurpose>leitura de arquivo FORTRAN binrio</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamemento</title> + <synopsis>x=readb(file-name,m,n [,rec])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>string ou inteiro</para> + </listitem> + </varlistentry> + <varlistentry> + <term>m, n</term> + <listitem> + <para>inteiros (dimenses da matriz x). Ajuste m=-1 se o nmero de + linhas no for conhecido, ento todo arquivo ser lido + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>rec</term> + <listitem> + <para>vetor de inteiros positivos, os registros selecionados para + acesso direto. O tamanho deste vetor deve ser igual ao nmero de + linhas de <literal>x</literal> desejado. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + Leitura binria da matriz <literal>x</literal> no arquivo + <literal>file-name</literal>. Supe-se que as entradas da matriz tenham + sido armazenadas em palavras de 8 bytes. + </para> + <para>Para acesso direto a registros, o arquivo deve ter sido aberto + previamente com a funo <literal>file</literal> para ajustar o + comprimento de registro. <literal>file-name</literal> deve ser o resultado + da funo <literal>file</literal>. + </para> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="writb">writb</link> + </member> + <member> + <link linkend="mget">mget</link> + </member> + <member> + <link linkend="read4b">read4b</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/save.xml b/modules/io/help/pt_BR/save.xml new file mode 100755 index 000000000..ffcc2e2ed --- /dev/null +++ b/modules/io/help/pt_BR/save.xml @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="save" xml:lang="en"> + <refnamediv> + <refname>save</refname> + <refpurpose>salvando variáveis em arquivos binários</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqüência de Chamamento</title> + <synopsis>save(filename [,x1,x2,...,xn]) + save(fd [,x1,x2,...,xn]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parâmetros</title> + <variablelist> + <varlistentry> + <term>filename</term> + <listitem> + <para>string contendo o endereço do arquivo</para> + </listitem> + </varlistentry> + <varlistentry> + <term>fd</term> + <listitem> + <para>descritor do arquivo fornecido por uma chamada a mopen</para> + </listitem> + </varlistentry> + <varlistentry> + <term>xi</term> + <listitem> + <para>variável(is) Scilab arbitrárias</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrição</title> + <para> + O comando <literal>save</literal> pode ser usado para salvar as + variáveis Scilab correntes em um arquivo. Se uma variável é um manipulador + gráfico, a função <literal>save</literal> salva todas as definições de + <link linkend="graphics_entities">graphics_entities</link> (entidades + gráficas) correspondentes. + </para> + <para> + Desde o Scilab 5.0, todos os manipuladores de <link linkend="uimenu">uimenu</link> ou <link linkend="uicontrol">uicontrol</link> também são gravados por esta + função. + </para> + <para>O arquivo pode ser fornecido tanto pelo seu endereço quanto por seu + descritor dado previamente por <literal>mopen</literal>. + </para> + <para> + <literal>save(filename)</literal> salva todas as variáveis correntes + definidas por <literal>filename</literal>. + </para> + <para> + <literal>save(fd)</literal> salva todas as variáveis correntes + definidas pelo descritor <literal>fd</literal>. + </para> + <para> + <literal>save(filename,x,y)</literal> ou + <literal>save(fd,x,y)</literal> salva apenas as variáveis chamadas + <literal>x</literal> e <literal>y</literal>. + </para> + <para>Variáveis salvas podem ser recarregadas através do comando + <literal>load</literal>. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +a=eye(2,2);b=ones(a); +save('val.dat',a,b); +clear a +clear b +load('val.dat','a','b'); + +// gravação seqüêncial em um arquivo +fd=mopen('TMPDIR/foo','wb') +for k=1:4, x=k^2;save(fd,x,k),end +mclose(fd) +fd=mopen('TMPDIR/foo','rb') +for i=1:4, load(fd,'x','k');x,k,end +mclose(fd) + +// anexando variáveis a um arquivo gravado antigo +fd=mopen('TMPDIR/foo','rb+') +mseek(0,fd,'end') +lst=list(1,2,3) +save(fd,lst) +mclose(fd) + ]]></programlisting> + </refsection> + <refsection> + <title>Ver Também</title> + <simplelist type="inline"> + <member> + <link linkend="load">load</link> + </member> + <member> + <link linkend="save_format">save_format</link> + </member> + <member> + <link linkend="mopen">mopen</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/setenv.xml b/modules/io/help/pt_BR/setenv.xml new file mode 100755 index 000000000..53992fb6b --- /dev/null +++ b/modules/io/help/pt_BR/setenv.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="setenv" xml:lang="en"> + <refnamediv> + <refname>setenv</refname> + <refpurpose>ajusta o valor de uma varivel de ambiente</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>rep=setenv(name, value )</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>name</term> + <listitem> + <para>aponta para o nome de uma varivel de ambiente. (name um + string) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>value</term> + <listitem> + <para>aponta para o valor a ser atribudo varivel de ambiente + (value um string) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>rep</term> + <listitem> + <para>Retorna %T, se estiver tudo correto ou %F, em caso + contrrio + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para>Ajusta o valor de uma varivel de ambiente.</para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +setenv('toto','example') +getenv('toto') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="getenv">getenv</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/unix.xml b/modules/io/help/pt_BR/unix.xml new file mode 100755 index 000000000..e7686cfcf --- /dev/null +++ b/modules/io/help/pt_BR/unix.xml @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="unix" xml:lang="en"> + <refnamediv> + <refname>unix</refname> + <refpurpose>execuo de comando shell (sh)</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>stat=unix(command-name)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>command-name</term> + <listitem> + <para>string contendo uma instruo Unix sh</para> + </listitem> + </varlistentry> + <varlistentry> + <term>stat</term> + <listitem> + <para>flag inteiro</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + Envia um string <literal>command-name</literal> ao Unix para + execuo com o shell sh. Sada e erros padres do shell de comando so + escritos no shell chamado. <literal>stat</literal> retorna -1 se o Unix + no pode ser chamado (memria do sistema disponvel insuficiente) ou o + cdigo de retorno sh. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +if getos() <> 'Windows' then + unix("ls $SCI/demos"); +end + +function wd=directory() + if getos() == 'Windows' then + unix('cd>'+TMPDIR+'\path'); + else + unix('pwd>'+TMPDIR+'/path'); + end + wd=read(TMPDIR+'/path',1,1,'(a)'); +endfunction + +wd=directory() + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="host">host</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/unix_g.xml b/modules/io/help/pt_BR/unix_g.xml new file mode 100755 index 000000000..fc33e87a8 --- /dev/null +++ b/modules/io/help/pt_BR/unix_g.xml @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="unix_g" xml:lang="en"> + <refnamediv> + <refname>unix_g</refname> + <refpurpose>execução de um comando shell (sh), saída redirecionada a uma + variável + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqüência de Chamamento</title> + <synopsis>rep=unix_g(cmd) + [rep,stat]=unix_g(cmd) + [rep,stat,stderr]=unix_g(cmd) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parâmetros</title> + <variablelist> + <varlistentry> + <term>cmd</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rep</term> + <listitem> + <para>vetor coluna de strings (saída padrão)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>stat</term> + <listitem> + <para>inteiro o status de erro. stat=0 se nenhum erro tiver + ocorrido + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>err</term> + <listitem> + <para>vetor coluna de strings (erro padrão)</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrição</title> + <para> + Envia um string <literal>cmd</literal> ao Unix para execução pelo + comando shell (sh). A saída padrão é redirecionada para a variável Scilab + <literal>rep</literal>. O erro padrão é redirecionado à variável Scilab + err ou é exibido se você forneceu apenas dois argumentos de saída. Erros + de execução Unix são detectados. Note que apenas o último erro de comando + shell é reportado quando uma lista de comandos separados por ";" é + enviada. Isto não é recomentdado. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +function d=DIR(path) + path=pathconvert(path,%t,%t) + if getos() == 'Windows' then + d=unix_g('dir '+path) + else + d=unix_g('ls '+path) + end +endfunction + +DIR('SCI/etc') + ]]></programlisting> + </refsection> + <refsection> + <title>Ver Também</title> + <simplelist type="inline"> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/unix_s.xml b/modules/io/help/pt_BR/unix_s.xml new file mode 100755 index 000000000..df3b30303 --- /dev/null +++ b/modules/io/help/pt_BR/unix_s.xml @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="unix_s" xml:lang="en"> + <refnamediv> + <refname>unix_s</refname> + <refpurpose>execuo do comando shell (sh), sem sada</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>unix_s(cmd)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>cmd</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + Envia um string <literal>cmd</literal> ao Unix para execuo pelo + shell sh. A sada padro redirecionada para /dev/null. Erros de execuo + Unix so detectados; Note que apenas o ltimo erro de comando shell + reportado quando uma lista de comandos separados por ";" enviada: isto + no recomendado. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then + unix_s("del foo"); +else + unix_s("rm -f foo"); +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/unix_w.xml b/modules/io/help/pt_BR/unix_w.xml new file mode 100755 index 000000000..047120777 --- /dev/null +++ b/modules/io/help/pt_BR/unix_w.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<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="unix_w" xml:lang="en"> + <refnamediv> + <refname>unix_w</refname> + <refpurpose>execuo de comando shell (sh), sada redirecionada janela + do Scilab + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>unix_w(cmd)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>cmd</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + Envia um string <literal>cmd</literal> ao Unix para execuo com o + comando shell (sh). A sada redirecionada janela do Scilab. Erros de + execuo Unix so detectados. Note que apenas o ltimo erro de comando + shell reportado quando uma lista de comandos separados por ";" + enviada: isto no recomandado. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then + unix_w("dir "+'""'+WSCI+"\modules"+'""'); +else + unix_w("ls $SCI/modules"); +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_x">unix_x</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/unix_x.xml b/modules/io/help/pt_BR/unix_x.xml new file mode 100755 index 000000000..ed12b597e --- /dev/null +++ b/modules/io/help/pt_BR/unix_x.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="unix_x" xml:lang="en"> + <refnamediv> + <refname>unix_x</refname> + <refpurpose>execuo do comando shell (sh), sada redirecionada a uma + janela + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>unix_x(cmd)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>cmd</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + Envia um string <literal>cmd</literal> ao Unix para uma execuo + atravs do shel sh. A sada padro redirecionada a uma janela. Erros de + execuo Unix so detectados. Note que apenas o ltimo erro de comando de + shell reportado quando uma lista de comandos separados por";" enviada. + Isto no recomendado. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then + unix_x("dir "+""""+WSCI+"modules\graphics\demos"+""""); +else + unix_x("ls $SCI/modules/graphics/demos"); +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="edit">edit</link> + </member> + <member> + <link linkend="manedit">manedit</link> + </member> + <member> + <link linkend="unix_g">unix_g</link> + </member> + <member> + <link linkend="unix_s">unix_s</link> + </member> + <member> + <link linkend="unix_w">unix_w</link> + </member> + <member> + <link linkend="unix">unix</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/writb.xml b/modules/io/help/pt_BR/writb.xml new file mode 100755 index 000000000..258521d94 --- /dev/null +++ b/modules/io/help/pt_BR/writb.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 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 + * + --> +<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="writb" xml:lang="en"> + <refnamediv> + <refname>writb</refname> + <refpurpose>escrita binria de arquivo FORTRAN</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>writb(file-name,a [,rec])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>string ou inteiro</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rec</term> + <listitem> + <para>vetor de inteiros positivos, os registros selecionados para + acesso direto. O tamanho deste vetor deve ser igual ao nmero de + linhas de <literal>a</literal> + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + Escreve em formato binrio a matriz <literal>a</literal> no arquivo + <literal>'filename'</literal>. As entradas da matriz so armazenadas em + palavras de quatro bytes. + </para> + <para>Para registro de acesso direto, o arquivo deve ter sido previamente + aberto atravs da funo <literal>file</literal> para se ajustar o + comprimento do registro. <literal>file-name</literal> deve ser o resultado + da funo <literal>file</literal>. + </para> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="readb">readb</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="mput">mput</link> + </member> + <member> + <link linkend="write4b">write4b</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/write.xml b/modules/io/help/pt_BR/write.xml new file mode 100755 index 000000000..06d1122f5 --- /dev/null +++ b/modules/io/help/pt_BR/write.xml @@ -0,0 +1,136 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="write" xml:lang="en"> + <refnamediv> + <refname>write</refname> + <refpurpose>Escrita em arquivo formatado</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>write(file-desc,a,[format]) + write(file-desc,a,k,format) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>file-desc</term> + <listitem> + <para>string especificando o nome do arquivo ou valor inteiro + especificando a unidade lgica (ver file). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>a</term> + <listitem> + <para>matriz de reais ou vetor coluna de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>format</term> + <listitem> + <para>string, especifica um formato "Fortran". Este string deve + comear com um parntese direito e terminar com um parntese + esquerdo. Formatos no podem misturar pontos flutuantes, inteiros ou + modo de edio de caractere. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>k</term> + <listitem> + <para>integer vector</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para>Escreve linha por linha uma matriz de reais ou um vetor coluna de + strings em um arquivo formatado. Cada linha do argumento + <literal>a</literal> comea em uma nova linha do arquivo + <literal>file-desc</literal>. Dependendo de <literal>format</literal> uma + dada linha do argumento <literal>a</literal> pode ser escrita em mais de + uma linha do arquivo <literal>file-desc</literal>. + </para> + <para> + Exemplos de formatos : <literal>(1x,e10.3,5x,3(f3.0))</literal> , + <literal>(10x,a20)</literal> ; + </para> + <para>Veja um livro de Fortran para maior preciso.</para> + <para>Arquivos de acesso direto : + <literal>x=write(file_desc,a,k,format)</literal>. Aqui + <literal>k</literal> o vetor de gravaes (uma gravao por linha, i.e. + <literal>m=prod(size(k)</literal>) + </para> + <para> + <literal>write(%io(2),....)</literal> escreve em uma janela do + Scilab. Note que neste caso <literal>format</literal> deve produzir uma + linha de sada por linha da matriz. Se esta restrio no for respeitada, + um erro imprevisvel acontece. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +if getos() == 'Windows' then unix('del asave'); +else unix('rm -f asave'); end +A=rand(5,3); write('asave',A); A=read('asave',5,3); +write(%io(2),A,'('' | '',3(f10.3,'' | ''))') +write(%io(2),string(1:10)) +write(%io(2),strcat(string(1:10),',')) +write(%io(2),1:10,'(10(i2,3x))') + +if getos() == 'Windows' then unix('del foo'); +else unix('rm -f foo'); end +write('foo',A) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="fileinfo">fileinfo</link> + </member> + <member> + <link linkend="writb">writb</link> + </member> + <member> + <link linkend="read">read</link> + </member> + <member> + <link linkend="print">print</link> + </member> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="mfprintf">mfprintf</link> + </member> + <member> + <link linkend="mprintf">mprintf</link> + </member> + <member> + <link linkend="msprintf">msprintf</link> + </member> + <member> + <link linkend="fprintfMat">fprintfMat</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/pt_BR/write4b.xml b/modules/io/help/pt_BR/write4b.xml new file mode 100755 index 000000000..dc839e2d3 --- /dev/null +++ b/modules/io/help/pt_BR/write4b.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="write4b" xml:lang="en"> + <refnamediv> + <refname>write4b</refname> + <refpurpose>escrita binria de arquivo FORTRAN</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>write4b(file-name,a [,rec])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>file-name</term> + <listitem> + <para>string ou inteiro</para> + </listitem> + </varlistentry> + <varlistentry> + <term>rec</term> + <listitem> + <para>vetor de inteiros positivos, os registros selecionados para + acesso direto. O tamanho deste vetor deve ter o mesmo nmero de + linhas que <literal>a</literal> + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + Escreve em formato binrio a matriz <literal>a</literal> no arquivo + <literal>'filename'</literal>. As entradas da matriz so armazenadas em + palavras de 8 bytes. + </para> + <para>Para acesso direto, o arquivo deve ter sido previamente aberto + atravs da funo <literal>file</literal> para se ajustar o comprimento do + registro. <literal>file-name</literal> deve ser o resultado da funo + <literal>file</literal>. + </para> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="file">file</link> + </member> + <member> + <link linkend="readb">readb</link> + </member> + <member> + <link linkend="write">write</link> + </member> + <member> + <link linkend="mput">mput</link> + </member> + <member> + <link linkend="read4b">read4b</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/io/help/ru_RU/addchapter.sce b/modules/io/help/ru_RU/addchapter.sce new file mode 100755 index 000000000..7b59d72cc --- /dev/null +++ b/modules/io/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("Input/Output functions",SCI+"/modules/io/help/ru_RU",%T); + diff --git a/modules/io/includes/dynlib_io.h b/modules/io/includes/dynlib_io.h new file mode 100755 index 000000000..98044cdb5 --- /dev/null +++ b/modules/io/includes/dynlib_io.h @@ -0,0 +1,28 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) DIGITEO - 2009 - 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 +* +*/ + +/*--------------------------------------------------------------------------*/ +#ifndef __DYNLIB_IO_H__ +#define __DYNLIB_IO_H__ + +#ifdef _MSC_VER +#ifdef IO_EXPORTS +#define IO_IMPEXP __declspec(dllexport) +#else +#define IO_IMPEXP __declspec(dllimport) +#endif +#else +#define IO_IMPEXP +#endif + +#endif /* __DYNLIB_IO_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/includes/getenvc.h b/modules/io/includes/getenvc.h new file mode 100755 index 000000000..41fea9840 --- /dev/null +++ b/modules/io/includes/getenvc.h @@ -0,0 +1,39 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - Sylvestre LEDRU + * Copyright (C) 2008 - INRIA - 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 + * + */ + +#ifndef __GETENVC_H__ +#define __GETENVC_H__ + +#include "dynlib_io.h" +#include "machine.h" + +/** + * Retrieve a system variable + * @param[out] ierr the error code + * @param[in] var the name of the variable + * @param[out] buf the value of the variable + * @param[out] buflen the length of the variable + * @param[in] iflag + */ +IO_IMPEXP void C2F(getenvc)(int *ierr, char *var, char *buf, int *buflen, int *iflag); + +/** +* Searches for a file using environment paths +* @param[in] filename +* @param[in] environment variable where we search +* @return path found +*/ +IO_IMPEXP char *searchEnv(const char *name, const char *env_var); + + +#endif /* __GETENVC_H__ */ diff --git a/modules/io/includes/gw_io.h b/modules/io/includes/gw_io.h new file mode 100755 index 000000000..c985101ec --- /dev/null +++ b/modules/io/includes/gw_io.h @@ -0,0 +1,41 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - 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 + * + */ + +#ifndef __GW_IO_H__ +#define __GW_IO_H__ +/*--------------------------------------------------------------------------*/ +#include "machine.h" +#include "dynlib_io.h" +/*--------------------------------------------------------------------------*/ +IO_IMPEXP int gw_io(void); + +/*--------------------------------------------------------------------------*/ +int sci_read(char *fname, unsigned long fname_len); +int sci_write(char *fname, unsigned long fname_len); +int sci_file(char *fname, unsigned long fname_len); +int sci_host(char *fname, unsigned long fname_len); +int sci_unix(char *fname, unsigned long fname_len); +int sci_readb(char *fname, unsigned long fname_len); +int sci_writb(char *fname, unsigned long fname_len); +int sci_getpid(char *fname, unsigned long fname_len); +int sci_getenv(char *fname, unsigned long fname_len); +int sci_read4b(char *fname, unsigned long fname_len); +int sci_write4b(char *fname, unsigned long fname_len); +int sci_save(char *fname, unsigned long fname_len); +int sci_load(char *fname, unsigned long fname_len); +int sci_percent_load(char *fname, unsigned long fname_len); +int sci_getio(char *fname, unsigned long fname_len); +int sci_setenv(char *fname, unsigned long fname_len); + +/*--------------------------------------------------------------------------*/ +#endif /* __GW_IO_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/includes/setenvc.h b/modules/io/includes/setenvc.h new file mode 100755 index 000000000..101e9e0df --- /dev/null +++ b/modules/io/includes/setenvc.h @@ -0,0 +1,27 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - Sylvestre LEDRU + * + * 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 __SETENVC_H__ +#define __SETENVC_H__ +#include "dynlib_io.h" +#include "BOOL.h" + +/** + * Set in the system environment a variable to a value + * @param[in] string the name of the variable + * @param[in] value the value of the variable "string" + * @return FALSE if there is a problem otherwise TRUE + */ +IO_IMPEXP BOOL setenvc(const char *string, const char *value); + +#endif /* __SETENVC_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/io.iss b/modules/io/io.iss new file mode 100755 index 000000000..14cc91fcc --- /dev/null +++ b/modules/io/io.iss @@ -0,0 +1,47 @@ +; +; Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +; Copyright (C) INRIA - Allan CORNET +; 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) +; +;-------------------------------------------------------------------------------------------------------------- +; io module +;-------------------------------------------------------------------------------------------------------------- +; +#define IO "io" +; +Source: bin\{#IO}.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB} +Source: bin\{#IO}_f.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB} +Source: bin\{#IO}.lib; DestDir: {app}\bin; Components: {#COMPN_SCILAB} +Source: bin\{#IO}_f.lib; DestDir: {app}\bin; Components: {#COMPN_SCILAB} +; +Source: modules\{#IO}\license.txt; DestDir: {app}\modules\{#IO}; Components: {#COMPN_SCILAB} +; +Source: modules\{#IO}\sci_gateway\{#IO}_gateway.xml; DestDir: {app}\modules\{#IO}\sci_gateway; Components: {#COMPN_SCILAB} +; +Source: modules\{#IO}\etc\{#IO}.quit; DestDir: {app}\modules\{#IO}\etc; Components: {#COMPN_SCILAB} +Source: modules\{#IO}\etc\{#IO}.start; DestDir: {app}\modules\{#IO}\etc; Components: {#COMPN_SCILAB} +; +;Source: modules\{#IO}\includes\*.h; DestDir: {app}\modules\{#IO}\includes; Components: {#COMPN_SCILAB} +; +Source: modules\{#IO}\macros\buildmacros.sce; DestDir: {app}\modules\{#IO}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#IO}\macros\buildmacros.bat; DestDir: {app}\modules\{#IO}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#IO}\macros\cleanmacros.bat; DestDir: {app}\modules\{#IO}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#IO}\macros\lib; DestDir: {app}\modules\{#IO}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#IO}\macros\names; DestDir: {app}\modules\{#IO}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#IO}\macros\*.sci; DestDir: {app}\modules\{#IO}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#IO}\macros\*.bin; DestDir: {app}\modules\{#IO}\macros; Components: {#COMPN_SCILAB} +; +;Source: modules\{#IO}\demos\*.*; DestDir: {app}\modules\{#IO}\demos; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +; +Source: modules\{#IO}\tests\*.*; DestDir: {app}\modules\{#IO}\tests; Flags: recursesubdirs; Components: {#COMPN_SCILAB} and {#COMPN_TESTS} +; +;-------------------------------------------------------------------------------------------------------------- diff --git a/modules/io/libsciio-algo.la b/modules/io/libsciio-algo.la new file mode 100755 index 000000000..929901091 --- /dev/null +++ b/modules/io/libsciio-algo.la @@ -0,0 +1,41 @@ +# libsciio-algo.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='libsciio-algo.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 libsciio-algo. +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/io/libsciio.la b/modules/io/libsciio.la new file mode 100755 index 000000000..8b1f1b848 --- /dev/null +++ b/modules/io/libsciio.la @@ -0,0 +1,41 @@ +# libsciio.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='libsciio.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 libsciio. +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/io/license.txt b/modules/io/license.txt new file mode 100755 index 000000000..db1d06612 --- /dev/null +++ b/modules/io/license.txt @@ -0,0 +1,11 @@ +Copyright: +Copyright (c) 2008 - DIGITEO +Copyright (c) 1989-2008 - INRIA +Copyright (c) 1989-2007 - ENPC + +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/io/locales/ca_ES.po b/modules/io/locales/ca_ES.po new file mode 100755 index 000000000..71fde49b1 --- /dev/null +++ b/modules/io/locales/ca_ES.po @@ -0,0 +1,183 @@ +# 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: 2012-04-18 19:07+0000\n" +"Last-Translator: Marc Coll Carrillo <Unknown>\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: Can not read input argument #%d.\n" +msgstr "%s: no es pot llegir el paràmetre d'entrada #%d.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té una mida incorrecta: Ha de ser una cadena de " +"text.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Error de memòria.\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s: El fitxer \"%s\" no existeix.\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s: El fitxer no existeix.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser un " +"escalar.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser un enter.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una cadena " +"de caràcters.\n" + +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "%s: La variable d'entorn %s no està definida.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: No hi ha més memòria.\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: Feature %s is obsolete.\n" +msgstr "" + +msgid "Warning" +msgstr "" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "" + +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "Variable d'entorn %s no definida.\n" + +msgid "Too many files opened!\n" +msgstr "Hi ha massa fitxers oberts.\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "Ja existeix el fitxer \"%s\".\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "\"%s\" no teniu accés d'escriptura al directori.\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "No existeix el fitxer \"%s\".\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "No teniu accés de lectura al fitxer \"%s\".\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "Error no gestionat de v2cunit.\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "%s : entitat %s invàlida\n" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "%s: la llegenda no encaixa en el context actual. S'ignora\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: variable '%s' does not exist in '%s'.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s: El nombre d'arguments d'entrada és incorrecte.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" +"%s: nombre de paràmetres d'entrada incorrecte: n'hi ha d'haver entre %d i " +"%d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' value expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser '%s'.\n" + +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "%s: Nombre incorrecte d'arguments d'entrada: Han de ser %d.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: El nombre d'arguments de sortida és incorrecte.\n" + +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s: L'intèrpret del sistema no respon..." + +#, c-format +msgid "%s: error during %s execution" +msgstr "%s: Error durant l'execució %s" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "" diff --git a/modules/io/locales/cs_CZ.po b/modules/io/locales/cs_CZ.po new file mode 100755 index 000000000..13a862820 --- /dev/null +++ b/modules/io/locales/cs_CZ.po @@ -0,0 +1,176 @@ +# 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: 2013-09-24 19:23+0000\n" +"Last-Translator: Zbyněk Schwarz <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: Can not read input argument #%d.\n" +msgstr "%s: Nelze přečíst vstupní argument #%d.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s: Špatná velikost vstupního argumentu #%d: Očekáván řetězec.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Chyba při přidělování paměti.\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s: Soubor \"%s\" neexistuje.\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s: Soubor neexistuje.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: Očekáván skalár.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "%s: Špatná hodnota vstupního argumentu #%d: Očekáváno celé číslo.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: Očekáván řetězec.\n" + +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "%s: Nedefinovaná proměnná prostředí %s.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: Není více paměti.\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: Feature %s is obsolete.\n" +msgstr "%s: Funkce %s je zastaralá.\n" + +msgid "Warning" +msgstr "Varování" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: Tato funkce bude natrvalo odstraněna v Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "%s: Scilab 6 nebude podporovat použitý formát souboru.\n" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" +"%s: Prosím umístěte deklaraci proměnné do uvozovek. Příklad: " +"save('myData.sod',a) na save('myData.sod','a').\n" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "%s: Viz help('save') pro důvody.\n" + +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "Nedefinovaná proměnná prostředí %s.\n" + +msgid "Too many files opened!\n" +msgstr "Otevřeno příliš mnoho souborů!\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "Soubor \"%s\" již existuje.\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "\"%s\" přístup pro zápis do adresáře zamítnut.\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "Soubor \"%s\" neexistuje.\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "Přístup ke čtení souboru \"%s\" zamítnut.\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "nezvládnutá chyba od v2cunit.\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "%s: obslužná rutina již není platná, ignorováno.\n" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "%s: Neplatný objekt %s\n" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "%s: Legenda se do současného kontextu nevejde. Přeskočeno\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Špatný počet vstupních argumentů: očekáváno %d.\n" + +#, c-format +msgid "%s: variable '%s' does not exist in '%s'.\n" +msgstr "%s: proměnná '%s' v '%s' neexistuje.\n" + +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s: Špatný počet vstupních argumentů.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "%s: Špatný počet vstupních argumentů: očekáváno %d až %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' value expected.\n" +msgstr "" +"%s: Špatná hodnota vstupního argumentu #%d: očekávána hodnota '%s'.\n" + +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "%s: Špatný počet vstupních argumentů: Očekáváno %d.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Špatný počet výstupních argumentů.\n" + +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s: Systémový převaděč neodpovídá..." + +#, c-format +msgid "%s: error during %s execution" +msgstr "%s: chyby při spouštění %s" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "%s: Příkaz selhal s kódem chyby %s a následující zprávou:\n" diff --git a/modules/io/locales/de_DE.po b/modules/io/locales/de_DE.po new file mode 100755 index 000000000..87c0880fd --- /dev/null +++ b/modules/io/locales/de_DE.po @@ -0,0 +1,175 @@ +# German translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +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-01-23 17:36+0000\n" +"Last-Translator: mrx5682 <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: Can not read input argument #%d.\n" +msgstr "%s: Kann Eingabeargument nicht lesen #%d.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: falsche Größe für Eingangsargument #%d: eine Variable erwartet.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Speicher-Allokationsfehler.\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s: die Datei '%s' existiert nicht.\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s: die Datei existiert nicht.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "%s: Falscher Typ für Eingangsargument #%d: ein Skalar erwartet.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "" +"%s: Falscher Wert für Eingangsargument #%d: eine Ganzzahl erwartet.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument '%d: eine Zeichenkette erwartet.\n" + +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "%s: undefinierte Umgebungsvariable %s.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: kein weiterer Speicher.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s: falscher Typ für Eingangsargument #%d: Variable erwartet.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "" + +msgid "Warning" +msgstr "" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "" + +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "undefinierte Umgebungsvariable %s.\n" + +msgid "Too many files opened!\n" +msgstr "Zu viele geöffnete Dateien!\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "Datei '%s' existiert bereits.\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "'%s' Verzeichnis Schreibzugriff verweigert.\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "Datei '%s' existiert nicht.\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "Datei '%s' Lesezugriff verweigert.\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "nicht behandelter Fehler durch v2cunit.\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: variable '%s' does not exist in '%s'.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s: falsche Anzahl an EIngangsargumenten.\n" + +#, 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: '%s' value expected.\n" +msgstr "%s: falscher Wert für Eingangsargument #%d: '%s' Wert erwartet.\n" + +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "%s: falsche Anzahl von Eingangsargumenten: %d erwartet.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: falsche Anzahl von Ausgangsargument(en).\n" + +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s: Der System-Interpreter antwortet nicht..." + +#, c-format +msgid "%s: error during %s execution" +msgstr "%s: Fehler während des %s Ausführens" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "" diff --git a/modules/io/locales/es_ES.po b/modules/io/locales/es_ES.po new file mode 100755 index 000000000..ba2b387c7 --- /dev/null +++ b/modules/io/locales/es_ES.po @@ -0,0 +1,179 @@ +# Spanish translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +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-10-22 15:29+0000\n" +"Last-Translator: Fido <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: Can not read input argument #%d.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba un string.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Error de asignación de memoria.\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s: El archivo \"%s\" no existe.\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s: El archivo no existe.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un escalar.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba un entero.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: Tipo incorrecto de argumento de entrada #%d: Se esperaba un string.\n" + +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "%s: Variable de entorno %s no definida.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: No hay más memoria.\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: Feature %s is obsolete.\n" +msgstr "" + +msgid "Warning" +msgstr "" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "" + +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "Variable de entorno no definida %s.\n" + +msgid "Too many files opened!\n" +msgstr "¡Demasiados archivos abiertos!\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "El archivo \"%s\" ya existe.\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "Acceso de escritura denegado en el directorio \"%s\".\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "El archivo \"%s\" no existe.\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "Acceso de lectura al archivo \"%s\" denegado.\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "error no manejado por v2cunit.\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: variable '%s' does not exist in '%s'.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s: Número incorrecto del argumento de entrada.\n" + +#, 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: '%s' value expected.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba el valor " +"'%s'.\n" + +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "%s: Número incorrecto de argumentos de entrada: Se esperaban %d.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Número incorrecto de argumento(s) de salida.\n" + +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s: El interprete del sistema no responde..." + +#, c-format +msgid "%s: error during %s execution" +msgstr "%s: error durante la ejecución de: %s" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "" diff --git a/modules/io/locales/fr_FR.po b/modules/io/locales/fr_FR.po new file mode 100755 index 000000000..f31fc2272 --- /dev/null +++ b/modules/io/locales/fr_FR.po @@ -0,0 +1,188 @@ +# French translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +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 15:57+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: Can not read input argument #%d.\n" +msgstr "%s : Impossible de lire l'argument d'entrée n°%d.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Une chaîne de " +"caractères attendue.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s : Erreur d'allocation mémoire.\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s : Le fichier \"%s\" n'existe pas.\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s : Le fichier n'existe pas.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Un scalaire attendu.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : Un entier attendu.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A 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: Undefined environment variable %s.\n" +msgstr "% s: Variable d'environnement %s non définie.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s : Plus de mémoire disponible.\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: Feature %s is obsolete.\n" +msgstr "%s : La fonction %s est obsolète.\n" + +msgid "Warning" +msgstr "Attention" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "%s : Voir help('load') pour en savoir plus.\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s : Cette fonction sera définitivement supprimée dans Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "" +"%s : Scilab 6 ne prendra pas en charge le format de fichier utilisé.\n" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" +"%s : Veuillez mettre entre guillemets la déclaration de variable. Par " +"exemple, save('myData.sod',a) devient save('myData.sod','a').\n" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "%s : Veuillez consulter help('save') pour les raisons de ce choix.\n" + +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "Variable d'environnement %s non définie.\n" + +msgid "Too many files opened!\n" +msgstr "Trop de fichiers ouverts !\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "Le fichier \"%s\" existe déjà.\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "Écriture refusée dans le répertoire \"%s\".\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "Le fichier \"%s\" n'existe pas.\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "Accès en lecture au fichier \"%s\" refusé.\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "Erreur non gérée par v2cunit.\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "%s : Handle invalide ignoré.\n" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "%s : Entité %s invalide\n" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "%s : La légende ne correspond pas au contexte actuel. Ignoré\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: variable '%s' does not exist in '%s'.\n" +msgstr "%s : La variable '%s' n'existe pas dans '%s'.\n" + +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s : Nombre erroné d'argument d'entrée.\n" + +#, 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: '%s' value expected.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : Une valeur '%s' attendue.\n" + +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "%s : Nombre erroné d'argument(s) d'entrée : %d attendu(s).\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s : Nombre erroné d'argument(s) de sortie.\n" + +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s : L'interpréteur système ne répond pas..." + +#, c-format +msgid "%s: error during %s execution" +msgstr "%s : Erreur pendant l'exécution de %s" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "" +"%s : La commande a échoué avec pour code d'erreur %s et le message suivant " +":\n" diff --git a/modules/io/locales/io.pot b/modules/io/locales/io.pot new file mode 100755 index 000000000..d892e59b0 --- /dev/null +++ b/modules/io/locales/io.pot @@ -0,0 +1,301 @@ +# Localization of the module io +# 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: sci_gateway/c/sci_file.c, line: 61 +# File: sci_gateway/c/sci_file.c, line: 69 +# File: sci_gateway/c/sci_file.c, line: 77 +# File: sci_gateway/c/sci_file.c, line: 123 +# File: sci_gateway/c/sci_file.c, line: 138 +# File: sci_gateway/c/sci_file.c, line: 153 +# File: sci_gateway/c/sci_file.c, line: 333 +# File: sci_gateway/c/sci_file.c, line: 345 +# File: sci_gateway/c/sci_getenv.c, line: 50 +# File: sci_gateway/c/sci_getenv.c, line: 67 +# File: sci_gateway/c/sci_getenv.c, line: 76 +# File: sci_gateway/c/sci_getenv.c, line: 98 +# File: sci_gateway/c/sci_host.c, line: 53 +# File: sci_gateway/c/sci_save.c, line: 72 +# File: sci_gateway/c/sci_setenv.c, line: 43 +# File: sci_gateway/c/sci_setenv.c, line: 57 +# File: sci_gateway/c/sci_setenv.c, line: 74 +# File: sci_gateway/c/sci_setenv.c, line: 86 +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_file.c, line: 100 +# File: sci_gateway/c/sci_file.c, line: 106 +# File: sci_gateway/c/sci_file.c, line: 112 +# File: sci_gateway/c/sci_getenv.c, line: 56 +# File: sci_gateway/c/sci_setenv.c, line: 49 +# File: sci_gateway/c/sci_setenv.c, line: 63 +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_file.c, line: 165 +# File: sci_gateway/c/sci_file.c, line: 171 +# File: sci_gateway/c/sci_file.c, line: 233 +# File: sci_gateway/c/sci_file.c, line: 251 +# File: sci_gateway/c/sci_file.c, line: 270 +# File: sci_gateway/c/sci_file.c, line: 289 +# File: sci_gateway/c/sci_file.c, line: 308 +# File: sci_gateway/c/sci_file.c, line: 369 +# File: sci_gateway/c/sci_file.c, line: 390 +# File: sci_gateway/c/sci_file.c, line: 421 +# File: sci_gateway/c/sci_file.c, line: 442 +# File: sci_gateway/c/sci_file.c, line: 463 +# File: sci_gateway/c/sci_getenv.c, line: 113 +# File: sci_gateway/c/sci_getenv.c, line: 149 +# File: sci_gateway/c/sci_host.c, line: 63 +# File: sci_gateway/c/sci_setenv.c, line: 97 +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_file.c, line: 185 +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_file.c, line: 190 +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_file.c, line: 339 +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_file.c, line: 353 +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_getenv.c, line: 82 +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_getenv.c, line: 125 +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_getenv.c, line: 138 +#, c-format +msgid "%s: No more memory.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_host.c, line: 45 +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_load.c, line: 40 +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_load.c, line: 40 +# File: sci_gateway/c/sci_load.c, line: 41 +# File: sci_gateway/c/sci_load.c, line: 42 +# File: sci_gateway/c/sci_save.c, line: 116 +# File: sci_gateway/c/sci_save.c, line: 117 +# File: sci_gateway/c/sci_save.c, line: 118 +msgid "Warning" +msgstr "" + +# +# File: sci_gateway/c/sci_load.c, line: 41 +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_load.c, line: 42 +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" + +# +# File: sci_gateway/c/sci_save.c, line: 116 +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_save.c, line: 117 +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" + +# +# File: sci_gateway/c/sci_save.c, line: 118 +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "" + +# +# File: src/c/getenvc.c, line: 48 +# File: src/c/getenvc.c, line: 61 +# File: src/c/getenvc.c, line: 84 +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "" + +# +# File: src/c/v2cuniterror.c, line: 26 +msgid "Too many files opened!\n" +msgstr "" + +# +# File: src/c/v2cuniterror.c, line: 34 +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "" + +# +# File: src/c/v2cuniterror.c, line: 38 +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "" + +# +# File: src/c/v2cuniterror.c, line: 47 +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "" + +# +# File: src/c/v2cuniterror.c, line: 51 +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "" + +# +# File: src/c/v2cuniterror.c, line: 59 +msgid "unmanaged error by v2cunit.\n" +msgstr "" + +# File: macros/%_save.sci, line: 53 +# File: macros/%_save.sci, line: 1025 +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "" + +# +# File: macros/%_save.sci, line: 932 +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "" + +# +# File: macros/%_sodload.sci, line: 355 +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "" + +# +# File: macros/%_sodload.sci, line: 942 +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +# +# File: macros/%_sodload.sci, line: 974 +#, c-format +msgid "%s: variable '%s' does not exist in '%s'.\n" +msgstr "" + +# +# File: macros/halt.sci, line: 22 +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "" + +# +# File: macros/input.sci, line: 17 +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" + +# +# File: macros/input.sci, line: 43 +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' value expected.\n" +msgstr "" + +# +# File: macros/unix_g.sci, line: 32 +# File: macros/unix_s.sci, line: 29 +# File: macros/unix_w.sci, line: 30 +# File: macros/unix_x.sci, line: 30 +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "" + +# +# File: macros/unix_g.sci, line: 44 +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "" + +# +# File: macros/unix_g.sci, line: 85 +# File: macros/unix_g.sci, line: 87 +# File: macros/unix_s.sci, line: 52 +# File: macros/unix_w.sci, line: 55 +# File: macros/unix_x.sci, line: 61 +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "" + +# +# File: macros/unix_s.sci, line: 44 +# File: macros/unix_s.sci, line: 56 +# File: macros/unix_w.sci, line: 44 +# File: macros/unix_x.sci, line: 47 +#, c-format +msgid "%s: error during %s execution" +msgstr "" + +# +# File: macros/unix_w.sci, line: 61 +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "" diff --git a/modules/io/locales/it_IT.po b/modules/io/locales/it_IT.po new file mode 100755 index 000000000..9ec8c8c7d --- /dev/null +++ b/modules/io/locales/it_IT.po @@ -0,0 +1,194 @@ +# 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 21:38+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 size for input argument #%d: A string expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era attesa una " +"stringa.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: Impossibile leggere l'argomento in ingresso #%d.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Errore di allocazione della memoria.\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s: Il file \"%s\" non esiste.\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s: Il file non esiste.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era atteso uno " +"scalare.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso un " +"intero.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una " +"stringa.\n" + +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "%s: La variabile d'ambiente %s non è definita.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: Memoria esaurita.\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: Feature %s is obsolete.\n" +msgstr "%s: La caratteristica %s è obsoleta.\n" + +msgid "Warning" +msgstr "Attenzione" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "%s: Vedere aiuto('carica') per la spiegazione.\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: Questa caratteristica verrà rimossa permanentemente in Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "%s: Scilab 6 non supporterà il formato di file usato.\n" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" +"%s: Mettere tra virgolette la dichiarazione di una variabile. Es, " +"salva('mieiDati.sod',a) diventa salva('mieiDati.sod','a').\n" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "%s: Vedere help('save') per la spiegazione.\n" + +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "La variabile d'ambiente %s non è definita.\n" + +msgid "Too many files opened!\n" +msgstr "Sono stati aperti troppi file!\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "Il file \"%s\" esiste già.\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "non è possibile accedere in scrittura alla directory \"%s\".\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "Il file \"%s\" non esiste.\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "Non è possibile accedere in lettura al file \"%s\".\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "errore non gestito da v2cunit.\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "%s: è stato ignorato un gestore non più valido.\n" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "%s: L'entità %s non è valida\n" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "%s: La legenda non corrisponde al contesto attuale. Saltata\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: variable '%s' does not exist in '%s'.\n" +msgstr "%s: la variabile '%s' non esiste in '%s'.\n" + +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s: Il numero degli argomenti in ingresso è sbagliato.\n" + +#, 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: '%s' value expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso il valore " +"'%s'.\n" + +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "" +"%s: Il numero degli argomenti in ingresso è sbagliato: ne erano attesi %d.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Il numero degli argomenti in uscita è sbagliato.\n" + +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s: L'interprete di sistema non risponde..." + +#, c-format +msgid "%s: error during %s execution" +msgstr "%s: si è verificato un errore durante l'esecuzione di %s" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "" +"%s: Il comando è fallito con il codice di errore %s e il seguente " +"messaggio:\n" diff --git a/modules/io/locales/ja_JP.po b/modules/io/locales/ja_JP.po new file mode 100755 index 000000000..7558dd00a --- /dev/null +++ b/modules/io/locales/ja_JP.po @@ -0,0 +1,178 @@ +# 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: 2014-03-30 14:25+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: Can not read input argument #%d.\n" +msgstr "%s: 入力引数 #%d を読み込めません.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s: 入力引数 #%d の大きさが間違っています: 文字列を指定してください.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: メモリ確保エラー.\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s: ファイル \"%s\" が存在しません.\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s: ファイルが存在しません.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "%s: 入力引数 #%d の型が間違っています: スカラーを指定してください.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "%s: 入力引数 #%d の型が間違っています: 整数を指定してください.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s: 入力引数 #%d の型が間違っています: 文字列を指定してください.\n" + +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "%s: 環境変数 %s が未定義です.\n" + +#, c-format +msgid "%s: No more memory.\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: Feature %s is obsolete.\n" +msgstr "%s: %s 機能は廃止されています.\n" + +msgid "Warning" +msgstr "警告" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "%s: 有理数については help('load') を参照ください.\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: この機能は Scilab %s 以降廃止されます\n" +"\n" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "%s: Scilab 6 ではこのファイル形式のサポートは廃止されます.\n" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" +"%s: 変数宣言をクオートしてください. 例えば, save('myData.sod',a) は save('myData.sod','a') " +"となります.\n" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "%s: 詳細は, help('save') を参照ください.\n" + +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "環境変数 %s が定義されていません.\n" + +msgid "Too many files opened!\n" +msgstr "開いているファイルの数が多すぎます!\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "ファイル \"%s\" は既に存在します.\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "\"%s\" ディレクトリへの書き込みアクセスが拒否されました\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "ファイル \"%s\" は存在しません.\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "ファイル \"%s\" への読み込みアクセスが拒否されました.\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "v2cunitによる管理外のエラー.\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "%s: ハンドルは有効ではありません, 無視しました.\n" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "%s 無効なエンティティ %s\n" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "%s: 凡例はカレントのコンテキストに適合しません. スキップしました.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: 入力引数の数が間違っています: %d 個の引数を指定してください.\n" + +#, c-format +msgid "%s: variable '%s' does not exist in '%s'.\n" +msgstr "%s: 変数 '%s' は '%s' に存在しません.\n" + +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s: 入力引数の数が間違っています.\n" + +#, 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: '%s' value expected.\n" +msgstr "%s: 入力引数 #%d の値が間違っています: '%s' 値を指定してください.\n" + +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "%s: 入力引数の数が間違っています: %d 個の引数を指定してください.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: 出力引数の数が間違っています.\n" + +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s: システムのインタプリタが応答しません..." + +#, c-format +msgid "%s: error during %s execution" +msgstr "%s: %s 実行中にエラーが発生しました" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "%s: コマンドはエラーコード %s および以下のメッセージで終了しました:\n" diff --git a/modules/io/locales/pl_PL.po b/modules/io/locales/pl_PL.po new file mode 100755 index 000000000..bd379b63e --- /dev/null +++ b/modules/io/locales/pl_PL.po @@ -0,0 +1,180 @@ +# 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-12-03 14:48+0000\n" +"Last-Translator: I.Rokach <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: Can not read input argument #%d.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: Niewłaściwy rozmiar parametru wejściowego nr %d: Oczekiwano ciągu " +"znaków.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Błąd alokacji pamięci.\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s: Plik %s nie istnieje.\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s: Plik nie istnieje.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: oczekiwano skalara.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "" +"%s: Nieprawidłowa wartość dla argumentu wejściowego nr %d: Oczekiwano " +"wartości całkowitej.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: Oczekiwano łańcuch.\n" + +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "%s: Niezdefiniowana zmienna środowiskowa %s.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: Brak pamięci.\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: Feature %s is obsolete.\n" +msgstr "" + +msgid "Warning" +msgstr "" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "" + +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "Niezdefiniowana zmienna środowiskowa %s.\n" + +msgid "Too many files opened!\n" +msgstr "Otwarte jest zbyt dużo plików!\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "Plik \"%s\" już istnieje.\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "Brak możliwości zapisu do katalogu \"%s\".\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "Plik \"%s\" nie istnieje.\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "Brak możliwości odczytu pliku \"%s\".\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "Nieobsługiwany błąd v2cunit.\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: variable '%s' does not exist in '%s'.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s: Nieprawidłowa liczba argumentów wejściowych.\n" + +#, 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: '%s' value expected.\n" +msgstr "" +"%s: Nieprawidłowa wartość argumentu wejściowego nr %d: oczekiwano '%s'\n" + +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "%s: Nieprawidłowa liczba parametrów wejściowych: oczekiwano %d.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Nieprawidłowa liczba argumentów wyjściowych.\n" + +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s: Interpretator systemowy nie odpowiada..." + +#, c-format +msgid "%s: error during %s execution" +msgstr "%s: błąd podczas wykonywania %s" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "" diff --git a/modules/io/locales/pt_BR.po b/modules/io/locales/pt_BR.po new file mode 100755 index 000000000..146d1dac1 --- /dev/null +++ b/modules/io/locales/pt_BR.po @@ -0,0 +1,181 @@ +# Brazilian Portuguese translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +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-04-22 01:49+0000\n" +"Last-Translator: Thiago de Melo <tmelo.mat@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: Can not read input argument #%d.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um " +"texto.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Erro de alocação de memória.\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s: O arquivo \"%s\" não existe.\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s: O arquivo não existe.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um escalar.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada #%d: esperava-se um número " +"inteiro.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um texto.\n" + +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "%s: A variável de ambiente %s está indefinida.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: Memória esgotada.\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: Feature %s is obsolete.\n" +msgstr "" + +msgid "Warning" +msgstr "" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "" + +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "A variável de ambiente %s não foi definida.\n" + +msgid "Too many files opened!\n" +msgstr "Muitos arquivos abertos!\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "O arquivo \"%s\" já existe.\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "Permissão de escrita ao diretório \"%s\" negada.\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "O arquivo \"%s\" não existe.\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "Permissão de leitura ao arquivo \"%s\" negada.\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "Erro não gerenciado por v2cunit.\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: variable '%s' does not exist in '%s'.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s: Quantidade incorreta de argumentos de entrada.\n" + +#, 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: '%s' value expected.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada #%d: esperava-se o valor " +"'%s'.\n" + +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "%s: Quantidade incorreta de argumentos de entrada: esperava-se %d.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Quantidade incorreta de argumentos de saída.\n" + +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s: O interpretador do sistema não está respondendo..." + +#, c-format +msgid "%s: error during %s execution" +msgstr "%s: erro durante a execução de %s" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "" diff --git a/modules/io/locales/ru_RU.po b/modules/io/locales/ru_RU.po new file mode 100755 index 000000000..115a8ba38 --- /dev/null +++ b/modules/io/locales/ru_RU.po @@ -0,0 +1,180 @@ +# translation of io-ru.po to Russian +# Russian translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# Aleksey Vorona <voronaam@yandex.ru>, 2009. +msgid "" +msgstr "" +"Project-Id-Version: io-ru\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:07+0000\n" +"Last-Translator: Stanislav V. Kroter <krotersv@gmail.com>\n" +"Language-Team: Russian <localization@lists.scilab.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: Can not read input argument #%d.\n" +msgstr "%s: Не могу прочитать входной аргумент №%d.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s: Неверный размер входного параметра №%d: ожидалась строка.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Ошибка выделения памяти.\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s: Файл «%s» не существует.\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s: Файл не существует.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидался скаляр.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "" +"%s: Неверное значение входного параметра №%d: ожидалось целое число.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидалась строка.\n" + +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "%s: Переменная окружения %s не определена.\n" + +#, c-format +msgid "%s: No more memory.\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: Feature %s is obsolete.\n" +msgstr "%s: Возможность %s является устаревшей.\n" + +msgid "Warning" +msgstr "Предупреждение" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "%s: Для объяснения смотрите help('load').\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: Эта возможность будет навсегда удалена в Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "%s: Scilab 6 не будет поддерживать используемый формат файла.\n" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" +"%s: Пожалуйста, обосабливайте кавычками декларацию переменной. Например, " +"save('myData.sod',a) становится save('myData.sod','a').\n" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "%s: Смотрите справку help('save') для разъяснений.\n" + +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "Переменная окружения не определена %s.\n" + +msgid "Too many files opened!\n" +msgstr "Открыто слишком много файлов!\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "Файл «%s» уже существует.\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "Каталог «%s» недоступен для записи.\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "Файл «%s» не существует.\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "Файл «%s» недоступен для чтения.\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "неуправляемая ошибка при v2cunit.\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "%s: дескриптор более не действителен и проигнорирован.\n" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "%s: Неверный объект %s\n" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "%s: Легенда не соответствует текущему контексту. Пропущена\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Неверное количество входных аргументов: ожидалось %d.\n" + +#, c-format +msgid "%s: variable '%s' does not exist in '%s'.\n" +msgstr "%s: переменная '%s' не существует в '%s'.\n" + +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s: Неверное количество входных параметров.\n" + +#, 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: '%s' value expected.\n" +msgstr "%s: Неверное значение входного параметра №%d: ожидалось «%s».\n" + +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "%s: Неверное количество входных параметров: ожидалось %d.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Неверное количество выходных параметров.\n" + +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s: Системный интерпретатор не отвечает..." + +#, c-format +msgid "%s: error during %s execution" +msgstr "%s: ошибка во время выполнения %s" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "" +"%s: Команда завершилась неудачно с кодом ошибки %s и следующим сообщением:\n" diff --git a/modules/io/locales/uk_UA.po b/modules/io/locales/uk_UA.po new file mode 100755 index 000000000..273f959cf --- /dev/null +++ b/modules/io/locales/uk_UA.po @@ -0,0 +1,197 @@ +# 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:41+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: Can not read input argument #%d.\n" +msgstr "%s: не вдалося прочитати вхідний параметр №%d.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: помилковий розмір вхідного параметра №%d: слід використовувати рядок.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: помилка виділення пам’яті.\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s: файла з назвою %s не існує.\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s: такого файла не існує.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати скалярний " +"тип.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: слід використовувати ціле " +"значення.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати тип " +"«string».\n" + +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "%s: невизначена змінна середовища %s.\n" + +#, c-format +msgid "%s: No more memory.\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: Feature %s is obsolete.\n" +msgstr "%s: можливість %s є застарілою.\n" + +msgid "Warning" +msgstr "Попередження" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "%s: пояснення наведено на сторінці help('load').\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: цю можливість буде остаточно вилучено з Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "" +"%s: у Scilab 6 підтримки використаного формату файлів передбачено не буде.\n" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" +"%s: будь ласка, вказуйте змінну під час оголошення у лапках. Приклад: " +"save('myData.sod',a) має бути записано як save('myData.sod','a').\n" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "" +"%s: докладніше про причину можна дізнатися за допомогою команди " +"help('save').\n" + +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "Невизначена змінна середовища %s.\n" + +msgid "Too many files opened!\n" +msgstr "Відкрито забагато файлів!\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "Файл з назвою «%s» вже існує.\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "Запис до каталогу «%s» заборонено.\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "Не виявлено файла з назвою «%s».\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "Читання файла «%s» заборонено.\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "непридатна до обробки помилка v2cunit.\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "%s: елемент керування, що вже не діє, проігноровано.\n" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "%s: некоректний елемент %s\n" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "" +"%s: умовні позначення не відповідають поточному контексту. Пропущено.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" +"%s: помилкова кількість вхідних параметрів: слід використовувати %d.\n" + +#, c-format +msgid "%s: variable '%s' does not exist in '%s'.\n" +msgstr "%s: змінної «%s» немає у «%s».\n" + +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s: помилкова кількість вхідних параметрів.\n" + +#, 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: '%s' value expected.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: слід використовувати значення " +"«%s».\n" + +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "%s: помилкова кількість вхідних параметрів: мало бути %d.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: помилкова кількість вихідних параметрів.\n" + +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s: системний інтерпретатор команд не відповідає…" + +#, c-format +msgid "%s: error during %s execution" +msgstr "%s: помилка під час спроби виконання %s" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "" +"%s: спроба виконати команду завершилася помилкою з кодом %s та таким " +"повідомленням:\n" diff --git a/modules/io/locales/zh_CN.po b/modules/io/locales/zh_CN.po new file mode 100755 index 000000000..d7471238b --- /dev/null +++ b/modules/io/locales/zh_CN.po @@ -0,0 +1,172 @@ +# Simplified Chinese translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +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: 2014-03-20 13:13+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: Can not read input argument #%d.\n" +msgstr "%s:不能读取第%d个输入参数。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s:第%d个输入参数的大小错误:应该为字符串。\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s:内存分配错误。\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s:文件“%s”不存在。\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s:该文件不存在。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "%s:第%d个输入参数的类型错误:应该为标量。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "%s:第%d个输入参数的值错误:应该为整数。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s:第%d个输入参数的类型错误:应该为字符串。\n" + +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "%s:未定义的环境变量%s。\n" + +#, c-format +msgid "%s: No more memory.\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: Feature %s is obsolete.\n" +msgstr "" + +msgid "Warning" +msgstr "" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "" + +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "未定义的环境变量%s。\n" + +msgid "Too many files opened!\n" +msgstr "打开文件过多!\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "文件“%s”已经存在。\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "\"%s\"目录没有写入权限。\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "文件“%s”不存在。\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "读取文件“%s”被拒。\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "v2cunit引起的非托管错误。\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "%s:无效的实体 %s\n" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "%s: Legend 不适合目前的情况。跳过\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s:输入参数的数目错误,应该为%d个。\n" + +#, c-format +msgid "%s: variable '%s' does not exist in '%s'.\n" +msgstr "%s:变量‘%s’不存在于‘%s’中。\n" + +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s:输入参数数目错误。\n" + +#, 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: '%s' value expected.\n" +msgstr "%s: 第%d个输入参数的值错误:应该为‘%s’。\n" + +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "%s:输入参数的数目错误:应该为%d。\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s:输出参数的数目错误。\n" + +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s:系统解释器无返回..." + +#, c-format +msgid "%s: error during %s execution" +msgstr "%s:%s在执行过程中发生错误" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "" diff --git a/modules/io/locales/zh_TW.po b/modules/io/locales/zh_TW.po new file mode 100755 index 000000000..f67f49846 --- /dev/null +++ b/modules/io/locales/zh_TW.po @@ -0,0 +1,217 @@ +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:29+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" +"Revision-Date: 2011-04-04 22:09+0100\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "" + +# +# File: macros/unix_w.sci, line: 38 +# File: macros/unix_s.sci, line: 37 +# File: macros/halt.sci, line: 30 +# File: macros/input.sci, line: 18 +# File: macros/unix_g.sci, line: 40 +# File: macros/sscanf.sci, line: 29 +# File: macros/unix_x.sci, line: 38 +# File: sci_gateway/c/sci_host.c, line: 35 +# File: sci_gateway/c/sci_getrelativefilename.c, line: 49 +# File: sci_gateway/c/sci_getrelativefilename.c, line: 59 +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤: 應為一字串.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Memory 分配有誤.\n" + +#, c-format +msgid "%s: The file \"%s\" does not exist.\n" +msgstr "%s: \"%s\" 檔案不存在.\n" + +#, c-format +msgid "%s: The file does not exist.\n" +msgstr "%s: 檔案不存在.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A scalar expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 純量才對.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer expected.\n" +msgstr "%s: 第 %d 個輸入參數值錯誤: 整數才對.\n" + +# +# File: sci_gateway/c/sci_getrelativefilename.c, line: 86 +# File: sci_gateway/c/sci_getrelativefilename.c, line: 90 +# File: sci_gateway/c/sci_get_absolute_file_path.c, line: 151 +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為一字串.\n" + +#, c-format +msgid "%s: Undefined environment variable %s.\n" +msgstr "%s: %s 環境變數尚未定義.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: 記憶體空間不足.\n" + +# +# File: macros/unix_w.sci, line: 34 +# File: macros/unix_s.sci, line: 33 +# File: macros/halt.sci, line: 26 +# File: macros/input.sci, line: 14 +# File: macros/unix_g.sci, line: 36 +# File: macros/sscanf.sci, line: 25 +# File: macros/unix_x.sci, line: 34 +# File: sci_gateway/c/sci_newest.c, line: 60 +# File: sci_gateway/c/sci_newest.c, line: 76 +# File: sci_gateway/c/sci_newest.c, line: 92 +# File: sci_gateway/c/sci_host.c, line: 55 +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為字串.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "" + +msgid "Warning" +msgstr "" + +#, c-format +msgid "%s: See help('load') for the rationale.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" + +#, c-format +msgid "%s: Scilab 6 will not support the file format used.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Please quote the variable declaration. Example, save('myData.sod',a) " +"becomes save('myData.sod','a').\n" +msgstr "" + +#, c-format +msgid "%s: See help('save') for the rational.\n" +msgstr "" + +# +# File: src/c/getenvc.c, line: 28 +# File: src/c/getenvc.c, line: 40 +#, c-format +msgid "Undefined environment variable %s.\n" +msgstr "未定義之環境參數 %s.\n" + +msgid "Too many files opened!\n" +msgstr "已開啟太多檔案!\n" + +#, c-format +msgid "File \"%s\" already exists.\n" +msgstr "檔案 \"%s\" 已經存在.\n" + +#, c-format +msgid "\"%s\" directory write access denied.\n" +msgstr "\"%s\" 目錄禁止寫入.\n" + +#, c-format +msgid "File \"%s\" does not exist.\n" +msgstr "檔案 \"%s\" 不存在.\n" + +#, c-format +msgid "File \"%s\" read access denied.\n" +msgstr "檔案 \"%s\" 禁止讀取.\n" + +msgid "unmanaged error by v2cunit.\n" +msgstr "無法管理的錯誤 by v2cunit.\n" + +#, c-format +msgid "%s: handle no more valid ignored.\n" +msgstr "" + +#, c-format +msgid "%s : Invalid entity %s\n" +msgstr "" + +#, c-format +msgid "%s: Legend does not fit with the current context. Skipped\n" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: variable '%s' does not exist in '%s'.\n" +msgstr "" + +# +# File: macros/halt.sci, line: 22 +#, c-format +msgid "%s: Wrong number of input argument.\n" +msgstr "%s: 輸入參數之數目錯誤.\n" + +#, 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: '%s' value expected.\n" +msgstr "%s: 第 %d 個輸入參數的值錯誤: 應該是 '%s' 值.\n" + +# File: macros/unix_w.sci, line: 30 +# File: macros/unix_s.sci, line: 29 +# File: macros/unix_g.sci, line: 32 +# File: macros/unix_x.sci, line: 30 +#, c-format +msgid "%s: Wrong number of input argument(s): %d expected.\n" +msgstr "%s: 輸入參數之數目錯誤(s): 應為 %d.\n" + +# +# File: macros/unix_g.sci, line: 44 +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: 輸出參數之數目錯誤(s).\n" + +# +# File: macros/unix_w.sci, line: 55 +# File: macros/unix_s.sci, line: 52 +# File: macros/unix_g.sci, line: 82 +# File: macros/unix_g.sci, line: 84 +# File: macros/unix_x.sci, line: 61 +#, c-format +msgid "%s: The system interpreter does not answer..." +msgstr "%s: 系統解譯器 (interpreter) 未回應..." + +# +# File: macros/unix_w.sci, line: 44 +# File: macros/unix_s.sci, line: 44 +# File: macros/unix_s.sci, line: 56 +# File: macros/unix_x.sci, line: 47 +#, c-format +msgid "%s: error during %s execution" +msgstr "%s: 執行 %s 時發生錯誤" + +#, c-format +msgid "" +"%s: The command failed with the error code %s and the following message:\n" +msgstr "" diff --git a/modules/io/macros/%_save.bin b/modules/io/macros/%_save.bin Binary files differnew file mode 100755 index 000000000..9e9638f39 --- /dev/null +++ b/modules/io/macros/%_save.bin diff --git a/modules/io/macros/%_save.sci b/modules/io/macros/%_save.sci new file mode 100755 index 000000000..5aac5faf8 --- /dev/null +++ b/modules/io/macros/%_save.sci @@ -0,0 +1,1047 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - DIGITEO - Antoine ELIAS +// +// 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 + +//2012/08/06 transform macros to string to save it + +//called by save function, transform handle in tlist and save result +function [] = %_save(%__filename__, varargin) + + function result = isList(var) + + //15 : list + //16 : tlist + //17 : mlist + if or(type(var) == [15, 16, 17]) then + result = %t; + else + result = %f; + end + endfunction + + function result = isMacro(var) + //11 : sci_u_function + if or(type(var) == [11]) then + result = %t; + else + result = %f; + end + endfunction + + function result = isCompiledMacro(var) + //11 : sci_c_function + if or(type(var) == [13]) then + result = %t; + else + result = %f; + end + endfunction + + function result = inspectList(l) + if typeof(l)=="list" then + result = list(); + for %__i__ = definedfields(l) + if typeof(l(%__i__)) == "handle" then + if ~is_handle_valid(l(%__i__)) then + oldMode = warning("query"); + warning("on"); + warning(msprintf(gettext("%s: handle no more valid ignored.\n"), "save")); + warning(oldMode); + result(%__i__) = []; + else + result(%__i__) = extractMatrixHandle(l(%__i__)); + end + elseif isMacro(l(%__i__)) | isCompiledMacro(l(%__i__)) then + //build an arbitrary name to the macro + result(%__i__) = extractMacro(l(%__i__), "function"); + elseif isList(l(%__i__)) then + result(%__i__) = inspectList(l(%__i__)); + elseif type(l(%__i__)) == 14 then //library, must not be save + result(%__i__) = []; + else + result(%__i__) = l(%__i__); + end + end + else + fieldNb = size(getfield(1, l), "*"); + for kField = 2:fieldNb // Do not inspect first field (field names) + fieldValue = getfield(kField, l); + if typeof(fieldValue) == "handle" then + fieldValue = extractMatrixHandle(fieldValue); + elseif isMacro(fieldValue) | isCompiledMacro(fieldValue) then + //build an arbitrary name to the macro + fieldValue = extractMacro(fieldValue, "function"); + elseif isList(fieldValue) then + fieldValue = inspectList(fieldValue); + end + setfield(kField, fieldValue, l); + end + result = l; + end + endfunction + + function matrixHandle = extractMatrixHandle(h) + + if typeof(h) <> "handle" then + matrixHandle = []; + return; + end + + matrixHandle = tlist(["ScilabMatrixHandle", "dims", "values"]); + matrixHandle.dims = size(h); + matrixHandle.values = list(); + for %__i__ = 1:size(h, "*") + matrixHandle.values($+1) = extractSingleHandle(h(%__i__)); + if or(fieldnames(matrixHandle.values($))=="user_data") then + if isList(matrixHandle.values($).user_data) then + matrixHandle.values($).user_data = inspectList(matrixHandle.values($).user_data) + elseif typeof(matrixHandle.values($).user_data) == "handle" then + matrixHandle.values($).user_data = extractMatrixHandle(matrixHandle.values($).user_data) + end + end + end + endfunction + + + function item = extractSingleHandle(h) + + select h.type + case "Figure" + item = extractFigure(h); + case "Axes" + item = extractAxes(h); + case "Polyline" + item = extractPolyline(h); + case "Plot3d" + item = extractPlot3d(h); + case "Fac3d" + item = extractFac3d(h); + case "Compound" + item = extractCompound(h); + case "Rectangle" + item = extractRectangle(h); + case "Arc" + item = extractArc(h); + case "Champ" + item = extractChamp(h); + case "Segs" + item = extractSegs(h); + case "Grayplot" + item = extractGrayplot(h); + case "Matplot" + item = extractMatplot(h); + case "Fec" + item = extractFec(h); + case "Legend" + item = extractLegend(h); + case "Text" + item = extractText(h); + case "Axis" + item = extractAxis(h); + case "uimenu" + item = extractuimenu(h); + case "uicontextmenu" + item = extractuicontextmenu(h); + case "uicontrol" + item = extractuicontrol(h); + case "Datatip" + item = extractDatatip(h); + case "Light" + item = extractLight(h); + else + error("handle of type " + h.type + " unhandled"); + item = []; + end + endfunction + + // + // FIGURE + // + function returnedFigure = extractFigure(h) + returnedFigure = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "figure_position", ... + "figure_size", ... + "axes_size", ... + "viewport", ... + "info_message", ... + "tag", ... + "auto_resize", ... + "figure_name", ... + "figure_id", ... + "color_map", ... + "pixel_drawing_mode", ... + "anti_aliasing", ... + "immediate_drawing", ... + "background", ... + "rotation_style", ... + "event_handler", ... + "event_handler_enable", ... + "resizefcn", ... + "closerequestfcn", ... + "resize", ... + "toolbar", ... + "toolbar_visible", ... + "menubar", ... + "menubar_visible", ... + "infobar_visible", ... + "dockable", ... + "layout", ... + "layout_options", ... + "default_axes", ... + "icon", ... + "children", ... + "user_data"]); + + fields = fieldnames(returnedFigure); + + for %__i__ = 1:size(fields, "*") + if fields(%__i__) == "children" then + returnedFigure(fields(%__i__)) = extractMatrixHandle(h(fields(%__i__))); + else + returnedFigure(fields(%__i__)) = h(fields(%__i__)); + end + end + endfunction + + // + // LABEL + // + function returnedLabel = extractLabel(h) + returnedLabel = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "text", ... + "font_foreground", ... + "foreground", ... + "background", ... + "fill_mode", ... + "font_style", ... + "font_size", ... + "fractional_font", ... + "font_angle", ... + "auto_rotation", ... + "position", ... + "auto_position"]); + + fields = fieldnames(returnedLabel); + + for %__i__ = 1:size(fields, "*") + returnedLabel(fields(%__i__)) = h(fields(%__i__)); + end + endfunction + + // + // TICKS + // + function returnedTicks = extractTicks(ticks) + returnedTicks = tlist([ + "Ticks", ... + "locations", ... + "labels"]); + + fields = fieldnames(returnedTicks); + + for %__i__ = 1:size(fields, "*") + returnedTicks(fields(%__i__)) = ticks(fields(%__i__)); + end + endfunction + + // + // AXES + // + function returnedAxes = extractAxes(h) + returnedAxes = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "axes_visible", ... + "axes_reverse", ... + "grid", ... + "grid_position", ... + "grid_thickness", ... + "grid_style", ... + "x_location", ... + "y_location", ... + "view", ... + "title", ... + "x_label", ... + "y_label", ... + "z_label", ... + "auto_ticks", ... + "x_ticks", ... + "y_ticks", ... + "z_ticks", ... + "ticks_format", ... + "ticks_st", ... + "box", ... + "filled", ... + "sub_tics", ... + "font_style", ... + "font_size", ... + "font_color", ... + "fractional_font", ... + "isoview", ... + "cube_scaling", ... + "rotation_angles", ... + "log_flags", ... + "tight_limits", ... + "data_bounds", ... + "zoom_box", ... + "margins", ... + "auto_margins", ... + "axes_bounds", ... + "auto_clear", ... + "auto_scale", ... + "hidden_axis_color", ... + "arc_drawing_method", ... + "hiddencolor", ... + "line_mode", ... + "line_style", ... + "thickness", ... + "mark_mode", ... + "mark_style", ... + "mark_size", ... + "mark_size_unit", ... + "mark_foreground", ... + "mark_background", ... + "foreground", ... + "background", ... + "clip_state", ... + "clip_box", ... + "children", ... + "user_data"]); + + fields = fieldnames(returnedAxes); + + for %__i__ = 1:size(fields, "*") + if or(fields(%__i__) == ["title","x_label","y_label","z_label"]) then + returnedAxes(fields(%__i__)) = extractLabel(h(fields(%__i__))); + elseif or(fields(%__i__) == ["x_ticks", "y_ticks", "z_ticks"]) then + returnedAxes(fields(%__i__)) = extractTicks(h(fields(%__i__))); + elseif fields(%__i__) == "children" then + returnedAxes(fields(%__i__)) = extractMatrixHandle(h(fields(%__i__))); + else + returnedAxes(fields(%__i__)) = h(fields(%__i__)); + end + end + endfunction + + // + // POLYLINE + // + function returnedPolyline = extractPolyline(h) + returnedPolyline = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "datatips", ... + "display_function", ... + "display_function_data", ... + "data", ... + "closed", ... + "line_mode", ... + "fill_mode", ... + "line_style", ... + "thickness", ... + "arrow_size_factor", ... + "polyline_style", ... + "interp_color_vector", ... + "interp_color_mode", ... + "mark_mode", ... + "mark_style", ... + "mark_size", ... + "mark_size_unit", ... + "foreground", ... + "background", ... + "mark_foreground", ... + "mark_background", ... + "mark_offset", ... + "mark_stride", ... + "x_shift", ... + "y_shift", ... + "z_shift", ... + "bar_width", ... + "clip_state", ... + "clip_box", ... + "user_data"]); + + fields = fieldnames(returnedPolyline); + + for %__i__ = 1:size(fields, "*") + if or(fields(%__i__) == ["children", "datatips"]) then + returnedPolyline(fields(%__i__)) = extractMatrixHandle(h(fields(%__i__))); + else + returnedPolyline(fields(%__i__)) = h(fields(%__i__)); + end + end + endfunction + + // + // PLOT3D + // + function returnedPlot3d = extractPlot3d(h) + returnedPlot3d = extractSurface(h); + endfunction + + // + // FAC3D + // + function returnedFac3d = extractFac3d(h) + returnedFac3d = extractSurface(h); + endfunction + + // + // SURFACE + // + function returnedSurface = extractSurface(h) + returnedSurface = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "surface_mode", ... + "foreground", ... + "thickness", ... + "mark_mode", ... + "mark_style", ... + "mark_size", ... + "mark_size_unit", ... + "mark_foreground", ... + "mark_background", ... + "color_mode", ... + "color_flag", ... + "data", ... + "color_flag", ... + "ambient_color", ... + "diffuse_color", ... + "specular_color", ... + "use_color_material", ... + "material_shininess", ... + "hiddencolor", ... + "clip_state", ... + "clip_box", ... + "user_data", ... + "cdata_mapping"]); + + fields = fieldnames(returnedSurface); + + for %__i__ = 1:size(fields, "*") + if fields(%__i__)=="cdata_mapping" then + if h.type=="Fac3d" then + returnedSurface(fields(%__i__)) = h(fields(%__i__)); + end + else + returnedSurface(fields(%__i__)) = h(fields(%__i__)); + end + end + endfunction + + // + // COMPOUND + // + function returnedCompound = extractCompound(h) + returnedCompound = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "children", ... + "user_data"]); + + fields = fieldnames(returnedCompound); + + for %__i__ = 1:size(fields, "*") + if fields(%__i__) == "children" then + returnedCompound(fields(%__i__)) = extractMatrixHandle(h(fields(%__i__))); + else + returnedCompound(fields(%__i__)) = h(fields(%__i__)); + end + end + endfunction + + // + // RECTANGLE + // + function returnedRectangle = extractRectangle(h) + returnedRectangle = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "thickness", ... + "mark_mode", ... + "mark_style", ... + "mark_size", ... + "mark_size_unit", ... + "mark_foreground", ... + "mark_background", ... + "line_mode", ... + "line_style", ... + "fill_mode", ... + "foreground", ... + "background", ... + "data", ... + "clip_state", ... + "clip_box", ... + "user_data"]); + + fields = fieldnames(returnedRectangle); + + for %__i__ = 1:size(fields, "*") + returnedRectangle(fields(%__i__)) = h(fields(%__i__)); + end + endfunction + + // + // ARC + // + function returnedArc = extractArc(h) + returnedArc = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "thickness", ... + "line_style", ... + "line_mode", ... + "fill_mode", ... + "foreground", ... + "background", ... + "data", ... + "arc_drawing_method", ... + "clip_state", ... + "clip_box", ... + "user_data"]); + + fields = fieldnames(returnedArc); + + for %__i__ = 1:size(fields, "*") + returnedArc(fields(%__i__)) = h(fields(%__i__)); + end + endfunction + + // + // CHAMP + // + function returnedChamp = extractChamp(h) + returnedChamp = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "data", ... + "line_style", ... + "thickness", ... + "colored", ... + "arrow_size", ... + "clip_state", ... + "clip_box", ... + "user_data"]); + + fields = fieldnames(returnedChamp); + + for %__i__ = 1:size(fields, "*") + returnedChamp(fields(%__i__)) = h(fields(%__i__)); + end + endfunction + + // + // SEG + // + function returnedSeg = extractSegs(h) + returnedSeg = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "data", ... + "line_mode", ... + "line_style", ... + "thickness", ... + "segs_color", ... + "mark_mode", ... + "mark_style", ... + "mark_size", ... + "mark_size_unit", ... + "mark_foreground", ... + "mark_background", ... + "clip_state", ... + "clip_box", ... + "user_data"]); + + fields = fieldnames(returnedSeg); + + for %__i__ = 1:size(fields, "*") + returnedSeg(fields(%__i__)) = h(fields(%__i__)); + end + endfunction + + // + // GRAYPLOT + // + function returnedGrayplot = extractGrayplot(h) + returnedGrayplot = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "data", ... + "data_mapping", ... + "clip_state", ... + "clip_box", ... + "user_data"]); + + fields = fieldnames(returnedGrayplot); + + for %__i__ = 1:size(fields, "*") + returnedGrayplot(fields(%__i__)) = h(fields(%__i__)); + end + endfunction + + // + // MATPLOT + // + function returnedMatplot = extractMatplot(h) + returnedMatplot = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "data", ... + "rect", ... + "image_type", ... + "clip_state", ... + "clip_box", ... + "user_data"]); + + fields = fieldnames(returnedMatplot); + + for %__i__ = 1:size(fields, "*") + returnedMatplot(fields(%__i__)) = h(fields(%__i__)); + end + endfunction + + // + // FEC + // + function returnedFec = extractFec(h) + returnedFec = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "data", ... + "triangles", ... + "z_bounds", ... + "color_range", ... + "outside_colors", ... + "line_mode", ... + "foreground", ... + "clip_state", ... + "clip_box", ... + "user_data"]); + + fields = fieldnames(returnedFec); + + for %__i__ = 1:size(fields, "*") + returnedFec(fields(%__i__)) = h(fields(%__i__)); + end + endfunction + + // + // LEGEND + // + function returnedLegend = extractLegend(h) + returnedLegend = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "text", ... + "font_style", ... + "font_size", ... + "font_color", ... + "fractional_font", ... + "links", ... + "legend_location", ... + "position", ... + "line_width", ... + "line_mode", ... + "thickness", ... + "foreground", ... + "fill_mode", ... + "background", ... + "marks_count", ... + "clip_state", ... + "clip_box", ... + "user_data", .. + "paths"]); + + fields = fieldnames(returnedLegend); + + for %__i__ = 1:size(fields, "*") + if fields(%__i__) == "links" then + returnedLegend(fields(%__i__)) = extractMatrixHandle(h(fields(%__i__))); + elseif fields(%__i__) == "paths" then + p = list(); + for kl=1:size(h.links,"*"); + p($+1) = get_entity_path(h.links(kl)); + end + returnedLegend(fields(%__i__)) = p; + else + returnedLegend(fields(%__i__)) = h(fields(%__i__)); + end + end + endfunction + + // + // TEXT + // + function returnedText = extractText(h) + returnedText = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "text", ... + "data", ... + "text_box", ... + "text_box_mode", ... + "foreground", ... + "font_style", ... + "font_size", ... + "font_angle", ... + "box", ... + "line_mode", ... + "fill_mode", ... + "font_foreground", ... + "background", ... + "alignment", ... + "fractional_font", ... + "clip_state", ... + "clip_box", ... + "user_data"]); + + fields = fieldnames(returnedText); + + for %__i__ = 1:size(fields, "*") + returnedText(fields(%__i__)) = h(fields(%__i__)); + end + endfunction + + // + // DATATIP + // + function returnedDatatip = extractDatatip(h) + returnedDatatip = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "data", ... + "box_mode", ... + "label_mode", ... + "orientation", ... + "z_component", ... + "auto_orientation", ... + "interp_mode", ... + "display_function", ... + "font_foreground", ... + "foreground", ... + "background", ... + "mark_mode", ... + "mark_style", ... + "mark_size_unit", ... + "mark_size", ... + "mark_foreground", ... + "mark_background", ... + "user_data", ... + ]); + + fields = fieldnames(returnedDatatip); + + for %__i__ = 1:size(fields, "*") + returnedDatatip(fields(%__i__)) = h(fields(%__i__)); + end + endfunction + + // + // AXIS + // + function returnedAxis = extractAxis(h) + returnedAxis = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "tics_direction", ... + "xtics_coord", ... + "ytics_coord", ... + "tics_color", ... + "tics_segment", ... + "tics_style", ... + "sub_tics", ... + "tics_labels", ... + "labels_font_size", ... + "labels_font_color", ... + "fractional_font", ... + "clip_state", ... + "clip_box", ... + "user_data"]); + + fields = fieldnames(returnedAxis); + + for %__i__ = 1:size(fields, "*") + returnedAxis(fields(%__i__)) = h(fields(%__i__)); + end + endfunction + + // + // uimenu + // + function returneduimenu = extractuimenu(h) + returneduimenu = tlist([ + "ScilabSingleHandle", ... + "type", ... + "enable", ... + "foregroundcolor", ... + "label", ... + "visible", ... + "callback", ... + "callback_type", ... + "tag", ... + "checked", ... + "children", ... + "icon", ... + "user_data"]); + + fields = fieldnames(returneduimenu); + + for %__i__ = 1:size(fields, "*") + if fields(%__i__) == "children" then + returneduimenu(fields(%__i__)) = extractMatrixHandle(h(fields(%__i__))); + else + returneduimenu(fields(%__i__)) = h(fields(%__i__)); + end + end + endfunction + + // + // UICONTEXTMENU + // + function returneduicontextmenu = extractuicontextmenu(h) + returneduicontextmenu = tlist([ + "ScilabSingleHandle", ... + "type", ... + "children"]); + + fields = fieldnames(returneduicontextmenu); + + for %__i__ = 1:size(fields, "*") + if fields(%__i__) == "children" then + returneduicontextmenu(fields(%__i__)) = extractMatrixHandle(h(fields(%__i__))); + else + returneduicontextmenu(fields(%__i__)) = h(fields(%__i__)); + end + end + endfunction + + // + // uicontrol + // + function returneduicontrol = extractuicontrol(h) + returneduicontrol = tlist([ + "ScilabSingleHandle", ... + "type", ... + "style", ... + "backgroundcolor", ... + "enable", ... + "fontangle", ... + "fontname", ... + "fontsize", ... + "fontunits", ... + "fontweight", ... + "foregroundcolor", ... + "horizontalalignment", ... + "listboxtop", ... + "max", ... + "min", ... + "position", ... + "relief", ... + "sliderstep", ... + "string", ... + "tooltipstring", ... + "units", ... + "value", ... + "verticalalignment", ... + "visible", ... + "callback", ... + "callback_type", ... + "layout", ... + "layout_options", ... + "constraints", ... + "border", ... + "margins", ... + "groupname", ... + "scrollable", ... + "icon", ... + "user_data", ... + "tag", ... + "children"]); + + fields = fieldnames(returneduicontrol); + + for %__i__ = 1:size(fields, "*") + if fields(%__i__) == "children" then + returneduicontrol(fields(%__i__)) = extractMatrixHandle(h(fields(%__i__))); + else + returneduicontrol(fields(%__i__)) = h(fields(%__i__)); + end + end + endfunction + + // + // LIGHT + // + function returnedLight = extractLight(h) + returnedLight = tlist([ + "ScilabSingleHandle", ... + "type", ... + "visible", ... + "light_type", ... + "position", ... + "direction", ... + "ambient_color", ... + "diffuse_color", ... + "specular_color"]); + + fields = fieldnames(returnedLight); + + for %__i__ = 1:size(fields, "*") + returnedLight(fields(%__i__)) = h(fields(%__i__)); + end + endfunction + + // Utility function for legends, copy/paste from %h_load + function p=get_entity_path(e) + // given a handle e on an entity this function returns its path relative + // to its parent axes. + // the path is a vector of child index. + p=[]; + parent=e.parent; + + while %t + pos=find(parent.children==e,1) + if pos==[] then + error(msprintf(_("%s : Invalid entity %s\n"),"save","Legend")) + end + p=[pos p] + if parent.type=="Axes" then + break + end + e=parent + parent=e.parent; + end + endfunction + + function macro = extractMacro(macroPtr, macroName) + macroSt = fun2string(macroPtr, macroName); + oldMode = warning("query"); + warning("off"); + macro = tlist("ScilabMacro", isCompiledMacro(macroPtr), macroSt); + warning(oldMode); + endfunction + + //main + + //save environment + if size(varargin) == 0 then + %__excludeList__ = [ + "%_save" + "isList" + "isMacro" + "isCompiledMacro" + "inspectList" + "extractMatrixHandle" + "extractSingleHandle" + "extractFigure" + "extractLabel" + "extractTicks" + "extractAxes" + "extractPolyline" + "extractPlot3d" + "extractFac3d" + "extractSurface" + "extractCompound" + "extractRectangle" + "extractArc" + "extractChamp" + "extractSegs" + "extractGrayplot" + "extractMatplot" + "extractFec" + "extractLegend" + "extractText" + "extractAxis" + "extractuimenu" + "extractuicontextmenu" + "extractuicontrol" + "get_entity_path" + "extractMacro" + "%__excludeList__" + "%__filename__" + "varargin" + "%__varList__"]; + + //get all user variables + %__varList__ = who_user(%f); + //remove exclude variables/functions + %__grepResult__ = grep(%__varList__, %__excludeList__); + %__varList__(%__grepResult__) = []; + for %__i__ = 1:size(%__varList__, "*") + //store them as input arguments + varargin(%__i__) = %__varList__(%__i__); + end + end + + oldMode = warning("query"); + warning("off"); + + if size(varargin) == 0 then + end + + for %__i__ = size(varargin):-1:1 + + if varargin(%__i__) == "-append" then + continue; + end + + %__temp__ = evstr(varargin(%__i__)); + + if isList(%__temp__) then + //list container + value = inspectList(%__temp__); + //update + execstr(varargin(%__i__) + " = value"); + elseif typeof(%__temp__) == "handle" then + if ~is_handle_valid(%__temp__) then // Invalid handle ignored + warning(oldMode); + warning(msprintf(gettext("%s: handle no more valid ignored.\n"), "save")); + warning("off"); + varargin(%__i__) = null(); + else //convert handle to tlist + value = extractMatrixHandle(%__temp__); + //update + execstr(varargin(%__i__) + " = value"); + end + elseif isMacro(%__temp__) | isCompiledMacro(%__temp__) then + //convert macro to tlist + value = extractMacro(%__temp__, varargin(%__i__)); + //update + execstr(varargin(%__i__) + " = value"); + elseif type(%__temp__) == 14 then //library, must not be save + varargin(%__i__) = null(); + end + end + warning(oldMode); + + //if size(varargin) == 0, create an empty file + result = export_to_hdf5(%__filename__, varargin(:)); + +endfunction diff --git a/modules/io/macros/%_sodload.bin b/modules/io/macros/%_sodload.bin Binary files differnew file mode 100755 index 000000000..6532e106c --- /dev/null +++ b/modules/io/macros/%_sodload.bin diff --git a/modules/io/macros/%_sodload.sci b/modules/io/macros/%_sodload.sci new file mode 100755 index 000000000..308c44dd7 --- /dev/null +++ b/modules/io/macros/%_sodload.sci @@ -0,0 +1,992 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - DIGITEO - Antoine ELIAS +// Copyright (C) 2012 - DIGITEO - Vincent COUVERT +// +// 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 %_sodload(%__filename__, varargin) + + function v = getScilabFileVersion(%__filename__) + verStr = h5readattr(%__filename__, "/", "SCILAB_scilab_version") + [a,b,c,d] = regexp(verStr, "/scilab-.*(\d)\.(\d)\.(\d)/"); + if size(d, "*") == 3 then + v = evstr(d(1)) * 100 + evstr(d(2)) * 10 + evstr(d(3)); + else + error("unable to find file version: %s", %__filename__); + end + endfunction + + function [varValues] = %__convertVariable__(varValues, varNames) + for i = 1:size(varValues) + if typeof(varValues(i)) == "ScilabMatrixHandle" then + //convert tlist to handle + varValues(i) = createMatrixHandle(varValues(i)); + elseif typeof(varValues(i)) == "ScilabMacro" then + //convert tlist to macro + varValues(i) = createMacro(varValues(i), varNames(i)); + elseif isList(varValues(i)) then + //list container + varValues(i) = parseList(varValues(i)); + end + end + endfunction + + function result = isList(var) + //15 : list + //16 : tlist + //17 : mlist + if or(type(var) == [15, 16, 17]) then + result = %t; + else + result = %f; + end + endfunction + + function varValue = parseList(varValue) + if typeof(varValue)=="list" then + for i = definedfields(varValue) + if typeof(varValue(i)) == "ScilabMatrixHandle" then + varValue(i) = createMatrixHandle(varValue(i)); + elseif typeof(varValue(i)) == "ScilabMacro" then + //convert tlist to macro + varValue(i) = createMacro(varValue(i), "function"); + elseif isList(varValue(i)) then + varValue(i) = parseList(varValue(i)); + else + varValue(i) = varValue(i); + end + end + else + fieldNb = size(getfield(1, varValue), "*"); + for kField = 2:fieldNb // Do not inspect first field (field names) + fieldValue = getfield(kField, varValue); + if typeof(fieldValue) == "ScilabMatrixHandle" then + fieldValue = createMatrixHandle(fieldValue); + elseif typeof(fieldValue) == "ScilabMacro" then + //convert tlist to macro + fieldValue = createMacro(fieldValue, "function"); + elseif isList(fieldValue) then + fieldValue = parseList(fieldValue); + end + setfield(kField, fieldValue, varValue); + end + end + endfunction + + function h = createMatrixHandle(matrixHandle) + h = []; + if typeof(matrixHandle) <> "ScilabMatrixHandle" then + return; + end + + for i = prod(matrixHandle.dims):-1:1 + + newItem = createSingleHandle(matrixHandle.values(i)); + if newItem == [] then + continue; + end + + h($+1) = newItem; + if or(fieldnames(matrixHandle.values(i))=="user_data") then // TODO Remove after graphic branch merge + if isList(matrixHandle.values(i).user_data) then + set(h($), "user_data", parseList(matrixHandle.values(i).user_data)); + elseif typeof(matrixHandle.values(i).user_data) == "ScilabMatrixHandle" then + set(h($), "user_data", createMatrixHandle(matrixHandle.values(i).user_data)); + end + end + end + endfunction + + function h = createSingleHandle(item) + select item.type + case "Figure" + h = createFigure(item); + case "Axes" + h = createAxes(item); + case "Polyline" + h = createPolyline(item); + case "Plot3d" + h = createPlot3d(item); + case "Fac3d" + h = createFac3d(item); + case "Compound" + h = createCompound(item); + case "Rectangle" + h = createRectangle(item); + case "Arc" + h = createArc(item); + case "Champ" + h = createChamp(item); + case "Segs" + h = createSegs(item); + case "Grayplot" + h = createGrayplot(item); + case "Matplot" + h = createMatplot(item); + case "Fec" + h = createFec(item); + case "Legend" + h = createLegend(item); + case "Text" + h = createText(item); + case "Axis" + h = createAxis(item); + case "uimenu" + h = createuimenu(item); + case "uicontextmenu" + h = createuicontextmenu(item); + case "uicontrol" + h = createuicontrol(item); + case "Datatip" + h = createDatatip(item); + case "Light" + h = createLight(item); + else + error("handle of type " + item.type + " unhandled"); + h = []; + end + endfunction + + // + // FIGURE + // + function h = createFigure(figureProperties) + fields = fieldnames(figureProperties); + fields(1) = []; + + if or(fields=="resize") then + if figureProperties.menubar<>"figure" .. + | figureProperties.toolbar<>"figure" .. + | figureProperties.dockable<>"on" .. + | figureProperties.default_axes<>"on" then + // File created by Scilab 5.5.0 or more + h = figure("menubar", figureProperties.menubar, ... + "toolbar", figureProperties.toolbar, ... + "dockable", figureProperties.dockable, ... + "default_axes", figureProperties.default_axes, ... + "visible", "off"); + h.background = -2; + fields(fields=="menubar") = []; + fields(fields=="toolbar") = []; + fields(fields=="dockable") = []; + fields(fields=="default_axes") = []; + fields(fields=="visible") = []; + else + [lnums, fnames] = where(); + ind = grep(fnames, "xload"); + xload_mode = (ind ~= []); + if xload_mode then // See bug #3975 + h = gcf(); + else + h = scf(); + end + h.visible = "off"; + end + else + if isempty(winsid()) then + h = figure("visible", "off"); + h.background = -2; + else + h = gcf(); + h.visible = "off"; + end + end + + // Following propeties will be set after all other ones + isVisible = figureProperties.visible; + fields(fields=="visible") = []; + resizefcn = figureProperties.resizefcn; + fields(fields=="resizefcn") = []; + event_handler = figureProperties.event_handler; + fields(fields=="event_handler") = []; + + // Ignore figure_id + fields(fields=="figure_id") = []; + + h.figure_position=figureProperties.figure_position; + fields(fields=="figure_position") = []; + // set auto_resize first otherwise viewport modification may not have any effect. + h.auto_resize = figureProperties.auto_resize; + fields(fields=="auto_resize") = []; + h.figure_size = figureProperties.figure_size; + fields(fields=="figure_size") = []; + // set axes_size last because it's more important than figure_size + h.axes_size = figureProperties.axes_size; + fields(fields=="axes_size") = []; + + for i = 1:size(fields, "*") + if fields(i) == "children" then + c = figureProperties(fields(i)); + s = prod(c.dims); + createSingleHandle(c.values(s)); + for i = s-1:-1:1 + xsetech(wrect=[0 0 .1 .1]) + createSingleHandle(c.values(i)); + end + else + if fields(i)<>"pixmap" then // See bug #13310 + set(h, fields(i), figureProperties(fields(i))); + end + end + end + + h.resizefcn = resizefcn; + h.event_handler = event_handler; + h.visible = isVisible; + endfunction + + // + // LABEL + // + function h = createLabel(labelProperties, h) + fields = fieldnames(labelProperties); + fields(1) = []; + for i = 1:size(fields, "*") + set(h, fields(i), labelProperties(fields(i))); + end + endfunction + + // + // TICKS + // + function h = createTicks(ticksProperties) + h = tlist(["ticks","locations","labels"], [], []); + fields = fieldnames(ticksProperties); + for i = 1:size(fields, "*") + h(fields(i)) = ticksProperties(fields(i)); + end + endfunction + + // + // AXES + // + function h = createAxes(axesProperties) + // Hack to determine whether %h_load has been called by the %h_copy macro + // in which case a new Axes object is created + + [lnums, fnames] = where(); + ind = grep(fnames, "%h_copy"); + if ~isempty(ind) then + newaxes(); + end; + + h = gca(); + fields = fieldnames(axesProperties); + fields(1) = []; + + // Get log_flags to be sure to set them after data_bounds + log_flags = axesProperties.log_flags; + fields(fields=="log_flags") = []; + + // Get mark_mode to be sure to set it after mark_style + mark_mode = axesProperties.mark_mode; + fields(fields=="mark_mode") = []; + + // Get auto_ticks to be sure to set it after ticks labels + auto_ticks = axesProperties.auto_ticks; + fields(fields=="auto_ticks") = []; + automargins = %f; + if isfield(axesProperties, "auto_margins") then + auto_margins = axesProperties.auto_margins; + fields(fields=="auto_margins") = []; + automargins = %t; + end + + for i = 1:size(fields, "*") + if or(fields(i) == ["title","x_label","y_label","z_label"]) then + createLabel(axesProperties(fields(i)), h(fields(i))); + elseif or(fields(i) == ["x_ticks", "y_ticks", "z_ticks"]) then + set(h, fields(i), createTicks(axesProperties(fields(i)))); + elseif fields(i) == "children" then + createMatrixHandle(axesProperties(fields(i))); + elseif fields(i) == "clip_state" then + if axesProperties.clip_state=="on" then + set(h,"clip_box",axesProperties.clip_box); + end + set(h,"clip_state", axesProperties.clip_state); + elseif fields(i) == "clip_box" then + // managed with 'clip_state' + elseif fields(i) == "data_bounds" then + set(h, "data_bounds", axesProperties.data_bounds); + set(h, "log_flags", log_flags); + elseif fields(i) == "mark_style" then + set(h, "mark_style", axesProperties.mark_style); + set(h, "mark_mode", mark_mode); + else + set(h, fields(i), axesProperties(fields(i)));; + end + end + + set(h, "auto_ticks", auto_ticks); + if automargins then + set(h, "auto_margins", auto_margins); + end + + // Legend management + global %LEG + if ~isempty(%LEG) then + // Get handles from paths + links=getlinksfrompath(h, %LEG.paths) + if ~isempty(links) then + L = captions(links, %LEG.text) + L.visible = %LEG.visible + L.font_style = %LEG.font_style + L.font_size = %LEG.font_size + L.font_color = %LEG.font_color + L.fractional_font = %LEG.fractional_font + L.mark_mode = "off"; + L.legend_location = %LEG.legend_location + L.position = %LEG.position + L.line_mode = %LEG.line_mode + L.thickness = %LEG.thickness + L.foreground = %LEG.foreground + L.fill_mode = %LEG.fill_mode + L.background = %LEG.background + if %LEG.clip_state=="on" then + L.clip_box = %LEG.clip_box + end + L.clip_state = %LEG.clip_state + L.user_data = %LEG.user_data + else + warning(msprintf(_("%s: Legend does not fit with the current context. Skipped\n"), "load")); + end + end + clearglobal %LEG + + endfunction + + // + // POLYLINE + // + function h = createPolyline(polylineProperties) + fields = fieldnames(polylineProperties); + fields(1) = []; + + xpoly(polylineProperties.data(:,1), polylineProperties.data(:,2)) + + h = gce(); + + if polylineProperties.clip_state=="on" then + set(h, "clip_box", polylineProperties.clip_box) + end + set(h, "clip_state", polylineProperties.clip_state); + fields(fields=="clip_box") = []; + fields(fields=="clip_state") = []; + + if polylineProperties.interp_color_mode=="on" & ~isempty(polylineProperties.interp_color_vector) then + set(h, "interp_color_vector", polylineProperties.interp_color_vector); + set(h, "interp_color_mode", polylineProperties.interp_color_mode); + else + if ~isempty(polylineProperties.interp_color_vector) then + h.interp_color_vector = polylineProperties.interp_color_vector; + end + h.interp_color_mode = polylineProperties.interp_color_mode; + end + fields(fields=="interp_color_vector") = []; + fields(fields=="interp_color_mode") = []; + + // Get mark_mode to be sure to set it after mark_style + mark_mode = polylineProperties.mark_mode; + fields(fields=="mark_mode") = []; + + global %POLYLINE + %POLYLINE = h + + for i = 1:size(fields, "*") + if fields(i) == "mark_style" then + set(h, "mark_style", polylineProperties.mark_style); + set(h, "mark_mode", mark_mode); + elseif fields(i) == "children" then + createMatrixHandle(polylineProperties(fields(i))); + elseif fields(i) == "datatips" then + createMatrixHandle(polylineProperties(fields(i))); + else + h(fields(i)) = polylineProperties(fields(i)); + end + end + + clearglobal %POLYLINE + + endfunction + + // + // PLOT3D + // + function h = createPlot3d(plot3dProperties) + h = createSurface(plot3dProperties); + endfunction + + // + // FAC3D + // + function h = createFac3d(fac3dProperties) + h = createSurface(fac3dProperties); + endfunction + + // + // SURFACE + // + function h = createSurface(surfaceProperties) + fields = fieldnames(surfaceProperties); + fields(1) = []; + // plot3d modify the axes properties + // - Save it + // - Draw plot3d + // - Restore it + a=gca(); + rotation_angles = a.rotation_angles; + axes_visible = a.axes_visible; + box = a.box; + margins = a.margins; + x_label_visible = a.x_label.visible; + y_label_visible = a.y_label.visible; + z_label_visible = a.z_label.visible; + x_label_text = a.x_label.text; + y_label_text = a.y_label.text; + z_label_text = a.z_label.text; + axes_isoview = a.isoview; + + if (or(surfaceProperties.color_flag==[2 5]) & ~or(fields=="cdata_mapping")) | .. + ((surfaceProperties.color_flag>=2) & or(fields=="cdata_mapping")) then + plot3d1(surfaceProperties.data.x, surfaceProperties.data.y, list(surfaceProperties.data.z, surfaceProperties.data.color)) + else + plot3d(surfaceProperties.data.x,surfaceProperties.data.y,surfaceProperties.data.z) + end + fields(fields=="data") = []; + + // Restore this properties after plot3d. + a.rotation_angles = rotation_angles; + a.axes_visible = axes_visible; + a.box = box; + a.margins = margins; + a.x_label.visible = x_label_visible; + a.y_label.visible = y_label_visible; + a.z_label.visible = z_label_visible; + a.x_label.text = x_label_text; + a.y_label.text = y_label_text; + a.z_label.text = z_label_text; + a.isoview = axes_isoview; + + // Get mark_mode to be sure to set it after mark_style + mark_mode = surfaceProperties.mark_mode; + fields(fields=="mark_mode") = []; + + h=gce(); + + if or(fields=="cdata_mapping") then // Fac3d specific + if surfaceProperties.color_flag >= 2 then + set(h, "cdata_mapping", surfaceProperties.cdata_mapping); + end + fields(fields=="cdata_mapping") = []; + end + + if surfaceProperties.clip_state == "on" then + set(h,"clip_box", surfaceProperties.clip_box); + end + set(h,"clip_state",surfaceProperties.clip_state); + fields(fields=="clip_box") = []; + fields(fields=="clip_state") = []; + + for i = 1:size(fields, "*") + if fields(i) == "mark_style" then + set(h, "mark_style", surfaceProperties.mark_style); + set(h, "mark_mode", mark_mode); + else + h(fields(i)) = surfaceProperties(fields(i)); + end + end + endfunction + + // + // COMPOUND + // + function h = createCompound(compoundProperties) + fields = fieldnames(compoundProperties); + fields(1) = []; + + h = glue(createMatrixHandle(compoundProperties.children)); + fields(fields=="children") = []; + + for i = 1:size(fields, "*") + set(h, fields(i), compoundProperties(fields(i))); + end + endfunction + + // + // RECTANGLE + // + function h = createRectangle(rectangleProperties) + fields = fieldnames(rectangleProperties); + fields(1) = []; + + xrect(0,1,1,1); // create the rectangle with dummy values + h = gce(); + + if rectangleProperties.clip_state == "on" then + set(h,"clip_box", rectangleProperties.clip_box); + end + set(h,"clip_state",rectangleProperties.clip_state); + fields(fields=="clip_box") = []; + fields(fields=="clip_state") = []; + + // Get mark_mode to be sure to set it after mark_style + mark_mode = rectangleProperties.mark_mode; + fields(fields=="mark_mode") = []; + + for i = 1:size(fields, "*") + if fields(i) == "mark_style" then + set(h, "mark_style", rectangleProperties.mark_style); + set(h, "mark_mode", mark_mode); + else + h(fields(i)) = rectangleProperties(fields(i)); + end + end + endfunction + + // + // ARC + // + function h = createArc(arcProperties) + fields = fieldnames(arcProperties); + fields(1) = []; + + xarc(0,1,1,1,0,360); // create the arc with dummy values + h = gce(); + + if arcProperties.clip_state == "on" then + set(h,"clip_box", arcProperties.clip_box); + end + set(h,"clip_state",arcProperties.clip_state); + fields(fields=="clip_box") = []; + fields(fields=="clip_state") = []; + + for i = 1:size(fields, "*") + set(h, fields(i), arcProperties(fields(i))); + end + endfunction + + // + // CHAMP + // + function h = createChamp(champProperties) + fields = fieldnames(champProperties); + fields(1) = []; + + champ(champProperties.data.x, champProperties.data.y, champProperties.data.fx, champProperties.data.fy); + fields(fields=="data") = []; + + h=gce(); + + if champProperties.clip_state == "on" then + set(h,"clip_box", champProperties.clip_box); + end + set(h,"clip_state",champProperties.clip_state); + fields(fields=="clip_box") = []; + fields(fields=="clip_state") = []; + + for i = 1:size(fields, "*") + set(h, fields(i), champProperties(fields(i))); + end + endfunction + + // + // SEG + // + function h = createSegs(segsProperties) + fields = fieldnames(segsProperties); + fields(1) = []; + + xsegs(segsProperties.data(:,1), segsProperties.data(:,2)) + + h=gce() + + if segsProperties.clip_state == "on" then + set(h,"clip_box", segsProperties.clip_box); + end + set(h,"clip_state",segsProperties.clip_state); + fields(fields=="clip_box") = []; + fields(fields=="clip_state") = []; + + // Get mark_mode to be sure to set it after mark_style + mark_mode = segsProperties.mark_mode; + fields(fields=="mark_mode") = []; + + for i = 1:size(fields, "*") + if fields(i) == "mark_style" then + set(h, "mark_style", segsProperties.mark_style); + set(h, "mark_mode", mark_mode); + else + h(fields(i)) = segsProperties(fields(i)); + end + end + endfunction + + // + // GRAYPLOT + // + function h = createGrayplot(grayplotProperties) + fields = fieldnames(grayplotProperties); + fields(1) = []; + + grayplot(grayplotProperties.data.x, grayplotProperties.data.y, grayplotProperties.data.z); + fields(fields=="data") = []; + + h = gce(); + + if grayplotProperties.clip_state=="on" then + set(h, "clip_box", grayplotProperties.clip_box) + end + set(h, "clip_state", grayplotProperties.clip_state); + fields(fields=="clip_box") = []; + fields(fields=="clip_state") = []; + + for i = 1:size(fields, "*") + set(h, fields(i), grayplotProperties(fields(i))); + end + endfunction + + // + // MATPLOT + // + function h = createMatplot(matplotProperties) + fields = fieldnames(matplotProperties); + fields(1) = []; + + Matplot(matplotProperties.data); + fields(fields=="data") = []; + + h = gce(); + + if matplotProperties.clip_state=="on" then + set(h, "clip_box", matplotProperties.clip_box) + end + set(h, "clip_state", matplotProperties.clip_state); + fields(fields=="clip_box") = []; + fields(fields=="clip_state") = []; + + for i = 1:size(fields, "*") + set(h, fields(i), matplotProperties(fields(i))); + end + endfunction + + // + // FEC + // + function h = createFec(fecProperties) + fields = fieldnames(fecProperties); + fields(1) = []; + + fec(fecProperties.data(:,1), fecProperties.data(:,2), fecProperties.triangles, fecProperties.data(:,3)); + fields(fields=="data") = []; + fields(fields=="triangles") = []; + + h = unglue(gce()); + + if fecProperties.clip_state=="on" then + set(h, "clip_box", fecProperties.clip_box) + end + set(h, "clip_state", fecProperties.clip_state); + fields(fields=="clip_box") = []; + fields(fields=="clip_state") = []; + + for i = 1:size(fields, "*") + set(h, fields(i), fecProperties(fields(i))); + end + endfunction + + // + // LEGEND + // + function h = createLegend(legendProperties) + global %LEG + %LEG = legendProperties; + h = []; + endfunction + + // + // TEXT + // + function h = createText(textProperties) + fields = fieldnames(textProperties); + fields(1) = []; + + if textProperties.text_box_mode == "off" then + xstring(textProperties.data(1), textProperties.data(2), textProperties.text) + else + xstringb(textProperties.data(1), textProperties.data(2), textProperties.text, textProperties.text_box(1), textProperties.text_box(2)) + end + + h = gce(); + + if textProperties.clip_state=="on" then + set(h, "clip_box", textProperties.clip_box) + end + set(h, "clip_state", textProperties.clip_state); + fields(fields=="clip_box") = []; + fields(fields=="clip_state") = []; + + for i = 1:size(fields, "*") + set(h, fields(i), textProperties(fields(i))); + end + endfunction + + // + // DATATIP + // + function h = createDatatip(datatipProperties) + + fields = fieldnames(datatipProperties); + fields(1) = []; + + tip_data = datatipProperties("data"); + h = datatipCreate(%POLYLINE, tip_data); + + for i = 1:size(fields, "*") + if fields(i) == "data" then + continue; + end + + set(h, fields(i), datatipProperties(fields(i))); + end + endfunction + + // + // AXIS + // + function h = createAxis(axisProperties) + fields = fieldnames(axisProperties); + fields(1) = []; + + if axisProperties.tics_direction == "bottom" then + axisdir="d"; + elseif axisProperties.tics_direction == "top" then + axisdir="u"; + elseif axisProperties.tics_direction == "left" then + axisdir="l"; + elseif axisProperties.tics_direction == "right" then + axisdir="r"; + elseif size(axisProperties.xtics_coord, "*") > 1 then + axisdir="u"; + else + axisdir="l"; + end + fields(fields=="tics_direction") = []; + + drawaxis(x=axisProperties.xtics_coord,y=axisProperties.ytics_coord,dir=axisdir); + fields(fields=="xtics_coord") = []; + fields(fields=="ytics_coord") = []; + + h=gce() + + if axisProperties.clip_state=="on" then + set(h, "clip_box", axisProperties.clip_box) + end + set(h, "clip_state", axisProperties.clip_state); + fields(fields=="clip_box") = []; + fields(fields=="clip_state") = []; + + for i = 1:size(fields, "*") + set(h, fields(i), axisProperties(fields(i))); + end + endfunction + + // + // uimenu + // + function h = createuimenu(uimenuProperties) + fields = fieldnames(uimenuProperties); + fields(1) = []; + + h = uimenu(); + + for i = 1:size(fields, "*") + if fields(i) == "children" then + children = createMatrixHandle(uimenuProperties(fields(i))); + for k=1:size(children, "*") + set(children(k), "parent", h); + end + else + set(h, fields(i), uimenuProperties(fields(i))); + end + end + endfunction + + // + // UICONTEXTMENU + // + function h = createuicontextmenu(uicontextmenuProperties) + fields = fieldnames(uicontextmenuProperties); + fields(1) = []; + + h = uicontextmenu(); + + for i = 1:size(fields, "*") + if fields(i) == "children" then + children = createMatrixHandle(uicontextmenuProperties(fields(i))); + for k=1:size(children, "*") + set(children(k), "parent", h); + end + else + set(h, fields(i), uicontextmenuProperties(fields(i))); + end + end + endfunction + + // + // uicontrol + // + function h = createuicontrol(uicontrolProperties) + fields = fieldnames(uicontrolProperties); + fields(1) = []; + + if or(fields=="scrollable") then + // Properties added in Scilab 5.5.0 + // - scrollable must be set at creation (for frames) + // - contraints & margins must be set before parent + h = uicontrol("style", uicontrolProperties.style, ... + "scrollable", uicontrolProperties.scrollable, ... + "constraints", uicontrolProperties.constraints, ... + "margins", uicontrolProperties.margins); + fields(fields=="scrollable") = []; + fields(fields=="constraints") = []; + fields(fields=="margins") = []; + h.layout_options = uicontrolProperties.layout_options; + fields(fields=="layout_options") = []; + h.layout = uicontrolProperties.layout; + fields(fields=="layout") = []; + else + h = uicontrol("style", uicontrolProperties.style); + end + fields(fields=="style") = []; + + for i = 1:size(fields, "*") + if fields(i) == "children" then + children = createMatrixHandle(uicontrolProperties(fields(i))); + for k=1:size(children, "*") + set(children(k), "parent", h); + end + else + set(h, fields(i), uicontrolProperties(fields(i))); + end + end + endfunction + + // + // LIGHT + // + function h = createLight(lightProperties) + fields = fieldnames(lightProperties); + fields(1) = []; + + h = light(); + fields(fields=="children") = []; + + for i = 1:size(fields, "*") + set(h, fields(i), lightProperties(fields(i))); + end + endfunction + + // Utility function for legends, copy/paste from %h_load + function links=getlinksfrompath(ax,paths) + // ax is a handle on an axes entity + // paths a list or row vector which gives the set of paths relative to + // the axes + links=[]; + ok=%t; + for p=paths + e=ax; + p(1)=p(1)-1// the caption does not exists yet + for kp=1:size(p,"*"), + if or(e.type==["Axes","Compound"])&p(kp)<=size(e.children,"*") then + e=e.children(p(kp)), + else + ok=%f + break + end + end + if ~ok then + break + end + links=[links,e] + end + if ~ok then + links=[]; + end + endfunction + + function macro = createMacro(macroStr, macroName) + + macroSt = macroStr(3); + if macroStr(2) == %t then + flag = "c"; + else + flag = "n"; + end + header = strsubst(macroSt(1), "function ", ""); + body = macroSt(2:$-1); + if body == [] then + body = ""; + end + deff(header, body, flag); + execstr("macro = " + macroName); + endfunction + + [%__lhs__, %__rhs__] = argn(); + %__resumeList__ = list(); + %__resumeVarlist__ = []; + if %__rhs__ < 1 then + error(999, msprintf(gettext("%s: Wrong number of input arguments: %d expected.\n"), "load", 1)); + end + + if %__rhs__ >= 1 then + if typeof(%__filename__) <> "string" | size(%__filename__, "*") <> 1 then + error(999, msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"), "load", 1)); + end + end + + if isfile(%__filename__) & is_hdf5_file(%__filename__) then + %__loadFunction__ = import_from_hdf5; + //fileVersion = getScilabFileVersion(%__filename__); // Not needed for the moment + else + %__loadFunction__ = %_load; + end + + //multiple output variables to prevent listinfile prints + [%__variableList__, %__varB__, %__varC__, %__varD__] = listvarinfile(%__filename__); + // + if size(varargin) <> 0 then + for i = 1:size(varargin) + %__variableName__ = varargin(i); + if typeof(%__variableName__) <> "string" | size(%__variableName__, "*") <> 1 then + error(999, msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"), "load", i)); + end + + if or(%__variableList__ == %__variableName__) then + %__loadFunction__(%__filename__, %__variableName__); + %__resumeList__($+1) = evstr(%__variableName__); + %__resumeVarlist__($+1) = %__variableName__; + clear(%__variableName__); + else + error(999, msprintf(gettext("%s: variable ''%s'' does not exist in ''%s''.\n"), "load", %__variableName__, %__filename__)); + end + end + else + for i = 1:size(%__variableList__, "*") + %__variableName__ = %__variableList__(i); + %__loadFunction__(%__filename__, %__variableName__); + %__resumeList__($+1) = evstr(%__variableName__); + %__resumeVarlist__($+1) = %__variableName__; + clear(%__variableName__); + end + end + + if isfile(%__filename__) & is_hdf5_file(%__filename__) then + %__resumeList__ = %__convertVariable__(%__resumeList__, %__resumeVarlist__); + end + + execstr("[" + strcat(%__resumeVarlist__, ",") + "] = resume(%__resumeList__(:))"); +endfunction diff --git a/modules/io/macros/buildmacros.bat b/modules/io/macros/buildmacros.bat new file mode 100755 index 000000000..5df334e1e --- /dev/null +++ b/modules/io/macros/buildmacros.bat @@ -0,0 +1,11 @@ +rem Scilab ( http://mwww.scilab.org/ ) - This file is part of Scilab +rem Copyright (C) INRIA +rem +rem This file must be used under the terms of the CeCILL. +rem This source file is licensed as described in the file COPYING, which +rem you should have received as part of this distribution. The terms +rem are also available at +rem http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + + +@..\..\..\bin\scilex -nwni -ns -e exec('buildmacros.sce');quit;
\ No newline at end of file diff --git a/modules/io/macros/buildmacros.sce b/modules/io/macros/buildmacros.sce new file mode 100755 index 000000000..485166d0a --- /dev/null +++ b/modules/io/macros/buildmacros.sce @@ -0,0 +1,15 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2006-2008 - INRIA - 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 + +if (isdef("genlib") == %f) then + exec(SCI+"/modules/functions/scripts/buildmacros/loadgenlib.sce"); +end +//------------------------------------ +genlib("iolib","SCI/modules/io/macros",%f,%t); +//------------------------------------ diff --git a/modules/io/macros/cleanmacros.bat b/modules/io/macros/cleanmacros.bat new file mode 100755 index 000000000..768190a8b --- /dev/null +++ b/modules/io/macros/cleanmacros.bat @@ -0,0 +1,13 @@ +rem Scilab ( http://mwww.scilab.org/ ) - This file is part of Scilab +rem Copyright (C) INRIA +rem +rem This file must be used under the terms of the CeCILL. +rem This source file is licensed as described in the file COPYING, which +rem you should have received as part of this distribution. The terms +rem are also available at +rem http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + + +@del *.bin 2>NUL +@del lib 2>NUL +@del names 2>NUL
\ No newline at end of file diff --git a/modules/io/macros/getscilabkeywords.bin b/modules/io/macros/getscilabkeywords.bin Binary files differnew file mode 100755 index 000000000..e8108f8e9 --- /dev/null +++ b/modules/io/macros/getscilabkeywords.bin diff --git a/modules/io/macros/getscilabkeywords.sci b/modules/io/macros/getscilabkeywords.sci new file mode 100755 index 000000000..f37b81cfb --- /dev/null +++ b/modules/io/macros/getscilabkeywords.sci @@ -0,0 +1,41 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2005 - INRIA - Allan CORNET +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// Based on E.Segre dynamickeywords.sce +// +// 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 list_keywords = getscilabkeywords() + + scilab_primitives = []; + scilab_commands = []; + predef_variables = []; + scilab_functions = []; + scicos_functions = []; + + [scilab_primitives, scilab_commands] = what(); + + // predefined variables + names = who("get"); + predef_variables = names(($-predef())+1:$); + + //library functions + libvar = librarieslist(); + + for i = 1:size(libvar,1) + scilab_functions = [scilab_functions; libraryinfo(libvar(i))]; + end + + //scicos basic functions: read the lib + if with_module("xcos") then + // TO DO: changes lib names with reorganization + scicos_functions = [libraryinfo("scicos_utilslib"); libraryinfo("scicos_autolib")]; + end + + list_keywords = list(scilab_primitives, scilab_commands, predef_variables, scilab_functions, scicos_functions); + +endfunction diff --git a/modules/io/macros/halt.bin b/modules/io/macros/halt.bin Binary files differnew file mode 100755 index 000000000..91f633bb6 --- /dev/null +++ b/modules/io/macros/halt.bin diff --git a/modules/io/macros/halt.sci b/modules/io/macros/halt.sci new file mode 100755 index 000000000..6d3fc2add --- /dev/null +++ b/modules/io/macros/halt.sci @@ -0,0 +1,39 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) XXXX-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 + + +function []=halt(varargin) + + //halt() stops execution until something is entered in the keyboard. + + [lhs,rhs] = argn(0); + + msg = "halt"; + + if (rhs > 0) then + + if rhs > 1 then + error(msprintf(gettext("%s: Wrong number of input argument.\n"),"halt")); + end + + if type(varargin(1)) <> 10 then + error(msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"),"halt",1)); + end + + if size(varargin(1),"*") <> 1 then + error(msprintf(gettext("%s: Wrong size for input argument #%d: A string expected.\n"),"halt",1)); + end + + msg = string(varargin(1)); + end + + mprintf(msg); + mscanf("%c"); + +endfunction diff --git a/modules/io/macros/input.bin b/modules/io/macros/input.bin Binary files differnew file mode 100755 index 000000000..08f7d7e29 --- /dev/null +++ b/modules/io/macros/input.bin diff --git a/modules/io/macros/input.sci b/modules/io/macros/input.sci new file mode 100755 index 000000000..dd5ad0b0f --- /dev/null +++ b/modules/io/macros/input.sci @@ -0,0 +1,82 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) XXXX-2008 - INRIA +// Copyright (C) 2009-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 + + +function [x] = input(msg, flag) + + [lhs,rhs] = argn(0); + + if rhs <> 1 & rhs <> 2 then + error(msprintf(gettext("%s: Wrong number of input arguments: %d to %d expected.\n"), "input", 1, 2)); + end + + if type(msg) <> 10 then + error(msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"),"input",1)); + end + + if size(msg, "*") <> 1 then + error(msprintf(gettext("%s: Wrong size for input argument #%d: A string expected.\n"),"input",1)); + end + + // a tricky way to get all ascii codes sequences + fmt = "%[" + ascii(32) + "-" + ascii(254) + "]"; + + currentprompt = prompt(); + + if argn(2) == 2 then + if type(flag) <> 10 then + error(msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"),"input",2)); + end + + if size(flag, "*") <> 1 then + error(msprintf(gettext("%s: Wrong size for input argument #%d: A string expected.\n"),"input",2)); + end + + if (flag <> "s" & flag <> "string") then + error(msprintf(gettext("%s: Wrong value for input argument #%d: ''%s'' value expected.\n"),"input",2,"string")); + end + + prompt(msg); + x = mscanf(fmt); + + currentpromptAfter = prompt(); + // bug 5513 + // we had change prompt during exec of input + // we recall input + if (currentpromptAfter <> currentprompt) then + x = input(msg, flag); + end + + else + while %t + prompt(msg); + x = mscanf(fmt); + + currentpromptAfter = prompt(); + // bug 5513 + // we had change prompt during exec of input + // we recall input + if (currentpromptAfter <> currentprompt) then + x = string(input(msg)); + end + + if (length(x) == 0) | (x == " ") then + x = "[]"; + end + ierr = execstr("x=" + x,"errcatch"); + if ierr == 0 then + break; + end + mprintf(strcat(lasterror(),"\n")); + end + + end + prompt(currentprompt); +endfunction diff --git a/modules/io/macros/lib b/modules/io/macros/lib Binary files differnew file mode 100755 index 000000000..b5ef2fa80 --- /dev/null +++ b/modules/io/macros/lib diff --git a/modules/io/macros/names b/modules/io/macros/names new file mode 100755 index 000000000..23e9230b2 --- /dev/null +++ b/modules/io/macros/names @@ -0,0 +1,9 @@ +%_save +%_sodload +getscilabkeywords +halt +input +unix_g +unix_s +unix_w +unix_x diff --git a/modules/io/macros/unix_g.bin b/modules/io/macros/unix_g.bin Binary files differnew file mode 100755 index 000000000..fcfa5b0fe --- /dev/null +++ b/modules/io/macros/unix_g.bin diff --git a/modules/io/macros/unix_g.sci b/modules/io/macros/unix_g.sci new file mode 100755 index 000000000..d00e5c276 --- /dev/null +++ b/modules/io/macros/unix_g.sci @@ -0,0 +1,115 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) XXXX-2008 - INRIA +// Copyright (C) XXXX-2008 - INRIA - 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 + + +function varargout = unix_g(cmd) + //unix_g - shell command execution + //%Syntax + //rep=unix_g(cmd) + //%Parameters + // cmd - a character string + // rep - a column vector of character strings + //%Description + // cmd instruction (sh syntax) is passed to shell, the standard output + // is redirected to scilab variable rep. + //%Examples + // unix_g("ls") + //%See also + // host unix_x unix_s + //! + + [lhs,rhs] = argn(0); + + if rhs <> 1 then + error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"),"unix_g",1)); + end + + if type(cmd) <> 10 then + error(msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"),"unix_g",1)); + end + + if size(cmd,"*") <> 1 then + error(msprintf(gettext("%s: Wrong size for input argument #%d: A string expected.\n"),"unix_g",1)); + end + + if lhs > 3 then + error(msprintf(gettext("%s: Wrong number of output argument(s).\n"),"unix_g")); + end + + // initialize variables + stderr = emptystr(); + stat = 1; + rep = emptystr(); + + if getos() == "Windows" then + [rep,stat] = dos(cmd); + if (stat == %t) then + stat = 0; + else + if lhs == 3 then + stderr = rep; + else + for i=1:size(rep,"*") do write(%io(2)," "+rep(i));end + end + + stat = 1; + rep = emptystr(); + end + else + tmp = TMPDIR+"/unix.out"; + cmd1 = "("+cmd+")>"+ tmp +" 2>"+TMPDIR+"/unix.err;"; + stat = host(cmd1); + + select stat + + case 0 then + rep = mgetl(tmp); + if (size(rep,"*")==0) | (length(rep)==0) then + rep = []; + end; + + case 1 then + rep = mgetl(tmp); + + case -1 then + // host failed + if lhs == 3 then + stderr = msprintf(gettext("%s: The system interpreter does not answer..."),"unix_g"); + else + disp(msprintf(gettext("%s: The system interpreter does not answer..."),"unix_g")); + end + rep = emptystr(); + else + msg = mgetl(TMPDIR+"/unix.err"); + if lhs == 3 then + stderr = msg; + else + disp(msg(1)); + end + rep = emptystr(); + end + + mdelete(tmp); + end + + // output arguments + + varargout(1) = rep; + + if lhs >= 2 then + varargout(2) = stat; + end + + if lhs >= 3 then + varargout(3) = stderr; + end + +endfunction diff --git a/modules/io/macros/unix_s.bin b/modules/io/macros/unix_s.bin Binary files differnew file mode 100755 index 000000000..7d442b4db --- /dev/null +++ b/modules/io/macros/unix_s.bin diff --git a/modules/io/macros/unix_s.sci b/modules/io/macros/unix_s.sci new file mode 100755 index 000000000..23321fa72 --- /dev/null +++ b/modules/io/macros/unix_s.sci @@ -0,0 +1,59 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) XXXX-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 + + +function unix_s(cmd) + //unix_s - silent shell command execution + //%Syntax + // unix_s(cmd) + //%Parameters + // cmd - a character string + //%Description + // cmd instruction (sh syntax) is passed to shell, the standard output + // is redirected to /dev/null + //%Examples + // unix_s("\rm -f foo") + //%See also + // host unix_g unix_x + //! + + [lhs,rhs] = argn(0); + + if rhs <> 1 then + error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"),"unix_s",1)); + end + + if type(cmd) <> 10 then + error(msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"),"unix_s",1)); + end + + if size(cmd,"*") <> 1 then + error(msprintf(gettext("%s: Wrong size for input argument #%d: A string expected.\n"),"unix_s",1)); + end + + if getos() == "Windows" then + [rep,stat]=dos(cmd); + if (~stat) then + for i=1:size(rep,"*") do write(%io(2)," "+rep(i));end + error(msprintf(gettext("%s: error during ""%s"" execution"),"unix_s",cmd)); + end + else + cmd1="("+cmd+")>/dev/null 2>"+TMPDIR+"/unix.err;"; + stat=host(cmd1); + select stat + case 0 then + case -1 then // host failed + error(msprintf(gettext("%s: The system interpreter does not answer..."),"unix_s")) + else //sh failed + msg=read(TMPDIR+"/unix.err",-1,1,"(a)"); + for i=1:size(msg,"*") do write(%io(2)," "+msg(i));end + error(msprintf(gettext("%s: error during ""%s"" execution"),"unix_s",cmd)); + end + end +endfunction diff --git a/modules/io/macros/unix_w.bin b/modules/io/macros/unix_w.bin Binary files differnew file mode 100755 index 000000000..6d81d94a0 --- /dev/null +++ b/modules/io/macros/unix_w.bin diff --git a/modules/io/macros/unix_w.sci b/modules/io/macros/unix_w.sci new file mode 100755 index 000000000..60116a4d8 --- /dev/null +++ b/modules/io/macros/unix_w.sci @@ -0,0 +1,66 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) XXXX-2008 - INRIA +// Copyright (C) XXXX-2008 - INRIA - 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 + + +function unix_w(cmd) + //unix_w - shell command execution results redirected in main scilab window + //%Syntax + // unix_w(cmd) + //%Parameters + // cmd - a character string + //%Description + // cmd instruction (sh syntax) is passed to shell, the standard output + // is redirected to main scilab window + //%Examples + // unix_w("ls") + //%See also + // host unix_x unix_s unix_g + //! + + [lhs,rhs] = argn(0); + + if rhs <> 1 then + error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"),"unix_w",1)); + end + + if type(cmd) <> 10 then + error(msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"),"unix_w",1)); + end + + if size(cmd,"*") <> 1 then + error(msprintf(gettext("%s: Wrong size for input argument #%d: A string expected.\n"),"unix_w",1)); + end + + if getos() == "Windows" then + [rep,stat]=dos(cmd,"-echo"); + if (~stat) then + error(msprintf(gettext("%s: error during ""%s"" execution"),"unix_w",cmd)); + end + else + tmp=TMPDIR+"/unix.out"; + cmd1="("+cmd+")>"+ tmp +" 2>"+TMPDIR+"/unix.err;"; + stat=host(cmd1); + + select stat + case 0 then + write(%io(2),read(tmp,-1,1,"(a)")); + case -1 then // host failed + error(msprintf(gettext("%s: The system interpreter does not answer..."),"unix_w")); + else + msg=read(TMPDIR+"/unix.err",-1,1,"(a)"); + if (size(msg,"*") == 0) then // If the program does not return anything + msg="" + end + errmsg = msprintf(gettext("%s: The command failed with the error code ""%s"" and the following message:\n"),"unix_w",string(stat)); + error(msprintf("%s\n"+strcat(msg, "\n"), errmsg)); + end + deletefile(tmp); + end +endfunction diff --git a/modules/io/macros/unix_x.bin b/modules/io/macros/unix_x.bin Binary files differnew file mode 100755 index 000000000..1d82eb694 --- /dev/null +++ b/modules/io/macros/unix_x.bin diff --git a/modules/io/macros/unix_x.sci b/modules/io/macros/unix_x.sci new file mode 100755 index 000000000..db494a590 --- /dev/null +++ b/modules/io/macros/unix_x.sci @@ -0,0 +1,68 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) XXXX-2008 - INRIA +// Copyright (C) XXXX-2008 - INRIA - 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 + + +function unix_x(cmd) + //unix_x - shell command execution, results redirected in a window + //%Syntax + // unix_x(cmd) + //%Parameters + // cmd - a character string + //%Description + // cmd instruction is passed to shell, the standard output is redirected + // to a window + //%Examples + // unix_x("ls") + //%See also + // host unix_g unix_s + //! + + [lhs,rhs] = argn(0); + + if rhs <> 1 then + error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"),"unix_x",1)); + end + + if type(cmd) <> 10 then + error(msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"),"unix_x",1)); + end + + if size(cmd,"*") <> 1 then + error(msprintf(gettext("%s: Wrong size for input argument #%d: A string expected.\n"),"unix_x",1)); + end + + if getos() == "Windows" then + [rep,stat]=dos(cmd); + if (stat) then + messagebox(rep); + else + for i=1:size(rep,"*") do write(%io(2)," "+rep(i));end + error(msprintf(gettext("%s: error during ""%s"" execution"),"unix_x",cmd)); + end + else + tmp=TMPDIR+"/unix.out"; + cmd1="("+cmd+")>"+ tmp +" 2>"+TMPDIR+"/unix.err;"; + stat=host(cmd1); + select stat + case 0 then + rep=mgetl(tmp) + if (size(rep,"*")==0) | (length(rep)==0) then + rep=[] + end + messagebox(rep); + case -1 then // host failed + error(msprintf(gettext("%s: The system interpreter does not answer..."),"unix_x")); + else //sh failed + msg=read(TMPDIR+"/unix.err",-1,1,"(a)") + error("unix_x: "+msg(1)) + end + end + +endfunction diff --git a/modules/io/sci_gateway/c/.deps/.dirstamp b/modules/io/sci_gateway/c/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/.dirstamp diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-gw_io.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-gw_io.Plo new file mode 100755 index 000000000..fa30ad2ef --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-gw_io.Plo @@ -0,0 +1,284 @@ +sci_gateway/c/libsciio_la-gw_io.lo: sci_gateway/c/gw_io.c \ + /usr/include/stdc-predef.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.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 \ + ../../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 /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.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/lib/gcc/x86_64-linux-gnu/5/include/stdarg.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/callFunctionFromGateway.h \ + ../../modules/core/includes/recursionFunction.h + +/usr/include/stdc-predef.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.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: + +../../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: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.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/lib/gcc/x86_64-linux-gnu/5/include/stdarg.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/callFunctionFromGateway.h: + +../../modules/core/includes/recursionFunction.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_file.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_file.Plo new file mode 100755 index 000000000..07eb9ae6f --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_file.Plo @@ -0,0 +1,334 @@ +sci_gateway/c/libsciio_la-sci_file.lo: sci_gateway/c/sci_file.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 includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.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 /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.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/lib/gcc/x86_64-linux-gnu/5/include/stdarg.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/fileio/includes/FileExist.h \ + ../../modules/fileio/includes/dynlib_fileio.h \ + ../../modules/core/includes/BOOL.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/fileio/includes/filesmanagement.h /usr/include/libio.h \ + /usr/include/_G_config.h /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h \ + ../../modules/core/includes/freeArrayOfString.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: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.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: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.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/lib/gcc/x86_64-linux-gnu/5/include/stdarg.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/fileio/includes/FileExist.h: + +../../modules/fileio/includes/dynlib_fileio.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/fileio/includes/filesmanagement.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +../../modules/core/includes/freeArrayOfString.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_getenv.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_getenv.Plo new file mode 100755 index 000000000..b69f6842d --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_getenv.Plo @@ -0,0 +1,320 @@ +sci_gateway/c/libsciio_la-sci_getenv.lo: sci_gateway/c/sci_getenv.c \ + /usr/include/stdc-predef.h /usr/include/stdio.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/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \ + /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.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/byteswap-16.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 includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.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 \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h /usr/include/string.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h \ + /usr/include/x86_64-linux-gnu/bits/string3.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/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.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 \ + ../../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 includes/getenvc.h \ + ../../modules/core/includes/PATH_MAX.h + +/usr/include/stdc-predef.h: + +/usr/include/stdio.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/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.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/byteswap-16.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: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.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: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +/usr/include/string.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/x86_64-linux-gnu/bits/string3.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/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.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: + +../../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: + +includes/getenvc.h: + +../../modules/core/includes/PATH_MAX.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_getio.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_getio.Plo new file mode 100755 index 000000000..c4bb9f1a2 --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_getio.Plo @@ -0,0 +1,205 @@ +sci_gateway/c/libsciio_la-sci_getio.lo: sci_gateway/c/sci_getio.c \ + /usr/include/stdc-predef.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h \ + ../../modules/core/includes/stack-c.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 \ + ../../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 /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.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/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h + +/usr/include/stdc-predef.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: + +../../modules/core/includes/stack-c.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: + +../../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: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.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/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_getpid.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_getpid.Plo new file mode 100755 index 000000000..9fb9c3b5a --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_getpid.Plo @@ -0,0 +1,201 @@ +sci_gateway/c/libsciio_la-sci_getpid.lo: sci_gateway/c/sci_getpid.c \ + /usr/include/stdc-predef.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h \ + ../../modules/core/includes/stack-c.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 \ + ../../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 /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.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 src/c/getpidc.h + +/usr/include/stdc-predef.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: + +../../modules/core/includes/stack-c.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: + +../../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: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.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: + +src/c/getpidc.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_host.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_host.Plo new file mode 100755 index 000000000..1d1421a57 --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_host.Plo @@ -0,0 +1,294 @@ +sci_gateway/c/libsciio_la-sci_host.lo: sci_gateway/c/sci_host.c \ + /usr/include/stdc-predef.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h /usr/include/stdlib.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/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.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/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/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h /usr/include/string.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/x86_64-linux-gnu/bits/string3.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 \ + ../../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/lib/gcc/x86_64-linux-gnu/5/include/stdarg.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 includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h \ + src/c/systemc.h ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h + +/usr/include/stdc-predef.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/stdlib.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/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.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/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/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +/usr/include/string.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/x86_64-linux-gnu/bits/string3.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: + +../../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/lib/gcc/x86_64-linux-gnu/5/include/stdarg.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: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: + +src/c/systemc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_load.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_load.Plo new file mode 100755 index 000000000..91293af44 --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_load.Plo @@ -0,0 +1,292 @@ +sci_gateway/c/libsciio_la-sci_load.lo: sci_gateway/c/sci_load.c \ + /usr/include/stdc-predef.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.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 \ + ../../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 /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.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/lib/gcc/x86_64-linux-gnu/5/include/stdarg.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/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/output_stream/includes/sciprint.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/warningmode.h + +/usr/include/stdc-predef.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.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: + +../../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: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.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/lib/gcc/x86_64-linux-gnu/5/include/stdarg.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/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/output_stream/includes/sciprint.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/warningmode.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_read.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_read.Plo new file mode 100755 index 000000000..29e8b82f7 --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_read.Plo @@ -0,0 +1,11 @@ +sci_gateway/c/libsciio_la-sci_read.lo: sci_gateway/c/sci_read.c \ + /usr/include/stdc-predef.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h + +/usr/include/stdc-predef.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_read4b.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_read4b.Plo new file mode 100755 index 000000000..fd634bb87 --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_read4b.Plo @@ -0,0 +1,11 @@ +sci_gateway/c/libsciio_la-sci_read4b.lo: sci_gateway/c/sci_read4b.c \ + /usr/include/stdc-predef.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h + +/usr/include/stdc-predef.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_readb.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_readb.Plo new file mode 100755 index 000000000..0a9705379 --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_readb.Plo @@ -0,0 +1,11 @@ +sci_gateway/c/libsciio_la-sci_readb.lo: sci_gateway/c/sci_readb.c \ + /usr/include/stdc-predef.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h + +/usr/include/stdc-predef.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_save.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_save.Plo new file mode 100755 index 000000000..574c597d3 --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_save.Plo @@ -0,0 +1,298 @@ +sci_gateway/c/libsciio_la-sci_save.lo: sci_gateway/c/sci_save.c \ + /usr/include/stdc-predef.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h \ + ../../modules/core/includes/stack-c.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 \ + ../../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 /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.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_scilab.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/lib/gcc/x86_64-linux-gnu/5/include/stdarg.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/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/output_stream/includes/sciprint.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/warningmode.h + +/usr/include/stdc-predef.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: + +../../modules/core/includes/stack-c.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: + +../../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: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.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_scilab.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/lib/gcc/x86_64-linux-gnu/5/include/stdarg.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/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/output_stream/includes/sciprint.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/warningmode.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_setenv.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_setenv.Plo new file mode 100755 index 000000000..798c4b5d1 --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_setenv.Plo @@ -0,0 +1,316 @@ +sci_gateway/c/libsciio_la-sci_setenv.lo: sci_gateway/c/sci_setenv.c \ + /usr/include/stdc-predef.h /usr/include/stdio.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/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \ + /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/string.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/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.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 /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.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/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 includes/setenvc.h \ + ../../modules/core/includes/BOOL.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.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/stdio.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/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/string.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/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.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: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.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/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: + +includes/setenvc.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.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/io/sci_gateway/c/.deps/libsciio_la-sci_unix.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_unix.Plo new file mode 100755 index 000000000..a6e3fb4bd --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_unix.Plo @@ -0,0 +1,11 @@ +sci_gateway/c/libsciio_la-sci_unix.lo: sci_gateway/c/sci_unix.c \ + /usr/include/stdc-predef.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h + +/usr/include/stdc-predef.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_write.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_write.Plo new file mode 100755 index 000000000..51e965f3a --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_write.Plo @@ -0,0 +1,11 @@ +sci_gateway/c/libsciio_la-sci_write.lo: sci_gateway/c/sci_write.c \ + /usr/include/stdc-predef.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h + +/usr/include/stdc-predef.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_write4b.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_write4b.Plo new file mode 100755 index 000000000..50acdd7e0 --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_write4b.Plo @@ -0,0 +1,11 @@ +sci_gateway/c/libsciio_la-sci_write4b.lo: sci_gateway/c/sci_write4b.c \ + /usr/include/stdc-predef.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h + +/usr/include/stdc-predef.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: diff --git a/modules/io/sci_gateway/c/.deps/libsciio_la-sci_writeb.Plo b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_writeb.Plo new file mode 100755 index 000000000..0be8c4eb7 --- /dev/null +++ b/modules/io/sci_gateway/c/.deps/libsciio_la-sci_writeb.Plo @@ -0,0 +1,11 @@ +sci_gateway/c/libsciio_la-sci_writeb.lo: sci_gateway/c/sci_writeb.c \ + /usr/include/stdc-predef.h includes/gw_io.h \ + ../../modules/core/includes/machine.h includes/dynlib_io.h + +/usr/include/stdc-predef.h: + +includes/gw_io.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_io.h: diff --git a/modules/io/sci_gateway/c/.dirstamp b/modules/io/sci_gateway/c/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/io/sci_gateway/c/.dirstamp diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-gw_io.o b/modules/io/sci_gateway/c/.libs/libsciio_la-gw_io.o Binary files differnew file mode 100755 index 000000000..55d7d5df2 --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-gw_io.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_file.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_file.o Binary files differnew file mode 100755 index 000000000..dd6c78ffb --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_file.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_getenv.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_getenv.o Binary files differnew file mode 100755 index 000000000..702f5646e --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_getenv.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_getio.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_getio.o Binary files differnew file mode 100755 index 000000000..7c93a55f6 --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_getio.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_getpid.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_getpid.o Binary files differnew file mode 100755 index 000000000..aed9bb5a8 --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_getpid.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_host.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_host.o Binary files differnew file mode 100755 index 000000000..eeb90a830 --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_host.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_load.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_load.o Binary files differnew file mode 100755 index 000000000..94a80f16c --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_load.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_read.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_read.o Binary files differnew file mode 100755 index 000000000..a91a196cc --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_read.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_read4b.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_read4b.o Binary files differnew file mode 100755 index 000000000..12e0a6593 --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_read4b.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_readb.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_readb.o Binary files differnew file mode 100755 index 000000000..2596de426 --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_readb.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_save.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_save.o Binary files differnew file mode 100755 index 000000000..4b56d3d71 --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_save.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_setenv.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_setenv.o Binary files differnew file mode 100755 index 000000000..908fbeb01 --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_setenv.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_unix.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_unix.o Binary files differnew file mode 100755 index 000000000..bd6aadd7c --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_unix.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_write.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_write.o Binary files differnew file mode 100755 index 000000000..4344803be --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_write.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_write4b.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_write4b.o Binary files differnew file mode 100755 index 000000000..0142d2869 --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_write4b.o diff --git a/modules/io/sci_gateway/c/.libs/libsciio_la-sci_writeb.o b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_writeb.o Binary files differnew file mode 100755 index 000000000..7fbe4f726 --- /dev/null +++ b/modules/io/sci_gateway/c/.libs/libsciio_la-sci_writeb.o diff --git a/modules/io/sci_gateway/c/gw_io.c b/modules/io/sci_gateway/c/gw_io.c new file mode 100755 index 000000000..cde4d33c7 --- /dev/null +++ b/modules/io/sci_gateway/c/gw_io.c @@ -0,0 +1,82 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - 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 "gw_io.h" +#include "api_scilab.h" +#include "MALLOC.h" +#include "callFunctionFromGateway.h" +#include "recursionFunction.h" +/*--------------------------------------------------------------------------*/ +extern int C2F(intsave)(); /* fortran subroutine */ +/*--------------------------------------------------------------------------*/ +static gw_generic_table Tab[] = +{ + {sci_setenv, "setenv"}, + {sci_read, "read"}, + {sci_getenv, "getenv"}, + {sci_getio, "getio"}, + {NULL, ""}, + {NULL, ""}, + {sci_write, "write"}, + {NULL, ""}, + {sci_file, "file"}, + {sci_host, "host"}, + {sci_unix, "unix"}, + {sci_readb, "readb"}, + {sci_writb, "writb"}, + {sci_getpid, "getpid"}, + {sci_read4b, "read4b"}, + {sci_write4b, "write4b"}, + {sci_save, "save"}, + {sci_load, "load"}, + {sci_percent_load, "%_load"} +}; +/*--------------------------------------------------------------------------*/ +int gw_io(void) +{ + /* Recursion from a function */ + if (pvApiCtx == NULL) + { + pvApiCtx = (StrCtx*)MALLOC(sizeof(StrCtx)); + } + + if ( isRecursionCallToFunction() ) + { + switch ( getRecursionFunctionToCall() ) + { + case RECURSION_CALL_SAVE: + { + pvApiCtx->pstName = "save"; + C2F(intsave)(); + return 0; + } + break; + case RECURSION_CALL_LOAD: + { + pvApiCtx->pstName = "load"; + sci_load("load", (unsigned long)strlen("load")); + return 0; + } + break; + default: + break; + } + } + else + { + Rhs = Max(0, Rhs); + pvApiCtx->pstName = (char*)Tab[Fin - 1].name; + callFunctionFromGateway(Tab, SIZE_CURRENT_GENERIC_TABLE(Tab)); + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/libsciio_la-gw_io.lo b/modules/io/sci_gateway/c/libsciio_la-gw_io.lo new file mode 100755 index 000000000..86c446368 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-gw_io.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-gw_io.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/libsciio_la-gw_io.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_file.lo b/modules/io/sci_gateway/c/libsciio_la-sci_file.lo new file mode 100755 index 000000000..a1589c0e5 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_file.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_file.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/libsciio_la-sci_file.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_getenv.lo b/modules/io/sci_gateway/c/libsciio_la-sci_getenv.lo new file mode 100755 index 000000000..8fafe9f3d --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_getenv.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_getenv.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/libsciio_la-sci_getenv.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_getio.lo b/modules/io/sci_gateway/c/libsciio_la-sci_getio.lo new file mode 100755 index 000000000..fb68c2159 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_getio.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_getio.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/libsciio_la-sci_getio.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_getpid.lo b/modules/io/sci_gateway/c/libsciio_la-sci_getpid.lo new file mode 100755 index 000000000..ccf92906a --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_getpid.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_getpid.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/libsciio_la-sci_getpid.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_host.lo b/modules/io/sci_gateway/c/libsciio_la-sci_host.lo new file mode 100755 index 000000000..d26f6921e --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_host.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_host.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/libsciio_la-sci_host.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_load.lo b/modules/io/sci_gateway/c/libsciio_la-sci_load.lo new file mode 100755 index 000000000..c0463c225 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_load.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_load.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/libsciio_la-sci_load.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_read.lo b/modules/io/sci_gateway/c/libsciio_la-sci_read.lo new file mode 100755 index 000000000..3edf7dc66 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_read.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_read.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/libsciio_la-sci_read.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_read4b.lo b/modules/io/sci_gateway/c/libsciio_la-sci_read4b.lo new file mode 100755 index 000000000..7fa75e343 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_read4b.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_read4b.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/libsciio_la-sci_read4b.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_readb.lo b/modules/io/sci_gateway/c/libsciio_la-sci_readb.lo new file mode 100755 index 000000000..a59a01458 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_readb.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_readb.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/libsciio_la-sci_readb.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_save.lo b/modules/io/sci_gateway/c/libsciio_la-sci_save.lo new file mode 100755 index 000000000..2af8d8e23 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_save.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_save.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/libsciio_la-sci_save.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_setenv.lo b/modules/io/sci_gateway/c/libsciio_la-sci_setenv.lo new file mode 100755 index 000000000..6ca34e5c2 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_setenv.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_setenv.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/libsciio_la-sci_setenv.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_unix.lo b/modules/io/sci_gateway/c/libsciio_la-sci_unix.lo new file mode 100755 index 000000000..132e9ed08 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_unix.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_unix.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/libsciio_la-sci_unix.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_write.lo b/modules/io/sci_gateway/c/libsciio_la-sci_write.lo new file mode 100755 index 000000000..179b9d0a9 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_write.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_write.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/libsciio_la-sci_write.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_write4b.lo b/modules/io/sci_gateway/c/libsciio_la-sci_write4b.lo new file mode 100755 index 000000000..a85c35a59 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_write4b.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_write4b.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/libsciio_la-sci_write4b.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/libsciio_la-sci_writeb.lo b/modules/io/sci_gateway/c/libsciio_la-sci_writeb.lo new file mode 100755 index 000000000..9d3723f27 --- /dev/null +++ b/modules/io/sci_gateway/c/libsciio_la-sci_writeb.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libsciio_la-sci_writeb.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/libsciio_la-sci_writeb.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/c/sci_file.c b/modules/io/sci_gateway/c/sci_file.c new file mode 100755 index 000000000..876596c58 --- /dev/null +++ b/modules/io/sci_gateway/c/sci_file.c @@ -0,0 +1,472 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - Allan CORNET + * Copyright (C) 2009-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 <string.h> +#include "gw_io.h" +#include "api_scilab.h" +#include "FileExist.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "charEncoding.h" +#include "filesmanagement.h" +#include "freeArrayOfString.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +/*--------------------------------------------------------------------------*/ +#define FILE_OPEN_STR "open" +#define FILE_OLD_STR "old" +/*--------------------------------------------------------------------------*/ +extern int C2F(intfile)(); /* fortran subroutine */ +/*--------------------------------------------------------------------------*/ +static int sci_file_no_rhs(char *fname); +static int sci_file_one_rhs(char *fname); +/*--------------------------------------------------------------------------*/ +int sci_file(char *fname, unsigned long fname_len) +{ + if (Rhs == 0) + { + return sci_file_no_rhs(fname); + } + + if (Rhs == 1) + { + return sci_file_one_rhs(fname); + } + + if (Rhs >= 3) + { + SciErr sciErr; + + int *piAddressVarOne = NULL; + int *piAddressVarTwo = NULL; + int *piAddressVarThree = NULL; + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddressVarTwo); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2); + return 0; + } + + sciErr = getVarAddressFromPosition(pvApiCtx, 3, &piAddressVarThree); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 3); + return 0; + } + + if ( isStringType(pvApiCtx, piAddressVarOne) && + isStringType(pvApiCtx, piAddressVarTwo) && + isStringType(pvApiCtx, piAddressVarThree)) + { + char *pStVarOne = NULL; + int lenStVarOne = 0; + + wchar_t *pStVarTwo = NULL; + int lenStVarTwo = 0; + + char *pStVarThree = NULL; + int lenStVarThree = 0; + + int m1 = 0, n1 = 0; + int m2 = 0, n2 = 0; + int m3 = 0, n3 = 0; + + if (isScalar(pvApiCtx, piAddressVarOne) == 0) + { + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 1); + return 0; + } + + if (isScalar(pvApiCtx, piAddressVarTwo) == 0) + { + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 2); + return 0; + } + + if (isScalar(pvApiCtx, piAddressVarThree) == 0) + { + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 3); + return 0; + } + + if (getAllocatedSingleString(pvApiCtx, piAddressVarOne, &pStVarOne)) + { + if (pStVarOne) + { + freeAllocatedSingleString(pStVarOne); + } + + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (strcmp(pStVarOne, FILE_OPEN_STR) == 0) + { + FREE(pStVarOne); + + if (getAllocatedSingleString(pvApiCtx, piAddressVarThree, &pStVarThree)) + { + if (pStVarThree) + { + freeAllocatedSingleString(pStVarThree); + } + + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 3); + return 0; + } + + if (strcmp(pStVarThree, FILE_OLD_STR) == 0) + { + FREE(pStVarThree); + + if (getAllocatedSingleWideString(pvApiCtx, piAddressVarTwo, &pStVarTwo)) + { + if (pStVarTwo) + { + freeAllocatedSingleWideString(pStVarTwo); + } + + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2); + return 0; + } + + if (!FileExistW(pStVarTwo)) + { + if (Lhs == 2) + { + FREE(pStVarTwo); + + if (createEmptyMatrix(pvApiCtx, Rhs + 1)) + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + if (createScalarDouble(pvApiCtx, Rhs + 2, 240.)) + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(2) = Rhs + 2; + LhsVar(1) = Rhs + 1; + PutLhsVar(); + } + else + { + char *filename = wide_string_to_UTF8(pStVarTwo); + FREE(pStVarTwo); + if (filename) + { + Scierror(240, _("%s: The file \"%s\" does not exist.\n"), fname, filename); + FREE(filename); + } + else + { + Scierror(240, _("%s: The file does not exist.\n"), fname); + } + } + return 0; + } + } + else + { + FREE(pStVarThree); + } + } + else + { + FREE(pStVarOne); + } + } + } + + C2F(intfile)(); + return 0; +} +/*--------------------------------------------------------------------------*/ +static int sci_file_no_rhs(char *fname) +{ + SciErr sciErr; + int m_out = 0, n_out = 0; + + int sizeArray = 0; + double *IdUsed = NULL; + + CheckLhs(0, 5); + + /* Lhs == 0 IDs*/ + IdUsed = GetFilesIdUsed(&sizeArray); + + if (IdUsed) + { + sciErr = createMatrixOfDouble(pvApiCtx, Rhs + 1, 1, sizeArray, IdUsed); + FREE(IdUsed); + + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(1) = Rhs + 1; + } + + if (Lhs > 1) /* Types */ + { + char **TypeIdsAsString = GetTypesUsedAsString(&sizeArray); + if (TypeIdsAsString) + { + sciErr = createMatrixOfString(pvApiCtx, Rhs + 2, 1, sizeArray, TypeIdsAsString); + freeArrayOfString(TypeIdsAsString, sizeArray); + + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(2) = Rhs + 2; + } + } + + if (Lhs > 2) /* names */ + { + char **Filenames = GetFilenamesUsed(&sizeArray); + if (Filenames) + { + sciErr = createMatrixOfString(pvApiCtx, Rhs + 3, 1, sizeArray, Filenames); + freeArrayOfString(Filenames, sizeArray); + + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(3) = Rhs + 3; + } + } + + if (Lhs > 3) /* mod */ + { + double *Modes = GetModesUsed(&sizeArray); + if (Modes) + { + sciErr = createMatrixOfDouble(pvApiCtx, Rhs + 4, 1, sizeArray, Modes); + FREE(Modes); + + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(4) = Rhs + 4; + } + } + + if (Lhs > 4) /* swap */ + { + double *SwapId = GetSwapsUsed(&sizeArray); + if (SwapId) + { + sciErr = createMatrixOfDouble(pvApiCtx, Rhs + 5, 1, sizeArray, SwapId); + FREE(SwapId); + + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(5) = Rhs + 5; + } + } + + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ +static int sci_file_one_rhs(char *fname) +{ + SciErr sciErr; + int iErr = 0; + int iID = 0; + int *piAddressVarOne = NULL; + double dVarOne = 0; + + /* get Address of inputs */ + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (isDoubleType(pvApiCtx, piAddressVarOne) == 0 || isScalar(pvApiCtx, piAddressVarOne) == 0) + { + Scierror(201, _("%s: Wrong type for input argument #%d: A scalar expected.\n"), fname, 1); + return 0; + } + + if (getScalarDouble(pvApiCtx, piAddressVarOne, &dVarOne)) + { + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + iID = (int)dVarOne; + + if (dVarOne != (double)iID) + { + Scierror(999, _("%s: Wrong value for input argument #%d: An integer expected.\n"), fname, 1); + return 0; + } + + /* Lhs = 0 ID */ + if (GetFileTypeOpenedInScilab(iID) != 0) + { + iErr = createScalarDouble(pvApiCtx, Rhs + 1, dVarOne); + } + else + { + iErr = createEmptyMatrix(pvApiCtx, Rhs + 1); + } + + if (iErr) + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(1) = Rhs + 1; + + if (Lhs > 1) /* Type */ + { + if (GetFileTypeOpenedInScilab(iID) != 0) + { + char *TypeIdAsString = GetFileTypeOpenedInScilabAsString(iID); + iErr = createSingleString(pvApiCtx, Rhs + 2, TypeIdAsString); + FREE(TypeIdAsString); + } + else + { + iErr = createEmptyMatrix(pvApiCtx, Rhs + 2); + } + + if (iErr) + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(2) = Rhs + 2; + } + + if (Lhs > 2) /* name */ + { + if (GetFileTypeOpenedInScilab(iID) != 0) + { + char *filename = NULL; + if (GetFileNameOpenedInScilab(iID) == NULL) + { + filename = strdup(""); + } + else + { + filename = strdup(GetFileNameOpenedInScilab(iID)); + } + + iErr = createSingleString(pvApiCtx, Rhs + 3, filename); + FREE(filename); + } + else + { + iErr = createEmptyMatrix(pvApiCtx, Rhs + 3); + } + + if (iErr) + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(3) = Rhs + 3; + } + + if (Lhs > 3) /* mod */ + { + if (GetFileTypeOpenedInScilab(iID) != 0) + { + double ModeId = (double)GetFileModeOpenedInScilab(iID); + iErr = createScalarDouble(pvApiCtx, Rhs + 4, ModeId); + } + else + { + iErr = createEmptyMatrix(pvApiCtx, Rhs + 4); + } + + if (iErr) + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(4) = Rhs + 4; + } + + if (Lhs > 4) /* swap */ + { + if (GetFileTypeOpenedInScilab(iID) != 0) + { + double SwapId = (double)GetSwapStatus(iID); + iErr = createScalarDouble(pvApiCtx, Rhs + 5, SwapId); + } + else + { + iErr = createEmptyMatrix(pvApiCtx, Rhs + 5); + } + + if (iErr) + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + LhsVar(5) = Rhs + 5; + } + + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_getenv.c b/modules/io/sci_gateway/c/sci_getenv.c new file mode 100755 index 000000000..64ea70c72 --- /dev/null +++ b/modules/io/sci_gateway/c/sci_getenv.c @@ -0,0 +1,160 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - Allan CORNET + * Copyright (C) 2009 - 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 <stdio.h> +#include <stdlib.h> /* _MAX_ENV */ +#include "gw_io.h" +#include "MALLOC.h" +#include "freeArrayOfString.h" +#include "localization.h" +#include "Scierror.h" +#include "api_scilab.h" +#include "getenvc.h" +#include "PATH_MAX.h" +/*--------------------------------------------------------------------------*/ +int sci_getenv(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int ierr = 0; + char *env_value = NULL; + int length_env = 0; + + int *piAddressVarOne = NULL; + char *pStVarOne = NULL; + + int *piAddressVarTwo = NULL; + char *pStVarTwo = NULL; + + int iflag = 0; + + Rhs = Max(Rhs, 0); + + CheckRhs(1, 2); + CheckLhs(1, 1); + + if (Rhs == 2) + { + sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddressVarTwo); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2); + return 0; + } + + if (isStringType(pvApiCtx, piAddressVarTwo) == 0 || isScalar(pvApiCtx, piAddressVarTwo) == 0) + { + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 2); + return 0; + } + + if (getAllocatedSingleString(pvApiCtx, piAddressVarTwo, &pStVarTwo)) + { + if (pStVarTwo) + { + freeAllocatedSingleString(pStVarTwo); + } + + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2); + return 0; + } + } + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (isStringType(pvApiCtx, piAddressVarOne) == 0 || isScalar(pvApiCtx, piAddressVarOne) == 0) + { + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), fname, 2); + return 0; + } + + if (getAllocatedSingleString(pvApiCtx, piAddressVarOne, &pStVarOne)) + { + if (pStVarOne) + { + freeAllocatedSingleString(pStVarOne); + } + + if (pStVarTwo) + { + freeAllocatedSingleString(pStVarTwo); + } + + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + + C2F(getenvc)(&ierr, pStVarOne, NULL, &length_env, &iflag); + + if (ierr) + { + if (pStVarTwo) + { + if (createSingleString(pvApiCtx, Rhs + 1, pStVarTwo)) + { + freeAllocatedSingleString(pStVarOne); + freeAllocatedSingleString(pStVarTwo); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + else + { + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; + } + } + else + { + Scierror(999, _("%s: Undefined environment variable %s.\n"), fname, pStVarOne); + freeAllocatedSingleString(pStVarOne); + return 0; + } + } + + //variable exists in env, we don't need default any more + freeAllocatedSingleString(pStVarTwo); + + env_value = (char*)MALLOC(sizeof(char) * (length_env + 1)); + if (env_value == NULL) + { + freeAllocatedSingleString(pStVarOne); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + C2F(getenvc)(&ierr, pStVarOne, env_value, &length_env, &iflag); + + //create variable on stack and return it. + if (createSingleString(pvApiCtx, Rhs + 1, env_value)) + { + FREE(env_value); + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + FREE(env_value); + LhsVar(1) = Rhs + 1; + PutLhsVar(); + + + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_getio.c b/modules/io/sci_gateway/c/sci_getio.c new file mode 100755 index 000000000..e5e8eb242 --- /dev/null +++ b/modules/io/sci_gateway/c/sci_getio.c @@ -0,0 +1,44 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - 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 "gw_io.h" +#include "stack-c.h" +#include "MALLOC.h" +/*--------------------------------------------------------------------------*/ +int sci_getio(char *fname, unsigned long fname_len) +{ + int one = 1; + int four = 4; + int *values = NULL; + + CheckRhs(0, 0); + CheckLhs(0, 1); + + values = (int*)MALLOC(sizeof(int) * (one * four)); + + values[0] = C2F(iop).rio; + values[1] = C2F(iop).rte; + values[2] = 0; + values[3] = C2F(iop).wte; + + CreateVarFromPtr(Rhs + 1, MATRIX_OF_INTEGER_DATATYPE, &one, &four, &values); + LhsVar(1) = Rhs + 1; + if (values) + { + FREE(values); + values = NULL; + } + PutLhsVar(); + + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_getpid.c b/modules/io/sci_gateway/c/sci_getpid.c new file mode 100755 index 000000000..e8e27c423 --- /dev/null +++ b/modules/io/sci_gateway/c/sci_getpid.c @@ -0,0 +1,34 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - 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 "gw_io.h" +#include "stack-c.h" +#include "getpidc.h" +/*--------------------------------------------------------------------------*/ +int sci_getpid(char *fname, unsigned long fname_len) +{ + int one = 1; + int l1 = 0; + int pid = 0; + + CheckRhs(0, 0); + CheckLhs(0, 1); + + C2F(getpidc)(&pid); + CreateVar(Rhs + 1, MATRIX_OF_INTEGER_DATATYPE, &one, &one, &l1); + *istk(l1) = (int) pid; + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_host.c b/modules/io/sci_gateway/c/sci_host.c new file mode 100755 index 000000000..dd6c43e57 --- /dev/null +++ b/modules/io/sci_gateway/c/sci_host.c @@ -0,0 +1,72 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - 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 "MALLOC.h" +#include "api_scilab.h" +#include "gw_io.h" +#include "stack-c.h" +#include "systemc.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +/*--------------------------------------------------------------------------*/ +int sci_host(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + + int *piAddr1; + char *Str = NULL; + int stat = 0; + + int iRhs = nbInputArgument(pvApiCtx); + + CheckInputArgument(pvApiCtx, 1, 1); + CheckOutputArgument(pvApiCtx, 1, 1); + + //get variable address + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr1); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 1; + } + + if (isStringType(pvApiCtx, piAddr1) == 0 || isScalar(pvApiCtx, piAddr1) == 0) + { + Scierror(55, _("%s: Wrong type for input argument #%d: String expected.\n"), fname, 1); + return 0; + } + + + //fisrt call to retrieve dimensions + if (getAllocatedSingleString(pvApiCtx, piAddr1, &Str)) + { + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 1; + } + + C2F(systemc)(Str, &stat); + freeAllocatedSingleString(Str); + + /* Create the matrix as return of the function */ + if (createScalarDouble(pvApiCtx, iRhs + 1, stat)) + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 1; + } + + AssignOutputVariable(pvApiCtx, 1) = iRhs + 1; + ReturnArguments(pvApiCtx); + + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_load.c b/modules/io/sci_gateway/c/sci_load.c new file mode 100755 index 000000000..faae5c232 --- /dev/null +++ b/modules/io/sci_gateway/c/sci_load.c @@ -0,0 +1,69 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - 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 "gw_io.h" +#include "api_scilab.h" +#include "localization.h" +#include "sciprint.h" +#include "warningmode.h" +/*--------------------------------------------------------------------------*/ +extern int C2F(intload)(); /* fortran subroutine */ +/*--------------------------------------------------------------------------*/ +int sci_load(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int* piAddr = NULL; + + //check first input argument type ( double can be file descriptor ) + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 1; + } + + if (isDoubleType(pvApiCtx, piAddr)) + { + int Val = 40; + int k1 = 0; + if (getWarningMode()) + { + sciprint(_("%s: Feature %s is obsolete.\n"), _("Warning"), "load(file_descriptor)"); + sciprint(_("%s: See help('load') for the rationale.\n"), _("Warning")); + sciprint(_("%s: This feature will be permanently removed in Scilab %s\n\n"), _("Warning"), "6.0.0"); + } + C2F(intload)(&Val, &k1); + } + else if (isStringType(pvApiCtx, piAddr)) + { + int lw = 0; + //call "overload" to prepare data to export_to_hdf5 function. + C2F(overload) (&lw, "sodload", (unsigned long)strlen("sodload")); + } + else + { + int Val = 40; + int k1 = 0; + C2F(intload)(&Val, &k1); + } + + return 0; +} + +int sci_percent_load(char *fname, unsigned long fname_len) +{ + int Val = 40; + int k1 = 0; + C2F(intload)(&Val, &k1); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_read.c b/modules/io/sci_gateway/c/sci_read.c new file mode 100755 index 000000000..9274ba1ea --- /dev/null +++ b/modules/io/sci_gateway/c/sci_read.c @@ -0,0 +1,22 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - 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 "gw_io.h" +/*--------------------------------------------------------------------------*/ +extern int C2F(intread)(); /* fortran subroutine */ +/*--------------------------------------------------------------------------*/ +int sci_read(char *fname, unsigned long fname_len) +{ + C2F(intread)(); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_read4b.c b/modules/io/sci_gateway/c/sci_read4b.c new file mode 100755 index 000000000..441f3388c --- /dev/null +++ b/modules/io/sci_gateway/c/sci_read4b.c @@ -0,0 +1,22 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - 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 "gw_io.h" +/*--------------------------------------------------------------------------*/ +extern int C2F(intread4b)(); /* fortran subroutine */ +/*--------------------------------------------------------------------------*/ +int sci_read4b(char *fname, unsigned long fname_len) +{ + C2F(intread4b)(); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_readb.c b/modules/io/sci_gateway/c/sci_readb.c new file mode 100755 index 000000000..884bc8960 --- /dev/null +++ b/modules/io/sci_gateway/c/sci_readb.c @@ -0,0 +1,22 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - 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 "gw_io.h" +/*--------------------------------------------------------------------------*/ +extern int C2F(intreadb)(); /* fortran subroutine */ +/*--------------------------------------------------------------------------*/ +int sci_readb(char *fname, unsigned long fname_len) +{ + C2F(intreadb)(); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_save.c b/modules/io/sci_gateway/c/sci_save.c new file mode 100755 index 000000000..8e3e9c0e0 --- /dev/null +++ b/modules/io/sci_gateway/c/sci_save.c @@ -0,0 +1,126 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - 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 "gw_io.h" +#include "stack-c.h" +#include "api_scilab.h" +#include "localization.h" +#include "Scierror.h" +#include "sciprint.h" +#include "warningmode.h" +/*--------------------------------------------------------------------------*/ +extern int C2F(intsave)(); /* fortran subroutine */ +/*--------------------------------------------------------------------------*/ +int sci_save(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int iOldSave = FALSE; + int* piAddr1 = NULL; + BOOL bWarning = TRUE; + int iRhs = nbInputArgument(pvApiCtx); + + CheckInputArgumentAtLeast(pvApiCtx, 1); + CheckLhs(0, 1); + + //filename or file descriptor + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr1); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 1; + } + + if (isStringType(pvApiCtx, piAddr1)) + { + int* piAddrI = NULL; + char* pstVarI = NULL; + + if (iRhs > 1) + { + int i = 0; + for (i = 2 ; i <= iRhs ; i++) + { + sciErr = getVarAddressFromPosition(pvApiCtx, i, &piAddrI); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 1; + } + + if (isStringType(pvApiCtx, piAddrI) == 0 || isScalar(pvApiCtx, piAddrI) == 0) + { + iOldSave = TRUE; + break; + } + + if (getAllocatedSingleString(pvApiCtx, piAddrI, &pstVarI)) + { + if (pstVarI) + { + freeAllocatedSingleString(pstVarI); + } + + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2); + return 1; + } + + if (strcmp(pstVarI, "-append") != 0) + { + int* piAddrI2 = NULL; + //try to get variable by name + sciErr = getVarAddressFromName(pvApiCtx, pstVarI, &piAddrI2); + freeAllocatedSingleString(pstVarI); + pstVarI = NULL; + if (sciErr.iErr || piAddrI2 == NULL) + { + // Try old save because here the input variable can be of type "string" but not a variable name + // Ex: a=""; save(filename, a); + iOldSave = TRUE; + bWarning = FALSE; + break; + } + } + } + } + else + { + iOldSave = FALSE; + } + } + else + { + iOldSave = TRUE; + } + + //new save to sod format + if (iOldSave == FALSE) + { + int lw = 0; + //call "overload" to prepare data to export_to_hdf5 function. + C2F(overload) (&lw, "save", (unsigned long)strlen("save")); + } + else + { + //show warning only for variable save, not for environment + if (bWarning && getWarningMode() && iRhs > 1) + { + sciprint(_("%s: Scilab 6 will not support the file format used.\n"), _("Warning")); + sciprint(_("%s: Please quote the variable declaration. Example, save('myData.sod',a) becomes save('myData.sod','a').\n"), _("Warning")); + sciprint(_("%s: See help('save') for the rational.\n"), _("Warning")); + } + + C2F(intsave)(); + } + + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_setenv.c b/modules/io/sci_gateway/c/sci_setenv.c new file mode 100755 index 000000000..766294fc1 --- /dev/null +++ b/modules/io/sci_gateway/c/sci_setenv.c @@ -0,0 +1,105 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - 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 <stdio.h> +#include <string.h> +#include "gw_io.h" +#include "api_scilab.h" +#include "setenvc.h" +#include "MALLOC.h" /* MALLOC */ +#include "Scierror.h" +#include "localization.h" +/*--------------------------------------------------------------------------*/ +int sci_setenv(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + + int *piAddr1 = NULL; + char *pstVar = NULL; + + int *piAddr2 = NULL; + char *pstValue = NULL; + + int ret = 0; + + Rhs = Max(0, Rhs); + CheckRhs(2, 2); + CheckLhs(0, 1); + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr1); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (isStringType(pvApiCtx, piAddr1) == 0 || isScalar(pvApiCtx, piAddr1) == 0) + { + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 1); + return 0; + } + + sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddr2); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2); + return 0; + } + + if (isStringType(pvApiCtx, piAddr2) == 0 || isScalar(pvApiCtx, piAddr2) == 0) + { + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 2); + return 0; + } + + if (getAllocatedSingleString(pvApiCtx, piAddr1, &pstVar)) + { + if (pstVar) + { + freeAllocatedSingleString(pstVar); + } + + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (getAllocatedSingleString(pvApiCtx, piAddr2, &pstValue)) + { + if (pstValue) + { + freeAllocatedSingleString(pstValue); + } + + FREE(pstVar); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2); + return 0; + } + + ret = setenvc(pstVar, pstValue); + + FREE(pstVar); + FREE(pstValue); + + if (createScalarBoolean(pvApiCtx, Rhs + 1, ret)) + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_unix.c b/modules/io/sci_gateway/c/sci_unix.c new file mode 100755 index 000000000..5ec42d96f --- /dev/null +++ b/modules/io/sci_gateway/c/sci_unix.c @@ -0,0 +1,19 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - 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 "gw_io.h" +/*--------------------------------------------------------------------------*/ +int sci_unix(char *fname, unsigned long fname_len) +{ + return sci_host (fname, fname_len); +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_write.c b/modules/io/sci_gateway/c/sci_write.c new file mode 100755 index 000000000..e69cde250 --- /dev/null +++ b/modules/io/sci_gateway/c/sci_write.c @@ -0,0 +1,22 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - 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 "gw_io.h" +/*--------------------------------------------------------------------------*/ +extern int C2F(intwrite)(); /* fortran subroutine */ +/*--------------------------------------------------------------------------*/ +int sci_write(char *fname, unsigned long fname_len) +{ + C2F(intwrite)(); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_write4b.c b/modules/io/sci_gateway/c/sci_write4b.c new file mode 100755 index 000000000..cbdbd33da --- /dev/null +++ b/modules/io/sci_gateway/c/sci_write4b.c @@ -0,0 +1,22 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - 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 "gw_io.h" +/*--------------------------------------------------------------------------*/ +extern int C2F(intwrite4b)(); /* fortran subroutine */ +/*--------------------------------------------------------------------------*/ +int sci_write4b(char *fname, unsigned long fname_len) +{ + C2F(intwrite4b)(); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/c/sci_writeb.c b/modules/io/sci_gateway/c/sci_writeb.c new file mode 100755 index 000000000..297737a56 --- /dev/null +++ b/modules/io/sci_gateway/c/sci_writeb.c @@ -0,0 +1,22 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - 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 "gw_io.h" +/*--------------------------------------------------------------------------*/ +extern int C2F(intwritb)(); /* fortran subroutine */ +/*--------------------------------------------------------------------------*/ +int sci_writb(char *fname, unsigned long fname_len) +{ + C2F(intwritb)(); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/sci_gateway/fortran/.deps/.dirstamp b/modules/io/sci_gateway/fortran/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/io/sci_gateway/fortran/.deps/.dirstamp diff --git a/modules/io/sci_gateway/fortran/.dirstamp b/modules/io/sci_gateway/fortran/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/io/sci_gateway/fortran/.dirstamp diff --git a/modules/io/sci_gateway/fortran/.libs/intfile.o b/modules/io/sci_gateway/fortran/.libs/intfile.o Binary files differnew file mode 100755 index 000000000..c68009afc --- /dev/null +++ b/modules/io/sci_gateway/fortran/.libs/intfile.o diff --git a/modules/io/sci_gateway/fortran/.libs/intread.o b/modules/io/sci_gateway/fortran/.libs/intread.o Binary files differnew file mode 100755 index 000000000..ce28a6f32 --- /dev/null +++ b/modules/io/sci_gateway/fortran/.libs/intread.o diff --git a/modules/io/sci_gateway/fortran/.libs/intread4b.o b/modules/io/sci_gateway/fortran/.libs/intread4b.o Binary files differnew file mode 100755 index 000000000..9ec6dc1fb --- /dev/null +++ b/modules/io/sci_gateway/fortran/.libs/intread4b.o diff --git a/modules/io/sci_gateway/fortran/.libs/intreadb.o b/modules/io/sci_gateway/fortran/.libs/intreadb.o Binary files differnew file mode 100755 index 000000000..2777fab01 --- /dev/null +++ b/modules/io/sci_gateway/fortran/.libs/intreadb.o diff --git a/modules/io/sci_gateway/fortran/.libs/intwritb.o b/modules/io/sci_gateway/fortran/.libs/intwritb.o Binary files differnew file mode 100755 index 000000000..b977d3806 --- /dev/null +++ b/modules/io/sci_gateway/fortran/.libs/intwritb.o diff --git a/modules/io/sci_gateway/fortran/.libs/intwrite.o b/modules/io/sci_gateway/fortran/.libs/intwrite.o Binary files differnew file mode 100755 index 000000000..85107622c --- /dev/null +++ b/modules/io/sci_gateway/fortran/.libs/intwrite.o diff --git a/modules/io/sci_gateway/fortran/.libs/intwrite4b.o b/modules/io/sci_gateway/fortran/.libs/intwrite4b.o Binary files differnew file mode 100755 index 000000000..7ad5750b6 --- /dev/null +++ b/modules/io/sci_gateway/fortran/.libs/intwrite4b.o diff --git a/modules/io/sci_gateway/fortran/intfile.f b/modules/io/sci_gateway/fortran/intfile.f new file mode 100755 index 000000000..d334758ad --- /dev/null +++ b/modules/io/sci_gateway/fortran/intfile.f @@ -0,0 +1,494 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + subroutine intfile +c interface for builtin file + + INCLUDE 'stack.h' +c + integer status,access,form,recl,old,new,scratc,unknow + integer sequen,direct,forma1,unform + integer clo,rew,bak,ope,mode(2) + integer top0,tops + logical getscalar + + integer iadr,sadr +c + data old/857368/,new/2100759/,scratc/1707037/,unknow/1316638/ + data sequen/1707548/,direct/1774093/,forma1/1775631/ + data unform/988958/ + data clo/12/,ope/24/,rew/27/,bak/11/,last/21/ +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + tops=top + top0=top-rhs+1 +c + lw=lstk(top+1) + if(rhs.le.1) then +c . enquire +c + if(lhs.gt.5) then + call error(41) + return + endif + +c . count opened files + n=0 + nb=0 + if(rhs.eq.1) then + if(.not.getscalar('file', top, top, lr))return + iu=stk(lr) + top=top-1 + call getfileinfo(iu,ifa,iswap,ltype,mode,buf,lb,info) + if(info.ne.1.and.info.ne.2) n=1 + nb=lb + else + i=-1 + 01 i=i+1 + call getfileinfo(i,ifa,iswap,ltype,mode,buf,lb,info) + if(info.eq.1) goto 02 + if(info.eq.2) goto 01 + n=n+1 + nb=nb+lb + goto 01 + endif + 02 continue + + if(n.eq.0) then + err=lstk(top+1)+2*rhs-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + do 05 i=1,lhs + top=top+1 + il=iadr(lstk(top)) + istk(il)=1 + istk(il+1)=0 + istk(il+2)=0 + istk(il+3)=0 + lstk(top+1)=sadr(il+4) + 05 continue + return + endif + +c . allocate lhs variables +c +c . vector of units + top=top+1 + ilu=iadr(lstk(top)) + lu=sadr(ilu+4) + lstk(top+1)=lu+n + if(lhs.eq.1) goto 06 +c . vector of types + top=top+1 + ilt=iadr(lstk(top)) + lt=ilt+5+n + lstk(top+1)=sadr(lt+n) + if(lhs.eq.2) goto 06 +c . vector of file names + top=top+1 + iln=iadr(lstk(top)) + ln=iln+5+n + lstk(top+1)=sadr(ln+nb) + if(lhs.eq.3) goto 06 +c . vector of modes + top=top+1 + ilm=iadr(lstk(top)) + lm=sadr(ilm+4) + lstk(top+1)=lm+n + if(lhs.eq.4) goto 06 +c . vector of swap + top=top+1 + ils=iadr(lstk(top)) + ls=sadr(ils+4) + lstk(top+1)=ls+n +c + 06 err=lstk(top+1)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif +c . create lhs variable headers + +c . vector of units + istk(ilu)=1 + istk(ilu+1)=1 + istk(ilu+2)=n + istk(ilu+3)=0 + if(lhs.eq.1) goto 12 +c . vector of types + istk(ilt)=10 + istk(ilt+1)=1 + istk(ilt+2)=n + istk(ilt+3)=0 + istk(ilt+4)=1 + do 10 i=1,n + istk(ilt+4+i)=i+1 + 10 continue + if(lhs.eq.2) goto 12 +c . vector of names + istk(iln)=10 + istk(iln+1)=1 + istk(iln+2)=n + istk(iln+3)=0 + istk(iln+4)=1 + iln=iln+4 +c + if(lhs.eq.3) goto 12 +c . vector of modes + istk(ilm)=1 + istk(ilm+1)=1 + istk(ilm+2)=n + istk(ilm+3)=0 +c + if(lhs.eq.4) goto 12 +c . vector of swap + istk(ils)=1 + istk(ils+1)=1 + istk(ils+2)=n + istk(ils+3)=0 + 12 continue + +c . get file infos + if(rhs.eq.1) then +c . unit + stk(lu)=iu + if(lhs.eq.1) goto 17 +c . type + if(ltype.eq.2) then + istk(lt)=-12 + else + istk(lt)=-15 + endif + if(lhs.eq.2) goto 17 +c . name + call cvstr(lb,istk(ln),buf,0) + istk(iln+1)=istk(iln)+lb + if(lhs.eq.3) goto 17 +c . mode + stk(lm)=mode(1) + if(lhs.eq.4) goto 17 +c . swap + stk(ls)=iswap + else + i=-1 + 15 i=i+1 + call getfileinfo(i,ifa,iswap,ltype,mode,buf,lb,info) + if(info.eq.1) goto 17 + if(info.eq.2) goto 15 +c . unit + stk(lu)=i + lu=lu+1 + if(lhs.eq.1) goto 15 +c . type + if(ltype.eq.2) then + istk(lt)=-12 + else + istk(lt)=-15 + endif + lt=lt+1 + if(lhs.eq.2) goto 15 +c . name + call cvstr(lb,istk(ln),buf,0) + ln=ln+lb + istk(iln+1)=istk(iln)+lb + iln=iln+1 + if(lhs.eq.3) goto 15 +c . mode + stk(lm)=mode(1) + lm=lm+1 + if(lhs.eq.4) goto 15 +c . swap + stk(ls)=iswap + ls=ls+1 + + goto 15 + endif + 17 continue + return + endif + + il=iadr(lstk(top)) + if(lhs.gt.2) then + call error(41) + return + endif + +c action + il=iadr(lstk(top+1-rhs)) + if(istk(il).ne.10) then + err=1 + call error(55) + return + endif + if(istk(il+1)*istk(il+2).ne.1) then + err=1 + call error(36) + return + endif + l=il+5+istk(il+1)*istk(il+2) + itype=abs(istk(l)) +c + + if(itype.eq.ope) then +c +c open + if(rhs.gt.6) then + call error(39) + return + endif +c path + il=iadr(lstk(top+2-rhs)) + if(istk(il).ne.10) then + err=2 + call error(55) + return + endif + if(istk(il+1)*istk(il+2).ne.1) then + err=2 + call error(36) + return + endif + l=il+5+istk(il+1)*istk(il+2) + mn=istk(il+5)-1 + buf=' ' + call cvstr(mn,istk(l),buf,1) + rhs=rhs-2 + status=0 + access=0 + form=0 + recl=0 + if(rhs.eq.0) goto 145 + do 143 i=1,rhs + il=iadr(lstk(top)) + if(istk(il).eq.10) then + l=il+5+istk(il+1)*istk(il+2) + if(istk(il+5)-1.lt.3) then + call error(36) + return + endif + itype=abs(istk(l))+256*(abs(istk(l+1))+256*abs(istk(l+2)) + $ ) + if(itype.eq.new) then + status=0 + elseif(itype.eq.old) then + status=1 + elseif(itype.eq.scratc) then + status=2 + elseif(itype.eq.unknow) then + status=3 + elseif(itype.eq.sequen) then + access=0 + elseif(itype.eq.direct) then + access=1 + elseif(itype.eq.forma1) then + form=0 + elseif(itype.eq.unform) then + form=1 + endif + elseif(istk(il).eq.1) then + recl=int(stk(sadr(il+4))) + mode(2)=recl + else + err=i + call error(53) + return + endif + top=top-1 + 143 continue + 145 mode(1)=status+10*(access+10*(form)) + lunit=0 + call clunit(lunit,buf(1:mn),mode) + if(err.gt.0) then + if(lhs.eq.1) then + buf(mn+1:)=' ' + call error(err) + return + else + top=top-1 + il=iadr(lstk(top)) + istk(il)=1 + istk(il+1)=0 + istk(il+2)=0 + istk(il+3)=0 + l=sadr(il+4) + lstk(top+1)=l+1 + + top=top+1 + il=iadr(lstk(top)) + istk(il)=1 + istk(il+1)=1 + istk(il+2)=1 + istk(il+3)=0 + l=sadr(il+4) + stk(l)=err + lstk(top+1)=l+1 + err=0 + return + endif + endif + top=top-1 + il=iadr(lstk(top)) + istk(il)=1 + istk(il+1)=1 + istk(il+2)=1 + istk(il+3)=0 + l=sadr(il+4) + stk(l)=dble(lunit) + lstk(top+1)=l+1 + if(lhs.eq.2) then + top=top+1 + il=iadr(lstk(top)) + istk(il)=1 + istk(il+1)=1 + istk(il+2)=1 + istk(il+3)=0 + l=sadr(il+4) + stk(l)=0.0d0 + lstk(top+1)=l+1 + endif + elseif(itype.eq.clo) then +c close + if(lhs.ne.1) then + call error(41) + return + endif + if(rhs.ne.2) then + call error(36) + return + endif + il1=iadr(lstk(top)) + if(istk(il1).ne.1) then + err=rhs + call error(53) + return + endif + n=istk(il1+1)*istk(il1+2) + l=sadr(il1+4) + + top=top-1 + if(n.gt.0) then + mode(1)=0 + do 151 i=1,n + lunit=int(stk(l-1+i)) + if(lunit.gt.0) then + call clunit(-lunit,buf,mode) + endif + 151 continue + endif + istk(il)=0 + elseif(itype.eq.rew) then +c rewind + if(lhs.ne.1) then + call error(41) + return + endif + if(rhs.ne.2) then + call error(36) + return + endif + il1=iadr(lstk(top)) + if(istk(il1).ne.1) then + err=rhs + call error(53) + return + endif + lunit=int(stk(sadr(il1+4))) + top=top-1 + + if(lunit.ge.0) then + call getfiletype(lunit,ltype,info) + if(info.eq.0) then + if(ltype.eq.2) then + call mseek(lunit,0.0,'set'//char(0),err) + else + rewind(lunit) + endif + endif + endif + istk(il)=0 + goto 999 + + elseif(itype.eq.bak) then +c backspace + if(lhs.ne.1) then + call error(41) + return + endif + if(rhs.ne.2) then + call error(36) + return + endif + il1=iadr(lstk(top)) + if(istk(il1).ne.1) then + err=rhs + call error(53) + return + endif + lunit=int(stk(sadr(il1+4))) + top=top-1 + if(lunit.ge.0) then + call getfiletype(lunit,ltype,info) + if(info.eq.0) then + if(ltype.eq.2) then + err=1 + call error(36) + return + else + backspace(lunit) + endif + endif + endif +c + istk(il)=0 + elseif(itype.eq.last) then +c last + if(lhs.ne.1) then + call error(41) + return + endif + if(rhs.ne.2) then + call error(36) + return + endif + il1=iadr(lstk(top)) + if(istk(il1).ne.1) then + err=rhs + call error(53) + return + endif + lunit=int(stk(sadr(il1+4))) + top=top-1 + if(lunit.ge.0) then + call getfiletype(lunit,ltype,info) + if(info.eq.0) then + if(ltype.eq.2) then + call mseek(lunit,0.0,'end'//char(0),err) + else + 154 read(lunit,'(a)',err=156,end=155) + go to 154 + 155 backspace(lunit) + endif + endif + endif + istk(il)=0 + return + 156 call error(49) + return + else +c incorrect action name + err=1 + call error(36) + return + endif + 999 return + end + diff --git a/modules/io/sci_gateway/fortran/intfile.lo b/modules/io/sci_gateway/fortran/intfile.lo new file mode 100755 index 000000000..ddf7bc4ec --- /dev/null +++ b/modules/io/sci_gateway/fortran/intfile.lo @@ -0,0 +1,12 @@ +# sci_gateway/fortran/intfile.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/intfile.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/fortran/intread.f b/modules/io/sci_gateway/fortran/intread.f new file mode 100755 index 000000000..6093a10e1 --- /dev/null +++ b/modules/io/sci_gateway/fortran/intread.f @@ -0,0 +1,318 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c Copyright (C) ENPC +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + subroutine intread + + INCLUDE 'stack.h' +c + integer top2 + integer ftyp,fmttyp,mode(2) + logical opened + integer iadr,sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + lw=lstk(top+1) + + if(rhs.gt.5.or.rhs.lt.3) then + call error(39) + return + endif + if(lhs.gt.1) then + call error(41) + return + endif +c +c opening file + top2 = top + top = top-rhs+1 + il=iadr(lstk(top)) + mode(1)=-1 + mode(2)=0 + call v2unit(top,mode,lunit,opened,ierr) + if(ierr.gt.0) return +c + iacces=0 + if(rhs.eq.3) goto 121 + il=iadr(lstk(top2)) + if(rhs.eq.5) then + iacces=top2-1 + else + if(istk(il).eq.1) then + call error(61) + goto 996 + endif + endif +c analyse du format + if(istk(il).ne.10) then + err=rhs + call error(55) + goto 996 + endif + nc=istk(il+5)-1 + l=il+5+istk(il+1)*istk(il+2) + ftyp=fmttyp(istk(l),nc) + if(ftyp.eq.0) then + call error(49) + goto 996 + endif + call cvstr(nc,istk(l),buf,1) + top2=top2-1 + fin=-fin + 121 if(iacces.eq.0) goto 123 + ilb=iadr(lstk(iacces)) + if(istk(ilb+3).ne.0) then + err=top2-top+1 + call error(52) + goto 996 + endif + nb=istk(ilb+1)*istk(ilb+2) + lb=sadr(ilb+4) + ilb=iadr(lw) + err=sadr(ilb+nb)-lstk(bot) + if(err.gt.0) then + call error(17) + goto 996 + endif + do 122 i=1,nb + istk(ilb+i-1)=int(stk(lb+i-1)) + 122 continue + top2=iacces-1 + 123 il=iadr(lstk(top2)) + l=sadr(il+4) + n=int(stk(l)) + top2=top2-1 + il=iadr(lstk(top2)) + l=sadr(il+4) + m=int(stk(l)) + il=iadr(lstk(top)) + l=sadr(il+4) + if(m.eq.0.or.n.le.0) then + istk(il)=1 + istk(il+1)=0 + istk(il+2)=0 + istk(il+3)=0 + lstk(top+1)=sadr(il+4) + if(.not.opened) then + mode(1)=0 + mode(2)=0 + call clunit(-lunit,buf,mode) + endif + goto 999 + endif + + istk(il)=1 + istk(il+1)=m + istk(il+2)=n + istk(il+3)=0 + + if(m.gt.0) then + err=l+m*n-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + endif + + if(fin.lt.0.and.ftyp.ne.1) goto 126 + if(fin.gt.0) then + buf(1:1)='*' + nc=1 + endif +c +c---- lecture de flottants + if(iacces.eq.0) then +c acces sequentiel + if(m.gt.0) then +c . nombre de ligne precise + do 124,i=0,m-1 + call dbasin(ierr,lunit,buf(1:nc),stk(l+i),m,n) + if(ierr.eq.1) then + goto 997 + elseif(ierr.eq.2) then + goto 998 + endif + 124 continue + else +c . nombre de ligne non precise + i=-1 + 1241 i=i+1 + li=l+n*i + err=li+n-lstk(bot) + if(err.gt.0) then + call error(17) + goto 996 + endif + call dbasin(ierr,lunit,buf(1:nc),stk(li),1,n) + if(ierr.eq.0) goto 1241 + if(ierr.eq.2) goto 998 + m=i + if(m.ne.0) then + if(m.ge.1.and.n.ge.1) then + lstk(top+1)=l+m*n + err=lstk(top+1)+m*n-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + l1=l+m*n + call unsfdcopy(m*n,stk(l),1,stk(l1),1) + call mtran(stk(l1),n,stk(l),m,n,m) + istk(il+1)=m + endif + else + istk(il+1)=0 + istk(il+2)=0 + endif + endif + else +c acces direct + if(nb.ne.m) then + call error(42) + goto 996 + endif + if(fin.gt.0) then + call error(61) + goto 996 + endif + if(m.lt.0) then + call error(43) + return + endif + do 125 i=0,m-1 + li=l+i + read(lunit,buf(1:nc),rec=istk(ilb+i),err=998) + + (stk(li+j*m),j=0,n-1) + 125 continue + endif + lstk(top+1)=l+m*n + if(.not.opened) then + mode(1)=0 + mode(2)=0 + call clunit(-lunit,buf,mode) + endif + goto 999 +c +c---- lecture des chaines de caracteres + 126 if(ftyp.ne.4) then + call error(49) + goto 996 + endif + if(n.ne.1) then + err=iacces-top + call error(36) + goto 996 + endif + if(iacces.ne.0) then + if(nb.ne.m) then + call error(42) + goto 996 + endif + endif + ili=il+4 + if(m.gt.0) then +c . nombre de ligne a lire precise + li=ili+m+1 + istk(ili)=1 + do 128 i=1,m + if(iacces.eq.0) then + call basin(ierr,lunit,buf(nc+1:),buf(1:nc),.false.) + if(ierr.eq.1) goto 997 + if(ierr.eq.2) goto 998 + else + read(lunit,buf(1:nc),rec=istk(ilb+i-1),err=998) + $ buf(nc+1:) + endif + mn=bsiz+1 + 127 mn=mn-1 + if(buf(mn:mn).eq.' ') goto 127 + mn=max(1,mn-nc) + err=sadr(li+mn)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call cvstr(mn,istk(li),buf(nc+1:),0) + li=li+mn + ili=ili+1 + istk(ili)=istk(ili-1)+mn + 128 continue + istk(il)=10 + lstk(top+1)=sadr(li) + else +c . nombre de ligne a lire non precise + if(iacces.ne.0) then + call error(43) + goto 996 + endif + li=ili + i=-1 + 1281 i=i+1 + call basin(ierr,lunit,buf(nc+1:),buf(1:nc),.false.) + mn=bsiz+1 + 1282 mn=mn-1 + if(buf(mn:mn).eq.' ') goto 1282 + mn=max(1,mn-nc) + err=sadr(li+mn+1)-lstk(bot) + if(err.gt.0) then + call error(17) + goto 996 + endif + call cvstr(mn,istk(li+1),buf(nc+1:),0) + istk(li)=mn + li=li+mn+1 + if(ierr.eq.0) goto 1281 + if(ierr.eq.2) goto 998 + m=i + if(m.le.0) then + istk(il)=1 + istk(il+1)=0 + istk(il+2)=0 + istk(il+3)=0 + lstk(top+1)=sadr(il+4) + else + call icopy(li-ili+1,istk(ili),-1,istk(li+2),-1) + lis=li+2 + istk(il)=10 + istk(il+1)=m + istk(il+2)=min(m,1) + istk(ili)=1 + li=ili+m+1 + do 1283 j=1,m + mn=istk(lis) + istk(ili+1)=istk(ili)+mn + call icopy(mn,istk(lis+1),1,istk(li),1) + lis=lis+mn+1 + li=li+mn + ili=ili+1 + 1283 continue + lstk(top+1)=sadr(li+1) + endif + endif + if(.not.opened) then + mode(1)=0 + mode(2)=0 + call clunit(-lunit,buf,mode) + endif + goto 999 + + 996 if(.not.opened) call clunit(-lunit,buf,mode) + return + 997 err=i + call error(62) + if(.not.opened) call clunit(-lunit,buf,mode) + return + 998 call error(49) + if(.not.opened) call clunit(-lunit,buf,mode) + return + + + 999 return + end diff --git a/modules/io/sci_gateway/fortran/intread.lo b/modules/io/sci_gateway/fortran/intread.lo new file mode 100755 index 000000000..04691ee82 --- /dev/null +++ b/modules/io/sci_gateway/fortran/intread.lo @@ -0,0 +1,12 @@ +# sci_gateway/fortran/intread.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/intread.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/fortran/intread4b.f b/modules/io/sci_gateway/fortran/intread4b.f new file mode 100755 index 000000000..0f72f0132 --- /dev/null +++ b/modules/io/sci_gateway/fortran/intread4b.f @@ -0,0 +1,195 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + subroutine intread4b +c ------------ +c read binaire real*4 +c ------------ + + INCLUDE 'stack.h' + integer mode(2),top2 + + logical opened + integer iadr,sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + + lw=lstk(top+1) + il=iadr(lstk(top)) + if(lhs.ne.1) then + call error(41) + return + endif + iacces=0 + mode(2)=0 + if(rhs.eq.4) then + iacces=top + ilb=iadr(lstk(iacces)) + if(istk(ilb+3).ne.0) then + err=top + call error(52) + return + endif + nb=istk(ilb+1)*istk(ilb+2) + lb=sadr(ilb+4) + top=top-1 + rhs=rhs-1 + mode(1)=-111 + elseif(rhs.eq.3) then + mode(1)=-101 + else + call error(39) + return + endif +c opening file + top2 = top + top = top-rhs+1 + il=iadr(lstk(top)) + + call v2unit(top,mode,lunit,opened,ierr) + if(ierr.gt.0) return +c + if(lunit.eq.wte) then + call error(49) + return + endif +c + il=iadr(lstk(top2)) + if(istk(il).ne.1) then + err=3 + call error(53) + return + endif + if(istk(il+3).ne.0) then + err=3 + call error(52) + return + endif + if(istk(il+1)*istk(il+2).ne.1) then + err=3 + call error(89) + return + endif + l=sadr(il+4) + n=int(stk(l)) +c + top2=top2-1 + il=iadr(lstk(top2)) + if(istk(il).ne.1) then + err=2 + call error(53) + return + endif + if(istk(il+3).ne.0) then + err=2 + call error(52) + return + endif + if(istk(il+1)*istk(il+2).ne.1) then + err=2 + call error(89) + return + endif + l=sadr(il+4) + m=int(stk(l)) + if(iacces.ne.0) then + if(m.ne.nb) then + call error(42) + return + endif + endif +c + il=iadr(lstk(top)) + if(m.eq.0.or.n.le.0) then + istk(il)=1 + istk(il+1)=0 + istk(il+2)=0 + istk(il+3)=0 + lstk(top+1)=sadr(il+4) + if(.not.opened) call clunit(-lunit,buf,mode) + goto 999 + endif + + l=sadr(il+4) + istk(il)=1 + istk(il+1)=m + istk(il+2)=n + istk(il+3)=0 + ls=iadr(l) + + if(m.gt.0) then + lw=l+m*n + if(iacces.ne.0) then + ilb=iadr(lw) + lw=sadr(ilb+nb) + endif + err=lw-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + endif +c + if(iacces.eq.0) then +c . sequential acces + if(m.gt.0) then + do 191 i=0,m-1 + read(lunit,end=997,err=998) (sstk(ls+i+j*m),j=0,n-1) + 191 continue + call rea2db(m*n,sstk(ls),-1,stk(l),-1) + else + i=-1 + 192 i=i+1 + li=ls+n*i + err=sadr(li+n)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + read(lunit,end=193,err=998) (sstk(li+j),j=0,n-1) + goto 192 + 193 m=i + lstk(top+1)=l+m*n + err=lstk(top+1)+m*n-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + l1=l+m*n + call rea2db(m*n,sstk(ls),1,stk(l1),1) + call mtran(stk(l1),n,stk(l),m,n,m) + istk(il+1)=m + endif + else +c . direct access + call entier(nb,stk(lb),istk(ilb)) + do 194 i=0,m-1 + read(lunit,rec=istk(ilb+i),err=998) + $ (sstk(ls+i+j*m),j=0,n-1) + 194 continue + call rea2db(m*n,sstk(ls),-1,stk(l),-1) + endif + lstk(top+1)=l+m*n + if(.not.opened) call clunit(-lunit,buf,mode) + goto 999 +c -------------- +c erreur lecture +c -------------- +c + 997 err=i + call error(62) + if(.not.opened) call clunit(-lunit,buf,mode) + return + 998 call error(49) + if(.not.opened) call clunit(-lunit,buf,mode) + return +c + 999 return + end diff --git a/modules/io/sci_gateway/fortran/intread4b.lo b/modules/io/sci_gateway/fortran/intread4b.lo new file mode 100755 index 000000000..d94f48be6 --- /dev/null +++ b/modules/io/sci_gateway/fortran/intread4b.lo @@ -0,0 +1,12 @@ +# sci_gateway/fortran/intread4b.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/intread4b.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/fortran/intreadb.f b/modules/io/sci_gateway/fortran/intreadb.f new file mode 100755 index 000000000..7ef86ac14 --- /dev/null +++ b/modules/io/sci_gateway/fortran/intreadb.f @@ -0,0 +1,189 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c Copyright (C) ENPC +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + subroutine intreadb + + INCLUDE 'stack.h' + integer top2 + integer mode(2) + logical opened + integer iadr,sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + lw=lstk(top+1) + il=iadr(lstk(top)) + if(lhs.ne.1) then + call error(42) + return + endif + iacces=0 + mode(2)=0 + if(rhs.eq.4) then + iacces=top + ilb=iadr(lstk(iacces)) + if(istk(ilb+3).ne.0) then + err=top + call error(52) + return + endif + nb=istk(ilb+1)*istk(ilb+2) + lb=sadr(ilb+4) + top=top-1 + rhs=rhs-1 + mode(1)=-111 + elseif(rhs.eq.3) then + mode(1)=-101 + else + call error(39) + return + endif +c opening file + top2 = top + top = top-rhs+1 + il=iadr(lstk(top)) + + call v2unit(top,mode,lunit,opened,ierr) + if(ierr.gt.0) return +c + if(lunit.eq.wte) then + call error(49) + goto 996 + endif +c + il=iadr(lstk(top2)) + if(istk(il).ne.1) then + err=3 + call error(53) + goto 996 + endif + if(istk(il+3).ne.0) then + err=3 + call error(52) + return + endif + if(istk(il+1)*istk(il+2).ne.1) then + err=3 + call error(89) + goto 996 + endif + l=sadr(il+4) + n=int(stk(l)) +c + top2=top2-1 + il=iadr(lstk(top2)) + if(istk(il).ne.1) then + err=2 + call error(53) + goto 996 + endif + if(istk(il+3).ne.0) then + err=2 + call error(52) + goto 996 + endif + if(istk(il+1)*istk(il+2).ne.1) then + err=2 + call error(89) + goto 996 + endif + l=sadr(il+4) + m=int(stk(l)) + if(iacces.ne.0) then + if(m.ne.nb) then + call error(42) + goto 996 + endif + endif +c + il=iadr(lstk(top)) + if(m.eq.0.or.n.le.0) then + istk(il)=1 + istk(il+1)=0 + istk(il+2)=0 + istk(il+3)=0 + lstk(top+1)=sadr(il+4) + if(.not.opened) call clunit(-lunit,buf,mode) + goto 999 + endif + + l=sadr(il+4) + istk(il)=1 + istk(il+1)=m + istk(il+2)=n + istk(il+3)=0 + + if(m.gt.0) then + lw=l+m*n + if(iacces.ne.0) then + ilb=iadr(lw) + lw=sadr(ilb+nb) + endif + err=lw-lstk(bot) + if(err.gt.0) then + call error(17) + goto 996 + endif + endif +c + if(iacces.eq.0) then +c . sequential acces + if(m.gt.0) then + do 191 i=0,m-1 + read(lunit,end=997,err=998) (stk(l+i+j*m),j=0,n-1) + 191 continue + else + i=-1 + 192 i=i+1 + li=l+n*i + err=li+n-lstk(bot) + if(err.gt.0) then + call error(17) + goto 996 + endif + read(lunit,end=193,err=998) (stk(li+j),j=0,n-1) + goto 192 + 193 m=i + lstk(top+1)=l+m*n + err=lstk(top+1)+m*n-lstk(bot) + if(err.gt.0) then + call error(17) + goto 996 + endif + l1=l+m*n + call unsfdcopy(m*n,stk(l),1,stk(l1),1) + call mtran(stk(l1),n,stk(l),m,n,m) + istk(il+1)=m + endif + else +c . direct access + call entier(nb,stk(lb),istk(ilb)) + do 194 i=0,m-1 + read(lunit,rec=istk(ilb+i),err=998) + $ (stk(l+i+j*m),j=0,n-1) + 194 continue + endif + lstk(top+1)=l+m*n + if(.not.opened) call clunit(-lunit,buf,mode) + goto 999 + + + 996 if(.not.opened) call clunit(-lunit,buf,mode) + return + 997 err=i + call error(62) + if(.not.opened) call clunit(-lunit,buf,mode) + return + 998 call error(49) + if(.not.opened) call clunit(-lunit,buf,mode) + return + + 999 return + end diff --git a/modules/io/sci_gateway/fortran/intreadb.lo b/modules/io/sci_gateway/fortran/intreadb.lo new file mode 100755 index 000000000..fe1cfe743 --- /dev/null +++ b/modules/io/sci_gateway/fortran/intreadb.lo @@ -0,0 +1,12 @@ +# sci_gateway/fortran/intreadb.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/intreadb.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/fortran/intwritb.f b/modules/io/sci_gateway/fortran/intwritb.f new file mode 100755 index 000000000..8ba8f5ecf --- /dev/null +++ b/modules/io/sci_gateway/fortran/intwritb.f @@ -0,0 +1,114 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c Copyright (C) ENPC +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + subroutine intwritb + + INCLUDE 'stack.h' + integer top2 + integer mode(2) + logical opened + integer iadr,sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + + if(lhs.gt.1) then + call error(41) + return + endif + + if(rhs.eq.3) then + iacces=top + ilb=iadr(lstk(iacces)) + if(istk(ilb+3).ne.0) then + err=3 + call error(52) + return + endif + nb=istk(ilb+1)*istk(ilb+2) + lb=sadr(ilb+4) + top=top-1 + rhs=rhs-1 + mode(1)=110 + elseif(rhs.eq.2) then + mode(1)=100 + iacces=0 + else + call error(39) + return + endif + + +c opening file + top2 = top + top = top-rhs+1 + il=iadr(lstk(top)) + mode(2)=0 + call v2unit(top,mode,lunit,opened,ierr) + if(ierr.gt.0) return +c + if(lunit.eq.wte) then + call error(49) + goto 996 + endif + nc=0 + il=iadr(lstk(top2)) + if(istk(il).ne.1) then + err=2 + call error(53) + goto 996 + endif + if(istk(il+3).ne.0) then + err=2 + call error(52) + goto 996 + endif + +c + m=istk(il+1) + n=istk(il+2) + l=sadr(il+4) + if(iacces.ne.0) then + if(nb.ne.m) then + call error(42) + goto 996 + endif + call entier(nb,stk(lb),istk(ilb)) + li=l + do 181 i=1,m + write(lunit,rec=istk(ilb-1+i),err=998) + $ (stk(li+(j-1)*m),j=1,n) + li=li+1 + 181 continue + else + li=l + do 182 i=1,m + write(lunit,err=998) (stk(li+(j-1)*m),j=1,n) + li=li+1 + 182 continue + endif +c + il=iadr(lstk(top)) + istk(il)=0 + if(.not.opened) then + mode(1)=0 + mode(2)=0 + call clunit(-lunit,buf,mode) + endif + goto 999 + + 996 if(.not.opened) call clunit(-lunit,buf,mode) + return + 998 call error(49) + if(.not.opened) call clunit(-lunit,buf,mode) + return + + 999 return + end diff --git a/modules/io/sci_gateway/fortran/intwritb.lo b/modules/io/sci_gateway/fortran/intwritb.lo new file mode 100755 index 000000000..0c89edc6a --- /dev/null +++ b/modules/io/sci_gateway/fortran/intwritb.lo @@ -0,0 +1,12 @@ +# sci_gateway/fortran/intwritb.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/intwritb.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/fortran/intwrite.f b/modules/io/sci_gateway/fortran/intwrite.f new file mode 100755 index 000000000..2bf3ec045 --- /dev/null +++ b/modules/io/sci_gateway/fortran/intwrite.f @@ -0,0 +1,289 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c Copyright (C) ENPC +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + subroutine intwrite + + INCLUDE 'stack.h' + integer lch + parameter (lch=1024) + character chaine*(lch) +c + integer top2,id(nlgh),h(nsiz) + integer ftyp,fmttyp,mode(2) + integer top0 + logical opened,eptover + integer iadr,sadr + character bu1*(bsiz),bu2*(bsiz) +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + top0=top-rhs+1 +c + ftyp=0 + + if(rhs.gt.4.or.rhs.lt.2) then + call error(42) + return + endif + if(lhs.gt.1) then + call error(41) + return + endif + +c opening file + top2 = top + top = top-rhs+1 + il=iadr(lstk(top)) + mode(1)=0 + mode(2)=0 + call v2unit(top,mode,lunit,opened,ierr) + if(ierr.gt.0) return +c + + nc=0 + iacces=0 + if(rhs.eq.2) goto 61 + il=iadr(lstk(top2)) + if(rhs.eq.4) then + iacces=top2-1 + else + if(istk(il).ne.10) then + call error(61) + goto 996 + endif + endif +c analyse du format + if(istk(il).ne.10) then + err=top2-top+1 + call error(55) + goto 996 + endif + nc=istk(il+5)-1 + l=il+5+istk(il+1)*istk(il+2) + ftyp=fmttyp(istk(l),nc) + if(ftyp.eq.0) then + call error(49) + goto 996 + endif + call cvstr(nc,istk(l),buf,1) + top2=top2-1 + fin=-fin + 61 if(iacces.ne.0) then +c analyse des numero d'enregistrement + ilb=iadr(lstk(iacces)) + if(istk(ilb+3).ne.0) then + err=top2-top + call error(52) + return + endif + nb=istk(ilb+1)*istk(ilb+2) + lb=sadr(ilb+4) + do 62 i=1,nb + istk(ilb-1+i)=int(stk(lb-1+i)) + 62 continue + top2=iacces-1 + endif + il=iadr(lstk(top2)) + if(istk(il).ne.1) goto 70 + if(istk(il+3).ne.0) then + err=top2-top+1 + call error(52) + goto 996 + endif + if(fin.lt.0.and.ftyp.ne.1.and.ftyp.ne.2) then + call error(49) + goto 996 + endif + m=istk(il+1) + n=istk(il+2) + l=sadr(il+4) + if(ftyp.eq.2) then + call entier(m*n,stk(l),istk(iadr(l))) + l=iadr(l) + endif +c---- ecriture de flottants + if(iacces.eq.0) then +c acces sequentiel + if(lunit.ne.wte) then + do 63 i=1,m + li=l+i-1 + if(fin.gt.0) then + write(lunit,*,err=139) + 1 (stk(li+(j-1)*m),j=1,n) + else + if(ftyp.eq.1) then + write(lunit,buf(1:nc),err=139) + 1 (stk(li+(j-1)*m),j=1,n) + else + write(lunit,buf(1:nc),err=139) + 1 (istk(li+(j-1)*m),j=1,n) + endif + endif + 63 continue + else + do 68 i=1,m + li=l+i-1 + if(fin.gt.0) then + buf=' ' + nv=lct(5)/18 + write(chaine(1:lch),'(''('',i2,''(1x,1pd17.10))'')') nv + do 64 k1=1,n,nv + k2=min(n,k1+nv-1) + lc=18*(k2-k1+1) + write(buf,chaine(1:lc),err=139) + & (stk(li+(j-1)*m),j=k1,k2) + call basout(io,wte,buf(1:lc)) + 64 continue + else + ib=nc+1 + if(ftyp.eq.1) then + write(buf(ib:),buf(1:nc),err=139) + & (stk(li+j*m),j=0,n-1) + else + write(buf(ib:),buf(1:nc),err=139) + & (istk(li+j*m),j=0,n-1) + endif + lb1=bsiz+1 + 66 lb1=lb1-1 + if(lb1.ge.ib+1.and.buf(lb1:lb1).eq.' ') goto 66 + call basout(io,wte,buf(ib:lb1)) + endif + 68 continue + endif +c + else +c acces direct + if(nb.ne.m) then + call error(42) + goto 996 + endif + do 69 i=1,m + li=l+i-1 + if(ftyp.eq.1) then + write(lunit,buf(1:nc),rec=istk(ilb+i-1), + 1 err=139) (stk(li+(j-1)*m),j=1,n) + else + write(lunit,buf(1:nc),rec=istk(ilb+i-1), + 1 err=139) (istk(li+(j-1)*m),j=1,n) + endif + 69 continue + endif + goto 78 +c +c ecriture des chaines de caracteres + 70 if(istk(il).ne.10) then + err=top2-top+1 + call error(55) + goto 996 + endif + if(fin.lt.0.and.ftyp.ne.4) then + call error(49) + goto 996 + endif + n=istk(il+2)*istk(il+1) + m=istk(il+1) + il=il+4 + l=il+n+1 + if(iacces.ne.0) then + if(nb.ne.m) then + call error(42) + goto 996 + endif + endif + do 77 i=1,n + m=istk(il+i)-istk(il+i-1) + if(iacces.eq.0) then + lm=l + if(lunit.ne.wte) then +c fichier format libre + if(fin.gt.0) then + if(m.eq.0) then + write(lunit,*,err=139) + else + do 73 i1=1,m,lch + i2=min(m,i1+lch-1) + m1=i2-i1+1 + call cvstr(m1,istk(lm),chaine(1:m1),1) + write(lunit,*,err=139) chaine(1:m1) + lm=lm+m1 + 73 continue + endif + else +c fichier format donne + if(m.eq.0) then + write(lunit,buf(1:nc),err=139) + else + do 74 i1=1,m,lch + i2=min(m,i1+lch-1) + m1=i2-i1+1 + call cvstr(m1,istk(lm),chaine(1:m1),1) + write(lunit,buf(1:nc),err=139) chaine(1:m1) + lm=lm+m1 + 74 continue + endif + endif + else + if(fin.gt.0) then +c ecran format libre + if(m.eq.0) then + call basout(io,lunit,' ') + else + do 75 i1=1,m,bsiz + i2=min(m,i1+bsiz-1) + m1=i2-i1+1 + call cvstr(m1,istk(lm),buf(1:m1),1) + call basout(io,lunit, buf(1:m1)) + lm=lm+m1 + 75 continue + endif + else +c ecran format donne + if(m.eq.0) then + call basout(io,wte,' ') + else + m1=min(bsiz,m) + call cvstr(m1,istk(l),bu1,1) + write(bu2,buf(1:nc),err=139) bu1(1:m1) + lb=bsiz+1 + 71 lb=lb-1 + if(lb.ge.2.and.bu2(lb:lb).eq.' ') goto 71 + call basout(io,wte,bu2(1:lb)) + endif + endif + endif + else +c acces direct + m1=min(bsiz,m) + call cvstr(m1,istk(l),bu1,1) + write(lunit,buf(1:nc),rec=istk(ilb+i-1),err=139) + + bu1(1:m1) + endif + l=l+m + 77 continue +c +c fin generale de write + 78 il=iadr(lstk(top)) + istk(il)=0 + if(.not.opened) then + mode(1)=0 + mode(2)=0 + call clunit(-lunit,buf,mode) + endif + goto 999 + + 139 call error(49) + if(.not.opened) call clunit(-lunit,buf,mode) + return + + 996 if(.not.opened) call clunit(-lunit,buf,mode) + return +c + 999 return + end diff --git a/modules/io/sci_gateway/fortran/intwrite.lo b/modules/io/sci_gateway/fortran/intwrite.lo new file mode 100755 index 000000000..a0cdf267a --- /dev/null +++ b/modules/io/sci_gateway/fortran/intwrite.lo @@ -0,0 +1,12 @@ +# sci_gateway/fortran/intwrite.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/intwrite.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/fortran/intwrite4b.f b/modules/io/sci_gateway/fortran/intwrite4b.f new file mode 100755 index 000000000..dafa271ba --- /dev/null +++ b/modules/io/sci_gateway/fortran/intwrite4b.f @@ -0,0 +1,121 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + subroutine intwrite4b +c -------------------- +c write binaire real*4 +c -------------------- + INCLUDE 'stack.h' + integer mode(2),top2 + + logical opened + integer iadr,sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + lw=lstk(top+1) + il=iadr(lstk(top)) + if(lhs.gt.1) then + call error(41) + return + endif + if(rhs.eq.3) then + iacces=top + ilb=iadr(lstk(iacces)) + if(istk(ilb+3).ne.0) then + err=3 + call error(52) + return + endif + nb=istk(ilb+1)*istk(ilb+2) + lb=sadr(ilb+4) + top=top-1 + rhs=rhs-1 + mode(1)=110 + elseif(rhs.eq.2) then + mode(1)=100 + iacces=0 + else + call error(39) + return + endif + + +c opening file + top2 = top + top = top-rhs+1 + il=iadr(lstk(top)) + mode(2)=0 + call v2unit(top,mode,lunit,opened,ierr) + if(ierr.gt.0) return +c + if(lunit.eq.wte) then + call error(49) + return + endif + nc=0 + il=iadr(lstk(top2)) + if(istk(il).ne.1) then + err=2 + call error(53) + return + endif + if(istk(il+3).ne.0) then + err=2 + call error(52) + return + endif + +c + m=istk(il+1) + n=istk(il+2) + l=sadr(il+4) + ls=iadr(l) + do 180 i=0,m*n-1 + sstk(ls+i)=stk(l+i) + 180 continue + if(iacces.ne.0) then + if(nb.ne.m) then + call error(42) + return + endif + call entier(nb,stk(lb),istk(ilb)) + li=ls + do 181 i=1,m + write(lunit,rec=istk(ilb-1+i),err=998) + $ (sstk(li+(j-1)*m),j=1,n) + li=li+1 + 181 continue + else + li=ls + do 182 i=1,m + write(lunit,err=998) (sstk(li+(j-1)*m),j=1,n) + li=li+1 + 182 continue + endif +c + il=iadr(lstk(top)) + istk(il)=0 + if(.not.opened) then + mode(1)=0 + mode(2)=0 + call clunit(-lunit,buf,mode) + endif + goto 999 +c -------------- +c erreur lecture +c -------------- +c + 998 call error(49) + if(.not.opened) call clunit(-lunit,buf,mode) + return +c + 999 return + end + diff --git a/modules/io/sci_gateway/fortran/intwrite4b.lo b/modules/io/sci_gateway/fortran/intwrite4b.lo new file mode 100755 index 000000000..dd1ce410a --- /dev/null +++ b/modules/io/sci_gateway/fortran/intwrite4b.lo @@ -0,0 +1,12 @@ +# sci_gateway/fortran/intwrite4b.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/intwrite4b.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/sci_gateway/io_gateway.xml b/modules/io/sci_gateway/io_gateway.xml new file mode 100755 index 000000000..f0301b672 --- /dev/null +++ b/modules/io/sci_gateway/io_gateway.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) XXXX-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 + * + --> + +<!DOCTYPE GATEWAY SYSTEM "../../functions/xml/gateway.dtd"> +<GATEWAY name="io"> + <!-- =================== --> + <!-- + Scilab + Interface description. In this file, we define the list of the function which + will be available into Scilab and the link to the "native" function. + + gatewayId is the position in the hashtable 'Interfaces' defined in the + file SCI/modules/core/src/c/callinterf.h + + primitiveId is the position in the hashtable '<module>Table Tab[]' defined + in the file modules/<module>/sci_gateway/c/gw_<module>.c + + primitiveName is the name of the Scilab function + + @author Allan CORNET + @author Sylvestre LEDRU + @date INRIA 2007 + =================== + Don't touch if you do not know what you are doing +--> + <!-- =================== --> + + <PRIMITIVE gatewayId="5" primitiveId="1" primitiveName="setenv" /> + <PRIMITIVE gatewayId="5" primitiveId="2" primitiveName="read" /> + <PRIMITIVE gatewayId="5" primitiveId="3" primitiveName="getenv" /> + <PRIMITIVE gatewayId="5" primitiveId="4" primitiveName="getio" /> + <!-- <PRIMITIVE gatewayId="5" primitiveId="5" primitiveName="" /> --> + <!-- <PRIMITIVE gatewayId="5" primitiveId="6" primitiveName="" /> --> + <PRIMITIVE gatewayId="5" primitiveId="7" primitiveName="write" /> + <!-- <PRIMITIVE gatewayId="5" primitiveId="8" primitiveName="" /> --> + <PRIMITIVE gatewayId="5" primitiveId="9" primitiveName="file" /> + <PRIMITIVE gatewayId="5" primitiveId="10" primitiveName="host" /> + <PRIMITIVE gatewayId="5" primitiveId="11" primitiveName="unix" /> + <PRIMITIVE gatewayId="5" primitiveId="12" primitiveName="readb" /> + <PRIMITIVE gatewayId="5" primitiveId="13" primitiveName="writb" /> + <PRIMITIVE gatewayId="5" primitiveId="14" primitiveName="getpid" /> + <PRIMITIVE gatewayId="5" primitiveId="15" primitiveName="read4b" /> + <PRIMITIVE gatewayId="5" primitiveId="16" primitiveName="write4b" /> + <PRIMITIVE gatewayId="5" primitiveId="17" primitiveName="save" /> + <PRIMITIVE gatewayId="5" primitiveId="18" primitiveName="load" /> + <PRIMITIVE gatewayId="5" primitiveId="19" primitiveName="%_load" /> +</GATEWAY> diff --git a/modules/io/src/c/.deps/.dirstamp b/modules/io/src/c/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/io/src/c/.deps/.dirstamp diff --git a/modules/io/src/c/.deps/libsciio_algo_la-getenvc.Plo b/modules/io/src/c/.deps/libsciio_algo_la-getenvc.Plo new file mode 100755 index 000000000..d80afdb0d --- /dev/null +++ b/modules/io/src/c/.deps/libsciio_algo_la-getenvc.Plo @@ -0,0 +1,177 @@ +src/c/libsciio_algo_la-getenvc.lo: src/c/getenvc.c \ + /usr/include/stdc-predef.h /usr/include/stdlib.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/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.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/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 /usr/include/string.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/x86_64-linux-gnu/bits/string3.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h includes/getenvc.h \ + includes/dynlib_io.h ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/output_stream/includes/sciprint.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/PATH_MAX.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 \ + ../../modules/fileio/includes/FileExist.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/fileio/includes/dynlib_fileio.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h + +/usr/include/stdc-predef.h: + +/usr/include/stdlib.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/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.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/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: + +/usr/include/string.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/x86_64-linux-gnu/bits/string3.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +includes/getenvc.h: + +includes/dynlib_io.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/output_stream/includes/sciprint.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/PATH_MAX.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: + +../../modules/fileio/includes/FileExist.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/fileio/includes/dynlib_fileio.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: diff --git a/modules/io/src/c/.deps/libsciio_algo_la-getpidc.Plo b/modules/io/src/c/.deps/libsciio_algo_la-getpidc.Plo new file mode 100755 index 000000000..a4637e0c0 --- /dev/null +++ b/modules/io/src/c/.deps/libsciio_algo_la-getpidc.Plo @@ -0,0 +1,104 @@ +src/c/libsciio_algo_la-getpidc.lo: src/c/getpidc.c \ + /usr/include/stdc-predef.h /usr/include/stdlib.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/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.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/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 /usr/include/unistd.h \ + /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ + /usr/include/x86_64-linux-gnu/bits/environments.h \ + /usr/include/x86_64-linux-gnu/bits/confname.h /usr/include/getopt.h \ + /usr/include/x86_64-linux-gnu/bits/unistd.h src/c/getpidc.h \ + ../../modules/core/includes/machine.h + +/usr/include/stdc-predef.h: + +/usr/include/stdlib.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/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.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/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: + +/usr/include/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/posix_opt.h: + +/usr/include/x86_64-linux-gnu/bits/environments.h: + +/usr/include/x86_64-linux-gnu/bits/confname.h: + +/usr/include/getopt.h: + +/usr/include/x86_64-linux-gnu/bits/unistd.h: + +src/c/getpidc.h: + +../../modules/core/includes/machine.h: diff --git a/modules/io/src/c/.deps/libsciio_algo_la-setenvc.Plo b/modules/io/src/c/.deps/libsciio_algo_la-setenvc.Plo new file mode 100755 index 000000000..18792d573 --- /dev/null +++ b/modules/io/src/c/.deps/libsciio_algo_la-setenvc.Plo @@ -0,0 +1,154 @@ +src/c/libsciio_algo_la-setenvc.lo: src/c/setenvc.c \ + /usr/include/stdc-predef.h /usr/include/stdlib.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/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.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/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 /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/string.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/x86_64-linux-gnu/bits/string3.h includes/setenvc.h \ + includes/dynlib_io.h ../../modules/core/includes/BOOL.h \ + src/c/../../../core/src/c/dynamic_tclsci.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h + +/usr/include/stdc-predef.h: + +/usr/include/stdlib.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/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.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/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: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/string.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/x86_64-linux-gnu/bits/string3.h: + +includes/setenvc.h: + +includes/dynlib_io.h: + +../../modules/core/includes/BOOL.h: + +src/c/../../../core/src/c/dynamic_tclsci.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: diff --git a/modules/io/src/c/.deps/libsciio_algo_la-systemc.Plo b/modules/io/src/c/.deps/libsciio_algo_la-systemc.Plo new file mode 100755 index 000000000..dbbc00af4 --- /dev/null +++ b/modules/io/src/c/.deps/libsciio_algo_la-systemc.Plo @@ -0,0 +1,138 @@ +src/c/libsciio_algo_la-systemc.lo: src/c/systemc.c \ + /usr/include/stdc-predef.h /usr/include/stdio.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/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \ + /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.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/byteswap-16.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 \ + /usr/include/x86_64-linux-gnu/sys/wait.h /usr/include/signal.h \ + /usr/include/x86_64-linux-gnu/bits/signum.h \ + /usr/include/x86_64-linux-gnu/bits/siginfo.h \ + /usr/include/x86_64-linux-gnu/bits/sigaction.h \ + /usr/include/x86_64-linux-gnu/bits/sigcontext.h \ + /usr/include/x86_64-linux-gnu/bits/sigstack.h \ + /usr/include/x86_64-linux-gnu/sys/ucontext.h \ + /usr/include/x86_64-linux-gnu/bits/sigthread.h src/c/systemc.h \ + ../../modules/core/includes/machine.h + +/usr/include/stdc-predef.h: + +/usr/include/stdio.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/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.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/byteswap-16.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: + +/usr/include/x86_64-linux-gnu/sys/wait.h: + +/usr/include/signal.h: + +/usr/include/x86_64-linux-gnu/bits/signum.h: + +/usr/include/x86_64-linux-gnu/bits/siginfo.h: + +/usr/include/x86_64-linux-gnu/bits/sigaction.h: + +/usr/include/x86_64-linux-gnu/bits/sigcontext.h: + +/usr/include/x86_64-linux-gnu/bits/sigstack.h: + +/usr/include/x86_64-linux-gnu/sys/ucontext.h: + +/usr/include/x86_64-linux-gnu/bits/sigthread.h: + +src/c/systemc.h: + +../../modules/core/includes/machine.h: diff --git a/modules/io/src/c/.deps/libsciio_algo_la-v2cuniterror.Plo b/modules/io/src/c/.deps/libsciio_algo_la-v2cuniterror.Plo new file mode 100755 index 000000000..65d44c7ad --- /dev/null +++ b/modules/io/src/c/.deps/libsciio_algo_la-v2cuniterror.Plo @@ -0,0 +1,71 @@ +src/c/libsciio_algo_la-v2cuniterror.lo: src/c/v2cuniterror.c \ + /usr/include/stdc-predef.h \ + ../../modules/localization/includes/localization.h \ + ../../modules/core/includes/machine.h /usr/include/libintl.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/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/xlocale.h \ + src/c/v2cuniterror.h includes/dynlib_io.h \ + ../../modules/output_stream/includes/Scierror.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/fileio/includes/FileExist.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/fileio/includes/dynlib_fileio.h \ + ../../modules/core/includes/BOOL.h ../../modules/fileio/includes/isdir.h + +/usr/include/stdc-predef.h: + +../../modules/localization/includes/localization.h: + +../../modules/core/includes/machine.h: + +/usr/include/libintl.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/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +/usr/include/xlocale.h: + +src/c/v2cuniterror.h: + +includes/dynlib_io.h: + +../../modules/output_stream/includes/Scierror.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/fileio/includes/FileExist.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/fileio/includes/dynlib_fileio.h: + +../../modules/core/includes/BOOL.h: + +../../modules/fileio/includes/isdir.h: diff --git a/modules/io/src/c/.dirstamp b/modules/io/src/c/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/io/src/c/.dirstamp diff --git a/modules/io/src/c/.libs/libsciio_algo_la-getenvc.o b/modules/io/src/c/.libs/libsciio_algo_la-getenvc.o Binary files differnew file mode 100755 index 000000000..0a7750363 --- /dev/null +++ b/modules/io/src/c/.libs/libsciio_algo_la-getenvc.o diff --git a/modules/io/src/c/.libs/libsciio_algo_la-getpidc.o b/modules/io/src/c/.libs/libsciio_algo_la-getpidc.o Binary files differnew file mode 100755 index 000000000..ba482ff23 --- /dev/null +++ b/modules/io/src/c/.libs/libsciio_algo_la-getpidc.o diff --git a/modules/io/src/c/.libs/libsciio_algo_la-setenvc.o b/modules/io/src/c/.libs/libsciio_algo_la-setenvc.o Binary files differnew file mode 100755 index 000000000..b29ef3a1e --- /dev/null +++ b/modules/io/src/c/.libs/libsciio_algo_la-setenvc.o diff --git a/modules/io/src/c/.libs/libsciio_algo_la-systemc.o b/modules/io/src/c/.libs/libsciio_algo_la-systemc.o Binary files differnew file mode 100755 index 000000000..e51512a03 --- /dev/null +++ b/modules/io/src/c/.libs/libsciio_algo_la-systemc.o diff --git a/modules/io/src/c/.libs/libsciio_algo_la-v2cuniterror.o b/modules/io/src/c/.libs/libsciio_algo_la-v2cuniterror.o Binary files differnew file mode 100755 index 000000000..7962f4a34 --- /dev/null +++ b/modules/io/src/c/.libs/libsciio_algo_la-v2cuniterror.o diff --git a/modules/io/src/c/DllmainIo.c b/modules/io/src/c/DllmainIo.c new file mode 100755 index 000000000..c86b5b018 --- /dev/null +++ b/modules/io/src/c/DllmainIo.c @@ -0,0 +1,33 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - 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/io/src/c/Scilab_Windows_Import.def b/modules/io/src/c/Scilab_Windows_Import.def new file mode 100755 index 000000000..02aa8aa18 --- /dev/null +++ b/modules/io/src/c/Scilab_Windows_Import.def @@ -0,0 +1,12 @@ + LIBRARY scilab_windows.dll + + +EXPORTS +; +; scilab_windows +; + strdup_windows + wstrdup_windows + CallWindowsShell +; + diff --git a/modules/io/src/c/core_Import.def b/modules/io/src/c/core_Import.def new file mode 100755 index 000000000..c45b4f6db --- /dev/null +++ b/modules/io/src/c/core_Import.def @@ -0,0 +1,27 @@ + LIBRARY core.dll + + +EXPORTS +; +;core +; +callFunctionFromGateway +com_ +getRecursionFunctionToCall +isRecursionCallToFunction +putlhsvar_ +intersci_ +freeArrayOfString +checklhs_ +checkrhs_ +createvarfromptr_ +iop_ +stack_ +createvar_ +getrhsvar_ +vartype_ +dynamic_setenvtcl +overload_ +getWarningMode +MyHeapAlloc +MyHeapFree diff --git a/modules/io/src/c/getenvc.c b/modules/io/src/c/getenvc.c new file mode 100755 index 000000000..28c67fe77 --- /dev/null +++ b/modules/io/src/c/getenvc.c @@ -0,0 +1,220 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2006 - INRIA +* Copyright (C) 2008 - INRIA - 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 <stdlib.h> +#include <string.h> /* strlen */ +#ifdef _MSC_VER +#include <Windows.h> /* GetEnvironmentVariable */ +#include "strdup_windows.h" +#endif +#include "MALLOC.h" +#include "getenvc.h" +#include "localization.h" +#include "sciprint.h" +#include "PATH_MAX.h" +#include "FileExist.h" +#include "charEncoding.h" + +/*--------------------------------------------------------------------------*/ +#ifndef _MSC_VER +static void searchenv_others(const char *filename, const char *varname, + char *pathname); +#endif +/*--------------------------------------------------------------------------*/ +void C2F(getenvc)(int *ierr, char *var, char *buf, int *buflen, int *iflag) +{ +#ifdef _MSC_VER + wchar_t* wbuf = NULL; + wchar_t *wvar = to_wide_string(var); + char* temp = NULL; + DWORD iLen = GetEnvironmentVariableW(wvar, NULL, 0); + + *ierr = 0; + + if (iLen == 0) + { + if (*iflag == 1) + { + sciprint(_("Undefined environment variable %s.\n"), var); + } + + *ierr = 1; + return; + } + else + { + wbuf = (wchar_t*)MALLOC(sizeof(wchar_t) * iLen); + if (GetEnvironmentVariableW(wvar, wbuf, iLen) == 0) + { + if (*iflag == 1) + { + sciprint(_("Undefined environment variable %s.\n"), var); + } + + *ierr = 1; + return; + } + } + + temp = wide_string_to_UTF8(wbuf); + *buflen = (int)strlen(temp); + if (buf) + { + strcpy(buf, temp); + } + + FREE(temp); +#else + char *locale = NULL; + locale = getenv(var); + if ( locale == NULL ) + { + if ( *iflag == 1 ) + { + sciprint(_("Undefined environment variable %s.\n"), var); + } + *ierr = 1; + } + else + { + // updating the size of char array "buf" + *buflen = (int)strlen(locale); + if (buf) + { + // to avoid buffer overflow, we check the size of the source buffer + // and the size of the destination buffer + if ((int) strlen(locale) <= *buflen) + { + // "locale" can be copied entirely to "buf" + strcpy(buf, locale); + *ierr = 0; + } + else + { + *ierr = 2; + } + } + } +#endif +} +/*--------------------------------------------------------------------------*/ +#ifndef _MSC_VER +static void searchenv_others(const char *filename, + const char *varname, + char *pathname) +{ + char *cp = NULL; + + *pathname = '\0'; + + if ( filename[0] == DIR_SEPARATOR[0]) + { + strcpy(pathname, filename); + return; + } + + cp = getenv(varname); + if (cp == NULL) + { + /* environment Variable not defined. */ + return; + } + + while (*cp) + { + char *concat = NULL; + *pathname = '\0'; + concat = pathname; + /* skip PATH_SEPARATOR[0] and empty entries */ + while ( (*cp) && (*cp == PATH_SEPARATOR[0]) ) + { + cp++; + } + + /* copy path */ + while ( (*cp) && (*cp != PATH_SEPARATOR[0]) ) + { + *concat = *cp; + cp++; + concat++; + } + + if ( concat == pathname ) + { + /* filename not found */ + *pathname = '\0'; + return; + } + + if ( *(concat - 1) != DIR_SEPARATOR[0] ) + { + /* add directory separator */ + *concat = DIR_SEPARATOR[0]; + concat++; + } + + /* concatate path & filename */ + strcpy(concat, filename); + + /* file exists ? */ + if (FileExist(pathname)) + { + // file found + return; + } + } + + /* file not found */ + *pathname = '\0'; +} +#endif +/*--------------------------------------------------------------------------*/ +char *searchEnv(const char *name, const char *env_var) +{ + char *buffer = NULL; + char fullpath[PATH_MAX]; + + strcpy(fullpath, ""); + +#if _MSC_VER + { + wchar_t *wname = NULL; + wchar_t *wenv_var = NULL; + wchar_t wfullpath[PATH_MAX]; + + wname = to_wide_string((char*)name); + wenv_var = to_wide_string((char*)env_var); + + wcscpy(wfullpath, L""); + + _wsearchenv(wname, wenv_var, wfullpath); + + if (wcslen(wfullpath) > 0) + { + buffer = wide_string_to_UTF8(wfullpath); + } + + FREE(wname); + FREE(wenv_var); + } +#else + searchenv_others(name, env_var, fullpath); + if (strlen(fullpath) > 0) + { + buffer = strdup(fullpath); + } +#endif + return buffer; +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/io/src/c/getpidc.c b/modules/io/src/c/getpidc.c new file mode 100755 index 000000000..80d16c5c7 --- /dev/null +++ b/modules/io/src/c/getpidc.c @@ -0,0 +1,32 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - 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 + * + */ + +#ifdef _MSC_VER +#include <Windows.h> +#else +#include <stdlib.h> +#include <sys/types.h> +#include <unistd.h> +#endif +#include "getpidc.h" +/*--------------------------------------------------------------------------*/ +int C2F(getpidc)(int *id1) +{ +#if _MSC_VER + *id1 = GetCurrentProcessId(); +#else + *id1 = getpid(); +#endif + + return(0) ; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/src/c/getpidc.h b/modules/io/src/c/getpidc.h new file mode 100755 index 000000000..2d266c0ea --- /dev/null +++ b/modules/io/src/c/getpidc.h @@ -0,0 +1,25 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - Sylvestre LEDRU + * + * 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 __GETPIDC_H__ +#define __GETPIDC_H__ + +#include "machine.h" +/** +* Retrieve the pid (process id) +* @param[out] id1 the id of the process +*/ +int C2F(getpidc)(int *id1); + + +#endif /* __GETPIDC_H__ */ + diff --git a/modules/io/src/c/io.rc b/modules/io/src/c/io.rc new file mode 100755 index 000000000..539729636 --- /dev/null +++ b/modules/io/src/c/io.rc @@ -0,0 +1,96 @@ +// 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 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040c04b0" + BEGIN + VALUE "FileDescription", "io module" + VALUE "FileVersion", "5, 5, 2, 0" + VALUE "InternalName", "io module" + VALUE "LegalCopyright", "Copyright (C) 2017" + VALUE "OriginalFilename", "io.dll" + VALUE "ProductName", "io module" + 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/io/src/c/io.vcxproj b/modules/io/src/c/io.vcxproj new file mode 100755 index 000000000..30b2aac59 --- /dev/null +++ b/modules/io/src/c/io.vcxproj @@ -0,0 +1,274 @@ +<?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>{80C0F142-184B-4E08-A8EE-5E71437CF904}</ProjectGuid> + <RootNamespace>io</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;../../../localization/includes;../../../api_scilab/includes;../../../core/includes;../../../output_stream/includes;../../../fileio/includes;../../../windows_tools/includes;../../../windows_tools/src/c/scilab_windows;../../../../libs/intl;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;IO_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <PreLinkEvent> + <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)io_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)io_f.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> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;io_f.lib;scilab_windows.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>.;../../includes;../../../localization/includes;../../../api_scilab/includes;../../../core/includes;../../../output_stream/includes;../../../fileio/includes;../../../windows_tools/includes;../../../windows_tools/src/c/scilab_windows;../../../../libs/intl;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;IO_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <PreLinkEvent> + <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)io_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)io_f.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> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;io_f.lib;scilab_windows.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>.;../../includes;../../../localization/includes;../../../api_scilab/includes;../../../core/includes;../../../output_stream/includes;../../../fileio/includes;../../../windows_tools/includes;../../../windows_tools/src/c/scilab_windows;../../../../libs/intl;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;IO_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreaded</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + </ClCompile> + <PreLinkEvent> + <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)io_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)io_f.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> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;io_f.lib;scilab_windows.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <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> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>.;../../includes;../../../localization/includes;../../../api_scilab/includes;../../../core/includes;../../../output_stream/includes;../../../fileio/includes;../../../windows_tools/includes;../../../windows_tools/src/c/scilab_windows;../../../../libs/intl;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;IO_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreaded</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + </ClCompile> + <PreLinkEvent> + <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)io_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)io_f.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> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;io_f.lib;scilab_windows.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <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> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="DllmainIo.c" /> + <ClCompile Include="getenvc.c" /> + <ClCompile Include="getpidc.c" /> + <ClCompile Include="..\..\sci_gateway\c\gw_io.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_file.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_getenv.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_getio.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_getpid.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_host.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_load.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_read.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_read4b.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_readb.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_save.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_setenv.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_unix.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_write.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_write4b.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_writeb.c" /> + <ClCompile Include="setenvc.c" /> + <ClCompile Include="systemc.c" /> + <ClCompile Include="v2cuniterror.c" /> + </ItemGroup> + <ItemGroup> + <ClInclude Include="..\..\includes\dynlib_io.h" /> + <ClInclude Include="..\..\includes\getenvc.h" /> + <ClInclude Include="getpidc.h" /> + <ClInclude Include="..\..\includes\gw_io.h" /> + <ClInclude Include="..\..\includes\setenvc.h" /> + <ClInclude Include="systemc.h" /> + <ClInclude Include="v2cuniterror.h" /> + </ItemGroup> + <ItemGroup> + <None Include="..\..\locales\io.pot" /> + <None Include="io_f_Import.def" /> + <None Include="core_import.def" /> + <None Include="Scilab_Windows_Import.def" /> + <None Include="..\..\io.iss" /> + <None Include="..\..\sci_gateway\io_gateway.xml" /> + <None Include="..\..\Makefile.am" /> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="io.rc" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\..\..\tools\Dumpexts\Dumpexts.vcxproj"> + <Project>{3170e4c2-1173-4264-a222-7ee8ccb3ddf7}</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="..\..\..\fileio\fileio.vcxproj"> + <Project>{4fc72d4a-80ee-4b1a-8724-0201c1a35621}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\..\..\localization\src\localization.vcxproj"> + <Project>{ecffeb0c-1eda-45ee-9a10-b18143852e17}</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> + <ProjectReference Include="..\..\..\tclsci\tclsci.vcxproj"> + <Project>{c456d5b8-8a32-496a-a2ee-164b0d734126}</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/io/src/c/io.vcxproj.filters b/modules/io/src/c/io.vcxproj.filters new file mode 100755 index 000000000..c08daad12 --- /dev/null +++ b/modules/io/src/c/io.vcxproj.filters @@ -0,0 +1,138 @@ +<?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>{6e490b15-93d6-4d7c-a33c-5d4a630d6338}</UniqueIdentifier> + <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{8b7962c1-93d3-4748-ac8a-621ac41036db}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl</Extensions> + </Filter> + <Filter Include="localization"> + <UniqueIdentifier>{62709d73-73da-4395-afd0-46784f961fca}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies"> + <UniqueIdentifier>{dbf58b7f-af52-47c7-ab58-e884855b6425}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies\Imports"> + <UniqueIdentifier>{36153962-1001-4332-96ce-886892d5a839}</UniqueIdentifier> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{72afcca3-4d4b-4dcb-b214-2f19acf56414}</UniqueIdentifier> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="DllmainIo.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="getenvc.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="getpidc.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\gw_io.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_file.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_getenv.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_getio.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_getpid.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_host.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_load.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_read.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_read4b.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_readb.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_save.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_setenv.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_unix.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_write.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_write4b.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_writeb.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="setenvc.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="systemc.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="v2cuniterror.c"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <ClInclude Include="..\..\includes\dynlib_io.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\getenvc.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="getpidc.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\gw_io.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\setenvc.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="systemc.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="v2cuniterror.h"> + <Filter>Header Files</Filter> + </ClInclude> + </ItemGroup> + <ItemGroup> + <None Include="io_f_Import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <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="..\..\io.iss" /> + <None Include="..\..\sci_gateway\io_gateway.xml" /> + <None Include="..\..\Makefile.am" /> + <None Include="..\..\locales\io.pot"> + <Filter>localization</Filter> + </None> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="io.rc"> + <Filter>Resource Files</Filter> + </ResourceCompile> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/io/src/c/io_f_Import.def b/modules/io/src/c/io_f_Import.def new file mode 100755 index 000000000..115a3e3ed --- /dev/null +++ b/modules/io/src/c/io_f_Import.def @@ -0,0 +1,17 @@ +LIBRARY io_f.dll + + +EXPORTS +; --------------------------------------- +; io_f +; --------------------------------------- + +intsave_ +intfile_ +intload_ +intread_ +intread4b_ +intreadb_ +intwrite_ +intwrite4b_ +intwritb_ diff --git a/modules/io/src/c/libsciio_algo_la-getenvc.lo b/modules/io/src/c/libsciio_algo_la-getenvc.lo new file mode 100755 index 000000000..40f0ca3b9 --- /dev/null +++ b/modules/io/src/c/libsciio_algo_la-getenvc.lo @@ -0,0 +1,12 @@ +# src/c/libsciio_algo_la-getenvc.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/libsciio_algo_la-getenvc.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/src/c/libsciio_algo_la-getpidc.lo b/modules/io/src/c/libsciio_algo_la-getpidc.lo new file mode 100755 index 000000000..8b5082878 --- /dev/null +++ b/modules/io/src/c/libsciio_algo_la-getpidc.lo @@ -0,0 +1,12 @@ +# src/c/libsciio_algo_la-getpidc.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/libsciio_algo_la-getpidc.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/src/c/libsciio_algo_la-setenvc.lo b/modules/io/src/c/libsciio_algo_la-setenvc.lo new file mode 100755 index 000000000..7e036890a --- /dev/null +++ b/modules/io/src/c/libsciio_algo_la-setenvc.lo @@ -0,0 +1,12 @@ +# src/c/libsciio_algo_la-setenvc.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/libsciio_algo_la-setenvc.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/src/c/libsciio_algo_la-systemc.lo b/modules/io/src/c/libsciio_algo_la-systemc.lo new file mode 100755 index 000000000..71dca35eb --- /dev/null +++ b/modules/io/src/c/libsciio_algo_la-systemc.lo @@ -0,0 +1,12 @@ +# src/c/libsciio_algo_la-systemc.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/libsciio_algo_la-systemc.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/src/c/libsciio_algo_la-v2cuniterror.lo b/modules/io/src/c/libsciio_algo_la-v2cuniterror.lo new file mode 100755 index 000000000..d1671d93c --- /dev/null +++ b/modules/io/src/c/libsciio_algo_la-v2cuniterror.lo @@ -0,0 +1,12 @@ +# src/c/libsciio_algo_la-v2cuniterror.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/libsciio_algo_la-v2cuniterror.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/src/c/setenvc.c b/modules/io/src/c/setenvc.c new file mode 100755 index 000000000..89326eca0 --- /dev/null +++ b/modules/io/src/c/setenvc.c @@ -0,0 +1,68 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2005 - INRIA - 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 +* +*/ + +#ifdef _MSC_VER +#include <windows.h> +#endif +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include "setenvc.h" +#include "../../../core/src/c/dynamic_tclsci.h" +#include "MALLOC.h" /* MALLOC */ +#include "charEncoding.h" +/*--------------------------------------------------------------------------*/ +BOOL setenvc(const char *stringIn, const char *valueIn) +{ + BOOL ret = TRUE; + int len_env = 0; + wchar_t* env; +#ifdef _MSC_VER + { + wchar_t* wstringIn = to_wide_string(stringIn); + wchar_t* wvalueIn = to_wide_string(valueIn); + ret = SetEnvironmentVariableW(wstringIn, wvalueIn); + FREE(wstringIn); + FREE(wvalueIn); + } +#else + /* linux and Mac OS X */ + /* setenv() function is strongly preferred to putenv() */ + /* http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/setenv.3.html */ + +#ifndef _MAX_ENV +#define _MAX_ENV 32767 +#endif + + len_env = (int)(strlen(stringIn) + strlen(valueIn) + 1); + if (len_env < _MAX_ENV) + { + if ( setenv(stringIn, valueIn, 1) ) + { + ret = FALSE; + } + } + else + { + ret = FALSE; + } + +#endif + + if (ret) + { + dynamic_setenvtcl(stringIn, valueIn); + } + + return ret; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/src/c/systemc.c b/modules/io/src/c/systemc.c new file mode 100755 index 000000000..be46f33da --- /dev/null +++ b/modules/io/src/c/systemc.c @@ -0,0 +1,37 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2005 - INRIA - Allan CORNET +* 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 +* +*/ + +/*--------------------------------------------------------------------------*/ +/* Interface with system C function */ +/*--------------------------------------------------------------------------*/ +#include <stdio.h> +#include <stdlib.h> +#ifdef _MSC_VER +#include "spawncommand.h" +#else +#include <sys/wait.h> +#endif +#include "systemc.h" +/*--------------------------------------------------------------------------*/ +int C2F(systemc)(char *command, int *stat) +{ +#ifdef _MSC_VER + *stat = CallWindowsShell(command); +#else + int status = system(command); + /* provide exit value of the child */ + *stat = WEXITSTATUS(status); +#endif + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/src/c/systemc.h b/modules/io/src/c/systemc.h new file mode 100755 index 000000000..1bd025674 --- /dev/null +++ b/modules/io/src/c/systemc.h @@ -0,0 +1,25 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - Sylvestre LEDRU + * + * 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 __SYSTEMC_H__ +#define __SYSTEMC_H__ + +#include "machine.h" /* C2F */ + +/** + * Execute a command by the system + * @param[in] command the command + * @param[out] the status of the operation + */ + +int C2F(systemc)(char *command, int *stat); + +#endif diff --git a/modules/io/src/c/v2cuniterror.c b/modules/io/src/c/v2cuniterror.c new file mode 100755 index 000000000..42943829f --- /dev/null +++ b/modules/io/src/c/v2cuniterror.c @@ -0,0 +1,65 @@ +/* +* 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 +* +*/ +/*--------------------------------------------------------------------------*/ +#include "localization.h" +#include "v2cuniterror.h" +#include "Scierror.h" +#include "FileExist.h" +#include "isdir.h" +/*--------------------------------------------------------------------------*/ +int C2F(v2cuniterror)(int *_errorcode, char *_filename, + unsigned long _length_filename) +{ + switch (*_errorcode) + { + case 66: + { + Scierror(*_errorcode, _("Too many files opened!\n")); + } + break; + + case 240: + { + if (FileExist(_filename)) + { + Scierror(*_errorcode, _("File \"%s\" already exists.\n"), _filename); + } + else + { + Scierror(*_errorcode, _("\"%s\" directory write access denied.\n"), _filename); + } + } + break; + + case 241: + { + if (!FileExist(_filename)) + { + Scierror(*_errorcode, _("File \"%s\" does not exist.\n"), _filename); + } + else + { + Scierror(*_errorcode, _("File \"%s\" read access denied.\n"), _filename); + } + } + break; + + default: + { + Scierror(*_errorcode, + _("unmanaged error by v2cunit.\n")); + } + break; + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/io/src/c/v2cuniterror.h b/modules/io/src/c/v2cuniterror.h new file mode 100755 index 000000000..7dad20e37 --- /dev/null +++ b/modules/io/src/c/v2cuniterror.h @@ -0,0 +1,33 @@ +/* +* 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 +* +*/ +/*--------------------------------------------------------------------------*/ +#ifndef __V2CUNITERROR_H__ +#define __V2CUNITERROR_H__ + +#include "machine.h" +#include "dynlib_io.h" + +/** +* error message for v2cunit subroutine fortran +* @param[in] _errorcode error code +* @param[in] _filename filename used by v2cunit +* @param[in] _length_filename length of _filename (fortran) +* @return 0 +*/ + +/* !!! this function must be used ONLY by v2cunit */ + +IO_IMPEXP int C2F(v2cuniterror)(int *_errorcode, char *_filename, + unsigned long _length_filename); + +#endif /* __V2CUNITERROR_H__ */ +/*--------------------------------------------------------------------------*/
\ No newline at end of file diff --git a/modules/io/src/fortran/.deps/.dirstamp b/modules/io/src/fortran/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/io/src/fortran/.deps/.dirstamp diff --git a/modules/io/src/fortran/.dirstamp b/modules/io/src/fortran/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/io/src/fortran/.dirstamp diff --git a/modules/io/src/fortran/.libs/newsave.o b/modules/io/src/fortran/.libs/newsave.o Binary files differnew file mode 100755 index 000000000..2ea949301 --- /dev/null +++ b/modules/io/src/fortran/.libs/newsave.o diff --git a/modules/io/src/fortran/.libs/v2cunit.o b/modules/io/src/fortran/.libs/v2cunit.o Binary files differnew file mode 100755 index 000000000..db6c646a5 --- /dev/null +++ b/modules/io/src/fortran/.libs/v2cunit.o diff --git a/modules/io/src/fortran/.libs/v2unit.o b/modules/io/src/fortran/.libs/v2unit.o Binary files differnew file mode 100755 index 000000000..e9e34ff7f --- /dev/null +++ b/modules/io/src/fortran/.libs/v2unit.o diff --git a/modules/io/src/fortran/Core_f_Import.def b/modules/io/src/fortran/Core_f_Import.def new file mode 100755 index 000000000..1fccdaa41 --- /dev/null +++ b/modules/io/src/fortran/Core_f_Import.def @@ -0,0 +1,20 @@ + LIBRARY core_f.dll + + +EXPORTS +; +;core_f +; +basin_ +clunit_ +copyvar_ +dbasin_ +funnam_ +ptover_ +putid_ +stackp_ + + + + + diff --git a/modules/io/src/fortran/Elementary_functions_Import.def b/modules/io/src/fortran/Elementary_functions_Import.def new file mode 100755 index 000000000..81f59eee7 --- /dev/null +++ b/modules/io/src/fortran/Elementary_functions_Import.def @@ -0,0 +1,8 @@ + LIBRARY elementary_functions.dll + + +EXPORTS +; +;elementary_functions +unsfdcopy_ +rea2db_
\ No newline at end of file diff --git a/modules/io/src/fortran/Elementary_functions_f_Import.def b/modules/io/src/fortran/Elementary_functions_f_Import.def new file mode 100755 index 000000000..d4d108d72 --- /dev/null +++ b/modules/io/src/fortran/Elementary_functions_f_Import.def @@ -0,0 +1,9 @@ + LIBRARY elementary_functions_f.dll + + +EXPORTS +; +;elementary_functions_f +entier_ +lnblnk_ +mtran_
\ No newline at end of file diff --git a/modules/io/src/fortran/String_Import.def b/modules/io/src/fortran/String_Import.def new file mode 100755 index 000000000..bd09a235d --- /dev/null +++ b/modules/io/src/fortran/String_Import.def @@ -0,0 +1,5 @@ +LIBRARY string.dll + + +EXPORTS +cvstr_
\ No newline at end of file diff --git a/modules/io/src/fortran/core_Import.def b/modules/io/src/fortran/core_Import.def new file mode 100755 index 000000000..bf836d535 --- /dev/null +++ b/modules/io/src/fortran/core_Import.def @@ -0,0 +1,31 @@ + LIBRARY core.dll + + +EXPORTS +; +;core +; +com_ +vstk_ +stack_ +iop_ +cha1_ +recu_ +errgst_ +getscalar_ +eqid_ +cremat_ +getendian_ +namstr_ +isanan_ +returnananfortran_ +; +; explicit imports (COMMON) to fix warning LNK4049: locally defined symbol +; +adre_ +intersci_ +; + + + + diff --git a/modules/io/src/fortran/fileio_Import.def b/modules/io/src/fortran/fileio_Import.def new file mode 100755 index 000000000..a8677b494 --- /dev/null +++ b/modules/io/src/fortran/fileio_Import.def @@ -0,0 +1,17 @@ + + LIBRARY fileio.dll + + +EXPORTS +; +;fileio +; +cluni0_ +mopen_ +mputnc_ +mtell_ +mgetnc_ +mclose_ +mseek_ +getfiletype_ +getfileinfo_
\ No newline at end of file diff --git a/modules/io/src/fortran/integer_f_Import.def b/modules/io/src/fortran/integer_f_Import.def new file mode 100755 index 000000000..031fb2981 --- /dev/null +++ b/modules/io/src/fortran/integer_f_Import.def @@ -0,0 +1,8 @@ + LIBRARY integer_f.dll + + +EXPORTS +; +;integer_f +; +memused_
\ No newline at end of file diff --git a/modules/io/src/fortran/io_Import.def b/modules/io/src/fortran/io_Import.def new file mode 100755 index 000000000..a00f7f693 --- /dev/null +++ b/modules/io/src/fortran/io_Import.def @@ -0,0 +1,5 @@ +LIBRARY io.dll + + +EXPORTS +v2cuniterror_
\ No newline at end of file diff --git a/modules/io/src/fortran/io_f.rc b/modules/io/src/fortran/io_f.rc new file mode 100755 index 000000000..ce267a0e1 --- /dev/null +++ b/modules/io/src/fortran/io_f.rc @@ -0,0 +1,96 @@ +// 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 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040c04b0" + BEGIN + VALUE "FileDescription", "io_f module" + VALUE "FileVersion", "5, 5, 2, 0" + VALUE "InternalName", "io_f module" + VALUE "LegalCopyright", "Copyright (C) 2017" + VALUE "OriginalFilename", "io_f.dll" + VALUE "ProductName", "io_f module" + 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/io/src/fortran/io_f.vfproj b/modules/io/src/fortran/io_f.vfproj new file mode 100755 index 000000000..e1cc179da --- /dev/null +++ b/modules/io/src/fortran/io_f.vfproj @@ -0,0 +1,146 @@ +<?xml version="1.0" encoding="UTF-8"?> +<VisualStudioProject ProjectType="typeDynamicLibrary" ProjectCreator="Intel Fortran" Keyword="Dll" Version="11.0" ProjectIdGuid="{C2EDD447-BB60-41A1-973B-8213FCA9ECD4}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/></Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="$(SolutionDir)bin\" IntermediateDirectory="$(ProjectDir)$(ConfigurationName)" DeleteExtensionsOnClean="*.obj;*.mod;*.pdb;*.asm;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.dll;$(TargetPath)" ConfigurationType="typeDynamicLibrary"> + <Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" AdditionalIncludeDirectories="../../../core/includes" PreprocessorDefinitions="WIN32;FORDLL" AlternateParameterSyntax="false" F77RuntimeCompatibility="true" FPS4Libs="false" CallingConvention="callConventionCRef" ExternalNameUnderscore="true" ModulePath="$(INTDIR)/" ObjectFile="$(INTDIR)/" RuntimeLibrary="rtMultiThreadedDebugDLL"/> + <Tool Name="VFLinkerTool" OutputFile="$(SolutionDir)bin\$(ProjectName).dll" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" ModuleDefinitionFile="io_f.def" GenerateDebugInformation="true" SubSystem="subSystemWindows" ImportLibrary="$(SolutionDir)bin\$(ProjectName).lib" LinkDLL="true" AdditionalDependencies="core.lib output_stream_f.lib io.lib elementary_functions_f.lib elementary_functions.lib fileio.lib output_stream.lib string.lib integer_f.lib linpack_f.lib core_f.lib"/> + <Tool Name="VFResourceCompilerTool"/> + <Tool Name="VFMidlTool" SuppressStartupBanner="true" HeaderFileName="$(InputName).h" TypeLibraryName="$(IntDir)/$(InputName).tlb"/> + <Tool Name="VFCustomBuildTool"/> + <Tool Name="VFPreLinkEventTool" CommandLine="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).def >nul +del *.def >nul +cd .." Description="Build $(ProjectName).def"/> + <Tool Name="VFPreBuildEventTool" CommandLine="lib /DEF:"$(InputDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)io_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)io.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)output_stream_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)output_stream_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Fileio_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)fileio.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)String_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)integer_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)integer_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)core_f.lib" 1>NUL 2>NUL" Description="Build Dependencies"/> + <Tool Name="VFPostBuildEventTool"/> + <Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="$(SolutionDir)bin\" IntermediateDirectory="$(ProjectDir)$(ConfigurationName)" DeleteExtensionsOnClean="*.obj;*.mod;*.pdb;*.asm;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.dll;$(TargetPath)" ConfigurationType="typeDynamicLibrary"> + <Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" AdditionalIncludeDirectories="../../../core/includes" PreprocessorDefinitions="WIN32;FORDLL" AlternateParameterSyntax="false" F77RuntimeCompatibility="true" FPS4Libs="false" CallingConvention="callConventionCRef" ExternalNameUnderscore="true" ModulePath="$(INTDIR)/" ObjectFile="$(INTDIR)/" RuntimeLibrary="rtMultiThreadedDLL"/> + <Tool Name="VFLinkerTool" OutputFile="$(SolutionDir)bin\$(ProjectName).dll" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" ModuleDefinitionFile="io_f.def" SubSystem="subSystemWindows" ImportLibrary="$(SolutionDir)bin\$(ProjectName).lib" LinkDLL="true" AdditionalDependencies="core.lib output_stream_f.lib io.lib elementary_functions_f.lib elementary_functions.lib fileio.lib output_stream.lib string.lib integer_f.lib linpack_f.lib core_f.lib"/> + <Tool Name="VFResourceCompilerTool"/> + <Tool Name="VFMidlTool" SuppressStartupBanner="true" HeaderFileName="$(InputName).h" TypeLibraryName="$(IntDir)/$(InputName).tlb"/> + <Tool Name="VFCustomBuildTool"/> + <Tool Name="VFPreLinkEventTool" CommandLine="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).def >nul +del *.def >nul +cd .." Description="Build $(ProjectName).def"/> + <Tool Name="VFPreBuildEventTool" CommandLine="lib /DEF:"$(InputDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)io_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)io.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)output_stream_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)output_stream_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Fileio_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)fileio.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)String_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)integer_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)integer_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)core_f.lib" 1>NUL 2>NUL" Description="Build Dependencies"/> + <Tool Name="VFPostBuildEventTool"/> + <Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="$(SolutionDir)bin\" IntermediateDirectory="$(ProjectDir)$(ConfigurationName)" DeleteExtensionsOnClean="*.obj;*.mod;*.pdb;*.asm;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.dll;$(TargetPath)" ConfigurationType="typeDynamicLibrary"> + <Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" AdditionalIncludeDirectories="../../../core/includes" PreprocessorDefinitions="WIN32;FORDLL" AlternateParameterSyntax="false" F77RuntimeCompatibility="true" FPS4Libs="false" CallingConvention="callConventionCRef" ExternalNameUnderscore="true" ModulePath="$(INTDIR)/" ObjectFile="$(INTDIR)/" RuntimeLibrary="rtMultiThreadedDebugDLL"/> + <Tool Name="VFLinkerTool" OutputFile="$(SolutionDir)bin\$(ProjectName).dll" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" ModuleDefinitionFile="io_f.def" GenerateDebugInformation="true" SubSystem="subSystemWindows" ImportLibrary="$(SolutionDir)bin\$(ProjectName).lib" LinkDLL="true" AdditionalDependencies="core.lib output_stream_f.lib io.lib elementary_functions_f.lib elementary_functions.lib fileio.lib output_stream.lib string.lib integer_f.lib linpack_f.lib core_f.lib"/> + <Tool Name="VFResourceCompilerTool"/> + <Tool Name="VFMidlTool" SuppressStartupBanner="true" HeaderFileName="$(InputName).h" TypeLibraryName="$(IntDir)/$(InputName).tlb"/> + <Tool Name="VFCustomBuildTool"/> + <Tool Name="VFPreLinkEventTool" CommandLine="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).def >nul +del *.def >nul +cd .." Description="Build $(ProjectName).def"/> + <Tool Name="VFPreBuildEventTool" CommandLine="lib /DEF:"$(InputDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)io_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)io.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)output_stream_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)output_stream_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Fileio_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)fileio.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)String_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)integer_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)integer_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)core_f.lib" 1>NUL 2>NUL" Description="Build Dependencies"/> + <Tool Name="VFPostBuildEventTool"/> + <Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="$(SolutionDir)bin\" IntermediateDirectory="$(ProjectDir)$(ConfigurationName)" DeleteExtensionsOnClean="*.obj;*.mod;*.pdb;*.asm;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.dll;$(TargetPath)" ConfigurationType="typeDynamicLibrary"> + <Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" AdditionalIncludeDirectories="../../../core/includes" PreprocessorDefinitions="WIN32;FORDLL" AlternateParameterSyntax="false" F77RuntimeCompatibility="true" FPS4Libs="false" CallingConvention="callConventionCRef" ExternalNameUnderscore="true" ModulePath="$(INTDIR)/" ObjectFile="$(INTDIR)/" RuntimeLibrary="rtMultiThreadedDLL"/> + <Tool Name="VFLinkerTool" OutputFile="$(SolutionDir)bin\$(ProjectName).dll" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" ModuleDefinitionFile="io_f.def" SubSystem="subSystemWindows" ImportLibrary="$(SolutionDir)bin\$(ProjectName).lib" LinkDLL="true" AdditionalDependencies="core.lib output_stream_f.lib io.lib elementary_functions_f.lib elementary_functions.lib fileio.lib output_stream.lib string.lib integer_f.lib linpack_f.lib core_f.lib"/> + <Tool Name="VFResourceCompilerTool"/> + <Tool Name="VFMidlTool" SuppressStartupBanner="true" HeaderFileName="$(InputName).h" TypeLibraryName="$(IntDir)/$(InputName).tlb"/> + <Tool Name="VFCustomBuildTool"/> + <Tool Name="VFPreLinkEventTool" CommandLine="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).def >nul +del *.def >nul +cd .." Description="Build $(ProjectName).def"/> + <Tool Name="VFPreBuildEventTool" CommandLine="lib /DEF:"$(InputDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)io_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)io.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)output_stream_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)output_stream_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Fileio_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)fileio.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)Output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)String_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)integer_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)integer_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)core_f.lib" 1>NUL 2>NUL" Description="Build Dependencies"/> + <Tool Name="VFPostBuildEventTool"/> + <Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration></Configurations> + <Files> + <Filter Name="Header Files" Filter="fi;fd"/> + <Filter Name="Library Dependencies"> + <File RelativePath=".\Core_f_Import.def"/> + <File RelativePath=".\core_import.def"/> + <File RelativePath=".\Elementary_functions_f_Import.def"/> + <File RelativePath=".\Elementary_functions_Import.def"/> + <File RelativePath=".\fileio_Import.def"/> + <File RelativePath=".\integer_f_Import.def"/> + <File RelativePath=".\io_Import.def"/> + <File RelativePath=".\linpack_f_Import.def"/> + <File RelativePath=".\output_stream_f_Import.def"/> + <File RelativePath=".\output_stream_Import.def"/> + <File RelativePath=".\String_Import.def"/></Filter> + <Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"> + <File RelativePath=".\io_f.rc"/></Filter> + <Filter Name="Source Files" Filter="f90;for;f;fpp;ftn;def;odl;idl"> + <File RelativePath="..\..\sci_gateway\fortran\intfile.f"/> + <File RelativePath="..\..\sci_gateway\fortran\intread.f"> + <FileConfiguration Name="Release|x64"> + <Tool Name="VFFortranCompilerTool" Optimization="optimizeDisabled"/></FileConfiguration></File> + <File RelativePath="..\..\sci_gateway\fortran\intread4b.f"/> + <File RelativePath="..\..\sci_gateway\fortran\intreadb.f"/> + <File RelativePath="..\..\sci_gateway\fortran\intwritb.f"/> + <File RelativePath="..\..\sci_gateway\fortran\intwrite.f"/> + <File RelativePath="..\..\sci_gateway\fortran\intwrite4b.f"/> + <File RelativePath=".\newsave.f"/> + <File RelativePath=".\v2cunit.f"/> + <File RelativePath=".\v2unit.f"/></Filter> + <File RelativePath="..\..\sci_gateway\io_gateway.xml"/> + <File RelativePath="..\..\Makefile.am"/></Files> + <Globals/></VisualStudioProject> diff --git a/modules/io/src/fortran/io_f2c.vcxproj b/modules/io/src/fortran/io_f2c.vcxproj new file mode 100755 index 000000000..b494a04da --- /dev/null +++ b/modules/io/src/fortran/io_f2c.vcxproj @@ -0,0 +1,330 @@ +<?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"> + <ProjectName>io_f</ProjectName> + <ProjectGuid>{C2EDD447-BB60-41A1-973B-8213FCA9ECD4}</ProjectGuid> + <RootNamespace>io_f2c</RootNamespace> + <Keyword>Win32Proj</Keyword> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>Unicode</CharacterSet> + <WholeProgramOptimization>true</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>Unicode</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>Unicode</CharacterSet> + <WholeProgramOptimization>true</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>Unicode</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + <Import Project="..\..\..\..\Visual-Studio-settings\f2c.props" /> + </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'">true</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'">true</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'"> + <PreBuildEvent> + <Message>Build Dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)io_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)io.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)output_stream_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)output_stream_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Fileio_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)fileio.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)String_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)integer_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)integer_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core_f.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../libs/f2c;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;IO_F2C_EXPORTS;FORDLL;%(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).def >nul +del *.def >nul +cd .. +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;output_stream_f.lib;io.lib;elementary_functions_f.lib;elementary_functions.lib;fileio.lib;output_stream.lib;string.lib;linpack_f.lib;integer_f.lib;core_f.lib;../../../../bin/libf2c.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>io_f.def</ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <PreBuildEvent> + <Message>Build Dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)io_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)io.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)output_stream_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)output_stream_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Fileio_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)fileio.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)String_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)integer_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)integer_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core_f.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../libs/f2c;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;IO_F2C_EXPORTS;FORDLL;%(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).def >nul +del *.def >nul +cd .. +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;output_stream_f.lib;io.lib;elementary_functions_f.lib;elementary_functions.lib;fileio.lib;output_stream.lib;string.lib;linpack_f.lib;integer_f.lib;core_f.lib;../../../../bin/libf2c.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>io_f.def</ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <PreBuildEvent> + <Message>Build Dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)io_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)io.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)output_stream_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)output_stream_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Fileio_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)fileio.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)String_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)integer_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)integer_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core_f.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + <ClCompile> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>../../../../libs/f2c;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;IO_F2C_EXPORTS;FORDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <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).def >nul +del *.def >nul +cd .. +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;output_stream_f.lib;io.lib;elementary_functions_f.lib;elementary_functions.lib;fileio.lib;output_stream.lib;string.lib;linpack_f.lib;integer_f.lib;core_f.lib;../../../../bin/libf2c.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>io_f.def</ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <PreBuildEvent> + <Message>Build Dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)io_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)io.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)output_stream_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)output_stream_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Fileio_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)fileio.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)String_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)integer_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)integer_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core_f.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>../../../../libs/f2c;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;IO_F2C_EXPORTS;FORDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <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).def >nul +del *.def >nul +cd .. +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;output_stream_f.lib;io.lib;elementary_functions_f.lib;elementary_functions.lib;fileio.lib;output_stream.lib;string.lib;linpack_f.lib;integer_f.lib;core_f.lib;../../../../bin/libf2c.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>io_f.def</ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="..\..\sci_gateway\fortran\intfile.c" /> + <ClCompile Include="..\..\sci_gateway\fortran\intread.c" /> + <ClCompile Include="..\..\sci_gateway\fortran\intread4b.c" /> + <ClCompile Include="..\..\sci_gateway\fortran\intreadb.c" /> + <ClCompile Include="..\..\sci_gateway\fortran\intwritb.c" /> + <ClCompile Include="..\..\sci_gateway\fortran\intwrite.c"> + <CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">CompileAsC</CompileAs> + <CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">CompileAsC</CompileAs> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\fortran\intwrite4b.c" /> + <ClCompile Include="newsave.c" /> + <ClCompile Include="v2cunit.c" /> + <ClCompile Include="v2unit.c" /> + </ItemGroup> + <ItemGroup> + <f2c_rule Include="..\..\sci_gateway\fortran\intfile.f" /> + <f2c_rule Include="..\..\sci_gateway\fortran\intread.f" /> + <f2c_rule Include="..\..\sci_gateway\fortran\intread4b.f" /> + <f2c_rule Include="..\..\sci_gateway\fortran\intreadb.f" /> + <f2c_rule Include="..\..\sci_gateway\fortran\intwritb.f" /> + <f2c_rule Include="..\..\sci_gateway\fortran\intwrite.f" /> + <f2c_rule Include="..\..\sci_gateway\fortran\intwrite4b.f" /> + <f2c_rule Include="newsave.f" /> + <f2c_rule Include="v2cunit.f" /> + <f2c_rule Include="v2unit.f" /> + </ItemGroup> + <ItemGroup> + <None Include="..\..\sci_gateway\io_gateway.xml" /> + <None Include="..\..\Makefile.am" /> + <None Include="Core_f_Import.def" /> + <None Include="Elementary_functions_f_Import.def" /> + <None Include="Elementary_functions_Import.def" /> + <None Include="fileio_Import.def" /> + <None Include="integer_f_Import.def" /> + <None Include="io_Import.def" /> + <None Include="core_import.def" /> + <None Include="linpack_f_Import.def" /> + <None Include="output_stream_f_Import.def" /> + <None Include="output_stream_Import.def" /> + <None Include="String_Import.def" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\..\..\tools\Dumpexts\Dumpexts.vcxproj"> + <Project>{3170e4c2-1173-4264-a222-7ee8ccb3ddf7}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + <Import Project="..\..\..\..\Visual-Studio-settings\f2c.targets" /> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/io/src/fortran/io_f2c.vcxproj.filters b/modules/io/src/fortran/io_f2c.vcxproj.filters new file mode 100755 index 000000000..b8ba9630a --- /dev/null +++ b/modules/io/src/fortran/io_f2c.vcxproj.filters @@ -0,0 +1,124 @@ +<?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="Fortran files"> + <UniqueIdentifier>{32640072-6dde-43c7-bce7-aca043fc9c12}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies"> + <UniqueIdentifier>{7c98ca61-fefd-46ae-9a7d-e3e8bf012d07}</UniqueIdentifier> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="..\..\sci_gateway\fortran\intfile.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\fortran\intread.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\fortran\intread4b.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\fortran\intreadb.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\fortran\intwritb.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\fortran\intwrite.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\fortran\intwrite4b.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="newsave.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="v2cunit.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="v2unit.c"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <f2c_rule Include="..\..\sci_gateway\fortran\intfile.f"> + <Filter>Fortran files</Filter> + </f2c_rule> + <f2c_rule Include="..\..\sci_gateway\fortran\intread.f"> + <Filter>Fortran files</Filter> + </f2c_rule> + <f2c_rule Include="..\..\sci_gateway\fortran\intread4b.f"> + <Filter>Fortran files</Filter> + </f2c_rule> + <f2c_rule Include="..\..\sci_gateway\fortran\intreadb.f"> + <Filter>Fortran files</Filter> + </f2c_rule> + <f2c_rule Include="..\..\sci_gateway\fortran\intwritb.f"> + <Filter>Fortran files</Filter> + </f2c_rule> + <f2c_rule Include="..\..\sci_gateway\fortran\intwrite.f"> + <Filter>Fortran files</Filter> + </f2c_rule> + <f2c_rule Include="..\..\sci_gateway\fortran\intwrite4b.f"> + <Filter>Fortran files</Filter> + </f2c_rule> + <f2c_rule Include="newsave.f"> + <Filter>Fortran files</Filter> + </f2c_rule> + <f2c_rule Include="v2cunit.f"> + <Filter>Fortran files</Filter> + </f2c_rule> + <f2c_rule Include="v2unit.f"> + <Filter>Fortran files</Filter> + </f2c_rule> + </ItemGroup> + <ItemGroup> + <None Include="..\..\sci_gateway\io_gateway.xml" /> + <None Include="..\..\Makefile.am" /> + <None Include="Elementary_functions_f_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="Elementary_functions_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="fileio_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="io_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="core_import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="output_stream_f_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="output_stream_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="String_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="linpack_f_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="integer_f_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="Core_f_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/io/src/fortran/linpack_f_Import.def b/modules/io/src/fortran/linpack_f_Import.def new file mode 100755 index 000000000..8bb641040 --- /dev/null +++ b/modules/io/src/fortran/linpack_f_Import.def @@ -0,0 +1,7 @@ + LIBRARY linpack_f.dll + + +EXPORTS +; +;linpack_f +icopy_
\ No newline at end of file diff --git a/modules/io/src/fortran/newsave.f b/modules/io/src/fortran/newsave.f new file mode 100755 index 000000000..facbb1091 --- /dev/null +++ b/modules/io/src/fortran/newsave.f @@ -0,0 +1,1635 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + + subroutine intsave + include 'stack.h' + logical opened,ptover,cremat + integer fd,vol,top0,bl(nsiz) + double precision res + logical eqid + integer iadr,sadr + data bl/nsiz*673720360/ +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + if(rstk(pt).eq.905) goto 24 + if(rhs.lt.1) then + call error(42) + return + endif + if(lhs.gt.1) then + call error(41) + return + endif + top0=top-rhs + + + call v2cunit(top0+1,'wb',fd,opened,ierr) + if(ierr.gt.0) return + if(ierr.lt.0) then +c file has been opened by fortran, oldsave (return a error) + call error(43) + return + endif + + if(rhs.eq.1) then +c . save all variables + if(bot.gt.bbot-1) goto 40 + kmin=bot + kmax=bbot-1 + else + kmin=top0+2 + kmax=top + endif + +c loop on variables to save + k=kmin-1 + 20 k=k+1 + il=iadr(lstk(k)) + vol=lstk(k+1)-lstk(k) + 21 continue + + if(eqid(idstk(1,k),bl)) then + err=k + call error(248) + if (.not.opened) call mclose (fd,res) + return + endif + call savevar(fd,idstk(1,k),il,vol,ierr) + if(ierr.ne.0.and.err.le.0.and.err1.lt.0) then + call error(263) + if (.not.opened) call mclose (fd,res) + return + endif + if(fun.ge.0) goto 25 +c overloaded save function + if ( ptover(1,psiz)) return + ilrec = iadr(lstk(top+1)) + err=sadr(ilrec+8)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + istk(ilrec) = lstk(top+1) + istk(ilrec+1) = fd + istk(ilrec+2) = kmin + istk(ilrec+3) = kmax + istk(ilrec+4) = k + istk(ilrec+5) = top0 + istk(ilrec+6) = vol + if(opened) then + istk(ilrec+7) = 1 + else + istk(ilrec+7) = 0 + endif + lstk(top+1)=sadr(ilrec+7) + rstk(pt)=905 + pstk(pt)=ilrec + ilv=-fun + vol=fin + call funnam(ids(1,pt+1),'save',ilv) + call copyvar(ilv,vol) +c create a variable with fd + top=top+1 + if(.not.cremat('save',top,0,1,1,lr,lc)) return + stk(lr)=fd + rhs=2 + fun=-1 + return +c *call* parse + 24 continue + ilrec=pstk(pt) + lstk(top+1)= istk(ilrec) + fd = istk(ilrec+1) + kmin = istk(ilrec+2) + kmax = istk(ilrec+3) + k = istk(ilrec+4) + top0 = istk(ilrec+5) + vol = istk(ilrec+6) + opened = (istk(ilrec+7).eq.1) + pt=pt-1 + if(rstk(pt).eq.911) goto 21 + + 25 if(k.lt.kmax) goto 20 + + + 40 if (.not.opened) then + call mclose (fd,res) + endif +c return a nul variable + top=top0+1 + il=iadr(lstk(top)) + istk(il)=0 + lstk(top+1)=lstk(top)+1 + return + end + + subroutine intload(id1,k1) +c Copyright INRIA +c Loads variables stored in a file. if id1 is a valid variable name +c (id1(1).ne.blank) and if this variable if loaded k1 ist set to its +c index in the stack +c + include 'stack.h' + integer id1(nsiz),k1 + logical opened,cremat,ptover,eqid + integer fd,id(nsiz),semi,blank,top0,endian,getendian,it,ssym + double precision res,offset + integer iadr,sadr + data semi/43/,blank/40/ +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + if (rstk(pt).eq.906) goto 24 + k1=0 +c + if(rhs.lt.1) then + call error(42) + return + endif + if(lhs.gt.1) then + call error(41) + return + endif + top0=top + top=top-rhs+1 + + call v2cunit(top,'rb',fd,opened,ierr) + if(ierr.gt.0) return + if(ierr.lt.0) then +c oldload (file opened by fortran returns a error) + top=top0 + k1=fin + call error(43) + return + endif +c test for compatibility + endian=getendian() + call mtell(fd,offset,ierr) + call mgetnc (fd,it,1,'il'//char(0),ierr) + if(endian.eq.1.and.it.eq.28.or. + $ endian.eq.0.and.it.eq.469762048) then +c . old mode (returns a error) + if(.not.opened) call mclose (fd,res) + k1=fin + call error(43) + return + else + call mseek(fd,offset,'set'//char(0),ierr) + endif + + + if(rhs.gt.1) then + ilt=iadr(lstk(top0+1)) + err=sadr(ilt+nsiz*rhs-1)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif +c . get table of requested variable names + do 01 i=1,rhs-1 + il=iadr(lstk(top+i)) + if(istk(il).lt.0) il=iadr(istk(il+1)) + if(istk(il).ne.10) then + err=i+1 + call error(55) + return + endif + lc=il+5+istk(il+1)*istk(il+2) + nc=min(nlgh,istk(il+5)-1) + call namstr(istk(ilt+(i-1)*nsiz),istk(lc),nc,0) + 01 continue + il=iadr(lstk(top)) + call icopy(nsiz*rhs,istk(ilt),1,istk(il),1) + lstk(top+1)=sadr(il+nsiz*rhs) + ilt=il + endif + + top=top+1 + +c load all variables stored in a file + kvar=0 + 10 continue + il=iadr(lstk(top)) + 21 call loadvar(fd,id,il,nn,ierr) + if(ierr.gt.0) return + if(ierr.lt.0) goto 50 + if(fun.ge.0) then + lstk(top+1)=sadr(il+nn) + goto 26 + endif +c overloaded save function + +c preserve context + if ( ptover(1,psiz)) return + rstk(pt)=0 + pstk(pt)=ilt + call putid(ids(1,pt),id) + if ( ptover(1,psiz)) return + rstk(pt)=906 + pstk(pt)=rhs + ids(1,pt)=kvar + ilv=-fun +c ilv points to the beginning of the variable to load +c store it into ids (used by the function called) + ids(2,pt)=ilv +c preserve variable type + ids(3,pt)=istk(ilv) +c set the end of the variable temporarily + lstk(top+1)=sadr(ilv) +c preserve value of top + ids(5,pt)=top + if(opened) then + ids(6,pt)=fd + else + ids(6,pt)=-fd + endif + +c form name of the function to call + call funnam(ids(1,pt+1),'load',ilv) +c create a variable with fd + top=top+1 + if(.not.cremat('load',top,0,1,1,lr,lc)) return + stk(lr)=fd + rhs=1 + fun=-1 + return +c *call* parse + 24 continue +c +c restore context + rhs=pstk(pt) + kvar=ids(1,pt) + if (ids(6,pt).gt.0) then + opened=.true. + fd=ids(6,pt) + else + opened=.false. + fd=-ids(6,pt) + endif + if(ids(5,pt).eq.top) then +c . load has been done by a primitive + nn1=ids(4,pt) + else +c . load has been done by a scilab function + nn1=iadr(lstk(top+1))-iadr(lstk(top)) + top=top-1 + endif + ilv=ids(2,pt) + istk(ilv)=ids(3,pt) + pt=pt-1 + ilt=pstk(pt) + call putid(id,ids(1,pt)) + pt=pt-1 + if(rstk(pt).eq.912) then +c . a sublist + ids(5,pt)=nn1 + goto 21 + else +c . a simple variable set the end + lstk(top+1)=sadr(ilv+nn1) + goto 26 + endif + 26 continue + if(rhs.gt.1) then +c . check if loaded variable is required + do 27 i=1,rhs-1 + if(eqid(id,istk(ilt+(i-1)*nsiz))) then +c . yes, remove it out of the table and save it + istk(ilt+(i-1)*nsiz)=0 +c . rewind the file + if(.not.opened) then + call mseek(fd,0.0,'set'//char(0),ierr) + endif + goto 30 + endif + 27 continue +c . no skip it + goto 10 + endif + + 30 ssym=sym + sym = semi + srhs=rhs + rhs = 0 + call stackp(id,1) + if (id1(1).ne.blank) then + if(eqid(id,id1)) k1=fin + endif + rhs=srhs + sym=ssym + kvar=kvar+1 + top = top + 1 + if(kvar.eq.rhs-1) goto 50 + goto 10 + +c close the file if necessary + 50 if (.not.opened) then + call mclose (fd,res) + endif + top=top-1 +c return a nul variable + il=iadr(lstk(top)) + istk(il)=0 + lstk(top+1)=lstk(top)+1 + return + end + + subroutine savevar(fd,id,il,vol,ierr) +c Copyright INRIA + include 'stack.h' +c + integer fd,id(nsiz),vol + integer iadr + character*3 fmti,fmtd +c +c + iadr(l)=l+l-1 +c sadr(l)=(l/2)+1 +c + + fmti='il'//char(0) + fmtd='dl'//char(0) +c + if(rstk(pt).eq.911) then + il1=il + if(istk(il1).lt.0) il1=iadr(istk(il1+1)) + call savelist(fd,il1,ierr) + return + endif + + il1=il + if(istk(il1).lt.0) il1=iadr(istk(il1+1)) + +c write id and type + call mputnc (fd,id,nsiz,fmti,ierr) + if(ierr.ne.0) return + call mputnc (fd,istk(il1),1,fmti,ierr) + if(ierr.ne.0) return + + if(istk(il1).eq.1) then + call savemat(fd,il1,ierr) + elseif(istk(il1).eq.2.or.istk(il1).eq.129) then + call savepol(fd,il1,ierr) + elseif(istk(il1).eq.4) then + call savebool(fd,il1,ierr) + elseif(istk(il1).eq.5) then + call savesparse(fd,il1,ierr) + elseif(istk(il1).eq.6) then + call savespb(fd,il1,ierr) + elseif(istk(il1).eq.7) then + call savemsp(fd,il1,ierr) + elseif(istk(il1).eq.8) then + call saveint(fd,il1,ierr) + elseif(istk(il1).eq.10) then + call savestr(fd,il1,ierr) + elseif(istk(il1).eq.11) then + call savefun(fd,il1,ierr) + elseif(istk(il1).eq.13) then + call savecfun(fd,il1,ierr) + elseif(istk(il1).eq.14) then + call savelib(fd,il1,ierr) + elseif(istk(il1).ge.15.and.istk(il1).le.17) then + 10 call savelist(fd,il1,ierr) + elseif(istk(il1).eq.128) then + call saveptr(fd,il1,ierr) + elseif(istk(il1).eq.130) then + call savefptr(fd,il1,ierr) + else +c . call an external function + fun=-il1 + fin=vol + endif + return + end + + subroutine loadvar(fd,id,il,nn,ierr) +c Copyright INRIA + include 'stack.h' +c + integer fd,id(nsiz) + character*3 fmti,fmtd +c +c + sadr(l)=(l/2)+1 +c + + fmti='il'//char(0) + fmtd='dl'//char(0) +c + if(rstk(pt).eq.912) then + call loadlist(fd,il,nn,ierr) + return + endif +c + + il1=il +c read id and type + call mgetnc (fd,id,nsiz,fmti,ierr) + if(ierr.ne.0) return + call mgetnc (fd,istk(il1),1,fmti,ierr) + if(ierr.ne.0) return + if(istk(il1).eq.1) then + call loadmat(fd,il1,nn,ierr) + elseif(istk(il1).eq.2.or.istk(il1).eq.129) then + call loadpol(fd,il1,nn,ierr) + elseif(istk(il1).eq.4) then + call loadbool(fd,il1,nn,ierr) + elseif(istk(il1).eq.5) then + call loadsparse(fd,il1,nn,ierr) + elseif(istk(il1).eq.6) then + call loadspb(fd,il1,nn,ierr) + elseif(istk(il1).eq.7) then + call loadmsp(fd,il1,nn,ierr) + elseif(istk(il1).eq.8) then + call loadint(fd,il1,nn,ierr) + elseif(istk(il1).eq.10) then + call loadstr(fd,il1,nn,ierr) + elseif(istk(il1).eq.11) then + call loadfun(fd,il1,nn,ierr) + elseif(istk(il1).eq.13) then + call loadcfun(fd,il1,nn,ierr) + elseif(istk(il1).eq.14) then + call loadlib(fd,il1,nn,ierr) + elseif(istk(il1).ge.15.and.istk(il1).le.17) then + call loadlist(fd,il1,nn,ierr) + elseif(istk(il1).eq.128) then + call loadptr(fd,il1,nn,ierr) + elseif(istk(il1).eq.130) then + call loadfptr(fd,il1,nn,ierr) + else + fun=-il1 + lstk(top+1)=sadr(il1) + endif + if(err.gt.0) ierr=1 + return + end + + subroutine savelist(fd,il,ierr) +c Copyright INRIA +c Save a matrix of numbers + include 'stack.h' +c + integer fd + logical ptover + integer iadr,sadr + character*3 fmti,fmtd +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtd='dl'//char(0) + if(rstk(pt).eq.911) then +c . manage recursion + n=ids(1,pt) + il=ids(2,pt) + i=ids(3,pt) + pt=pt-1 + l=sadr(il+n+3) + il1=iadr(l-1+istk(il+1+i)) + if(istk(il1).lt.0) il1=iadr(istk(il1+1)) + goto 20 + endif +c + 10 n=istk(il+1) +c write list header + call mputnc (fd,istk(il+1),n+2,fmti,ierr) + if(ierr.ne.0) return +c write the elements + l=sadr(il+n+3) + i=0 + 20 continue + i=i+1 + if(i.gt.n) goto 30 + if(istk(il+2+i)-istk(il+1+i).eq.0) goto 20 + il1=iadr(l-1+istk(il+1+i)) + if(istk(il1).lt.0) il1=iadr(istk(il1+1)) +c write type + call mputnc (fd,istk(il1),1,fmti,ierr) + if(ierr.ne.0) return + + if(istk(il1).eq.1) then + call savemat(fd,il1,ierr) + elseif(istk(il1).eq.2.or.istk(il1).eq.129) then + call savepol(fd,il1,ierr) + elseif(istk(il1).eq.4) then + call savebool(fd,il1,ierr) + elseif(istk(il1).eq.5) then + call savesparse(fd,il1,ierr) + elseif(istk(il1).eq.6) then + call savespb(fd,il1,ierr) + elseif(istk(il1).eq.7) then + call savemsp(fd,il1,ierr) + elseif(istk(il1).eq.8) then + call saveint(fd,il1,ierr) + elseif(istk(il1).eq.10) then + call savestr(fd,il1,ierr) + elseif(istk(il1).eq.11) then + call savefun(fd,il1,ierr) + elseif(istk(il1).eq.13) then + call savecfun(fd,il1,ierr) + elseif(istk(il1).eq.14) then + call savelib(fd,il1,ierr) + elseif(istk(il1).ge.15.and.istk(il1).le.17) then +c . a sublist + if(istk(il1).lt.0) il1=iadr(istk(il1+1)) + if (ptover(1,psiz)) return + rstk(pt)=408 + ids(1,pt)=n + ids(2,pt)=il + ids(3,pt)=i + il=il1 + goto 10 + elseif(istk(il1).eq.128) then + call saveptr(fd,il1,ierr) + elseif(istk(il1).eq.130) then + call savefptr(fd,il1,ierr) + else +c . call an external function + if (ptover(1,psiz)) return + rstk(pt)=911 + ids(1,pt)=n + ids(2,pt)=il + ids(3,pt)=i + + fun=-il1 + fin=istk(il+2+i)-istk(il+1+i) + return + endif + if(ierr.ne.0) return + goto 20 +c + 30 continue +c end of current list reached + if(rstk(pt).ne.408) goto 40 + n=ids(1,pt) + il=ids(2,pt) + i=ids(3,pt) + pt=pt-1 + l=sadr(il+n+3) + il1=iadr(l-1+istk(il+1+i)) + if(istk(il1).lt.0) il1=iadr(istk(il1+1)) + goto 20 + 40 continue +c finish + return + end + + subroutine loadlist(fd,il,nn,ierr) +c Copyright INRIA +c Save a matrix of numbers + include 'stack.h' +c + integer fd + logical ptover + integer iadr,sadr + character*3 fmti,fmtd +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtd='dl'//char(0) + ierr=0 +c + il1=il + if(rstk(pt).eq.912) then +c . manage recursion + n=ids(1,pt) + il=ids(2,pt) + i=ids(3,pt) + il0=ids(4,pt) + nne=ids(5,pt) + pt=pt-1 + l=sadr(il+n+3) + il1=iadr(lstk(top)) + istk(il+2+i)=istk(il+1+i)+lstk(top+1)-lstk(top) + top=top-1 + goto 20 + endif + + 10 il0=il +c read list header without type + err=sadr(il+3)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il+1),2,fmti,ierr) + if(ierr.ne.0) return + n=istk(il+1) + err=sadr(il+3+n)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il+3),n,fmti,ierr) + if(ierr.ne.0) return + il1=il+3+n +c read the elements + l=sadr(il1) + nne=0 + i=0 + 20 continue + i=i+1 + + if(i.gt.n) goto 30 + if(istk(il+2+i)-istk(il+1+i).eq.0) goto 20 + il1=iadr(l-1+istk(il+1+i)) +c read type + call mgetnc (fd,istk(il1),1,fmti,ierr) + if(ierr.ne.0) return + + if(istk(il1).eq.1) then + call loadmat(fd,il1,nne,ierr) + elseif(istk(il1).eq.2.or.istk(il1).eq.129) then + call loadpol(fd,il1,nne,ierr) + elseif(istk(il1).eq.4) then + call loadbool(fd,il1,nne,ierr) + elseif(istk(il1).eq.5) then + call loadsparse(fd,il1,nne,ierr) + elseif(istk(il1).eq.6) then + call loadspb(fd,il1,nne,ierr) + elseif(istk(il1).eq.7) then + call loadmsp(fd,il1,nne,ierr) + elseif(istk(il1).eq.8) then + call loadint(fd,il1,nne,ierr) + elseif(istk(il1).eq.10) then + call loadstr(fd,il1,nne,ierr) + elseif(istk(il1).eq.11) then + call loadfun(fd,il1,nne,ierr) + elseif(istk(il1).eq.13) then + call loadcfun(fd,il1,nne,ierr) + elseif(istk(il1).eq.14) then + call loadlib(fd,il1,nne,ierr) + elseif(istk(il1).ge.15.and.istk(il1).le.17) then +c . a sublist + if (ptover(1,psiz)) return + rstk(pt)=408 + ids(1,pt)=n + ids(2,pt)=il + ids(3,pt)=i + ids(4,pt)=il0 + il=il1 + goto 10 + elseif(istk(il1).eq.128) then + call loadptr(fd,il1,nne,ierr) + elseif(istk(il1).eq.130) then + call loadfptr(fd,il1,nne,ierr) + else +c . call an external function + if (ptover(1,psiz)) return + rstk(pt)=912 + ids(1,pt)=n + ids(2,pt)=il + ids(3,pt)=i + ids(4,pt)=il0 + lstk(top+1)=sadr(il1) + top=top+1 + lstk(top+1)=lstk(top) + fun=-il1 +c *call* parse + return + endif + istk(il+2+i)=sadr(il1+nne)-l+1 + if(err.gt.0) ierr=1 + if(ierr.ne.0) return + goto 20 +c + 30 continue +c end of current list reached + if(rstk(pt).ne.408) goto 40 + ll=sadr(il+n+3) + nne=iadr(ll-1+istk(il+2+n))-il +c + n=ids(1,pt) + il=ids(2,pt) + i=ids(3,pt) + il0=ids(4,pt) + pt=pt-1 + l=sadr(il+n+3) + goto 20 + + 40 continue +c finish + nn=il1+nne-il0 + il=il0 + return + end + + subroutine savemat(fd,il,ierr) +c Copyright INRIA +c Save a matrix of numbers + include 'stack.h' +c + integer fd + character*3 fmti,fmtd + integer sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtd='dl'//char(0) +c +c write matrix header type excluded + call mputnc (fd,istk(il+1),3,fmti,ierr) + if(ierr.ne.0) return +c write matrix elements + mn=istk(il+1)*istk(il+2)*(istk(il+3)+1) + l=sadr(il+4) + call mputnc(fd,istk(iadr(l)),mn,fmtd,ierr) + return + end + + subroutine loadmat(fd,il,n,ierr) +c Copyright INRIA +c Save a matrix of numbers + include 'stack.h' + integer fd + character*3 fmti,fmtd + integer sadr + + double precision dblNaN + + integer isanan + external isanan + +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + call returnananfortran(dblNaN) + + fmti='il'//char(0) + fmtd='dl'//char(0) + +c read matrix header without type + err=sadr(il+4)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il+1),3,fmti,ierr) + if(ierr.ne.0) return +c read matrix elements + mn=istk(il+1)*istk(il+2)*(istk(il+3)+1) + err=sadr(il+4)+mn-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + l=sadr(il+4) + call mgetnc(fd,istk(il+4),mn,fmtd,ierr) + +c convert all NaN to Signaling NaN + do 10 i = 0, mn-1 + if(isanan(stk(l+i)).eq.1) then + stk(l+i) = dblNaN + endif +10 continue + +c call mgetnc(fd,stk(l),mn,fmtd,ierr) + n=iadr(l+mn)-il +c n=4+2*mn + return + end + + subroutine savepol(fd,il,ierr) +c Copyright INRIA +c Save a matrix of polynomials + include 'stack.h' +c + integer fd + character*3 fmti,fmtd + integer sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtd='dl'//char(0) +c +c write matrix header without type + mn=istk(il+1)*istk(il+2) + call mputnc (fd,istk(il+1),8+mn,fmti,ierr) + if(ierr.ne.0) return +c write polynomials coefficients + mn1=(istk(il+8+mn)-1)*(istk(il+3)+1) + l=sadr(il+9+mn) + call mputnc(fd,istk(iadr(l)),mn1,fmtd,ierr) + return + end + + subroutine loadpol(fd,il,n,ierr) +c Copyright INRIA +c Load a matrix of polynomials + include 'stack.h' + integer fd + character*3 fmti,fmtd + integer sadr + double precision dblNaN + + integer isanan + external isanan + +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + call returnananfortran(dblNaN) + + fmti='il'//char(0) + fmtd='dl'//char(0) + +c read matrix header without type + err=sadr(il+7)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + + call mgetnc (fd,istk(il+1),7,fmti,ierr) + if(ierr.ne.0) return +c + mn=istk(il+1)*istk(il+2) + err=sadr(il+8+mn)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il+8),1+mn,fmti,ierr) + if(ierr.ne.0) return + +c read polynomials coefficients + mn1=(istk(il+8+mn)-1)*(istk(il+3)+1) + err=sadr(il+9+mn)+mn1-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + l=sadr(il+9+mn) + call mgetnc(fd,istk(iadr(l)),mn1,fmtd,ierr) + +c convert all NaN to Signaling NaN + do 10 i = 0, mn1-1 + if(isanan(stk(l+i)).eq.1) then + stk(l+i) = dblNaN + endif +10 continue + + n=iadr(l+mn1)-il +c n=9+mn+2*mn1 + return + end + + + subroutine savestr(fd,il,ierr) +c Copyright INRIA +c Save a matrix of strings + include 'stack.h' +c + integer fd + + character*3 fmti,fmtc +c +c iadr(l)=l+l-1 +c sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtc='c'//char(0) +c +c write matrix header without type + mn=istk(il+1)*istk(il+2) + call mputnc (fd,istk(il+1),4+mn,fmti,ierr) + if(ierr.ne.0) return +c write characters + mn1=istk(il+4+mn)-1 + call mputnc(fd,istk(il+5+mn),mn1,fmti,ierr) + return + end + + subroutine loadstr(fd,il,n,ierr) +c Copyright INRIA +c Load a matrix of strings + include 'stack.h' + integer fd + character*3 fmti + integer sadr +c +c iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) +c +c read matrix header without type + err=sadr(il+4)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il+1),3,fmti,ierr) + if(ierr.ne.0) return + + mn=istk(il+1)*istk(il+2) + err=sadr(il+5+mn)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il+4),mn+1,fmti,ierr) + if(ierr.ne.0) return + +c read characters + mn1=istk(il+4+mn)-1 + err=sadr(il+5+mn+mn1)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc(fd,istk(il+5+mn),mn1,fmti,ierr) + n=5+mn+mn1 + return + end + + subroutine savebool(fd,il,ierr) +c Copyright INRIA +c Save a matrix of boolean + include 'stack.h' +c + integer fd + character*3 fmti +c +c iadr(l)=l+l-1 +c sadr(l)=(l/2)+1 +c + fmti='il'//char(0) +c +c write matrix header without type + call mputnc (fd,istk(il+1),2,fmti,ierr) + if(ierr.ne.0) return +c write matrix elements + mn=istk(il+1)*istk(il+2) + call mputnc(fd,istk(il+3),mn,fmti,ierr) + return + end + + subroutine loadbool(fd,il,n,ierr) +c Copyright INRIA +c Load a matrix of boolean + include 'stack.h' + integer fd + character*3 fmti + integer sadr +c +c iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + +c read matrix header without type + err=sadr(il+3)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il+1),2,fmti,ierr) + if(ierr.ne.0) return + +c read matrix elements + mn=istk(il+1)*istk(il+2) + err=sadr(il+3+mn)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc(fd,istk(il+3),mn,fmti,ierr) + n=3+mn + return + end + + + subroutine savefun(fd,il,ierr) +c Copyright INRIA +c Save a function + include 'stack.h' +c + integer fd + character*3 fmti +c +c iadr(l)=l+l-1 +c sadr(l)=(l/2)+1 +c + fmti='il'//char(0) +c +c write function header without type + il1=il + nout=istk(il1+1) + il1=il1+1+nout*nsiz + nin=istk(il1+1) + il1=il1+1+nin*nsiz + n=istk(il1+1) + call mputnc (fd,istk(il+1),3+(nout+nin)*nsiz+n,fmti,ierr) + if(ierr.ne.0) return + return + end + + subroutine loadfun(fd,il,n,ierr) +c Copyright INRIA +c Load a function + include 'stack.h' +c + integer fd + character*3 fmti + integer sadr +c +c iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) +c +c read function without type + il1=il + err=sadr(il1+2)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il1+1),1,fmti,ierr) + if(ierr.ne.0) return + + nout=istk(il1+1) + il1=il1+2 + err=sadr(il1+nout*nsiz+1)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il1),nout*nsiz+1,fmti,ierr) + if(ierr.ne.0) return + + nin=istk(il1+nout*nsiz) + il1=il1+nout*nsiz+1 + err=sadr(il1+nin*nsiz+1)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il1),nin*nsiz+1,fmti,ierr) + if(ierr.ne.0) return + + n=istk(il1+nin*nsiz) + il1=il1+nin*nsiz+1 + err=sadr(il1+n)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il1),n,fmti,ierr) + if(ierr.ne.0) return + n=4+(nout+nin)*nsiz+n + return + end + + subroutine savecfun(fd,il,ierr) +c Copyright INRIA +c Save a compiled function + include 'stack.h' +c + integer fd + character*3 fmti +c +c iadr(l)=l+l-1 +c sadr(l)=(l/2)+1 +c + fmti='il'//char(0) +c +c write function header without type + il1=il + nout=istk(il1+1) + il1=il1+1+nout*nsiz + nin=istk(il1+1) + il1=il1+1+nin*nsiz + n=istk(il1+1) + call mputnc (fd,istk(il+1),3+(nout+nin)*nsiz+n,fmti,ierr) + if(ierr.ne.0) return + return + end + + subroutine loadcfun(fd,il,n,ierr) +c Copyright INRIA +c Load a compiled function + include 'stack.h' +c + integer fd + integer sadr + character*3 fmti +c +c iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) +c +c read function without type + il1=il + err=sadr(il1+2)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il1+1),1,fmti,ierr) + if(ierr.ne.0) return + + nout=istk(il1+1) + il1=il1+2 + err=sadr(il1+nout*nsiz+1)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il1),nout*nsiz+1,fmti,ierr) + if(ierr.ne.0) return + + nin=istk(il1+nout*nsiz) + il1=il1+nout*nsiz+1 + err=sadr(il1+nin*nsiz+1)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il1),nin*nsiz+1,fmti,ierr) + if(ierr.ne.0) return + + n=istk(il1+nin*nsiz) + il1=il1+nin*nsiz+1 + err=sadr(il1+n)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il1),n,fmti,ierr) + if(ierr.ne.0) return + n=4+(nout+nin)*nsiz+n + return + end + + + subroutine savesparse(fd,il,ierr) +c Copyright INRIA +c Save a sparse matrix of numbers + include 'stack.h' +c + integer fd + character*3 fmti,fmtd + integer sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtd='dl'//char(0) +c +c write matrix header type excluded + call mputnc (fd,istk(il+1),4,fmti,ierr) + if(ierr.ne.0) return + m=istk(il+1) + nel=istk(il+4) +c write matrix elements + call mputnc(fd,istk(il+5),m+nel,fmti,ierr) + if(ierr.ne.0) return + mn=nel*(istk(il+3)+1) + l=sadr(il+5+m+nel) + call mputnc(fd,istk(iadr(l)),mn,fmtd,ierr) + return + end + + subroutine loadsparse(fd,il,n,ierr) +c Copyright INRIA +c load a sparse matrix of numbers + include 'stack.h' + integer fd + character*3 fmti,fmtd + integer sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtd='dl'//char(0) + +c read matrix header without type + err=sadr(il+5)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il+1),4,fmti,ierr) + if(ierr.ne.0) return + + m=istk(il+1) + nel=istk(il+4) +c read matrix elements + il1=il+5 + err=sadr(il1+m+nel)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc(fd,istk(il1),m+nel,fmti,ierr) + if(ierr.ne.0) return + + il1=il1+m+nel + mn=nel*(istk(il+3)+1) + err=sadr(il1)+mn-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + l=sadr(il+5+m+nel) + call mgetnc(fd,istk(iadr(l)),mn,fmtd,ierr) + n=iadr(l+mn)-il +c n=5+m+nel+2*mn + return + end + + subroutine savespb(fd,il,ierr) +c Copyright INRIA +c Save a sparse matrix of boolean + include 'stack.h' +c + integer fd + character*3 fmti,fmtd +c + fmti='il'//char(0) + fmtd='dl'//char(0) +c +c write matrix header type excluded + call mputnc (fd,istk(il+1),4,fmti,ierr) + if(ierr.ne.0) return + m=istk(il+1) + nel=istk(il+4) +c write matrix elements + call mputnc(fd,istk(il+5),m+nel,fmti,ierr) + return + end + + subroutine loadspb(fd,il,n,ierr) +c Copyright INRIA +c Load a sparse matrix of boolean + include 'stack.h' + integer fd + character*3 fmti,fmtd + integer sadr + +c +c iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtd='dl'//char(0) + +c read matrix header without type + err=sadr(il+5)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il+1),4,fmti,ierr) + if(ierr.ne.0) return + + m=istk(il+1) + nel=istk(il+4) +c read matrix elements + err=sadr(il+5+m+nel)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc(fd,istk(il+5),m+nel,fmti,ierr) + n=5+m+nel + return + end + + subroutine savelib(fd,il,ierr) +c [14,n,codagedupath(n),nombre-de-nom,nclas+1 cases,suite des noms] +c Copyright INRIA +c Save a sparse matrix of numbers + include 'stack.h' +c + integer fd + character*3 fmti,fmtd + data nclas/29/ +c + fmti='il'//char(0) + fmtd='dl'//char(0) +c + np=istk(il+1) + nn=istk(il+2+np) + call mputnc (fd,istk(il+1),3+np+nclas+nn*nsiz,fmti,ierr) + return + end + + subroutine loadlib(fd,il,n,ierr) +c [14,n,codagedupath(n),nombre-de-nom,nclas+1 cases,suite des noms] +c Copyright INRIA +c Save a sparse matrix of numbers + include 'stack.h' +c + integer fd + character*3 fmti,fmtd + integer sadr + data nclas/29/ +c +c iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtd='dl'//char(0) +c + il1=il+1 + err=sadr(il1+1)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il1),1,fmti,ierr) + if(ierr.ne.0) return + + np=istk(il1) + il1=il1+1 + err=sadr(il1+np+1+nclas+1)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il1),np+1+nclas+1,fmti,ierr) + if(ierr.ne.0) return + + il1=il1+np+1+nclas+1 + nn=istk(il+2+np) + err=sadr(il1+nn*nsiz)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il1),nn*nsiz,fmti,ierr) + n=il1+nn*nsiz-il + return + end + + subroutine savemsp(fd,il,ierr) +c Copyright INRIA +c Save a sparse matrix of numbers + include 'stack.h' +c + integer fd + character*3 fmti,fmtd + integer sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtd='dl'//char(0) +c +c write matrix header type excluded + call mputnc (fd,istk(il+1),4,fmti,ierr) + if(ierr.ne.0) return + n=istk(il+2) + nel=istk(il+4) +c write matrix elements + call mputnc(fd,istk(il+5),n+nel+1,fmti,ierr) + if(ierr.ne.0) return + mn=nel*(istk(il+3)+1) + l=sadr(il+6+n+nel) + call mputnc(fd,istk(iadr(l)),mn,fmtd,ierr) + return + end + + subroutine loadmsp(fd,il,n,ierr) +c Copyright INRIA +c load a sparse matrix of numbers + include 'stack.h' + integer fd + character*3 fmti,fmtd + integer sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtd='dl'//char(0) + +c read matrix header without type + err=sadr(il+5)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + + call mgetnc (fd,istk(il+1),4,fmti,ierr) + if(ierr.ne.0) return + + n=istk(il+2) + nel=istk(il+4) +c read matrix elements + il1=il+5 + err=sadr(il1+n+nel)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc(fd,istk(il1),n+nel+1,fmti,ierr) + if(ierr.ne.0) return + + il1=il1+n+nel+1 + mn=nel*(istk(il+3)+1) + err=sadr(il1)+mn-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + l=sadr(il1) + call mgetnc(fd,istk(iadr(l)),mn,fmtd,ierr) + n=iadr(l+mn)-il +c n=5+n+nel+2*mn + return + end + + subroutine saveptr(fd,il,ierr) +c Copyright INRIA +c Save a pointer on sparse lu factorization + include 'stack.h' +c + integer fd + character*3 fmti,fmtd +c + fmti='il'//char(0) + fmtd='dl'//char(0) +c + buf='handle to sparse lu factors cannot be saved yet' +c call error(997) + ierr=997 + return + end + + subroutine loadptr(fd,il,n,ierr) +c Copyright INRIA +c Save a pointer on sparse lu factorization + include 'stack.h' + integer fd + character*3 fmti,fmtd + integer sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtd='dl'//char(0) + +c read matrix header without type + err=sadr(il+4)+1-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il+1),3,fmti,ierr) + if(ierr.ne.0) return +c read pointer + l=sadr(il+4) + call mgetnc(fd,istk(iadr(l)),1,fmtd,ierr) + n=iadr(l+1)-il +c n=4+2*1 + return + end + + subroutine savefptr(fd,il,ierr) +c Copyright INRIA +c Save a pointer on a primitive + include 'stack.h' +c + integer fd + character*3 fmti,fmtd +c + fmti='il'//char(0) + fmtd='dl'//char(0) + +c write matrix header type excluded + call mputnc (fd,istk(il+1),2+nsiz,fmti,ierr) + + end + + subroutine loadfptr(fd,il,n,ierr) +c Copyright INRIA +c load a pointer on a primitive + include 'stack.h' +c + integer fd + character*3 fmti,fmtd + integer sadr +c + sadr(l)=(l/2)+1 + + fmti='il'//char(0) + fmtd='dl'//char(0) + + err=sadr(il+3+nsiz)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il+1),2+nsiz,fmti,ierr) + if(ierr.ne.0) return + n=3+nsiz + end + + subroutine saveint(fd,il,ierr) +c Copyright INRIA +c Save a pointer on sparse lu factorization + include 'stack.h' +c + integer fd + character*3 fmti,fmtd + + fmti='il'//char(0) + fmtd='dl'//char(0) +c +c write header type excluded + call mputnc (fd,istk(il+1),3,fmti,ierr) + if(ierr.ne.0) return + mn=istk(il+1)*istk(il+2) + it=istk(il+3) + + if(it.eq.4) then + call mputnc(fd,istk(il+4),mn,fmti,ierr) + elseif(it.eq.2) then + call mputnc(fd,istk(il+4),mn,'sl'//char(0),ierr) + elseif(it.eq.1) then + call mputnc(fd,istk(il+4),mn,'c'//char(0),ierr) + elseif(it.eq.14) then + call mputnc(fd,istk(il+4),mn,'uil'//char(0),ierr) + elseif(it.eq.12) then + call mputnc(fd,istk(il+4),mn,'usl'//char(0),ierr) + elseif(it.eq.11) then + call mputnc(fd,istk(il+4),mn,'uc'//char(0),ierr) + endif + return + end + + subroutine loadint(fd,il,n,ierr) +c Copyright INRIA +c Save a pointer on sparse lu factorization + include 'stack.h' + integer fd + external memused + integer memused + character*3 fmti,fmtd + integer sadr +c + sadr(l)=(l/2)+1 +c + fmti='il'//char(0) + fmtd='dl'//char(0) + +c read matrix header without type + err=sadr(il+4)+1-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mgetnc (fd,istk(il+1),3,fmti,ierr) + if(ierr.ne.0) return + mn=istk(il+1)*istk(il+2) + it=istk(il+3) + err=sadr(il+4+memused(it,mn))-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + if(it.eq.4) then + call mgetnc(fd,istk(il+4),mn,fmti,ierr) + elseif(it.eq.2) then + call mgetnc(fd,istk(il+4),mn,'sl'//char(0),ierr) + elseif(it.eq.1) then + call mgetnc(fd,istk(il+4),mn,'c'//char(0),ierr) + elseif(it.eq.14) then + call mgetnc(fd,istk(il+4),mn,'uil'//char(0),ierr) + elseif(it.eq.12) then + call mgetnc(fd,istk(il+4),mn,'usl'//char(0),ierr) + elseif(it.eq.11) then + call mgetnc(fd,istk(il+4),mn,'uc'//char(0),ierr) + endif + n=4+memused(it,mn) + return + end + + diff --git a/modules/io/src/fortran/newsave.lo b/modules/io/src/fortran/newsave.lo new file mode 100755 index 000000000..443573c53 --- /dev/null +++ b/modules/io/src/fortran/newsave.lo @@ -0,0 +1,12 @@ +# src/fortran/newsave.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/newsave.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/src/fortran/output_stream_Import.def b/modules/io/src/fortran/output_stream_Import.def new file mode 100755 index 000000000..ccb9a60c4 --- /dev/null +++ b/modules/io/src/fortran/output_stream_Import.def @@ -0,0 +1,6 @@ +LIBRARY output_stream.dll + + +EXPORTS +basout_ +error_
\ No newline at end of file diff --git a/modules/io/src/fortran/output_stream_f_Import.def b/modules/io/src/fortran/output_stream_f_Import.def new file mode 100755 index 000000000..cceb40fcb --- /dev/null +++ b/modules/io/src/fortran/output_stream_f_Import.def @@ -0,0 +1,5 @@ +LIBRARY output_stream_f.dll + + +EXPORTS +fmttyp_
\ No newline at end of file diff --git a/modules/io/src/fortran/v2cunit.f b/modules/io/src/fortran/v2cunit.f new file mode 100755 index 000000000..edbec8e48 --- /dev/null +++ b/modules/io/src/fortran/v2cunit.f @@ -0,0 +1,99 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c Copyright (C) DIGITEO - 2010 - Allan CORNET +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + subroutine v2cunit(k,mode,fd,opened,ierr) +c given variable #k (scalar or string) and mode +c v2unit return a logical unit attached to corresponding file + + INCLUDE 'stack.h' +c + logical opened + integer fd + character*2 mode + double precision w + integer iadr,sadr +c + iadr(l) = l+l-1 + sadr(l) = (l/2)+1 + +c + ierr = 0 + il = iadr(lstk(k)) + if(istk(il).lt.0) il=iadr(istk(il+1)) + if (istk(il).eq.1) then + fd = int(stk(sadr(il+4))) + if (istk(il+1)*istk(il+2).ne.1.or.istk(il+3).ne.0.or. + $ fd .lt. 0) then + err = 1 + ierr = 1 + call error(36) + return + endif + call getfileinfo(fd,ifa,iswap,ltype,mod,buf,lb,info) + if(info.eq.1) then + err = 1 + ierr = 1 + call error(36) + elseif(info.eq.2) then + err = fd + ierr = 2 + call error(245) + return + elseif(info.eq.0.and.ltype.eq.1) then +c ierr=-1 line used for compatibility instead of error + ierr = -1 + opened = .true. +c call error(244) + return + endif + opened = .true. + elseif(istk(il).eq.10) then + if(istk(il+1)*istk(il+2).ne.1) then + err = 1 + ierr = 1 + call error(36) + return + endif + mn=istk(il+5)-1 + buf=' ' + call cvstr(mn,istk(il+5+istk(il+1)*istk(il+2)),buf,1) + + call cluni0(buf(1:mn), buf(mn+2:),mn1) + lunit = 0 + buf(mn+mn1+2:mn+mn1+2) = char(0) + l = lnblnk(mode) + call mopen(fd,buf(mn+2:),mode(1:l)//char(0),1,w,ierr) + + if(ierr.gt.0) then + if (ierr.eq.4) then +c INVALID_FILENAME + err = 241 + elseif(ierr.eq.2) then + if(mode(1:1).eq.'r') then + err = 241 + else + err = 240 + endif + elseif(ierr.eq.1) then + err = 66 + endif + + call v2cuniterror(err, buf(mn+2:)) + buf(mn+1:)=' ' + return + endif + + opened = .false. + else + err = 1 + ierr = 1 + call error(36) + return + endif + end diff --git a/modules/io/src/fortran/v2cunit.lo b/modules/io/src/fortran/v2cunit.lo new file mode 100755 index 000000000..bc95dc9bf --- /dev/null +++ b/modules/io/src/fortran/v2cunit.lo @@ -0,0 +1,12 @@ +# src/fortran/v2cunit.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/v2cunit.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/src/fortran/v2unit.f b/modules/io/src/fortran/v2unit.f new file mode 100755 index 000000000..75431361b --- /dev/null +++ b/modules/io/src/fortran/v2unit.f @@ -0,0 +1,75 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + subroutine v2unit(k,mode,lunit,opened,ierr) +c given variable #k (scalar or string) and mode +c v2unit return a logical unit attached to corresponding file + + INCLUDE 'stack.h' +c + logical opened + integer mode(2) + integer iadr,sadr +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + ierr=0 + il=iadr(lstk(k)) + if (istk(il).eq.1) then + lunit = int(stk(sadr(il+4))) + if (istk(il+1)*istk(il+2).ne.1.or.istk(il+3).ne.0.or. + $ lunit.lt.0) then + err=1 + ierr=1 + call error(36) + return + endif + call getfileinfo(lunit,ifa,iswap,ltype,mod,buf,lb,info) + if(info.eq.0.and.ltype.eq.2) then + call error(243) + return + endif + opened=.true. + elseif(istk(il).eq.10) then + if(istk(il+1)*istk(il+2).ne.1) then + err=1 + ierr=1 + call error(36) + return + endif + + + kk = abs(mode(1)) + ifor = kk / 100 + kk = kk - 100 *ifor + iacc = kk / 10 + if(mode(2).eq.0.and.iacc.eq.1) then + ierr=1 + call error(242) + return + endif + + mn=istk(il+5)-1 + call cvstr(mn,istk(il+5+istk(il+1)*istk(il+2)),buf,1) + lunit = 0 + call clunit(lunit,buf(1:mn),mode) + if(err.gt.0) then + ierr=1 + buf(mn+1:)=' ' + call error(err) + return + endif + opened=.false. + else + err=1 + ierr=1 + call error(36) + return + endif + end diff --git a/modules/io/src/fortran/v2unit.lo b/modules/io/src/fortran/v2unit.lo new file mode 100755 index 000000000..c9af25a9c --- /dev/null +++ b/modules/io/src/fortran/v2unit.lo @@ -0,0 +1,12 @@ +# src/fortran/v2unit.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/v2unit.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/io/src/fortran/writebuf.f b/modules/io/src/fortran/writebuf.f new file mode 100755 index 000000000..6879b15fb --- /dev/null +++ b/modules/io/src/fortran/writebuf.f @@ -0,0 +1,19 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) 2007 - INRIA - Allan CORNET +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +c ==================================== +c requires by f2c :( +c ==================================== + subroutine writebufio(buffer,line) + + character*(*) buffer + integer line + write(buffer(1:4),'(i4)') line + + end +c ==================================== diff --git a/modules/io/tests/nonreg_tests/bug_10606.dia.ref b/modules/io/tests/nonreg_tests/bug_10606.dia.ref new file mode 100755 index 000000000..51e2a67cf --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_10606.dia.ref @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Charlotte Hecquet +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 10606 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=10606 +// +// <-- Short Description --> +//[rep,stat,stderr]=unix_g("diff /etc/passwd /etc/group") +//Shows only +// stderr = +// [] +// stat = +// 1. +// rep = +if getos()=='Windows' +[rep,stat,stderr]=unix_g("fc "+SCI+"/CHANGES_5.3.X "+SCI+"/CHANGES_5.4.X"); +else +[rep,stat,stderr]=unix_g("diff "+SCI+"/CHANGES_5.3.X "+SCI+"/CHANGES_5.4.X"); +end +assert_checkfalse(rep == []); diff --git a/modules/io/tests/nonreg_tests/bug_10606.tst b/modules/io/tests/nonreg_tests/bug_10606.tst new file mode 100755 index 000000000..29af0d936 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_10606.tst @@ -0,0 +1,32 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Charlotte Hecquet +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 10606 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=10606 +// +// <-- Short Description --> +//[rep,stat,stderr]=unix_g("diff /etc/passwd /etc/group") + +//Shows only +// stderr = +// [] +// stat = +// 1. +// rep = + +if getos()=='Windows' +[rep,stat,stderr]=unix_g("fc "+SCI+"/CHANGES_5.3.X "+SCI+"/CHANGES_5.4.X"); + +else + +[rep,stat,stderr]=unix_g("diff "+SCI+"/CHANGES_5.3.X "+SCI+"/CHANGES_5.4.X"); + +end + +assert_checkfalse(rep == []); diff --git a/modules/io/tests/nonreg_tests/bug_10946.dia.ref b/modules/io/tests/nonreg_tests/bug_10946.dia.ref new file mode 100755 index 000000000..7be3e7dba --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_10946.dia.ref @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 10946 --> +// <-- Short Description --> +// load function (hdf5 based) cannot load a tlist. +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=10946 +// +// Try to load ref file +lst_reference = tlist(['random numbers';'Name';'Example'], 'Uniform',ones(1,2, 3)); +load(SCI+"/modules/hdf5/tests/sample_scilab_data/tlist.sod"); +assert_checkequal(lst,lst_reference); +// Try to save the tlist +save(TMPDIR + filesep() + "bug_10946.sod", "lst"); +clear lst +load(TMPDIR + filesep() + "bug_10946.sod"); +assert_checkequal(lst,lst_reference); diff --git a/modules/io/tests/nonreg_tests/bug_10946.tst b/modules/io/tests/nonreg_tests/bug_10946.tst new file mode 100755 index 000000000..7ad841015 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_10946.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 10946 --> + +// <-- Short Description --> +// load function (hdf5 based) cannot load a tlist. +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=10946 +// + +// Try to load ref file +lst_reference = tlist(['random numbers';'Name';'Example'], 'Uniform',ones(1,2, 3)); +load(SCI+"/modules/hdf5/tests/sample_scilab_data/tlist.sod"); +assert_checkequal(lst,lst_reference); + +// Try to save the tlist +save(TMPDIR + filesep() + "bug_10946.sod", "lst"); +clear lst +load(TMPDIR + filesep() + "bug_10946.sod"); +assert_checkequal(lst,lst_reference); + diff --git a/modules/io/tests/nonreg_tests/bug_11324.dia.ref b/modules/io/tests/nonreg_tests/bug_11324.dia.ref new file mode 100755 index 000000000..b7bec5c1b --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_11324.dia.ref @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Antoine ELIAS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 11324 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11324 +// +// <-- Short Description --> +// restore old file ( bon format ) could fail due to new mechanism in %_sodload +load("SCI/modules/io/tests/nonreg_tests/bug_11324.mat"); +assert_checkequal(filename, "oh_no_i_found_a_bug"); diff --git a/modules/io/tests/nonreg_tests/bug_11324.mat b/modules/io/tests/nonreg_tests/bug_11324.mat Binary files differnew file mode 100755 index 000000000..009723d87 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_11324.mat diff --git a/modules/io/tests/nonreg_tests/bug_11324.tst b/modules/io/tests/nonreg_tests/bug_11324.tst new file mode 100755 index 000000000..3ad1f82fe --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_11324.tst @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Antoine ELIAS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 11324 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11324 +// +// <-- Short Description --> +// restore old file ( bon format ) could fail due to new mechanism in %_sodload + +load("SCI/modules/io/tests/nonreg_tests/bug_11324.mat"); +assert_checkequal(filename, "oh_no_i_found_a_bug");
\ No newline at end of file diff --git a/modules/io/tests/nonreg_tests/bug_11426.dia.ref b/modules/io/tests/nonreg_tests/bug_11426.dia.ref new file mode 100755 index 000000000..eec0be099 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_11426.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Antoine ELIAS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 11426 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11426 +// +// <-- Short Description --> +// Save function showed warning message in case of "save environment". +oldMode = warning("query'); +warning("on"); +save(TMPDIR + "/saveenv.dat"); +warning(oldMode); diff --git a/modules/io/tests/nonreg_tests/bug_11426.tst b/modules/io/tests/nonreg_tests/bug_11426.tst new file mode 100755 index 000000000..a08da8aef --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_11426.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Antoine ELIAS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 11426 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11426 +// +// <-- Short Description --> +// Save function showed warning message in case of "save environment". + +oldMode = warning("query'); +warning("on"); +save(TMPDIR + "/saveenv.dat"); +warning(oldMode); diff --git a/modules/io/tests/nonreg_tests/bug_11997.dia.ref b/modules/io/tests/nonreg_tests/bug_11997.dia.ref new file mode 100755 index 000000000..85e069c0e --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_11997.dia.ref @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Antoine ELIAS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 11997 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11997 +// +// <-- Short Description --> +// save function show compatibility warning for non existing variable instead of error +clear a; +//3 instead of 2 because of call through execstr +errmsg = msprintf(_("Wrong value for argument #%d: Valid variable name expected.\n"), 3); +assert_checkerror("save(TMPDIR + ""/myData.sod"", ""a"")", errmsg); diff --git a/modules/io/tests/nonreg_tests/bug_11997.tst b/modules/io/tests/nonreg_tests/bug_11997.tst new file mode 100755 index 000000000..9a5d26221 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_11997.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Antoine ELIAS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 11997 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11997 +// +// <-- Short Description --> +// save function show compatibility warning for non existing variable instead of error + +clear a; +//3 instead of 2 because of call through execstr +errmsg = msprintf(_("Wrong value for argument #%d: Valid variable name expected.\n"), 3); +assert_checkerror("save(TMPDIR + ""/myData.sod"", ""a"")", errmsg); + diff --git a/modules/io/tests/nonreg_tests/bug_12083.tst b/modules/io/tests/nonreg_tests/bug_12083.tst new file mode 100755 index 000000000..5e6dd1542 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_12083.tst @@ -0,0 +1,39 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- WITH GRAPHIC --> +// +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 12083 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12083 +// +// <-- Short Description --> +// Load multiple variables could failed due to missing "clear" of previous variables. + +plot3d(); +f=gcf(); +path = fullpath(TMPDIR + "/../"); +xs2bmp(f, path + "original.bmp"); +original_md5 = getmd5(path + "original.bmp"); +deletefile(path + "original.bmp"); + +//save f, gcf, %_plot3d, original_md5 ... +save(path + "bug_12083.sod"); + +//close Scilab and retart it +path = fullpath(TMPDIR + "/../"); +load(path + "bug_12083.sod"); +deletefile(path + "bug_12083.sod"); +f=gcf(); +xs2bmp(f, path + "restored.bmp"); +restored_md5 = getmd5(path + "restored.bmp"); +deletefile(path + "restored.bmp"); + +assert_checkequal(original_md5, restored_md5); diff --git a/modules/io/tests/nonreg_tests/bug_12296.dia.ref b/modules/io/tests/nonreg_tests/bug_12296.dia.ref new file mode 100755 index 000000000..fc8750a28 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_12296.dia.ref @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Scilab Enterprises - Alexandre HERISSE +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 12296 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12296 +// +// <-- Short Description --> +// call to getenv with an big environment variable leads to memory corruption +a = "azerty" + a = + + azerty +b = ""; +for i = 1:4000 + b = b + a; +end +assert_checktrue(setenv("test", b)); +assert_checkequal(getenv("test"), b); diff --git a/modules/io/tests/nonreg_tests/bug_12296.tst b/modules/io/tests/nonreg_tests/bug_12296.tst new file mode 100755 index 000000000..e903a6727 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_12296.tst @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - Scilab Enterprises - Alexandre HERISSE +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 12296 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12296 +// +// <-- Short Description --> +// call to getenv with an big environment variable leads to memory corruption + +a = "azerty" +b = ""; +for i = 1:4000 + b = b + a; +end + +assert_checktrue(setenv("test", b)); +assert_checkequal(getenv("test"), b); + diff --git a/modules/io/tests/nonreg_tests/bug_12305.tst b/modules/io/tests/nonreg_tests/bug_12305.tst new file mode 100755 index 000000000..344b653d7 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_12305.tst @@ -0,0 +1,42 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS +// Copyright (C) 2013 - Test case - Luc GABRIEL +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- TEST WITH GRAPHIC --> +// +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 12305 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12305 +// +// <-- Short Description --> +// Legends could not be loaded from SOD file. +// Test : both graphics must have legends. + +// curve 1 => blue +// curve 2 => red +// curve 3 => green +plot([1,2], [1,10], "b"); +plot([1,2], [1,20], "r"); +plot([1,2], [1,30], "g"); +labels = ["1", "2", "3"]; +legend(labels); + +// save and reload figure +a = gca(); +save(fullfile(TMPDIR, "bug_12305.dat"), "a"); +clear a; +f1 = scf(0); +f2 = scf(1); +load(fullfile(TMPDIR, "bug_12305.dat"), "a"); + +xs2bmp(f1, TMPDIR + "/original.bmp"); +xs2bmp(f2, TMPDIR + "/restored.bmp"); + +assert_checkequal(getmd5(TMPDIR + "/original.bmp"), getmd5(TMPDIR + "/restored.bmp")); diff --git a/modules/io/tests/nonreg_tests/bug_12968.dia.ref b/modules/io/tests/nonreg_tests/bug_12968.dia.ref new file mode 100755 index 000000000..04e7d72f1 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_12968.dia.ref @@ -0,0 +1,39 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS +// Copyright (C) 2013 - Test case - Luc GABRIEL +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 12968 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12968 +// +// <-- Short Description --> +// Cannot save varaible with name "temp" +temp = 0:10; +tempRef = temp; +save(TMPDIR + "/save.bin", "temp"); +clear temp +load(TMPDIR + "/save.bin"); +assert_checkequal(temp, tempRef); +temp = 0:10; +dens = 10:-1:0; +tempRef = temp; +densRef = dens; +save(TMPDIR + "/save.bin", "temp", "dens"); +clear temp dens +load(TMPDIR + "/save.bin"); +assert_checkequal(temp, tempRef); +assert_checkequal(dens, densRef); +temp = 0:10; +dens = 10:-1:0; +tempRef = temp; +densRef = dens; +save(TMPDIR + "/save.bin", "dens", "temp"); +clear temp dens +load(TMPDIR + "/save.bin"); +assert_checkequal(temp, tempRef); +assert_checkequal(dens, densRef); diff --git a/modules/io/tests/nonreg_tests/bug_12968.tst b/modules/io/tests/nonreg_tests/bug_12968.tst new file mode 100755 index 000000000..cbf9425ce --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_12968.tst @@ -0,0 +1,42 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS +// Copyright (C) 2013 - Test case - Luc GABRIEL +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 12968 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12968 +// +// <-- Short Description --> +// Cannot save varaible with name "temp" + +temp = 0:10; +tempRef = temp; +save(TMPDIR + "/save.bin", "temp"); +clear temp +load(TMPDIR + "/save.bin"); +assert_checkequal(temp, tempRef); + +temp = 0:10; +dens = 10:-1:0; +tempRef = temp; +densRef = dens; +save(TMPDIR + "/save.bin", "temp", "dens"); +clear temp dens +load(TMPDIR + "/save.bin"); +assert_checkequal(temp, tempRef); +assert_checkequal(dens, densRef); + +temp = 0:10; +dens = 10:-1:0; +tempRef = temp; +densRef = dens; +save(TMPDIR + "/save.bin", "dens", "temp"); +clear temp dens +load(TMPDIR + "/save.bin"); +assert_checkequal(temp, tempRef); +assert_checkequal(dens, densRef); diff --git a/modules/io/tests/nonreg_tests/bug_13310.dia.ref b/modules/io/tests/nonreg_tests/bug_13310.dia.ref new file mode 100755 index 000000000..ff10e4b47 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_13310.dia.ref @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- TEST WITH GRAPHIC --> +// +// <-- Non-regression test for bug 13310 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=13310 +// +// <-- Short Description --> +// .scg files createad by Scialb 5.4.1 can no more be loaded (pixmap property removed). +load(fullfile(SCI, "modules", "io", "tests", "nonreg_tests", "bug_13310.scg")); diff --git a/modules/io/tests/nonreg_tests/bug_13310.scg b/modules/io/tests/nonreg_tests/bug_13310.scg Binary files differnew file mode 100755 index 000000000..42a937d93 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_13310.scg diff --git a/modules/io/tests/nonreg_tests/bug_13310.tst b/modules/io/tests/nonreg_tests/bug_13310.tst new file mode 100755 index 000000000..cb7651e2d --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_13310.tst @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- TEST WITH GRAPHIC --> +// +// <-- Non-regression test for bug 13310 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=13310 +// +// <-- Short Description --> +// .scg files createad by Scialb 5.4.1 can no more be loaded (pixmap property removed). + +load(fullfile(SCI, "modules", "io", "tests", "nonreg_tests", "bug_13310.scg"));
\ No newline at end of file diff --git a/modules/io/tests/nonreg_tests/bug_1969.dia.ref b/modules/io/tests/nonreg_tests/bug_1969.dia.ref new file mode 100755 index 000000000..1f3e850e8 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_1969.dia.ref @@ -0,0 +1,86 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Sylvestre LEDRU +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 1969 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1969 +// +// <-- Short Description --> +// Bad exec was causing a seg fault of Scilab +s=grand(500,1,'nor',0,1)'; +a=msprintf("%2.5f ",s') + a = + + 0.43889 -1.02880 0.19793 0.38339 -1.06828 0.03888 0.17882 -0.71694 1.0 + 4330 -0.45655 -1.20855 1.53101 -0.54048 -0.82732 1.53406 2.61700 + 2.84318 0.04174 -0.94128 0.70100 0.03455 0.00816 0.06824 -1.14788 + -2.38379 0.47906 -0.48834 -1.00455 -1.93925 -0.15732 -1.13468 0. + 17277 1.07457 1.98954 0.96696 0.34564 -0.74600 0.12648 0.85101 0. + 86101 -0.21620 0.60216 0.65443 0.64649 -0.02410 -0.23305 -0.15677 + 0.95777 -0.90515 0.76632 0.48762 -1.66909 -0.43378 -0.54521 0.28 + 401 -1.55527 -1.21085 2.54329 0.41883 0.80399 -1.07667 -0.43225 0 + .58356 0.08560 -2.20930 -1.49510 0.49263 -1.61494 -0.85366 -2.235 + 66 -0.09732 -2.30976 0.49621 0.75485 0.15959 0.61160 0.45837 -0.5 + 4790 0.76726 0.85732 -2.02742 0.94758 0.75022 -0.92110 0.99561 -1 + .10153 -0.07109 -3.02853 0.06175 1.33456 -0.36866 0.27309 1.27262 + 0.45653 -0.70772 -1.82436 0.62218 0.42067 -0.61034 0.42180 1.886 + 60 0.11126 0.78861 -0.18064 0.23648 -0.15403 0.06289 1.30001 1.53 + 106 -0.93948 -1.01417 0.58981 -0.97261 -0.68667 -0.60287 0.45208 + 0.36775 2.21116 0.19424 -0.79760 0.34742 -0.62275 0.07365 1.11651 + 0.53928 -0.02779 2.31345 0.49732 1.27264 1.22562 1.50852 0.67791 + 0.16903 0.80253 -0.51999 0.85688 0.60383 -0.23281 0.61456 1.4734 + 3 1.69011 -0.20203 -1.47053 -0.33586 1.68315 0.12643 0.04861 -1.0 + 5470 -0.95043 1.37103 -0.22611 -0.03757 -0.24549 -1.90995 0.14302 + 0.49531 -0.12107 -0.44785 0.30988 1.71541 -0.58597 -0.36911 0.95 + 198 1.79247 2.28240 0.71873 -1.28181 0.18087 -0.69058 1.90717 0.1 + 7892 1.43172 -0.95931 2.01075 0.40790 -0.05488 1.59259 1.60327 -1 + .15734 -2.98950 0.01113 -1.94595 -1.63990 0.55125 0.01847 0.43168 + -0.30853 0.29391 0.85802 -1.27790 -0.35344 -0.21349 0.32747 -0.5 + 9557 -1.57154 0.63361 0.00502 -0.58340 -1.22084 -0.98880 -0.52925 + -1.02605 0.47383 0.29233 -1.36578 -1.90493 0.85510 0.33513 1.644 + 41 1.08602 -0.11482 -0.34073 -0.78690 1.90291 -0.20825 -0.25849 - + 1.31820 0.58767 -0.65677 -1.56758 -1.07961 -0.61695 -0.84130 1.93 + 981 -0.65665 0.41687 -0.16885 0.00662 -1.50914 0.41450 0.20590 -0 + .47464 0.09934 -1.52451 -2.19854 -2.25293 -0.37596 0.24437 0.2127 + 9 -0.35989 -0.29245 -1.65222 -1.14108 -0.92005 0.53521 0.27150 -0 + .23910 -0.75161 -0.65109 -0.55773 -0.20280 -2.44956 0.10626 0.073 + 84 0.07084 0.96108 1.32381 0.60289 -1.41814 -0.12329 -0.67319 1.4 + 8014 -0.33479 -1.47770 0.42082 -0.41714 -2.08968 -0.89534 0.45378 + 0.97338 -0.60044 0.68148 -1.05498 0.97928 -2.58933 -0.26852 1.53 + 292 0.73990 -0.51425 0.64150 1.07902 -0.82525 0.44597 0.84821 -0. + 84281 -0.24964 -0.29447 -0.35965 1.07464 0.43597 0.53529 0.89415 + -1.29894 -0.26612 0.13820 -0.06489 0.54884 -0.46955 -2.33599 -0.1 + 2173 -2.27436 0.60819 -0.46174 -1.19078 -0.22953 1.90453 1.58782 + -1.04358 0.08888 -0.34134 2.22400 -0.65626 0.27522 -1.84674 1.504 + 63 -0.24204 1.08389 0.53690 1.26132 -0.01938 -0.76046 1.57149 -0. + 47630 -1.81227 -0.03372 0.21245 -0.68557 -0.80519 0.35862 0.24889 + -0.80422 -0.10835 -0.70072 -0.97893 -0.88841 -0.65809 -0.69494 0 + .48085 -0.12214 -0.02847 -0.44818 -1.24366 0.15348 0.99306 -0.136 + 11 1.04002 -0.83784 1.27824 0.20029 0.69829 0.01158 -0.33080 -0.1 + 1431 0.85464 -1.14150 0.76192 -0.60115 -0.92224 -0.19077 -1.03690 + 1.22342 -0.08728 -0.58832 -1.54898 1.17875 0.48738 0.74845 -0.90 + 114 -0.71457 0.39379 -1.10955 -0.41029 -0.50693 -0.15148 0.53148 + 1.89569 -1.27104 2.57643 0.58610 -1.72561 0.13955 -0.64327 0.6860 + 9 -1.19058 -2.27466 1.31547 -0.53231 -0.66519 0.03936 -0.06401 -0 + .73962 0.05333 1.16141 1.56697 -0.20886 -2.26491 1.08991 0.85948 + -0.48256 -0.22454 1.02419 -0.29725 -0.96278 2.29582 -1.59969 0.25 + 421 0.25107 0.06307 0.17905 -1.81914 0.48975 1.28800 -1.20197 0.5 + 7544 -0.58938 -0.40237 -0.38244 -1.05861 0.85723 -0.50210 -1.0238 + 0 0.35108 0.71629 -0.68465 -1.15673 2.06529 0.95336 -2.08218 -2.4 + 8706 -1.20204 0.20330 -0.25215 0.23643 -0.32889 -0.38571 0.72046 + 0.78981 -1.39602 -0.79320 1.87162 -0.15196 0.64348 0.82218 2.1528 + 7 -0.61390 -0.01114 -0.20899 0.20070 -0.58132 1.14786 0.12582 1.1 + 0829 -0.02970 0.31846 1.14253 0.46419 -2.28165 1.95968 0.24755 2. + 04788 -1.70731 0.05356 0.01426 -0.67923 0.74334 0.63443 2.13271 - + 0.41708 -0.03331 -0.42909 -1.41958 0.07991 0.84868 1.63515 -1.544 + 55 0.28566 -1.35164 0.12493 1.75515 0.90292 -1.21311 -0.50874 0.4 + 2932 -1.39543 0.43100 -0.68092 0.71227 0.77090 -0.97015 -0.80298 + 0.93324 -0.15644 1.80970 0.12123 0.02858 -1.00312 0.97391 0.99897 + 0.47892 -0.02918 +if getos() <> 'Windows' then + if unix("cat "+a+" > /dev/null 2>&1")<>256 then bugmes();quit;end +end diff --git a/modules/io/tests/nonreg_tests/bug_1969.tst b/modules/io/tests/nonreg_tests/bug_1969.tst new file mode 100755 index 000000000..07f10e78b --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_1969.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Sylvestre LEDRU +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- NOT FIXED --> +// <-- Non-regression test for bug 1969 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1969 +// +// <-- Short Description --> +// Bad exec was causing a seg fault of Scilab + +s=grand(500,1,'nor',0,1)'; +a=msprintf("%2.5f ",s') + +if getos() <> 'Windows' then + if unix("cat "+a+" > /dev/null 2>&1")<>256 then pause,end +end diff --git a/modules/io/tests/nonreg_tests/bug_2338.dia.ref b/modules/io/tests/nonreg_tests/bug_2338.dia.ref new file mode 100755 index 000000000..a0d1355a5 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_2338.dia.ref @@ -0,0 +1,15 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 2338 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2338 +// +// <-- Short Description --> +// string(overloadinglib) contains one empty element: that shouldn't be +a=string(overloadinglib); +if ~isempty(find(a=="")) then bugmes();quit;end diff --git a/modules/io/tests/nonreg_tests/bug_2338.tst b/modules/io/tests/nonreg_tests/bug_2338.tst new file mode 100755 index 000000000..986f9534c --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_2338.tst @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 2338 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2338 +// +// <-- Short Description --> +// string(overloadinglib) contains one empty element: that shouldn't be + + +a=string(overloadinglib); +if ~isempty(find(a=="")) then pause,end diff --git a/modules/io/tests/nonreg_tests/bug_2389.dia.ref b/modules/io/tests/nonreg_tests/bug_2389.dia.ref new file mode 100755 index 000000000..30f84303c --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_2389.dia.ref @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 2389 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2389 +// +// <-- Short Description --> +// handle objects cannot be saved +A = sparse(rand(5,5)); +[h,rk] = lufact(A); +if execstr("save(TMPDIR+""/pointer.bin"",""h"")", "errcatch")<>0 then bugmes();quit;end diff --git a/modules/io/tests/nonreg_tests/bug_2389.tst b/modules/io/tests/nonreg_tests/bug_2389.tst new file mode 100755 index 000000000..605875d1b --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_2389.tst @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 2389 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2389 +// +// <-- Short Description --> +// handle objects cannot be saved + +A = sparse(rand(5,5)); +[h,rk] = lufact(A); + +if execstr("save(TMPDIR+""/pointer.bin"",""h"")", "errcatch")<>0 then pause,end diff --git a/modules/io/tests/nonreg_tests/bug_2389_v5.dia.ref b/modules/io/tests/nonreg_tests/bug_2389_v5.dia.ref new file mode 100755 index 000000000..d3e7b2177 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_2389_v5.dia.ref @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 2389 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2389 +// +// <-- Short Description --> +// handle objects cannot be saved +A = sparse(rand(5,5)); +[h,rk] = lufact(A); +warning("off"); +if execstr("save(TMPDIR+""/pointer.bin"",h)", "errcatch")<>0 then bugmes();quit;end diff --git a/modules/io/tests/nonreg_tests/bug_2389_v5.tst b/modules/io/tests/nonreg_tests/bug_2389_v5.tst new file mode 100755 index 000000000..d3e7b2177 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_2389_v5.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 2389 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2389 +// +// <-- Short Description --> +// handle objects cannot be saved +A = sparse(rand(5,5)); +[h,rk] = lufact(A); +warning("off"); +if execstr("save(TMPDIR+""/pointer.bin"",h)", "errcatch")<>0 then bugmes();quit;end diff --git a/modules/io/tests/nonreg_tests/bug_2744.dia.ref b/modules/io/tests/nonreg_tests/bug_2744.dia.ref new file mode 100755 index 000000000..a0b6a7f59 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_2744.dia.ref @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 2744 --> +// +// <-- Short Description --> +// read cannot deal with NAN. +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2744 +// +ref = [%nan 1 %nan 2 %inf 3]; +write(TMPDIR + '/matrix.dat', ref); +res = read(TMPDIR + '/matrix.dat',-1 ,size(ref,'*')); +if and(ref <> res) then bugmes();quit;end +if ~isnan(res(1)) then bugmes();quit;end +if ~isnan(res(3)) then bugmes();quit;end +if ~isinf(res(5)) then bugmes();quit;end diff --git a/modules/io/tests/nonreg_tests/bug_2744.tst b/modules/io/tests/nonreg_tests/bug_2744.tst new file mode 100755 index 000000000..442fb5268 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_2744.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 2744 --> +// +// <-- Short Description --> +// read cannot deal with NAN. +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2744 +// + + +ref = [%nan 1 %nan 2 %inf 3]; +write(TMPDIR + '/matrix.dat', ref); +res = read(TMPDIR + '/matrix.dat',-1 ,size(ref,'*')); + +if and(ref <> res) then pause,end + +if ~isnan(res(1)) then pause,end +if ~isnan(res(3)) then pause,end +if ~isinf(res(5)) then pause,end
\ No newline at end of file diff --git a/modules/io/tests/nonreg_tests/bug_3453.dia.ref b/modules/io/tests/nonreg_tests/bug_3453.dia.ref new file mode 100755 index 000000000..4d0132c5e --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_3453.dia.ref @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 3453 --> +// +// <-- Short Description --> +// write(6,1) or write(6,[1 2;4 5]) crashs scilab +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3453 +// +write(%io(2),'toto'); +toto +A = 1; +write(%io(2),A); + 1.0000000000D+00 +B = [1 2]; +write(%io(2),B); + 1.0000000000D+00 2.0000000000D+00 diff --git a/modules/io/tests/nonreg_tests/bug_3453.tst b/modules/io/tests/nonreg_tests/bug_3453.tst new file mode 100755 index 000000000..c7e44f504 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_3453.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 3453 --> +// +// <-- Short Description --> +// write(6,1) or write(6,[1 2;4 5]) crashs scilab +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3453 +// + +write(%io(2),'toto'); +A = 1; +write(%io(2),A); +B = [1 2]; +write(%io(2),B);
\ No newline at end of file diff --git a/modules/io/tests/nonreg_tests/bug_3478.dia.ref b/modules/io/tests/nonreg_tests/bug_3478.dia.ref new file mode 100755 index 000000000..1f5338b15 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_3478.dia.ref @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 3478 --> +// +// <-- Short Description --> +// file returns a wrong error message when file does not exists. +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3478 +// +ierr = execstr("file(''open'', ''my file which does not exist'', ''old'');", "errcatch"); +if ierr <> 240 then bugmes();quit;end diff --git a/modules/io/tests/nonreg_tests/bug_3478.tst b/modules/io/tests/nonreg_tests/bug_3478.tst new file mode 100755 index 000000000..532d4b15e --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_3478.tst @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 3478 --> +// + +// <-- Short Description --> +// file returns a wrong error message when file does not exists. +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3478 +// + +ierr = execstr("file(''open'', ''my file which does not exist'', ''old'');", "errcatch"); +if ierr <> 240 then pause,end diff --git a/modules/io/tests/nonreg_tests/bug_3666.tst b/modules/io/tests/nonreg_tests/bug_3666.tst new file mode 100755 index 000000000..79746ccb8 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_3666.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 3666 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3666 +// +// <-- Short Description --> +// char encoding with length and input + +// <-- INTERACTIVE TEST --> + +// -- 1 -- + +S = 'pra'; +if length(S) <> 5 then pause,end + +// -- 2 -- +x = input('Your name ?', 'string') + +// Please type : Galle +// and check that x == Galle +if x <> 'Galle' then pause,end + diff --git a/modules/io/tests/nonreg_tests/bug_3906.tst b/modules/io/tests/nonreg_tests/bug_3906.tst new file mode 100755 index 000000000..d2b361141 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_3906.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 39065 --> +// + +// <-- Short Description --> +//There is no way to know if the path returned by get_absolute_file_path() is the good one or not : +//if the input argument is not an opened file, the current directory is returned. +//=> It should return an error instead of just printing a message. + +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3906 +// + +// <-- INTERACTIVE TEST --> +// executes next line and checks that scilab not crashs + +debug(4);exit + diff --git a/modules/io/tests/nonreg_tests/bug_4026.tst b/modules/io/tests/nonreg_tests/bug_4026.tst new file mode 100755 index 000000000..ebe37fd91 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_4026.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 4026 --> +// + +// <-- Short Description --> +// +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4026 +// + +// <-- INTERACTIVE TEST --> +// <-- WINDOWS ONLY --> + +// With the "unix" command under Windows, it is not possible to run an external program which has a long path name. + +// put a executable in a long path name +// unix("C:/Program Files/OpenOffice.org 3/program/scalc.exe") +// scalc must be launched diff --git a/modules/io/tests/nonreg_tests/bug_4620.dia.ref b/modules/io/tests/nonreg_tests/bug_4620.dia.ref new file mode 100755 index 000000000..e1950865a --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_4620.dia.ref @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 4620 --> +// +// <-- Short Description --> +// the setenv function makes scilab hangs +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4620 +// +A = 1:100000; +B = strcat(string(A),''); +ierr = execstr('r = setenv(''TEST_FOO'',B);','errcatch'); +if ierr <> 0 then bugmes();quit;end +//SetEnvironmentVaraible ( setenv on windows ) is able to set variable > 32767 ( _MAX_ENV ) +if getos() <> "Windows" then + if r <> %F then bugmes();quit;end + if getenv('TEST_FOO','') <> '' then bugmes();quit;end +else + if r <> %T then bugmes();quit;end + if getenv('TEST_FOO','') <> B then bugmes();quit;end +end diff --git a/modules/io/tests/nonreg_tests/bug_4620.tst b/modules/io/tests/nonreg_tests/bug_4620.tst new file mode 100755 index 000000000..b86cd22fb --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_4620.tst @@ -0,0 +1,32 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 4620 --> +// + +// <-- Short Description --> +// the setenv function makes scilab hangs +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4620 +// + +A = 1:100000; +B = strcat(string(A),''); + +ierr = execstr('r = setenv(''TEST_FOO'',B);','errcatch'); +if ierr <> 0 then pause,end + +//SetEnvironmentVaraible ( setenv on windows ) is able to set variable > 32767 ( _MAX_ENV ) +if getos() <> "Windows" then + if r <> %F then pause,end + if getenv('TEST_FOO','') <> '' then pause,end +else + if r <> %T then pause,end + if getenv('TEST_FOO','') <> B then pause,end +end + diff --git a/modules/io/tests/nonreg_tests/bug_5368.tst b/modules/io/tests/nonreg_tests/bug_5368.tst new file mode 100755 index 000000000..276dc08c0 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_5368.tst @@ -0,0 +1,26 @@ +/ ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 5368 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5368 +// +// <-- Short Description --> +// + +v = []; +for i = 1:20 + v = input('Hit Return'); + if v <> [] then + disp('NOK'); + else + disp('OK'); + end +end diff --git a/modules/io/tests/nonreg_tests/bug_5513.tst b/modules/io/tests/nonreg_tests/bug_5513.tst new file mode 100755 index 000000000..f2e593c63 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_5513.tst @@ -0,0 +1,47 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 5513 --> +// <-- INTERACTIVE TEST --> + +// <-- Short Description --> +// input("message") did not restore the original prompt after the input job is done. +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5513 +// + +a = rand(2,2) + +// type a string example: This is a test +// check that you have good prompt + +b = input("Give a string : ","string") + + +c = input("Give a string : ","string") +// press ctrl+C to put Scilab in pause +// type resume +// and put a value +// c must be correct + +d = input("Give a value : ") +// press ctrl+C to put Scilab in pause +// type resume +// and put a value +// d must be correct + +e = input("Give a string : ","string") +// and press enter +// e must be equal to ' ' + +f = input("Give a value : ") +// and press enter +// f must be equal to [] + + + diff --git a/modules/io/tests/nonreg_tests/bug_5586.dia.ref b/modules/io/tests/nonreg_tests/bug_5586.dia.ref new file mode 100755 index 000000000..784b4b516 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_5586.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 5586 --> +// <-- Short Description --> +// getscilabkeywords() was broken +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5586 +// +ierr = execstr('getscilabkeywords()','errcatch') + ierr = + + 0. +if ierr <> 0 then bugmes();quit;end; +r = getscilabkeywords(); +if r == [] then bugmes();quit;end; diff --git a/modules/io/tests/nonreg_tests/bug_5586.tst b/modules/io/tests/nonreg_tests/bug_5586.tst new file mode 100755 index 000000000..51b609bdb --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_5586.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 5586 --> + +// <-- Short Description --> +// getscilabkeywords() was broken + +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5586 +// + +ierr = execstr('getscilabkeywords()','errcatch') +if ierr <> 0 then pause,end; + +r = getscilabkeywords(); +if r == [] then pause,end; + diff --git a/modules/io/tests/nonreg_tests/bug_576.tst b/modules/io/tests/nonreg_tests/bug_576.tst new file mode 100755 index 000000000..1b363e956 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_576.tst @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 576 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=576 +// +// <-- Short Description --> +// input() function of scilab cvs doesn't work like scilab 2.7.x +// when the output argument is empty, the output is not detected +// as an empty result ? + +disp("press enter"); +chemin=input('?','s'); +if isempty(chemin) then pause,end diff --git a/modules/io/tests/nonreg_tests/bug_6399.dia.ref b/modules/io/tests/nonreg_tests/bug_6399.dia.ref new file mode 100755 index 000000000..9fd8efd8e --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_6399.dia.ref @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 6399 --> +// <-- Short Description --> +// [tempfd,ierr]=file('open',pathconvert(TMPDIR)+gettext("unitfile.dat"),"old"); returned a error +// in previous version (compatibility) returns values +// +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=6399 +// +// Lhs == 2 no error only output +ierr = execstr('[tempfd,iErrf]=file(''open'',pathconvert(TMPDIR)+gettext(''unitfile.dat''),''old'');','errcatch'); +if ierr <> 0 then bugmes();quit;end +if tempfd <> [] then bugmes();quit;end +if iErrf <> 240 then bugmes();quit;end +// Lhs <> 2 error 240 sended +ierr = execstr('file(''open'',pathconvert(TMPDIR)+gettext(''unitfile.dat''),''old'');','errcatch'); +if ierr <> 240 then bugmes();quit;end diff --git a/modules/io/tests/nonreg_tests/bug_6399.tst b/modules/io/tests/nonreg_tests/bug_6399.tst new file mode 100755 index 000000000..fed55c6ac --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_6399.tst @@ -0,0 +1,27 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 6399 --> + +// <-- Short Description --> +// [tempfd,ierr]=file('open',pathconvert(TMPDIR)+gettext("unitfile.dat"),"old"); returned a error +// in previous version (compatibility) returns values +// +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=6399 +// + +// Lhs == 2 no error only output +ierr = execstr('[tempfd,iErrf]=file(''open'',pathconvert(TMPDIR)+gettext(''unitfile.dat''),''old'');','errcatch'); +if ierr <> 0 then pause,end +if tempfd <> [] then pause,end +if iErrf <> 240 then pause,end + +// Lhs <> 2 error 240 sended +ierr = execstr('file(''open'',pathconvert(TMPDIR)+gettext(''unitfile.dat''),''old'');','errcatch'); +if ierr <> 240 then pause,end diff --git a/modules/io/tests/nonreg_tests/bug_8789.dia.ref b/modules/io/tests/nonreg_tests/bug_8789.dia.ref new file mode 100755 index 000000000..62f4abe12 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_8789.dia.ref @@ -0,0 +1,30 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8789 --> +// <-- Short Description --> +// read function crashed on Windows XP 64 bit platform +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8789 +// +filetoread = SCI + "/modules/io/tests/nonreg_tests/bug_8789.txt"; +ref = mgetl(filetoread); +fic = file("open", filetoread, "old"); +if execstr("r = read(fic, 1, 1, ""(a)"");", "errcatch") <> 0 then bugmes();quit;end +file("close", fic); +if r <> ref(1) then bugmes();quit;end +fic = file("open", filetoread, "old"); +if execstr("r = read(fic, 2, 1, ""(a)"");", "errcatch") <> 0 then bugmes();quit;end +file("close", fic); +if or(r <> ref(1:2)) then bugmes();quit;end +fic = file("open", filetoread, "old"); +if execstr("r = read(fic, -1, 1, ""(a)"");", "errcatch") <> 0 then bugmes();quit;end +file("close", fic); +if or(r <> ref) then bugmes();quit;end diff --git a/modules/io/tests/nonreg_tests/bug_8789.tst b/modules/io/tests/nonreg_tests/bug_8789.tst new file mode 100755 index 000000000..4a5612bb5 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_8789.tst @@ -0,0 +1,37 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8789 --> + +// <-- Short Description --> +// read function crashed on Windows XP 64 bit platform +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8789 +// + +filetoread = SCI + "/modules/io/tests/nonreg_tests/bug_8789.txt"; +ref = mgetl(filetoread); + +fic = file("open", filetoread, "old"); + +if execstr("r = read(fic, 1, 1, ""(a)"");", "errcatch") <> 0 then pause, end +file("close", fic); +if r <> ref(1) then pause, end + +fic = file("open", filetoread, "old"); +if execstr("r = read(fic, 2, 1, ""(a)"");", "errcatch") <> 0 then pause, end +file("close", fic); +if or(r <> ref(1:2)) then pause, end + +fic = file("open", filetoread, "old"); +if execstr("r = read(fic, -1, 1, ""(a)"");", "errcatch") <> 0 then pause, end +file("close", fic); +if or(r <> ref) then pause, end + diff --git a/modules/io/tests/nonreg_tests/bug_8789.txt b/modules/io/tests/nonreg_tests/bug_8789.txt new file mode 100755 index 000000000..fd77cd0b6 --- /dev/null +++ b/modules/io/tests/nonreg_tests/bug_8789.txt @@ -0,0 +1,6 @@ +Hello word +1 2 3 5 +5 3 4 2 +Salut +4 8 4 3 5 +1 2 8 6 1
\ No newline at end of file diff --git a/modules/io/tests/unit_tests/file.dia.ref b/modules/io/tests/unit_tests/file.dia.ref new file mode 100755 index 000000000..d6ba3e6af --- /dev/null +++ b/modules/io/tests/unit_tests/file.dia.ref @@ -0,0 +1,47 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +[a,b,c,d,e] = file(500); +if a <> [] then bugmes();quit;end; +if b <> [] then bugmes();quit;end; +if c <> [] then bugmes();quit;end; +if d <> [] then bugmes();quit;end; +if e <> [] then bugmes();quit;end; +clear a b c d e +// ============================================================================= +[a,b,c,d] = file(500); +if a <> [] then bugmes();quit;end; +if b <> [] then bugmes();quit;end; +if c <> [] then bugmes();quit;end; +if d <> [] then bugmes();quit;end; +clear a b c d +// ============================================================================= +[a,b,c] = file(500); +if a <> [] then bugmes();quit;end; +if b <> [] then bugmes();quit;end; +if c <> [] then bugmes();quit;end; +clear a b c +// ============================================================================= +[a,b] = file(500); +if a <> [] then bugmes();quit;end; +if b <> [] then bugmes();quit;end; +clear a b +// ============================================================================= +[a] = file(500); +if a <> [] then bugmes();quit;end; +clear a +// ============================================================================= +file(500); +// ============================================================================= +ierr = execstr("file(''toto'')","errcatch"); +if (ierr <> 201) then bugmes();quit;end +// ============================================================================= diff --git a/modules/io/tests/unit_tests/file.tst b/modules/io/tests/unit_tests/file.tst new file mode 100755 index 000000000..2c367c049 --- /dev/null +++ b/modules/io/tests/unit_tests/file.tst @@ -0,0 +1,48 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +[a,b,c,d,e] = file(500); +if a <> [] then pause,end; +if b <> [] then pause,end; +if c <> [] then pause,end; +if d <> [] then pause,end; +if e <> [] then pause,end; +clear a b c d e +// ============================================================================= +[a,b,c,d] = file(500); +if a <> [] then pause,end; +if b <> [] then pause,end; +if c <> [] then pause,end; +if d <> [] then pause,end; +clear a b c d +// ============================================================================= +[a,b,c] = file(500); +if a <> [] then pause,end; +if b <> [] then pause,end; +if c <> [] then pause,end; +clear a b c +// ============================================================================= +[a,b] = file(500); +if a <> [] then pause,end; +if b <> [] then pause,end; +clear a b +// ============================================================================= +[a] = file(500); +if a <> [] then pause,end; +clear a +// ============================================================================= +file(500); +// ============================================================================= +ierr = execstr("file(''toto'')","errcatch"); +if (ierr <> 201) then pause,end +// ============================================================================= + diff --git a/modules/io/tests/unit_tests/getenv.dia.ref b/modules/io/tests/unit_tests/getenv.dia.ref new file mode 100755 index 000000000..3a3223e1e --- /dev/null +++ b/modules/io/tests/unit_tests/getenv.dia.ref @@ -0,0 +1,40 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +ierr = execstr("[a,b] = getenv(''SCI'');","errcatch"); +if ierr <> 78 then bugmes();quit;end +ierr = execstr("b = getenv();","errcatch"); +if ierr <> 77 then bugmes();quit;end +ierr = execstr("b = getenv(''SCI'');","errcatch"); +if ierr <> 0 then bugmes();quit;end +ierr = execstr("b = getenv(''SCI'',''NOK'');","errcatch"); +if ierr <> 0 then bugmes();quit;end +if b <> getenv('SCI') then bugmes();quit;end +ierr = execstr("b = getenv('''',''NOK'');","errcatch"); +if ierr <> 0 then bugmes();quit;end +if b <> 'NOK' then bugmes();quit;end +ierr = execstr("b = getenv(3,''NOK'');","errcatch"); +if ierr <> 999 then bugmes();quit;end +ierr = execstr("b = getenv(''NOK'',3);","errcatch"); +if ierr <> 999 then bugmes();quit;end +ierr = execstr("b = getenv(4,3);","errcatch"); +if ierr <> 999 then bugmes();quit;end +ierr = execstr("b = getenv(''FOO'');","errcatch"); +if ierr <> 999 then bugmes();quit;end +if getenv('FOO','foo') <> 'foo' then bugmes();quit;end +A = 1:100000; +B = strcat(string(A),''); +ierr = execstr('r = setenv(''TEST_FOO'',B);','errcatch'); +if ierr <> 0 then bugmes();quit;end +//SetEnvironmentVaraible ( setenv on windows ) is able to set variable > 32767 ( _MAX_ENV ) +if getos() <> "Windows" then + if r <> %F then bugmes();quit;end + if getenv('TEST_FOO','') <> '' then bugmes();quit;end +else + if r <> %T then bugmes();quit;end + if getenv('TEST_FOO','') <> B then bugmes();quit;end +end diff --git a/modules/io/tests/unit_tests/getenv.tst b/modules/io/tests/unit_tests/getenv.tst new file mode 100755 index 000000000..a22f46ab7 --- /dev/null +++ b/modules/io/tests/unit_tests/getenv.tst @@ -0,0 +1,55 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +ierr = execstr("[a,b] = getenv(''SCI'');","errcatch"); +if ierr <> 78 then pause,end + +ierr = execstr("b = getenv();","errcatch"); +if ierr <> 77 then pause,end + +ierr = execstr("b = getenv(''SCI'');","errcatch"); +if ierr <> 0 then pause,end + +ierr = execstr("b = getenv(''SCI'',''NOK'');","errcatch"); +if ierr <> 0 then pause,end +if b <> getenv('SCI') then pause,end + +ierr = execstr("b = getenv('''',''NOK'');","errcatch"); +if ierr <> 0 then pause,end +if b <> 'NOK' then pause,end + +ierr = execstr("b = getenv(3,''NOK'');","errcatch"); +if ierr <> 999 then pause,end + +ierr = execstr("b = getenv(''NOK'',3);","errcatch"); +if ierr <> 999 then pause,end + +ierr = execstr("b = getenv(4,3);","errcatch"); +if ierr <> 999 then pause,end + +ierr = execstr("b = getenv(''FOO'');","errcatch"); +if ierr <> 999 then pause,end +if getenv('FOO','foo') <> 'foo' then pause,end + +A = 1:100000; +B = strcat(string(A),''); + +ierr = execstr('r = setenv(''TEST_FOO'',B);','errcatch'); +if ierr <> 0 then pause,end + +//SetEnvironmentVaraible ( setenv on windows ) is able to set variable > 32767 ( _MAX_ENV ) +if getos() <> "Windows" then + if r <> %F then pause,end + if getenv('TEST_FOO','') <> '' then pause,end +else + if r <> %T then pause,end + if getenv('TEST_FOO','') <> B then pause,end +end + +
\ No newline at end of file diff --git a/modules/io/tests/unit_tests/load_figure.dia.ref b/modules/io/tests/unit_tests/load_figure.dia.ref new file mode 100755 index 000000000..3725c068a --- /dev/null +++ b/modules/io/tests/unit_tests/load_figure.dia.ref @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- TEST WITH GRAPHIC --> +// +f = gcf(); +sleep(500); +f.resizefcn = "disp(""should not be called"")"; +save("TMPDIR/load_uimenu.sod", "f"); +delete(gcf());clear f; +load("TMPDIR/load_uimenu.sod"); +assert_checkequal(get(f, "type"), "Figure"); diff --git a/modules/io/tests/unit_tests/load_figure.tst b/modules/io/tests/unit_tests/load_figure.tst new file mode 100755 index 000000000..02d351b8b --- /dev/null +++ b/modules/io/tests/unit_tests/load_figure.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- TEST WITH GRAPHIC --> +// + +f = gcf(); +sleep(500); +f.resizefcn = "disp(""should not be called"")"; +save("TMPDIR/load_uimenu.sod", "f"); +delete(gcf());clear f; +load("TMPDIR/load_uimenu.sod"); +assert_checkequal(get(f, "type"), "Figure"); diff --git a/modules/io/tests/unit_tests/saveload.dia.ref b/modules/io/tests/unit_tests/saveload.dia.ref new file mode 100755 index 000000000..42a28c3a1 --- /dev/null +++ b/modules/io/tests/unit_tests/saveload.dia.ref @@ -0,0 +1,188 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// Copyright (C) 2012 - Scilab Enterprises - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- TEST WITH GRAPHIC --> +// +funcprot(0); +function r = Check(a,b,c,d) + [lhs,rhs] = argn(); + r = %t + filename = TMPDIR + "/saveloadtst_mysave"; + select rhs + case 1 then + a1 = a; + save(filename,"a1"); + a1 = null(); + load(filename); + if or(a1<>a) then + r = %f; + end + case 2 then + a1 = a; + b1 = b; + save(filename,"a1","b1"); + a1 = null(); + b1 = null(); + load(filename); + if or(a1<>a)|or(b1<>b) then + r = %f; + end + case 3 then + a1 = a; + b1 = b; + c1 = c; + save(filename,"a1","b1","c1"); + a1 = null(); + b1 = null(); + c1 = null(); + load(filename); + if or(a1<>a)|or(b1<>b)|or(c1<>c) then + r = %f; + end + case 4 then + a1 = a; + b1 = b; + c1 = c; + d1 = d; + save(filename,"a1","b1","c1","d1"); + a1 = null(); + b1 = null(); + c1 = null(); + d1 = null(); + load(filename); + if or(a1<>a)|or(b1<>b)|or(c1<>c)|or(d1<>d) then + r = %f; + end + end +endfunction +a=[];assert_checktrue(Check(a)); +a=1;assert_checktrue(Check(a)); +a=[1 2 3];assert_checktrue(Check(a)); +a=[1 2 3;4 5 6];assert_checktrue(Check(a)); +a=1:100000;assert_checktrue(Check(a)); +a=1+%i;assert_checktrue(Check(a)); +a=[1 2+%i 3];assert_checktrue(Check(a)); +a=[1 2 3;4 5+%i 6];assert_checktrue(Check(a)); +a=1:100000;a(35)=%i;assert_checktrue(Check(a)); +a="";assert_checktrue(Check(a)); +a="123";assert_checktrue(Check(a)); +a=["1","abcdefgs";"" "ABDCEFGHIJKLMN"];assert_checktrue(Check(a)); +a=string(1:10000);assert_checktrue(Check(a)); +a=1+%s;assert_checktrue(Check(a)); +a=[1 2+%s 3];assert_checktrue(Check(a)); +a=[1 2 3;4 5 6+%s];assert_checktrue(Check(a)); +a=1:10000;a(4)=%s;assert_checktrue(Check(a)); +a=1+%i+%s;assert_checktrue(Check(a)); +a=[1 2+%i 3+%s];assert_checktrue(Check(a)); +a=[1 2+%s 3;4 5+%i 6];assert_checktrue(Check(a)); +a=1:100;a(35)=%i;a(1)=%s;assert_checktrue(Check(a)); +a=%t;assert_checktrue(Check(a)); +a=rand(100,100)>0.5;assert_checktrue(Check(a)); +//a=mtlb_sparse(sparse(1));assert_checktrue(Check(a)); // Deactivated: See bug #11795 +//a=mtlb_sparse(sprand(100,100,0.1));assert_checktrue(Check(a)); // Deactivated: See bug #11795 +//a=mtlb_sparse(sparse(zeros(100,100)));assert_checktrue(Check(a)); // Deactivated: See bug #11795 +a=sparse(1)==1;assert_checktrue(Check(a)); +a=sprand(100,100,0.1)<0.5;assert_checktrue(Check(a)); +a=sparse(zeros(100,100))==1;assert_checktrue(Check(a)); +//a=1:$;assert_checktrue(Check(a)); // Deactivated: See bug #11796 +//a=1:3:$;assert_checktrue(Check(a)); // Deactivated: See bug #11796 +a=int8(1);assert_checktrue(Check(a)); +a=int8(1:9);assert_checktrue(Check(a)); +a=int8(1:10000);assert_checktrue(Check(a)); +a=uint8(1);assert_checktrue(Check(a)); +a=uint8(1:9);assert_checktrue(Check(a)); +a=uint8(1:10000);assert_checktrue(Check(a)); +a=int16(1);assert_checktrue(Check(a)); +a=int16(1:9);assert_checktrue(Check(a)); +a=int16(1:10000);assert_checktrue(Check(a)); +a=uint16(1);assert_checktrue(Check(a)); +a=uint16(1:9);assert_checktrue(Check(a)); +a=uint16(1:10000);assert_checktrue(Check(a)); +a=int32(1);assert_checktrue(Check(a)); +a=int32(1:9);assert_checktrue(Check(a)); +a=int32(1:10000);assert_checktrue(Check(a)); +a=uint32(1);assert_checktrue(Check(a)); +a=uint32(1:9);assert_checktrue(Check(a)); +a=uint32(1:10000);assert_checktrue(Check(a)); +a=list();assert_checktrue(Check(a)); +a=list(1);assert_checktrue(Check(a)); +a=list(1,rand(10,10),"asdfsf");assert_checktrue(Check(a)); +a=list(1,rand(10,10),"asdfsf",poly(rand(10,10),"s"));assert_checktrue(Check(a)); +a=list(1);a(4)="as";assert_checktrue(Check(a)); +a=list(1,rand(10,10),"asdfsf",poly(rand(1,11),"s","c"));assert_checktrue(Check(a)); +a=list(list());assert_checktrue(Check(a)); +a=list(list(1));assert_checktrue(Check(a)); +a=list(list(1,rand(10,10),"asdfsf"));assert_checktrue(Check(a)); +a=list(list(1,rand(10,10),"asdfsf",poly(rand(10,10),"s")));assert_checktrue(Check(a)); +a=list(1);a(4)="as";a=list(a);assert_checktrue(Check(a)); +a=list(list(1,rand(10,10),"asdfsf",poly(rand(1,11),"s","c")));assert_checktrue(Check(a)); +a=list(list(),2);assert_checktrue(Check(a)); +a=list(list(1),rand(3,3));assert_checktrue(Check(a)); +a=list(list(1,rand(10,10),"asdfsf"),"sdfs");assert_checktrue(Check(a)); +a=list(list(1,rand(10,10),"asdfsf",poly(rand(10,10),"s")),$);assert_checktrue(Check(a)); +a=list(1);a(4)="as";a=list(a,[]);assert_checktrue(Check(a)); +a=list(list(1,rand(10,10),"asdfsf",poly(rand(1,11),"s","c")),list());assert_checktrue(Check(a)); +a = list(); +a(3) = 3; +assert_checktrue(Check(a)); +a=[];b=1;c=[1 2 3];d=[1 2 3;4 5 6]; +assert_checktrue(Check(a,b)); +assert_checktrue(Check(a,b,c)); +assert_checktrue(Check(a,b,c,d)); +a=1+%i;b=[1 2+%i 3];c=[1 2 3;4 5+%i 6];d=1:100000;d(35)=%i; +assert_checktrue(Check(a,b)); +assert_checktrue(Check(a,b,c)); +assert_checktrue(Check(a,b,c,d)); +a=sprand(100,100,0.1); +b=sparse(zeros(100,100))==1; +c=list(list(1,rand(10,10),"asdfsf",poly(rand(1,11),"s","c")),list()); +assert_checktrue(Check(a,b)); +assert_checktrue(Check(a,b,c)); +//test save/load macro +function a = toto(x,y) + a = x + y; +endfunction +l = list(toto); +ref = toto(3*5, 9*3); +save(TMPDIR + "/savemacro.sod", "toto"); +clear toto; +load(TMPDIR + "/savemacro.sod"); +assert_checkequal(toto(3*5, 9*3), ref); +assert_checkequal(type(toto), 13); +save(TMPDIR + "/savemacro.sod", "l"); +clear l; +load(TMPDIR + "/savemacro.sod"); +assert_checkequal(l(1)(3*5, 9*3), ref); +assert_checkequal(type(l(1)), 13); +clear toto; +deff("a = toto(x,y)", "a = x + y;", "n"); +save(TMPDIR + "/savemacro.sod", "toto"); +clear toto; +load(TMPDIR + "/savemacro.sod"); +assert_checkequal(toto(3*5, 9*3), ref); +assert_checkequal(type(toto), 11); +//create plot3d with light +plot3d(); +l = light(); +f = gcf(); +l.position = [-1, -2, 1]; +//save image in a file +xs2png(f, TMPDIR + "/saveplot.png"); +//compute md5 of saved image +md5_1 = getmd5(TMPDIR + "/saveplot.png"); +//save figure handle in sod format +save(TMPDIR + "/saveplot.sod", "f"); +//clear env +close(); +clear f l; +load(TMPDIR + "/saveplot.sod"); +l = f.children(1).children(1); +assert_checkequal(l.position, [-1, -2, 1]); +xs2png(f, TMPDIR + "/saveplot2.png"); +md5_2 = getmd5(TMPDIR + "/saveplot2.png"); +assert_checkequal(md5_1, md5_2); diff --git a/modules/io/tests/unit_tests/saveload.tst b/modules/io/tests/unit_tests/saveload.tst new file mode 100755 index 000000000..015da8b34 --- /dev/null +++ b/modules/io/tests/unit_tests/saveload.tst @@ -0,0 +1,224 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// Copyright (C) 2012 - Scilab Enterprises - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- TEST WITH GRAPHIC --> +// + +funcprot(0); + +function r = Check(a,b,c,d) + [lhs,rhs] = argn(); + r = %t + filename = TMPDIR + "/saveloadtst_mysave"; + select rhs + case 1 then + a1 = a; + save(filename,"a1"); + a1 = null(); + load(filename); + if or(a1<>a) then + r = %f; + end + case 2 then + a1 = a; + b1 = b; + save(filename,"a1","b1"); + a1 = null(); + b1 = null(); + load(filename); + if or(a1<>a)|or(b1<>b) then + r = %f; + end + case 3 then + a1 = a; + b1 = b; + c1 = c; + save(filename,"a1","b1","c1"); + a1 = null(); + b1 = null(); + c1 = null(); + load(filename); + if or(a1<>a)|or(b1<>b)|or(c1<>c) then + r = %f; + end + case 4 then + a1 = a; + b1 = b; + c1 = c; + d1 = d; + save(filename,"a1","b1","c1","d1"); + a1 = null(); + b1 = null(); + c1 = null(); + d1 = null(); + load(filename); + if or(a1<>a)|or(b1<>b)|or(c1<>c)|or(d1<>d) then + r = %f; + end + end +endfunction + +a=[];assert_checktrue(Check(a)); +a=1;assert_checktrue(Check(a)); +a=[1 2 3];assert_checktrue(Check(a)); +a=[1 2 3;4 5 6];assert_checktrue(Check(a)); +a=1:100000;assert_checktrue(Check(a)); + +a=1+%i;assert_checktrue(Check(a)); +a=[1 2+%i 3];assert_checktrue(Check(a)); +a=[1 2 3;4 5+%i 6];assert_checktrue(Check(a)); +a=1:100000;a(35)=%i;assert_checktrue(Check(a)); + +a="";assert_checktrue(Check(a)); +a="123";assert_checktrue(Check(a)); +a=["1","abcdefgs";"" "ABDCEFGHIJKLMN"];assert_checktrue(Check(a)); +a=string(1:10000);assert_checktrue(Check(a)); + + +a=1+%s;assert_checktrue(Check(a)); +a=[1 2+%s 3];assert_checktrue(Check(a)); +a=[1 2 3;4 5 6+%s];assert_checktrue(Check(a)); +a=1:10000;a(4)=%s;assert_checktrue(Check(a)); + +a=1+%i+%s;assert_checktrue(Check(a)); +a=[1 2+%i 3+%s];assert_checktrue(Check(a)); +a=[1 2+%s 3;4 5+%i 6];assert_checktrue(Check(a)); +a=1:100;a(35)=%i;a(1)=%s;assert_checktrue(Check(a)); + + +a=%t;assert_checktrue(Check(a)); +a=rand(100,100)>0.5;assert_checktrue(Check(a)); + +//a=mtlb_sparse(sparse(1));assert_checktrue(Check(a)); // Deactivated: See bug #11795 +//a=mtlb_sparse(sprand(100,100,0.1));assert_checktrue(Check(a)); // Deactivated: See bug #11795 +//a=mtlb_sparse(sparse(zeros(100,100)));assert_checktrue(Check(a)); // Deactivated: See bug #11795 + +a=sparse(1)==1;assert_checktrue(Check(a)); +a=sprand(100,100,0.1)<0.5;assert_checktrue(Check(a)); +a=sparse(zeros(100,100))==1;assert_checktrue(Check(a)); + +//a=1:$;assert_checktrue(Check(a)); // Deactivated: See bug #11796 +//a=1:3:$;assert_checktrue(Check(a)); // Deactivated: See bug #11796 + +a=int8(1);assert_checktrue(Check(a)); +a=int8(1:9);assert_checktrue(Check(a)); +a=int8(1:10000);assert_checktrue(Check(a)); +a=uint8(1);assert_checktrue(Check(a)); +a=uint8(1:9);assert_checktrue(Check(a)); +a=uint8(1:10000);assert_checktrue(Check(a)); + +a=int16(1);assert_checktrue(Check(a)); +a=int16(1:9);assert_checktrue(Check(a)); +a=int16(1:10000);assert_checktrue(Check(a)); +a=uint16(1);assert_checktrue(Check(a)); +a=uint16(1:9);assert_checktrue(Check(a)); +a=uint16(1:10000);assert_checktrue(Check(a)); + +a=int32(1);assert_checktrue(Check(a)); +a=int32(1:9);assert_checktrue(Check(a)); +a=int32(1:10000);assert_checktrue(Check(a)); +a=uint32(1);assert_checktrue(Check(a)); +a=uint32(1:9);assert_checktrue(Check(a)); +a=uint32(1:10000);assert_checktrue(Check(a)); + +a=list();assert_checktrue(Check(a)); +a=list(1);assert_checktrue(Check(a)); +a=list(1,rand(10,10),"asdfsf");assert_checktrue(Check(a)); +a=list(1,rand(10,10),"asdfsf",poly(rand(10,10),"s"));assert_checktrue(Check(a)); +a=list(1);a(4)="as";assert_checktrue(Check(a)); +a=list(1,rand(10,10),"asdfsf",poly(rand(1,11),"s","c"));assert_checktrue(Check(a)); + +a=list(list());assert_checktrue(Check(a)); +a=list(list(1));assert_checktrue(Check(a)); +a=list(list(1,rand(10,10),"asdfsf"));assert_checktrue(Check(a)); +a=list(list(1,rand(10,10),"asdfsf",poly(rand(10,10),"s")));assert_checktrue(Check(a)); +a=list(1);a(4)="as";a=list(a);assert_checktrue(Check(a)); +a=list(list(1,rand(10,10),"asdfsf",poly(rand(1,11),"s","c")));assert_checktrue(Check(a)); + + +a=list(list(),2);assert_checktrue(Check(a)); +a=list(list(1),rand(3,3));assert_checktrue(Check(a)); +a=list(list(1,rand(10,10),"asdfsf"),"sdfs");assert_checktrue(Check(a)); +a=list(list(1,rand(10,10),"asdfsf",poly(rand(10,10),"s")),$);assert_checktrue(Check(a)); +a=list(1);a(4)="as";a=list(a,[]);assert_checktrue(Check(a)); +a=list(list(1,rand(10,10),"asdfsf",poly(rand(1,11),"s","c")),list());assert_checktrue(Check(a)); + +a = list(); +a(3) = 3; +assert_checktrue(Check(a)); + +a=[];b=1;c=[1 2 3];d=[1 2 3;4 5 6]; +assert_checktrue(Check(a,b)); +assert_checktrue(Check(a,b,c)); +assert_checktrue(Check(a,b,c,d)); + +a=1+%i;b=[1 2+%i 3];c=[1 2 3;4 5+%i 6];d=1:100000;d(35)=%i; +assert_checktrue(Check(a,b)); +assert_checktrue(Check(a,b,c)); +assert_checktrue(Check(a,b,c,d)); + +a=sprand(100,100,0.1); +b=sparse(zeros(100,100))==1; +c=list(list(1,rand(10,10),"asdfsf",poly(rand(1,11),"s","c")),list()); +assert_checktrue(Check(a,b)); +assert_checktrue(Check(a,b,c)); + +//test save/load macro +function a = toto(x,y) + a = x + y; +endfunction +l = list(toto); + +ref = toto(3*5, 9*3); +save(TMPDIR + "/savemacro.sod", "toto"); +clear toto; +load(TMPDIR + "/savemacro.sod"); +assert_checkequal(toto(3*5, 9*3), ref); +assert_checkequal(type(toto), 13); + +save(TMPDIR + "/savemacro.sod", "l"); +clear l; +load(TMPDIR + "/savemacro.sod"); +assert_checkequal(l(1)(3*5, 9*3), ref); +assert_checkequal(type(l(1)), 13); + +clear toto; +deff("a = toto(x,y)", "a = x + y;", "n"); +save(TMPDIR + "/savemacro.sod", "toto"); +clear toto; +load(TMPDIR + "/savemacro.sod"); +assert_checkequal(toto(3*5, 9*3), ref); +assert_checkequal(type(toto), 11); + + +//create plot3d with light +plot3d(); +l = light(); +f = gcf(); +l.position = [-1, -2, 1]; + +//save image in a file +xs2png(f, TMPDIR + "/saveplot.png"); +//compute md5 of saved image +md5_1 = getmd5(TMPDIR + "/saveplot.png"); +//save figure handle in sod format +save(TMPDIR + "/saveplot.sod", "f"); + +//clear env +close(); +clear f l; + +load(TMPDIR + "/saveplot.sod"); +l = f.children(1).children(1); +assert_checkequal(l.position, [-1, -2, 1]); +xs2png(f, TMPDIR + "/saveplot2.png"); +md5_2 = getmd5(TMPDIR + "/saveplot2.png"); +assert_checkequal(md5_1, md5_2); + + + diff --git a/modules/io/tests/unit_tests/saveload_v5.dia.ref b/modules/io/tests/unit_tests/saveload_v5.dia.ref new file mode 100755 index 000000000..9c58957e0 --- /dev/null +++ b/modules/io/tests/unit_tests/saveload_v5.dia.ref @@ -0,0 +1,121 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +warning("off"); +funcprot(0); +global filename; +filename = TMPDIR+"/saveloadtst_mysave"; +deff('r=Check(a,b,c,d)',[ +'[lhs,rhs]=argn(),r=%t' +'global filename' +'select rhs' +'case 1 then' +'a1=a;save(filename,a1);a1=null();load(filename);' +'if or(a1<>a) then r=%f,end' +'case 2 then' +'a1=a;b1=b;save(filename,a1,b1);a1=null();b1=null();load(filename);' +'if or(a1<>a)|or(b1<>b) then r=%f,end' +'case 3 then' +'a1=a;b1=b;c1=c;' +'save(filename,a1,b1,c1);' +'a1=null();b1=null();c1=null();load(filename);' +'if or(a1<>a)|or(b1<>b)|or(c1<>c) then r=%f,end' +'case 4 then' +'a1=a;b1=b;c1=c;d1=d' +'save(filename,a1,b1,c1,d1);' +'a1=null();b1=null();c1=null();;d1=null();load(filename);' +'if or(a1<>a)|or(b1<>b)|or(c1<>c)|or(d1<>d) then r=%f,end' +'end,if ~r then bugmes();quit;end']) +a=[];if ~Check(a) then bugmes();quit;end +a=1;if ~Check(a) then bugmes();quit;end +a=[1 2 3];if ~Check(a) then bugmes();quit;end +a=[1 2 3;4 5 6];if ~Check(a) then bugmes();quit;end +a=1:100000;if ~Check(a) then bugmes();quit;end +a=1+%i;if ~Check(a) then bugmes();quit;end +a=[1 2+%i 3];if ~Check(a) then bugmes();quit;end +a=[1 2 3;4 5+%i 6];if ~Check(a) then bugmes();quit;end +a=1:100000;a(35)=%i;if ~Check(a) then bugmes();quit;end +a='';if ~Check(a) then bugmes();quit;end +a='123';if ~Check(a) then bugmes();quit;end +a=['1','abcdefgs';'' 'ABDCEFGHIJKLMN'];if ~Check(a) then bugmes();quit;end +a=string(1:10000);if ~Check(a) then bugmes();quit;end +a=1+%s;if ~Check(a) then bugmes();quit;end +a=[1 2+%s 3];if ~Check(a) then bugmes();quit;end +a=[1 2 3;4 5 6+%s];if ~Check(a) then bugmes();quit;end +a=1:10000;a(4)=%s;if ~Check(a) then bugmes();quit;end +a=1+%i+%s;if ~Check(a) then bugmes();quit;end +a=[1 2+%i 3+%s];if ~Check(a) then bugmes();quit;end +a=[1 2+%s 3;4 5+%i 6];if ~Check(a) then bugmes();quit;end +a=1:100;a(35)=%i;a(1)=%s;if ~Check(a) then bugmes();quit;end +a=%t;if ~Check(a) then bugmes();quit;end +a=rand(100,100)>0.5;if ~Check(a) then bugmes();quit;end +a=mtlb_sparse(sparse(1));if ~Check(a) then bugmes();quit;end +a=mtlb_sparse(sprand(100,100,0.1));if ~Check(a) then bugmes();quit;end +a=mtlb_sparse(sparse(zeros(100,100)));if ~Check(a) then bugmes();quit;end +a=sparse(1)==1;if ~Check(a) then bugmes();quit;end +a=sprand(100,100,0.1)<0.5;if ~Check(a) then bugmes();quit;end +a=sparse(zeros(100,100))==1;if ~Check(a) then bugmes();quit;end +a=1:$;if ~Check(a) then bugmes();quit;end +a=1:3:$;if ~Check(a) then bugmes();quit;end +a=int8(1);if ~Check(a) then bugmes();quit;end +a=int8(1:9);if ~Check(a) then bugmes();quit;end +a=int8(1:10000);if ~Check(a) then bugmes();quit;end +a=uint8(1);if ~Check(a) then bugmes();quit;end +a=uint8(1:9);if ~Check(a) then bugmes();quit;end +a=uint8(1:10000);if ~Check(a) then bugmes();quit;end +a=int16(1);if ~Check(a) then bugmes();quit;end +a=int16(1:9);if ~Check(a) then bugmes();quit;end +a=int16(1:10000);if ~Check(a) then bugmes();quit;end +a=uint16(1);if ~Check(a) then bugmes();quit;end +a=uint16(1:9);if ~Check(a) then bugmes();quit;end +a=uint16(1:10000);if ~Check(a) then bugmes();quit;end +a=int32(1);if ~Check(a) then bugmes();quit;end +a=int32(1:9);if ~Check(a) then bugmes();quit;end +a=int32(1:10000);if ~Check(a) then bugmes();quit;end +a=uint32(1);if ~Check(a) then bugmes();quit;end +a=uint32(1:9);if ~Check(a) then bugmes();quit;end +a=uint32(1:10000);if ~Check(a) then bugmes();quit;end +deff('x=a(n)','x=n+1','n');if ~Check(a) then bugmes();quit;end +deff('x=a(n)','x=n+1');if ~Check(a) then bugmes();quit;end +deff('x=a','x=n+1','n');if ~Check(a) then bugmes();quit;end +deff('x=a','x=n+1');if ~Check(a) then bugmes();quit;end +deff('a(n)','x=n+1','n');if ~Check(a) then bugmes();quit;end +deff('a(n)','x=n+1');if ~Check(a) then bugmes();quit;end +deff('a()','x=n+1','n');if ~Check(a) then bugmes();quit;end +deff('a()','x=n+1');if ~Check(a) then bugmes();quit;end +a=list();if ~Check(a) then bugmes();quit;end +a=list(1);if ~Check(a) then bugmes();quit;end +a=list(1,rand(10,10),'asdfsf');if ~Check(a) then bugmes();quit;end +a=list(1,rand(10,10),'asdfsf',poly(rand(10,10),'s'));if ~Check(a) then bugmes();quit;end +a=list(1);a(4)='as';if ~Check(a) then bugmes();quit;end +a=list(1,rand(10,10),'asdfsf',poly(rand(1,11),'s','c'));if ~Check(a) then bugmes();quit;end +a=list(list());if ~Check(a) then bugmes();quit;end +a=list(list(1));if ~Check(a) then bugmes();quit;end +a=list(list(1,rand(10,10),'asdfsf'));if ~Check(a) then bugmes();quit;end +a=list(list(1,rand(10,10),'asdfsf',poly(rand(10,10),'s')));if ~Check(a) then bugmes();quit;end +a=list(1);a(4)='as';a=list(a);if ~Check(a) then bugmes();quit;end +a=list(list(1,rand(10,10),'asdfsf',poly(rand(1,11),'s','c')));if ~Check(a) then bugmes();quit;end +a=list(list(),2);if ~Check(a) then bugmes();quit;end +a=list(list(1),rand(3,3));if ~Check(a) then bugmes();quit;end +a=list(list(1,rand(10,10),'asdfsf'),'sdfs');if ~Check(a) then bugmes();quit;end +a=list(list(1,rand(10,10),'asdfsf',poly(rand(10,10),'s')),$);if ~Check(a) then bugmes();quit;end +a=list(1);a(4)='as';a=list(a,[]);if ~Check(a) then bugmes();quit;end +a=list(list(1,rand(10,10),'asdfsf',poly(rand(1,11),'s','c')),list());if ~Check(a) then bugmes();quit;end +a=[];b=1;c=[1 2 3];d=[1 2 3;4 5 6]; +if ~Check(a,b) then bugmes();quit;end +if ~Check(a,b,c) then bugmes();quit;end +if ~Check(a,b,c,d) then bugmes();quit;end +a=1+%i;b=[1 2+%i 3];c=[1 2 3;4 5+%i 6];d=1:100000;d(35)=%i; +if ~Check(a,b) then bugmes();quit;end +if ~Check(a,b,c) then bugmes();quit;end +if ~Check(a,b,c,d) then bugmes();quit;end +a=sprand(100,100,0.1); +b=sparse(zeros(100,100))==1; +c=list(list(1,rand(10,10),'asdfsf',poly(rand(1,11),'s','c')),list()); +deff('d()','x=n+1','n'); +if ~Check(a,b) then bugmes();quit;end +if ~Check(a,b,c) then bugmes();quit;end +if ~Check(a,b,c,d) then bugmes();quit;end diff --git a/modules/io/tests/unit_tests/saveload_v5.tst b/modules/io/tests/unit_tests/saveload_v5.tst new file mode 100755 index 000000000..645aa1c69 --- /dev/null +++ b/modules/io/tests/unit_tests/saveload_v5.tst @@ -0,0 +1,154 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +warning("off"); + +funcprot(0); + +global filename; +filename = TMPDIR+"/saveloadtst_mysave"; + +deff('r=Check(a,b,c,d)',[ +'[lhs,rhs]=argn(),r=%t' +'global filename' +'select rhs' +'case 1 then' +'a1=a;save(filename,a1);a1=null();load(filename);' +'if or(a1<>a) then r=%f,end' +'case 2 then' +'a1=a;b1=b;save(filename,a1,b1);a1=null();b1=null();load(filename);' +'if or(a1<>a)|or(b1<>b) then r=%f,end' +'case 3 then' +'a1=a;b1=b;c1=c;' +'save(filename,a1,b1,c1);' +'a1=null();b1=null();c1=null();load(filename);' +'if or(a1<>a)|or(b1<>b)|or(c1<>c) then r=%f,end' +'case 4 then' +'a1=a;b1=b;c1=c;d1=d' +'save(filename,a1,b1,c1,d1);' +'a1=null();b1=null();c1=null();;d1=null();load(filename);' +'if or(a1<>a)|or(b1<>b)|or(c1<>c)|or(d1<>d) then r=%f,end' +'end,if ~r then pause,end']) + +a=[];if ~Check(a) then pause,end +a=1;if ~Check(a) then pause,end +a=[1 2 3];if ~Check(a) then pause,end +a=[1 2 3;4 5 6];if ~Check(a) then pause,end +a=1:100000;if ~Check(a) then pause,end + +a=1+%i;if ~Check(a) then pause,end +a=[1 2+%i 3];if ~Check(a) then pause,end +a=[1 2 3;4 5+%i 6];if ~Check(a) then pause,end +a=1:100000;a(35)=%i;if ~Check(a) then pause,end + +a='';if ~Check(a) then pause,end +a='123';if ~Check(a) then pause,end +a=['1','abcdefgs';'' 'ABDCEFGHIJKLMN'];if ~Check(a) then pause,end +a=string(1:10000);if ~Check(a) then pause,end + + +a=1+%s;if ~Check(a) then pause,end +a=[1 2+%s 3];if ~Check(a) then pause,end +a=[1 2 3;4 5 6+%s];if ~Check(a) then pause,end +a=1:10000;a(4)=%s;if ~Check(a) then pause,end + +a=1+%i+%s;if ~Check(a) then pause,end +a=[1 2+%i 3+%s];if ~Check(a) then pause,end +a=[1 2+%s 3;4 5+%i 6];if ~Check(a) then pause,end +a=1:100;a(35)=%i;a(1)=%s;if ~Check(a) then pause,end + + +a=%t;if ~Check(a) then pause,end +a=rand(100,100)>0.5;if ~Check(a) then pause,end + +a=mtlb_sparse(sparse(1));if ~Check(a) then pause,end +a=mtlb_sparse(sprand(100,100,0.1));if ~Check(a) then pause,end +a=mtlb_sparse(sparse(zeros(100,100)));if ~Check(a) then pause,end + + + + +a=sparse(1)==1;if ~Check(a) then pause,end +a=sprand(100,100,0.1)<0.5;if ~Check(a) then pause,end +a=sparse(zeros(100,100))==1;if ~Check(a) then pause,end + +a=1:$;if ~Check(a) then pause,end +a=1:3:$;if ~Check(a) then pause,end + +a=int8(1);if ~Check(a) then pause,end +a=int8(1:9);if ~Check(a) then pause,end +a=int8(1:10000);if ~Check(a) then pause,end +a=uint8(1);if ~Check(a) then pause,end +a=uint8(1:9);if ~Check(a) then pause,end +a=uint8(1:10000);if ~Check(a) then pause,end + +a=int16(1);if ~Check(a) then pause,end +a=int16(1:9);if ~Check(a) then pause,end +a=int16(1:10000);if ~Check(a) then pause,end +a=uint16(1);if ~Check(a) then pause,end +a=uint16(1:9);if ~Check(a) then pause,end +a=uint16(1:10000);if ~Check(a) then pause,end + +a=int32(1);if ~Check(a) then pause,end +a=int32(1:9);if ~Check(a) then pause,end +a=int32(1:10000);if ~Check(a) then pause,end +a=uint32(1);if ~Check(a) then pause,end +a=uint32(1:9);if ~Check(a) then pause,end +a=uint32(1:10000);if ~Check(a) then pause,end + + +deff('x=a(n)','x=n+1','n');if ~Check(a) then pause,end +deff('x=a(n)','x=n+1');if ~Check(a) then pause,end +deff('x=a','x=n+1','n');if ~Check(a) then pause,end +deff('x=a','x=n+1');if ~Check(a) then pause,end +deff('a(n)','x=n+1','n');if ~Check(a) then pause,end +deff('a(n)','x=n+1');if ~Check(a) then pause,end +deff('a()','x=n+1','n');if ~Check(a) then pause,end +deff('a()','x=n+1');if ~Check(a) then pause,end + +a=list();if ~Check(a) then pause,end +a=list(1);if ~Check(a) then pause,end +a=list(1,rand(10,10),'asdfsf');if ~Check(a) then pause,end +a=list(1,rand(10,10),'asdfsf',poly(rand(10,10),'s'));if ~Check(a) then pause,end +a=list(1);a(4)='as';if ~Check(a) then pause,end +a=list(1,rand(10,10),'asdfsf',poly(rand(1,11),'s','c'));if ~Check(a) then pause,end + +a=list(list());if ~Check(a) then pause,end +a=list(list(1));if ~Check(a) then pause,end +a=list(list(1,rand(10,10),'asdfsf'));if ~Check(a) then pause,end +a=list(list(1,rand(10,10),'asdfsf',poly(rand(10,10),'s')));if ~Check(a) then pause,end +a=list(1);a(4)='as';a=list(a);if ~Check(a) then pause,end +a=list(list(1,rand(10,10),'asdfsf',poly(rand(1,11),'s','c')));if ~Check(a) then pause,end + + +a=list(list(),2);if ~Check(a) then pause,end +a=list(list(1),rand(3,3));if ~Check(a) then pause,end +a=list(list(1,rand(10,10),'asdfsf'),'sdfs');if ~Check(a) then pause,end +a=list(list(1,rand(10,10),'asdfsf',poly(rand(10,10),'s')),$);if ~Check(a) then pause,end +a=list(1);a(4)='as';a=list(a,[]);if ~Check(a) then pause,end +a=list(list(1,rand(10,10),'asdfsf',poly(rand(1,11),'s','c')),list());if ~Check(a) then pause,end + + + +a=[];b=1;c=[1 2 3];d=[1 2 3;4 5 6]; +if ~Check(a,b) then pause,end +if ~Check(a,b,c) then pause,end +if ~Check(a,b,c,d) then pause,end + +a=1+%i;b=[1 2+%i 3];c=[1 2 3;4 5+%i 6];d=1:100000;d(35)=%i; +if ~Check(a,b) then pause,end +if ~Check(a,b,c) then pause,end +if ~Check(a,b,c,d) then pause,end + +a=sprand(100,100,0.1); +b=sparse(zeros(100,100))==1; +c=list(list(1,rand(10,10),'asdfsf',poly(rand(1,11),'s','c')),list()); +deff('d()','x=n+1','n'); +if ~Check(a,b) then pause,end +if ~Check(a,b,c) then pause,end +if ~Check(a,b,c,d) then pause,end + diff --git a/modules/io/tests/unit_tests/searchenv.encoding.dia.ref b/modules/io/tests/unit_tests/searchenv.encoding.dia.ref new file mode 100755 index 000000000..6aaa5689d --- /dev/null +++ b/modules/io/tests/unit_tests/searchenv.encoding.dia.ref @@ -0,0 +1,41 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Antoine Elias - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +ilib_verbose(0); +chdir(TMPDIR); +exec(SCI+"/modules/localization/tests/unit_tests/CreateDir.sce", -1); +fileC = ['void test(){}']; +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"프로그램", +"프로그램", +"תוכנית"]; +PathOrigin = getenv("PATH"); +if getos() == 'Windows' then + for i = 1 : size(tab_ref,'*') + sz = "dir_" + tab_ref(i); + a = chdir(sz); + assert_checkequal(a, %T); + szTemp = getshortpathname(TMPDIR + filesep() + sz); + NewPath = PathOrigin + ";" + szTemp; + setenv("PATH", NewPath); + mputl(fileC,'test.c'); + ilib_for_link('test','test.c',[],"c"); + chdir(SCI); + commandstr = "link(" + """libtest" + getdynlibext() +""")"; + ierr = execstr(commandstr, "errcatch"); + assert_checkequal(ierr, 0); + ulink(); + setenv("PATH", PathOrigin); + chdir(TMPDIR); + end +end +sleep(2000); +chdir(TMPDIR); diff --git a/modules/io/tests/unit_tests/searchenv.encoding.tst b/modules/io/tests/unit_tests/searchenv.encoding.tst new file mode 100755 index 000000000..eb85e6dcf --- /dev/null +++ b/modules/io/tests/unit_tests/searchenv.encoding.tst @@ -0,0 +1,52 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Antoine Elias - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + + +ilib_verbose(0); + +chdir(TMPDIR); + +exec(SCI+"/modules/localization/tests/unit_tests/CreateDir.sce", -1); + +fileC = ['void test(){}']; + +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"프로그램", +"프로그램", +"תוכנית"]; + +PathOrigin = getenv("PATH"); + +if getos() == 'Windows' then + + for i = 1 : size(tab_ref,'*') + sz = "dir_" + tab_ref(i); + a = chdir(sz); + assert_checkequal(a, %T); + szTemp = getshortpathname(TMPDIR + filesep() + sz); + NewPath = PathOrigin + ";" + szTemp; + setenv("PATH", NewPath); + mputl(fileC,'test.c'); + ilib_for_link('test','test.c',[],"c"); + chdir(SCI); + commandstr = "link(" + """libtest" + getdynlibext() +""")"; + ierr = execstr(commandstr, "errcatch"); + assert_checkequal(ierr, 0); + ulink(); + setenv("PATH", PathOrigin); + chdir(TMPDIR); + end + +end +sleep(2000); +chdir(TMPDIR); + diff --git a/modules/io/tests/unit_tests/setgetenv.dia.ref b/modules/io/tests/unit_tests/setgetenv.dia.ref new file mode 100755 index 000000000..0fe883bca --- /dev/null +++ b/modules/io/tests/unit_tests/setgetenv.dia.ref @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - Yung-Jang Lee <yjlee123@gmail.com> +// Copyright (C) 2009 - INRIA - Sylvestre Ledru +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +specialName='中文' ; // for CP950, BIG5,zh_TW, zh_TW.utf-8, zh_CN,zh_CN.utf-8 +setenv('env',specialName); +if getenv('env') <> specialName then bugmes();quit;end +specialName='ЁЂЄЉф'; // russian LANG=ru_RU, ru_RU.utf-8 +setenv('env',specialName); +if getenv('env') <> specialName then bugmes();quit;end +specialName='グゲゾタ'; // Japaness LANG=ja_JP , +setenv('env',specialName); +if getenv('env') <> specialName then bugmes();quit;end +specialName='메일링을'; // korean LANG=ko_KR, ko_KR=utf-8 +setenv('env',specialName); +if getenv('env') <> specialName then bugmes();quit;end +specialName='æøå'; // LANG=fr_FR,C,en_US, and fr_FR.utf +setenv('env',specialName); +if getenv('env') <> specialName then bugmes();quit;end diff --git a/modules/io/tests/unit_tests/setgetenv.tst b/modules/io/tests/unit_tests/setgetenv.tst new file mode 100755 index 000000000..1ef33f376 --- /dev/null +++ b/modules/io/tests/unit_tests/setgetenv.tst @@ -0,0 +1,28 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - Yung-Jang Lee <yjlee123@gmail.com> +// Copyright (C) 2009 - INRIA - Sylvestre Ledru +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +specialName='中文' ; // for CP950, BIG5,zh_TW, zh_TW.utf-8, zh_CN,zh_CN.utf-8 +setenv('env',specialName); +if getenv('env') <> specialName then pause, end + +specialName='ЁЂЄЉф'; // russian LANG=ru_RU, ru_RU.utf-8 +setenv('env',specialName); +if getenv('env') <> specialName then pause, end + +specialName='グゲゾタ'; // Japaness LANG=ja_JP , +setenv('env',specialName); +if getenv('env') <> specialName then pause, end + +specialName='메일링을'; // korean LANG=ko_KR, ko_KR=utf-8 +setenv('env',specialName); +if getenv('env') <> specialName then pause, end + +specialName='æøå'; // LANG=fr_FR,C,en_US, and fr_FR.utf +setenv('env',specialName); +if getenv('env') <> specialName then pause, end + diff --git a/modules/io/tests/unit_tests/setgetenv2.dia.ref b/modules/io/tests/unit_tests/setgetenv2.dia.ref new file mode 100755 index 000000000..e22715527 --- /dev/null +++ b/modules/io/tests/unit_tests/setgetenv2.dia.ref @@ -0,0 +1,32 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"프로그램", +"프로그램", +"תוכנית"]; +for i=1:size(tab_ref,"*") + var = "test" + string(i); + setenv(var, tab_ref(i)); + if(getenv(var) <> tab_ref(i)) then bugmes();quit;end + setenv(var, ""); +end +for i=1:size(tab_ref,"*") + val = "test" + string(i); + setenv(tab_ref(i), val); + if(getenv(tab_ref(i)) <> val) then bugmes();quit;end + setenv(var, ""); +end +for i=1:size(tab_ref,"*") + setenv(tab_ref(i), tab_ref(i)); + if(getenv(tab_ref(i)) <> tab_ref(i)) then bugmes();quit;end + setenv(var, ""); +end diff --git a/modules/io/tests/unit_tests/setgetenv2.tst b/modules/io/tests/unit_tests/setgetenv2.tst new file mode 100755 index 000000000..cf60fa502 --- /dev/null +++ b/modules/io/tests/unit_tests/setgetenv2.tst @@ -0,0 +1,36 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"프로그램", +"프로그램", +"תוכנית"]; + +for i=1:size(tab_ref,"*") + var = "test" + string(i); + setenv(var, tab_ref(i)); + if(getenv(var) <> tab_ref(i)) then pause,end + setenv(var, ""); +end + +for i=1:size(tab_ref,"*") + val = "test" + string(i); + setenv(tab_ref(i), val); + if(getenv(tab_ref(i)) <> val) then pause,end + setenv(var, ""); +end + +for i=1:size(tab_ref,"*") + setenv(tab_ref(i), tab_ref(i)); + if(getenv(tab_ref(i)) <> tab_ref(i)) then pause,end + setenv(var, ""); +end |