Set svn:eol-style to native
Pierre Marechal [Tue, 29 Jan 2008 07:41:54 +0000 (07:41 +0000)]
132 files changed:
scilab/modules/STRING_V2/tests/unit_tests/regexp.dia.ref
scilab/modules/core/tests/unit_tests/clearfun.dia.ref
scilab/modules/core/tests/unit_tests/clearfun.tst
scilab/modules/dynamic_link/Makefile.am
scilab/modules/dynamic_link/dynamic_link.iss
scilab/modules/dynamic_link/etc/dynamic_link.quit
scilab/modules/dynamic_link/etc/dynamic_link.start
scilab/modules/dynamic_link/help/en_US/G_make.xml
scilab/modules/dynamic_link/help/en_US/VCtoLCCLib.xml
scilab/modules/dynamic_link/help/en_US/addchapter.sce
scilab/modules/dynamic_link/help/en_US/addinter.xml
scilab/modules/dynamic_link/help/en_US/chooselcccompiler.xml
scilab/modules/dynamic_link/help/en_US/configure_lcc.xml
scilab/modules/dynamic_link/help/en_US/configure_msvc.xml
scilab/modules/dynamic_link/help/en_US/findlcccompiler.xml
scilab/modules/dynamic_link/help/en_US/findmsvccompiler.xml
scilab/modules/dynamic_link/help/en_US/haveacompiler.xml
scilab/modules/dynamic_link/help/en_US/ilib_build.xml
scilab/modules/dynamic_link/help/en_US/ilib_compile.xml
scilab/modules/dynamic_link/help/en_US/ilib_for_link.xml
scilab/modules/dynamic_link/help/en_US/ilib_gen_Make.xml
scilab/modules/dynamic_link/help/en_US/ilib_gen_gateway.xml
scilab/modules/dynamic_link/help/en_US/ilib_gen_loader.xml
scilab/modules/dynamic_link/help/en_US/ilib_mex_build.xml
scilab/modules/dynamic_link/help/en_US/link.xml
scilab/modules/dynamic_link/help/en_US/with_lcc.xml
scilab/modules/dynamic_link/includes/AddFunctionInTable.h
scilab/modules/dynamic_link/includes/addinter.h
scilab/modules/dynamic_link/includes/gw_dynamic_link.h
scilab/modules/dynamic_link/licence.txt
scilab/modules/dynamic_link/locales/en_US/dynamic_link.pot
scilab/modules/dynamic_link/locales/fr_FR/incremental_link.po
scilab/modules/dynamic_link/macros/G_make.sci
scilab/modules/dynamic_link/macros/VCtoLCCLib.sci
scilab/modules/dynamic_link/macros/buildmacros.sce
scilab/modules/dynamic_link/macros/chooselcccompiler.sci
scilab/modules/dynamic_link/macros/cleanmacros.bat
scilab/modules/dynamic_link/macros/configure_lcc.sci
scilab/modules/dynamic_link/macros/configure_msvc.sci
scilab/modules/dynamic_link/macros/findlcccompiler.sci
scilab/modules/dynamic_link/macros/findmsvccompiler.sci
scilab/modules/dynamic_link/macros/haveacompiler.sci
scilab/modules/dynamic_link/macros/ilib_build.sci
scilab/modules/dynamic_link/macros/ilib_compile.sci
scilab/modules/dynamic_link/macros/ilib_for_link.sci
scilab/modules/dynamic_link/macros/ilib_gen_Make.sci
scilab/modules/dynamic_link/macros/ilib_gen_gateway.sci
scilab/modules/dynamic_link/macros/ilib_gen_loader.sci
scilab/modules/dynamic_link/macros/ilib_mex_build.sci
scilab/modules/dynamic_link/macros/with_lcc.sci
scilab/modules/dynamic_link/sci_gateway/c/gw_dynamic_link.c
scilab/modules/dynamic_link/sci_gateway/c/sci_addinter.c
scilab/modules/dynamic_link/sci_gateway/c/sci_c_link.c
scilab/modules/dynamic_link/sci_gateway/c/sci_call.c
scilab/modules/dynamic_link/sci_gateway/c/sci_getdynlibext.c
scilab/modules/dynamic_link/sci_gateway/c/sci_link.c
scilab/modules/dynamic_link/sci_gateway/c/sci_ulink.c
scilab/modules/dynamic_link/sci_gateway/dynamic_link_gateway.xml
scilab/modules/dynamic_link/sci_gateway/fortran/sci_c_link.f
scilab/modules/dynamic_link/sci_gateway/fortran/sci_fort.f
scilab/modules/dynamic_link/src/c/AddFunctionInTable.c
scilab/modules/dynamic_link/src/c/DllmainDynamic_link.c
scilab/modules/dynamic_link/src/c/LibScilab_Import.def
scilab/modules/dynamic_link/src/c/addinter.c
scilab/modules/dynamic_link/src/c/dynamic_link.c
scilab/modules/dynamic_link/src/c/dynamic_link.h
scilab/modules/dynamic_link/src/c/dynamic_link.vcproj
scilab/modules/dynamic_link/src/c/dynamic_link_f_Import.def
scilab/modules/dynamic_link/src/c/dynamic_link_header.def
scilab/modules/dynamic_link/src/fortran/LibScilab_Import.def
scilab/modules/dynamic_link/src/fortran/dynamic_link_f.vfproj
scilab/modules/dynamic_link/src/fortran/dynamic_link_f2c.vcproj
scilab/modules/dynamic_link/src/fortran/dynamic_link_f_header.def
scilab/modules/dynamic_link/src/fortran/output_stream_Import.def
scilab/modules/dynamic_link/src/fortran/string_Import.def
scilab/modules/dynamic_link/src/scripts/Makedll.incl
scilab/modules/dynamic_link/src/scripts/Makefile.am
scilab/modules/dynamic_link/src/scripts/Makefile.in
scilab/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.VC
scilab/modules/dynamic_link/src/scripts/aclocal.m4
scilab/modules/dynamic_link/src/scripts/compilerDetection.sh
scilab/modules/dynamic_link/src/scripts/config.guess
scilab/modules/dynamic_link/src/scripts/config.sub
scilab/modules/dynamic_link/src/scripts/configure
scilab/modules/dynamic_link/src/scripts/configure.ac
scilab/modules/dynamic_link/src/scripts/depcomp
scilab/modules/dynamic_link/src/scripts/install-sh
scilab/modules/dynamic_link/src/scripts/libtool
scilab/modules/dynamic_link/src/scripts/ltmain.sh
scilab/modules/dynamic_link/src/scripts/missing
scilab/modules/dynamic_link/src/scripts/scicompile.sh
scilab/modules/dynamic_link/tests/unit_tests/G_make.dia.ref
scilab/modules/dynamic_link/tests/unit_tests/G_make.tst
scilab/modules/dynamic_link/tests/unit_tests/addinter.c
scilab/modules/dynamic_link/tests/unit_tests/addinter.dia.ref
scilab/modules/dynamic_link/tests/unit_tests/addinter.tst
scilab/modules/dynamic_link/tests/unit_tests/call.dia.ref
scilab/modules/dynamic_link/tests/unit_tests/call.tst
scilab/modules/dynamic_link/tests/unit_tests/externals.f
scilab/modules/dynamic_link/tests/unit_tests/ilib_build.tst
scilab/modules/dynamic_link/tests/unit_tests/ilib_for_link.tst
scilab/modules/dynamic_link/tests/unit_tests/ilib_mex_build.dia.ref
scilab/modules/dynamic_link/tests/unit_tests/ilib_mex_build.tst
scilab/modules/dynamic_link/tests/unit_tests/link.tst
scilab/modules/dynamic_link/tests/unit_tests/links.dia.ref
scilab/modules/dynamic_link/tests/unit_tests/links.tst
scilab/modules/dynamic_link/tests/unit_tests/optim_external.dia.ref
scilab/modules/dynamic_link/tests/unit_tests/optim_external.tst
scilab/modules/dynamic_link/tests/unit_tests/schur_external.dia.ref
scilab/modules/dynamic_link/tests/unit_tests/schur_external.tst
scilab/modules/dynamic_link/version.xml
scilab/modules/incremental_link/includes/AddFunctionInTable.h
scilab/modules/incremental_link/includes/gw_incremental_link.h
scilab/modules/incremental_link/sci_gateway/c/gw_incremental_link.c
scilab/modules/incremental_link/sci_gateway/incremental_link_gateway.xml
scilab/modules/incremental_link/src/c/AddFunctionInTable.c
scilab/modules/incremental_link/src/c/incremental_link_f_Import.def
scilab/modules/incremental_link/src/fortran/LibScilab_Import.def
scilab/modules/incremental_link/src/fortran/incremental_link_Import.def
scilab/modules/incremental_link/src/fortran/incremental_link_f.vfproj
scilab/modules/incremental_link/src/fortran/incremental_link_f2c.vcproj
scilab/modules/incremental_link/src/fortran/incremental_link_f_header.def
scilab/modules/incremental_link/src/fortran/output_stream_Import.def
scilab/modules/incremental_link/src/fortran/string_Import.def
scilab/modules/incremental_link/tests/unit_tests/addinter.dia.ref
scilab/modules/incremental_link/tests/unit_tests/addinter.tst
scilab/modules/incremental_link/tests/unit_tests/call.dia.ref
scilab/modules/incremental_link/tests/unit_tests/call.tst
scilab/modules/incremental_link/tests/unit_tests/optim_external.dia.ref
scilab/modules/incremental_link/tests/unit_tests/optim_external.tst
scilab/modules/incremental_link/tests/unit_tests/schur_external.dia.ref
scilab/modules/incremental_link/tests/unit_tests/schur_external.tst

index c9a5815..0a3040e 100644 (file)
-//===============================\r
-// unit tests regexp\r
-// INRIA 2007\r
-//===============================\r
-if regexp('abc'                                     ,'/abc/'                                 ,'r') <>  1   then bugmes();quit;end\r
-if regexp('xbc'                                     ,'/abc/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('axc'                                     ,'/abc/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abx'                                     ,'/abc/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('xabcy'                                   ,'/abc/'                                 ,'r') <>  2   then bugmes();quit;end\r
-if regexp('ababc'                                   ,'/abc/'                                 ,'r') <>  3   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/ab*c/'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/ab*bc/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abbc'                                    ,'/ab*bc/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abbbbc'                                  ,'/ab*bc/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abbbbc'                                  ,'/.{1}/'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abbbbc'                                  ,'/.{3,4}/'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abbbbc'                                  ,'/ab{0,}bc/'                            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abbc'                                    ,'/ab+bc/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/ab+bc/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abq'                                     ,'/ab+bc/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abq'                                     ,'/ab{1,}bc/'                            ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abbbbc'                                  ,'/ab+bc/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abbbbc'                                  ,'/ab{1,}bc/'                            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abbbbc'                                  ,'/ab{1,3}bc/'                           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abbbbc'                                  ,'/ab{3,4}bc/'                           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abbbbc'                                  ,'/ab{4,5}bc/'                           ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abbc'                                    ,'/ab?bc/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/ab?bc/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/ab{0,1}bc/'                           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abbbbc'                                  ,'/ab?bc/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abc'                                     ,'/ab?c/'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/ab{0,1}c/'                            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/^abc$/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abcc'                                    ,'/^abc$/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abcc'                                    ,'/^abc/'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aabc'                                    ,'/^abc$/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aabc'                                    ,'/abc$/'                                ,'r') <>  2   then bugmes();quit;end\r
-if regexp('aabcd'                                   ,'/abc$/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abc'                                     ,'/^/'                                   ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/$/'                                   ,'r') <>  3   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/a.c/'                                 ,'r') <>  1   then bugmes();quit;end\r
-if regexp('axc'                                     ,'/a.c/'                                 ,'r') <>  1   then bugmes();quit;end\r
-if regexp('axyzc'                                   ,'/a.*c/'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('axyzd'                                   ,'/a.*c/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abc'                                     ,'/a[bc]d/'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abd'                                     ,'/a[bc]d/'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abd'                                     ,'/a[b-d]e/'                             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ace'                                     ,'/a[b-d]e/'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aac'                                     ,'/a[b-d]/'                              ,'r') <>  2   then bugmes();quit;end\r
-if regexp('a-'                                      ,'/a[-b]/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a-'                                      ,'/a[b-]/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a]'                                      ,'/a]/'                                  ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a]b'                                     ,'/a[]]b/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aed'                                     ,'/a[^bc]d/'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abd'                                     ,'/a[^bc]d/'                             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('adc'                                     ,'/a[^-b]c/'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a-c'                                     ,'/a[^-b]c/'                             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a]c'                                     ,'/a[^]b]c/'                             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('adc'                                     ,'/a[^]b]c/'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a-'                                      ,'/\ba\b/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('-a'                                      ,'/\ba\b/'                               ,'r') <>  2   then bugmes();quit;end\r
-if regexp('-a-'                                     ,'/\ba\b/'                               ,'r') <>  2   then bugmes();quit;end\r
-if regexp('xy'                                      ,'/\by\b/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('yz'                                      ,'/\by\b/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('xyz'                                     ,'/\by\b/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a-'                                      ,'/\Ba\B/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('-a'                                      ,'/\Ba\B/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('-a-'                                     ,'/\Ba\B/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('xy'                                      ,'/\By\b/'                               ,'r') <>  2   then bugmes();quit;end\r
-if regexp('xy'                                      ,'/\By\b/'                               ,'r') <>  2   then bugmes();quit;end\r
-if regexp('yz'                                      ,'/\by\B/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('xyz'                                     ,'/\By\B/'                               ,'r') <>  2   then bugmes();quit;end\r
-if regexp('a'                                       ,'/\w/'                                  ,'r') <>  1   then bugmes();quit;end\r
-if regexp('-'                                       ,'/\w/'                                  ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a'                                       ,'/\W/'                                  ,'r') <>  []  then bugmes();quit;end\r
-if regexp('-'                                       ,'/\W/'                                  ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a b'                                     ,'/a\sb/'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a-b'                                     ,'/a\sb/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a b'                                     ,'/a\Sb/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a-b'                                     ,'/a\Sb/'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('1'                                       ,'/\d/'                                  ,'r') <>  1   then bugmes();quit;end\r
-if regexp('-'                                       ,'/\d/'                                  ,'r') <>  []  then bugmes();quit;end\r
-if regexp('1'                                       ,'/\D/'                                  ,'r') <>  []  then bugmes();quit;end\r
-if regexp('-'                                       ,'/\D/'                                  ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a'                                       ,'/[\w]/'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('-'                                       ,'/[\w]/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a'                                       ,'/[\W]/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('-'                                       ,'/[\W]/'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a b'                                     ,'/a[\s]b/'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a-b'                                     ,'/a[\s]b/'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a b'                                     ,'/a[\S]b/'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a-b'                                     ,'/a[\S]b/'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('1'                                       ,'/[\d]/'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('-'                                       ,'/[\d]/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('1'                                       ,'/[\D]/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('-'                                       ,'/[\D]/'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/ab|cd/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abcd'                                    ,'/ab|cd/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('b'                                       ,'/$b/'                                  ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ab'                                      ,'/a\(*b/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a((b'                                    ,'/a\(*b/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aabbabc'                                 ,'/a+b+c/'                               ,'r') <>  5   then bugmes();quit;end\r
-if regexp('aabbabc'                                 ,'/a{1,}b{1,}c/'                         ,'r') <>  5   then bugmes();quit;end\r
-if regexp('abcabc'                                  ,'/a.+?c/'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('cde'                                     ,'/[^ab]*/'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp(''                                        ,'/abc/'                                 ,'r') <>  []  then bugmes();quit;end\r
-//?if regexp(''                                        ,'/a*/'                                  ,'r') <>  []  then bugmes();quit;end\r
-if regexp('e'                                       ,'/a|b|c|d|e/'                           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abcdefg'                                 ,'/abcd*efg/'                            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('xabyabbbz'                               ,'/ab*/'                                 ,'r') <>  [2 5]   then bugmes();quit;end\r
-//?if regexp('xayabbbz'                                ,'/ab*/'                                 ,'r') <>  [2 4]   then bugmes();quit;end\r
-if regexp('hij'                                     ,'/[abhgefdc]ij/'                        ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abcde'                                   ,'/^(ab|cd)e/'                           ,'r') <>  []  then bugmes();quit;end\r
-if regexp('adcdcde'                                 ,'/a[bcd]*dcdcde/'                       ,'r') <>  1   then bugmes();quit;end\r
-if regexp('adcdcde'                                 ,'/a[bcd]+dcdcde/'                       ,'r') <>  []  then bugmes();quit;end\r
-if regexp('alpha'                                   ,'/[a-zA-Z_][a-zA-Z0-9_]*/'              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('effg'                                    ,'/(bc+d$|ef*g.|h?i(j|k))/'              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('bcdd'                                    ,'/(bc+d$|ef*g.|h?i(j|k))/'              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aa'                                      ,'/((((((((((a))))))))))\10/'            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aa'                                      ,'/((((((((((a))))))))))\041/'           ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a!'                                      ,'/((((((((((a))))))))))\041/'           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a'                                       ,'/(((((((((a)))))))))/'                 ,'r') <>  1   then bugmes();quit;end\r
-if regexp('uh-uh'                                   ,'/multiple words of text/'              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('multiple words, yeah'                    ,'/multiple words/'                      ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ab'                                      ,'/[k]/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac'                                      ,'/a[-]?c/'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a'                                       ,'/(a)|\1/'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('x'                                       ,'/(a)|\1/'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aaxabxbaxbbx'                            ,'/((\3|b)\2(a)x)+/'                     ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/abc/i'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('XBC'                                     ,'/abc/i'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('AXC'                                     ,'/abc/i'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ABX'                                     ,'/abc/i'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('XABCY'                                   ,'/abc/i'                                ,'r') <>  2   then bugmes();quit;end\r
-if regexp('ABABC'                                   ,'/abc/i'                                ,'r') <>  3   then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/ab*c/i'                               ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/ab*bc/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABBC'                                    ,'/ab*bc/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABBBBC'                                  ,'/ab*?bc/i'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABBBBC'                                  ,'/ab{0,}?bc/i'                          ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABBC'                                    ,'/ab+?bc/i'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/ab+bc/i'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ABQ'                                     ,'/ab+bc/i'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ABQ'                                     ,'/ab{1,}bc/i'                           ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ABBBBC'                                  ,'/ab+bc/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABBBBC'                                  ,'/ab{1,}?bc/i'                          ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABBBBC'                                  ,'/ab{1,3}?bc/i'                         ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABBBBC'                                  ,'/ab{3,4}?bc/i'                         ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABBBBC'                                  ,'/ab{4,5}?bc/i'                         ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ABBC'                                    ,'/ab??bc/i'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/ab??bc/i'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/ab{0,1}?bc/i'                         ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABBBBC'                                  ,'/ab??bc/i'                             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/ab??c/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/ab{0,1}?c/i'                          ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/^abc$/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABCC'                                    ,'/^abc$/i'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ABCC'                                    ,'/^abc/i'                               ,'r') <>  1   then bugmes();quit;end\r
-//leak if regexp('AABC'                                    ,'/^abc$/i'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('AABC'                                    ,'/abc$/i'                               ,'r') <>  2   then bugmes();quit;end\r
-//leak if regexp('ABC'                                     ,'/^/i'                                  ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/$/i'                                  ,'r') <>  3   then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/a.c/i'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('AXC'                                     ,'/a.c/i'                                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('AXYZC'                                   ,'/a.*?c/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('AXYZD'                                   ,'/a.*c/i'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/a[bc]d/i'                             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ABD'                                     ,'/a[bc]d/i'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABD'                                     ,'/a[b-d]e/i'                            ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ACE'                                     ,'/a[b-d]e/i'                            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('AAC'                                     ,'/a[b-d]/i'                             ,'r') <>  2   then bugmes();quit;end\r
-if regexp('A-'                                      ,'/a[-b]/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('A-'                                      ,'/a[b-]/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('A]'                                      ,'/a]/i'                                 ,'r') <>  1   then bugmes();quit;end\r
-if regexp('A]B'                                     ,'/a[]]b/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('AED'                                     ,'/a[^bc]d/i'                            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABD'                                     ,'/a[^bc]d/i'                            ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ADC'                                     ,'/a[^-b]c/i'                            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('A-C'                                     ,'/a[^-b]c/i'                            ,'r') <>  []  then bugmes();quit;end\r
-if regexp('A]C'                                     ,'/a[^]b]c/i'                            ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ADC'                                     ,'/a[^]b]c/i'                            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABC'                                     ,'/ab|cd/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABCD'                                    ,'/ab|cd/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('B'                                       ,'/$b/i'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('AB'                                      ,'/a\(*b/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('A((B'                                    ,'/a\(*b/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('AABBABC'                                 ,'/a+b+c/i'                              ,'r') <>  5   then bugmes();quit;end\r
-if regexp('AABBABC'                                 ,'/a{1,}b{1,}c/i'                        ,'r') <>  5   then bugmes();quit;end\r
-if regexp('ABCABC'                                  ,'/a.+?c/i'                              ,'r') <>  [1 4]   then bugmes();quit;end\r
-if regexp('ABCABC'                                  ,'/a.*?c/i'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABCABC'                                  ,'/a.{0,5}?c/i'                          ,'r') <>  1   then bugmes();quit;end\r
-if regexp('CDE'                                     ,'/[^ab]*/i'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp(''                                        ,'/abc/i'                                ,'r') <>  []  then bugmes();quit;end\r
-//if regexp(''                                        ,'/a*/i'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('E'                                       ,'/a|b|c|d|e/i'                          ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABCDEFG'                                 ,'/abcd*efg/i'                           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('XABYABBBZ'                               ,'/ab*/i'                                ,'r') <>  [2 5]   then bugmes();quit;end\r
-if regexp('XAYABBBZ'                                ,'/ab*/i'                                ,'r') <>  [2 4]   then bugmes();quit;end\r
-if regexp('HIJ'                                     ,'/[abhgefdc]ij/i'                       ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ABCDE'                                   ,'/^(ab|cd)e/i'                          ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ADCDCDE'                                 ,'/a[bcd]*dcdcde/i'                      ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ADCDCDE'                                 ,'/a[bcd]+dcdcde/i'                      ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ALPHA'                                   ,'/[a-zA-Z_][a-zA-Z0-9_]*/i'             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('EFFG'                                    ,'/(bc+d$|ef*g.|h?i(j|k))/i'             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('BCDD'                                    ,'/(bc+d$|ef*g.|h?i(j|k))/i'             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('AA'                                      ,'/((((((((((a))))))))))\10/i'           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('AA'                                      ,'/((((((((((a))))))))))\041/i'          ,'r') <>  []  then bugmes();quit;end\r
-if regexp('A!'                                      ,'/((((((((((a))))))))))\041/i'          ,'r') <>  1   then bugmes();quit;end\r
-if regexp('A'                                       ,'/(((((((((a)))))))))/i'                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('UH-UH'                                   ,'/multiple words of text/i'             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('MULTIPLE WORDS, YEAH'                    ,'/multiple words/i'                     ,'r') <>  1   then bugmes();quit;end\r
-if regexp('AB'                                      ,'/[k]/i'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('AC'                                      ,'/a[-]?c/i'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abad'                                    ,'/a(?!b)./'                             ,'r') <>  3   then bugmes();quit;end\r
-if regexp('abad'                                    ,'/a(?=d)./'                             ,'r') <>  3   then bugmes();quit;end\r
-if regexp('abad'                                    ,'/a(?=c|d)./'                           ,'r') <>  3   then bugmes();quit;end\r
-if regexp('<&OUT'                                   ,'/^[<>]&/'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aaaaaaaaa'                               ,'/^(a\1?){4}$/'                         ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aaaaaaaaaaa'                             ,'/^(a\1?){4}$/'                         ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aaaaaaaaa'                               ,'/^(a(?(1)\1)){4}$/'                    ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aaaaaaaaaaa'                             ,'/^(a(?(1)\1)){4}$/'                    ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ab'                                      ,'/(?<=a)b/'                             ,'r') <>  2   then bugmes();quit;end\r
-if regexp('cb'                                      ,'/(?<=a)b/'                             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b'                                       ,'/(?<=a)b/'                             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ab'                                      ,'/(?<!c)b/'                             ,'r') <>  2   then bugmes();quit;end\r
-if regexp('cb'                                      ,'/(?<!c)b/'                             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b'                                       ,'/(?<!c)b/'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('b'                                       ,'/(?<!c)b/'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aba'                                     ,'/(?:..)*a/'                            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aba'                                     ,'/(?:..)*?a/'                           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/^(?:b|a(?=(.)))*\1/'                  ,'r') <>  1   then bugmes();quit;end\r
-if regexp('ab'                                      ,'/(?:(?i)a)b/'                          ,'r') <>  1   then bugmes();quit;end\r
-if regexp('Ab'                                      ,'/(?:(?i)a)b/'                          ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aB'                                      ,'/(?:(?i)a)b/'                          ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aB'                                      ,'/((?i)a)b/'                            ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ab'                                      ,'/(?i:a)b/'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('Ab'                                      ,'/(?i:a)b/'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aB'                                      ,'/(?i:a)b/'                             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aB'                                      ,'/((?i:a))b/'                           ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ab'                                      ,'/(?:(?-i)a)b/i'                        ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aB'                                      ,'/(?:(?-i)a)b/i'                        ,'r') <>  1   then bugmes();quit;end\r
-if regexp('Ab'                                      ,'/(?:(?-i)a)b/i'                        ,'r') <>  []  then bugmes();quit;end\r
-if regexp('Ab'                                      ,'/((?-i)a)b/i'                          ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aB'                                      ,'/(?:(?-i)a)b/i'                        ,'r') <>  1   then bugmes();quit;end\r
-if regexp('AB'                                      ,'/(?:(?-i)a)b/i'                        ,'r') <>  []  then bugmes();quit;end\r
-if regexp('AB'                                      ,'/((?-i)a)b/i'                          ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ab'                                      ,'/(?-i:a)b/i'                           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aB'                                      ,'/(?-i:a)b/i'                           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('Ab'                                      ,'/(?-i:a)b/i'                           ,'r') <>  []  then bugmes();quit;end\r
-if regexp('Ab'                                      ,'/((?-i:a))b/i'                         ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aB'                                      ,'/(?-i:a)b/i'                           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('AB'                                      ,'/(?-i:a)b/i'                           ,'r') <>  []  then bugmes();quit;end\r
-if regexp('AB'                                      ,'/((?-i:a))b/i'                         ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a\nB'                                    ,'/((?-i:a.))b/i'                        ,'r') <>  []  then bugmes();quit;end\r
-if regexp('B\nB'                                    ,'/((?s-i:a.))b/i'                       ,'r') <>  []  then bugmes();quit;end\r
-if regexp('cabbbb'                                  ,'/(?:c|d)(?:)(?:a(?:)(?:b)(?:b(?:))(?:b(?:)(?:b)))/','r') <>  1   then bugmes();quit;end\r
-if regexp('caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb','/(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/','r') <>  1   then bugmes();quit;end\r
-if regexp('foobar1234baz'                           ,'/foo\w*\d{4}baz/'                      ,'r') <>  1   then bugmes();quit;end\r
-if regexp('x~~'                                     ,'/x(~~)*(?:(?:F)?)?/'                   ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aaac'                                    ,'/^a(?#xxx){3}c/'                       ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aaac'                                    ,'/^a (?#xxx) (?#yyy) {3}c/x'            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('dbcb'                                    ,'/(?<![cd])b/'                          ,'r') <>  []  then bugmes();quit;end\r
-if regexp('dbaacb'                                  ,'/(?<![cd])[ab]/'                       ,'r') <>  [3 4]   then bugmes();quit;end\r
-if regexp('dbcb'                                    ,'/(?<!(c|d))b/'                         ,'r') <>  []  then bugmes();quit;end\r
-if regexp('dbaacb'                                  ,'/(?<!(c|d))[ab]/'                      ,'r') <>  [3 4]   then bugmes();quit;end\r
-if regexp('cdaccb'                                  ,'/(?<!cd)[ab]/'                         ,'r') <>  6   then bugmes();quit;end\r
-if regexp('a--'                                     ,'/^(?:a?b?)*$/'                         ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a\nb\n'                                  ,'/(?m)^b/'                              ,'r') <>  [3 4]   then bugmes();quit;end\r
-if regexp('a\nb\nc\n'                               ,'/^b/'                                  ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a\nb\nc\n'                               ,'/()^b/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a'                                       ,'/(?(1)a|b)/'                           ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a'                                       ,'/(?(1)b|a)/'                           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a'                                       ,'/(x)?(?(1)a|b)/'                       ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a'                                       ,'/(x)?(?(1)b|a)/'                       ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a'                                       ,'/()?(?(1)b|a)/'                        ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a'                                       ,'/()(?(1)b|a)/'                         ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a'                                       ,'/()?(?(1)a|b)/'                        ,'r') <>  1   then bugmes();quit;end\r
-if regexp('blah)'                                   ,'/^(\()?blah(?(1)(\)))$/'               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('(blah'                                   ,'/^(\()?blah(?(1)(\)))$/'               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('blah)'                                   ,'/^(\(+)?blah(?(1)(\)))$/'              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('(blah'                                   ,'/^(\(+)?blah(?(1)(\)))$/'              ,'r') <>  []  then bugmes();quit;end\r
-//if regexp('a'                                       ,'/(?(?{0})a|b)/'                        ,'r') <>  []  then bugmes();quit;end\r
-//if regexp('a'                                       ,'/(?(?{1})b|a)/'                        ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a'                                       ,'/(?(?!a)a|b)/'                         ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a'                                       ,'/(?(?!a)b|a)/'                         ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a'                                       ,'/(?(?=a)b|a)/'                         ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a'                                       ,'/(?(?=a)a|b)/'                         ,'r') <>  1   then bugmes();quit;end\r
-if regexp('aaab'                                    ,'/^(?=(a+?))\1ab/'                      ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aaab'                                    ,'/^(?=(a+?))\1ab/'                      ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abcd:'                                   ,'/([\w:]+::)?(\w+)$/'                   ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abcd:'                                   ,'/([\w:]+::)?(\w+)$/'                   ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aaab'                                    ,'/(>a+)ab/'                             ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aaab'                                    ,'/(?>a+)b/'                             ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/[a[:]b[:c]/'                          ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abc'                                     ,'/[a[:]b[:c]/'                          ,'r') <>  1   then bugmes();quit;end\r
-if regexp('((abc(ade)ufh()()x'                      ,'/((?>[^()]+)|\([^()]*\))+/'            ,'r') <>  3   then bugmes();quit;end\r
-//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r
-if regexp('a\nb\n'                                  ,'/a\Z/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a\nb\n'                                  ,'/a\z/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a\nb\n'                                  ,'/a$/'                                  ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\na\n'                                  ,'/a\z/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a\nb\n'                                  ,'/a\Z/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a\nb\n'                                  ,'/a\z/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\na\n'                                  ,'/a\z/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aa\nb\n'                                 ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aa\nb\n'                                 ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aa\nb\n'                                 ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\naa\n'                                 ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aa\nb\n'                                 ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('aa\nb\n'                                 ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\naa\n'                                 ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/aa$/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/aa$/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/aa$/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/aa$/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/aa$/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/aa$/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ab\nb\n'                                 ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ab\nb\n'                                 ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ab\nb\n'                                 ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nab\n'                                 ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ab\nb\n'                                 ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ab\nb\n'                                 ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nab\n'                                 ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/ab$/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/ab$/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/ab$/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/ab$/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/ab$/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/ab$/m'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abb\nb\n'                                ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abb\nb\n'                                ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abb\nb\n'                                ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nabb\n'                                ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abb\nb\n'                                ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abb\nb\n'                                ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nabb\n'                                ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ac\nb\n'                                 ,'/abb$/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac\n'                                 ,'/abb$/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nac'                                   ,'/abb$/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('ca\nb\n'                                 ,'/abb$/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca\n'                                 ,'/abb$/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('b\nca'                                   ,'/abb$/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('x'                                       ,'/a*abc?xyz+pqr{3}ab{2,}xy{4,5}pq{0,6}AB{0,}zz/','r') <>  []  then bugmes();quit;end\r
-if regexp('foo.bart'                                ,'/foo.bart/'                            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abcd\ndxxx'                              ,'/^d[x][x][x]/m'                        ,'r') <>  6   then bugmes();quit;end\r
-if regexp('xxxtt'                                   ,'/tt+$/'                                ,'r') <>  4   then bugmes();quit;end\r
-if regexp('aaaXbX'                                  ,'/\GX.*X/'                              ,'r') <>  []  then bugmes();quit;end\r
-if regexp('Changes'                                 ,'/\.c(pp|xx|c)?$/i'                     ,'r') <>  []  then bugmes();quit;end\r
-if regexp('IO.c'                                    ,'/\.c(pp|xx|c)?$/i'                     ,'r') <>  3   then bugmes();quit;end\r
-if regexp('C:/'                                     ,'/^([a-z]:)/'                           ,'r') <>  []  then bugmes();quit;end\r
-if regexp('\nx aa'                                  ,'/^\S\s+aa$/m'                          ,'r') <>  2   then bugmes();quit;end\r
-if regexp('ab'                                      ,'/(^|a)b/'                              ,'r') <>  1   then bugmes();quit;end\r
-if regexp('abcab'                                   ,'/(\w)?(abc)\1b/'                       ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a,b,c'                                   ,'/^(?:.,){2}c/'                         ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a,b,c'                                   ,'/^(?:[^,]*,){2}c/'                     ,'r') <>  1   then bugmes();quit;end\r
-if regexp(''                                        ,'/(?i)/'                                ,'r') <>  1  then bugmes();quit;end\r
-if regexp('a\nxb\n'                                 ,'/(?!\A)x/m'                            ,'r') <>  3   then bugmes();quit;end\r
-if regexp('123\nabcabcabcabc\n'                     ,'/^.{9}abc.*\n/m'                       ,'r') <>  5   then bugmes();quit;end\r
-if regexp('a'                                       ,'/^(a)?(?(1)a|b)+$/'                    ,'r') <>  []  then bugmes();quit;end\r
-if regexp('x1'                                      ,'/^(0+)?(?:x(1))?/'                     ,'r') <>  1   then bugmes();quit;end\r
-if regexp('012cxx0190'                              ,'/^([0-9a-fA-F]+)(?:x([0-9a-fA-F]+)?)(?:x([0-9a-fA-F]+))?/','r') <>  1   then bugmes();quit;end\r
-if regexp('aaaacccc'                                ,'/((?:aaaa|bbbb)cccc)?/'                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('bbbbcccc'                                ,'/((?:aaaa|bbbb)cccc)?/'                ,'r') <>  1   then bugmes();quit;end\r
-if regexp('a\nb\n'                                  ,'/b\s^/m'                               ,'r') <>  []  then bugmes();quit;end\r
-if regexp('a'                                       ,'/\ba/'                                 ,'r') <>  1   then bugmes();quit;end\r
-if regexp('AbCd'                                    ,'/ab(?i)cd/'                            ,'r') <>  []  then bugmes();quit;end\r
-if regexp('abCd'                                    ,'/ab(?i)cd/'                            ,'r') <>  1   then bugmes();quit;end\r
-if regexp('Oo'                                      ,'/^(o)(?!.*\1)/i'                       ,'r') <>  []  then bugmes();quit;end\r
-if regexp('2'                                       ,'/2(]*)?$\1/'                           ,'r') <>  1   then bugmes();quit;end\r
-if regexp('......abef'                              ,'/.*a(?!(b|cd)*e).*f/'                  ,'r') <>  []  then bugmes();quit;end\r
-if regexp('fools'                                   ,'/(foo|fool|x.|money|parted)$/'         ,'r') <>  []  then bugmes();quit;end\r
-if regexp('fools'                                   ,'/(x.|foo|fool|x.|money|parted|y.)$/'   ,'r') <>  []  then bugmes();quit;end\r
-if regexp('fools'                                   ,'/(foo|fool|money|parted)$/'            ,'r') <>  []  then bugmes();quit;end\r
+//===============================
+// unit tests regexp
+// INRIA 2007
+//===============================
+if regexp('abc'                                     ,'/abc/'                                 ,'r') <>  1   then bugmes();quit;end
+if regexp('xbc'                                     ,'/abc/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('axc'                                     ,'/abc/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('abx'                                     ,'/abc/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('xabcy'                                   ,'/abc/'                                 ,'r') <>  2   then bugmes();quit;end
+if regexp('ababc'                                   ,'/abc/'                                 ,'r') <>  3   then bugmes();quit;end
+if regexp('abc'                                     ,'/ab*c/'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('abc'                                     ,'/ab*bc/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('abbc'                                    ,'/ab*bc/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('abbbbc'                                  ,'/ab*bc/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('abbbbc'                                  ,'/.{1}/'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('abbbbc'                                  ,'/.{3,4}/'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('abbbbc'                                  ,'/ab{0,}bc/'                            ,'r') <>  1   then bugmes();quit;end
+if regexp('abbc'                                    ,'/ab+bc/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('abc'                                     ,'/ab+bc/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('abq'                                     ,'/ab+bc/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('abq'                                     ,'/ab{1,}bc/'                            ,'r') <>  []  then bugmes();quit;end
+if regexp('abbbbc'                                  ,'/ab+bc/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('abbbbc'                                  ,'/ab{1,}bc/'                            ,'r') <>  1   then bugmes();quit;end
+if regexp('abbbbc'                                  ,'/ab{1,3}bc/'                           ,'r') <>  1   then bugmes();quit;end
+if regexp('abbbbc'                                  ,'/ab{3,4}bc/'                           ,'r') <>  1   then bugmes();quit;end
+if regexp('abbbbc'                                  ,'/ab{4,5}bc/'                           ,'r') <>  []  then bugmes();quit;end
+if regexp('abbc'                                    ,'/ab?bc/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('abc'                                     ,'/ab?bc/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('abc'                                     ,'/ab{0,1}bc/'                           ,'r') <>  1   then bugmes();quit;end
+if regexp('abbbbc'                                  ,'/ab?bc/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('abc'                                     ,'/ab?c/'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('abc'                                     ,'/ab{0,1}c/'                            ,'r') <>  1   then bugmes();quit;end
+if regexp('abc'                                     ,'/^abc$/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('abcc'                                    ,'/^abc$/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('abcc'                                    ,'/^abc/'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('aabc'                                    ,'/^abc$/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('aabc'                                    ,'/abc$/'                                ,'r') <>  2   then bugmes();quit;end
+if regexp('aabcd'                                   ,'/abc$/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('abc'                                     ,'/^/'                                   ,'r') <>  1   then bugmes();quit;end
+if regexp('abc'                                     ,'/$/'                                   ,'r') <>  3   then bugmes();quit;end
+if regexp('abc'                                     ,'/a.c/'                                 ,'r') <>  1   then bugmes();quit;end
+if regexp('axc'                                     ,'/a.c/'                                 ,'r') <>  1   then bugmes();quit;end
+if regexp('axyzc'                                   ,'/a.*c/'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('axyzd'                                   ,'/a.*c/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('abc'                                     ,'/a[bc]d/'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('abd'                                     ,'/a[bc]d/'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('abd'                                     ,'/a[b-d]e/'                             ,'r') <>  []  then bugmes();quit;end
+if regexp('ace'                                     ,'/a[b-d]e/'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('aac'                                     ,'/a[b-d]/'                              ,'r') <>  2   then bugmes();quit;end
+if regexp('a-'                                      ,'/a[-b]/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('a-'                                      ,'/a[b-]/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('a]'                                      ,'/a]/'                                  ,'r') <>  1   then bugmes();quit;end
+if regexp('a]b'                                     ,'/a[]]b/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('aed'                                     ,'/a[^bc]d/'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('abd'                                     ,'/a[^bc]d/'                             ,'r') <>  []  then bugmes();quit;end
+if regexp('adc'                                     ,'/a[^-b]c/'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('a-c'                                     ,'/a[^-b]c/'                             ,'r') <>  []  then bugmes();quit;end
+if regexp('a]c'                                     ,'/a[^]b]c/'                             ,'r') <>  []  then bugmes();quit;end
+if regexp('adc'                                     ,'/a[^]b]c/'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('a-'                                      ,'/\ba\b/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('-a'                                      ,'/\ba\b/'                               ,'r') <>  2   then bugmes();quit;end
+if regexp('-a-'                                     ,'/\ba\b/'                               ,'r') <>  2   then bugmes();quit;end
+if regexp('xy'                                      ,'/\by\b/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('yz'                                      ,'/\by\b/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('xyz'                                     ,'/\by\b/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('a-'                                      ,'/\Ba\B/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('-a'                                      ,'/\Ba\B/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('-a-'                                     ,'/\Ba\B/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('xy'                                      ,'/\By\b/'                               ,'r') <>  2   then bugmes();quit;end
+if regexp('xy'                                      ,'/\By\b/'                               ,'r') <>  2   then bugmes();quit;end
+if regexp('yz'                                      ,'/\by\B/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('xyz'                                     ,'/\By\B/'                               ,'r') <>  2   then bugmes();quit;end
+if regexp('a'                                       ,'/\w/'                                  ,'r') <>  1   then bugmes();quit;end
+if regexp('-'                                       ,'/\w/'                                  ,'r') <>  []  then bugmes();quit;end
+if regexp('a'                                       ,'/\W/'                                  ,'r') <>  []  then bugmes();quit;end
+if regexp('-'                                       ,'/\W/'                                  ,'r') <>  1   then bugmes();quit;end
+if regexp('a b'                                     ,'/a\sb/'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('a-b'                                     ,'/a\sb/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('a b'                                     ,'/a\Sb/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('a-b'                                     ,'/a\Sb/'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('1'                                       ,'/\d/'                                  ,'r') <>  1   then bugmes();quit;end
+if regexp('-'                                       ,'/\d/'                                  ,'r') <>  []  then bugmes();quit;end
+if regexp('1'                                       ,'/\D/'                                  ,'r') <>  []  then bugmes();quit;end
+if regexp('-'                                       ,'/\D/'                                  ,'r') <>  1   then bugmes();quit;end
+if regexp('a'                                       ,'/[\w]/'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('-'                                       ,'/[\w]/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('a'                                       ,'/[\W]/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('-'                                       ,'/[\W]/'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('a b'                                     ,'/a[\s]b/'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('a-b'                                     ,'/a[\s]b/'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('a b'                                     ,'/a[\S]b/'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('a-b'                                     ,'/a[\S]b/'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('1'                                       ,'/[\d]/'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('-'                                       ,'/[\d]/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('1'                                       ,'/[\D]/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('-'                                       ,'/[\D]/'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('abc'                                     ,'/ab|cd/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('abcd'                                    ,'/ab|cd/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('b'                                       ,'/$b/'                                  ,'r') <>  []  then bugmes();quit;end
+if regexp('ab'                                      ,'/a\(*b/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('a((b'                                    ,'/a\(*b/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('aabbabc'                                 ,'/a+b+c/'                               ,'r') <>  5   then bugmes();quit;end
+if regexp('aabbabc'                                 ,'/a{1,}b{1,}c/'                         ,'r') <>  5   then bugmes();quit;end
+if regexp('abcabc'                                  ,'/a.+?c/'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('cde'                                     ,'/[^ab]*/'                              ,'r') <>  1   then bugmes();quit;end
+if regexp(''                                        ,'/abc/'                                 ,'r') <>  []  then bugmes();quit;end
+//?if regexp(''                                        ,'/a*/'                                  ,'r') <>  []  then bugmes();quit;end
+if regexp('e'                                       ,'/a|b|c|d|e/'                           ,'r') <>  1   then bugmes();quit;end
+if regexp('abcdefg'                                 ,'/abcd*efg/'                            ,'r') <>  1   then bugmes();quit;end
+if regexp('xabyabbbz'                               ,'/ab*/'                                 ,'r') <>  [2 5]   then bugmes();quit;end
+//?if regexp('xayabbbz'                                ,'/ab*/'                                 ,'r') <>  [2 4]   then bugmes();quit;end
+if regexp('hij'                                     ,'/[abhgefdc]ij/'                        ,'r') <>  1   then bugmes();quit;end
+if regexp('abcde'                                   ,'/^(ab|cd)e/'                           ,'r') <>  []  then bugmes();quit;end
+if regexp('adcdcde'                                 ,'/a[bcd]*dcdcde/'                       ,'r') <>  1   then bugmes();quit;end
+if regexp('adcdcde'                                 ,'/a[bcd]+dcdcde/'                       ,'r') <>  []  then bugmes();quit;end
+if regexp('alpha'                                   ,'/[a-zA-Z_][a-zA-Z0-9_]*/'              ,'r') <>  1   then bugmes();quit;end
+if regexp('effg'                                    ,'/(bc+d$|ef*g.|h?i(j|k))/'              ,'r') <>  []  then bugmes();quit;end
+if regexp('bcdd'                                    ,'/(bc+d$|ef*g.|h?i(j|k))/'              ,'r') <>  []  then bugmes();quit;end
+if regexp('aa'                                      ,'/((((((((((a))))))))))\10/'            ,'r') <>  1   then bugmes();quit;end
+if regexp('aa'                                      ,'/((((((((((a))))))))))\041/'           ,'r') <>  []  then bugmes();quit;end
+if regexp('a!'                                      ,'/((((((((((a))))))))))\041/'           ,'r') <>  1   then bugmes();quit;end
+if regexp('a'                                       ,'/(((((((((a)))))))))/'                 ,'r') <>  1   then bugmes();quit;end
+if regexp('uh-uh'                                   ,'/multiple words of text/'              ,'r') <>  []  then bugmes();quit;end
+if regexp('multiple words, yeah'                    ,'/multiple words/'                      ,'r') <>  1   then bugmes();quit;end
+if regexp('ab'                                      ,'/[k]/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('ac'                                      ,'/a[-]?c/'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('a'                                       ,'/(a)|\1/'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('x'                                       ,'/(a)|\1/'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('aaxabxbaxbbx'                            ,'/((\3|b)\2(a)x)+/'                     ,'r') <>  []  then bugmes();quit;end
+if regexp('ABC'                                     ,'/abc/i'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('XBC'                                     ,'/abc/i'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('AXC'                                     ,'/abc/i'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ABX'                                     ,'/abc/i'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('XABCY'                                   ,'/abc/i'                                ,'r') <>  2   then bugmes();quit;end
+if regexp('ABABC'                                   ,'/abc/i'                                ,'r') <>  3   then bugmes();quit;end
+if regexp('ABC'                                     ,'/ab*c/i'                               ,'r') <>  1   then bugmes();quit;end
+if regexp('ABC'                                     ,'/ab*bc/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('ABBC'                                    ,'/ab*bc/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('ABBBBC'                                  ,'/ab*?bc/i'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('ABBBBC'                                  ,'/ab{0,}?bc/i'                          ,'r') <>  1   then bugmes();quit;end
+if regexp('ABBC'                                    ,'/ab+?bc/i'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('ABC'                                     ,'/ab+bc/i'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('ABQ'                                     ,'/ab+bc/i'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('ABQ'                                     ,'/ab{1,}bc/i'                           ,'r') <>  []  then bugmes();quit;end
+if regexp('ABBBBC'                                  ,'/ab+bc/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('ABBBBC'                                  ,'/ab{1,}?bc/i'                          ,'r') <>  1   then bugmes();quit;end
+if regexp('ABBBBC'                                  ,'/ab{1,3}?bc/i'                         ,'r') <>  1   then bugmes();quit;end
+if regexp('ABBBBC'                                  ,'/ab{3,4}?bc/i'                         ,'r') <>  1   then bugmes();quit;end
+if regexp('ABBBBC'                                  ,'/ab{4,5}?bc/i'                         ,'r') <>  []  then bugmes();quit;end
+if regexp('ABBC'                                    ,'/ab??bc/i'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('ABC'                                     ,'/ab??bc/i'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('ABC'                                     ,'/ab{0,1}?bc/i'                         ,'r') <>  1   then bugmes();quit;end
+if regexp('ABBBBC'                                  ,'/ab??bc/i'                             ,'r') <>  []  then bugmes();quit;end
+if regexp('ABC'                                     ,'/ab??c/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('ABC'                                     ,'/ab{0,1}?c/i'                          ,'r') <>  1   then bugmes();quit;end
+if regexp('ABC'                                     ,'/^abc$/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('ABCC'                                    ,'/^abc$/i'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('ABCC'                                    ,'/^abc/i'                               ,'r') <>  1   then bugmes();quit;end
+//leak if regexp('AABC'                                    ,'/^abc$/i'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('AABC'                                    ,'/abc$/i'                               ,'r') <>  2   then bugmes();quit;end
+//leak if regexp('ABC'                                     ,'/^/i'                                  ,'r') <>  1   then bugmes();quit;end
+if regexp('ABC'                                     ,'/$/i'                                  ,'r') <>  3   then bugmes();quit;end
+if regexp('ABC'                                     ,'/a.c/i'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('AXC'                                     ,'/a.c/i'                                ,'r') <>  1   then bugmes();quit;end
+if regexp('AXYZC'                                   ,'/a.*?c/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('AXYZD'                                   ,'/a.*c/i'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ABC'                                     ,'/a[bc]d/i'                             ,'r') <>  []  then bugmes();quit;end
+if regexp('ABD'                                     ,'/a[bc]d/i'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('ABD'                                     ,'/a[b-d]e/i'                            ,'r') <>  []  then bugmes();quit;end
+if regexp('ACE'                                     ,'/a[b-d]e/i'                            ,'r') <>  1   then bugmes();quit;end
+if regexp('AAC'                                     ,'/a[b-d]/i'                             ,'r') <>  2   then bugmes();quit;end
+if regexp('A-'                                      ,'/a[-b]/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('A-'                                      ,'/a[b-]/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('A]'                                      ,'/a]/i'                                 ,'r') <>  1   then bugmes();quit;end
+if regexp('A]B'                                     ,'/a[]]b/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('AED'                                     ,'/a[^bc]d/i'                            ,'r') <>  1   then bugmes();quit;end
+if regexp('ABD'                                     ,'/a[^bc]d/i'                            ,'r') <>  []  then bugmes();quit;end
+if regexp('ADC'                                     ,'/a[^-b]c/i'                            ,'r') <>  1   then bugmes();quit;end
+if regexp('A-C'                                     ,'/a[^-b]c/i'                            ,'r') <>  []  then bugmes();quit;end
+if regexp('A]C'                                     ,'/a[^]b]c/i'                            ,'r') <>  []  then bugmes();quit;end
+if regexp('ADC'                                     ,'/a[^]b]c/i'                            ,'r') <>  1   then bugmes();quit;end
+if regexp('ABC'                                     ,'/ab|cd/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('ABCD'                                    ,'/ab|cd/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('B'                                       ,'/$b/i'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('AB'                                      ,'/a\(*b/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('A((B'                                    ,'/a\(*b/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('AABBABC'                                 ,'/a+b+c/i'                              ,'r') <>  5   then bugmes();quit;end
+if regexp('AABBABC'                                 ,'/a{1,}b{1,}c/i'                        ,'r') <>  5   then bugmes();quit;end
+if regexp('ABCABC'                                  ,'/a.+?c/i'                              ,'r') <>  [1 4]   then bugmes();quit;end
+if regexp('ABCABC'                                  ,'/a.*?c/i'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('ABCABC'                                  ,'/a.{0,5}?c/i'                          ,'r') <>  1   then bugmes();quit;end
+if regexp('CDE'                                     ,'/[^ab]*/i'                             ,'r') <>  1   then bugmes();quit;end
+if regexp(''                                        ,'/abc/i'                                ,'r') <>  []  then bugmes();quit;end
+//if regexp(''                                        ,'/a*/i'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('E'                                       ,'/a|b|c|d|e/i'                          ,'r') <>  1   then bugmes();quit;end
+if regexp('ABCDEFG'                                 ,'/abcd*efg/i'                           ,'r') <>  1   then bugmes();quit;end
+if regexp('XABYABBBZ'                               ,'/ab*/i'                                ,'r') <>  [2 5]   then bugmes();quit;end
+if regexp('XAYABBBZ'                                ,'/ab*/i'                                ,'r') <>  [2 4]   then bugmes();quit;end
+if regexp('HIJ'                                     ,'/[abhgefdc]ij/i'                       ,'r') <>  1   then bugmes();quit;end
+if regexp('ABCDE'                                   ,'/^(ab|cd)e/i'                          ,'r') <>  []  then bugmes();quit;end
+if regexp('ADCDCDE'                                 ,'/a[bcd]*dcdcde/i'                      ,'r') <>  1   then bugmes();quit;end
+if regexp('ADCDCDE'                                 ,'/a[bcd]+dcdcde/i'                      ,'r') <>  []  then bugmes();quit;end
+if regexp('ALPHA'                                   ,'/[a-zA-Z_][a-zA-Z0-9_]*/i'             ,'r') <>  1   then bugmes();quit;end
+if regexp('EFFG'                                    ,'/(bc+d$|ef*g.|h?i(j|k))/i'             ,'r') <>  []  then bugmes();quit;end
+if regexp('BCDD'                                    ,'/(bc+d$|ef*g.|h?i(j|k))/i'             ,'r') <>  []  then bugmes();quit;end
+if regexp('AA'                                      ,'/((((((((((a))))))))))\10/i'           ,'r') <>  1   then bugmes();quit;end
+if regexp('AA'                                      ,'/((((((((((a))))))))))\041/i'          ,'r') <>  []  then bugmes();quit;end
+if regexp('A!'                                      ,'/((((((((((a))))))))))\041/i'          ,'r') <>  1   then bugmes();quit;end
+if regexp('A'                                       ,'/(((((((((a)))))))))/i'                ,'r') <>  1   then bugmes();quit;end
+if regexp('UH-UH'                                   ,'/multiple words of text/i'             ,'r') <>  []  then bugmes();quit;end
+if regexp('MULTIPLE WORDS, YEAH'                    ,'/multiple words/i'                     ,'r') <>  1   then bugmes();quit;end
+if regexp('AB'                                      ,'/[k]/i'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('AC'                                      ,'/a[-]?c/i'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('abad'                                    ,'/a(?!b)./'                             ,'r') <>  3   then bugmes();quit;end
+if regexp('abad'                                    ,'/a(?=d)./'                             ,'r') <>  3   then bugmes();quit;end
+if regexp('abad'                                    ,'/a(?=c|d)./'                           ,'r') <>  3   then bugmes();quit;end
+if regexp('<&OUT'                                   ,'/^[<>]&/'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('aaaaaaaaa'                               ,'/^(a\1?){4}$/'                         ,'r') <>  []  then bugmes();quit;end
+if regexp('aaaaaaaaaaa'                             ,'/^(a\1?){4}$/'                         ,'r') <>  []  then bugmes();quit;end
+if regexp('aaaaaaaaa'                               ,'/^(a(?(1)\1)){4}$/'                    ,'r') <>  []  then bugmes();quit;end
+if regexp('aaaaaaaaaaa'                             ,'/^(a(?(1)\1)){4}$/'                    ,'r') <>  []  then bugmes();quit;end
+if regexp('ab'                                      ,'/(?<=a)b/'                             ,'r') <>  2   then bugmes();quit;end
+if regexp('cb'                                      ,'/(?<=a)b/'                             ,'r') <>  []  then bugmes();quit;end
+if regexp('b'                                       ,'/(?<=a)b/'                             ,'r') <>  []  then bugmes();quit;end
+if regexp('ab'                                      ,'/(?<!c)b/'                             ,'r') <>  2   then bugmes();quit;end
+if regexp('cb'                                      ,'/(?<!c)b/'                             ,'r') <>  []  then bugmes();quit;end
+if regexp('b'                                       ,'/(?<!c)b/'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('b'                                       ,'/(?<!c)b/'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('aba'                                     ,'/(?:..)*a/'                            ,'r') <>  1   then bugmes();quit;end
+if regexp('aba'                                     ,'/(?:..)*?a/'                           ,'r') <>  1   then bugmes();quit;end
+if regexp('abc'                                     ,'/^(?:b|a(?=(.)))*\1/'                  ,'r') <>  1   then bugmes();quit;end
+if regexp('ab'                                      ,'/(?:(?i)a)b/'                          ,'r') <>  1   then bugmes();quit;end
+if regexp('Ab'                                      ,'/(?:(?i)a)b/'                          ,'r') <>  1   then bugmes();quit;end
+if regexp('aB'                                      ,'/(?:(?i)a)b/'                          ,'r') <>  []  then bugmes();quit;end
+if regexp('aB'                                      ,'/((?i)a)b/'                            ,'r') <>  []  then bugmes();quit;end
+if regexp('ab'                                      ,'/(?i:a)b/'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('Ab'                                      ,'/(?i:a)b/'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('aB'                                      ,'/(?i:a)b/'                             ,'r') <>  []  then bugmes();quit;end
+if regexp('aB'                                      ,'/((?i:a))b/'                           ,'r') <>  []  then bugmes();quit;end
+if regexp('ab'                                      ,'/(?:(?-i)a)b/i'                        ,'r') <>  1   then bugmes();quit;end
+if regexp('aB'                                      ,'/(?:(?-i)a)b/i'                        ,'r') <>  1   then bugmes();quit;end
+if regexp('Ab'                                      ,'/(?:(?-i)a)b/i'                        ,'r') <>  []  then bugmes();quit;end
+if regexp('Ab'                                      ,'/((?-i)a)b/i'                          ,'r') <>  []  then bugmes();quit;end
+if regexp('aB'                                      ,'/(?:(?-i)a)b/i'                        ,'r') <>  1   then bugmes();quit;end
+if regexp('AB'                                      ,'/(?:(?-i)a)b/i'                        ,'r') <>  []  then bugmes();quit;end
+if regexp('AB'                                      ,'/((?-i)a)b/i'                          ,'r') <>  []  then bugmes();quit;end
+if regexp('ab'                                      ,'/(?-i:a)b/i'                           ,'r') <>  1   then bugmes();quit;end
+if regexp('aB'                                      ,'/(?-i:a)b/i'                           ,'r') <>  1   then bugmes();quit;end
+if regexp('Ab'                                      ,'/(?-i:a)b/i'                           ,'r') <>  []  then bugmes();quit;end
+if regexp('Ab'                                      ,'/((?-i:a))b/i'                         ,'r') <>  []  then bugmes();quit;end
+if regexp('aB'                                      ,'/(?-i:a)b/i'                           ,'r') <>  1   then bugmes();quit;end
+if regexp('AB'                                      ,'/(?-i:a)b/i'                           ,'r') <>  []  then bugmes();quit;end
+if regexp('AB'                                      ,'/((?-i:a))b/i'                         ,'r') <>  []  then bugmes();quit;end
+if regexp('a\nB'                                    ,'/((?-i:a.))b/i'                        ,'r') <>  []  then bugmes();quit;end
+if regexp('B\nB'                                    ,'/((?s-i:a.))b/i'                       ,'r') <>  []  then bugmes();quit;end
+if regexp('cabbbb'                                  ,'/(?:c|d)(?:)(?:a(?:)(?:b)(?:b(?:))(?:b(?:)(?:b)))/','r') <>  1   then bugmes();quit;end
+if regexp('caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb','/(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/','r') <>  1   then bugmes();quit;end
+if regexp('foobar1234baz'                           ,'/foo\w*\d{4}baz/'                      ,'r') <>  1   then bugmes();quit;end
+if regexp('x~~'                                     ,'/x(~~)*(?:(?:F)?)?/'                   ,'r') <>  1   then bugmes();quit;end
+if regexp('aaac'                                    ,'/^a(?#xxx){3}c/'                       ,'r') <>  1   then bugmes();quit;end
+if regexp('aaac'                                    ,'/^a (?#xxx) (?#yyy) {3}c/x'            ,'r') <>  1   then bugmes();quit;end
+if regexp('dbcb'                                    ,'/(?<![cd])b/'                          ,'r') <>  []  then bugmes();quit;end
+if regexp('dbaacb'                                  ,'/(?<![cd])[ab]/'                       ,'r') <>  [3 4]   then bugmes();quit;end
+if regexp('dbcb'                                    ,'/(?<!(c|d))b/'                         ,'r') <>  []  then bugmes();quit;end
+if regexp('dbaacb'                                  ,'/(?<!(c|d))[ab]/'                      ,'r') <>  [3 4]   then bugmes();quit;end
+if regexp('cdaccb'                                  ,'/(?<!cd)[ab]/'                         ,'r') <>  6   then bugmes();quit;end
+if regexp('a--'                                     ,'/^(?:a?b?)*$/'                         ,'r') <>  []  then bugmes();quit;end
+if regexp('a\nb\n'                                  ,'/(?m)^b/'                              ,'r') <>  [3 4]   then bugmes();quit;end
+if regexp('a\nb\nc\n'                               ,'/^b/'                                  ,'r') <>  []  then bugmes();quit;end
+if regexp('a\nb\nc\n'                               ,'/()^b/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('a'                                       ,'/(?(1)a|b)/'                           ,'r') <>  []  then bugmes();quit;end
+if regexp('a'                                       ,'/(?(1)b|a)/'                           ,'r') <>  1   then bugmes();quit;end
+if regexp('a'                                       ,'/(x)?(?(1)a|b)/'                       ,'r') <>  []  then bugmes();quit;end
+if regexp('a'                                       ,'/(x)?(?(1)b|a)/'                       ,'r') <>  1   then bugmes();quit;end
+if regexp('a'                                       ,'/()?(?(1)b|a)/'                        ,'r') <>  1   then bugmes();quit;end
+if regexp('a'                                       ,'/()(?(1)b|a)/'                         ,'r') <>  []  then bugmes();quit;end
+if regexp('a'                                       ,'/()?(?(1)a|b)/'                        ,'r') <>  1   then bugmes();quit;end
+if regexp('blah)'                                   ,'/^(\()?blah(?(1)(\)))$/'               ,'r') <>  []  then bugmes();quit;end
+if regexp('(blah'                                   ,'/^(\()?blah(?(1)(\)))$/'               ,'r') <>  []  then bugmes();quit;end
+if regexp('blah)'                                   ,'/^(\(+)?blah(?(1)(\)))$/'              ,'r') <>  []  then bugmes();quit;end
+if regexp('(blah'                                   ,'/^(\(+)?blah(?(1)(\)))$/'              ,'r') <>  []  then bugmes();quit;end
+//if regexp('a'                                       ,'/(?(?{0})a|b)/'                        ,'r') <>  []  then bugmes();quit;end
+//if regexp('a'                                       ,'/(?(?{1})b|a)/'                        ,'r') <>  []  then bugmes();quit;end
+if regexp('a'                                       ,'/(?(?!a)a|b)/'                         ,'r') <>  []  then bugmes();quit;end
+if regexp('a'                                       ,'/(?(?!a)b|a)/'                         ,'r') <>  1   then bugmes();quit;end
+if regexp('a'                                       ,'/(?(?=a)b|a)/'                         ,'r') <>  []  then bugmes();quit;end
+if regexp('a'                                       ,'/(?(?=a)a|b)/'                         ,'r') <>  1   then bugmes();quit;end
+if regexp('aaab'                                    ,'/^(?=(a+?))\1ab/'                      ,'r') <>  []  then bugmes();quit;end
+if regexp('aaab'                                    ,'/^(?=(a+?))\1ab/'                      ,'r') <>  []  then bugmes();quit;end
+if regexp('abcd:'                                   ,'/([\w:]+::)?(\w+)$/'                   ,'r') <>  []  then bugmes();quit;end
+if regexp('abcd:'                                   ,'/([\w:]+::)?(\w+)$/'                   ,'r') <>  []  then bugmes();quit;end
+if regexp('aaab'                                    ,'/(>a+)ab/'                             ,'r') <>  []  then bugmes();quit;end
+if regexp('aaab'                                    ,'/(?>a+)b/'                             ,'r') <>  1   then bugmes();quit;end
+if regexp('abc'                                     ,'/[a[:]b[:c]/'                          ,'r') <>  1   then bugmes();quit;end
+if regexp('abc'                                     ,'/[a[:]b[:c]/'                          ,'r') <>  1   then bugmes();quit;end
+if regexp('((abc(ade)ufh()()x'                      ,'/((?>[^()]+)|\([^()]*\))+/'            ,'r') <>  3   then bugmes();quit;end
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+if regexp('a\nb\n'                                  ,'/a\Z/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('a\nb\n'                                  ,'/a\z/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('a\nb\n'                                  ,'/a$/'                                  ,'r') <>  []  then bugmes();quit;end
+if regexp('b\na\n'                                  ,'/a\z/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('a\nb\n'                                  ,'/a\Z/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('a\nb\n'                                  ,'/a\z/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\na\n'                                  ,'/a\z/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('aa\nb\n'                                 ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('aa\nb\n'                                 ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('aa\nb\n'                                 ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('b\naa\n'                                 ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('aa\nb\n'                                 ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('aa\nb\n'                                 ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\naa\n'                                 ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/aa$/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/aa$/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/aa$/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/aa\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/aa\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/aa$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/aa$/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/aa$/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/aa\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/aa\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/aa$/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ab\nb\n'                                 ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ab\nb\n'                                 ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ab\nb\n'                                 ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nab\n'                                 ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ab\nb\n'                                 ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ab\nb\n'                                 ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nab\n'                                 ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/ab$/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/ab$/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/ab$/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/ab\Z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/ab\z/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/ab$/'                                 ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/ab$/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/ab$/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/ab\Z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/ab\z/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/ab$/m'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('abb\nb\n'                                ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('abb\nb\n'                                ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('abb\nb\n'                                ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nabb\n'                                ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('abb\nb\n'                                ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('abb\nb\n'                                ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nabb\n'                                ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('ac\nb\n'                                 ,'/abb$/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac\n'                                 ,'/abb$/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nac'                                   ,'/abb$/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/abb\Z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/abb\z/'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/abb$/'                                ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('ca\nb\n'                                 ,'/abb$/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca\n'                                 ,'/abb$/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/abb\Z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/abb\z/m'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('b\nca'                                   ,'/abb$/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('x'                                       ,'/a*abc?xyz+pqr{3}ab{2,}xy{4,5}pq{0,6}AB{0,}zz/','r') <>  []  then bugmes();quit;end
+if regexp('foo.bart'                                ,'/foo.bart/'                            ,'r') <>  1   then bugmes();quit;end
+if regexp('abcd\ndxxx'                              ,'/^d[x][x][x]/m'                        ,'r') <>  6   then bugmes();quit;end
+if regexp('xxxtt'                                   ,'/tt+$/'                                ,'r') <>  4   then bugmes();quit;end
+if regexp('aaaXbX'                                  ,'/\GX.*X/'                              ,'r') <>  []  then bugmes();quit;end
+if regexp('Changes'                                 ,'/\.c(pp|xx|c)?$/i'                     ,'r') <>  []  then bugmes();quit;end
+if regexp('IO.c'                                    ,'/\.c(pp|xx|c)?$/i'                     ,'r') <>  3   then bugmes();quit;end
+if regexp('C:/'                                     ,'/^([a-z]:)/'                           ,'r') <>  []  then bugmes();quit;end
+if regexp('\nx aa'                                  ,'/^\S\s+aa$/m'                          ,'r') <>  2   then bugmes();quit;end
+if regexp('ab'                                      ,'/(^|a)b/'                              ,'r') <>  1   then bugmes();quit;end
+if regexp('abcab'                                   ,'/(\w)?(abc)\1b/'                       ,'r') <>  []  then bugmes();quit;end
+if regexp('a,b,c'                                   ,'/^(?:.,){2}c/'                         ,'r') <>  1   then bugmes();quit;end
+if regexp('a,b,c'                                   ,'/^(?:[^,]*,){2}c/'                     ,'r') <>  1   then bugmes();quit;end
+if regexp(''                                        ,'/(?i)/'                                ,'r') <>  1  then bugmes();quit;end
+if regexp('a\nxb\n'                                 ,'/(?!\A)x/m'                            ,'r') <>  3   then bugmes();quit;end
+if regexp('123\nabcabcabcabc\n'                     ,'/^.{9}abc.*\n/m'                       ,'r') <>  5   then bugmes();quit;end
+if regexp('a'                                       ,'/^(a)?(?(1)a|b)+$/'                    ,'r') <>  []  then bugmes();quit;end
+if regexp('x1'                                      ,'/^(0+)?(?:x(1))?/'                     ,'r') <>  1   then bugmes();quit;end
+if regexp('012cxx0190'                              ,'/^([0-9a-fA-F]+)(?:x([0-9a-fA-F]+)?)(?:x([0-9a-fA-F]+))?/','r') <>  1   then bugmes();quit;end
+if regexp('aaaacccc'                                ,'/((?:aaaa|bbbb)cccc)?/'                ,'r') <>  1   then bugmes();quit;end
+if regexp('bbbbcccc'                                ,'/((?:aaaa|bbbb)cccc)?/'                ,'r') <>  1   then bugmes();quit;end
+if regexp('a\nb\n'                                  ,'/b\s^/m'                               ,'r') <>  []  then bugmes();quit;end
+if regexp('a'                                       ,'/\ba/'                                 ,'r') <>  1   then bugmes();quit;end
+if regexp('AbCd'                                    ,'/ab(?i)cd/'                            ,'r') <>  []  then bugmes();quit;end
+if regexp('abCd'                                    ,'/ab(?i)cd/'                            ,'r') <>  1   then bugmes();quit;end
+if regexp('Oo'                                      ,'/^(o)(?!.*\1)/i'                       ,'r') <>  []  then bugmes();quit;end
+if regexp('2'                                       ,'/2(]*)?$\1/'                           ,'r') <>  1   then bugmes();quit;end
+if regexp('......abef'                              ,'/.*a(?!(b|cd)*e).*f/'                  ,'r') <>  []  then bugmes();quit;end
+if regexp('fools'                                   ,'/(foo|fool|x.|money|parted)$/'         ,'r') <>  []  then bugmes();quit;end
+if regexp('fools'                                   ,'/(x.|foo|fool|x.|money|parted|y.)$/'   ,'r') <>  []  then bugmes();quit;end
+if regexp('fools'                                   ,'/(foo|fool|money|parted)$/'            ,'r') <>  []  then bugmes();quit;end
index 067c64c..4729935 100644 (file)
@@ -1,9 +1,9 @@
-//================================================\r
-// test clearfun , funptr, newfun\r
-//================================================\r
-if clearfun('myfunctionname') <> %F then bugmes();quit;end\r
-//================================================\r
-ptr = funptr('pwd');\r
-newfun("MY_PWD",ptr);\r
-if clearfun("MY_PWD") <> %T then bugmes();quit;end\r
-//================================================\r
+//================================================
+// test clearfun , funptr, newfun
+//================================================
+if clearfun('myfunctionname') <> %F then bugmes();quit;end
+//================================================
+ptr = funptr('pwd');
+newfun("MY_PWD",ptr);
+if clearfun("MY_PWD") <> %T then bugmes();quit;end
+//================================================
index ccfb9a4..f1da611 100644 (file)
@@ -1,10 +1,10 @@
-//================================================\r
-// test clearfun , funptr, newfun\r
-//================================================\r
-if clearfun('myfunctionname') <> %F then pause,end\r
-//================================================\r
-ptr = funptr('pwd');\r
-newfun("MY_PWD",ptr);\r
-\r
-if clearfun("MY_PWD") <> %T then pause,end\r
-//================================================\r
+//================================================
+// test clearfun , funptr, newfun
+//================================================
+if clearfun('myfunctionname') <> %F then pause,end
+//================================================
+ptr = funptr('pwd');
+newfun("MY_PWD",ptr);
+
+if clearfun("MY_PWD") <> %T then pause,end
+//================================================
index 564c9ab..f02a76a 100644 (file)
@@ -1,64 +1,64 @@
-##########\r
-### Sylvestre Ledru <sylvestre.ledru@inria.fr>\r
-### INRIA - Scilab 2006 \r
-##########\r
-\r
-DYNAMIC_LINK_C_SOURCES = src/c/addinter.c \\r
-src/c/dynamic_link.c \\r
-src/c/AddFunctionInTable.c\r
-\r
-GATEWAY_C_SOURCES = sci_gateway/c/gw_dynamic_link.c \\r
-sci_gateway/c/sci_getdynlibext.c \\r
-sci_gateway/c/sci_addinter.c \\r
-sci_gateway/c/sci_call.c \\r
-sci_gateway/c/sci_link.c \\r
-sci_gateway/c/sci_ulink.c \\r
-sci_gateway/c/sci_c_link.c\r
-\r
-GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/sci_fort.f \r
-\r
-libscidynamic_link_la_CFLAGS = \\r
--I$(top_srcdir)/modules/output_stream/includes \\r
--I$(top_srcdir)/libs/dynamiclibrary/includes \\r
--Isrc/c/ \\r
--Iincludes/\r
-\r
-pkglib_LTLIBRARIES = libscidynamic_link.la\r
-libscidynamic_link_la_SOURCES = $(DYNAMIC_LINK_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)\r
-\r
-libscidynamic_link_la_LIBADD = $(top_builddir)/libs/dynamiclibrary/libscidynamiclibrary.la\r
-\r
-#### Target ######\r
-modulename=dynamic_link\r
-\r
-\r
-#### dynamic_link : Conf files ####\r
-libscidynamic_link_la_rootdir = $(mydatadir)\r
-libscidynamic_link_la_root_DATA = changelog.txt licence.txt readme.txt version.xml\r
-\r
-#### dynamic_link : init scripts #### \r
-libscidynamic_link_la_etcdir = $(mydatadir)/etc\r
-libscidynamic_link_la_etc_DATA = etc/dynamic_link.quit etc/dynamic_link.start\r
-\r
-#### dynamic_link : gateway declaration ####\r
-libscidynamic_link_la_sci_gatewaydir = $(mydatadir)/sci_gateway\r
-libscidynamic_link_la_sci_gateway_DATA = sci_gateway/dynamic_link_gateway.xml\r
-\r
-\r
-#### dynamic_link : compilation scripts #### \r
-libscidynamic_link_la_scriptdir = $(mydatadir)/src/scripts/\r
-libscidynamic_link_la_script_DATA = src/scripts/Makefile.in \\r
-src/scripts/configure.ac \\r
-src/scripts/ltmain.sh \\r
-src/scripts/Makefile.am \\r
-src/scripts/aclocal.m4\r
-\r
-libscidynamic_link_la_script_SCRIPTS = src/scripts/compilerDetection.sh \\r
-src/scripts/config.guess \\r
-src/scripts/config.sub \\r
-src/scripts/configure \\r
-src/scripts/depcomp \\r
-src/scripts/install-sh \\r
-src/scripts/missing \\r
-src/scripts/scicompile.sh\r
-include $(top_srcdir)/Makefile.incl.am\r
+##########
+### Sylvestre Ledru <sylvestre.ledru@inria.fr>
+### INRIA - Scilab 2006 
+##########
+
+DYNAMIC_LINK_C_SOURCES = src/c/addinter.c \
+src/c/dynamic_link.c \
+src/c/AddFunctionInTable.c
+
+GATEWAY_C_SOURCES = sci_gateway/c/gw_dynamic_link.c \
+sci_gateway/c/sci_getdynlibext.c \
+sci_gateway/c/sci_addinter.c \
+sci_gateway/c/sci_call.c \
+sci_gateway/c/sci_link.c \
+sci_gateway/c/sci_ulink.c \
+sci_gateway/c/sci_c_link.c
+
+GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/sci_fort.f 
+
+libscidynamic_link_la_CFLAGS = \
+-I$(top_srcdir)/modules/output_stream/includes \
+-I$(top_srcdir)/libs/dynamiclibrary/includes \
+-Isrc/c/ \
+-Iincludes/
+
+pkglib_LTLIBRARIES = libscidynamic_link.la
+libscidynamic_link_la_SOURCES = $(DYNAMIC_LINK_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+libscidynamic_link_la_LIBADD = $(top_builddir)/libs/dynamiclibrary/libscidynamiclibrary.la
+
+#### Target ######
+modulename=dynamic_link
+
+
+#### dynamic_link : Conf files ####
+libscidynamic_link_la_rootdir = $(mydatadir)
+libscidynamic_link_la_root_DATA = changelog.txt licence.txt readme.txt version.xml
+
+#### dynamic_link : init scripts #### 
+libscidynamic_link_la_etcdir = $(mydatadir)/etc
+libscidynamic_link_la_etc_DATA = etc/dynamic_link.quit etc/dynamic_link.start
+
+#### dynamic_link : gateway declaration ####
+libscidynamic_link_la_sci_gatewaydir = $(mydatadir)/sci_gateway
+libscidynamic_link_la_sci_gateway_DATA = sci_gateway/dynamic_link_gateway.xml
+
+
+#### dynamic_link : compilation scripts #### 
+libscidynamic_link_la_scriptdir = $(mydatadir)/src/scripts/
+libscidynamic_link_la_script_DATA = src/scripts/Makefile.in \
+src/scripts/configure.ac \
+src/scripts/ltmain.sh \
+src/scripts/Makefile.am \
+src/scripts/aclocal.m4
+
+libscidynamic_link_la_script_SCRIPTS = src/scripts/compilerDetection.sh \
+src/scripts/config.guess \
+src/scripts/config.sub \
+src/scripts/configure \
+src/scripts/depcomp \
+src/scripts/install-sh \
+src/scripts/missing \
+src/scripts/scicompile.sh
+include $(top_srcdir)/Makefile.incl.am
index 96b3187..e4cbd56 100644 (file)
@@ -1,52 +1,52 @@
-;##############################################################################################################\r
-; Script d'installation Inno Setup (5.2.1) pour scilab\r
-; Allan CORNET\r
-; Version TRUNK\r
-; Copyright INRIA 2007\r
-;##############################################################################################################\r
-;--------------------------------------------------------------------------------------------------------------\r
-; dynamic_link module\r
-;--------------------------------------------------------------------------------------------------------------\r
-;\r
-#define DYNAMIC_LINK "dynamic_link"\r
-;\r
-Source: bin\{#DYNAMIC_LINK}.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB}\r
-Source: bin\{#DYNAMIC_LINK}.lib; DestDir: {app}\bin; Components: {#COMPN_SCILAB}\r
-Source: bin\dynamic_link_f.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB}\r
-Source: bin\dynamic_link_f.lib; DestDir: {app}\bin; Components: {#COMPN_SCILAB}\r
-\r
-;\r
-Source: modules\{#DYNAMIC_LINK}\VERSION.xml; DestDir: {app}\modules\{#DYNAMIC_LINK}; Components: {#COMPN_SCILAB}\r
-Source: modules\{#DYNAMIC_LINK}\readme.txt; DestDir: {app}\modules\{#DYNAMIC_LINK}; Components: {#COMPN_SCILAB}\r
-Source: modules\{#DYNAMIC_LINK}\licence.txt; DestDir: {app}\modules\{#DYNAMIC_LINK}; Components: {#COMPN_SCILAB}\r
-Source: modules\{#DYNAMIC_LINK}\changelog.txt; DestDir: {app}\modules\{#DYNAMIC_LINK}; Components: {#COMPN_SCILAB}\r
-;\r
-Source: modules\{#DYNAMIC_LINK}\etc\{#DYNAMIC_LINK}.quit; DestDir: {app}\modules\{#DYNAMIC_LINK}\etc; Components: {#COMPN_SCILAB}\r
-Source: modules\{#DYNAMIC_LINK}\etc\{#DYNAMIC_LINK}.start; DestDir: {app}\modules\{#DYNAMIC_LINK}\etc; Components: {#COMPN_SCILAB}\r
-;\r
-Source: modules\{#DYNAMIC_LINK}\sci_gateway\dynamic_link_gateway.xml; DestDir: {app}\modules\{#DYNAMIC_LINK}\sci_gateway; Components: {#COMPN_SCILAB}\r
-;\r
-Source: modules\{#DYNAMIC_LINK}\help\addchapter.sce; DestDir: {app}\modules\{#DYNAMIC_LINK}\help; Flags: recursesubdirs; Components:  {#COMPN_SCILAB}\r
-;\r
-Source: modules\{#DYNAMIC_LINK}\help\*.htm; DestDir: {app}\modules\{#DYNAMIC_LINK}\help; Flags: recursesubdirs; Components: {#COMPN_SCILAB}\r
-;\r
-Source: modules\{#DYNAMIC_LINK}\src\scripts\Makedll.incl; DestDir: {app}\modules\{#DYNAMIC_LINK}\src\scripts; Components: {#COMPN_SCILAB}\r
-Source: modules\{#DYNAMIC_LINK}\src\scripts\TEMPLATE_MAKEFILE.VC; DestDir: {app}\modules\{#DYNAMIC_LINK}\src\scripts; Components: {#COMPN_SCILAB}\r
-;\r
-Source: modules\{#DYNAMIC_LINK}\includes\*.h; DestDir: {app}\modules\{#DYNAMIC_LINK}\includes; Components: {#COMPN_SCILAB}\r
-;\r
-Source: modules\{#DYNAMIC_LINK}\macros\lib; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}\r
-Source: modules\{#DYNAMIC_LINK}\macros\names; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}\r
-Source: modules\{#DYNAMIC_LINK}\macros\*.bin; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}\r
-Source: modules\{#DYNAMIC_LINK}\macros\*.sci; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}\r
-Source: modules\{#DYNAMIC_LINK}\macros\buildmacros.sce; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}\r
-Source: modules\{#DYNAMIC_LINK}\macros\buildmacros.bat; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}\r
-Source: modules\{#DYNAMIC_LINK}\macros\cleanmacros.bat; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}\r
-;\r
-;Source: modules\{#DYNAMIC_LINK}\demos\*.*; DestDir: {app}\modules\{#DYNAMIC_LINK}\demos; Flags: recursesubdirs; Components: {#COMPN_SCILAB}\r
-;\r
-;Source: modules\{#DYNAMIC_LINK}\examples\*.*; DestDir: {app}\modules\{#DYNAMIC_LINK}\examples; Flags: recursesubdirs; Components: {#COMPN_SCILAB}\r
-;\r
-Source: modules\{#DYNAMIC_LINK}\tests\*.*; DestDir: {app}\modules\{#DYNAMIC_LINK}\tests; Flags: recursesubdirs; Components: {#COMPN_SCILAB} and {#COMPN_TESTS}\r
-;\r
-;--------------------------------------------------------------------------------------------------------------\r
+;##############################################################################################################
+; Script d'installation Inno Setup (5.2.1) pour scilab
+; Allan CORNET
+; Version TRUNK
+; Copyright INRIA 2007
+;##############################################################################################################
+;--------------------------------------------------------------------------------------------------------------
+; dynamic_link module
+;--------------------------------------------------------------------------------------------------------------
+;
+#define DYNAMIC_LINK "dynamic_link"
+;
+Source: bin\{#DYNAMIC_LINK}.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB}
+Source: bin\{#DYNAMIC_LINK}.lib; DestDir: {app}\bin; Components: {#COMPN_SCILAB}
+Source: bin\dynamic_link_f.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB}
+Source: bin\dynamic_link_f.lib; DestDir: {app}\bin; Components: {#COMPN_SCILAB}
+
+;
+Source: modules\{#DYNAMIC_LINK}\VERSION.xml; DestDir: {app}\modules\{#DYNAMIC_LINK}; Components: {#COMPN_SCILAB}
+Source: modules\{#DYNAMIC_LINK}\readme.txt; DestDir: {app}\modules\{#DYNAMIC_LINK}; Components: {#COMPN_SCILAB}
+Source: modules\{#DYNAMIC_LINK}\licence.txt; DestDir: {app}\modules\{#DYNAMIC_LINK}; Components: {#COMPN_SCILAB}
+Source: modules\{#DYNAMIC_LINK}\changelog.txt; DestDir: {app}\modules\{#DYNAMIC_LINK}; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#DYNAMIC_LINK}\etc\{#DYNAMIC_LINK}.quit; DestDir: {app}\modules\{#DYNAMIC_LINK}\etc; Components: {#COMPN_SCILAB}
+Source: modules\{#DYNAMIC_LINK}\etc\{#DYNAMIC_LINK}.start; DestDir: {app}\modules\{#DYNAMIC_LINK}\etc; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#DYNAMIC_LINK}\sci_gateway\dynamic_link_gateway.xml; DestDir: {app}\modules\{#DYNAMIC_LINK}\sci_gateway; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#DYNAMIC_LINK}\help\addchapter.sce; DestDir: {app}\modules\{#DYNAMIC_LINK}\help; Flags: recursesubdirs; Components:  {#COMPN_SCILAB}
+;
+Source: modules\{#DYNAMIC_LINK}\help\*.htm; DestDir: {app}\modules\{#DYNAMIC_LINK}\help; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#DYNAMIC_LINK}\src\scripts\Makedll.incl; DestDir: {app}\modules\{#DYNAMIC_LINK}\src\scripts; Components: {#COMPN_SCILAB}
+Source: modules\{#DYNAMIC_LINK}\src\scripts\TEMPLATE_MAKEFILE.VC; DestDir: {app}\modules\{#DYNAMIC_LINK}\src\scripts; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#DYNAMIC_LINK}\includes\*.h; DestDir: {app}\modules\{#DYNAMIC_LINK}\includes; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#DYNAMIC_LINK}\macros\lib; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
+Source: modules\{#DYNAMIC_LINK}\macros\names; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
+Source: modules\{#DYNAMIC_LINK}\macros\*.bin; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
+Source: modules\{#DYNAMIC_LINK}\macros\*.sci; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
+Source: modules\{#DYNAMIC_LINK}\macros\buildmacros.sce; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
+Source: modules\{#DYNAMIC_LINK}\macros\buildmacros.bat; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
+Source: modules\{#DYNAMIC_LINK}\macros\cleanmacros.bat; DestDir: {app}\modules\{#DYNAMIC_LINK}\macros; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
+;
+;Source: modules\{#DYNAMIC_LINK}\demos\*.*; DestDir: {app}\modules\{#DYNAMIC_LINK}\demos; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
+;
+;Source: modules\{#DYNAMIC_LINK}\examples\*.*; DestDir: {app}\modules\{#DYNAMIC_LINK}\examples; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#DYNAMIC_LINK}\tests\*.*; DestDir: {app}\modules\{#DYNAMIC_LINK}\tests; Flags: recursesubdirs; Components: {#COMPN_SCILAB} and {#COMPN_TESTS}
+;
+;--------------------------------------------------------------------------------------------------------------
index 54ecfd8..e4b323e 100644 (file)
@@ -1,9 +1,9 @@
-// ====================================================================\r
-// This file contains command to be executed at the end \r
-// of a scilab session for dynamic_link module\r
-// Copyright INRIA 2008\r
-// Allan CORNET\r
-// ====================================================================\r
-// delete help chapter\r
-del_help_chapter('dynamic_link',%T);\r
-// ====================================================================\r
+// ====================================================================
+// This file contains command to be executed at the end 
+// of a scilab session for dynamic_link module
+// Copyright INRIA 2008
+// Allan CORNET
+// ====================================================================
+// delete help chapter
+del_help_chapter('dynamic_link',%T);
+// ====================================================================
index aa62412..70024d8 100644 (file)
@@ -1,36 +1,36 @@
-// ====================================================================\r
-// dynamic_link module initialisation file \r
-// Copyright INRIA 2008\r
-// Allan CORNET\r
-// ====================================================================\r
-//Load  functions librarie\r
-load('SCI/modules/dynamic_link/macros/lib');\r
-// ====================================================================\r
-//add help chapter\r
-add_module_help_chapter('dynamic_link');\r
-// LCC initialization =================================================\r
-global LCC; \r
-if ~MSDOS then\r
- LCC=%F;\r
-end\r
-// Configure Environment Variables for Ms Visual C ====================\r
-if MSDOS then\r
-       if (~isdef('WSCI')) then\r
-        WSCI = getlongpathname( pathconvert(SCI, %f, %f, 'w') );\r
-       end\r
-       if (findmsvccompiler()<>'unknown') then\r
-    configure_msvc();\r
-    LCC=%F; // Always choose MsVc if it is installed by default\r
-    clear configure_msvc\r
-  else\r
-    if ( findlcccompiler() ) then\r
-      LCC=%T;\r
-      configure_lcc();\r
-      clear configure_lcc findlcccompiler\r
-    end\r
-  end\r
-  clear findmsvccompiler\r
-end\r
-// ====================================================================\r
-clear LCC \r
-// ====================================================================\r
+// ====================================================================
+// dynamic_link module initialisation file 
+// Copyright INRIA 2008
+// Allan CORNET
+// ====================================================================
+//Load  functions librarie
+load('SCI/modules/dynamic_link/macros/lib');
+// ====================================================================
+//add help chapter
+add_module_help_chapter('dynamic_link');
+// LCC initialization =================================================
+global LCC; 
+if ~MSDOS then
+ LCC=%F;
+end
+// Configure Environment Variables for Ms Visual C ====================
+if MSDOS then
+       if (~isdef('WSCI')) then
+        WSCI = getlongpathname( pathconvert(SCI, %f, %f, 'w') );
+       end
+       if (findmsvccompiler()<>'unknown') then
+    configure_msvc();
+    LCC=%F; // Always choose MsVc if it is installed by default
+    clear configure_msvc
+  else
+    if ( findlcccompiler() ) then
+      LCC=%T;
+      configure_lcc();
+      clear configure_lcc findlcccompiler
+    end
+  end
+  clear findmsvccompiler
+end
+// ====================================================================
+clear LCC 
+// ====================================================================
index 00a22c7..98300bf 100644 (file)
@@ -1,68 +1,68 @@
-<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>G_make</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>\r
-  <SHORT_DESCRIPTION name="G_make"> call make or nmake</SHORT_DESCRIPTION>\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>Rfiles=G_make(files,dllname)  </CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>files</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a character string or a vector of character string.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>dllname</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a character string.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>Rfiles</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: vector of character string. <VERB>Rfiles</VERB> can be used as a first argument when calling <VERB>addinter</VERB> function.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-  <DESCRIPTION>\r
-    <P>On Unix like systems <VERB>G_make</VERB> calls the <VERB>make</VERB> utility for building target <VERB>files</VERB>\r
-    and returns the value of <VERB>files</VERB> in the variable <VERB>Rfiles</VERB>.\r
-    On windows platforms, <VERB>G_make</VERB> calls the <VERB>nmake</VERB> utility for building target <VERB>dllname</VERB> and it\r
-    returns the value of <VERB>dllname</VERB> in the variable <VERB>Rfiles</VERB>. \r
-    Of course <VERB>G_make</VERB> will work if apropriate Makefiles are \r
-    provided in the current Scilab directory.\r
-    </P>\r
-    <P><VERB>G_make</VERB> can be used to provide OS independant call to addinter.</P> \r
-    </DESCRIPTION>\r
-<EXAMPLE>\r
-<![CDATA[\r
-if MSDOS then\r
- txt = ['ex1c.dll:',\r
-              '  @echo ------------------------------------------',\r
-         '  @echo From Makefile.mak',\r
-              '  @echo ------------------------------------------',\r
-              ' '];\r
-  mputl(txt,TMPDIR+'/makefile.mak')\r
-  current_dir = pwd();  \r
-  cd TMPDIR\r
-  files=G_make([TMPDIR+'/ex1cI.o',TMPDIR+'/ex1c.o'],'ex1c.dll');// compilation \r
-  //\r
-  //addinter(files,'foobar','foubare'); // link \r
-  cd(current_dir);\r
-end\r
- ]]>\r
-  </EXAMPLE>\r
-  \r
-  <SEE_ALSO>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>addinter</LINK>\r
-    </SEE_ALSO_ITEM>\r
-  </SEE_ALSO>\r
-</MAN>\r
+<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>G_make</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>
+  <SHORT_DESCRIPTION name="G_make"> call make or nmake</SHORT_DESCRIPTION>
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>Rfiles=G_make(files,dllname)  </CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>files</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a character string or a vector of character string.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>dllname</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a character string.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>Rfiles</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: vector of character string. <VERB>Rfiles</VERB> can be used as a first argument when calling <VERB>addinter</VERB> function.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+  <DESCRIPTION>
+    <P>On Unix like systems <VERB>G_make</VERB> calls the <VERB>make</VERB> utility for building target <VERB>files</VERB>
+    and returns the value of <VERB>files</VERB> in the variable <VERB>Rfiles</VERB>.
+    On windows platforms, <VERB>G_make</VERB> calls the <VERB>nmake</VERB> utility for building target <VERB>dllname</VERB> and it
+    returns the value of <VERB>dllname</VERB> in the variable <VERB>Rfiles</VERB>. 
+    Of course <VERB>G_make</VERB> will work if apropriate Makefiles are 
+    provided in the current Scilab directory.
+    </P>
+    <P><VERB>G_make</VERB> can be used to provide OS independant call to addinter.</P> 
+    </DESCRIPTION>
+<EXAMPLE>
+<![CDATA[
+if MSDOS then
+ txt = ['ex1c.dll:',
+              '  @echo ------------------------------------------',
+         '  @echo From Makefile.mak',
+              '  @echo ------------------------------------------',
+              ' '];
+  mputl(txt,TMPDIR+'/makefile.mak')
+  current_dir = pwd();  
+  cd TMPDIR
+  files=G_make([TMPDIR+'/ex1cI.o',TMPDIR+'/ex1c.o'],'ex1c.dll');// compilation 
+  //
+  //addinter(files,'foobar','foubare'); // link 
+  cd(current_dir);
+end
+ ]]>
+  </EXAMPLE>
+  
+  <SEE_ALSO>
+    <SEE_ALSO_ITEM>
+      <LINK>addinter</LINK>
+    </SEE_ALSO_ITEM>
+  </SEE_ALSO>
+</MAN>
index d3bfb1b..5474ca8 100644 (file)
@@ -1,22 +1,22 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>VCtoLCCLib</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2006-08-30 13:26:08 +0200 (mer, 30 aoû 2006) $</DATE>\r
-  <SHORT_DESCRIPTION name="VCtoLCCLib">converts Ms VC libs to LCC-Win32 libs.</SHORT_DESCRIPTION>\r
-\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>VCtoLCCLib()</CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-  \r
-\r
-  <DESCRIPTION>\r
-    <P>converts Ms VC libs to LCC-Win32 libs.</P>\r
-  </DESCRIPTION>\r
-\r
-  <EXAMPLE><![CDATA[bOK=chooselcccompiler();VCtoLCCLib()]]></EXAMPLE>\r
-\r
-  <AUTHOR>Allan CORNET</AUTHOR>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>VCtoLCCLib</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2006-08-30 13:26:08 +0200 (mer, 30 aoû 2006) $</DATE>
+  <SHORT_DESCRIPTION name="VCtoLCCLib">converts Ms VC libs to LCC-Win32 libs.</SHORT_DESCRIPTION>
+
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>VCtoLCCLib()</CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+  
+
+  <DESCRIPTION>
+    <P>converts Ms VC libs to LCC-Win32 libs.</P>
+  </DESCRIPTION>
+
+  <EXAMPLE><![CDATA[bOK=chooselcccompiler();VCtoLCCLib()]]></EXAMPLE>
+
+  <AUTHOR>Allan CORNET</AUTHOR>
 </MAN>
\ No newline at end of file
index 5eb9bbe..8fb650d 100644 (file)
@@ -1,10 +1,10 @@
-// ====================================================================\r
-// help dynamic_link module\r
-// Add chapter\r
-// Copyright INRIA 2008\r
-// Allan CORNET\r
-// ====================================================================\r
-path = SCI+'/modules/dynamic_link/help/'+getdefaultlanguage();\r
-add_help_chapter("Dynamic Link",path,%T);\r
-clear path add_help_chapter;\r
-// ====================================================================\r
+// ====================================================================
+// help dynamic_link module
+// Add chapter
+// Copyright INRIA 2008
+// Allan CORNET
+// ====================================================================
+path = SCI+'/modules/dynamic_link/help/'+getdefaultlanguage();
+add_help_chapter("Dynamic Link",path,%T);
+clear path add_help_chapter;
+// ====================================================================
index 69dce9c..62513cc 100644 (file)
@@ -1,59 +1,59 @@
-<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>addinter</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2007-12-10 17:18:42 +0100 (Mon, 10 Dec 2007) $</DATE>\r
-  <SHORT_DESCRIPTION name="addinter"> new functions interface dynamic link at run time</SHORT_DESCRIPTION>\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>addinter(files,spname,fcts)  </CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>files</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a character string or a vector of character string contain object files used to define the new Scilab interface routine (interface code, user routines or libraries, system libraries).</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>spname</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a character string. Name of interface routine entry point</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>fcts</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: vector of character strings. The name of new Scilab function implemented in the new interface (in <VERB> fin</VERB> the order ).</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-  <DESCRIPTION>\r
-    <P><VERB>addinter</VERB> performs dynamic link of a compiled C or Fortran\r
-    new Scilab interface routine (see <VERB>intersci</VERB> documentation)\r
-    and define corresponding scilab functions.</P>\r
-    <P>\r
-    You can use the command <VERB>link('show')</VERB> to get the number of the shared libraries.\r
-    And to reload a new version of an interface a call to <VERB>ulink</VERB> is \r
-    necessary to get rid of the old version.</P>\r
-    <P>\r
-    See <VERB>link</VERB> for more precision on use.</P>\r
-  </DESCRIPTION>\r
-  <SEE_ALSO>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>intersci</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>newfun</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>clearfun</LINK>\r
-    </SEE_ALSO_ITEM>\r
-  </SEE_ALSO>\r
-</MAN>\r
+<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>addinter</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2007-12-10 17:18:42 +0100 (Mon, 10 Dec 2007) $</DATE>
+  <SHORT_DESCRIPTION name="addinter"> new functions interface dynamic link at run time</SHORT_DESCRIPTION>
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>addinter(files,spname,fcts)  </CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>files</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a character string or a vector of character string contain object files used to define the new Scilab interface routine (interface code, user routines or libraries, system libraries).</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>spname</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a character string. Name of interface routine entry point</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>fcts</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: vector of character strings. The name of new Scilab function implemented in the new interface (in <VERB> fin</VERB> the order ).</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+  <DESCRIPTION>
+    <P><VERB>addinter</VERB> performs dynamic link of a compiled C or Fortran
+    new Scilab interface routine (see <VERB>intersci</VERB> documentation)
+    and define corresponding scilab functions.</P>
+    <P>
+    You can use the command <VERB>link('show')</VERB> to get the number of the shared libraries.
+    And to reload a new version of an interface a call to <VERB>ulink</VERB> is 
+    necessary to get rid of the old version.</P>
+    <P>
+    See <VERB>link</VERB> for more precision on use.</P>
+  </DESCRIPTION>
+  <SEE_ALSO>
+    <SEE_ALSO_ITEM>
+      <LINK>link</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>intersci</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>newfun</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>clearfun</LINK>
+    </SEE_ALSO_ITEM>
+  </SEE_ALSO>
+</MAN>
index 0877827..50a6f78 100644 (file)
@@ -1,33 +1,33 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>chooselcccompiler</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2006-08-30 13:26:08 +0200 (mer, 30 aoû 2006) $</DATE>\r
-  <SHORT_DESCRIPTION name="chooselcccompiler">choose LCC-Win32 as the default C Compiler.</SHORT_DESCRIPTION>\r
-\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>bOK=chooselcccompiler()</CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>bOK</PARAM_NAME>\r
-\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: returns %T if LCC-Win32 is the default C Compiler.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-\r
-  <DESCRIPTION>\r
-    <P>choose LCC-Win32 as the default C Compiler.</P>\r
-  </DESCRIPTION>\r
-\r
-  <EXAMPLE><![CDATA[bOK=chooselcccompiler()]]></EXAMPLE>\r
-\r
-  <AUTHOR>Allan CORNET</AUTHOR>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>chooselcccompiler</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2006-08-30 13:26:08 +0200 (mer, 30 aoû 2006) $</DATE>
+  <SHORT_DESCRIPTION name="chooselcccompiler">choose LCC-Win32 as the default C Compiler.</SHORT_DESCRIPTION>
+
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>bOK=chooselcccompiler()</CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>bOK</PARAM_NAME>
+
+        <PARAM_DESCRIPTION>
+          <SP>: returns %T if LCC-Win32 is the default C Compiler.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+
+  <DESCRIPTION>
+    <P>choose LCC-Win32 as the default C Compiler.</P>
+  </DESCRIPTION>
+
+  <EXAMPLE><![CDATA[bOK=chooselcccompiler()]]></EXAMPLE>
+
+  <AUTHOR>Allan CORNET</AUTHOR>
 </MAN>
\ No newline at end of file
index bae5d67..25ad2b9 100644 (file)
@@ -1,34 +1,34 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>configure_lcc</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2006-08-30 13:26:08 +0200 (mer, 30 aoû 2006) $</DATE>\r
-  <SHORT_DESCRIPTION name="configure_lcc">set environments variables for LCC-Win32 C Compiler.</SHORT_DESCRIPTION>\r
-\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>bOK=configure_lcc()</CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>bOK</PARAM_NAME>\r
-\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: returns %T if environments variables for LCC-Win32 C Compiler are OK. </SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-\r
-  <DESCRIPTION>\r
-    <P>set environments variables for LCC-Win32 C Compiler.</P>\r
-  </DESCRIPTION>\r
-\r
-  <EXAMPLE><![CDATA[bOK=configure_lcc()\r
-]]></EXAMPLE>\r
-\r
-  <AUTHOR>Allan CORNET</AUTHOR>\r
-</MAN>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>configure_lcc</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2006-08-30 13:26:08 +0200 (mer, 30 aoû 2006) $</DATE>
+  <SHORT_DESCRIPTION name="configure_lcc">set environments variables for LCC-Win32 C Compiler.</SHORT_DESCRIPTION>
+
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>bOK=configure_lcc()</CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>bOK</PARAM_NAME>
+
+        <PARAM_DESCRIPTION>
+          <SP>: returns %T if environments variables for LCC-Win32 C Compiler are OK. </SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+
+  <DESCRIPTION>
+    <P>set environments variables for LCC-Win32 C Compiler.</P>
+  </DESCRIPTION>
+
+  <EXAMPLE><![CDATA[bOK=configure_lcc()
+]]></EXAMPLE>
+
+  <AUTHOR>Allan CORNET</AUTHOR>
+</MAN>
index fafc5a5..1aaac1a 100644 (file)
@@ -1,38 +1,38 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-\r
-  <TITLE>configure_msvc</TITLE>\r
-\r
-  <TYPE>Scilab Function</TYPE>\r
-\r
-  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>\r
-\r
-  <SHORT_DESCRIPTION name="configure_msvc">set environments variables for Microsoft C Compiler.</SHORT_DESCRIPTION>\r
-\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>bOK=configure_msvc()</CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>bOK</PARAM_NAME>\r
-\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: returns %T if environments variables for Ms C Compiler are OK. </SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-\r
-  <DESCRIPTION>\r
-    <P>set environments variables for Microsoft C Compiler.</P>\r
-  </DESCRIPTION>\r
-\r
-  <EXAMPLE><![CDATA[bOK=configure_msvc()\r
-]]></EXAMPLE>\r
-\r
-  <AUTHOR>Allan CORNET</AUTHOR>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+
+  <TITLE>configure_msvc</TITLE>
+
+  <TYPE>Scilab Function</TYPE>
+
+  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>
+
+  <SHORT_DESCRIPTION name="configure_msvc">set environments variables for Microsoft C Compiler.</SHORT_DESCRIPTION>
+
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>bOK=configure_msvc()</CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>bOK</PARAM_NAME>
+
+        <PARAM_DESCRIPTION>
+          <SP>: returns %T if environments variables for Ms C Compiler are OK. </SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+
+  <DESCRIPTION>
+    <P>set environments variables for Microsoft C Compiler.</P>
+  </DESCRIPTION>
+
+  <EXAMPLE><![CDATA[bOK=configure_msvc()
+]]></EXAMPLE>
+
+  <AUTHOR>Allan CORNET</AUTHOR>
 </MAN>
\ No newline at end of file
index b225696..2c8ad58 100644 (file)
@@ -1,34 +1,34 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>findlcccompiler</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2006-08-30 13:26:08 +0200 (mer, 30 aoû 2006) $</DATE>\r
-  <SHORT_DESCRIPTION name="findlccccompiler">detects LCC-Win32 C Compiler</SHORT_DESCRIPTION>\r
-\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>ret=findlcccompiler()</CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>ret</PARAM_NAME>\r
-\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: returns %T or %F</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-\r
-  <DESCRIPTION>\r
-    <P>detects LCC-Win32 C Compiler.</P>\r
-  </DESCRIPTION>\r
-\r
-  <EXAMPLE><![CDATA[ret=findlcccompiler()\r
-]]></EXAMPLE>\r
-\r
-  <AUTHOR>Allan CORNET</AUTHOR>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>findlcccompiler</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2006-08-30 13:26:08 +0200 (mer, 30 aoû 2006) $</DATE>
+  <SHORT_DESCRIPTION name="findlccccompiler">detects LCC-Win32 C Compiler</SHORT_DESCRIPTION>
+
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>ret=findlcccompiler()</CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>ret</PARAM_NAME>
+
+        <PARAM_DESCRIPTION>
+          <SP>: returns %T or %F</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+
+  <DESCRIPTION>
+    <P>detects LCC-Win32 C Compiler.</P>
+  </DESCRIPTION>
+
+  <EXAMPLE><![CDATA[ret=findlcccompiler()
+]]></EXAMPLE>
+
+  <AUTHOR>Allan CORNET</AUTHOR>
 </MAN>
\ No newline at end of file
index 4e7965a..b8e8c8b 100644 (file)
@@ -1,38 +1,38 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-\r
-  <TITLE>findmsvccompiler</TITLE>\r
-\r
-  <TYPE>Scilab Function</TYPE>\r
-\r
-  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>\r
-\r
-  <SHORT_DESCRIPTION name="findmsvccompiler">detects Microsoft C Compiler</SHORT_DESCRIPTION>\r
-\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>msvc=findmsvccompiler()</CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>msvc</PARAM_NAME>\r
-\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: returns 'msvc70','msvc71','msvc80express','msvc80std,'msvc80pro','msvc90express','msvc90std,'msvc90pro','unknown'</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-\r
-  <DESCRIPTION>\r
-    <P>detects Microsoft C Compiler.</P>\r
-  </DESCRIPTION>\r
-\r
-  <EXAMPLE><![CDATA[msvc=findmsvccompiler()\r
-]]></EXAMPLE>\r
-\r
-  <AUTHOR>Allan CORNET</AUTHOR>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+
+  <TITLE>findmsvccompiler</TITLE>
+
+  <TYPE>Scilab Function</TYPE>
+
+  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>
+
+  <SHORT_DESCRIPTION name="findmsvccompiler">detects Microsoft C Compiler</SHORT_DESCRIPTION>
+
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>msvc=findmsvccompiler()</CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>msvc</PARAM_NAME>
+
+        <PARAM_DESCRIPTION>
+          <SP>: returns 'msvc70','msvc71','msvc80express','msvc80std,'msvc80pro','msvc90express','msvc90std,'msvc90pro','unknown'</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+
+  <DESCRIPTION>
+    <P>detects Microsoft C Compiler.</P>
+  </DESCRIPTION>
+
+  <EXAMPLE><![CDATA[msvc=findmsvccompiler()
+]]></EXAMPLE>
+
+  <AUTHOR>Allan CORNET</AUTHOR>
 </MAN>
\ No newline at end of file
index 93358b6..2c7c482 100644 (file)
@@ -1,42 +1,42 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>haveacompiler</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2006-08-30 13:26:08 +0200 (mer, 30 aoû 2006) $</DATE>\r
-  <SHORT_DESCRIPTION name="haveacompiler">detect if you have a C compiler.</SHORT_DESCRIPTION>\r
-\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>bOK=haveacompiler()</CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>bOK</PARAM_NAME>\r
-\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: returns %T if you have a C compiler.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-\r
-  <DESCRIPTION>\r
-    <P>detect if you have a C compiler.</P>\r
-  </DESCRIPTION>\r
-\r
-  <EXAMPLE><![CDATA[bOK = haveacompiler();\r
-]]></EXAMPLE>\r
-\r
-<SEE_ALSO>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>findlcccompiler</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>findmsvccompiler</LINK>\r
-    </SEE_ALSO_ITEM>\r
-  </SEE_ALSO>\r
-\r
-</MAN>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>haveacompiler</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2006-08-30 13:26:08 +0200 (mer, 30 aoû 2006) $</DATE>
+  <SHORT_DESCRIPTION name="haveacompiler">detect if you have a C compiler.</SHORT_DESCRIPTION>
+
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>bOK=haveacompiler()</CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>bOK</PARAM_NAME>
+
+        <PARAM_DESCRIPTION>
+          <SP>: returns %T if you have a C compiler.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+
+  <DESCRIPTION>
+    <P>detect if you have a C compiler.</P>
+  </DESCRIPTION>
+
+  <EXAMPLE><![CDATA[bOK = haveacompiler();
+]]></EXAMPLE>
+
+<SEE_ALSO>
+    <SEE_ALSO_ITEM>
+      <LINK>findlcccompiler</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>findmsvccompiler</LINK>
+    </SEE_ALSO_ITEM>
+  </SEE_ALSO>
+
+</MAN>
index aa428c1..9f5ef53 100644 (file)
-<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>ilib_build</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>\r
-  <SHORT_DESCRIPTION name="ilib_build"> utility for shared library management</SHORT_DESCRIPTION>\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>ilib_build(lib_name,table,files,libs [,makename,ldflags,cflags,fflags])  </CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>lib_name</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a character string, the generic name of the library without path and extension.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>table</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: 2 column string matrix giving the table of pairs 'scilab-name', 'interface name'</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>files</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: string matrix giving objects files needed for shared library creation</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>libs</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: string matrix giving extra libraries needed for shred library creation</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>makename</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: character string. The path of the Makefile file without extension.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>ldflags,cflags,fflags</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: character strings to provide options for the loader, the C compiler and the Fortran compiler.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-  <DESCRIPTION>\r
-    <P>\r
-    This tool is used to create shared libraries and to generate a \r
-    loader file which can be used to dynamically load the shared library \r
-    into Scilab with <VERB>addinter</VERB></P>\r
-    <P>\r
-    Many examples are provided in <VERB>examples/interface-tour-so</VERB>\r
-    directory.</P>\r
-  </DESCRIPTION>\r
-  <EXAMPLE>\r
-<![CDATA[\r
-//Here with give a complete example on adding new primitive to Scilab\r
-//create the procedure files\r
-f1=['extern double fun2();'\r
-    'void fun1(x,y)'\r
-    'double *x, *y;'\r
-    '{*y=fun2(*x)/(*x);}'];\r
-\r
-mputl(f1,'fun1.c')\r
-\r
-f2=['#include <math.h>'\r
-    'double fun2(x)'\r
-    'double x;'\r
-    '{ return( sin(x+1.));}'];\r
-mputl(f2,'fun2.c');\r
-\r
-//creating the interface file\r
-i=['#include ""stack-c.h""'\r
-   'extern int fun1 _PARAMS(( double *x, double *y));'\r
-   'int intfun1(fname)' \r
-   'char * fname;'\r
-   '{'\r
-   '  int m1,n1,l1;'\r
-   '  CheckRhs(1,1);'\r
-   '  CheckLhs(1,1);'\r
-   '  GetRhsVar(1, ""d"", &m1, &n1, &l1);'\r
-   '  fun1(stk(l1),stk(l1));'\r
-   '  LhsVar(1) = 1;'\r
-   '  return 0;'\r
-   '}'];\r
-mputl(i,'intfun1.c')\r
-\r
-//creating the shared library (a gateway, a Makefile and a loader are \r
-//generated. \r
-\r
-files=['fun1.o','fun2.o','intfun1.o'];\r
-ilib_build('foo',['scifun1','intfun1'],files,[]);\r
-\r
-// load the shared library \r
-\r
-exec loader.sce \r
-\r
-//using the new primitive\r
-scifun1(33)\r
- ]]>\r
-  </EXAMPLE>\r
-  <SEE_ALSO>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>addinter</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_compile</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_Make</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_gateway</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_loader</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_for_link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-  </SEE_ALSO>\r
-</MAN>\r
+<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>ilib_build</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>
+  <SHORT_DESCRIPTION name="ilib_build"> utility for shared library management</SHORT_DESCRIPTION>
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>ilib_build(lib_name,table,files,libs [,makename,ldflags,cflags,fflags])  </CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>lib_name</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a character string, the generic name of the library without path and extension.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>table</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: 2 column string matrix giving the table of pairs 'scilab-name', 'interface name'</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>files</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: string matrix giving objects files needed for shared library creation</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>libs</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: string matrix giving extra libraries needed for shred library creation</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>makename</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: character string. The path of the Makefile file without extension.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>ldflags,cflags,fflags</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: character strings to provide options for the loader, the C compiler and the Fortran compiler.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+  <DESCRIPTION>
+    <P>
+    This tool is used to create shared libraries and to generate a 
+    loader file which can be used to dynamically load the shared library 
+    into Scilab with <VERB>addinter</VERB></P>
+    <P>
+    Many examples are provided in <VERB>examples/interface-tour-so</VERB>
+    directory.</P>
+  </DESCRIPTION>
+  <EXAMPLE>
+<![CDATA[
+//Here with give a complete example on adding new primitive to Scilab
+//create the procedure files
+f1=['extern double fun2();'
+    'void fun1(x,y)'
+    'double *x, *y;'
+    '{*y=fun2(*x)/(*x);}'];
+
+mputl(f1,'fun1.c')
+
+f2=['#include <math.h>'
+    'double fun2(x)'
+    'double x;'
+    '{ return( sin(x+1.));}'];
+mputl(f2,'fun2.c');
+
+//creating the interface file
+i=['#include ""stack-c.h""'
+   'extern int fun1 _PARAMS(( double *x, double *y));'
+   'int intfun1(fname)' 
+   'char * fname;'
+   '{'
+   '  int m1,n1,l1;'
+   '  CheckRhs(1,1);'
+   '  CheckLhs(1,1);'
+   '  GetRhsVar(1, ""d"", &m1, &n1, &l1);'
+   '  fun1(stk(l1),stk(l1));'
+   '  LhsVar(1) = 1;'
+   '  return 0;'
+   '}'];
+mputl(i,'intfun1.c')
+
+//creating the shared library (a gateway, a Makefile and a loader are 
+//generated. 
+
+files=['fun1.o','fun2.o','intfun1.o'];
+ilib_build('foo',['scifun1','intfun1'],files,[]);
+
+// load the shared library 
+
+exec loader.sce 
+
+//using the new primitive
+scifun1(33)
+ ]]>
+  </EXAMPLE>
+  <SEE_ALSO>
+    <SEE_ALSO_ITEM>
+      <LINK>addinter</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>link</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_compile</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_Make</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_gateway</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_loader</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_for_link</LINK>
+    </SEE_ALSO_ITEM>
+  </SEE_ALSO>
+</MAN>
index 1ca7d2e..193e252 100644 (file)
@@ -1,76 +1,76 @@
-<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>ilib_compile</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>\r
-  <SHORT_DESCRIPTION name="ilib_compile"> ilib_build utility: executes the\r
-    makefile produced by ilib_gen_Make</SHORT_DESCRIPTION>\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>libn=ilib_compile(lib_name,makename [,files])  </CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>lib_name</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a character string, the generic name of the library without path and extension.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>makename</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: character string. The path of the Makefile file without extension.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>files</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: optionnal vector of character strings. If files is given the make is performed on each \r
-           target contained in files then a whole make is performed </SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>libn</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: character string. The path of the really generated shared library file.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-  <DESCRIPTION>\r
-    <P>\r
-    Utility function used by <VERB>ilib_build</VERB></P>\r
-    <P>\r
-    This executes the  makefile produced by <VERB>ilib_gen_Make</VERB>, compiles\r
-    the C and fortran files and generates the shared library.</P>\r
-    <P>\r
-    Shared libraries can then be used with the <VERB>link</VERB> and\r
-    <VERB>addinter</VERB> scilab function for dynamic link.</P>\r
-  </DESCRIPTION>\r
-  <SEE_ALSO>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>addinter</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_build</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_Make</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_gateway</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_loader</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_for_link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-  </SEE_ALSO>\r
-</MAN>\r
+<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>ilib_compile</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>
+  <SHORT_DESCRIPTION name="ilib_compile"> ilib_build utility: executes the
+    makefile produced by ilib_gen_Make</SHORT_DESCRIPTION>
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>libn=ilib_compile(lib_name,makename [,files])  </CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>lib_name</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a character string, the generic name of the library without path and extension.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>makename</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: character string. The path of the Makefile file without extension.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>files</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: optionnal vector of character strings. If files is given the make is performed on each 
+           target contained in files then a whole make is performed </SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+
+      <PARAM_ITEM>
+        <PARAM_NAME>libn</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: character string. The path of the really generated shared library file.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+  <DESCRIPTION>
+    <P>
+    Utility function used by <VERB>ilib_build</VERB></P>
+    <P>
+    This executes the  makefile produced by <VERB>ilib_gen_Make</VERB>, compiles
+    the C and fortran files and generates the shared library.</P>
+    <P>
+    Shared libraries can then be used with the <VERB>link</VERB> and
+    <VERB>addinter</VERB> scilab function for dynamic link.</P>
+  </DESCRIPTION>
+  <SEE_ALSO>
+    <SEE_ALSO_ITEM>
+      <LINK>addinter</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>link</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_build</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_Make</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_gateway</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_loader</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_for_link</LINK>
+    </SEE_ALSO_ITEM>
+  </SEE_ALSO>
+</MAN>
index 2e4957b..43aec23 100644 (file)
-<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>ilib_for_link</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2008-01-14 16:52:36 +0100 (Mon, 14 Jan 2008) $</DATE>\r
-  <SHORT_DESCRIPTION name="ilib_for_link"> utility for shared library management with link</SHORT_DESCRIPTION>\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>libn=ilib_for_link(names,files,libs,flag [,makename\r
-      [,loadername [,libname [,ldflags [,cflags [,fflags [,cc]]]]]]])  </CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>names</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a string matrix giving the entry names which are to be linked.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>files</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: string matrix giving objects files needed for shared library creation</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>libs</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: string matrix giving extra libraries needed for shred library creation</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>flag</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a string flag (&quot;c&quot; or &quot;f&quot;) for C or Fortran entry points.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>makename</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: character string. The pathname of the Makefile file without extension (default value <VERB>Makelib</VERB>).</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>loadername</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: character string. The pathname of the loader file (default\r
-           value is   <VERB>loader.sce</VERB>).</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>libname</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: optional character string. The name of the generated shared\r
-           library (default value  is '', and in this case the name is derived\r
-           from <VERB>names(1)</VERB>).</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>ldflags</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: optional character string. It can be used to add specific linker options in the\r
-           generated Makefile. Default value is ''</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-     <PARAM_ITEM>\r
-        <PARAM_NAME>cflags</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: optional character  string. It can be used to add specific C compiler options in the\r
-           generated Makefile. Default value is ''</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-     <PARAM_ITEM>\r
-        <PARAM_NAME>fflags</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: optional character  string. It can be used to add specific Fortran compiler options in the\r
-           generated Makefile. Default value is ''</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    <PARAM_ITEM>\r
-        <PARAM_NAME>cc</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: optional character  string. It can be used to specify a C compiler. Default value is ''</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>libn</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: character string. The path of the really generated shared library file.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-  <DESCRIPTION>\r
-    <P>\r
-    This tool is used to create shared libraries and to generate a \r
-    loader file which can be used to dynamically load the shared library \r
-    into Scilab with the <VERB>link</VERB> function. New entry points \r
-    given by <VERB>names</VERB> are then accessible through the <VERB>call</VERB> \r
-    function or with non linear tools <VERB>ode</VERB>, <VERB>optim</VERB>,...</P>\r
-    <P>\r
-    The file to compile are supposed to be located given by\r
-    <VERB>makename</VERB>. If <VERB>makename</VERB> sets a path different to the\r
-    current directory, <VERB>loader</VERB> script must be located in\r
-    the same directory using the <VERB>loadername</VERB> variable.</P>\r
-    <P>\r
-    Many examples are provided in <VERB>examples/link-examples-so</VERB>\r
-    directory.</P>\r
-  </DESCRIPTION>\r
-  <EXAMPLE>\r
-<![CDATA[\r
-chdir(TMPDIR)\r
-f1=['int ext1c(n, a, b, c)'\r
-    'int *n;     double *a, *b, *c;'\r
-    '{int k;'\r
-    '  for (k = 0; k < *n; ++k) '\r
-    '      c[k] = a[k] + b[k];'\r
-    '  return(0);}'];\r
-\r
-mputl(f1,'fun1.c')\r
-\r
-//creating the shared library (a gateway, a Makefile and a loader are \r
-//generated. \r
-\r
-ilib_for_link('ext1c','fun1.o',[],"c") \r
-\r
-// load the shared library \r
-\r
-exec loader.sce \r
-\r
-//using the new primitive\r
-a=[1,2,3];b=[4,5,6];n=3;\r
-c=call('ext1c',n,1,'i',a,2,'d',b,3,'d','out',[1,3],4,'d');\r
-if norm(c-(a+b)) > %eps then pause,end\r
-\r
- ]]>\r
-  </EXAMPLE>\r
-  <SEE_ALSO>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>addinter</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_compile</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_Make</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_gateway</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_loader</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_for_link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-  </SEE_ALSO>\r
-</MAN>\r
+<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>ilib_for_link</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2008-01-14 16:52:36 +0100 (Mon, 14 Jan 2008) $</DATE>
+  <SHORT_DESCRIPTION name="ilib_for_link"> utility for shared library management with link</SHORT_DESCRIPTION>
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>libn=ilib_for_link(names,files,libs,flag [,makename
+      [,loadername [,libname [,ldflags [,cflags [,fflags [,cc]]]]]]])  </CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>names</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a string matrix giving the entry names which are to be linked.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>files</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: string matrix giving objects files needed for shared library creation</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>libs</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: string matrix giving extra libraries needed for shred library creation</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>flag</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a string flag (&quot;c&quot; or &quot;f&quot;) for C or Fortran entry points.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>makename</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: character string. The pathname of the Makefile file without extension (default value <VERB>Makelib</VERB>).</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>loadername</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: character string. The pathname of the loader file (default
+           value is   <VERB>loader.sce</VERB>).</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>libname</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: optional character string. The name of the generated shared
+           library (default value  is '', and in this case the name is derived
+           from <VERB>names(1)</VERB>).</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>ldflags</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: optional character string. It can be used to add specific linker options in the
+           generated Makefile. Default value is ''</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+     <PARAM_ITEM>
+        <PARAM_NAME>cflags</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: optional character  string. It can be used to add specific C compiler options in the
+           generated Makefile. Default value is ''</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+     <PARAM_ITEM>
+        <PARAM_NAME>fflags</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: optional character  string. It can be used to add specific Fortran compiler options in the
+           generated Makefile. Default value is ''</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    <PARAM_ITEM>
+        <PARAM_NAME>cc</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: optional character  string. It can be used to specify a C compiler. Default value is ''</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>libn</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: character string. The path of the really generated shared library file.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+  <DESCRIPTION>
+    <P>
+    This tool is used to create shared libraries and to generate a 
+    loader file which can be used to dynamically load the shared library 
+    into Scilab with the <VERB>link</VERB> function. New entry points 
+    given by <VERB>names</VERB> are then accessible through the <VERB>call</VERB> 
+    function or with non linear tools <VERB>ode</VERB>, <VERB>optim</VERB>,...</P>
+    <P>
+    The file to compile are supposed to be located given by
+    <VERB>makename</VERB>. If <VERB>makename</VERB> sets a path different to the
+    current directory, <VERB>loader</VERB> script must be located in
+    the same directory using the <VERB>loadername</VERB> variable.</P>
+    <P>
+    Many examples are provided in <VERB>examples/link-examples-so</VERB>
+    directory.</P>
+  </DESCRIPTION>
+  <EXAMPLE>
+<![CDATA[
+chdir(TMPDIR)
+f1=['int ext1c(n, a, b, c)'
+    'int *n;     double *a, *b, *c;'
+    '{int k;'
+    '  for (k = 0; k < *n; ++k) '
+    '      c[k] = a[k] + b[k];'
+    '  return(0);}'];
+
+mputl(f1,'fun1.c')
+
+//creating the shared library (a gateway, a Makefile and a loader are 
+//generated. 
+
+ilib_for_link('ext1c','fun1.o',[],"c") 
+
+// load the shared library 
+
+exec loader.sce 
+
+//using the new primitive
+a=[1,2,3];b=[4,5,6];n=3;
+c=call('ext1c',n,1,'i',a,2,'d',b,3,'d','out',[1,3],4,'d');
+if norm(c-(a+b)) > %eps then pause,end
+
+ ]]>
+  </EXAMPLE>
+  <SEE_ALSO>
+    <SEE_ALSO_ITEM>
+      <LINK>addinter</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>link</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_compile</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_Make</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_gateway</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_loader</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_for_link</LINK>
+    </SEE_ALSO_ITEM>
+  </SEE_ALSO>
+</MAN>
index 57f461c..22458fa 100644 (file)
-<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>ilib_gen_Make</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>\r
-  <SHORT_DESCRIPTION name="ilib_gen_Make"> utility for  <VERB>ilib_build</VERB>: produces a makefile for building shared libraries</SHORT_DESCRIPTION>\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>Makename=ilib_gen_Make(name,files,libs,makename [,with_gateway,ldflags,cflags,fflags])  </CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>lib_name</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a character string, the generic name of the library without path and extension.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>files</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a vector of character string. The names of the C or Fortran files without the extension and the path part.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>libs</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a vector of character string. additionnal libraries paths or [].</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>makename</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: character string. The path of the Makefile file.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>with_gateway</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a boolean. If true a file with name &lt;lib_name&gt;_gateway is\r
-           added. Default value is %t</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>ldflags</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a string. It can be used to add specific linker options in the\r
-           generated Makefile. Default value is ''</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-     <PARAM_ITEM>\r
-        <PARAM_NAME>cflags</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a string. It can be used to add specific C compiler options in the\r
-           generated Makefile. Default value is ''</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-     <PARAM_ITEM>\r
-        <PARAM_NAME>fflags</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a string. It can be used to add specific Fortran compiler options in the\r
-           generated Makefile. Default value is ''</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>Makename</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: character string. The path of the really generated Makefile file.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-  <DESCRIPTION>\r
-    <P>\r
-    Utility function used by <VERB>ilib_build</VERB></P>\r
-    <P>\r
-    This function generates a makefile adapted to the Operating System for\r
-    building shared libraries to be loaded in Scilab. Proper options and\r
-    paths are set.</P>\r
-    <P>\r
-    Shared libraries can then be used with the <VERB>link</VERB> and\r
-    <VERB>addinter</VERB> scilab function for incremental linking.</P>\r
-    <P>\r
-    The shared library is build from a set of C or Fortran routines\r
-    stored in a directory and if required from a set of external\r
-    libraries.</P>\r
-    <P>\r
-    Files are not required to exist, when makefile is generated, but of\r
-    course are required for executing the makefile.</P>\r
-  </DESCRIPTION>\r
-  <SEE_ALSO>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>addinter</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_build</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_compile</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_gateway</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_loader</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_for_link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-  </SEE_ALSO>\r
-</MAN>\r
+<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>ilib_gen_Make</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>
+  <SHORT_DESCRIPTION name="ilib_gen_Make"> utility for  <VERB>ilib_build</VERB>: produces a makefile for building shared libraries</SHORT_DESCRIPTION>
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>Makename=ilib_gen_Make(name,files,libs,makename [,with_gateway,ldflags,cflags,fflags])  </CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>lib_name</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a character string, the generic name of the library without path and extension.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>files</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a vector of character string. The names of the C or Fortran files without the extension and the path part.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>libs</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a vector of character string. additionnal libraries paths or [].</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>makename</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: character string. The path of the Makefile file.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>with_gateway</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a boolean. If true a file with name &lt;lib_name&gt;_gateway is
+           added. Default value is %t</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>ldflags</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a string. It can be used to add specific linker options in the
+           generated Makefile. Default value is ''</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+     <PARAM_ITEM>
+        <PARAM_NAME>cflags</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a string. It can be used to add specific C compiler options in the
+           generated Makefile. Default value is ''</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+     <PARAM_ITEM>
+        <PARAM_NAME>fflags</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a string. It can be used to add specific Fortran compiler options in the
+           generated Makefile. Default value is ''</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>Makename</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: character string. The path of the really generated Makefile file.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+  <DESCRIPTION>
+    <P>
+    Utility function used by <VERB>ilib_build</VERB></P>
+    <P>
+    This function generates a makefile adapted to the Operating System for
+    building shared libraries to be loaded in Scilab. Proper options and
+    paths are set.</P>
+    <P>
+    Shared libraries can then be used with the <VERB>link</VERB> and
+    <VERB>addinter</VERB> scilab function for incremental linking.</P>
+    <P>
+    The shared library is build from a set of C or Fortran routines
+    stored in a directory and if required from a set of external
+    libraries.</P>
+    <P>
+    Files are not required to exist, when makefile is generated, but of
+    course are required for executing the makefile.</P>
+  </DESCRIPTION>
+  <SEE_ALSO>
+    <SEE_ALSO_ITEM>
+      <LINK>addinter</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>link</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_build</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_compile</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_gateway</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_loader</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_for_link</LINK>
+    </SEE_ALSO_ITEM>
+  </SEE_ALSO>
+</MAN>
index 6345e20..bb156a2 100644 (file)
@@ -1,56 +1,56 @@
-<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-       <LANGUAGE>eng</LANGUAGE>\r
-       <TITLE>ilib_gen_gateway</TITLE>\r
-       <TYPE>Scilab Function</TYPE>\r
-       <DATE>$LastChangedDate: 2007-08-27 14:09:33 +0200 (Mon, 27 Aug 2007) $</DATE>\r
-       <SHORT_DESCRIPTION name="ilib_gen_gateway"> utility for <VERB>ilib_build</VERB>, generates a gateway file.  </SHORT_DESCRIPTION>\r
-       <CALLING_SEQUENCE>\r
-               <CALLING_SEQUENCE_ITEM>ilib_gen_gateway(name,table)  </CALLING_SEQUENCE_ITEM>\r
-       </CALLING_SEQUENCE>\r
-       <PARAM>\r
-               <PARAM_INDENT>\r
-                       <PARAM_ITEM>\r
-                               <PARAM_NAME>name</PARAM_NAME>\r
-                               <PARAM_DESCRIPTION>\r
-                                       <SP>: a character string, the generic name of the library without path and extension.</SP>\r
-                               </PARAM_DESCRIPTION>\r
-                       </PARAM_ITEM>\r
-                       <PARAM_ITEM>\r
-                               <PARAM_NAME>table</PARAM_NAME>\r
-                               <PARAM_DESCRIPTION>\r
-                                       <SP>: 2 column string matrix giving the table of pairs 'scilab-name' 'interface name'</SP>\r
-                               </PARAM_DESCRIPTION>\r
-                       </PARAM_ITEM>\r
-               </PARAM_INDENT>\r
-       </PARAM>\r
-       <DESCRIPTION>\r
-               <P>\r
-                       Utility function used by <VERB>ilib_build</VERB>\r
-                       This function generates a gateway file used by <VERB>addinter</VERB>.</P>\r
-       </DESCRIPTION>\r
-       <SEE_ALSO>\r
-               <SEE_ALSO_ITEM>\r
-                       <LINK>addinter</LINK>\r
-               </SEE_ALSO_ITEM>\r
-               <SEE_ALSO_ITEM>\r
-                       <LINK>link</LINK>\r
-               </SEE_ALSO_ITEM>\r
-               <SEE_ALSO_ITEM>\r
-                       <LINK>ilib_build</LINK>\r
-               </SEE_ALSO_ITEM>\r
-               <SEE_ALSO_ITEM>\r
-                       <LINK>ilib_compile</LINK>\r
-               </SEE_ALSO_ITEM>\r
-               <SEE_ALSO_ITEM>\r
-                       <LINK>ilib_gen_Make</LINK>\r
-               </SEE_ALSO_ITEM>\r
-               <SEE_ALSO_ITEM>\r
-                       <LINK>ilib_gen_loader</LINK>\r
-               </SEE_ALSO_ITEM>\r
-               <SEE_ALSO_ITEM>\r
-                       <LINK>ilib_for_link</LINK>\r
-               </SEE_ALSO_ITEM>\r
-       </SEE_ALSO>\r
-</MAN>\r
+<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+       <LANGUAGE>eng</LANGUAGE>
+       <TITLE>ilib_gen_gateway</TITLE>
+       <TYPE>Scilab Function</TYPE>
+       <DATE>$LastChangedDate: 2007-08-27 14:09:33 +0200 (Mon, 27 Aug 2007) $</DATE>
+       <SHORT_DESCRIPTION name="ilib_gen_gateway"> utility for <VERB>ilib_build</VERB>, generates a gateway file.  </SHORT_DESCRIPTION>
+       <CALLING_SEQUENCE>
+               <CALLING_SEQUENCE_ITEM>ilib_gen_gateway(name,table)  </CALLING_SEQUENCE_ITEM>
+       </CALLING_SEQUENCE>
+       <PARAM>
+               <PARAM_INDENT>
+                       <PARAM_ITEM>
+                               <PARAM_NAME>name</PARAM_NAME>
+                               <PARAM_DESCRIPTION>
+                                       <SP>: a character string, the generic name of the library without path and extension.</SP>
+                               </PARAM_DESCRIPTION>
+                       </PARAM_ITEM>
+                       <PARAM_ITEM>
+                               <PARAM_NAME>table</PARAM_NAME>
+                               <PARAM_DESCRIPTION>
+                                       <SP>: 2 column string matrix giving the table of pairs 'scilab-name' 'interface name'</SP>
+                               </PARAM_DESCRIPTION>
+                       </PARAM_ITEM>
+               </PARAM_INDENT>
+       </PARAM>
+       <DESCRIPTION>
+               <P>
+                       Utility function used by <VERB>ilib_build</VERB>
+                       This function generates a gateway file used by <VERB>addinter</VERB>.</P>
+       </DESCRIPTION>
+       <SEE_ALSO>
+               <SEE_ALSO_ITEM>
+                       <LINK>addinter</LINK>
+               </SEE_ALSO_ITEM>
+               <SEE_ALSO_ITEM>
+                       <LINK>link</LINK>
+               </SEE_ALSO_ITEM>
+               <SEE_ALSO_ITEM>
+                       <LINK>ilib_build</LINK>
+               </SEE_ALSO_ITEM>
+               <SEE_ALSO_ITEM>
+                       <LINK>ilib_compile</LINK>
+               </SEE_ALSO_ITEM>
+               <SEE_ALSO_ITEM>
+                       <LINK>ilib_gen_Make</LINK>
+               </SEE_ALSO_ITEM>
+               <SEE_ALSO_ITEM>
+                       <LINK>ilib_gen_loader</LINK>
+               </SEE_ALSO_ITEM>
+               <SEE_ALSO_ITEM>
+                       <LINK>ilib_for_link</LINK>
+               </SEE_ALSO_ITEM>
+       </SEE_ALSO>
+</MAN>
index c0bc503..597b72c 100644 (file)
@@ -1,56 +1,56 @@
-<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>ilib_gen_loader</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>\r
-  <SHORT_DESCRIPTION name="ilib_gen_loader"> utility for <VERB>ilib_build</VERB>: generates a loader file</SHORT_DESCRIPTION>\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>ilib_gen_loader(name,table)  </CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>name</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a character string, the generic name of the library without path and extension.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>table</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: 2 column string matrix giving the table of pairs 'scilab-name' 'interface name'</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-  <DESCRIPTION>\r
-    <P>\r
-    Utility function used by <VERB>ilib_build</VERB>\r
-    This function generates a loader file.</P>\r
-  </DESCRIPTION>\r
-  <SEE_ALSO>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>addinter</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_build</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_compile</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_Make</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_loader</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_for_link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-  </SEE_ALSO>\r
-</MAN>\r
+<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>ilib_gen_loader</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>
+  <SHORT_DESCRIPTION name="ilib_gen_loader"> utility for <VERB>ilib_build</VERB>: generates a loader file</SHORT_DESCRIPTION>
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>ilib_gen_loader(name,table)  </CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>name</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a character string, the generic name of the library without path and extension.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>table</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: 2 column string matrix giving the table of pairs 'scilab-name' 'interface name'</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+  <DESCRIPTION>
+    <P>
+    Utility function used by <VERB>ilib_build</VERB>
+    This function generates a loader file.</P>
+  </DESCRIPTION>
+  <SEE_ALSO>
+    <SEE_ALSO_ITEM>
+      <LINK>addinter</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>link</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_build</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_compile</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_Make</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_loader</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_for_link</LINK>
+    </SEE_ALSO_ITEM>
+  </SEE_ALSO>
+</MAN>
index 2c51977..f435c0b 100644 (file)
-<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>ilib_build</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>\r
-  <SHORT_DESCRIPTION name="ilib_mex_build"> utility for mex library management</SHORT_DESCRIPTION>\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>ilib_mex_build(lib_name,table,files,libs [,makename,ldflags,cflags,fflags])  </CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>lib_name</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: a character string, the generic name of the library without path and extension.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>table</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: 3 column string matrix giving the table of 'scilab-name', 'interface name', 'cmex' or 'fmex'</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>files</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: string matrix giving objects files needed for shared library creation</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>libs</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: string matrix giving extra libraries needed for shred library creation</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>makename</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: character string. The path of the Makefile file without extension.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>ldflags,cflags,fflags</PARAM_NAME>\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: character strings to provide options for the loader, the C compiler and the Fortran compiler.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-  <DESCRIPTION>\r
-    <P>\r
-    This tool is used to create mex libraries and to generate a \r
-    loader file which can be used to dynamically load the mex shared library\r
-    </P>\r
-  </DESCRIPTION>\r
-  <EXAMPLE>\r
-<![CDATA[\r
-cd(TMPDIR);\r
-mputl('ilib_mex_build(''libmex'',[''mexf16'',''mexfunction16'',''cmex''],[],[],''Makelib'','''','''','''')','builder.sce');\r
-\r
-mputl([\r
-'#include ""mex.h""'\r
-'void mexFunction(nlhs, plhs, nrhs, prhs)'\r
-'     int nlhs, nrhs;'\r
-'     mxArray *plhs[]; mxArray *prhs[];'\r
-'{'\r
-'  int *dims = mxGetDimensions(prhs[0]);'\r
-'  sciprint(""%d %d %d\n"",dims[0],dims[1],dims[2]);'\r
-'}'\r
-],'mexfunction16.c');\r
-exec(TMPDIR+'/builder.sce');\r
-exec(TMPDIR+'/loader.sce');\r
-mexf16(rand(2,3,2));\r
-\r
- ]]>\r
-  </EXAMPLE>\r
-  <SEE_ALSO>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>addinter</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_compile</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_Make</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_gateway</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_gen_loader</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_for_link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-  </SEE_ALSO>\r
-</MAN>\r
+<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>ilib_build</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2006-09-03 11:54:48 +0200 (Sun, 03 Sep 2006) $</DATE>
+  <SHORT_DESCRIPTION name="ilib_mex_build"> utility for mex library management</SHORT_DESCRIPTION>
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>ilib_mex_build(lib_name,table,files,libs [,makename,ldflags,cflags,fflags])  </CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>lib_name</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: a character string, the generic name of the library without path and extension.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>table</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: 3 column string matrix giving the table of 'scilab-name', 'interface name', 'cmex' or 'fmex'</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>files</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: string matrix giving objects files needed for shared library creation</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>libs</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: string matrix giving extra libraries needed for shred library creation</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>makename</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: character string. The path of the Makefile file without extension.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+        <PARAM_NAME>ldflags,cflags,fflags</PARAM_NAME>
+        <PARAM_DESCRIPTION>
+          <SP>: character strings to provide options for the loader, the C compiler and the Fortran compiler.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+  <DESCRIPTION>
+    <P>
+    This tool is used to create mex libraries and to generate a 
+    loader file which can be used to dynamically load the mex shared library
+    </P>
+  </DESCRIPTION>
+  <EXAMPLE>
+<![CDATA[
+cd(TMPDIR);
+mputl('ilib_mex_build(''libmex'',[''mexf16'',''mexfunction16'',''cmex''],[],[],''Makelib'','''','''','''')','builder.sce');
+
+mputl([
+'#include ""mex.h""'
+'void mexFunction(nlhs, plhs, nrhs, prhs)'
+'     int nlhs, nrhs;'
+'     mxArray *plhs[]; mxArray *prhs[];'
+'{'
+'  int *dims = mxGetDimensions(prhs[0]);'
+'  sciprint(""%d %d %d\n"",dims[0],dims[1],dims[2]);'
+'}'
+],'mexfunction16.c');
+exec(TMPDIR+'/builder.sce');
+exec(TMPDIR+'/loader.sce');
+mexf16(rand(2,3,2));
+
+ ]]>
+  </EXAMPLE>
+  <SEE_ALSO>
+    <SEE_ALSO_ITEM>
+      <LINK>addinter</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>link</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_compile</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_Make</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_gateway</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_gen_loader</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_for_link</LINK>
+    </SEE_ALSO_ITEM>
+  </SEE_ALSO>
+</MAN>
index e365859..982f066 100644 (file)
-<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>link</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2007-12-10 17:13:52 +0100 (Mon, 10 Dec 2007) $</DATE>\r
-  <SHORT_DESCRIPTION name="link"> dynamic linker </SHORT_DESCRIPTION>\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>x=link(files [, sub-names,flag]);  </CALLING_SEQUENCE_ITEM>\r
-    <CALLING_SEQUENCE_ITEM>link(x , sub-names [, flag]);     </CALLING_SEQUENCE_ITEM>\r
-\r
-    <CALLING_SEQUENCE_ITEM>ulink(x)  </CALLING_SEQUENCE_ITEM>\r
-    <CALLING_SEQUENCE_ITEM>lst=link('show')  </CALLING_SEQUENCE_ITEM>\r
-    <CALLING_SEQUENCE_ITEM>lst=link()  </CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-  \r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-       <PARAM_NAME>files</PARAM_NAME>\r
-       <PARAM_DESCRIPTION>\r
-         <SP>: a character string or a vector of character strings, the files\r
-           names used to define the new entry point (compiled routines, user\r
-           libraries, system libraries,..)</SP>\r
-       </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-\r
-      <PARAM_ITEM>\r
-       <PARAM_NAME>sub-names</PARAM_NAME>\r
-       <PARAM_DESCRIPTION>\r
-         <SP>: a character string or a vector of character strings . Name of\r
-           the entry points in <VERB>files</VERB> to be linked.</SP> \r
-       </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-       <PARAM_NAME>x</PARAM_NAME>\r
-       <PARAM_DESCRIPTION>\r
-         <SP>: an integer which gives the id of a shared library linked into\r
-           Scilab with a previous call to <VERB>link</VERB>.</SP> \r
-       </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-      <PARAM_ITEM>\r
-       <PARAM_NAME>flag</PARAM_NAME>\r
-       <PARAM_DESCRIPTION>\r
-         <SP>: character string <VERB>'f'</VERB> or <VERB>'c'</VERB> for\r
-           Fortran (default) or C code.</SP> \r
-       </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-  \r
-  <DESCRIPTION>\r
-  <P><VERB>link</VERB> is a dynamic link facility: this command allows to add new compiled \r
-      Fortran or C routines to Scilab executable code.\r
-      Linked routines can be called interactively by the function <VERB>call</VERB>.\r
-      Linked routines can also be used as &quot;external&quot; for e.g. \r
-      non linear problem solvers (<VERB>ode</VERB>, <VERB>optim</VERB>, <VERB>intg</VERB>, \r
-      <VERB>dassl</VERB>...). \r
-    </P>\r
-    <P><VERB>link()</VERB> returns a string matrix with linked functions. \r
-    </P>\r
-\r
-    <P>a call to <VERB>link</VERB> returns an integer which gives the\r
-         id of the shared  library which is loaded into Scilab. This number\r
-         can then be used as the first argument of the link function in order\r
-         to link additional  function from the linked shared library. The\r
-         shared library is  removed with the <VERB>ulink</VERB> command.</P>\r
-    <P>A routine  can be unlinked with\r
-      <VERB>ulink</VERB>.  If the linked function has been\r
-      modified between two links, it is required to <VERB>ulink</VERB> the previous instance\r
-      before the new link.</P>\r
-\r
-    <P><VERB>link('show')</VERB> returns the current linked routines.</P>\r
-\r
-    <P> To be able to link routines in a system independent way, it is convenient\r
-      to use the <VERB>ilib_for_link</VERB> utility function instead of <VERB>link</VERB>.</P>\r
-\r
-    <P>(Experienced) users may also <VERB>link</VERB> a new Scilab interface routine \r
-      to add a set of new functions. See <LINK>ilib_build</LINK> and\r
-      <LINK>addinter</LINK> functions.  </P>\r
-  </DESCRIPTION>\r
-  \r
-  <EXAMPLE><![CDATA[\r
-    //Example of the use of ilib_for_link with  a simple C code\r
-    f1=['#include <math.h>'\r
-    'void fooc(c,a,b,m,n)'\r
-    'double a[],*b,c[];'\r
-    'int *m,*n;'\r
-    '{'\r
-    '   int i;'\r
-    '   for ( i =0 ; i < (*m)*(*n) ; i++) '\r
-    '     c[i] = sin(a[i]) + *b; '\r
-    '}'];\r
-\r
-    mputl(f1,'fooc.c')\r
-\r
-    //creating the shared library: a Makefile and a loader are \r
-    //generated, the code is compiled and a shared library built.\r
-    ilib_for_link('fooc','fooc.o',[],"c") \r
-\r
-    // display the loader.sce file which calls link\r
-    mprintf('%s\n',mgetl('loader.sce')) \r
-    // load the shared library \r
-    exec loader.sce \r
-\r
-    link('show') \r
-    // call the new linked entry point\r
-    a=linspace(0,%pi,10);b=5;\r
-    y1=call('fooc',a,2,'d',b,3,'d',size(a,1),4,'i',size(a,2),5,'i','out',size(a),1,'d')\r
-    // check\r
-    y1-(sin(a)+b)\r
-    \r
-    ]]></EXAMPLE>\r
-  \r
-  <SEE_ALSO>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>call</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>external</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>c_link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>addinter</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_for_link</LINK>\r
-    </SEE_ALSO_ITEM>\r
-    <SEE_ALSO_ITEM>\r
-      <LINK>ilib_build</LINK>\r
-    </SEE_ALSO_ITEM>\r
-\r
-  </SEE_ALSO>\r
-  \r
-</MAN>\r
+<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>link</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2007-12-10 17:13:52 +0100 (Mon, 10 Dec 2007) $</DATE>
+  <SHORT_DESCRIPTION name="link"> dynamic linker </SHORT_DESCRIPTION>
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>x=link(files [, sub-names,flag]);  </CALLING_SEQUENCE_ITEM>
+    <CALLING_SEQUENCE_ITEM>link(x , sub-names [, flag]);     </CALLING_SEQUENCE_ITEM>
+
+    <CALLING_SEQUENCE_ITEM>ulink(x)  </CALLING_SEQUENCE_ITEM>
+    <CALLING_SEQUENCE_ITEM>lst=link('show')  </CALLING_SEQUENCE_ITEM>
+    <CALLING_SEQUENCE_ITEM>lst=link()  </CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+  
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+       <PARAM_NAME>files</PARAM_NAME>
+       <PARAM_DESCRIPTION>
+         <SP>: a character string or a vector of character strings, the files
+           names used to define the new entry point (compiled routines, user
+           libraries, system libraries,..)</SP>
+       </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+
+      <PARAM_ITEM>
+       <PARAM_NAME>sub-names</PARAM_NAME>
+       <PARAM_DESCRIPTION>
+         <SP>: a character string or a vector of character strings . Name of
+           the entry points in <VERB>files</VERB> to be linked.</SP> 
+       </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+       <PARAM_NAME>x</PARAM_NAME>
+       <PARAM_DESCRIPTION>
+         <SP>: an integer which gives the id of a shared library linked into
+           Scilab with a previous call to <VERB>link</VERB>.</SP> 
+       </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+      <PARAM_ITEM>
+       <PARAM_NAME>flag</PARAM_NAME>
+       <PARAM_DESCRIPTION>
+         <SP>: character string <VERB>'f'</VERB> or <VERB>'c'</VERB> for
+           Fortran (default) or C code.</SP> 
+       </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+  
+  <DESCRIPTION>
+  <P><VERB>link</VERB> is a dynamic link facility: this command allows to add new compiled 
+      Fortran or C routines to Scilab executable code.
+      Linked routines can be called interactively by the function <VERB>call</VERB>.
+      Linked routines can also be used as &quot;external&quot; for e.g. 
+      non linear problem solvers (<VERB>ode</VERB>, <VERB>optim</VERB>, <VERB>intg</VERB>, 
+      <VERB>dassl</VERB>...). 
+    </P>
+    <P><VERB>link()</VERB> returns a string matrix with linked functions. 
+    </P>
+
+    <P>a call to <VERB>link</VERB> returns an integer which gives the
+         id of the shared  library which is loaded into Scilab. This number
+         can then be used as the first argument of the link function in order
+         to link additional  function from the linked shared library. The
+         shared library is  removed with the <VERB>ulink</VERB> command.</P>
+    <P>A routine  can be unlinked with
+      <VERB>ulink</VERB>.  If the linked function has been
+      modified between two links, it is required to <VERB>ulink</VERB> the previous instance
+      before the new link.</P>
+
+    <P><VERB>link('show')</VERB> returns the current linked routines.</P>
+
+    <P> To be able to link routines in a system independent way, it is convenient
+      to use the <VERB>ilib_for_link</VERB> utility function instead of <VERB>link</VERB>.</P>
+
+    <P>(Experienced) users may also <VERB>link</VERB> a new Scilab interface routine 
+      to add a set of new functions. See <LINK>ilib_build</LINK> and
+      <LINK>addinter</LINK> functions.  </P>
+  </DESCRIPTION>
+  
+  <EXAMPLE><![CDATA[
+    //Example of the use of ilib_for_link with  a simple C code
+    f1=['#include <math.h>'
+    'void fooc(c,a,b,m,n)'
+    'double a[],*b,c[];'
+    'int *m,*n;'
+    '{'
+    '   int i;'
+    '   for ( i =0 ; i < (*m)*(*n) ; i++) '
+    '     c[i] = sin(a[i]) + *b; '
+    '}'];
+
+    mputl(f1,'fooc.c')
+
+    //creating the shared library: a Makefile and a loader are 
+    //generated, the code is compiled and a shared library built.
+    ilib_for_link('fooc','fooc.o',[],"c") 
+
+    // display the loader.sce file which calls link
+    mprintf('%s\n',mgetl('loader.sce')) 
+    // load the shared library 
+    exec loader.sce 
+
+    link('show') 
+    // call the new linked entry point
+    a=linspace(0,%pi,10);b=5;
+    y1=call('fooc',a,2,'d',b,3,'d',size(a,1),4,'i',size(a,2),5,'i','out',size(a),1,'d')
+    // check
+    y1-(sin(a)+b)
+    
+    ]]></EXAMPLE>
+  
+  <SEE_ALSO>
+    <SEE_ALSO_ITEM>
+      <LINK>call</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>external</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>c_link</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>addinter</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_for_link</LINK>
+    </SEE_ALSO_ITEM>
+    <SEE_ALSO_ITEM>
+      <LINK>ilib_build</LINK>
+    </SEE_ALSO_ITEM>
+
+  </SEE_ALSO>
+  
+</MAN>
index 0e42a70..02b866f 100644 (file)
@@ -1,33 +1,33 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">\r
-<MAN>\r
-  <LANGUAGE>eng</LANGUAGE>\r
-  <TITLE>with_lcc</TITLE>\r
-  <TYPE>Scilab Function</TYPE>\r
-  <DATE>$LastChangedDate: 2006-08-30 13:26:08 +0200 (mer, 30 aoû 2006) $</DATE>\r
-  <SHORT_DESCRIPTION name="with_lcc">returns if LCC-Win32 is the default C Compiler.</SHORT_DESCRIPTION>\r
-\r
-  <CALLING_SEQUENCE>\r
-    <CALLING_SEQUENCE_ITEM>bOK=with_lcc()</CALLING_SEQUENCE_ITEM>\r
-  </CALLING_SEQUENCE>\r
-\r
-  <PARAM>\r
-    <PARAM_INDENT>\r
-      <PARAM_ITEM>\r
-        <PARAM_NAME>bOK</PARAM_NAME>\r
-\r
-        <PARAM_DESCRIPTION>\r
-          <SP>: returns %T if LCC-Win32 is the default C Compiler.</SP>\r
-        </PARAM_DESCRIPTION>\r
-      </PARAM_ITEM>\r
-    </PARAM_INDENT>\r
-  </PARAM>\r
-\r
-  <DESCRIPTION>\r
-    <P>checks if LCC-Win32 is the default C Compiler.</P>\r
-  </DESCRIPTION>\r
-\r
-  <EXAMPLE><![CDATA[bOK=with_lcc()]]></EXAMPLE>\r
-\r
-  <AUTHOR>Allan CORNET</AUTHOR>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
+<MAN>
+  <LANGUAGE>eng</LANGUAGE>
+  <TITLE>with_lcc</TITLE>
+  <TYPE>Scilab Function</TYPE>
+  <DATE>$LastChangedDate: 2006-08-30 13:26:08 +0200 (mer, 30 aoû 2006) $</DATE>
+  <SHORT_DESCRIPTION name="with_lcc">returns if LCC-Win32 is the default C Compiler.</SHORT_DESCRIPTION>
+
+  <CALLING_SEQUENCE>
+    <CALLING_SEQUENCE_ITEM>bOK=with_lcc()</CALLING_SEQUENCE_ITEM>
+  </CALLING_SEQUENCE>
+
+  <PARAM>
+    <PARAM_INDENT>
+      <PARAM_ITEM>
+        <PARAM_NAME>bOK</PARAM_NAME>
+
+        <PARAM_DESCRIPTION>
+          <SP>: returns %T if LCC-Win32 is the default C Compiler.</SP>
+        </PARAM_DESCRIPTION>
+      </PARAM_ITEM>
+    </PARAM_INDENT>
+  </PARAM>
+
+  <DESCRIPTION>
+    <P>checks if LCC-Win32 is the default C Compiler.</P>
+  </DESCRIPTION>
+
+  <EXAMPLE><![CDATA[bOK=with_lcc()]]></EXAMPLE>
+
+  <AUTHOR>Allan CORNET</AUTHOR>
 </MAN>
\ No newline at end of file
index a960173..c5eb08f 100644 (file)
@@ -1,31 +1,31 @@
-/*--------------------------------------------------------------------------*/\r
-/* INRIA 2008 */\r
-/*--------------------------------------------------------------------------*/\r
-#ifndef __ADDFUNCTIONINTABLE_H__\r
-#define __ADDFUNCTIONINTABLE_H__\r
-\r
-#include "machine.h"\r
-\r
-typedef void (*voidf)();\r
-\r
-/* structure entry in functions table */\r
-\r
-typedef struct {\r
-       char *name; /* function name */\r
-       voidf f; /* pointer on function */\r
-} FTAB;\r
-\r
-\r
-/**\r
-* Add a C or fortran function in functions hashtable\r
-*\r
-* @param name  function name\r
-* @param[OUT] rep  result 1 (OK) or 0 (Problem)\r
-* @param table functions hashtable\r
-* @return a pointer on function in functions hashtable\r
-*/\r
-voidf AddFunctionInTable (char *name, int *rep, FTAB *table);  \r
-\r
-#endif /* __ADDFUNCTIONINTABLE_H__ */\r
-/*--------------------------------------------------------------------------*/\r
-\r
+/*--------------------------------------------------------------------------*/
+/* INRIA 2008 */
+/*--------------------------------------------------------------------------*/
+#ifndef __ADDFUNCTIONINTABLE_H__
+#define __ADDFUNCTIONINTABLE_H__
+
+#include "machine.h"
+
+typedef void (*voidf)();
+
+/* structure entry in functions table */
+
+typedef struct {
+       char *name; /* function name */
+       voidf f; /* pointer on function */
+} FTAB;
+
+
+/**
+* Add a C or fortran function in functions hashtable
+*
+* @param name  function name
+* @param[OUT] rep  result 1 (OK) or 0 (Problem)
+* @param table functions hashtable
+* @return a pointer on function in functions hashtable
+*/
+voidf AddFunctionInTable (char *name, int *rep, FTAB *table);  
+
+#endif /* __ADDFUNCTIONINTABLE_H__ */
+/*--------------------------------------------------------------------------*/
+
index 26269d4..a9736bd 100644 (file)
@@ -1,25 +1,25 @@
-#ifndef __ADDINTER_H__\r
-#define  __ADDINTER_H__\r
-\r
-/** \r
-* the first dynamic interface is at position 500+1 \r
-*/\r
-#define DynInterfStart 500\r
-\r
-/**\r
-* Remove interface in scilab\r
-* @param[in] id of interface\r
-*/\r
-void RemoveInterf(int id);\r
-\r
-/**\r
-* Add a interface in Scilab\r
-* @param[in] filenamelib dynamic libraries filename\r
-* @param[in] spname Name of interface routine entry point \r
-* @param[in] fcts Name of new Scilab function implemented in the new interface \r
-* @param[in] sizefcts size of fcts array\r
-* @return a int id of interface (-1 failed)\r
-*/\r
-int AddInterfaceToScilab(char *filenamelib,char *spname,char **fcts,int sizefcts);\r
-\r
-#endif /*  __ADDINTER_H__ */\r
+#ifndef __ADDINTER_H__
+#define  __ADDINTER_H__
+
+/** 
+* the first dynamic interface is at position 500+1 
+*/
+#define DynInterfStart 500
+
+/**
+* Remove interface in scilab
+* @param[in] id of interface
+*/
+void RemoveInterf(int id);
+
+/**
+* Add a interface in Scilab
+* @param[in] filenamelib dynamic libraries filename
+* @param[in] spname Name of interface routine entry point 
+* @param[in] fcts Name of new Scilab function implemented in the new interface 
+* @param[in] sizefcts size of fcts array
+* @return a int id of interface (-1 failed)
+*/
+int AddInterfaceToScilab(char *filenamelib,char *spname,char **fcts,int sizefcts);
+
+#endif /*  __ADDINTER_H__ */
index 6c98794..a94c877 100644 (file)
@@ -1,24 +1,24 @@
-/*--------------------------------------------------------------------------*/\r
-/* INRIA 2008 */\r
-/* Allan CORNET */\r
-/*--------------------------------------------------------------------------*/ \r
-#ifndef __GW_DYNAMIC_LINK__\r
-#define __GW_DYNAMIC_LINK__\r
-/*--------------------------------------------------------------------------*/ \r
-#include "machine.h"\r
-/*--------------------------------------------------------------------------*/\r
-int C2F(gw_dynamic_link)(void);\r
-/*--------------------------------------------------------------------------*/\r
-/* Declaration of all the profile function declared and */\r
-/* used in sci_gateway */\r
-/*--------------------------------------------------------------------------*/ \r
-int C2F(sci_getdynlibext) _PARAMS((char *fname,unsigned long fname_len));\r
-int C2F(sci_addinter) _PARAMS((char *fname,unsigned long fname_len));\r
-int C2F(sci_fort) _PARAMS((char *fname,unsigned long fname_len));\r
-int C2F(sci_call) _PARAMS((char *fname,unsigned long fname_len));\r
-int C2F(sci_link) _PARAMS((char *fname,unsigned long fname_len));\r
-int C2F(sci_ulink) _PARAMS((char *fname,unsigned long fname_len));\r
-int C2F(sci_c_link) _PARAMS((char *fname,unsigned long fname_len));\r
-/*--------------------------------------------------------------------------*/ \r
-#endif /* __GW_DYNAMIC_LINK__ */\r
-/*--------------------------------------------------------------------------*/ \r
+/*--------------------------------------------------------------------------*/
+/* INRIA 2008 */
+/* Allan CORNET */
+/*--------------------------------------------------------------------------*/ 
+#ifndef __GW_DYNAMIC_LINK__
+#define __GW_DYNAMIC_LINK__
+/*--------------------------------------------------------------------------*/ 
+#include "machine.h"
+/*--------------------------------------------------------------------------*/
+int C2F(gw_dynamic_link)(void);
+/*--------------------------------------------------------------------------*/
+/* Declaration of all the profile function declared and */
+/* used in sci_gateway */
+/*--------------------------------------------------------------------------*/ 
+int C2F(sci_getdynlibext) _PARAMS((char *fname,unsigned long fname_len));
+int C2F(sci_addinter) _PARAMS((char *fname,unsigned long fname_len));
+int C2F(sci_fort) _PARAMS((char *fname,unsigned long fname_len));
+int C2F(sci_call) _PARAMS((char *fname,unsigned long fname_len));
+int C2F(sci_link) _PARAMS((char *fname,unsigned long fname_len));
+int C2F(sci_ulink) _PARAMS((char *fname,unsigned long fname_len));
+int C2F(sci_c_link) _PARAMS((char *fname,unsigned long fname_len));
+/*--------------------------------------------------------------------------*/ 
+#endif /* __GW_DYNAMIC_LINK__ */
+/*--------------------------------------------------------------------------*/ 
index 24b39b4..7378967 100644 (file)
@@ -1,3 +1,3 @@
-licence file\r
-\r
+licence file
+
 INRIA 2008
\ No newline at end of file
index 91e8ef6..9362fdd 100644 (file)
@@ -1,27 +1,27 @@
-# Localization of the module dynamic_link\r
-# Please see in SCI/tools/localization for localization management\r
-# Copyright (C) 2007/2008 - INRIA / Scilab\r
-# This file is distributed under the same license as the Scilab package.\r
-# Sylvestre Ledru <sylvestre.ledru@inria.fr>, 2007/2008.\r
-#\r
-msgid ""\r
-msgstr ""\r
-"Project-Id-Version: Scilab\n"\r
-"Report-Msgid-Bugs-To: <localization@scilab.org>\n"\r
-"POT-Creation-Date: 2007-11-26 18:05+0100\n"\r
-"Last-Translator: Sylvestre Ledru <sylvestre.ledru@inria.fr>\n"\r
-"Language-Team: Scilab Localization <localization@scilab.org>\n"\r
-"MIME-Version: 1.0\n"\r
-"Content-Type: text/plain; charset=ISO-8859-1\n"\r
-"Content-Transfer-Encoding: 8bit\n"\r
-"Revision-Date: 2007-11-26 18:05+0100\n"\r
-\r
-# File: macros/ilib_for_link.sci, line: 129\r
-#, c-format\r
-msgid "configure : Generate Makefile in %s\n"\r
-msgstr ""\r
-#\r
-# File: macros/ilib_for_link.sci, line: 134\r
-#, c-format\r
-msgid "Copy compilation files (Makefile*, libtool...) to %s\n"\r
-msgstr ""\r
+# Localization of the module dynamic_link
+# Please see in SCI/tools/localization for localization management
+# Copyright (C) 2007/2008 - INRIA / Scilab
+# This file is distributed under the same license as the Scilab package.
+# Sylvestre Ledru <sylvestre.ledru@inria.fr>, 2007/2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Scilab\n"
+"Report-Msgid-Bugs-To: <localization@scilab.org>\n"
+"POT-Creation-Date: 2007-11-26 18:05+0100\n"
+"Last-Translator: Sylvestre Ledru <sylvestre.ledru@inria.fr>\n"
+"Language-Team: Scilab Localization <localization@scilab.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Revision-Date: 2007-11-26 18:05+0100\n"
+
+# File: macros/ilib_for_link.sci, line: 129
+#, c-format
+msgid "configure : Generate Makefile in %s\n"
+msgstr ""
+#
+# File: macros/ilib_for_link.sci, line: 134
+#, c-format
+msgid "Copy compilation files (Makefile*, libtool...) to %s\n"
+msgstr ""
index f750f3a..af0b684 100644 (file)
@@ -1,28 +1,28 @@
-# Localization of the module dynamic_link\r
-# Please see in SCI/tools/localization for localization management\r
-# Copyright (C) 2007/2008 - INRIA / Scilab\r
-# This file is distributed under the same license as the Scilab package.\r
-# Sylvestre Ledru <sylvestre.ledru@inria.fr>, 2007/2008.\r
-#\r
-msgid ""\r
-msgstr ""\r
-"Project-Id-Version: Scilab\n"\r
-"Report-Msgid-Bugs-To: <localization@scilab.org>\n"\r
-"POT-Creation-Date: 2007-11-26 18:05+0100\n"\r
-"Last-Translator: Sylvestre Ledru <sylvestre.ledru@inria.fr>\n"\r
-"Language-Team: Scilab Localization <localization@scilab.org>\n"\r
-"MIME-Version: 1.0\n"\r
-"Content-Type: text/plain; charset=ISO-8859-1\n"\r
-"Content-Transfer-Encoding: 8bit\n"\r
-"Revision-Date: 2007-11-26 18:05+0100\n"\r
-\r
-# File: macros/ilib_for_link.sci, line: 129\r
-#, c-format\r
-msgid "configure : Generate Makefile in %s\n"\r
-msgstr ""\r
-\r
-#\r
-# File: macros/ilib_for_link.sci, line: 134\r
-#, c-format\r
-msgid "Copy compilation files (Makefile*, libtool...) to %s\n"\r
-msgstr ""\r
+# Localization of the module dynamic_link
+# Please see in SCI/tools/localization for localization management
+# Copyright (C) 2007/2008 - INRIA / Scilab
+# This file is distributed under the same license as the Scilab package.
+# Sylvestre Ledru <sylvestre.ledru@inria.fr>, 2007/2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Scilab\n"
+"Report-Msgid-Bugs-To: <localization@scilab.org>\n"
+"POT-Creation-Date: 2007-11-26 18:05+0100\n"
+"Last-Translator: Sylvestre Ledru <sylvestre.ledru@inria.fr>\n"
+"Language-Team: Scilab Localization <localization@scilab.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Revision-Date: 2007-11-26 18:05+0100\n"
+
+# File: macros/ilib_for_link.sci, line: 129
+#, c-format
+msgid "configure : Generate Makefile in %s\n"
+msgstr ""
+
+#
+# File: macros/ilib_for_link.sci, line: 134
+#, c-format
+msgid "Copy compilation files (Makefile*, libtool...) to %s\n"
+msgstr ""
index c0a4bf1..ab4ce5a 100644 (file)
@@ -1,36 +1,36 @@
-//==========================================\r
-// INRIA 2008\r
-//==========================================\r
-function [res]=G_make(files,objects_or_dll)\r
-\r
-  if ~haveacompiler() then\r
-       error(_('A Fortran or C compiler is required.'));\r
-  end\r
-\r
-  if MSDOS then // WINDOWS\r
-  \r
-    if typeof(objects_or_dll)<>'string' then \r
-      error(sprintf(_('%s: Wrong type for input argument: String expected.'),'G_make'));\r
-      return;\r
-    end \r
-    \r
-    if with_lcc() == %T then\r
-      host('make -f Makefile.lcc '+objects_or_dll);\r
-    else\r
-      // scilab uses Visual Studio C++ \r
-      host('nmake /Y /nologo /f Makefile.mak '+objects_or_dll);\r
-    end\r
-    \r
-    res=[objects_or_dll];\r
-    \r
-  else // LINUX\r
-  \r
-    mk=[]\r
-    for x=files(:)', if strindex(x,'-l')==[], mk=mk+' '+x ; end ;end \r
-    host('make '+ mk);\r
-    res=files ;\r
-    \r
-  end \r
-  \r
-endfunction\r
-//==========================================\r
+//==========================================
+// INRIA 2008
+//==========================================
+function [res]=G_make(files,objects_or_dll)
+
+  if ~haveacompiler() then
+       error(_('A Fortran or C compiler is required.'));
+  end
+
+  if MSDOS then // WINDOWS
+  
+    if typeof(objects_or_dll)<>'string' then 
+      error(sprintf(_('%s: Wrong type for input argument: String expected.'),'G_make'));
+      return;
+    end 
+    
+    if with_lcc() == %T then
+      host('make -f Makefile.lcc '+objects_or_dll);
+    else
+      // scilab uses Visual Studio C++ 
+      host('nmake /Y /nologo /f Makefile.mak '+objects_or_dll);
+    end
+    
+    res=[objects_or_dll];
+    
+  else // LINUX
+  
+    mk=[]
+    for x=files(:)', if strindex(x,'-l')==[], mk=mk+' '+x ; end ;end 
+    host('make '+ mk);
+    res=files ;
+    
+  end 
+  
+endfunction
+//==========================================
index 90d7ab2..2f974fd 100644 (file)
@@ -1,83 +1,83 @@
-//-------------------------------------------------------------------\r
-// Allan CORNET INRIA 2004 - 2006\r
-// Export LibScilab for LCC compiler\r
-//-------------------------------------------------------------------\r
-function VCtoLCCLib()\r
-if with_lcc()==%t then\r
-       if MSDOS==%t then\r
-               DirCur=pwd();\r
-               chdir(WSCI+'\bin');\r
-               mkdir('lcclib');\r
-       \r
-               Exportalibrary('LibScilab');\r
-               ExportAtlasLibrary();\r
-               Exportalibrary('lapack');\r
-               Exportalibrary('scicos');\r
-               Exportalibrary('libf2c');\r
-               Exportalibrary('intersci');\r
-       \r
-               chdir(DirCur);\r
-       end\r
-end\r
-endfunction\r
-//-------------------------------------------------------------------\r
-function bOK=Exportalibrary(libraryname)\r
-  printf('\nExports from '+libraryname+'.dll\n');\r
-       unix('pedump /exp '+libraryname+'.dll >'+TMPDIR+filesep()+libraryname+'.lcc');\r
-       printf('Converting Library');\r
-       \r
-       fw=mopen(TMPDIR+filesep()+libraryname+'.exp',"w");\r
-       fr=mopen(TMPDIR+filesep()+libraryname+'.lcc',"r");\r
-       \r
-       if (meof(fr) == 0) then \r
-               line=mfscanf(1,fr,"%s");\r
-               mfprintf(fw,"%s\n",line);\r
-               printf('.');\r
-       end\r
-\r
-       while ( meof(fr) == 0)\r
-               line=mfscanf(1,fr,"%s");\r
-               if (line ~= []) then\r
-                       mfprintf(fw,"_%s\n",line);\r
-               end\r
-       end\r
-\r
-       mclose(fw);\r
-       mclose(fr);\r
-       \r
-       printf('\nBuild '+libraryname+'.lib (Please waiting).\n');\r
-       command='buildLib ""'+TMPDIR+filesep()+libraryname+'.exp""'+' ""'+WSCI+'\bin\lcclib\'+libraryname+'.lib""';\r
-       unix(command);\r
-       bOK=%T;\r
-endfunction\r
-//-------------------------------------------------------------------\r
-function ExportAtlasLibrary()\r
-       \r
-       printf('\nExports from blasplus.dll\n')\r
-       unix('pedump /exp blasplus.dll >'+TMPDIR+'\blasplus.lcc');\r
-       printf('Converting Library');\r
-       \r
-       fw=mopen(TMPDIR+'\blaspluslcc.exp',"w");\r
-       fr=mopen(TMPDIR+'\blasplus.lcc',"r");\r
-\r
-       if (meof(fr) == 0) then \r
-               line=mfscanf(1,fr,"%s");\r
-               mfprintf(fw,"blasplus.dll\n");\r
-       end\r
-\r
-       i=1;\r
-       while ( meof(fr) == 0)\r
-               line=mfscanf(1,fr,"%s");\r
-               if (line ~= []) then\r
-                       mfprintf(fw,"_%s_  %s @%d\n",line,line,i);\r
-                       i=i+1;\r
-                       end\r
-       end\r
-\r
-       mclose(fw);\r
-       mclose(fr);\r
-       \r
-       printf('\nBuild Atlas.lib\n');\r
-       unix('buildLib ""'+TMPDIR+'\Atlaslcc.exp""'+' ""'+WSCI+'\bin\lcclib\'+'blasplus.lib""');\r
-endfunction\r
-//-------------------------------------------------------------------\r
+//-------------------------------------------------------------------
+// Allan CORNET INRIA 2004 - 2006
+// Export LibScilab for LCC compiler
+//-------------------------------------------------------------------
+function VCtoLCCLib()
+if with_lcc()==%t then
+       if MSDOS==%t then
+               DirCur=pwd();
+               chdir(WSCI+'\bin');
+               mkdir('lcclib');
+       
+               Exportalibrary('LibScilab');
+               ExportAtlasLibrary();
+               Exportalibrary('lapack');
+               Exportalibrary('scicos');
+               Exportalibrary('libf2c');
+               Exportalibrary('intersci');
+       
+               chdir(DirCur);
+       end
+end
+endfunction
+//-------------------------------------------------------------------
+function bOK=Exportalibrary(libraryname)
+  printf('\nExports from '+libraryname+'.dll\n');
+       unix('pedump /exp '+libraryname+'.dll >'+TMPDIR+filesep()+libraryname+'.lcc');
+       printf('Converting Library');
+       
+       fw=mopen(TMPDIR+filesep()+libraryname+'.exp',"w");
+       fr=mopen(TMPDIR+filesep()+libraryname+'.lcc',"r");
+       
+       if (meof(fr) == 0) then 
+               line=mfscanf(1,fr,"%s");
+               mfprintf(fw,"%s\n",line);
+               printf('.');
+       end
+
+       while ( meof(fr) == 0)
+               line=mfscanf(1,fr,"%s");
+               if (line ~= []) then
+                       mfprintf(fw,"_%s\n",line);
+               end
+       end
+
+       mclose(fw);
+       mclose(fr);
+       
+       printf('\nBuild '+libraryname+'.lib (Please waiting).\n');
+       command='buildLib ""'+TMPDIR+filesep()+libraryname+'.exp""'+' ""'+WSCI+'\bin\lcclib\'+libraryname+'.lib""';
+       unix(command);
+       bOK=%T;
+endfunction
+//-------------------------------------------------------------------
+function ExportAtlasLibrary()
+       
+       printf('\nExports from blasplus.dll\n')
+       unix('pedump /exp blasplus.dll >'+TMPDIR+'\blasplus.lcc');
+       printf('Converting Library');
+       
+       fw=mopen(TMPDIR+'\blaspluslcc.exp',"w");
+       fr=mopen(TMPDIR+'\blasplus.lcc',"r");
+
+       if (meof(fr) == 0) then 
+               line=mfscanf(1,fr,"%s");
+               mfprintf(fw,"blasplus.dll\n");
+       end
+
+       i=1;
+       while ( meof(fr) == 0)
+               line=mfscanf(1,fr,"%s");
+               if (line ~= []) then
+                       mfprintf(fw,"_%s_  %s @%d\n",line,line,i);
+                       i=i+1;
+                       end
+       end
+
+       mclose(fw);
+       mclose(fr);
+       
+       printf('\nBuild Atlas.lib\n');
+       unix('buildLib ""'+TMPDIR+'\Atlaslcc.exp""'+' ""'+WSCI+'\bin\lcclib\'+'blasplus.lib""');
+endfunction
+//-------------------------------------------------------------------
index 608f821..4904249 100644 (file)
@@ -1,9 +1,9 @@
-//------------------------------------\r
-// Allan CORNET INRIA 2006\r
-//------------------------------------\r
-if (isdef('genlib') == %f) then\r
-  exec(SCI+'/modules/functions/scripts/buildmacros/loadgenlib.sce');\r
-end\r
-//------------------------------------\r
-genlib('dynamic_linklib','SCI/modules/dynamic_link/macros',%f,%t);\r
-//------------------------------------\r
+//------------------------------------
+// Allan CORNET INRIA 2006
+//------------------------------------
+if (isdef('genlib') == %f) then
+  exec(SCI+'/modules/functions/scripts/buildmacros/loadgenlib.sce');
+end
+//------------------------------------
+genlib('dynamic_linklib','SCI/modules/dynamic_link/macros',%f,%t);
+//------------------------------------
index f096ba8..2fa4762 100644 (file)
@@ -1,18 +1,18 @@
-//==========================================\r
-// INRIA 2008\r
-// Allan CORNET\r
-//==========================================\r
-// force to use LCC-Win32 compiler\r
-//==========================================\r
-function res = chooselcccompiler()\r
-\r
-  res = findlcccompiler();\r
-  if (res) then\r
-    global LCC;\r
-    LCC=res;\r
-    clear LCC;\r
-    configure_lcc();\r
-  end\r
-  \r
-endfunction\r
-//==========================================\r
+//==========================================
+// INRIA 2008
+// Allan CORNET
+//==========================================
+// force to use LCC-Win32 compiler
+//==========================================
+function res = chooselcccompiler()
+
+  res = findlcccompiler();
+  if (res) then
+    global LCC;
+    LCC=res;
+    clear LCC;
+    configure_lcc();
+  end
+  
+endfunction
+//==========================================
index fbd90e5..5079dfd 100644 (file)
@@ -1,3 +1,3 @@
-@del *.bin 2>NUL\r
-@del lib 2>NUL\r
+@del *.bin 2>NUL
+@del lib 2>NUL
 @del names 2>NUL
\ No newline at end of file
index 315683e..dcfb7dc 100644 (file)
@@ -1,43 +1,43 @@
-//==========================================\r
-// Allan CORNET\r
-// INRIA 2008\r
-//==========================================\r
-function bOK = configure_lcc()\