From simone.mannori at scilab.org Wed Oct 1 09:03:11 2008 From: simone.mannori at scilab.org (Simone Mannori) Date: Wed, 01 Oct 2008 09:03:11 +0200 Subject: [Scilab-Dev] Re: Re: Leaving SVN to GIT In-Reply-To: <1222789153.31019.152.camel@korcula.inria.fr> References: <82bf75360809221457h1b77e3bcpabb114054e51c03@mail.gmail.com> <1222123518.4063.45.camel@zlarin.inria.fr> <82bf75360809241333j42dbdf36qcef4dafce440daa5@mail.gmail.com> <1222785929.31019.141.camel@korcula.inria.fr> <1222789153.31019.152.camel@korcula.inria.fr> Message-ID: <1222844591.3133.7.camel@pinarellu.inria.fr> Bonjour, > > I do not try to discourage your choice. I mean at the end it's > > your(Scilab dev team) concerns and this could be more of a > > philosophical debate but I do often use the svn repo as I'm coding > > from the trunk and the idea of dealing with git is a bit discouraging. > To be more pragmatic, svn is what ? 5 commands ? > $ svn add > $ svn remove > $ svn checkout (once!) > $ svn commit > $ svn update > > (ok, svn diff & svn log but for power user). > > With git, the commands become: > $ git add > $ git rm > $ git clone > $ git commit -a > $ git pull > this is a very useful equivalence card. As SVN user of trunk I can testimony my transition to GIT (used during a couple of day for the experimental 64 bit branch testing): if you have a minimum support, the basic operations can be learned during one afternoon. Anyway, if git is OK for Linus Torvald is OK for me too ;) Simone Mannori - The Scilab Consortium (DIGITEO) Scilab/Scicos Embedded Applications From michael.baudin at scilab.org Wed Oct 1 11:32:44 2008 From: michael.baudin at scilab.org (Michael Baudin) Date: Wed, 01 Oct 2008 11:32:44 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48E2570D.4070400@freesurf.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E10451.5030601@broadpark.no> <1222777528.31019.74.camel@korcula.inria.fr> <48E2570D.4070400@freesurf.fr> Message-ID: <48E343BC.5070700@scilab.org> Hi, A simple system based on headers is Robodoc : http://en.wikipedia.org/wiki/ROBODoc That does not compare, though, with javadoc,Doxygen, etc... Merging the source and the doc is "literate programming" and may be possible with Knuth's LaTeX : http://www.haskell.org/haskellwiki/Literate_programming Doxygen (or Javadoc) additionnaly takes into account the structure of the source code to generate the doc. For example, it computes (i.e. parses) the number of arguments, their name, the class hierarchy (etc...) and uses that information to generate the doc. This is more complicated (and powerful) than just collecting data after some pre-defined tag, but allows the developer to miminize the size of the header. When Scilab v6 will be available, the parser may allow a connection between the interpreter and the editor, so that the generation of the doc may be done based on Scilab's introspection features. But a lot of work is necessary until this is possible, isn'it it ? Regards, Micha?l Collette Yann a ?crit : > And what about a doxygen for scilab ? > You get everything after // > With some markups, you fill an xml fill and then generate the help page. > If then help page is younger than the sci file, the help page is not > regenerated ... > > YC > From michael.baudin at scilab.org Wed Oct 1 11:45:52 2008 From: michael.baudin at scilab.org (Michael Baudin) Date: Wed, 01 Oct 2008 11:45:52 +0200 Subject: [Scilab-Dev] How to add features in Scilab Was: Gmp in scilab revisited. In-Reply-To: References: <1222715893.3301.27.camel@zlarin> <48E137DD.5060606@freesurf.fr> <48E2582C.3030907@freesurf.fr> <1222806444.3231.24.camel@zlarin> Message-ID: <48E346D0.90404@scilab.org> Hi, This is a little off-topic, but discussing with colleagues yesterday, it appears that I have no idea of scientific application of arbitrary precision computations. Can you give some examples (may be yours) ? Regards, Micha?l From mottelet at dma.utc.fr Wed Oct 1 11:52:15 2008 From: mottelet at dma.utc.fr (mottelet at dma.utc.fr) Date: Wed, 1 Oct 2008 11:52:15 +0200 Subject: [Scilab-Dev] How to add features in Scilab Was: Gmp in scilab revisited. In-Reply-To: <48E346D0.90404@scilab.org> References: <1222715893.3301.27.camel@zlarin> <48E137DD.5060606@freesurf.fr> <48E2582C.3030907@freesurf.fr> <1222806444.3231.24.camel@zlarin> <48E346D0.90404@scilab.org> Message-ID: <1222854735.48e3484f5adb2@mail.hds.utc.fr> Selon Michael Baudin : > Hi, > > This is a little off-topic, but discussing with > colleagues yesterday, it appears that I have > no idea of scientific application of arbitrary > precision computations. > Can you give some examples (may be yours) ? > > Regards, > > Micha?l > Maple, Mathematica, ... S. ------------------------------------------------- From michael.baudin at scilab.org Wed Oct 1 13:40:31 2008 From: michael.baudin at scilab.org (Michael Baudin) Date: Wed, 01 Oct 2008 13:40:31 +0200 Subject: [Scilab-Dev] How to add features in Scilab Was: Gmp in scilab revisited. In-Reply-To: <48E346D0.90404@scilab.org> References: <1222715893.3301.27.camel@zlarin> <48E137DD.5060606@freesurf.fr> <48E2582C.3030907@freesurf.fr> <1222806444.3231.24.camel@zlarin> <48E346D0.90404@scilab.org> Message-ID: <48E361AF.8010202@scilab.org> After Claude and Sylvestre suggestions, I reply to myself : - cryptography, - robotics, - etc... http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic "Motivations for an Arbitrary Precision Interval Arithmetic and the MPFI Library" : http://www.springerlink.com/content/q17l0u8840151310/ Regards, Micha?l Michael Baudin a ?crit : > Hi, > > This is a little off-topic, but discussing with > colleagues yesterday, it appears that I have > no idea of scientific application of arbitrary > precision computations. > Can you give some examples (may be yours) ? > > Regards, > > Micha?l From BlanchardJ at ieee.org Wed Oct 1 17:59:08 2008 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Wed, 1 Oct 2008 12:59:08 -0300 Subject: [Scilab-Dev] How to add features in Scilab Was: Gmp in scilab revisited. In-Reply-To: <48E361AF.8010202@scilab.org> References: <1222715893.3301.27.camel@zlarin> <48E137DD.5060606@freesurf.fr> <48E2582C.3030907@freesurf.fr> <1222806444.3231.24.camel@zlarin> <48E346D0.90404@scilab.org> <48E361AF.8010202@scilab.org> Message-ID: It would also be an impressive learning and research tool for number theory and algorithm design etc etc. This would also open the possibility of Scilab as a rapid prototyping platform. Certainly I do not expect Scilab to find the next prime number but with gmp/mpfr in Scilab it can at least manipulate it. Although I'm working on gmp right now my real use personally would be mpfr. Arbitrary precision floating point calculation can be very useful for some simulations and data analysis. It also enable the studying of near ill-defined problems. Jonathan Blanchard On Wed, Oct 1, 2008 at 8:40 AM, Michael Baudin wrote: > After Claude and Sylvestre suggestions, I reply to myself : > - cryptography, > - robotics, > - etc... > > http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic > > "Motivations for an Arbitrary Precision Interval Arithmetic and the MPFI > Library" : > http://www.springerlink.com/content/q17l0u8840151310/ > > Regards, > > Micha?l > > Michael Baudin a ?crit : >> >> Hi, >> >> This is a little off-topic, but discussing with >> colleagues yesterday, it appears that I have >> no idea of scientific application of arbitrary >> precision computations. >> Can you give some examples (may be yours) ? >> >> Regards, >> >> Micha?l > > From BlanchardJ at ieee.org Wed Oct 1 18:08:32 2008 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Wed, 1 Oct 2008 13:08:32 -0300 Subject: test_run() in Solaris. Message-ID: Sorry again to bother everyone. Is it normal that test_run() does not work in Solaris? I get : failed : error_output not empty For all the test in the list. But by looking at the time taken to do the tests and the cpu usage they seem to be running. Should I file a bug report or? Jonathan Blanchard From sylvestre.ledru at scilab.org Wed Oct 1 18:19:58 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 01 Oct 2008 18:19:58 +0200 Subject: [Scilab-Dev] test_run() in Solaris. In-Reply-To: References: Message-ID: <1222877998.31019.254.camel@korcula.inria.fr> Le mercredi 01 octobre 2008 ? 13:08 -0300, Jonathan Blanchard a ?crit : > Sorry again to bother everyone. > > Is it normal that test_run() does not work in Solaris? I get : > > failed : error_output not empty That usually means that an error output has been produced by Scilab. Most of the time, it is caused by a warning on Scilab's startup (the localization could be the reason). test_run([],[], "no_check_error_output") will disable this check. Sylvestre From sylvestre.koumar at scilab.org Thu Oct 2 11:53:20 2008 From: sylvestre.koumar at scilab.org (Sylvestre Koumar) Date: Thu, 02 Oct 2008 11:53:20 +0200 Subject: Sylvestre Koumar Message-ID: <48E49A10.3070906@scilab.org> Hi! I'm Sylvestre Koumar, I will work with the Scilab team for 2 years. I'm in apprenticeship for a Master MIAGE degree(computer science methods applied to the management), so I will contribute to the development of Scilab. My tutor is Vincent Couvert, I hope we will make good job! Sylvestre Koumar From sylvestre.koumar at scilab.org Thu Oct 2 12:09:54 2008 From: sylvestre.koumar at scilab.org (Sylvestre Koumar) Date: Thu, 02 Oct 2008 12:09:54 +0200 Subject: SEP#8 for function uigetfile Message-ID: <48E49DF2.7020301@scilab.org> Hello, I've just posted the SEP_8_uigetfile which deals with the function uigetfile. I'm waiting for your notices. kind regards, Sylvestre Koumar From sylvestre.ledru at inria.fr Thu Oct 2 12:07:19 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Thu, 02 Oct 2008 12:07:19 +0200 Subject: [Scilab-Dev] SEP#8 for function uigetfile In-Reply-To: <48E49DF2.7020301@scilab.org> References: <48E49DF2.7020301@scilab.org> Message-ID: <1222942039.3451.24.camel@zlarin> Le jeudi 02 octobre 2008 ? 12:09 +0200, Sylvestre Koumar a ?crit : > I've just posted the SEP_8_uigetfile which deals with the function > uigetfile. > > I'm waiting for your notices. Great, I love seeing SEP coming ;) I have a few comments. * What are you planning to do about old functions ? Put them obsolete or directly connect them on uigetfile ? * can file mask be a regular expression ? * if multiple is set to true, you should highlight on the return type in this case. Sylvestre From sylvestre.ledru at inria.fr Thu Oct 2 15:34:19 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Thu, 02 Oct 2008 15:34:19 +0200 Subject: [Scilab-Dev] SEP: Object oriented programming under scilab In-Reply-To: <20080924094047.308274u1zzu5dyww@horde.freesurf.fr> References: <20080924094047.308274u1zzu5dyww@horde.freesurf.fr> Message-ID: <1222954459.3397.34.camel@zlarin> > You will find in this SEP some thoughts related to object oriented > programming under scilab: what do we need to be able to start building > objects under Scilab. > This is a first version. I am waiting for a lot of comments ... Here is mine (and we had some chat about it internaly). First, I am convienced that Scilab should offer some object oriented feature. A more overall view, IMHO, this SEP is caught between two stools ("le cul entre deux chaises" dans notre langue). You are taking the current Scilab language with the limitations and you are proposing to extend the "mlist trick". I think we must go futher in the proposal. We should not stick on the mlist way and provide a dedicated way of doing it. A example could be: class myClassA: // maybe we declare the local variable function setAB(variable) __variable=variable endfunction function res = getAB() res = __variable endfunction function res = compute(variable2) res = variable2 + __variable endfunction endclass // extend the class myClassA class myNewObject(myClassA): function res = greatCompute(variable) res = variable * %pi + __variable endfunction endclass It is just a quick idea and proposal. In the meantime, the point "have the possibility to overload macros" should be a specific SEP which could be address in Scilab 6. Sylvestre From fvogelnew1 at free.fr Thu Oct 2 21:30:34 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Thu, 02 Oct 2008 21:30:34 +0200 Subject: [Scilab-Dev] SEP#8 for function uigetfile In-Reply-To: <48E49DF2.7020301@scilab.org> References: <48E49DF2.7020301@scilab.org> Message-ID: <48E5215A.3070206@free.fr> Sylvestre Koumar said on 02/10/2008 12:09: > I've just posted the SEP_8_uigetfile which deals with the function > uigetfile. It is perhaps obvious for you who are sinking in the java stuff, but it is not said in the SEP: "uigetfile will replace xgetfile and tk_getfile" Fine. What you really want to say (I think) is that you will replace the X implementation of the file chooser (xgetfile) and the Tk implementation of the file chooser (tk_getfile) with a java version of the file chooser dialog. This should be said clearly in the SEP I think. Or (if I'm wrong in the above), then maybe Sylvestre (L.) is right? Do you want to connect the existing functions to uigetfile()? I guess not. Otherwise, what about tk_getdir()? Will you maintain it? Include it in the new java version of this proposal? If it's included, we should think carefully about the case of returning both dirs and files when multiple is set. Cheers, Francois From ycollet at freesurf.fr Thu Oct 2 22:04:05 2008 From: ycollet at freesurf.fr (Collette Yann) Date: Thu, 02 Oct 2008 22:04:05 +0200 Subject: [Scilab-Dev] SEP: Object oriented programming under scilab In-Reply-To: <1222954459.3397.34.camel@zlarin> References: <20080924094047.308274u1zzu5dyww@horde.freesurf.fr> <1222954459.3397.34.camel@zlarin> Message-ID: <48E52935.7020109@freesurf.fr> I think a good source of inspiration for object oriented programming for scilab is python. No types like with scilab but a good hability for object oriented programming. Sylvestre Ledru a ?crit : >> You will find in this SEP some thoughts related to object oriented >> programming under scilab: what do we need to be able to start building >> objects under Scilab. >> This is a first version. I am waiting for a lot of comments ... >> > Here is mine (and we had some chat about it internaly). > > First, I am convienced that Scilab should offer some object oriented > feature. > > A more overall view, IMHO, this SEP is caught between two stools ("le > cul entre deux chaises" dans notre langue). > You are taking the current Scilab language with the limitations and you > are proposing to extend the "mlist trick". > I think we must go futher in the proposal. We should not stick on the > mlist way and provide a dedicated way of doing it. > > A example could be: > > class myClassA: > // maybe we declare the local variable > function setAB(variable) > __variable=variable > endfunction > > function res = getAB() > res = __variable > endfunction > > function res = compute(variable2) > res = variable2 + __variable > endfunction > endclass > > // extend the class myClassA > class myNewObject(myClassA): > function res = greatCompute(variable) > res = variable * %pi + __variable > endfunction > endclass > > It is just a quick idea and proposal. > This kind of programming is a little bit pythonic. > In the meantime, the point "have the possibility to overload macros" > should be a specific SEP which could be address in Scilab 6. > > Sylvestre > > Yann COLLETTE From sylvestre.ledru at inria.fr Thu Oct 2 22:10:05 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Thu, 02 Oct 2008 22:10:05 +0200 Subject: [Scilab-Dev] SEP: Object oriented programming under scilab In-Reply-To: <48E52935.7020109@freesurf.fr> References: <20080924094047.308274u1zzu5dyww@horde.freesurf.fr> <1222954459.3397.34.camel@zlarin> <48E52935.7020109@freesurf.fr> Message-ID: <1222978205.3487.21.camel@zlarin> Le jeudi 02 octobre 2008 ? 22:04 +0200, Collette Yann a ?crit : > I think a good source of inspiration for object oriented programming for > scilab is python. No types like with scilab but a good hability for > object oriented programming. Spotted ! ;) The idea is also to facilitate the conversion Python => Scilab in some cases... Sylvestre From zabiziz at gmail.com Thu Oct 2 22:25:18 2008 From: zabiziz at gmail.com (Zabiziz Zaz) Date: Thu, 2 Oct 2008 17:25:18 -0300 Subject: Problem with fftw Message-ID: <73b1086e0810021325s31ba6405qecf24fd9ae9c18b6@mail.gmail.com> Hi, I've compilide and installed the scilab version 5.2, but when I try to use the fftw module I receive the message: Scilab FFTW module not installed My configure command was: ./configure --with-gfortran --prefix=/usr/local/scilab-5.0.2 --with- pcre=/usr/local/pcre --enable-build-help --with-fftw --with-umfpack -- enable-build-localization The program compile ok, without any errors, but I don't know why the fftw module don't work. Can anybody help? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at inria.fr Thu Oct 2 22:27:30 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Thu, 02 Oct 2008 22:27:30 +0200 Subject: [Scilab-Dev] Problem with fftw In-Reply-To: <73b1086e0810021325s31ba6405qecf24fd9ae9c18b6@mail.gmail.com> References: <73b1086e0810021325s31ba6405qecf24fd9ae9c18b6@mail.gmail.com> Message-ID: <1222979250.3487.29.camel@zlarin> Hello, > I've compilide and installed the scilab version 5.2, but when I try > to > use the fftw module I receive the message: > Scilab FFTW module not installed > > > My configure command was: > ./configure --with-gfortran --prefix=/usr/local/scilab-5.0.2 --with- > pcre=/usr/local/pcre --enable-build-help --with-fftw --with-umfpack > -- > enable-build-localization > > > The program compile ok, without any errors, but I don't know why the > fftw module don't work. > > > Can anybody help? What do you get if you do: $ grep fftw etc/modules.xml ? If it is enable="no", switch it to yes ;) S From zabiziz at gmail.com Thu Oct 2 22:32:36 2008 From: zabiziz at gmail.com (Zabiziz Zaz) Date: Thu, 2 Oct 2008 17:32:36 -0300 Subject: [Scilab-Dev] Problem with fftw In-Reply-To: <1222979250.3487.29.camel@zlarin> References: <73b1086e0810021325s31ba6405qecf24fd9ae9c18b6@mail.gmail.com> <1222979250.3487.29.camel@zlarin> Message-ID: <73b1086e0810021332n2d83f245xda6a4e5720cd8536@mail.gmail.com> Hi, thanks for your help, but the module already appears as activate. # grep fftw etc/modules.xml []s On Thu, Oct 2, 2008 at 5:27 PM, Sylvestre Ledru wrote: > Hello, > > > > I've compilide and installed the scilab version 5.2, but when I try > > to > > use the fftw module I receive the message: > > Scilab FFTW module not installed > > > > > > My configure command was: > > ./configure --with-gfortran --prefix=/usr/local/scilab-5.0.2 --with- > > pcre=/usr/local/pcre --enable-build-help --with-fftw --with-umfpack > > -- > > enable-build-localization > > > > > > The program compile ok, without any errors, but I don't know why the > > fftw module don't work. > > > > > > Can anybody help? > What do you get if you do: > $ grep fftw etc/modules.xml > ? > > If it is enable="no", switch it to yes ;) > > S > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Fri Oct 3 08:25:14 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Fri, 03 Oct 2008 08:25:14 +0200 Subject: [Scilab-Dev] Re: Re: Leaving SVN to GIT In-Reply-To: <1222789153.31019.152.camel@korcula.inria.fr> References: <82bf75360809221457h1b77e3bcpabb114054e51c03@mail.gmail.com> <1222123518.4063.45.camel@zlarin.inria.fr> <82bf75360809241333j42dbdf36qcef4dafce440daa5@mail.gmail.com> <1222785929.31019.141.camel@korcula.inria.fr> <1222789153.31019.152.camel@korcula.inria.fr> Message-ID: <48E5BACA.2070200@free.fr> Sylvestre Ledru said on 30/09/2008 17:39: > Because from a checkout of a git repository, you can have multiple > references to misc branches: > Ie, you can say "please, get me the change from this branch" > or "this time, the trunk". So, will you open the YaSp branch? Currently what's happening there is hidden unless you're part of some happy few who have a password. Francois From sylvestre.ledru at scilab.org Fri Oct 3 10:28:37 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 03 Oct 2008 10:28:37 +0200 Subject: [Scilab-Dev] Problem with fftw In-Reply-To: <73b1086e0810021332n2d83f245xda6a4e5720cd8536@mail.gmail.com> References: <73b1086e0810021325s31ba6405qecf24fd9ae9c18b6@mail.gmail.com> <1222979250.3487.29.camel@zlarin> <73b1086e0810021332n2d83f245xda6a4e5720cd8536@mail.gmail.com> Message-ID: <1223022517.31019.274.camel@korcula.inria.fr> Le jeudi 02 octobre 2008 ? 17:32 -0300, Zabiziz Zaz a ?crit : > Hi, > thanks for your help, but the module already appears as activate. > # grep fftw etc/modules.xml > OK, can you try what Yann proposed on the newsgroup ? (and let us know if it worked). Sylvestre From vincent.couvert at scilab.org Fri Oct 3 11:07:01 2008 From: vincent.couvert at scilab.org (Vincent COUVERT) Date: Fri, 03 Oct 2008 11:07:01 +0200 Subject: [Scilab-Dev] Re: Re: Leaving SVN to GIT In-Reply-To: <48E5BACA.2070200@free.fr> References: <82bf75360809221457h1b77e3bcpabb114054e51c03@mail.gmail.com> <1222123518.4063.45.camel@zlarin.inria.fr> <82bf75360809241333j42dbdf36qcef4dafce440daa5@mail.gmail.com> <1222785929.31019.141.camel@korcula.inria.fr> <1222789153.31019.152.camel@korcula.inria.fr> <48E5BACA.2070200@free.fr> Message-ID: <48E5E0B5.5000204@scilab.org> Hi Fran?ois, Yes the "YaSp branch" will be opened, time for us to begin our communication about Scilab 6.x developments. Vincent Fran?ois Vogel a ?crit : > Sylvestre Ledru said on 30/09/2008 17:39: >> Because from a checkout of a git repository, you can have multiple >> references to misc branches: >> Ie, you can say "please, get me the change from this branch" >> or "this time, the trunk". > > So, will you open the YaSp branch? Currently what's happening there is > hidden unless you're part of some happy few who have a password. > > Francois From fvogelnew1 at free.fr Fri Oct 3 12:22:42 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Fri, 03 Oct 2008 12:22:42 +0200 Subject: [Scilab-Dev] Re: Re: Leaving SVN to GIT In-Reply-To: <48E5E0B5.5000204@scilab.org> References: <82bf75360809221457h1b77e3bcpabb114054e51c03@mail.gmail.com> <1222123518.4063.45.camel@zlarin.inria.fr> <82bf75360809241333j42dbdf36qcef4dafce440daa5@mail.gmail.com> <1222785929.31019.141.camel@korcula.inria.fr> <1222789153.31019.152.camel@korcula.inria.fr> <48E5BACA.2070200@free.fr> <48E5E0B5.5000204@scilab.org> Message-ID: <48E5F272.5090006@free.fr> Groovy! F. Vincent COUVERT said on 03/10/2008 11:07: > Hi Fran?ois, > > Yes the "YaSp branch" will be opened, time for us to begin our > communication about Scilab 6.x developments. > > Vincent > > > Fran?ois Vogel a ?crit : >> Sylvestre Ledru said on 30/09/2008 17:39: >>> Because from a checkout of a git repository, you can have multiple >>> references to misc branches: >>> Ie, you can say "please, get me the change from this branch" >>> or "this time, the trunk". >> >> So, will you open the YaSp branch? Currently what's happening there is >> hidden unless you're part of some happy few who have a password. >> >> Francois > > > From sylvestre.koumar at scilab.org Fri Oct 3 13:23:55 2008 From: sylvestre.koumar at scilab.org (Sylvestre Koumar) Date: Fri, 03 Oct 2008 13:23:55 +0200 Subject: [Scilab-Dev] SEP#8 for function uigetfile In-Reply-To: <1222942039.3451.24.camel@zlarin> References: <48E49DF2.7020301@scilab.org> <1222942039.3451.24.camel@zlarin> Message-ID: <48E600CB.2080500@scilab.org> * What are you planning to do about old functions ? Old functions will become obsolete. * can file mask be a regular expression ? Yes mask file can be a regular expression, like "Scilab files", "Test files (*.tst)". * if multiple is set to true, you should highlight on the return type in this case. example : multiple is true, PathFileName(vector) = C:\toto.txt, C:\titi.txt, ... FileName = toto.txt, titi.txt, ... PathName = C:\ I update the SEP to be more explicit. >> I've just posted the SEP_8_uigetfile which deals with the function >> uigetfile. >> >> I'm waiting for your notices. >> > Great, I love seeing SEP coming ;) > > I have a few comments. > * What are you planning to do about old functions ? Put them obsolete or > directly connect them on uigetfile ? > > * can file mask be a regular expression ? > > * if multiple is set to true, you should highlight on the return type in > this case. > > Sylvestre > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at scilab.org Fri Oct 3 13:52:07 2008 From: Serge.Steer at scilab.org (Serge Steer) Date: Fri, 03 Oct 2008 13:52:07 +0200 Subject: [Scilab-Dev] SEP: Object oriented programming under scilab In-Reply-To: <1222954459.3397.34.camel@zlarin> References: <20080924094047.308274u1zzu5dyww@horde.freesurf.fr> <1222954459.3397.34.camel@zlarin> Message-ID: <48E60767.6040508@scilab.org> Sylvestre Ledru a ?crit : > > In the meantime, the point "have the possibility to overload macros" > should be a specific SEP which could be address in Scilab 6. > > As there is no typing for the input argument of a macro automatic overloading is difficult if it is not explicitely handled in the macro code as in the example below: function y=foo(x) if typeof(x)<>'constant' then execstr('y= %'+typeof(x)+'_foo(x)') else y=x^2+1 endfunction If the function to be overaloaded is stored in a library, there is an other solution Example: let define atanh for integer type -->atanh(int32(2)) !--error 10000 atanh: Mauvais type pour l'argument d'entr?e n? 1: Matrice r?elle ou complexe attendu. -->function y=atanh(x) elementary_functionlib.atanh //recall the default atanh if typeof(x)=="int32" then y=atanh(double(x)) else y=atanh(x) end endfunction -->atanh(int32(2)) ans = 0.5493061 - 1.5707963i From zabiziz at gmail.com Fri Oct 3 14:37:42 2008 From: zabiziz at gmail.com (Zabiziz Zaz) Date: Fri, 3 Oct 2008 09:37:42 -0300 Subject: [Scilab-Dev] Problem with fftw In-Reply-To: <1223022517.31019.274.camel@korcula.inria.fr> References: <73b1086e0810021325s31ba6405qecf24fd9ae9c18b6@mail.gmail.com> <1222979250.3487.29.camel@zlarin> <73b1086e0810021332n2d83f245xda6a4e5720cd8536@mail.gmail.com> <1223022517.31019.274.camel@korcula.inria.fr> Message-ID: <73b1086e0810030537p39d0c54at32a4b707a8b43c71@mail.gmail.com> Hi, I had already installed the fftw lib (it is in /usr/lib64). It's really strange, because the program compile without errors and when I call the program I only receive one warning message: Could not file localization file for LC_MESSAGES Switch back to the default language en_US I tried to compile again, but the problem continues..I tried to compile the fftw lib (not use the rpm), but the problem continues.. Thanks for your help. On Fri, Oct 3, 2008 at 5:28 AM, Sylvestre Ledru wrote: > Le jeudi 02 octobre 2008 ? 17:32 -0300, Zabiziz Zaz a ?crit : > > Hi, > > thanks for your help, but the module already appears as activate. > > # grep fftw etc/modules.xml > > > OK, can you try what Yann proposed on the newsgroup ? > (and let us know if it worked). > > Sylvestre > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ycollet at freesurf.fr Fri Oct 3 15:01:27 2008 From: ycollet at freesurf.fr (ycollet at freesurf.fr) Date: Fri, 03 Oct 2008 15:01:27 +0200 Subject: [Scilab-Dev] SEP: Object oriented programming under scilab In-Reply-To: <48E60767.6040508@scilab.org> References: <20080924094047.308274u1zzu5dyww@horde.freesurf.fr> <1222954459.3397.34.camel@zlarin> <48E60767.6040508@scilab.org> Message-ID: <20081003150127.113428mifno7xgbo@webmail-html.freesurf.fr> Thanks for these infos. And what about adding the following rule in the parser: if typeof(x) == 'constant' then call the 'naked' function (without %....) else call %..... For OO programming, we just need to overload operators and functions for user defined type ... YC Serge Steer a ?crit?: > Sylvestre Ledru a ?crit : >> >> In the meantime, the point "have the possibility to overload macros" >> should be a specific SEP which could be address in Scilab 6. >> >> > As there is no typing for the input argument of a macro automatic > overloading is difficult if it is not explicitely handled in the macro > code as in the example below: > > function y=foo(x) > if typeof(x)<>'constant' then > execstr('y= %'+typeof(x)+'_foo(x)') > else > y=x^2+1 > endfunction > > If the function to be overaloaded is stored in a library, there is an > other solution > > Example: let define atanh for integer type > -->atanh(int32(2)) > !--error 10000 > atanh: Mauvais type pour l'argument d'entr?e n? 1: Matrice r?elle ou > complexe attendu. > > -->function y=atanh(x) > elementary_functionlib.atanh //recall the default atanh > if typeof(x)=="int32" then > y=atanh(double(x)) > else > y=atanh(x) > end > endfunction > -->atanh(int32(2)) > ans = > > 0.5493061 - 1.5707963i > > > -- Transmis via le Webmail FreeSurf: http://www.freesurf.fr From sylvestre.koumar at scilab.org Fri Oct 3 15:35:25 2008 From: sylvestre.koumar at scilab.org (Sylvestre Koumar) Date: Fri, 03 Oct 2008 15:35:25 +0200 Subject: [Scilab-Dev] SEP#8 for function uigetfile In-Reply-To: <48E5215A.3070206@free.fr> References: <48E49DF2.7020301@scilab.org> <48E5215A.3070206@free.fr> Message-ID: <48E61F9D.2080307@scilab.org> Well,the file chooser dialog is in Java for xgetfile but not for tk_getfile. uigetfile() file chooser dialog will be in Java. The existing functions will not be connected to uigetfile(), because those existing functions will become obsolete. tk_getdir() will be replaced by uigetdir() and become obsolete. Kind regards, Sylvestre Koumar >> I've just posted the SEP_8_uigetfile which deals with the function >> uigetfile. > > It is perhaps obvious for you who are sinking in the java stuff, but > it is not said in the SEP: > > "uigetfile will replace xgetfile and tk_getfile" > > Fine. What you really want to say (I think) is that you will replace > the X implementation of the file chooser (xgetfile) and the Tk > implementation of the file chooser (tk_getfile) with a java version of > the file chooser dialog. This should be said clearly in the SEP I think. > > Or (if I'm wrong in the above), then maybe Sylvestre (L.) is right? Do > you want to connect the existing functions to uigetfile()? I guess not. > > Otherwise, what about tk_getdir()? Will you maintain it? Include it in > the new java version of this proposal? If it's included, we should > think carefully about the case of returning both dirs and files when > multiple is set. > > Cheers, > Francois From zabiziz at gmail.com Fri Oct 3 15:50:57 2008 From: zabiziz at gmail.com (Zabiziz Zaz) Date: Fri, 3 Oct 2008 10:50:57 -0300 Subject: [Scilab-Dev] Problem with fftw In-Reply-To: <73b1086e0810030537p39d0c54at32a4b707a8b43c71@mail.gmail.com> References: <73b1086e0810021325s31ba6405qecf24fd9ae9c18b6@mail.gmail.com> <1222979250.3487.29.camel@zlarin> <73b1086e0810021332n2d83f245xda6a4e5720cd8536@mail.gmail.com> <1223022517.31019.274.camel@korcula.inria.fr> <73b1086e0810030537p39d0c54at32a4b707a8b43c71@mail.gmail.com> Message-ID: <73b1086e0810030650s5ee9fa35yfa3b0ad4a486d8ac@mail.gmail.com> Hi Sylvestre, it's working now! I've to put my lib instalation directory in the LD_LIBRARY_PATH (/usr/local/scilab-5.0.2/lib/scilab). It's strange because I've put the directory in the /etc/ld.so.conf and executed the ldconfig command... Anyway, it's working now! Thanks a lot for your help. On Fri, Oct 3, 2008 at 9:37 AM, Zabiziz Zaz wrote: > Hi, > I had already installed the fftw lib (it is in /usr/lib64). It's really > strange, because the program compile without errors and when I call the > program I only receive one warning message: > Could not file localization file for LC_MESSAGES > Switch back to the default language en_US > > I tried to compile again, but the problem continues..I tried to compile the > fftw lib (not use the rpm), but the problem continues.. > > Thanks for your help. > > > On Fri, Oct 3, 2008 at 5:28 AM, Sylvestre Ledru < > sylvestre.ledru at scilab.org> wrote: > >> Le jeudi 02 octobre 2008 ? 17:32 -0300, Zabiziz Zaz a ?crit : >> > Hi, >> > thanks for your help, but the module already appears as activate. >> > # grep fftw etc/modules.xml >> > >> OK, can you try what Yann proposed on the newsgroup ? >> (and let us know if it worked). >> >> Sylvestre >> >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Mon Oct 6 10:59:43 2008 From: michael.baudin at scilab.org (Michael Baudin) Date: Mon, 06 Oct 2008 10:59:43 +0200 Subject: [Scilab-Dev] SEP: Object oriented programming under scilab In-Reply-To: <20081003150127.113428mifno7xgbo@webmail-html.freesurf.fr> References: <20080924094047.308274u1zzu5dyww@horde.freesurf.fr> <1222954459.3397.34.camel@zlarin> <48E60767.6040508@scilab.org> <20081003150127.113428mifno7xgbo@webmail-html.freesurf.fr> Message-ID: <48E9D37F.5040406@scilab.org> Hi, The current SEP may be splitted into 4 separate SEPs : - update the datastructure we are working on - input/output arguments - overload macros - an OO system for Scilab (which includes the inheritance part of the SEP) While the implementation of the first 3 SEPs may require weeks of work (and may be available during 2009 or with v6) , the implementation of the Graal 4th may take months or even years (and may be available during 2010/2011, after v6). In between, one should be able to design better Scilab scripts, even if a full OO system is not available. The solution suggested by YC to manage the "this" implicit statement seems to be elegant. Here is an example of what would be possible with this feature : Function newperson= Person_new() newperson=tlist(["t_data","field1","configure"]) newperson.field1="" newperson.configure=person_configure Endfunction Function person_configure(key,value) if key=="field1" then this.field1=value end Endfunction P1= Person_new() p1.configure("field1","toto") What is strange here, is that the developper has no clue while reading the "person_configure" function, that the "this" implicit variable is not a bug. It may also happen that current scripts allready use the "this" variable, which may transform these scripts into bugs when the feature will be available. One solution may be to define a new type of function, say "listfunction" for example, in which the "this" variable is implicitely defined as an input/output variable. listfunction person_configure(key,value) if key=="field1" then this.field1=value end endlistfunction The solution I explored on the wiki was limited by the fact that current scilab scripts does not allow arguments to be both input and output. The current Scilab features allow to do this, but are not so easy to use : http://wiki.scilab.org/Emulate_Object_Oriented_in_Scilab I suggest here two solutions to provide such a feature : - an alias system "upvar", which makes a link between a variable name and a variable upper in the call stack. This command is available in Tcl. - a pointer system, similar to C pointer, and which seems to be available in Matlab for functions only. Sol#1 function person_configure(p1name) upvar1 p1name p1 p1.name="linus" end function p1=tlist("type","name") person_configure("p1") Sol#2 function person_configure(pp1) P1=*pp1 P1.name="linus" end function p1=tlist("type","name") person_configure(@p1) This is the header of the upvar command : upvar ?level? otherVar myVar "This command arranges for one or more local variables in the current procedure to refer to variables in an enclosing procedure call or to global variables. The upvar command simplifies the implementation of call-by-name procedure." Another possibility would be to implement the "inputvarname" command available in Matlab, but the feature is not as powerful as "upvar", and not as clear as "@/*". The solution suggested by SL for object orientation seems to be simple and clear. In practical situations, the additionnal features will be necessary : - distinguish the instance methods from the class methods, - distinguish the instance variables from the class variables, - explicit management of creation and destruction. This may be an example of an abstract optim class, which may serve as a base for all optimization which are based on an initial guess. class optim variable initialguess classvariable numofoptim 0 constructor () numofoptim = numofoptim + 1 endconstructor method setinitialguess(variable) initialguess = variable endmethod method res = getinitialguess() res = initialguess endmethod classmethod res = getnumoptim() res = numofoptim endclassmethod endclass The following may be a BFGS class, which extends the optim class by adding a bfgs matrix. class optim_bfgs(optim) variable bfgsmatrix constructor () bfgsmatrix = zeros() endconstructor method solve() x0=initialguess // A BFGS method... endmethod method updatematrix() // update the bfgs matrix endmethod endclass The use of this class may be done with the following lines. o1=new(optim_bfgs) o1.setinitialguess(zeros(5)) o1.solve() free(o1) But OO may mean much more than this as we all know : - multiple inheritance, - abstract interfaces. Multiple inheritance may be implemented with a OO model based on delegation. Another feature will is linked is namespaces, because we cannot think that the number of features in Scilab can increase in one single, global, namespace. Notice that current function names are limited to 24 characters, so that a naming convention may be quite limited. Regards, Micha?l From sylvestre.ledru at scilab.org Mon Oct 6 17:07:39 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 06 Oct 2008 17:07:39 +0200 Subject: Using a new version of jeuclid Message-ID: <1223305659.26660.14.camel@korcula.inria.fr> Hello, Just to let you know that I updated the default version of Jeuclid to the version 3.1.3. Note that the help won't build with the version 3.0.X. Sylvestre From sylvestre.ledru at scilab.org Tue Oct 7 18:16:32 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 07 Oct 2008 18:16:32 +0200 Subject: splint: make check-code Message-ID: <1223396192.8577.61.camel@korcula.inria.fr> Hello, Yann C showed me a great tool called Splint [1]. Since I am lazy, here is the description from the website: Splint is a tool for statically checking C programs for security vulnerabilities and coding mistakes. In order to use it easily on Scilab, I added a new target to the Makefile called "check-code" for each module. I moved the call of checkstyle to this target too. Example: # cd modules/integer/ # make check-code By default, I am calling splint with the options "-weak -booltype BOOL". They can be changed in the root Makefile.incl.am (variable SPLINT_OPTIONS). To play with it, you must have splint installed on your computer (it is packaged under debian & Ubuntu) and available in the path. In the Java world, I found the program findbugs [2] which is pretty amazing. Very likely, it is going to be included into the check-code target too. Sylvestre [1] http://www.splint.org/ [2] http://findbugs.sourceforge.net/ From BlanchardJ at ieee.org Tue Oct 7 18:23:41 2008 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Tue, 7 Oct 2008 13:23:41 -0300 Subject: [Scilab-Dev] Re: Re: Leaving SVN to GIT In-Reply-To: <48E5F272.5090006@free.fr> References: <82bf75360809221457h1b77e3bcpabb114054e51c03@mail.gmail.com> <1222123518.4063.45.camel@zlarin.inria.fr> <82bf75360809241333j42dbdf36qcef4dafce440daa5@mail.gmail.com> <1222785929.31019.141.camel@korcula.inria.fr> <1222789153.31019.152.camel@korcula.inria.fr> <48E5BACA.2070200@free.fr> <48E5E0B5.5000204@scilab.org> <48E5F272.5090006@free.fr> Message-ID: Just to keep up to date. When will the switch to git gonna happen and when is it going to be open for public retrieval again? Jonathan Blanchard On Fri, Oct 3, 2008 at 7:22 AM, Fran?ois Vogel wrote: > Groovy! > > F. > > Vincent COUVERT said on 03/10/2008 11:07: >> >> Hi Fran?ois, >> >> Yes the "YaSp branch" will be opened, time for us to begin our >> communication about Scilab 6.x developments. >> >> Vincent >> >> >> Fran?ois Vogel a ?crit : >>> >>> Sylvestre Ledru said on 30/09/2008 17:39: >>>> >>>> Because from a checkout of a git repository, you can have multiple >>>> references to misc branches: >>>> Ie, you can say "please, get me the change from this branch" >>>> or "this time, the trunk". >>> >>> So, will you open the YaSp branch? Currently what's happening there is >>> hidden unless you're part of some happy few who have a password. >>> >>> Francois >> >> >> > From sylvestre.ledru at scilab.org Wed Oct 8 10:39:19 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 08 Oct 2008 10:39:19 +0200 Subject: [Scilab-Dev] Re: Re: Leaving SVN to GIT In-Reply-To: References: <82bf75360809221457h1b77e3bcpabb114054e51c03@mail.gmail.com> <1222123518.4063.45.camel@zlarin.inria.fr> <82bf75360809241333j42dbdf36qcef4dafce440daa5@mail.gmail.com> <1222785929.31019.141.camel@korcula.inria.fr> <1222789153.31019.152.camel@korcula.inria.fr> <48E5BACA.2070200@free.fr> <48E5E0B5.5000204@scilab.org> <48E5F272.5090006@free.fr> Message-ID: <1223455159.8577.81.camel@korcula.inria.fr> We are currently moving here from one building to an other one (you probably don't care but it explains). We were thinking about migrating in the meantime but we have issue firewall issues. The VCS will be public as soon as we migrate. Sylvestre Le mardi 07 octobre 2008 ? 13:23 -0300, Jonathan Blanchard a ?crit : > Just to keep up to date. When will the switch to git gonna happen and > when is it going to be open for public retrieval again? > > Jonathan Blanchard > > > > On Fri, Oct 3, 2008 at 7:22 AM, Fran?ois Vogel wrote: > > Groovy! > > > > F. > > > > Vincent COUVERT said on 03/10/2008 11:07: > >> > >> Hi Fran?ois, > >> > >> Yes the "YaSp branch" will be opened, time for us to begin our > >> communication about Scilab 6.x developments. > >> > >> Vincent > >> > >> > >> Fran?ois Vogel a ?crit : > >>> > >>> Sylvestre Ledru said on 30/09/2008 17:39: > >>>> > >>>> Because from a checkout of a git repository, you can have multiple > >>>> references to misc branches: > >>>> Ie, you can say "please, get me the change from this branch" > >>>> or "this time, the trunk". > >>> > >>> So, will you open the YaSp branch? Currently what's happening there is > >>> hidden unless you're part of some happy few who have a password. > >>> > >>> Francois > >> > >> > >> > > From nicolas.vergnes at steria.cnes.fr Thu Oct 9 09:27:59 2008 From: nicolas.vergnes at steria.cnes.fr (Vergnes Nicolas) Date: Thu, 9 Oct 2008 09:27:59 +0200 Subject: Build scilab 5.0.2 on Solaris 9 Message-ID: Hello, I'm trying to build scilab 5.0.2 on a Solaris 9 Sparc My configure is : LIBS="-L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib" \ FFLAGS="-L/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib -lgfortranbegin -lgfortran -lm" \ ./configure --prefix=/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2 --with-gcc --with-gnu-ld --with-gfortran --without-ocaml --with-install-help-xml --enable-build-help --enable-build-localization \ --with-tcl-include=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/include \ --with-tcl-library=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib \ --with-tk-include=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/include \ --with-tk-library=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib \ --with-matio-library=/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib \ --with-matio-include=/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/incl ude After more than one hour of compiling, this error msg appear, what could be the problem? Thanks for your help. Error msg : [...] jar: [jar] Building jar: /nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/modules/javasci/jar/javasci. jar BUILD SUCCESSFUL Total time: 2 seconds make[2]: Leaving directory `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/modules/javasci' make[1]: Leaving directory `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/modules' Making all in contrib make[1]: Entering directory `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/contrib' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/contrib' make[1]: Entering directory `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2' gcc -DHAVE_CONFIG_H -I. -I./modules/core/includes -O2 -DNDEBUG -DSVR4 -DSYSV -Dsolaris -I./libs/MALLOC/includes/ -I./modules/localization/includes/ -MT scilab_bin-main_linux.o -MD -MP -MF .deps/scilab_bin-main_linux.Tpo -c -o scilab_bin-main_linux.o `test -f './modules/core/src/c/main_linux.c' || echo './'`./modules/core/src/c/main_linux.c mv -f .deps/scilab_bin-main_linux.Tpo .deps/scilab_bin-main_linux.Po /bin/bash ./libtool --tag=CC --mode=link gcc -O2 -DNDEBUG -DSVR4 -DSYSV -Dsolaris -I./libs/MALLOC/includes/ -I./modules/localization/includes/ -o scilab-bin scilab_bin-main_linux.o ./modules/libscilab.la ./modules/shell/libscishell.la ./modules/localization/libscilocalization.la ./modules/core/libscicore.la -L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib mkdir .libs gcc -O2 -DNDEBUG -DSVR4 -DSYSV -Dsolaris -I./libs/MALLOC/includes/ -I./modules/localization/includes/ -o .libs/scilab-bin scilab_bin-main_linux.o ./modules/.libs/libscilab.so -L/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib -L/usr/lib -L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib -L/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/double/.libs/libscidoubl e.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/boolean/.libs/libscibool ean.so -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_threa ds -L/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib -L/usr/openwin/lib /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphic_export/.libs/lib scigraphic_export.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/interpolation/.libs/libs ciinterpolation.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc ilocalization.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/signal_processing/.libs/ libscisignal_processing.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/special_functions/.libs/ libscispecial_functions.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/statistics/.libs/libscis tatistics.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/windows_tools/.libs/libs ciwindows_tools.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/pvm/.libs/libscipvm.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/sparse/.libs/libscispars e.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/io/.libs/libsciio.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/console/.libs/libscicons ole.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/shell/.libs/libscishell. so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/completion/.libs/libscic ompletion.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/sound/.libs/libscisound. so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/helptools/.libs/libscihe lptools.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/fftw/.libs/libscifftw.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/umfpack/.libs/libsciumfp ack.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/jvm/.libs/libscijvm.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/scicos/.libs/libsciscico s.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/intersci/.libs/libsciint ersci.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/time/.libs/libscitime.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/scicos/.libs/libscisundi als.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/scicos_blocks/.libs/libs ciscicos_blocks.so -lrt /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphics/.libs/libscigra phics.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/tclsci/.libs/libscitclsc i.so -ltk8.5 -ltcl8.5 -ldl /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/gui/.libs/libscigui.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/renderer/.libs/libsciren derer.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/polynomials/.libs/libsci polynomials.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/cacsd/.libs/libscicacsd. so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/mexlib/.libs/libmx.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/mexlib/.libs/libmat.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/differential_equations/. libs/libscidifferential_equations.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/mexlib/.libs/libmex.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/data_structures/.libs/li bscidata_structures.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/integer/.libs/libsciinte ger.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/fileio/.libs/libscifilei o.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/linear_algebra/.libs/lib scilinear_algebra.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/dynamic_link/.libs/libsc idynamic_link.so /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/dynamiclibrary/.libs/libsci dynamiclibrary.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/string/.libs/libscistrin g.so /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib/libpcreposix.so /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib/libpcre.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/elementary_functions/.li bs/libscielementary_functions.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/arnoldi/.libs/libsciarno ldi.so /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/hashtable/.libs/libscihasht able.so /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/doublylinkedlist/.libs/libs cidoublylinkedlist.so /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/libst/.libs/libscilibst.so /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/lapack/.libs/libscilapack.s o /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/blas/.libs/libsciblas.so ./modules/shell/.libs/libscishell.so -lcurses /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/action_binding/.libs/lib sciaction_binding.so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/history_manager/.libs/li bscihistory_manager.so /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libstdc++.so ./modules/localization/.libs/libscilocalization.so -ljava -lverify -ljvm -lhpi /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/core/.libs/libscicore.so /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/MALLOC/.libs/libscimalloc.s o /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/output_stream/.libs/libs cioutput_stream.so ./modules/core/.libs/libscicore.so /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libgfortran.so -lxml2 -lz -lpthread -lm -lsocket -lnsl -Wl,--rpath -Wl,/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib/scilab -Wl,--rpath -Wl,/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib -Wl,--rpath -Wl,/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc ilocalization.so: undefined reference to `libintl_bindtextdomain' /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc ilocalization.so: undefined reference to `libiconv' /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/double/.libs/libscidoubl e.so: undefined reference to `lround' /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc ilocalization.so: undefined reference to `libintl_dgettext' /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/lapack/.libs/libscilapack.s o: undefined reference to `lroundf' /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc ilocalization.so: undefined reference to `libiconv_close' /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc ilocalization.so: undefined reference to `libiconv_open' /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc ilocalization.so: undefined reference to `libintl_textdomain' /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphic_export/.libs/lib scigraphic_export.so: undefined reference to `libintl_gettext' make[1]: *** [scilab-bin] Error 1 make[1]: Leaving directory `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2' make: *** [all-recursive] Error 1 For example : calc-gen5-ci:/Produits/tmp/nicolas/unix/scilab-5.0.2 $ ldd /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc ilocalization.so libjava.so => /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/libjava.so libverify.so => /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/libverify.so libjvm.so => /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client/libjvm. so libhpi.so => /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_threads /libhpi.so libscicore.so.5 => /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/core/.libs/libscicore.so .5 libscimalloc.so.5 => /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/MALLOC/.libs/libscimalloc.s o.5 libscioutput_stream.so.5 => /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/output_stream/.libs/libs cioutput_stream.so.5 libc.so.1 => /usr/lib/libc.so.1 libgcc_s.so.1 => /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libgcc_s.so.1 libsocket.so.1 => /usr/lib/libsocket.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libsched.so.1 => /usr/lib/libsched.so.1 libCrun.so.1 => /usr/lib/libCrun.so.1 libm.so.1 => /usr/lib/libm.so.1 libthread.so.1 => /usr/lib/libthread.so.1 libgfortran.so.3 => /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libgfortran.so.3 libxml2.so.2 => /usr/lib/libxml2.so.2 libz.so.1 => /usr/lib/libz.so.1 libpthread.so.1 => /usr/lib/libpthread.so.1 libmp.so.2 => /usr/lib/libmp.so.2 /usr/platform/SUNW,Sun-Fire-V890/lib/libc_psr.so.1 LD_LIBRARY_PATH is : calc-gen5-ci:/Produits/tmp/nicolas/unix/scilab-5.0.2 $ se ld _____LD_LIBRARY_PATH____ /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_threads /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/lib /Produits/publics/sparc.SunOS.5.9/ncurses/5.6/lib /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib /Produits/publics/sparc.SunOS.5.9/gmp/4.2.4/lib /Produits/publics/sparc.SunOS.5.9/mpfr/2.3.2/lib /Produits/publics/sparc.SunOS.5.9/ggettext/0.17/lib === here is libintl.so -> libintl.so.8.0.2 /Produits/publics/sparc.SunOS.5.9/lib /usr/local/lib ==== here is libiconv.so.2 /usr/lib /usr/ccs/lib /usr/ucblib /usr/dt/lib /usr/openwin/lib From BlanchardJ at ieee.org Thu Oct 9 15:43:43 2008 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Thu, 9 Oct 2008 10:43:43 -0300 Subject: [Scilab-Dev] Build scilab 5.0.2 on Solaris 9 In-Reply-To: References: Message-ID: Do you have ncurses installed? Jonathan Blanchard On Thu, Oct 9, 2008 at 4:27 AM, Vergnes Nicolas wrote: > Hello, > > I'm trying to build scilab 5.0.2 on a Solaris 9 Sparc > > My configure is : > LIBS="-L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib" \ > FFLAGS="-L/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib > -lgfortranbegin -lgfortran -lm" \ > ./configure --prefix=/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2 > --with-gcc --with-gnu-ld --with-gfortran --without-ocaml > --with-install-help-xml --enable-build-help --enable-build-localization > \ > --with-tcl-include=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/include > \ > --with-tcl-library=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib \ > --with-tk-include=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/include > \ > --with-tk-library=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib \ > --with-matio-library=/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib > \ > --with-matio-include=/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/incl > ude > > After more than one hour of compiling, this error msg appear, what could > be the problem? > Thanks for your help. > > Error msg : > [...] > jar: > [jar] Building jar: > /nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/modules/javasci/jar/javasci. > jar > > BUILD SUCCESSFUL > Total time: 2 seconds > make[2]: Leaving directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/modules/javasci' > make[1]: Leaving directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/modules' > Making all in contrib > make[1]: Entering directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/contrib' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/contrib' > make[1]: Entering directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2' > gcc -DHAVE_CONFIG_H -I. -I./modules/core/includes -O2 -DNDEBUG > -DSVR4 -DSYSV -Dsolaris -I./libs/MALLOC/includes/ > -I./modules/localization/includes/ -MT scilab_bin-main_linux.o -MD -MP > -MF .deps/scilab_bin-main_linux.Tpo -c -o scilab_bin-main_linux.o `test > -f './modules/core/src/c/main_linux.c' || echo > './'`./modules/core/src/c/main_linux.c > mv -f .deps/scilab_bin-main_linux.Tpo .deps/scilab_bin-main_linux.Po > /bin/bash ./libtool --tag=CC --mode=link gcc -O2 -DNDEBUG -DSVR4 > -DSYSV -Dsolaris -I./libs/MALLOC/includes/ > -I./modules/localization/includes/ -o scilab-bin > scilab_bin-main_linux.o ./modules/libscilab.la > ./modules/shell/libscishell.la > ./modules/localization/libscilocalization.la > ./modules/core/libscicore.la > -L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib > mkdir .libs > gcc -O2 -DNDEBUG -DSVR4 -DSYSV -Dsolaris -I./libs/MALLOC/includes/ > -I./modules/localization/includes/ -o .libs/scilab-bin > scilab_bin-main_linux.o ./modules/.libs/libscilab.so > -L/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib -L/usr/lib > -L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib > -L/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/double/.libs/libscidoubl > e.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/boolean/.libs/libscibool > ean.so -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc > -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client > -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_threa > ds -L/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib > -L/usr/openwin/lib > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphic_export/.libs/lib > scigraphic_export.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/interpolation/.libs/libs > ciinterpolation.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc > ilocalization.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/signal_processing/.libs/ > libscisignal_processing.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/special_functions/.libs/ > libscispecial_functions.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/statistics/.libs/libscis > tatistics.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/windows_tools/.libs/libs > ciwindows_tools.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/pvm/.libs/libscipvm.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/sparse/.libs/libscispars > e.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/io/.libs/libsciio.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/console/.libs/libscicons > ole.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/shell/.libs/libscishell. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/completion/.libs/libscic > ompletion.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/sound/.libs/libscisound. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/helptools/.libs/libscihe > lptools.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/fftw/.libs/libscifftw.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/umfpack/.libs/libsciumfp > ack.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/jvm/.libs/libscijvm.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/scicos/.libs/libsciscico > s.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/intersci/.libs/libsciint > ersci.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/time/.libs/libscitime.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/scicos/.libs/libscisundi > als.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/scicos_blocks/.libs/libs > ciscicos_blocks.so -lrt > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphics/.libs/libscigra > phics.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/tclsci/.libs/libscitclsc > i.so -ltk8.5 -ltcl8.5 -ldl > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/gui/.libs/libscigui.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/renderer/.libs/libsciren > derer.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/polynomials/.libs/libsci > polynomials.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/cacsd/.libs/libscicacsd. > so /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/mexlib/.libs/libmx.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/mexlib/.libs/libmat.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/differential_equations/. > libs/libscidifferential_equations.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/mexlib/.libs/libmex.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/data_structures/.libs/li > bscidata_structures.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/integer/.libs/libsciinte > ger.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/fileio/.libs/libscifilei > o.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/linear_algebra/.libs/lib > scilinear_algebra.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/dynamic_link/.libs/libsc > idynamic_link.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/dynamiclibrary/.libs/libsci > dynamiclibrary.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/string/.libs/libscistrin > g.so /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib/libpcreposix.so > /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib/libpcre.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/elementary_functions/.li > bs/libscielementary_functions.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/arnoldi/.libs/libsciarno > ldi.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/hashtable/.libs/libscihasht > able.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/doublylinkedlist/.libs/libs > cidoublylinkedlist.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/libst/.libs/libscilibst.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/lapack/.libs/libscilapack.s > o /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/blas/.libs/libsciblas.so > ./modules/shell/.libs/libscishell.so -lcurses > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/action_binding/.libs/lib > sciaction_binding.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/history_manager/.libs/li > bscihistory_manager.so > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libstdc++.so > ./modules/localization/.libs/libscilocalization.so -ljava -lverify -ljvm > -lhpi > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/core/.libs/libscicore.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/MALLOC/.libs/libscimalloc.s > o > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/output_stream/.libs/libs > cioutput_stream.so ./modules/core/.libs/libscicore.so > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libgfortran.so -lxml2 > -lz -lpthread -lm -lsocket -lnsl -Wl,--rpath > -Wl,/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib/scilab > -Wl,--rpath -Wl,/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib > -Wl,--rpath -Wl,/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc > ilocalization.so: undefined reference to `libintl_bindtextdomain' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc > ilocalization.so: undefined reference to `libiconv' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/double/.libs/libscidoubl > e.so: undefined reference to `lround' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc > ilocalization.so: undefined reference to `libintl_dgettext' > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/lapack/.libs/libscilapack.s > o: undefined reference to `lroundf' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc > ilocalization.so: undefined reference to `libiconv_close' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc > ilocalization.so: undefined reference to `libiconv_open' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc > ilocalization.so: undefined reference to `libintl_textdomain' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphic_export/.libs/lib > scigraphic_export.so: undefined reference to `libintl_gettext' > make[1]: *** [scilab-bin] Error 1 > make[1]: Leaving directory `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2' > make: *** [all-recursive] Error 1 > > For example : > calc-gen5-ci:/Produits/tmp/nicolas/unix/scilab-5.0.2 $ ldd > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/libsc > ilocalization.so > libjava.so => > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/libjava.so > libverify.so => > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/libverify.so > libjvm.so => > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client/libjvm. > so > libhpi.so => > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_threads > /libhpi.so > libscicore.so.5 => > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/core/.libs/libscicore.so > .5 > libscimalloc.so.5 => > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/MALLOC/.libs/libscimalloc.s > o.5 > libscioutput_stream.so.5 => > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/output_stream/.libs/libs > cioutput_stream.so.5 > libc.so.1 => /usr/lib/libc.so.1 > libgcc_s.so.1 => > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libgcc_s.so.1 > libsocket.so.1 => /usr/lib/libsocket.so.1 > libnsl.so.1 => /usr/lib/libnsl.so.1 > libdl.so.1 => /usr/lib/libdl.so.1 > libsched.so.1 => /usr/lib/libsched.so.1 > libCrun.so.1 => /usr/lib/libCrun.so.1 > libm.so.1 => /usr/lib/libm.so.1 > libthread.so.1 => /usr/lib/libthread.so.1 > libgfortran.so.3 => > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libgfortran.so.3 > libxml2.so.2 => /usr/lib/libxml2.so.2 > libz.so.1 => /usr/lib/libz.so.1 > libpthread.so.1 => /usr/lib/libpthread.so.1 > libmp.so.2 => /usr/lib/libmp.so.2 > /usr/platform/SUNW,Sun-Fire-V890/lib/libc_psr.so.1 > > LD_LIBRARY_PATH is : > calc-gen5-ci:/Produits/tmp/nicolas/unix/scilab-5.0.2 $ se ld > _____LD_LIBRARY_PATH____ > /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_threads > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/lib > /Produits/publics/sparc.SunOS.5.9/ncurses/5.6/lib > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib > /Produits/publics/sparc.SunOS.5.9/gmp/4.2.4/lib > /Produits/publics/sparc.SunOS.5.9/mpfr/2.3.2/lib > /Produits/publics/sparc.SunOS.5.9/ggettext/0.17/lib === here is > libintl.so -> libintl.so.8.0.2 > /Produits/publics/sparc.SunOS.5.9/lib > /usr/local/lib ==== here is libiconv.so.2 > /usr/lib > /usr/ccs/lib > /usr/ucblib > /usr/dt/lib > /usr/openwin/lib > > > > From nicolas.vergnes at steria.cnes.fr Fri Oct 10 08:17:20 2008 From: nicolas.vergnes at steria.cnes.fr (Vergnes Nicolas) Date: Fri, 10 Oct 2008 08:17:20 +0200 Subject: [Scilab-Dev] Build scilab 5.0.2 on Solaris 9 Message-ID: Yes Ncurses 5.6 /bin on PATH and /lib on LD_LIBRARY_PATH But i dont have put /include on the C_INCLUDE_PATH is it needed ? tx -----Message d'origine----- De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part de Jonathan Blanchard Envoy? : jeudi 9 octobre 2008 15:44 ? : dev at lists.scilab.org Objet : Re: [Scilab-Dev] Build scilab 5.0.2 on Solaris 9 Do you have ncurses installed? Jonathan Blanchard On Thu, Oct 9, 2008 at 4:27 AM, Vergnes Nicolas wrote: > Hello, > > I'm trying to build scilab 5.0.2 on a Solaris 9 Sparc > > My configure is : > LIBS="-L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib" \ > FFLAGS="-L/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib > -lgfortranbegin -lgfortran -lm" \ > ./configure --prefix=/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2 > --with-gcc --with-gnu-ld --with-gfortran --without-ocaml > --with-install-help-xml --enable-build-help > --enable-build-localization \ > --with-tcl-include=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/inclu > de > \ > --with-tcl-library=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib \ > --with-tk-include=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/includ > e > \ > --with-tk-library=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib \ > --with-matio-library=/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/li > b > \ > --with-matio-include=/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/in > cl > ude > > After more than one hour of compiling, this error msg appear, what > could be the problem? > Thanks for your help. > > Error msg : > [...] > jar: > [jar] Building jar: > /nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/modules/javasci/jar/javasci. > jar > > BUILD SUCCESSFUL > Total time: 2 seconds > make[2]: Leaving directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/modules/javasci' > make[1]: Leaving directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/modules' > Making all in contrib > make[1]: Entering directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/contrib' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/contrib' > make[1]: Entering directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2' > gcc -DHAVE_CONFIG_H -I. -I./modules/core/includes -O2 -DNDEBUG > -DSVR4 -DSYSV -Dsolaris -I./libs/MALLOC/includes/ > -I./modules/localization/includes/ -MT scilab_bin-main_linux.o -MD -MP > -MF .deps/scilab_bin-main_linux.Tpo -c -o scilab_bin-main_linux.o > `test -f './modules/core/src/c/main_linux.c' || echo > './'`./modules/core/src/c/main_linux.c > mv -f .deps/scilab_bin-main_linux.Tpo .deps/scilab_bin-main_linux.Po > /bin/bash ./libtool --tag=CC --mode=link gcc -O2 -DNDEBUG -DSVR4 > -DSYSV -Dsolaris -I./libs/MALLOC/includes/ > -I./modules/localization/includes/ -o scilab-bin > scilab_bin-main_linux.o ./modules/libscilab.la > ./modules/shell/libscishell.la > ./modules/localization/libscilocalization.la > ./modules/core/libscicore.la > -L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib > mkdir .libs > gcc -O2 -DNDEBUG -DSVR4 -DSYSV -Dsolaris -I./libs/MALLOC/includes/ > -I./modules/localization/includes/ -o .libs/scilab-bin > scilab_bin-main_linux.o ./modules/.libs/libscilab.so > -L/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib -L/usr/lib > -L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib > -L/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/double/.libs/libscidou > bl > e.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/boolean/.libs/libscibo > ol ean.so -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc > -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client > -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_thr > ea ds -L/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib > -L/usr/openwin/lib > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphic_export/.libs/l > ib > scigraphic_export.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/interpolation/.libs/li > bs > ciinterpolation.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/signal_processing/.lib > s/ > libscisignal_processing.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/special_functions/.lib > s/ > libscispecial_functions.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/statistics/.libs/libsc > is > tatistics.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/windows_tools/.libs/li > bs > ciwindows_tools.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/pvm/.libs/libscipvm.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/sparse/.libs/libscispa > rs > e.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/io/.libs/libsciio.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/console/.libs/libscico > ns > ole.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/shell/.libs/libscishell. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/completion/.libs/libsc > ic > ompletion.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/sound/.libs/libscisound. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/helptools/.libs/libsci > he > lptools.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/fftw/.libs/libscifftw. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/umfpack/.libs/libscium > fp > ack.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/jvm/.libs/libscijvm.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/scicos/.libs/libscisci > co > s.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/intersci/.libs/libscii > nt > ersci.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/time/.libs/libscitime. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/scicos/.libs/libscisun > di > als.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/scicos_blocks/.libs/li > bs > ciscicos_blocks.so -lrt > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphics/.libs/libscig > ra > phics.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/tclsci/.libs/libscitcl > sc > i.so -ltk8.5 -ltcl8.5 -ldl > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/gui/.libs/libscigui.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/renderer/.libs/libscir > en > derer.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/polynomials/.libs/libs > ci > polynomials.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/cacsd/.libs/libscicacsd. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/mexlib/.libs/libmx.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/mexlib/.libs/libmat.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/differential_equations/. > libs/libscidifferential_equations.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/mexlib/.libs/libmex.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/data_structures/.libs/ > li > bscidata_structures.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/integer/.libs/libsciin > te > ger.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/fileio/.libs/libscifil > ei > o.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/linear_algebra/.libs/l > ib > scilinear_algebra.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/dynamic_link/.libs/lib > sc > idynamic_link.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/dynamiclibrary/.libs/libs > ci > dynamiclibrary.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/string/.libs/libscistr > in g.so > /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib/libpcreposix.so > /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib/libpcre.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/elementary_functions/. > li > bs/libscielementary_functions.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/arnoldi/.libs/libsciar > no > ldi.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/hashtable/.libs/libscihas > ht > able.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/doublylinkedlist/.libs/li > bs > cidoublylinkedlist.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/libst/.libs/libscilibst.s > o > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/lapack/.libs/libscilapack > .s o > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/blas/.libs/libsciblas.so > ./modules/shell/.libs/libscishell.so -lcurses > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/action_binding/.libs/l > ib > sciaction_binding.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/history_manager/.libs/ > li > bscihistory_manager.so > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libstdc++.so > ./modules/localization/.libs/libscilocalization.so -ljava -lverify > -ljvm -lhpi > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/core/.libs/libscicore. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/MALLOC/.libs/libscimalloc > .s > o > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/output_stream/.libs/li > bs cioutput_stream.so ./modules/core/.libs/libscicore.so > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libgfortran.so -lxml2 > -lz -lpthread -lm -lsocket -lnsl -Wl,--rpath > -Wl,/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib/scilab > -Wl,--rpath -Wl,/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib > -Wl,--rpath -Wl,/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so: undefined reference to `libintl_bindtextdomain' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so: undefined reference to `libiconv' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/double/.libs/libscidou > bl > e.so: undefined reference to `lround' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so: undefined reference to `libintl_dgettext' > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/lapack/.libs/libscilapack > .s > o: undefined reference to `lroundf' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so: undefined reference to `libiconv_close' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so: undefined reference to `libiconv_open' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so: undefined reference to `libintl_textdomain' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphic_export/.libs/l > ib > scigraphic_export.so: undefined reference to `libintl_gettext' > make[1]: *** [scilab-bin] Error 1 > make[1]: Leaving directory `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2' > make: *** [all-recursive] Error 1 > > For example : > calc-gen5-ci:/Produits/tmp/nicolas/unix/scilab-5.0.2 $ ldd > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so > libjava.so => > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/libjava.so > libverify.so => > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/libverify.so > libjvm.so => > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client/libjvm. > so > libhpi.so => > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_threa > ds > /libhpi.so > libscicore.so.5 => > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/core/.libs/libscicore. > so > .5 > libscimalloc.so.5 => > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/MALLOC/.libs/libscimalloc > .s > o.5 > libscioutput_stream.so.5 => > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/output_stream/.libs/li > bs > cioutput_stream.so.5 > libc.so.1 => /usr/lib/libc.so.1 > libgcc_s.so.1 => > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libgcc_s.so.1 > libsocket.so.1 => /usr/lib/libsocket.so.1 > libnsl.so.1 => /usr/lib/libnsl.so.1 > libdl.so.1 => /usr/lib/libdl.so.1 > libsched.so.1 => /usr/lib/libsched.so.1 > libCrun.so.1 => /usr/lib/libCrun.so.1 > libm.so.1 => /usr/lib/libm.so.1 > libthread.so.1 => /usr/lib/libthread.so.1 > libgfortran.so.3 => > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libgfortran.so.3 > libxml2.so.2 => /usr/lib/libxml2.so.2 > libz.so.1 => /usr/lib/libz.so.1 > libpthread.so.1 => /usr/lib/libpthread.so.1 > libmp.so.2 => /usr/lib/libmp.so.2 > /usr/platform/SUNW,Sun-Fire-V890/lib/libc_psr.so.1 > > LD_LIBRARY_PATH is : > calc-gen5-ci:/Produits/tmp/nicolas/unix/scilab-5.0.2 $ se ld > _____LD_LIBRARY_PATH____ > /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_threa > ds /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/lib > /Produits/publics/sparc.SunOS.5.9/ncurses/5.6/lib > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib > /Produits/publics/sparc.SunOS.5.9/gmp/4.2.4/lib > /Produits/publics/sparc.SunOS.5.9/mpfr/2.3.2/lib > /Produits/publics/sparc.SunOS.5.9/ggettext/0.17/lib === here is > libintl.so -> libintl.so.8.0.2 /Produits/publics/sparc.SunOS.5.9/lib > /usr/local/lib ==== here is libiconv.so.2 /usr/lib /usr/ccs/lib > /usr/ucblib /usr/dt/lib /usr/openwin/lib > > > > From nicolas.vergnes at steria.cnes.fr Fri Oct 10 11:16:02 2008 From: nicolas.vergnes at steria.cnes.fr (Vergnes Nicolas) Date: Fri, 10 Oct 2008 11:16:02 +0200 Subject: [Scilab-Dev] Build scilab 5.0.2 on Solaris 9 Message-ID: If it could help there is the end of the ./configure command: Thanks, Host system type : sparc-sun-solaris2.9 Option Value ------------------------------------------------------------------------- Shared libraries....... --enable-shared=yes yes Static libraries....... --enable-static=yes yes GNU ld................. --with-gnu-ld=yes yes Enable debug .......... --enable-debug=no no Enable debug C......... --enable-debug-C=no no Enable debug C++....... --enable-debug-CXX=no no Enable debug Fortran... --enable-debug-fortran=no no Enable stop on warning. --enable-stop-on-warning= Compiler Configuration: Intel (--with-intelcompilers) .... = GNU gcc (--with-gcc) ............. = yes GNU Fortran 77 (--with-g77) ...... = GNU Fortran 95 (--with-gfortran) . = yes Options: Use PVM (--with-pvm) ............................. = PVM include (--with-pvm-include) ................. = PVM library (--with-pvm-library) ................. = Do not use TCL/TK (--without-tk) ................. = Do not compile with Ocaml (--without-ocaml) ...... = no TCL include (--with-tcl-include) ................. = /Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/include TCL library (--with-tcl-library) ................. = /Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib TK include (--with-tk-include) ................... = /Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/include TK library (--with-tk-library) ................... = /Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib Install XML Help (--with-install-help-xml) ....... = yes Make the package relocatable (--enable-relocatable)= no Use FFTW (--with-fftw) ........................... = Don't use MATIO (--without-matio) ................ = Scicos enable Ocaml Configuration (for Modelica compiler): OCAMLC ............. = OCAMLOPT ........... = OCAMLDEP ........... = Not using PVM Not using FFTW MATIO Configuration: MATIO LIBS .......... = -L/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib -lm -lmatio -lz MATIO CFLAGS ........ = -I/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/include Not using UMFPACK BLAS/LAPACK/ATLAS Configuration: BLAS LIBS ............. = Use the generic version of BLAS embedded LAPACK LIBS ........... = Use the LAPACK embedded Gettext/localization configuration: xgettext ............... = /Produits/publics/sparc.SunOS.5.9/ggettext/0.17/bin/xgettext msgfmt ................ = /Produits/publics/sparc.SunOS.5.9/ggettext/0.17/bin/msgfmt msgfmt_opts ............ = msgcat ................ = /Produits/publics/sparc.SunOS.5.9/ggettext/0.17/bin/msgcat Docbook XSL path ....... = /Produits/tmp/nicolas/unix/scilab-5.0.2/thirdparty/docbook/ Batik (SVG) ............ = /Produits/tmp/nicolas/unix/scilab-5.0.2/thirdparty/batik.jar Saxon XSLT ............. = /Produits/tmp/nicolas/unix/scilab-5.0.2/thirdparty/saxon.jar FOP (XML => PDF) ....... = /Produits/tmp/nicolas/unix/scilab-5.0.2/thirdparty/fop.jar Jeuclid (MathML) ....... = /Produits/tmp/nicolas/unix/scilab-5.0.2/thirdparty/jeuclid-core.jar Commons I/O ............ = /Produits/tmp/nicolas/unix/scilab-5.0.2/thirdparty/commons-io.jar XML graphics commons ... = /Produits/tmp/nicolas/unix/scilab-5.0.2/thirdparty/xmlgraphics-commons.jar Java Configuration: JAVA_HOME ........... = /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0 JAVAC ............... = /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/bin/javac JAVA_CLASSPATH ...... = JAVA_VERSION ........ = 1.5 JAVAC_FLAGS ......... = -g JAVA_JNI_INCLUDE .... = -I/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/include -I/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/include/solaris JAVA_JNI_LIBS ....... = -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc -ljava -lverify -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client -ljvm -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_threads -lhpi JAVA_JNI_LIBS_PRELOAD = JAVA ................ = /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/bin/java JAR ................. = /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/bin/jar ANT ................. = /Produits/publics/sparc.SunOS.5.9/ant/1.7.0/bin/ant TCL/TK configuration: TK_INC_PATH ........ = -I/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/include TCL_INC_PATH ....... = -I/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/include TCLTK_LIBS ......... = -L/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib -ltk8.5 -L/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib -ltcl8.5 -ldl TCL_SERIAL_VERSION . = 8.5.4 TK_SERIAL_VERSION .. = 8.5.4 XML configuration: XML_FLAGS .......... = -I/usr/include/libxml2 XML_LIBS ........... = -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread -lm -lsocket -lnsl XML_VERSION ........ = 2.4.23 PCRE configuration: PCRE_CFLAGS ........ = -I/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/include PCRE_LIBS .......... = -L/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib -R/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib -lpcreposix -lpcre PCRE_VERSION ....... = 7.8 SWIG Configuration: SWIG generation disabled GIWS Configuration: GIWS generation disabled Libtool config: objext .............. = o libext (static) ..... = a shrext_cmds ......... = .so exeext .............. = Compilation paths: srcdir .............. = . srcdir_full ......... = /Produits/tmp/nicolas/unix/scilab-5.0.2 builddir ............ = /Produits/tmp/nicolas/unix/scilab-5.0.2 Platform informations: host ........... = sparc-sun-solaris2.9 host_cpu ....... = sparc host_vendor .... = sun host_os ... .... = solaris2.9 hostname ....... = calc-gen5-ci CPU 64 bits .... = false Options used to compile and link: prefix ......... = /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2 localedir ...... = ${datarootdir}/locale VERSION ........ = 5 CC ............. = gcc CFLAGS ......... = -O2 -DNDEBUG -DSVR4 -DSYSV -Dsolaris -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ PCFLAGS ........ = DEFS ........... = -DHAVE_CONFIG_H LD ............. = /Produits/publics/sparc.SunOS.5.9/binutils/2.18/bin/ld LDFLAGS ........ = LIBS ........... = -L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib -L/Produits/publics/sparc.SunOS.5.9/ggettext/0.17/lib -L/Produits/publics/sparc.SunOS.5.9/ncurses/5.6/lib CXX ............ = g++ CXXFLAGS ....... = -g -O2 -DNDEBUG -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ F77 ............ = gfortran FFLAGS ......... = -L/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib -lgfortranbegin -lgfortran -lm -DNDEBUG -I$(top_srcdir)/modules/core/includes/ F77_LDFLAGS .... = TERMCAP_LIB .... = -lncurses -----Message d'origine----- De : Vergnes Nicolas [mailto:nicolas.vergnes at steria.cnes.fr] Envoy? : vendredi 10 octobre 2008 08:17 ? : dev at lists.scilab.org Objet : RE: [Scilab-Dev] Build scilab 5.0.2 on Solaris 9 Yes Ncurses 5.6 /bin on PATH and /lib on LD_LIBRARY_PATH But i dont have put /include on the C_INCLUDE_PATH is it needed ? tx -----Message d'origine----- De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part de Jonathan Blanchard Envoy? : jeudi 9 octobre 2008 15:44 ? : dev at lists.scilab.org Objet : Re: [Scilab-Dev] Build scilab 5.0.2 on Solaris 9 Do you have ncurses installed? Jonathan Blanchard On Thu, Oct 9, 2008 at 4:27 AM, Vergnes Nicolas wrote: > Hello, > > I'm trying to build scilab 5.0.2 on a Solaris 9 Sparc > > My configure is : > LIBS="-L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib" \ > FFLAGS="-L/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib > -lgfortranbegin -lgfortran -lm" \ > ./configure --prefix=/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2 > --with-gcc --with-gnu-ld --with-gfortran --without-ocaml > --with-install-help-xml --enable-build-help > --enable-build-localization \ > --with-tcl-include=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/inclu > de > \ > --with-tcl-library=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib \ > --with-tk-include=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/includ > e > \ > --with-tk-library=/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib \ > --with-matio-library=/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/li > b > \ > --with-matio-include=/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/in > cl > ude > > After more than one hour of compiling, this error msg appear, what > could be the problem? > Thanks for your help. > > Error msg : > [...] > jar: > [jar] Building jar: > /nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/modules/javasci/jar/javasci. > jar > > BUILD SUCCESSFUL > Total time: 2 seconds > make[2]: Leaving directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/modules/javasci' > make[1]: Leaving directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/modules' > Making all in contrib > make[1]: Entering directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/contrib' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2/contrib' > make[1]: Entering directory > `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2' > gcc -DHAVE_CONFIG_H -I. -I./modules/core/includes -O2 -DNDEBUG > -DSVR4 -DSYSV -Dsolaris -I./libs/MALLOC/includes/ > -I./modules/localization/includes/ -MT scilab_bin-main_linux.o -MD -MP > -MF .deps/scilab_bin-main_linux.Tpo -c -o scilab_bin-main_linux.o > `test -f './modules/core/src/c/main_linux.c' || echo > './'`./modules/core/src/c/main_linux.c > mv -f .deps/scilab_bin-main_linux.Tpo .deps/scilab_bin-main_linux.Po > /bin/bash ./libtool --tag=CC --mode=link gcc -O2 -DNDEBUG -DSVR4 > -DSYSV -Dsolaris -I./libs/MALLOC/includes/ > -I./modules/localization/includes/ -o scilab-bin > scilab_bin-main_linux.o ./modules/libscilab.la > ./modules/shell/libscishell.la > ./modules/localization/libscilocalization.la > ./modules/core/libscicore.la > -L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib > mkdir .libs > gcc -O2 -DNDEBUG -DSVR4 -DSYSV -Dsolaris -I./libs/MALLOC/includes/ > -I./modules/localization/includes/ -o .libs/scilab-bin > scilab_bin-main_linux.o ./modules/.libs/libscilab.so > -L/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib -L/usr/lib > -L/Produits/publics/sparc.SunOS.5.9/zlib/1.2.3/lib > -L/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/double/.libs/libscidou > bl > e.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/boolean/.libs/libscibo > ol ean.so -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc > -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client > -L/Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_thr > ea ds -L/Produits/publics/sparc.SunOS.5.9/tcltk/8.5.4/lib > -L/usr/openwin/lib > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphic_export/.libs/l > ib > scigraphic_export.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/interpolation/.libs/li > bs > ciinterpolation.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/signal_processing/.lib > s/ > libscisignal_processing.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/special_functions/.lib > s/ > libscispecial_functions.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/statistics/.libs/libsc > is > tatistics.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/windows_tools/.libs/li > bs > ciwindows_tools.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/pvm/.libs/libscipvm.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/sparse/.libs/libscispa > rs > e.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/io/.libs/libsciio.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/console/.libs/libscico > ns > ole.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/shell/.libs/libscishell. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/completion/.libs/libsc > ic > ompletion.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/sound/.libs/libscisound. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/helptools/.libs/libsci > he > lptools.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/fftw/.libs/libscifftw. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/umfpack/.libs/libscium > fp > ack.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/jvm/.libs/libscijvm.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/scicos/.libs/libscisci > co > s.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/intersci/.libs/libscii > nt > ersci.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/time/.libs/libscitime. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/scicos/.libs/libscisun > di > als.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/scicos_blocks/.libs/li > bs > ciscicos_blocks.so -lrt > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphics/.libs/libscig > ra > phics.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/tclsci/.libs/libscitcl > sc > i.so -ltk8.5 -ltcl8.5 -ldl > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/gui/.libs/libscigui.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/renderer/.libs/libscir > en > derer.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/polynomials/.libs/libs > ci > polynomials.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/cacsd/.libs/libscicacsd. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/mexlib/.libs/libmx.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/mexlib/.libs/libmat.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/differential_equations/. > libs/libscidifferential_equations.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/mexlib/.libs/libmex.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/data_structures/.libs/ > li > bscidata_structures.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/integer/.libs/libsciin > te > ger.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/fileio/.libs/libscifil > ei > o.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/linear_algebra/.libs/l > ib > scilinear_algebra.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/dynamic_link/.libs/lib > sc > idynamic_link.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/dynamiclibrary/.libs/libs > ci > dynamiclibrary.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/string/.libs/libscistr > in g.so > /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib/libpcreposix.so > /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib/libpcre.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/elementary_functions/. > li > bs/libscielementary_functions.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/arnoldi/.libs/libsciar > no > ldi.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/hashtable/.libs/libscihas > ht > able.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/doublylinkedlist/.libs/li > bs > cidoublylinkedlist.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/libst/.libs/libscilibst.s > o > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/lapack/.libs/libscilapack > .s o > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/blas/.libs/libsciblas.so > ./modules/shell/.libs/libscishell.so -lcurses > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/action_binding/.libs/l > ib > sciaction_binding.so > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/history_manager/.libs/ > li > bscihistory_manager.so > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libstdc++.so > ./modules/localization/.libs/libscilocalization.so -ljava -lverify > -ljvm -lhpi > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/core/.libs/libscicore. > so > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/MALLOC/.libs/libscimalloc > .s > o > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/output_stream/.libs/li > bs cioutput_stream.so ./modules/core/.libs/libscicore.so > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libgfortran.so -lxml2 > -lz -lpthread -lm -lsocket -lnsl -Wl,--rpath > -Wl,/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib/scilab > -Wl,--rpath -Wl,/Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib > -Wl,--rpath -Wl,/Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so: undefined reference to `libintl_bindtextdomain' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so: undefined reference to `libiconv' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/double/.libs/libscidou > bl > e.so: undefined reference to `lround' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so: undefined reference to `libintl_dgettext' > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/lapack/.libs/libscilapack > .s > o: undefined reference to `lroundf' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so: undefined reference to `libiconv_close' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so: undefined reference to `libiconv_open' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so: undefined reference to `libintl_textdomain' > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphic_export/.libs/l > ib > scigraphic_export.so: undefined reference to `libintl_gettext' > make[1]: *** [scilab-bin] Error 1 > make[1]: Leaving directory `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2' > make: *** [all-recursive] Error 1 > > For example : > calc-gen5-ci:/Produits/tmp/nicolas/unix/scilab-5.0.2 $ ldd > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > sc > ilocalization.so > libjava.so => > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/libjava.so > libverify.so => > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/libverify.so > libjvm.so => > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client/libjvm. > so > libhpi.so => > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_threa > ds > /libhpi.so > libscicore.so.5 => > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/core/.libs/libscicore. > so > .5 > libscimalloc.so.5 => > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/MALLOC/.libs/libscimalloc > .s > o.5 > libscioutput_stream.so.5 => > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/output_stream/.libs/li > bs > cioutput_stream.so.5 > libc.so.1 => /usr/lib/libc.so.1 > libgcc_s.so.1 => > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libgcc_s.so.1 > libsocket.so.1 => /usr/lib/libsocket.so.1 > libnsl.so.1 => /usr/lib/libnsl.so.1 > libdl.so.1 => /usr/lib/libdl.so.1 > libsched.so.1 => /usr/lib/libsched.so.1 > libCrun.so.1 => /usr/lib/libCrun.so.1 > libm.so.1 => /usr/lib/libm.so.1 > libthread.so.1 => /usr/lib/libthread.so.1 > libgfortran.so.3 => > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib/libgfortran.so.3 > libxml2.so.2 => /usr/lib/libxml2.so.2 > libz.so.1 => /usr/lib/libz.so.1 > libpthread.so.1 => /usr/lib/libpthread.so.1 > libmp.so.2 => /usr/lib/libmp.so.2 > /usr/platform/SUNW,Sun-Fire-V890/lib/libc_psr.so.1 > > LD_LIBRARY_PATH is : > calc-gen5-ci:/Produits/tmp/nicolas/unix/scilab-5.0.2 $ se ld > _____LD_LIBRARY_PATH____ > /Produits/publics/sparc.SunOS.5.9/scilab/5.0.2/lib > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/client > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc/native_threa > ds /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/jre/lib/sparc > /Produits/publics/sparc.SunOS.5.9/jdk/1.5.0/lib > /Produits/publics/sparc.SunOS.5.9/ncurses/5.6/lib > /Produits/publics/sparc.SunOS.5.9/gcc/4.3.2/lib > /Produits/publics/sparc.SunOS.5.9/gmp/4.2.4/lib > /Produits/publics/sparc.SunOS.5.9/mpfr/2.3.2/lib > /Produits/publics/sparc.SunOS.5.9/ggettext/0.17/lib === here is > libintl.so -> libintl.so.8.0.2 /Produits/publics/sparc.SunOS.5.9/lib > /usr/local/lib ==== here is libiconv.so.2 /usr/lib /usr/ccs/lib > /usr/ucblib /usr/dt/lib /usr/openwin/lib > > > > From sylvestre.ledru at scilab.org Fri Oct 10 11:23:19 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 10 Oct 2008 11:23:19 +0200 Subject: [Scilab-Dev] Build scilab 5.0.2 on Solaris 9 In-Reply-To: References: Message-ID: <1223630599.28352.106.camel@korcula.inria.fr> Hello Nicolas, The interesting part of your error message is here: > > ilocalization.so: undefined reference to `libintl_bindtextdomain' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > > sc > > ilocalization.so: undefined reference to `libiconv' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/double/.libs/libscidou > > bl > > e.so: undefined reference to `lround' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > > sc > > ilocalization.so: undefined reference to `libintl_dgettext' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/lapack/.libs/libscilapack > > .s > > o: undefined reference to `lroundf' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > > sc > > ilocalization.so: undefined reference to `libiconv_close' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > > sc > > ilocalization.so: undefined reference to `libiconv_open' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/lib > > sc > > ilocalization.so: undefined reference to `libintl_textdomain' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphic_export/.libs/l > > ib > > scigraphic_export.so: undefined reference to `libintl_gettext' Basically, that means that it cannot find the internationalization library(ies). Under Linux, they are provided with the libc out of the box. Under Solaris 9, you may have to explicitly link against it. (I don't have this issue with Solaris 10). Sylvestre From sylvestre.ledru at scilab.org Mon Oct 13 16:28:54 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 13 Oct 2008 16:28:54 +0200 Subject: Problem with the graphic in Scilab 5.0 Message-ID: <1223908134.18230.115.camel@korcula.inria.fr> Hello, I am writing a page on the Scilab Wiki trying to explain where the problem comes from, where it happens and how to fix it (thanks to a crappy workaround). The URL is the following: http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0 Don't hesitate to report other workarounds or ideas. Sylvestre From fvogelnew1 at free.fr Mon Oct 13 23:31:53 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Mon, 13 Oct 2008 23:31:53 +0200 Subject: and idea for the development of Scipad In-Reply-To: <48E381B9.4030306@broadpark.no> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> Message-ID: <48F3BE49.5030104@free.fr> Hi all, After having discussed Torbj?rn's proposal first on the dev list, we followed up off the dev list and Torbj?rn sent me a piece of code to begin integration with Scipad. Now is time to sum it all up I think. Torbj?rn Pettersen said on 01/10/2008 15:57: > fvogelnew1 at free.fr skrev: >> I can offer to do it for you if you send me your current files. >> > That is an offer I will not turn down :-) I started from the code you provided. I have now a working solution but I didn't commit yet because of licensing issues (see details below). For your information I modified what you sent me in the following ways: 1. Changed the shortcut in the file menu since letter c is already used for the Close command. I selected letter d since actually there is no other choice left in that menu. 2. Updated localization for the French language. 3. Factorized proc helpskeleton and proc helpfromsci into a common proc createhelpfile {whatkind} 4. About making this work with files located anywhere on the disk, and even files not yet saved. As said in previous emails, this can indeed be done and I have an implementation for this. However, this implementation required non negligible gymnastics to make everything transparent to the user and not letting a temporary leftover file on disk. Nevertheless, I think it's now working and reasonably clean. Now the real issue I see: 5. I have placed help_from_sci.sci in SCI/modules/helptools/macros and the corresponding help file in SCI/modules/helptools/help/en_US I really believe this function belongs to the help module rather than to the Scipad module. However, this poses a problem with respect to the license. You have selected GPL for your files, but the help module is licensed under the Cecill license. I don't know whether it's possible to add a GPL'ed macro inside a Cecill module. ----> *Opteam, please advise on this.* Fallback solution #1: I could integrate your help_from_sci.* files in the Scipad module, which is GPL. But as said above I really think that functionally speaking they belong to the help module. Fallback solution #2: Would you be willing to change the license of your files to the Cecill license? Side note: since your function help_from_sci is going to be integrated in Scilab itself, I think removing it from your toolbox would be good. Currently I think the only remaining issue before committing in trunk is the license. For this I need your comments and the opteam statement as well. Thanks, Francois From sylvestre.ledru at inria.fr Mon Oct 13 23:47:49 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Mon, 13 Oct 2008 23:47:49 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F3BE49.5030104@free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> Message-ID: <1223934469.3427.61.camel@zlarin> Hello, > I started from the code you provided. I have now a working solution > but I didn't commit yet because of licensing issues (see details below). I see an other small problem before :) A SEP should have been rewritten before. I know there is no guidelines for this now but having the same kind of SEP that we did before would be great for the integration of this new function. > Now the real issue I see: > > 5. I have placed help_from_sci.sci in SCI/modules/helptools/macros and > the corresponding help file in SCI/modules/helptools/help/en_US > I really believe this function belongs to the help module rather than > to the Scipad module. > > However, this poses a problem with respect to the license. You have > selected GPL for your files, but the help module is licensed under the > Cecill license. I don't know whether it's possible to add a GPL'ed > macro inside a Cecill module. > > ----> *Opteam, please advise on this.* > > Fallback solution #1: I could integrate your help_from_sci.* files in > the Scipad module, which is GPL. But as said above I really think that > functionally speaking they belong to the help module. > > Fallback solution #2: Would you be willing to change the license of > your files to the Cecill license? Except if Torbj?rn refuses, that would be the best way to go. Even if GPL & CeCILL are compatible, I prefer to keep as much as possible a consistency in the module. Sylvestre From fvogelnew1 at free.fr Tue Oct 14 02:14:02 2008 From: fvogelnew1 at free.fr (=?UTF-8?B?RnJhbsOnb2lzIFZvZ2Vs?=) Date: Tue, 14 Oct 2008 02:14:02 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <1223934469.3427.61.camel@zlarin> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> Message-ID: <48F3E44A.1090004@free.fr> Sylvestre Ledru said on 13/10/2008 23:47: > A SEP should have been rewritten before. I know there is no guidelines > for this now but having the same kind of SEP that we did before would be > great for the integration of this new function. Attached and committed, as a first draft. Francois -------------- next part -------------- A non-text attachment was scrubbed... Name: SEP_9_scipad_create_help_from_sci.pdf Type: application/pdf Size: 23034 bytes Desc: not available URL: From nicolas.vergnes at steria.cnes.fr Tue Oct 14 15:26:02 2008 From: nicolas.vergnes at steria.cnes.fr (Vergnes Nicolas) Date: Tue, 14 Oct 2008 15:26:02 +0200 Subject: [Scilab-Dev] Build scilab 5.0.2 on Solaris 9 Message-ID: Hello I passed the error by using CFLAGS="... -liconv -lintl..." But I have this error : /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/double/.libs/libscidouble.so: undefined reference to `lround' /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/lapack/.libs/libscilapack.so: undefined reference to `lroundf' make[1]: *** [scilab-bin] Error 1 make[1]: Leaving directory `/nfs/Produits/tmp/nicolas/unix/scilab-5.0.2' make: *** [all-recursive] Error 1 It dont found lround and lroundf in -I think- libm.so.1 ? Thank you again, Nicolas Vergnes, -----Message d'origine----- De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] Envoy? : vendredi 10 octobre 2008 11:23 ? : dev at lists.scilab.org Objet : RE: [Scilab-Dev] Build scilab 5.0.2 on Solaris 9 Hello Nicolas, The interesting part of your error message is here: > > ilocalization.so: undefined reference to `libintl_bindtextdomain' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/l > > ib > > sc > > ilocalization.so: undefined reference to `libiconv' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/double/.libs/libscid > > ou > > bl > > e.so: undefined reference to `lround' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/l > > ib > > sc > > ilocalization.so: undefined reference to `libintl_dgettext' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/libs/lapack/.libs/libscilapa > > ck > > .s > > o: undefined reference to `lroundf' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/l > > ib > > sc > > ilocalization.so: undefined reference to `libiconv_close' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/l > > ib > > sc > > ilocalization.so: undefined reference to `libiconv_open' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/localization/.libs/l > > ib > > sc > > ilocalization.so: undefined reference to `libintl_textdomain' > > /Produits/tmp/nicolas/unix/scilab-5.0.2/modules/graphic_export/.libs > > /l > > ib > > scigraphic_export.so: undefined reference to `libintl_gettext' Basically, that means that it cannot find the internationalization library(ies). Under Linux, they are provided with the libc out of the box. Under Solaris 9, you may have to explicitly link against it. (I don't have this issue with Solaris 10). Sylvestre From torbjorn.pettersen at broadpark.no Tue Oct 14 16:04:55 2008 From: torbjorn.pettersen at broadpark.no (=?ISO-8859-1?Q?Torbj=F8rn_Pettersen?=) Date: Tue, 14 Oct 2008 16:04:55 +0200 Subject: and idea for the development of Scipad In-Reply-To: <48F3BE49.5030104@free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> Message-ID: <48F4A707.3090604@broadpark.no> Fran?ois Vogel skrev: > Hi all, > > After having discussed Torbj?rn's proposal first on the dev list, we > followed up off the dev list and Torbj?rn sent me a piece of code to > begin integration with Scipad. > > Now is time to sum it all up I think. > ... > I started from the code you provided. I have now a working solution > but I didn't commit yet because of licensing issues (see details below). > > For your information I modified what you sent me in the following ways: > > 1. Changed the shortcut in the file menu since letter c is already > used for the Close command. I selected letter d since actually there > is no other choice left in that menu. > > 2. Updated localization for the French language. Is this related to the help_from_sci code or just the Scipad menu option? > > 3. Factorized proc helpskeleton and proc helpfromsci into a common > proc createhelpfile {whatkind} > > > 4. About making this work with files located anywhere on the disk, and > even files not yet saved. > As said in previous emails, this can indeed be done and I have an > implementation for this. > However, this implementation required non negligible gymnastics to > make everything transparent to the user and not letting a temporary > leftover file on disk. > Nevertheless, I think it's now working and reasonably clean. > > > Now the real issue I see: > > 5. I have placed help_from_sci.sci in SCI/modules/helptools/macros and > the corresponding help file in SCI/modules/helptools/help/en_US > I really believe this function belongs to the help module rather than > to the Scipad module. > > However, this poses a problem with respect to the license. You have > selected GPL for your files, but the help module is licensed under the > Cecill license. I don't know whether it's possible to add a GPL'ed > macro inside a Cecill module. > > ----> *Opteam, please advise on this.* > > Fallback solution #1: I could integrate your help_from_sci.* files in > the Scipad module, which is GPL. But as said above I really think that > functionally speaking they belong to the help module. > > Fallback solution #2: Would you be willing to change the license of > your files to the Cecill license? I see no problem in changing the license for help_from_sci to the Cecill license. Sounds like that is the easiest solution for everyone. > > Side note: since your function help_from_sci is going to be integrated > in Scilab itself, I think removing it from your toolbox would be good. Agree. Actually I'm working on a revised version of the toolbox (toolbox_tools) which has made me add an additional feature to help_from_sci(). It can now generate .dem.sce files based on the code from the Examples section in the head_comments section of the .sci source file. In short: help_from_sci('fun_source.sci','helpdir','demosdir') will generate helpdir/fun_source.xml as before, and will also generate demosdir\fun_source.dem.sce based on the Examples section in the head_comments of the fun_source.sci. The new version should not affect your implementation, since nothing is changed if you omit the third input parameter (demosdir). > > Currently I think the only remaining issue before committing in trunk > is the license. For this I need your comments and the opteam statement > as well. > > Thanks, > Francois > Best regards, -Torbj?rn. -- Torbj?rn Pettersen tlf. +47 926 52 944 From torbjorn.pettersen at broadpark.no Tue Oct 14 16:47:25 2008 From: torbjorn.pettersen at broadpark.no (=?UTF-8?B?VG9yYmrDuHJuIFBldHRlcnNlbg==?=) Date: Tue, 14 Oct 2008 16:47:25 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F3E44A.1090004@free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> Message-ID: <48F4B0FD.30303@broadpark.no> Fran?ois Vogel skrev: > Sylvestre Ledru said on 13/10/2008 23:47: >> A SEP should have been rewritten before. I know there is no guidelines >> for this now but having the same kind of SEP that we did before would be >> great for the integration of this new function. > > Attached and committed, as a first draft. Regarding Compatibility.. I actually developed help_from_sci under scilab 4.2 so by merging the initial version with the new one we could add backward compatibility. But I suspect that is something very few users will have any use of. -Torbj?rn. > > Francois > -- Torbj?rn Pettersen Sm?rblomstveien 35A 7050 Trondheim tlf. +47 926 52 944 From sylvestre.ledru at scilab.org Wed Oct 15 13:45:14 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 15 Oct 2008 13:45:14 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F3E44A.1090004@free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> Message-ID: <1224071114.18336.80.camel@korcula.inria.fr> Le mardi 14 octobre 2008 ? 02:14 +0200, Fran?ois Vogel a ?crit : > Sylvestre Ledru said on 13/10/2008 23:47: > > A SEP should have been rewritten before. I know there is no guidelines > > for this now but having the same kind of SEP that we did before would be > > great for the integration of this new function. > > Attached and committed, as a first draft. Short comments: "Detailed reference implementation" If it is less than one or two pages, I think that you can put the source in the doc. I think it could be interesting to show an header containing some comments/description in the SEP itself. Especially to show the syntax itself. Otherwise, nice work! Sylvestre From sylvestre.ledru at scilab.org Wed Oct 15 14:02:19 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 15 Oct 2008 14:02:19 +0200 Subject: Git migration Message-ID: <1224072139.18336.97.camel@korcula.inria.fr> Hello, After a little network issue, we are ready to migrate to GIT. We will close the SVN tomorrow. For those who signed the dev agreement (yep, we are running late on this), if you want to have the write permissions on the master git, could you send an email with your public key to Pierre Marechal and me (in private). Under Linux/Unix/Mac OS X, the command is: [$SHELL] ssh-keygen -t rsa Keys are generated in .ssh/, send us the id_rsa.pub (not the other one which is the private one). If you are running a OS from the Seattle area (too bad for you), you can run the same command thanks to copssh. More information: http://wiki.scilab.org/GIT/GIT_under_Windows The viewvc [1] will remain online. Sylvestre [1] http://viewvc.scilab.org/bin/cgi/viewvc.cgi/ From fvogelnew1 at free.fr Wed Oct 15 19:58:41 2008 From: fvogelnew1 at free.fr (fvogelnew1 at free.fr) Date: Wed, 15 Oct 2008 19:58:41 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F4A707.3090604@broadpark.no> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <48F4A707.3090604@broadpark.no> Message-ID: <1224093521.48f62f5107d58@imp.free.fr> Selon Torbj?rn Pettersen : > > 2. Updated localization for the French language. > Is this related to the help_from_sci code or just the Scipad menu option? Only Scipad menu option. help_from_sci localization will use the Scilab localization sicne it will be in a different module than Scipad. > I see no problem in changing the license for help_from_sci to the Cecill > license. Sounds like that is the easiest solution for everyone. Probably, yes. Thanks for this change. > Actually I'm working on a revised version of the toolbox (toolbox_tools) > which has made me add an additional feature to help_from_sci(). > It can now generate .dem.sce files based on the code from the Examples > section in the head_comments section of the .sci source file. > In short: > help_from_sci('fun_source.sci','helpdir','demosdir') > will generate helpdir/fun_source.xml as before, and will also generate > demosdir\fun_source.dem.sce based on the > Examples section in the head_comments of the fun_source.sci. > > The new version should not affect your implementation, since nothing is > changed if you omit the third input parameter (demosdir). Which is what I will do. No plan for using the third parameter from Scipad. Cheers, Francois From fvogelnew1 at free.fr Wed Oct 15 20:00:21 2008 From: fvogelnew1 at free.fr (fvogelnew1 at free.fr) Date: Wed, 15 Oct 2008 20:00:21 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F4B0FD.30303@broadpark.no> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F4B0FD.30303@broadpark.no> Message-ID: <1224093621.48f62fb5c109f@imp.free.fr> Selon Torbj??rn Pettersen : > Regarding Compatibility.. > I actually developed help_from_sci under scilab 4.2 so by merging the > initial version with the new one we could add backward compatibility. Yes, certainly. However, while you developed it with 4.2 it can only be useful in a 5.x environment since it creates help files that are compliant with the new docbook template. > But I suspect that is something very few users will have any use of. Agreed. Francois From fvogelnew1 at free.fr Wed Oct 15 20:06:13 2008 From: fvogelnew1 at free.fr (fvogelnew1 at free.fr) Date: Wed, 15 Oct 2008 20:06:13 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <1224071114.18336.80.camel@korcula.inria.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <1224071114.18336.80.camel@korcula.inria.fr> Message-ID: <1224093973.48f63115a9bb6@imp.free.fr> Selon Sylvestre Ledru : > Short comments: > "Detailed reference implementation" > If it is less than one or two pages, I think that you can put the source > in the doc. I'll try to do this, OK. Please give me some days since I'm currently travelling abroad. > I think it could be interesting to show an header containing some > comments/description in the SEP itself. Especially to show the syntax > itself. Agreed. Indeed it's a good idea. I will update the SEP accordingly. > Otherwise, nice work! Which brought a lot of comments for a lot of people, as you could notice. Anyway, what's next? Here as you know rules are missing (SEP #1, you remember?). What's the process once the SEP is in draft state and there is not much more to comment on it? Should I just acknowledge there was a few nods of agreement around there and commit the change tonight before SVN gets closed for GIT migration(*)? Thanks, Francois From fvogelnew1 at free.fr Wed Oct 15 20:07:55 2008 From: fvogelnew1 at free.fr (fvogelnew1 at free.fr) Date: Wed, 15 Oct 2008 20:07:55 +0200 Subject: [Scilab-Dev] Git migration In-Reply-To: <1224072139.18336.97.camel@korcula.inria.fr> References: <1224072139.18336.97.camel@korcula.inria.fr> Message-ID: <1224094075.48f6317b3a9d8@imp.free.fr> Thanks for the information, despite notice is short. Can you tell how long you will close SVN? Did you follow YC's suggestion to have both SVN and GIT at the same time? Also, how are we supposed to merge our local versions (with local uncommitted changes) to the new GIT tree? Francois Selon Sylvestre Ledru : > Hello, > > After a little network issue, we are ready to migrate to GIT. > > We will close the SVN tomorrow. > > For those who signed the dev agreement (yep, we are running late on > this), if you want to have the write permissions on the master git, > could you send an email with your public key to Pierre Marechal > and me (in private). > > Under Linux/Unix/Mac OS X, the command is: > [$SHELL] ssh-keygen -t rsa > Keys are generated in .ssh/, send us the id_rsa.pub (not the other one > which is the private one). > > If you are running a OS from the Seattle area (too bad for you), you can > run the same command thanks to copssh. More information: > http://wiki.scilab.org/GIT/GIT_under_Windows > > The viewvc [1] will remain online. > > Sylvestre > [1] http://viewvc.scilab.org/bin/cgi/viewvc.cgi/ From fvogelnew1 at free.fr Wed Oct 15 20:22:29 2008 From: fvogelnew1 at free.fr (fvogelnew1 at free.fr) Date: Wed, 15 Oct 2008 20:22:29 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F621FD.3050008@broadpark.no> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F621FD.3050008@broadpark.no> Message-ID: <1224094949.48f634e55165e@imp.free.fr> Selon Torbj??rn Pettersen : > Ok - enclosed is a new CECILL version of help_from_sci. Very good. I'll try it. > I've included a Scilab-version-5 check, which returns an error on older > versions of Scilab. Why not, but I think it's useless though it doesn't harm. However, such a check needs anyway to be included in Scipad itself in order to prevent launching help_from_sci in a Scilab-4.x or Scilab-gtk environment (where it is not included and it's pointless to include it). Enrico and myself try to take care of keeping Scipad as backportable as possible, this has proven to be very useful in the past (many years long development cycle before reaching Scilab 5, therefore we released backported versions, also to let users use the debugger - still broken in Scilab 5, and a few other reasons). I'll add this version check at the Scipad level. Sorry if you misunderstood what I wrote in the SEP about version checking, this was mostly a reminder for myself. > The current version contains the option I mentioned in a previous mail > with respect to generation of demo files based on the code from the > Examples > section in the help file. It seemed like a natural extension of the > help_from_sci idea. > Anyway I don't think it should interfere with your scipad implementation. I don't think so either, but I will check in practice. > A remaining point to do is to include a check for the existence of the > target .xml or .dem.sce files. > At this point help_from_sci will happily overwrite any existing target > files, which is rather nasty... No, not when called from Scipad. This is already handled (user is asked for overwrite or open the existing target file). If you want to add such a feature in your code, for the case it gets called from Scilab directly, please feel free to do it (slow time approach, no rush). Thanks again for your contribution. Francois From ee05kkm2 at brunel.ac.uk Wed Oct 15 18:22:22 2008 From: ee05kkm2 at brunel.ac.uk (Karima Miskeenmal) Date: Wed, 15 Oct 2008 17:22:22 +0100 Subject: Scilab Message-ID: <7F8A5E7558A48D40BF8F697C06AB9A429977BD@UXEXMBU115.academic.windsor> Hi, i am student of Computer system Engineering at Brunel University UK, currently i am doing a project comparison of Matlab and Scilab. the aim is to use Scialb rather than Matlab. so please provide me the following information or links. Large Matrix in Matlab and Scilab Common toolboxes can Scilab be used instead of Matlab at Universities? Why there is less resources aviliable for Scilab? thanks From torbjorn.pettersen at broadpark.no Wed Oct 15 19:01:49 2008 From: torbjorn.pettersen at broadpark.no (=?UTF-8?B?VG9yYmrDuHJuIFBldHRlcnNlbg==?=) Date: Wed, 15 Oct 2008 19:01:49 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F3E44A.1090004@free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> Message-ID: <48F621FD.3050008@broadpark.no> Hi! Ok - enclosed is a new CECILL version of help_from_sci. I've included a Scilab-version-5 check, which returns an error on older versions of Scilab. The current version contains the option I mentioned in a previous mail with respect to generation of demo files based on the code from the Examples section in the help file. It seemed like a natural extension of the help_from_sci idea. Anyway I don't think it should interfere with your scipad implementation. A remaining point to do is to include a check for the existence of the target .xml or .dem.sce files. At this point help_from_sci will happily overwrite any existing target files, which is rather nasty... Regards, -Torbj?rn. -- Torbj?rn Pettersen tlf. +47 926 52 944 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: help_from_sci.sci URL: From BlanchardJ at ieee.org Wed Oct 15 20:33:45 2008 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Wed, 15 Oct 2008 15:33:45 -0300 Subject: [Scilab-Dev] Re:Scilab In-Reply-To: <7F8A5E7558A48D40BF8F697C06AB9A429977BD@UXEXMBU115.academic.windsor> References: <7F8A5E7558A48D40BF8F697C06AB9A429977BD@UXEXMBU115.academic.windsor> Message-ID: I do not have specific link or documentation available for you. But on the other hand I survived my entire engineering degree using Scilab while everybody else was using Matlab. On this purpose there are some great starting resources in the books and articles sections of the Scilab website. Jonathan Blanchard On Wed, Oct 15, 2008 at 1:22 PM, Karima Miskeenmal wrote: > Hi, > i am student of Computer system Engineering at Brunel University UK, currently i am doing a project comparison of Matlab and Scilab. the aim is to use Scialb rather than Matlab. so please provide me the following information or links. > > Large Matrix in Matlab and Scilab > Common toolboxes > can Scilab be used instead of Matlab at Universities? > Why there is less resources aviliable for Scilab? > > > thanks > From fvogelnew1 at free.fr Wed Oct 15 23:53:29 2008 From: fvogelnew1 at free.fr (fvogelnew1 at free.fr) Date: Wed, 15 Oct 2008 23:53:29 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <1224094949.48f634e55165e@imp.free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F621FD.3050008@broadpark.no> <1224094949.48f634e55165e@imp.free.fr> Message-ID: <1224107609.48f66659eae44@imp.free.fr> Selon fvogelnew1 at free.fr: > Selon Torbj??rn Pettersen : > >> Ok - enclosed is a new CECILL version of help_from_sci. > > Very good. > I'll try it. For me this new version spits: -->help_from_sci("D:/Scilab/FVtests/tp_toolbox/toolbox_creator.sci","D:/Scilab/FVtests/tp_toolbox") D:\Scilab\FVtests\tp_toolbox\D:/Scilab/FVtests/tp_toolbox/toolbox_creator.xml !--error 10000 mputl: Cannot open file D:\Scilab\FVtests\tp_toolbox\D:/Scilab/FVtests/tp_toolbox/toolbox_creator.xml. at line 32 of function mputl called by : line 298 of function help_from_sci called by : help_from_sci("D:/Scilab/FVtests/tp_toolbox/toolbox_creator.sci","D:/Scilab/FVtests/tp_toolbox") This happens from Scilab, not even from Scipad. Did you change something with respect to the fact that full pathnames should be passed to help_from_sci perhaps? Previous version worked OK with the above command. > I'll add this version check at the Scipad level.* Done. >> Anyway I don't think it should interfere with your scipad implementation. Unfortunately apparently it does. What was working with the previous version is now broken. Any idea? I didn't take a close look at the changes, they are quite numerous between the two versions. Cheers, Francois From torbjorn.pettersen at broadpark.no Thu Oct 16 22:29:39 2008 From: torbjorn.pettersen at broadpark.no (=?ISO-8859-1?Q?Torbj=F8rn_Pettersen?=) Date: Thu, 16 Oct 2008 22:29:39 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <1224107609.48f66659eae44@imp.free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F621FD.3050008@broadpark.no> <1224094949.48f634e55165e@imp.free.fr> <1224107609.48f66659eae44@imp.free.fr> Message-ID: <48F7A433.3060803@broadpark.no> > For me this new version spits: > > -->help_from_sci("D:/Scilab/FVtests/tp_toolbox/toolbox_creator.sci","D:/Scilab/FVtests/tp_toolbox") > > D:\Scilab\FVtests\tp_toolbox\D:/Scilab/FVtests/tp_toolbox/toolbox_creator.xml > !--error 10000 > mputl: Cannot open file > D:\Scilab\FVtests\tp_toolbox\D:/Scilab/FVtests/tp_toolbox/toolbox_creator.xml. > at line 32 of function mputl called by : > line 298 of function help_from_sci called by : > help_from_sci("D:/Scilab/FVtests/tp_toolbox/toolbox_creator.sci","D:/Scilab/FVtests/tp_toolbox") > > > ... > Unfortunately apparently it does. What was working with the previous version is > now broken. > > Any idea? I didn't take a close look at the changes, they are quite numerous > between the two versions. > Sorry about that... The problem seems to be the use of "/" as file separator in your calling parameters in a dos environment where filesep() is "\". Try the enclosed version and see if it works better. I added a pathconvert(funname).. at line 187. It solved the problem on my system (windows). -- Torbj?rn Pettersen -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: help_from_sci.sci URL: From fvogelnew1 at free.fr Fri Oct 17 07:46:40 2008 From: fvogelnew1 at free.fr (fvogelnew1 at free.fr) Date: Fri, 17 Oct 2008 07:46:40 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F7A433.3060803@broadpark.no> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F621FD.3050008@broadpark.no> <1224094949.48f634e55165e@imp.free.fr> <1224107609.48f66659eae44@imp.free.fr> <48F7A433.3060803@broadpark.no> Message-ID: <1224222400.48f826c056289@imp.free.fr> Selon Torbj?rn Pettersen : > > Try the enclosed version and see if it works better. Indeed this third version does now work the same as version 1 as far as I can see in the limit of my implementation in Scipad (i.e. no use of the third parameter). Thanks for having cleared this problem. I'm now ready to commit all this, but I have received no answer from the opteam so far about when commit access will be restored nor about the acceptance process for SEPs (since they required a SEP). Unsure what I should do. In the past I just committed after discussing the new features with Enrico but without asking myself a lot of such questions. Now because they wanted a SEP and because SEP acceptance rules are missing we are simply stuck. Francois From c_korn at gmx.de Fri Oct 17 15:30:24 2008 From: c_korn at gmx.de (Christoph Korn) Date: Fri, 17 Oct 2008 15:30:24 +0200 Subject: Creating a debian package of Scilab 5.0.2 for Ubuntu 8.04: Segmentation fault Message-ID: <48F89370.9040105@gmx.de> Hello, unfortunately I did not find a debian package for the current 5.0.2 release. I took the 4.1.2 [1] package as a starting point. These [2] are the build dependencies. I had to take the libflexdock-java, libjogl-java, libjrosetta-java, libmatio0 and libskinlf-java packages from intrepid because they are not available in hardy. Finally this [3] is the debian/rules file I used for creating the package. After installing and typing "scilab" there just is a "Segmentation fault". Nothing more happens. [1] http://packages.ubuntu.com/hardy/scilab [2] http://nopaste.com/p/a3BdtwoKt/txt [3] http://nopaste.com/p/a3qeMGHT0/txt From sylvestre.ledru at scilab.org Fri Oct 17 15:30:30 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 17 Oct 2008 15:30:30 +0200 Subject: Git / Scilab Message-ID: <1224250230.18336.330.camel@korcula.inria.fr> Hello, A short message to let you know that the migration to git has gone well. It is now available here: git clone git://git.scilab.org/scilab We will send an email about the viewing tool when it is back online. Btw, since it is much easier to create "flavour of Scilab" to work independently with buddies until it is stable, ask us if you want to have your own. Sylvestre From sylvestre.ledru at scilab.org Fri Oct 17 15:42:37 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 17 Oct 2008 15:42:37 +0200 Subject: [Scilab-Dev] Creating a debian package of Scilab 5.0.2 for Ubuntu 8.04: Segmentation fault In-Reply-To: <48F89370.9040105@gmx.de> References: <48F89370.9040105@gmx.de> Message-ID: <1224250957.18336.342.camel@korcula.inria.fr> Hello Ohlala, next time, you should ask first ;) The current package of Scilab is managed by Debian Science. Files are here: Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/scilab/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/debian-science/packages/scilab/trunk/ The package is almost ready to be uploaded in Debian experimental (just waiting for the jeuclid package to be uploaded). There is just a small bug in a duplicate file in the scilab-data & scilab-doc packages. S Le vendredi 17 octobre 2008 ? 15:30 +0200, Christoph Korn a ?crit : > Hello, > unfortunately I did not find a debian package for the current 5.0.2 release. > > I took the 4.1.2 [1] package as a starting point. > > These [2] are the build dependencies. > I had to take the libflexdock-java, libjogl-java, > libjrosetta-java, libmatio0 and libskinlf-java packages > from intrepid because they are not available in hardy. > > Finally this [3] is the debian/rules file I used for > creating the package. > > After installing and typing "scilab" there just is > a "Segmentation fault". > Nothing more happens. > > [1] http://packages.ubuntu.com/hardy/scilab > [2] http://nopaste.com/p/a3BdtwoKt/txt > [3] http://nopaste.com/p/a3qeMGHT0/txt From sylvestre.ledru at scilab.org Fri Oct 17 15:53:13 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 17 Oct 2008 15:53:13 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <1224222400.48f826c056289@imp.free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F621FD.3050008@broadpark.no> <1224094949.48f634e55165e@imp.free.fr> <1224107609.48f66659eae44@imp.free.fr> <48F7A433.3060803@broadpark.no> <1224222400.48f826c056289@imp.free.fr> Message-ID: <1224251593.18336.356.camel@korcula.inria.fr> > > I'm now ready to commit all this, but I have received no answer from the opteam > so far about when commit access will be restored nor about the acceptance > process for SEPs (since they required a SEP). Git is now online. If you send your public key to Pierre, you will be able to commit it. > Unsure what I should do. In the past I just committed after discussing the new > features with Enrico but without asking myself a lot of such questions. Now > because they wanted a SEP and because SEP acceptance rules are missing we are > simply stuck. Go ahead for this function. By the way, it would be great to have unitary tests here. Sylvestre From fvogelnew1 at free.fr Fri Oct 17 19:30:50 2008 From: fvogelnew1 at free.fr (fvogelnew1 at free.fr) Date: Fri, 17 Oct 2008 19:30:50 +0200 Subject: [Scilab-Dev] Git migration In-Reply-To: <1224094075.48f6317b3a9d8@imp.free.fr> References: <1224072139.18336.97.camel@korcula.inria.fr> <1224094075.48f6317b3a9d8@imp.free.fr> Message-ID: <1224264650.48f8cbca20325@imp.free.fr> Hi, Is there some information somewhere about how to use the new GIT system? I mean something specifically targeted to using GIT for Scilab. I would have expected this page to be updated, but you didn't seem to have time to do so: http://www.scilab.org/download/index_download.php?page=SVN On the wiki I could only find this page explaining how to generate the key: http://wiki.scilab.org/GIT/GIT_under_Windows?highlight=%28GIT%29 This is fine but is not what I'm looking for. Also, a straightforward procedure about how to merge my local SVN changes into the new GIT system tree would be appreciated. Since your main interest in GIT (and Linus' main one too) is to ease merging (not branching, yes I watched Linus' show too), this must be easy. Please explain how to do it with GIT. Gving half a day notice before SVN closure, you must obviously have thought about it. Thanks, Francois Selon fvogelnew1 at free.fr: > Thanks for the information, despite notice is short. > > Can you tell how long you will close SVN? Did you follow YC's suggestion to > have > both SVN and GIT at the same time? > > Also, how are we supposed to merge our local versions (with local uncommitted > changes) to the new GIT tree? > > Francois > > > Selon Sylvestre Ledru : > > > Hello, > > > > After a little network issue, we are ready to migrate to GIT. > > > > We will close the SVN tomorrow. > > > > For those who signed the dev agreement (yep, we are running late on > > this), if you want to have the write permissions on the master git, > > could you send an email with your public key to Pierre Marechal > > and me (in private). > > > > Under Linux/Unix/Mac OS X, the command is: > > [$SHELL] ssh-keygen -t rsa > > Keys are generated in .ssh/, send us the id_rsa.pub (not the other one > > which is the private one). > > > > If you are running a OS from the Seattle area (too bad for you), you can > > run the same command thanks to copssh. More information: > > http://wiki.scilab.org/GIT/GIT_under_Windows > > > > The viewvc [1] will remain online. > > > > Sylvestre > > [1] http://viewvc.scilab.org/bin/cgi/viewvc.cgi/ > > From c_korn at gmx.de Fri Oct 17 21:10:13 2008 From: c_korn at gmx.de (Christoph Korn) Date: Fri, 17 Oct 2008 21:10:13 +0200 Subject: [Scilab-Dev] Creating a debian package of Scilab 5.0.2 for Ubuntu 8.04: Segmentation fault In-Reply-To: <1224250957.18336.342.camel@korcula.inria.fr> References: <48F89370.9040105@gmx.de> <1224250957.18336.342.camel@korcula.inria.fr> Message-ID: <48F8E315.1010804@gmx.de> An HTML attachment was scrubbed... URL: From c_korn at gmx.de Fri Oct 17 23:33:21 2008 From: c_korn at gmx.de (Christoph Korn) Date: Fri, 17 Oct 2008 23:33:21 +0200 Subject: [Scilab-Dev] Creating a debian package of Scilab 5.0.2 for Ubuntu 8.04: Segmentation fault In-Reply-To: <48F8E315.1010804@gmx.de> References: <48F89370.9040105@gmx.de> <1224250957.18336.342.camel@korcula.inria.fr> <48F8E315.1010804@gmx.de> Message-ID: <48F904A1.8040600@gmx.de> That was a false alarm. By accident I appended --without-javasci to configure which was the source of the issue. After removing it scilab-5.0.2 runs fine. Christoph Korn schrieb: > Sorry, but users mailing list did not seem appropriate. > > After appending --enable-build-localization to configure the > segfault did not disappear. [1] > > The problem seems to be that there is no german > translation for scilab. > > /usr/share/locale/zh_TW/LC_MESSAGES/scilab.mo > /usr/share/locale/ru_RU/LC_MESSAGES/scilab.mo > /usr/share/locale/fr_FR/LC_MESSAGES/scilab.mo > /usr/share/locale/zh_CN/LC_MESSAGES/scilab.mo > /usr/share/locale/en_US/LC_MESSAGES/scilab.mo > > [1] http://nopaste.com/p/aHHLQRc8F/txt > > Sylvestre Ledru schrieb: > > Hello > > > > Ohlala, next time, you should ask first ;) > > > > The current package of Scilab is managed by Debian Science. > > > > Files are here: > > Vcs-Svn: > > svn://svn.debian.org/svn/debian-science/packages/scilab/trunk/ > > Vcs-Browser: > > http://svn.debian.org/viewsvn/debian-science/packages/scilab/trunk/ > > > > The package is almost ready to be uploaded in Debian experimental (just > > waiting for the jeuclid package to be uploaded). > > There is just a small bug in a duplicate file in the scilab-data & > > scilab-doc packages. > > > > S > > > > > > Le vendredi 17 octobre 2008 ? 15:30 +0200, Christoph Korn a ?crit : > > > >> Hello, > >> unfortunately I did not find a debian package for the current 5.0.2 release. > >> > >> I took the 4.1.2 [1] package as a starting point. > >> > >> These [2] are the build dependencies. > >> I had to take the libflexdock-java, libjogl-java, > >> libjrosetta-java, libmatio0 and libskinlf-java packages > >> from intrepid because they are not available in hardy. > >> > >> Finally this [3] is the debian/rules file I used for > >> creating the package. > >> > >> After installing and typing "scilab" there just is > >> a "Segmentation fault". > >> Nothing more happens. > >> > >> [1] http://packages.ubuntu.com/hardy/scilab > >> [2] http://nopaste.com/p/a3BdtwoKt/txt > >> [3] http://nopaste.com/p/a3qeMGHT0/txt > >> > > > > > From fvogelnew1 at free.fr Sat Oct 18 01:01:28 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sat, 18 Oct 2008 01:01:28 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <1224250230.18336.330.camel@korcula.inria.fr> References: <1224250230.18336.330.camel@korcula.inria.fr> Message-ID: <48F91948.40406@free.fr> Sylvestre Ledru said on 17/10/2008 15:30: > A short message to let you know that the migration to git has gone well. > It is now available here: > git clone git://git.scilab.org/scilab Well, well, well... Not so easy. As you may know I'm mainly using Windows. Yes, that's perhaps sad, but that's life. I therefore searched for a way of using git on Windows. I have found two ways: - msysgit, which looks OK at first sight - git under cygwin I tried msysgit first. Installing the binaries worked flawlessly. But running Git Bash triggered issue 108: http://code.google.com/p/msysgit/issues/detail?id=108 I can't fix this. My home directory has a ? char in it, this was done ages ago and I can't change this (yes, I tried and this ended up in an incredible scramble in my computer I needed hours to fix). => Exit msysgit, too bad. The I tried git under cygwin. Also here installing git was easy. Then I tried the command you provide above. It spat: $ git clone git://git.scilab.org/scilab Initialized empty Git repository in /home/Francois/scilab/.git/ fatal: The remote end hung up unexpectedly Do I need an ssh key just to clone a repository? Would be a bit strange but maybe. I think it's needed for commit access only. Anyway, git under cygwin cannot be an option since I want to use git for compiling Scilab. And, guess what, this is not supported nor even possible, as far as I know in the current trunk. Scilab support on cygwin was removed a long time ago. => Exit git on cygwin So, what are the other options? Currently I can see no solution to go on with Scilab/Scipad development on Windows. What should I do? How do *you* manage to use git under Windows? Thanks, Francois From fvogelnew1 at free.fr Sat Oct 18 01:27:58 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sat, 18 Oct 2008 01:27:58 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <1224251593.18336.356.camel@korcula.inria.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F621FD.3050008@broadpark.no> <1224094949.48f634e55165e@imp.free.fr> <1224107609.48f66659eae44@imp.free.fr> <48F7A433.3060803@broadpark.no> <1224222400.48f826c056289@imp.free.fr> <1224251593.18336.356.camel@korcula.inria.fr> Message-ID: <48F91F7E.2030802@free.fr> Sylvestre Ledru said on 17/10/2008 15:53: > Git is now online. If you send your public key to Pierre, you will be > able to commit it. Will do once I can use git on windows (see other thread on this issue). > Go ahead for this function. Fine. More generally, what's going on with SEP#1? > By the way, it would be great to have > unitary tests here. You mean, for function help_from_sci, right? Not for the feature in Scipad I guess. Also an updated help file would be needed. The one I currently have is consistent with the very first version of help_from_sci. It does not deal with the new third argument. Both points left to the author of help_from_sci unless he really does not want to go ahead. Francois From sylvestre.ledru at scilab.org Sat Oct 18 02:34:59 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 18 Oct 2008 02:34:59 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <48F91948.40406@free.fr> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> Message-ID: <1224290099.3319.3.camel@zlarin> Le samedi 18 octobre 2008 ? 01:01 +0200, Fran?ois Vogel a ?crit : > Sylvestre Ledru said on 17/10/2008 15:30: > > A short message to let you know that the migration to git has gone well. > > It is now available here: > > git clone git://git.scilab.org/scilab > > Well, well, well... Not so easy. not that much :) > $ git clone git://git.scilab.org/scilab > Initialized empty Git repository in /home/Francois/scilab/.git/ > fatal: The remote end hung up unexpectedly It is a bug coming from git that we experienced today that we didn't have on the LAN. We will investigate next week on it. Sylvestre From ycollet at freesurf.fr Sat Oct 18 08:59:14 2008 From: ycollet at freesurf.fr (Collette Yann) Date: Sat, 18 Oct 2008 08:59:14 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <1224290099.3319.3.camel@zlarin> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> <1224290099.3319.3.camel@zlarin> Message-ID: <48F98942.3060801@freesurf.fr> >> $ git clone git://git.scilab.org/scilab >> Initialized empty Git repository in /home/Francois/scilab/.git/ >> fatal: The remote end hung up unexpectedly >> The same on linux mandriva: [collette at localhost scilab-dev]$ git clone git://git.scilab.org/scilab Initialized empty Git repository in /home/collette/scilab-dev/scilab/.git/ fatal: The remote end hung up unexpectedly YC From fvogelnew1 at free.fr Sat Oct 18 10:59:37 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sat, 18 Oct 2008 10:59:37 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <1224093973.48f63115a9bb6@imp.free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <1224071114.18336.80.camel@korcula.inria.fr> <1224093973.48f63115a9bb6@imp.free.fr> Message-ID: <48F9A579.2050700@free.fr> fvogelnew1 at free.fr said on 15/10/2008 20:06: > Selon Sylvestre Ledru : > >> Short comments: >> "Detailed reference implementation" >> If it is less than one or two pages, I think that you can put the source >> in the doc. > > I'll try to do this, OK. Please give me some days since I'm currently travelling > abroad. Done, it's now ready. >> I think it could be interesting to show an header containing some >> comments/description in the SEP itself. Especially to show the syntax >> itself. > > Agreed. Indeed it's a good idea. I will update the SEP accordingly. Also done. Will commit the new version of SEP#9 as soon as I figure out how to have a working git on Windows, and when my ssh key will be set up, and if I don't decide to give up in the meantime. Barry Cardiff was really right in his post about using git for windows users: http://lists.scilab.org/cgi-bin/ezmlm-browse?list=dev&cmd=showmsg&msgnum=717 Francois From fvogelnew1 at free.fr Sat Oct 18 12:08:09 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sat, 18 Oct 2008 12:08:09 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F9A683.6040503@broadpark.no> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F621FD.3050008@broadpark.no> <1224094949.48f634e55165e@imp.free.fr> <1224107609.48f66659eae44@imp.free.fr> <48F7A433.3060803@broadpark.no> <1224222400.48f826c056289@imp.free.fr> <1224251593.18336.356.camel@korcula.inria.fr> <48F91F7E.2030802@free.fr> <48F9A683.6040503@broadpark.no> Message-ID: <48F9B589.7000109@free.fr> Torbj?rn Pettersen said on 18/10/2008 11:04: > With "both points" you mean unitary tests and a new helpfile, right? Yes. > An updated helpfile is enclosed. Writing documentation seems to kill my > writing skills, so if I've missed or miss explained something just let > me know. I'll have a look, thanks. > But what is meant with unitary tests? A set of test cases to check the > validity of the code? Are there any guidelines for writing such tests? I couldn't find guidelines for unitary tests on the wiki. I could only for non regression tests here: http://wiki.scilab.org/nonRegressionTests This page is however pretty outdated because the tests are now located in each module and no longer in a specific directory containing all tests. You can have a look in a random SCI/modules//tests/unit_tests of the Scilab source tree and reverse engineer how this is done. I have nothing better to propose... > By the way - what is SEP an acronym for? I'm usually good at deciphering > three-letter-abbreviations, but not this one. Pick your choice: Scilab ?Enhancement Proposal Someone Else's Problem See the related discussion in this message and the following ones: http://lists.scilab.org/cgi-bin/ezmlm-browse?list=dev&cmd=showmsg&msgnum=473 > You may want to check that the links in the help_from_sci help file > works when including it into scilab. Well, if you checked it I'm fine enough. A bit lazy and discouraged today... > I suspect it might be a Scilab bug related to > builder_help.sce (from SCI\contrib\toolbox_skeleton), but I haven't had > the time to check it thoroughly. Did you find any way of adding a single help page into the java browser? This has been driven me crazy some time ago: http://bugzilla.scilab.org/show_bug.cgi?id=3015 Francois From torbjorn.pettersen at broadpark.no Sat Oct 18 11:04:03 2008 From: torbjorn.pettersen at broadpark.no (=?ISO-8859-1?Q?Torbj=F8rn_Pettersen?=) Date: Sat, 18 Oct 2008 11:04:03 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F91F7E.2030802@free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F621FD.3050008@broadpark.no> <1224094949.48f634e55165e@imp.free.fr> <1224107609.48f66659eae44@imp.free.fr> <48F7A433.3060803@broadpark.no> <1224222400.48f826c056289@imp.free.fr> <1224251593.18336.356.camel@korcula.inria.fr> <48F91F7E.2030802@free.fr> Message-ID: <48F9A683.6040503@broadpark.no> Fran?ois Vogel skrev: >> By the way, it would be great to have >> unitary tests here. > > You mean, for function help_from_sci, right? Not for the feature in > Scipad I guess. > > Also an updated help file would be needed. The one I currently have is > consistent with the very first version of help_from_sci. It does not > deal with the new third argument. > > Both points left to the author of help_from_sci unless he really does > not want to go ahead. With "both points" you mean unitary tests and a new helpfile, right? An updated helpfile is enclosed. Writing documentation seems to kill my writing skills, so if I've missed or miss explained something just let me know. But what is meant with unitary tests? A set of test cases to check the validity of the code? Are there any guidelines for writing such tests? By the way - what is SEP an acronym for? I'm usually good at deciphering three-letter-abbreviations, but not this one. You may want to check that the links in the help_from_sci help file works when including it into scilab. help_from_sci generate links to the help pages of the functions listed in the "See also" section of the help file. The xml code looks like this: See also help help_skeleton xmltohtml which as far as I can tell should be consistent with the xml format used in Scilab 5. On my system this type of code gives poor links when linking to built in scilab commands and functions, but the links works well when linking to user-added functions. I suspect it might be a Scilab bug related to builder_help.sce (from SCI\contrib\toolbox_skeleton), but I haven't had the time to check it thoroughly. Regards -Torbj?rn. -------------- next part -------------- A non-text attachment was scrubbed... Name: help_from_sci.xml Type: text/xml Size: 5804 bytes Desc: not available URL: From sylvestre.ledru at inria.fr Sat Oct 18 12:38:46 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Sat, 18 Oct 2008 12:38:46 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <48F98942.3060801@freesurf.fr> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> <1224290099.3319.3.camel@zlarin> <48F98942.3060801@freesurf.fr> Message-ID: <1224326326.3319.15.camel@zlarin> Le samedi 18 octobre 2008 ? 08:59 +0200, Collette Yann a ?crit : > >> $ git clone git://git.scilab.org/scilab > >> Initialized empty Git repository in /home/Francois/scilab/.git/ > >> fatal: The remote end hung up unexpectedly > >> > The same on linux mandriva: > > [collette at localhost scilab-dev]$ git clone git://git.scilab.org/scilab > Initialized empty Git repository in /home/collette/scilab-dev/scilab/.git/ > fatal: The remote end hung up unexpectedly OK, I believe I fixed this issue. It should work now. Sylvestre From fvogelnew1 at free.fr Sat Oct 18 13:18:33 2008 From: fvogelnew1 at free.fr (=?UTF-8?B?RnJhbsOnb2lzIFZvZ2Vs?=) Date: Sat, 18 Oct 2008 13:18:33 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <1224326326.3319.15.camel@zlarin> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> <1224290099.3319.3.camel@zlarin> <48F98942.3060801@freesurf.fr> <1224326326.3319.15.camel@zlarin> Message-ID: <48F9C609.90606@free.fr> Sylvestre Ledru said on 18/10/2008 12:38: > Le samedi 18 octobre 2008 ? 08:59 +0200, Collette Yann a ?crit : >>>> $ git clone git://git.scilab.org/scilab >>>> Initialized empty Git repository in /home/Francois/scilab/.git/ >>>> fatal: The remote end hung up unexpectedly >>>> >> The same on linux mandriva: >> >> [collette at localhost scilab-dev]$ git clone git://git.scilab.org/scilab >> Initialized empty Git repository in /home/collette/scilab-dev/scilab/.git/ >> fatal: The remote end hung up unexpectedly > OK, I believe I fixed this issue. > It should work now. What about Dev-tools? I know you do not want anybody to look inside this, but at least prerequirements should be accessible. $ git clone git://git.scilab.org/Dev-Tools/SE/Prerequirements/Linux Initialized empty Git repository in /home/Francois/Linux/.git/ fatal: The remote end hung up unexpectedly F. From sylvestre.ledru at inria.fr Sat Oct 18 13:22:16 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Sat, 18 Oct 2008 13:22:16 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <48F9C609.90606@free.fr> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> <1224290099.3319.3.camel@zlarin> <48F98942.3060801@freesurf.fr> <1224326326.3319.15.camel@zlarin> <48F9C609.90606@free.fr> Message-ID: <1224328936.3319.28.camel@zlarin> > What about Dev-tools? I know you do not want anybody to look inside > this pfff.... > but at least prerequirements should be accessible. > > $ git clone git://git.scilab.org/Dev-Tools/SE/Prerequirements/Linux > Initialized empty Git repository in /home/Francois/Linux/.git/ > fatal: The remote end hung up unexpectedly Not migrated yet: # svn co --username anonymous --password Scilab svn://svn.scilab.org/scilab/trunk/Dev-Tools/SE/Prerequirements/Linux/ Sylvestre From fvogelnew1 at free.fr Sat Oct 18 13:30:00 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sat, 18 Oct 2008 13:30:00 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <1224328936.3319.28.camel@zlarin> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> <1224290099.3319.3.camel@zlarin> <48F98942.3060801@freesurf.fr> <1224326326.3319.15.camel@zlarin> <48F9C609.90606@free.fr> <1224328936.3319.28.camel@zlarin> Message-ID: <48F9C8B8.1010705@free.fr> Sylvestre Ledru said on 18/10/2008 13:22: >> What about Dev-tools? I know you do not want anybody to look inside >> this > pfff.... pfff what? Why is there a password protected access then? >> but at least prerequirements should be accessible. > Not migrated yet: > # svn co --username anonymous --password Scilab > svn://svn.scilab.org/scilab/trunk/Dev-Tools/SE/Prerequirements/Linux/ OK, let's do that in the meantime. F. From sylvestre.ledru at inria.fr Sat Oct 18 13:38:32 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Sat, 18 Oct 2008 13:38:32 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <48F9C8B8.1010705@free.fr> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> <1224290099.3319.3.camel@zlarin> <48F98942.3060801@freesurf.fr> <1224326326.3319.15.camel@zlarin> <48F9C609.90606@free.fr> <1224328936.3319.28.camel@zlarin> <48F9C8B8.1010705@free.fr> Message-ID: <1224329912.3319.39.camel@zlarin> Le samedi 18 octobre 2008 ? 13:30 +0200, Fran?ois Vogel a ?crit : > Sylvestre Ledru said on 18/10/2008 13:22: > >> What about Dev-tools? I know you do not want anybody to look inside > >> this > > pfff.... > > pfff what? > Why is there a password protected access then? You already know the answer to this question but I can repeat myself. It is because there is private and internal stuff. Sylvestre From fvogelnew1 at free.fr Sat Oct 18 14:02:30 2008 From: fvogelnew1 at free.fr (=?UTF-8?B?RnJhbsOnb2lzIFZvZ2Vs?=) Date: Sat, 18 Oct 2008 14:02:30 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <1224329912.3319.39.camel@zlarin> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> <1224290099.3319.3.camel@zlarin> <48F98942.3060801@freesurf.fr> <1224326326.3319.15.camel@zlarin> <48F9C609.90606@free.fr> <1224328936.3319.28.camel@zlarin> <48F9C8B8.1010705@free.fr> <1224329912.3319.39.camel@zlarin> Message-ID: <48F9D056.2010601@free.fr> Sylvestre Ledru said on 18/10/2008 13:38: > Le samedi 18 octobre 2008 ? 13:30 +0200, Fran?ois Vogel a ?crit : >> Sylvestre Ledru said on 18/10/2008 13:22: >>>> What about Dev-tools? I know you do not want anybody to look inside >>>> this >>> pfff.... >> pfff what? >> Why is there a password protected access then? > You already know the answer to this question but I can repeat myself. It > is because there is private and internal stuff. Yes indeed I was already told this. You do not want anybody to look at this because there are private stuff inside. Fine. Absolutely fine. Why pfff then? Francois From ycollet at freesurf.fr Sat Oct 18 14:05:26 2008 From: ycollet at freesurf.fr (Collette Yann) Date: Sat, 18 Oct 2008 14:05:26 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <48F9D056.2010601@free.fr> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> <1224290099.3319.3.camel@zlarin> <48F98942.3060801@freesurf.fr> <1224326326.3319.15.camel@zlarin> <48F9C609.90606@free.fr> <1224328936.3319.28.camel@zlarin> <48F9C8B8.1010705@free.fr> <1224329912.3319.39.camel@zlarin> <48F9D056.2010601@free.fr> Message-ID: <48F9D106.5090305@freesurf.fr> > > Yes indeed I was already told this. You do not want anybody to look at > this because there are private stuff inside. > > Fine. Absolutely fine. > > Why pfff then? Yes, a gromph should have been better than a pfff. YC From fvogelnew1 at free.fr Sat Oct 18 14:06:30 2008 From: fvogelnew1 at free.fr (=?UTF-8?B?RnJhbsOnb2lzIFZvZ2Vs?=) Date: Sat, 18 Oct 2008 14:06:30 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <48F9D106.5090305@freesurf.fr> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> <1224290099.3319.3.camel@zlarin> <48F98942.3060801@freesurf.fr> <1224326326.3319.15.camel@zlarin> <48F9C609.90606@free.fr> <1224328936.3319.28.camel@zlarin> <48F9C8B8.1010705@free.fr> <1224329912.3319.39.camel@zlarin> <48F9D056.2010601@free.fr> <48F9D106.5090305@freesurf.fr> Message-ID: <48F9D146.5000408@free.fr> Collette Yann said on 18/10/2008 14:05: >> >> Yes indeed I was already told this. You do not want anybody to look at >> this because there are private stuff inside. >> >> Fine. Absolutely fine. >> >> Why pfff then? > Yes, a gromph should have been better than a pfff. Sorry I don't understand what you mean. Francois From ycollet at freesurf.fr Sat Oct 18 14:07:12 2008 From: ycollet at freesurf.fr (Collette Yann) Date: Sat, 18 Oct 2008 14:07:12 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <48F9D146.5000408@free.fr> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> <1224290099.3319.3.camel@zlarin> <48F98942.3060801@freesurf.fr> <1224326326.3319.15.camel@zlarin> <48F9C609.90606@free.fr> <1224328936.3319.28.camel@zlarin> <48F9C8B8.1010705@free.fr> <1224329912.3319.39.camel@zlarin> <48F9D056.2010601@free.fr> <48F9D106.5090305@freesurf.fr> <48F9D146.5000408@free.fr> Message-ID: <48F9D170.50701@freesurf.fr> Fran?ois Vogel a ?crit : > Collette Yann said on 18/10/2008 14:05: >>> >>> Yes indeed I was already told this. You do not want anybody to look >>> at this because there are private stuff inside. >>> >>> Fine. Absolutely fine. >>> >>> Why pfff then? >> Yes, a gromph should have been better than a pfff. > > Sorry I don't understand what you mean. > > Francois > It's a stupid joke, sorry. YC From sylvestre.ledru at inria.fr Sat Oct 18 16:04:26 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Sat, 18 Oct 2008 16:04:26 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F9A683.6040503@broadpark.no> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F621FD.3050008@broadpark.no> <1224094949.48f634e55165e@imp.free.fr> <1224107609.48f66659eae44@imp.free.fr> <48F7A433.3060803@broadpark.no> <1224222400.48f826c056289@imp.free.fr> <1224251593.18336.356.camel@korcula.inria.fr> <48F91F7E.2030802@free.fr> <48F9A683.6040503@broadpark.no> Message-ID: <1224338666.3319.60.camel@zlarin> Le samedi 18 octobre 2008 ? 11:04 +0200, Torbj?rn Pettersen a ?crit : > Fran?ois Vogel skrev: > >> By the way, it would be great to have > >> unitary tests here. > > > > You mean, for function help_from_sci, right? Not for the feature in > > Scipad I guess. > > > > Also an updated help file would be needed. The one I currently have is > > consistent with the very first version of help_from_sci. It does not > > deal with the new third argument. > > > > Both points left to the author of help_from_sci unless he really does > > not want to go ahead. > With "both points" you mean unitary tests and a new helpfile, right? > > An updated helpfile is enclosed. Writing documentation seems to kill my > writing skills, so if I've missed or miss explained something just let > me know. > > But what is meant with unitary tests? A set of test cases to check the > validity of the code? Are there any guidelines for writing such tests? As Fran?ois said, the documentation is not really up-to-date here... It is not because we have been lazy but especially since writing tests is pretty easy. The easiest way to do understand it is read other tests like in : modules/helptools/tests/unit_tests/xmltopdf.tst Basically, for you, this would be: - First test: * create a fake scilab function with comments * save it in a file * launch your function on it * check that the output is, at least, not null (and contains good stuff) - Second test: * create a fake function wit bad comments and redo the process (to check that your function won't crash if the comments are badly formated). > By the way - what is SEP an acronym for? I'm usually good at deciphering > three-letter-abbreviations, but not this one. Scilab Enhancement Proposal > You may want to check that the links in the help_from_sci help file > works when including it into scilab. > help_from_sci generate links to the help pages of the functions listed > in the "See also" section of the help file. > The xml code looks like this: > > > See also > > help > help_skeleton > xmltohtml > > > > which as far as I can tell should be consistent with the xml format used > in Scilab 5. yep, that is the way to do it. Thanks again for your work! Sylvestre From fvogelnew1 at free.fr Sun Oct 19 00:37:08 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sun, 19 Oct 2008 00:37:08 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <48F91948.40406@free.fr> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> Message-ID: <48FA6514.2090603@free.fr> > Currently I can see no solution to go on with Scilab/Scipad development > on Windows. Leaving out the details, I've finally been able to hack in msysgit so that I can use it for testing. I then cloned the master using the command you provided: >> git clone git://git.scilab.org/scilab My first observation is that any empty directory in the source tree is not received, for instance SCI/modules/action_binding/tests and directories below. Is this normal? My freshly acquired git skills do not allow me to tell whether this comes from the clone command or from the migration process from svn to git. Francois From scilab-user at hotmail.com Sun Oct 19 02:01:11 2008 From: scilab-user at hotmail.com (Scilab user) Date: Sun, 19 Oct 2008 00:01:11 +0000 Subject: FW: QUESTION SUR SCILAB Message-ID: From torbjorn.pettersen at broadpark.no Sun Oct 19 09:03:19 2008 From: torbjorn.pettersen at broadpark.no (=?ISO-8859-1?Q?Torbj=F8rn_Pettersen?=) Date: Sun, 19 Oct 2008 09:03:19 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F9B589.7000109@free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F621FD.3050008@broadpark.no> <1224094949.48f634e55165e@imp.free.fr> <1224107609.48f66659eae44@imp.free.fr> <48F7A433.3060803@broadpark.no> <1224222400.48f826c056289@imp.free.fr> <1224251593.18336.356.camel@korcula.inria.fr> <48F91F7E.2030802@free.fr> <48F9A683.6040503@broadpark.no> <48F9B589.7000109@free.fr> Message-ID: <48FADBB7.3080806@broadpark.no> Fran?ois Vogel skrev: > Torbj?rn Pettersen said on 18/10/2008 11:04: > >> But what is meant with unitary tests? A set of test cases to check >> the validity of the code? Are there any guidelines for writing such >> tests? > > I couldn't find guidelines for unitary tests on the wiki. > > I could only for non regression tests here: > http://wiki.scilab.org/nonRegressionTests > > This page is however pretty outdated because the tests are now located > in each module and no longer in a specific directory containing all > tests. > > You can have a look in a random SCI/modules//tests/unit_tests > of the Scilab source tree and reverse engineer how this is done. I > have nothing better to propose... Thanks I'll take a look, but it might take some weeks before I have time for this. I'll probably need to ask more questions here later regarding how the help system works. > >> By the way - what is SEP an acronym for? I'm usually good at >> deciphering three-letter-abbreviations, but not this one. > > Pick your choice: > Scilab ?Enhancement Proposal > Someone Else's Problem > > Ok, I'll wait for some months and see what happens with help_from_sci and then I'll decide which choice is suitable :-) > See the related discussion in this message and the following ones: > http://lists.scilab.org/cgi-bin/ezmlm-browse?list=dev&cmd=showmsg&msgnum=473 > > > >> You may want to check that the links in the help_from_sci help file >> works when including it into scilab. > > Well, if you checked it I'm fine enough. A bit lazy and discouraged > today... > > >> I suspect it might be a Scilab bug related to builder_help.sce (from >> SCI\contrib\toolbox_skeleton), but I haven't had the time to check it >> thoroughly. > > Did you find any way of adding a single help page into the java browser? No, not after Scilab 5. > > This has been driven me crazy some time ago: > http://bugzilla.scilab.org/show_bug.cgi?id=3015 > > Francois > -Torbj?rn. From sylvestre.ledru at inria.fr Sun Oct 19 17:37:28 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Sun, 19 Oct 2008 17:37:28 +0200 Subject: [Scilab-Dev] Git / Scilab In-Reply-To: <48FA6514.2090603@free.fr> References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> <48FA6514.2090603@free.fr> Message-ID: <1224430648.3319.88.camel@zlarin> > >> git clone git://git.scilab.org/scilab > > My first observation is that any empty directory in the source tree is > not received, for instance SCI/modules/action_binding/tests and > directories below. Is this normal? yep, git doesn't manage empty directories. Sylvestre From torbjorn.pettersen at broadpark.no Sun Oct 19 17:56:54 2008 From: torbjorn.pettersen at broadpark.no (=?ISO-8859-1?Q?Torbj=F8rn_Pettersen?=) Date: Sun, 19 Oct 2008 17:56:54 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F9B589.7000109@free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F621FD.3050008@broadpark.no> <1224094949.48f634e55165e@imp.free.fr> <1224107609.48f66659eae44@imp.free.fr> <48F7A433.3060803@broadpark.no> <1224222400.48f826c056289@imp.free.fr> <1224251593.18336.356.camel@korcula.inria.fr> <48F91F7E.2030802@free.fr> <48F9A683.6040503@broadpark.no> <48F9B589.7000109@free.fr> Message-ID: <48FB58C6.1080405@broadpark.no> Hi, Enclosed are two updated versions of help_from_sci.sci and accompanying .xml. In the head_commentsection of help_from_sci.sci where I try to illustrate the use of xml codes in the comments (by making a bullet list) I forgot a and this resulted in a corrupt help_from_sci.xml file. By the way, xmltohtml is not very helpful when finding a corrupt xml file in a directory. It crashes without telling which file or line number offended it. -Torbj?rn. -------------- next part -------------- A non-text attachment was scrubbed... Name: help_from_sci.xml Type: text/xml Size: 5815 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: help_from_sci.sci URL: From fvogelnew1 at free.fr Sun Oct 19 21:15:09 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sun, 19 Oct 2008 21:15:09 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48FB58C6.1080405@broadpark.no> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <48F621FD.3050008@broadpark.no> <1224094949.48f634e55165e@imp.free.fr> <1224107609.48f66659eae44@imp.free.fr> <48F7A433.3060803@broadpark.no> <1224222400.48f826c056289@imp.free.fr> <1224251593.18336.356.camel@korcula.inria.fr> <48F91F7E.2030802@free.fr> <48F9A683.6040503@broadpark.no> <48F9B589.7000109@free.fr> <48FB58C6.1080405@broadpark.no> Message-ID: <48FB873D.9000906@free.fr> Thanks, I have integrated your new versions in my ready-to-go commit. Francois Torbj?rn Pettersen said on 19/10/2008 17:56: > Hi, > Enclosed are two updated versions of help_from_sci.sci and accompanying > .xml. > > In the head_commentsection of help_from_sci.sci where I try to > illustrate the use of xml codes in the comments (by making a bullet list) > I forgot a and this resulted in a corrupt help_from_sci.xml > file. > > By the way, xmltohtml is not very helpful when finding a corrupt xml > file in a directory. > It crashes without telling which file or line number offended it. > > -Torbj?rn. > From fvogelnew1 at free.fr Mon Oct 20 22:21:58 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Mon, 20 Oct 2008 22:21:58 +0200 Subject: [Scilab-Dev] Re: bug debugguer scipad,... In-Reply-To: <48BBB42E.2010108@inria.fr> References: <48B8F0D6.809@inria.fr> <48BAF845.8010003@free.fr> <48BBB42E.2010108@inria.fr> Message-ID: <48FCE866.4020304@free.fr> Hi guys, Referring to the message below, we are now well beyond Scilab 5 release. Shouldn't we discuss about a plan, a roadmap or something in order to get the debugger back in? Target would be Scilab 5.1 (dec. 2008, IIRC a previous post) and first step should be to put back in Serge's changes in GetCommandLine.c How can we organize all this together? What do you think? Francois Bruno JOFRET said on 01/09/2008 11:21: > Hi there, > > After some discussion with Serge (and some mysterious BUG showing off > under windows with the last modification) we decided to revert the > GetCommandLine to previous version. > > But it is only during the time we need to Tag the 5.0 version. > I will do the commit back right after the tag. > > It is a very good step for the resolution of our problems but not safe > enough with the close deadline of Scilab 5.0. > > Regards, > > Fran?ois Vogel a ?crit : >> Serge, >> >> Many thanks for looking at this thorny problem. New eyes on a muddy >> problem proves efficient, well done. >> >> It seems that you have indeed made a good step forward. Now the >> debugger is no longer locked. Well, at least most of the time. >> >> Sometimes the user still has to hit enter in the Scilab shell in order >> to make things move, but definitely you have made progress. >> >> Example that almost works: >> >> 1. Launch Scilab >> >> 2. Launch Scipad. >> >> 3. Now, after Scipad is open: >> >> TCL_EvalStr("set bug2789_fixed true","scipad") >> >> (this will unlock the debugger - I had locked it two days ago in >> r27121 upon opteam request) >> >> 4. Paste this in scipad: >> >> function stupid >> a=1 >> b=2 >> endfunction >> >> 5. Configure (F10) and click OK. >> >> 6. Step in (F8). >> ----> The debugger correctly goes into DebugInProgress mode (red >> tag on the lower left of Scipad window). However, the active >> breakpointed line does not show up. >> >> 7. Hit enter in the Scilab shell (this should not be needed if it >> would work correctly). >> ----> The current stop point is shown in Scipad. >> >> 8. F8 again >> ----> The new stop point is shown >> >> etc. >> >> >> Try with other examples, perhaps a bit more complicated, you will see >> that it often works but not always. Sometimes you need to hit enter in >> the shell to make things move. >> >> >> I have also experienced a number of crashes, where Scilab unexpectedly >> closes with no message at all. >> Also: >> Warning !!! >> Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) >> with "TCL_EvalStr" function. >> Save your data and restart Scilab. >> >> >> Finally, for the debuggger to work OK, bug 1469 and 3407 should be >> fixed too. There are still many problems with continued lines, that >> were counted differently in 4.x than they are now in 5.0 >> >> >> As a conclusion I think we are still not fully OK, but progress is >> clear. A lot of testing and bug fixing will be needed in the next days >> if the debugger is to be replugged. Please let me know what you think >> and what is your plan with respect to the upcoming Scilab 5. >> >> Francois >> >> >> Serge Steer said on 30/08/2008 09:03: >>> Je pense avoir corrige le bug qui empechait le debugguer de scipad de >>> fonctionner et qui faisait que dans certains cas scilab se mettait a >>> boucler avec l'execution d'un callback >>> >>> zzledt (GetCommandLine.c) ne signifiait pas que la lecture a ete >>> interrompu par la presence d'un callback dans la queue et retournait une >>> ligne blanche comme instruction. >>> >>> voir la modif que j'ai committe dans modules/shell/GetCommandLine.c >>> >>> Serge >>> >>> > > From sylvestre.ledru at scilab.org Wed Oct 22 11:55:02 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 22 Oct 2008 11:55:02 +0200 Subject: [Scilab-Dev] Creating a debian package of Scilab 5.0.2 for Ubuntu 8.04: Segmentation fault In-Reply-To: <48F904A1.8040600@gmx.de> References: <48F89370.9040105@gmx.de> <1224250957.18336.342.camel@korcula.inria.fr> <48F8E315.1010804@gmx.de> <48F904A1.8040600@gmx.de> Message-ID: <1224669302.14725.35.camel@korcula.inria.fr> Le vendredi 17 octobre 2008 ? 23:33 +0200, Christoph Korn a ?crit : > That was a false alarm. > > By accident I appended --without-javasci to configure which was the > source of the issue. I tried to reproduce it to avoid this from happening again but it works for me. What other options did you use ? Sylvestre From vincent.couvert at scilab.org Wed Oct 22 15:06:54 2008 From: vincent.couvert at scilab.org (Vincent COUVERT) Date: Wed, 22 Oct 2008 15:06:54 +0200 Subject: [Scilab-Dev] Re: bug debugguer scipad,... In-Reply-To: <48FCE866.4020304@free.fr> References: <48B8F0D6.809@inria.fr> <48BAF845.8010003@free.fr> <48BBB42E.2010108@inria.fr> <48FCE866.4020304@free.fr> Message-ID: <48FF256E.4060408@scilab.org> Hi Fran?ois, Pierre as just created a new branch to work on Scipad debugger. The modifications needed for this work can break Scilab, so we think it is better to work with a branch. How to work with this branch: // Clone the repository git clone git at git.scilab.org:scilab // Create a shortcut for scipad git branch scipad refs/remotes/origin/scipad // Work on Scipad branch git checkout scipad // Check existing branches (a star must appear in front of "scipad") git branch // Merge "master" branch modifications to "scipad" branch git merge master // Merge "scipad" branch modifications to "master" branch git checkout master git merge scipad The changes on GetCommandLine.c have been merged into this branch. Vincent Fran?ois Vogel a ?crit : > Hi guys, > > Referring to the message below, we are now well beyond Scilab 5 release. > > Shouldn't we discuss about a plan, a roadmap or something in order to > get the debugger back in? > > Target would be Scilab 5.1 (dec. 2008, IIRC a previous post) and first > step should be to put back in Serge's changes in GetCommandLine.c > > How can we organize all this together? What do you think? > > Francois > > > Bruno JOFRET said on 01/09/2008 11:21: >> Hi there, >> >> After some discussion with Serge (and some mysterious BUG showing off >> under windows with the last modification) we decided to revert the >> GetCommandLine to previous version. >> >> But it is only during the time we need to Tag the 5.0 version. >> I will do the commit back right after the tag. >> >> It is a very good step for the resolution of our problems but not >> safe enough with the close deadline of Scilab 5.0. >> >> Regards, >> >> Fran?ois Vogel a ?crit : >>> Serge, >>> >>> Many thanks for looking at this thorny problem. New eyes on a muddy >>> problem proves efficient, well done. >>> >>> It seems that you have indeed made a good step forward. Now the >>> debugger is no longer locked. Well, at least most of the time. >>> >>> Sometimes the user still has to hit enter in the Scilab shell in >>> order to make things move, but definitely you have made progress. >>> >>> Example that almost works: >>> >>> 1. Launch Scilab >>> >>> 2. Launch Scipad. >>> >>> 3. Now, after Scipad is open: >>> >>> TCL_EvalStr("set bug2789_fixed true","scipad") >>> >>> (this will unlock the debugger - I had locked it two days ago in >>> r27121 upon opteam request) >>> >>> 4. Paste this in scipad: >>> >>> function stupid >>> a=1 >>> b=2 >>> endfunction >>> >>> 5. Configure (F10) and click OK. >>> >>> 6. Step in (F8). >>> ----> The debugger correctly goes into DebugInProgress mode (red >>> tag on the lower left of Scipad window). However, the active >>> breakpointed line does not show up. >>> >>> 7. Hit enter in the Scilab shell (this should not be needed if it >>> would work correctly). >>> ----> The current stop point is shown in Scipad. >>> >>> 8. F8 again >>> ----> The new stop point is shown >>> >>> etc. >>> >>> >>> Try with other examples, perhaps a bit more complicated, you will >>> see that it often works but not always. Sometimes you need to hit >>> enter in the shell to make things move. >>> >>> >>> I have also experienced a number of crashes, where Scilab >>> unexpectedly closes with no message at all. >>> Also: >>> Warning !!! >>> Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) >>> with "TCL_EvalStr" function. >>> Save your data and restart Scilab. >>> >>> >>> Finally, for the debuggger to work OK, bug 1469 and 3407 should be >>> fixed too. There are still many problems with continued lines, that >>> were counted differently in 4.x than they are now in 5.0 >>> >>> >>> As a conclusion I think we are still not fully OK, but progress is >>> clear. A lot of testing and bug fixing will be needed in the next >>> days if the debugger is to be replugged. Please let me know what you >>> think and what is your plan with respect to the upcoming Scilab 5. >>> >>> Francois >>> >>> >>> Serge Steer said on 30/08/2008 09:03: >>>> Je pense avoir corrige le bug qui empechait le debugguer de scipad de >>>> fonctionner et qui faisait que dans certains cas scilab se mettait a >>>> boucler avec l'execution d'un callback >>>> >>>> zzledt (GetCommandLine.c) ne signifiait pas que la lecture a ete >>>> interrompu par la presence d'un callback dans la queue et >>>> retournait une >>>> ligne blanche comme instruction. >>>> >>>> voir la modif que j'ai committe dans modules/shell/GetCommandLine.c >>>> >>>> Serge >>>> >>>> >> >> -- ============================================== Vincent COUVERT Responsable du d?veloppement ------ Fondation DIGITEO - Consortium Scilab Domaine de Voluceau - B.P. 105 78153 Le Chesnay Cedex B?timent 23 - Bureau 22 ------ Email : vincent.couvert at scilab.org T?l : +33 (0)1 39 63 54 46 Fax : +33 (0)1 39 63 55 94 ============================================== From sylvestre.ledru at scilab.org Wed Oct 22 16:18:55 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 22 Oct 2008 16:18:55 +0200 Subject: Localization in Scilab 5.0.3 Message-ID: <1224685135.14725.62.camel@korcula.inria.fr> Hello We are probably going to release a minor version 5.0.3 containing some important bug fixes. I would like to take this opportunity to update localization files. Therefor, if you want to update the localization in your language, please let me know and I will update your work. Thanks Sylvestre From fvogelnew1 at free.fr Wed Oct 22 20:30:49 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Wed, 22 Oct 2008 20:30:49 +0200 Subject: [Scilab-Dev] Re: and idea for the development of Scipad In-Reply-To: <48F9A579.2050700@free.fr> References: <48DFB0AF.20308@broadpark.no> <48DFEF4D.80204@free.fr> <48E290AA.8010701@broadpark.no> <1222812349.48e2a2bdb420a@imp.free.fr> <48E381B9.4030306@broadpark.no> <48F3BE49.5030104@free.fr> <1223934469.3427.61.camel@zlarin> <48F3E44A.1090004@free.fr> <1224071114.18336.80.camel@korcula.inria.fr> <1224093973.48f63115a9bb6@imp.free.fr> <48F9A579.2050700@free.fr> Message-ID: <48FF7159.7080107@free.fr> HI, This is to close this thread about the new help_from_sci function to be called from Scipad. I could now commit this in the master branch managed by git. This is Scipad 7.7. Francois From vincent.belaiche at gmail.com Wed Oct 22 20:52:50 2008 From: vincent.belaiche at gmail.com (=?ISO-8859-1?Q?Vincent_Bela=EFche?=) Date: Wed, 22 Oct 2008 20:52:50 +0200 Subject: Launching scilab from Emacs In-Reply-To: <48eeee8c$0$922$ba4acef3@news.orange.fr> References: <48eeee8c$0$922$ba4acef3@news.orange.fr> Message-ID: <48FF7682.3000808@gmail.com> Bonjour, I am new to this list. I was invited by Sylvestre to switch some thread started on the Scilab newsgroup onto this list. I am trying to use A. Vigodner's (Author: Alexander Vigodner >) Emacs extension to use Emacs as a front end for Scilab. I have modified scilab.el already with the following things: 1) add a few keywords 2) suppress a few compilation warning due to outdated backquoting convention, and use of global variables where local (let (...) ...) would have been a better option 3) correct bug on filling strings : now scilab.el detects whether the string delimiter is ' or ", and use the same delimiter when breaking a string to fill it 4) add a function to mark functions, and corresponding key binding C-M-h 5) recode partly the scilab-shell function for it to use the same coding as emacs shell command. Now, I have tried, unsuccessfully, to launch scilex -nw from Emacs as a subprocess (note that this is working neither with the original version of scilab.el, nor if I launch "scilex -nw" from a bash shell (with MSWidows MSYS environment), nor even if I launch "scilex -nw" not from a cmdproxy.exe MSDOS console inside Emacs, but only from the real cmd.exe MSDOS console of MSWindows. What happens is that the scilex -nw remains pending as if it was waiting for something. I am suspecting that internally it behaves like a windows application (I mean with an MS Windows mailbox) and is waiting for some MS Windows event on the Window API. What as changed since the version used by A. Vigodner back in 2002 ? Is there some command line option to pass to scilex for it to be usable as a slave subprocess ? Is there some proxy application (similar to cmdproxy.exe for cmd.exe) that could be used instead of scilex ? Best regards, Vincent. Vincent Bela?che a ?crit : > Hello, > > Do you know where I can find the latest scilab.el for > editing/loading/launching scilab from an Emacs window ? > > VBR, > Vincent. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: scilab.el URL: From fvogelnew1 at free.fr Wed Oct 22 21:37:55 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Wed, 22 Oct 2008 21:37:55 +0200 Subject: [Scilab-Dev] Re: bug debugguer scipad,... In-Reply-To: <48FF256E.4060408@scilab.org> References: <48B8F0D6.809@inria.fr> <48BAF845.8010003@free.fr> <48BBB42E.2010108@inria.fr> <48FCE866.4020304@free.fr> <48FF256E.4060408@scilab.org> Message-ID: <48FF8113.8080101@free.fr> Hi Vincent, Perfect. Works exactly like you describe it below. Now on the hard work. Will somebody of the opteam work on this problem? I had a look some time ago and I remember it was quite borderline wrt my proficiency. I don't think I can fix the problem alone. Francois Vincent COUVERT said on 22/10/2008 15:06: > Hi Fran?ois, > > Pierre as just created a new branch to work on Scipad debugger. The > modifications needed for this work can break Scilab, so we think it is > better to work with a branch. > > How to work with this branch: > // Clone the repository > git clone git at git.scilab.org:scilab > > // Create a shortcut for scipad > git branch scipad refs/remotes/origin/scipad > > // Work on Scipad branch > git checkout scipad > > // Check existing branches (a star must appear in front of "scipad") > git branch > > // Merge "master" branch modifications to "scipad" branch > git merge master > > // Merge "scipad" branch modifications to "master" branch > git checkout master > git merge scipad > > The changes on GetCommandLine.c have been merged into this branch. > > Vincent > > > > Fran?ois Vogel a ?crit : >> Hi guys, >> >> Referring to the message below, we are now well beyond Scilab 5 release. >> >> Shouldn't we discuss about a plan, a roadmap or something in order to >> get the debugger back in? >> >> Target would be Scilab 5.1 (dec. 2008, IIRC a previous post) and first >> step should be to put back in Serge's changes in GetCommandLine.c >> >> How can we organize all this together? What do you think? >> >> Francois >> >> >> Bruno JOFRET said on 01/09/2008 11:21: >>> Hi there, >>> >>> After some discussion with Serge (and some mysterious BUG showing off >>> under windows with the last modification) we decided to revert the >>> GetCommandLine to previous version. >>> >>> But it is only during the time we need to Tag the 5.0 version. >>> I will do the commit back right after the tag. >>> >>> It is a very good step for the resolution of our problems but not >>> safe enough with the close deadline of Scilab 5.0. >>> >>> Regards, >>> >>> Fran?ois Vogel a ?crit : >>>> Serge, >>>> >>>> Many thanks for looking at this thorny problem. New eyes on a muddy >>>> problem proves efficient, well done. >>>> >>>> It seems that you have indeed made a good step forward. Now the >>>> debugger is no longer locked. Well, at least most of the time. >>>> >>>> Sometimes the user still has to hit enter in the Scilab shell in >>>> order to make things move, but definitely you have made progress. >>>> >>>> Example that almost works: >>>> >>>> 1. Launch Scilab >>>> >>>> 2. Launch Scipad. >>>> >>>> 3. Now, after Scipad is open: >>>> >>>> TCL_EvalStr("set bug2789_fixed true","scipad") >>>> >>>> (this will unlock the debugger - I had locked it two days ago in >>>> r27121 upon opteam request) >>>> >>>> 4. Paste this in scipad: >>>> >>>> function stupid >>>> a=1 >>>> b=2 >>>> endfunction >>>> >>>> 5. Configure (F10) and click OK. >>>> >>>> 6. Step in (F8). >>>> ----> The debugger correctly goes into DebugInProgress mode (red >>>> tag on the lower left of Scipad window). However, the active >>>> breakpointed line does not show up. >>>> >>>> 7. Hit enter in the Scilab shell (this should not be needed if it >>>> would work correctly). >>>> ----> The current stop point is shown in Scipad. >>>> >>>> 8. F8 again >>>> ----> The new stop point is shown >>>> >>>> etc. >>>> >>>> >>>> Try with other examples, perhaps a bit more complicated, you will >>>> see that it often works but not always. Sometimes you need to hit >>>> enter in the shell to make things move. >>>> >>>> >>>> I have also experienced a number of crashes, where Scilab >>>> unexpectedly closes with no message at all. >>>> Also: >>>> Warning !!! >>>> Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) >>>> with "TCL_EvalStr" function. >>>> Save your data and restart Scilab. >>>> >>>> >>>> Finally, for the debuggger to work OK, bug 1469 and 3407 should be >>>> fixed too. There are still many problems with continued lines, that >>>> were counted differently in 4.x than they are now in 5.0 >>>> >>>> >>>> As a conclusion I think we are still not fully OK, but progress is >>>> clear. A lot of testing and bug fixing will be needed in the next >>>> days if the debugger is to be replugged. Please let me know what you >>>> think and what is your plan with respect to the upcoming Scilab 5. >>>> >>>> Francois >>>> >>>> >>>> Serge Steer said on 30/08/2008 09:03: >>>>> Je pense avoir corrige le bug qui empechait le debugguer de scipad de >>>>> fonctionner et qui faisait que dans certains cas scilab se mettait a >>>>> boucler avec l'execution d'un callback >>>>> >>>>> zzledt (GetCommandLine.c) ne signifiait pas que la lecture a ete >>>>> interrompu par la presence d'un callback dans la queue et >>>>> retournait une >>>>> ligne blanche comme instruction. >>>>> >>>>> voir la modif que j'ai committe dans modules/shell/GetCommandLine.c >>>>> >>>>> Serge >>>>> >>>>> >>> >>> > > From c_korn at gmx.de Wed Oct 22 22:27:21 2008 From: c_korn at gmx.de (Christoph Korn) Date: Wed, 22 Oct 2008 22:27:21 +0200 Subject: Creating a debian package of Scilab 5.0.2 for Ubuntu 8.04: Segmentation fault In-Reply-To: 1224669302.14725.35.camel@korcula.inria.fr Message-ID: <48FF8CA9.7050901@gmx.de> > I tried to reproduce it to avoid this from happening again but it works > for me. > What other options did you use ? This are the options I used: DEB_CONFIGURE_NORMAL_ARGS += --prefix=/usr --with-pvm-library=/usr/lib/ \ --with-pvm-include=/usr/include/ --with-tcl-include=/usr/include/tcl8.4 \ --enable-maintainer-mode --with-jdk=/usr/lib/jvm/java-6-openjdk \ --with-pvm --with-fftw --with-umfpack --with-install-help-xml \ --enable-build-localization From ycollet at freesurf.fr Wed Oct 22 20:04:15 2008 From: ycollet at freesurf.fr (Collette Yann) Date: Wed, 22 Oct 2008 20:04:15 +0200 Subject: [Scilab-Dev] Localization in Scilab 5.0.3 In-Reply-To: <1224685135.14725.62.camel@korcula.inria.fr> References: <1224685135.14725.62.camel@korcula.inria.fr> Message-ID: <48FF6B1F.4000204@freesurf.fr> Sylvestre Ledru a ?crit : > Hello > > We are probably going to release a minor version 5.0.3 containing some > important bug fixes. > I would like to take this opportunity to update localization files. > Therefor, if you want to update the localization in your language, > please let me know and I will update your work. > > Thanks > Sylvestre > > For the french part, except the "untranslatable" messages (some very specific messages), everything looks fine. YC From enrico.segre at weizmann.ac.il Wed Oct 22 22:53:13 2008 From: enrico.segre at weizmann.ac.il (Enrico Segre) Date: Wed, 22 Oct 2008 22:53:13 +0200 (IST) Subject: [Scilab-Dev] Re: Launching scilab from Emacs In-Reply-To: <48FF7682.3000808@gmail.com> References: <48eeee8c$0$922$ba4acef3@news.orange.fr> <48FF7682.3000808@gmail.com> Message-ID: <5899912.1224708793399.JavaMail.oracle@colibri.weizmann.ac.il> Perhaps not, but I think you started editing an outdated version. The latest I know about is still here: http://www.geocities.com/avezunchik/scilab/scilab.html You might also have to do some archaeological homework through Sasha's old posts, such as http://groups.google.com/group/comp.soft-sys.math.scilab/tree/browse_frm/month/2003-11/364a2a144a2e7bbb?rnum=51&_done=%2Fgroup%2Fcomp.soft-sys.math.scilab%2Fbrowse_frm%2Fmonth%2F2003-11%3F? I think that Sasha somehow solved some critical issues at that time, and worked his way around emacs and scilab 2.7.x bugs. Enrico -------------- next part -------------- An HTML attachment was scrubbed... URL: From c_korn at gmx.de Wed Oct 22 23:26:45 2008 From: c_korn at gmx.de (Christoph Korn) Date: Wed, 22 Oct 2008 23:26:45 +0200 Subject: Error in scilab compiled for amd64 Message-ID: <48FF9A95.6050108@gmx.de> Hello, I have compiled scilab 5.0.2 for hardy amd64. The sources and binaries can be found in this ppa: https://launchpad.net/~getdeb.packages/+archive You can checkout the sources by downloading the files: https://launchpad.net/~getdeb.packages/+archive/+files/scilab_5.0.2.orig.tar.gz https://launchpad.net/~getdeb.packages/+archive/+files/scilab_5.0.2-1~ppa1.diff.gz tar xzf scilab_5.0.2.orig.tar.gz cd scilab-5.0.2 zcat ../scilab_5.0.2-1~ppa1.diff.gz | patch -p1 The i386 packages run fine. In amd64 scilab gives this error: http://nopaste.com/p/arvctbquq/txt This is the /usr/share/scilab/etc/scilab.start file: http://nopaste.com/p/astHMiTdk/txt The output of some calculations is also odd: http://img1.abload.de/img/bildschirmfoto-consoleby3.png Unfortunately, I cannot access the config.log which was created by the machine building the scilab package for amd64 in the PPA. But I have a local amd64 machine building the package in a chroot. So I presume that the config.log my machine produces is identical to the one produced by the PPA machine. This is it: http://nopaste.com/p/aQYxImE8i/txt The values of IS_64_BITS_CPU are: IS_64_BITS_CPU_FALSE='' IS_64_BITS_CPU_TRUE='#' The values of USE_DYNAMIC_STACK are: USE_DYNAMIC_STACK_FALSE='' USE_DYNAMIC_STACK_TRUE='#' From c_korn at gmx.de Thu Oct 23 00:16:34 2008 From: c_korn at gmx.de (Christoph Korn) Date: Thu, 23 Oct 2008 00:16:34 +0200 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <48FF9A95.6050108@gmx.de> References: <48FF9A95.6050108@gmx.de> Message-ID: <48FFA642.5060302@gmx.de> I have tested the package my machine has built and it also contains the error. Christoph Korn schrieb: > Hello, > I have compiled scilab 5.0.2 for hardy amd64. > > The sources and binaries can be found in this ppa: > https://launchpad.net/~getdeb.packages/+archive > > You can checkout the sources by downloading the files: > https://launchpad.net/~getdeb.packages/+archive/+files/scilab_5.0.2.orig.tar.gz > https://launchpad.net/~getdeb.packages/+archive/+files/scilab_5.0.2-1~ppa1.diff.gz > > tar xzf scilab_5.0.2.orig.tar.gz > cd scilab-5.0.2 > zcat ../scilab_5.0.2-1~ppa1.diff.gz | patch -p1 > > The i386 packages run fine. > > In amd64 scilab gives this error: > http://nopaste.com/p/arvctbquq/txt > > This is the /usr/share/scilab/etc/scilab.start file: > http://nopaste.com/p/astHMiTdk/txt > > The output of some calculations is also odd: > http://img1.abload.de/img/bildschirmfoto-consoleby3.png > > Unfortunately, I cannot access the config.log which was created by the machine > building the scilab package for amd64 in the PPA. > > But I have a local amd64 machine building the package in a chroot. > So I presume that the config.log my machine produces is identical to > the one produced by the PPA machine. > This is it: > http://nopaste.com/p/aQYxImE8i/txt > The values of IS_64_BITS_CPU are: > IS_64_BITS_CPU_FALSE='' > IS_64_BITS_CPU_TRUE='#' > > The values of USE_DYNAMIC_STACK are: > USE_DYNAMIC_STACK_FALSE='' > USE_DYNAMIC_STACK_TRUE='#' > > From sylvestre.ledru at inria.fr Thu Oct 23 00:25:36 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Thu, 23 Oct 2008 00:25:36 +0200 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <48FFA642.5060302@gmx.de> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> Message-ID: <1224714336.3319.186.camel@zlarin> > > > > But I have a local amd64 machine building the package in a chroot. > > So I presume that the config.log my machine produces is identical to > > the one produced by the PPA machine. > > This is it: > > http://nopaste.com/p/aQYxImE8i/txt > > The values of IS_64_BITS_CPU are: > > IS_64_BITS_CPU_FALSE='' > > IS_64_BITS_CPU_TRUE='#' > > > > The values of USE_DYNAMIC_STACK are: > > USE_DYNAMIC_STACK_FALSE='' > > USE_DYNAMIC_STACK_TRUE='#' > > Could you send the file modules/core/Makefile & modules/core/includes/machine.h ? Thx S From vincent.b.1 at hotmail.fr Thu Oct 23 07:58:13 2008 From: vincent.b.1 at hotmail.fr (=?iso-8859-1?Q?Vincent_Bela=EFche?=) Date: Thu, 23 Oct 2008 07:58:13 +0200 Subject: [Scilab-Dev] Re: Launching scilab from Emacs Message-ID: Hello, Thanks, maybe the scilab official web site should remove the old version from the contribution directory, and include a link to A. Vigodner's page. Note also that there is another scilab.el on: http://pauillac.inria.fr/cdrom/ftp/scilab/contrib/emacs/scilab.el which is something that google gives before A. Vigodner's one. Because it is from somebody at Inria, I naively thought to have something uptodate when I used it first. However this one is even less up-to-date than the old version of A.Vigodner's extension that is on the scilab site contribution directory. Best regards, Vincent. Enrico Segre a ?crit : > Perhaps not, but I think you started editing an outdated version. The > latest I know about is still here: > http://www.geocities.com/avezunchik/scilab/scilab.html > You might also have to do some archaeological homework through Sasha's > old posts, such as > http://groups.google.com/group/comp.soft-sys.math.scilab/tree/browse_frm/month/2003-11/364a2a144a2e7bbb?rnum=51&_done=%2Fgroup%2Fcomp.soft-sys.math.scilab%2Fbrowse_frm%2Fmonth%2F2003-11%3F > > I think that Sasha somehow solved some critical issues at that time, > and worked his way around emacs and scilab 2.7.x bugs. > Enrico > > > _________________________________________________________________ In?dit ! Des Emotic?nes D?jant?es! Installez les dans votre Messenger ! http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From c_korn at gmx.de Thu Oct 23 10:33:24 2008 From: c_korn at gmx.de (Christoph Korn) Date: Thu, 23 Oct 2008 10:33:24 +0200 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <1224714336.3319.186.camel@zlarin> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> Message-ID: <490036D4.6000403@gmx.de> An HTML attachment was scrubbed... URL: From c_korn at gmx.de Thu Oct 23 13:03:11 2008 From: c_korn at gmx.de (Christoph Korn) Date: Thu, 23 Oct 2008 13:03:11 +0200 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <490036D4.6000403@gmx.de> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> Message-ID: <490059EF.1040503@gmx.de> This patch enabled the IS_64_BITS_CPU flag: http://nopaste.com/p/a60OAMINW/txt The package has been built successfully, but after running scilab there is a segfault. This is the output of strace -f scilab: http://nopaste.com/p/asmdBxwwt/txt Christoph Korn schrieb: > modules/core/Makefile: > http://nopaste.com/p/aSAv6qoER/txt > > modules/core/includes/machine.h: > http://nopaste.com/p/avOvTZuPS/txt > > > Sylvestre Ledru schrieb: > >>> But I have a local amd64 machine building the package in a chroot. > >>> So I presume that the config.log my machine produces is identical to > >>> the one produced by the PPA machine. > >>> This is it: > >>> http://nopaste.com/p/aQYxImE8i/txt > >>> The values of IS_64_BITS_CPU are: > >>> IS_64_BITS_CPU_FALSE='' > >>> IS_64_BITS_CPU_TRUE='#' > >>> > >>> The values of USE_DYNAMIC_STACK are: > >>> USE_DYNAMIC_STACK_FALSE='' > >>> USE_DYNAMIC_STACK_TRUE='#' > >>> > >>> > > Could you send the file modules/core/Makefile & > > modules/core/includes/machine.h ? > > > > Thx > > S > > > > > > > From sylvestre.ledru at scilab.org Thu Oct 23 14:58:26 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 23 Oct 2008 14:58:26 +0200 Subject: [Scilab-Dev] Re: Launching scilab from Emacs In-Reply-To: <48FF7682.3000808@gmail.com> References: <48eeee8c$0$922$ba4acef3@news.orange.fr> <48FF7682.3000808@gmail.com> Message-ID: <1224766706.14725.127.camel@korcula.inria.fr> Hello, Sorry for the confusion about the other INRIA website. It has been done by an other INRIA project. I am in touch with the guy in charge of this website to avoid this problem from happening again. About your work on the emacs, I think Alexander would be happy to incorporate your changes upstream. Btw, I am willing to create a Debian/Ubuntu package of this. Sylvestre Le mercredi 22 octobre 2008 ? 20:52 +0200, Vincent Bela?che a ?crit : > Bonjour, > > I am new to this list. I was invited by Sylvestre to switch some thread > started on the Scilab newsgroup onto this list. > > I am trying to use A. Vigodner's (Author: Alexander Vigodner > >) Emacs extension to use Emacs as a front end > for Scilab. > > I have modified scilab.el already with the following things: > > 1) add a few keywords > 2) suppress a few compilation warning due to outdated backquoting > convention, and use of global variables where local (let (...) ...) > would have been a better option > 3) correct bug on filling strings : now scilab.el detects whether the > string delimiter is ' or ", and use the same delimiter when breaking a > string to fill it > 4) add a function to mark functions, and corresponding key binding C-M-h > 5) recode partly the scilab-shell function for it to use the same coding > as emacs shell command. > > Now, I have tried, unsuccessfully, to launch scilex -nw from Emacs as a > subprocess (note that this is working neither with the original version > of scilab.el, nor if I launch "scilex -nw" from a bash shell (with > MSWidows MSYS environment), nor even if I launch "scilex -nw" not from a > cmdproxy.exe MSDOS console inside Emacs, but only from the real cmd.exe > MSDOS console of MSWindows. > > What happens is that the scilex -nw remains pending as if it was waiting > for something. I am suspecting that internally it behaves like a windows > application (I mean with an MS Windows mailbox) and is waiting for some > MS Windows event on the Window API. > > What as changed since the version used by A. Vigodner back in 2002 ? > > Is there some command line option to pass to scilex for it to be usable > as a slave subprocess ? Is there some proxy application (similar to > cmdproxy.exe for cmd.exe) that could be used instead of scilex ? > > Best regards, > Vincent. > > Vincent Bela?che a ?crit : > > Hello, > > > > Do you know where I can find the latest scilab.el for > > editing/loading/launching scilab from an Emacs window ? > > > > VBR, > > Vincent. > > pi?ce jointe document texte brut (scilab.el) > ;;$Revision: 1.32 $ > ;;scilab.el - SCILAB INTEGRATED SHELL, EDITING AND HELP in GNU-Emacs/Xemacs > ;; > ;; Copyright (C) 2001 Alexander Vigodner > > ;; Created: 03.01 2001 > ;; Version: 2.1.7 > ;; Author: Alexander Vigodner > > > ;;This program is free software; you can redistribute it and/or > ;;modify it under the terms of the GNU General Public License > ;;as published by the Free Software Foundation; either version 2 > ;;of the License, or (at your option) any later version. > > ;;This program is distributed in the hope that it will be useful, > ;;but WITHOUT ANY WARRANTY; without even the implied warranty of > ;;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > ;;GNU General Public License for more details. > > ;;You should have received a copy of the GNU General Public License > ;;along with this program; if not, write to the Free Software > ;;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > > > ;;B.F.M. Financial Research, Ltd., hereby disclaims all copyright > ;;interest in the program `scilab.el' written by Alexander Vigodner > > ;;Eric Berger, 17 July 2001 > ;;Managing Director > > ;; > ;; This program was written by Alexander Vigodner > ;; on the base of matlab.el file, Version: 2.2.2 ( > ;; Copyright (C) 1997-1999 Eric M. Ludlam > ;; Copyright (C) 1991-1997 Matthew R. Wette ) > > ;; > ;; > ;; > ;;; Commentary: > ;; File contains three integrated together modes: > ;; SCILAB-MODE is the major mode for GNU Emacs. > ;; It provides support for editing SCILAB dot-sci/sce > ;; files. It automatically indents for block structures, line continuations > ;; (e.g., ...), and comments. > ;; > ;; Additional features include auto-fill including auto-additions of > ;; ellipsis for commands, and even strings. Block/end construct > ;; highlighting as you edit. Primitive code-verification and > ;; identification. Templates and other code editing functions. > ;; Advanced symbol completion. Code highlighting via font-lock. > ;; There are many navigation commands that let you move across blocks > ;; of code at different levels. > ;; > ;; SCILAB-SHELL mode for launching scilab with -nw. It has much more > ;; features than the standard x-mode of scilab. There are only two minor > ;; points: > ;; 1) Graphic commands change a behaviour of the prompt. See my bug report. > ;;; The bug exists in all versions of scilab till 2.6 (included). > ;; 2) Scicos does not run. > ;; > ;;; For a solution one can ask me for the patch for scilab-2.6 > ;;; Or take it from my page > ;;; http://www.geocities.com/avezunchik/scilab.html > > ;; > ;; SCILAB-HELP fully clickable help system with the > ;; the same set of the man pages as the basic scilab. Works independely on > ;; the scilab-shell mode, but you can send commands from the man page to the > ;; scilab-shell > > ;; > ;;; Installation: > ;; > ;; 1. Put the this file as "scilab.el" somewhere on the load-path. > ;; 2. Find file scilab-startup.el. If it does not exists then copy the lines below > ;; into this file and place this file into the same directory as scilab.el. > ;; 3. In your init file put the command > ;; (load "scilab-startup") > ;; 4.Remark: instead of loading you can just insert the file "scilab-startup.el" > ;; 5. When you open emacs/xemacs in "Tools" you will see "Scilab Setup". Run it > ;; and carefully customize all main variables of scilab/emacs system > ;; 6. Enjoy > ;;; > ;;;;;;;;;;;;;;;;;;;;;;;;;;;START OF FILE SCILAB-STARTUP.EL;;;;;;;;;;;;;;;;;;;;;;;;;;;; > ;;; > ;;; JUST REMOVE ;;;; > ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > ;;;; ;;; This file must be inserted or loaded into users' init emacs file (.emacs usually). > ;;;; ;;; load-path variable must contain the directory where scilab.el and scilab-startup.el;;; files are placed > ;;;; ;;; For instance the following two command can be added to the end of the init-emacs > ;;;; ;;; File > ;;;; ;;; > ;;;; ;;(setq load-path (append (list "" ) load-path)) > ;;;; ;;(load "scilab-startup") > > ;;;;;;;;;;;; START OF SCILAB STUFFS FOR .EMACS ;;;;;;;;;;;;;;;;;;;;;;;;; > ;;;; (setq load-path (append (list (expand-file-name "./") ) load-path)) > ;;;; (defvar running-xemacs (string-match "XEmacs\\|Lucid" (emacs-version))) > ;;;; (let* ( > ;;;; (sciel (locate-library "scilab.el")) > ;;;; (scilec (concat sciel "c")) > ;;;; (scilab-elc-xemacs running-xemacs) > ;;;; ) > > ;;;; (if (not (file-newer-than-file-p scilec sciel)) > ;;;; (byte-compile-file sciel) > ;;;; (find-file scilec) > ;;;; (goto-line 4) > ;;;; (setq scilab-elc-xemacs (looking-at ".*\\(XEmacs\\|Lucid\\)")) > ;;;; (kill-buffer "scilab.elc") > ;;;; (if (not (eq scilab-elc-xemacs running-xemacs)) > ;;;; (byte-compile-file sciel)) > ;;;; ) > ;;;; ) > ;;;; (autoload 'scilab-mode "scilab" "Enter Scilab editing mode." t) > ;;;; (setq auto-mode-alist (cons '("\\(\\.sci$\\|\\.sce$\\)" . scilab-mode) > ;;;; auto-mode-alist)) > ;;;; (autoload 'scilab-shell "scilab" "Interactive Scilab Shell mode." t) > ;;;; (autoload 'scilab-mode-setup "scilab" "Scilab modes Setup." t) > ;;;; (autoload 'scilab-help "scilab" "Scilab Topic Browser." t) > ;;;; (autoload 'scilab-help-function "scilab" "Scilab Help Function." t) > ;;;; (autoload 'scilab-apropos-function "scilab" "Scilab Apropos Function." t) > > ;;;; (defun my-scilab-mode-hook () > ;;;; (if running-gnuemacs (show-paren-mode)) > ;;;; (setq fill-column 76)) ; where auto-fill should wrap > ;;;; (defun my-scilab-shell-mode-hook () > ;;;; (if running-gnuemacs (show-paren-mode)) > ;;;; ) > ;;;; (add-hook 'scilab-mode-hook 'my-scilab-mode-hook) > ;;;; (add-hook 'scilab-shell-mode-hook 'my-scilab-shell-mode-hook) > > ;;;; (defcustom scilab-shell-global-key "\C-cs" > ;;;; "Global key for `scilab-shell' command \"^C\" means Ctrl-c, \"^X\" > ;;;; means Ctrl-x,etc" > ;;;; :group 'scilab-shell > ;;;; :group 'scilab-setup > ;;;; :type 'string) > > ;;;; (global-set-key scilab-shell-global-key 'scilab-shell) > > ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > ;;;; ;;;;To display start and setup menu of scilab in "Tools" menu (not necessary) > ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > ;;;; (if running-xemacs > ;;;; (progn > ;;;; (add-menu-button '("Tools") "---" ) > ;;;; (add-menu-button '("Tools") ["Scilab Start" scilab-shell t] ) > ;;;; (add-menu-button '("Tools") ["Scilab Setup" scilab-mode-setup t] ) > ;;;; (add-menu-button '("Help") ["Scilab Topic" scilab-help t] ) > ;;;; (add-menu-button '("Help") ["Scilab Help" scilab-help-function t] ) > ;;;; (add-menu-button '("Help") ["Scilab Apropos" scilab-apropos-function t] ) > ;;;; ) > ;;;; (define-key menu-bar-tools-menu [separator-scilab] > ;;;; '("--")) > ;;;; (define-key menu-bar-tools-menu [scilab-start] '("Scilab Start" . scilab-shell)) > ;;;; (define-key menu-bar-tools-menu [scilab-setup] '("Scilab Setup" . scilab-mode-setup)) > > ;;;; (define-key menu-bar-help-menu [separator-scilab] > ;;;; '("--")) > ;;;; (define-key menu-bar-help-menu [scilab-apropos] '("Scilab Apropos" . scilab-apropos-function)) > ;;;; (define-key menu-bar-help-menu [scilab-help] '("Scilab Help" . scilab-help-function)) > ;;;; (define-key menu-bar-help-menu [scilab-topic] '("Scilab Topic" . scilab-help)) > ;;;; ) > ;;;; ;;;;;;;;;; END OF SCILAB STUFFS FOR .EMACS;;;;;;;;;;;;;;;;;;;;;;;;; > ;;;; > ;;;;;;;;;;;;;;;;;;;;;;;;;;;END OF FILE SCILAB-STARTUP.EL;;;;;;;;;;;;;;;;;;; > > > > > > > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > > ;; Please read the mode help for scilab-mode for additional > ;; configuration options. > ;; > > ;; This package requires easymenu, tempo, and derived. > ;; This package will optionally use custom, font-lock, hilit19, shell, and gud. > > ;;;;;;;;;;;;;;;;;;;;;;;;;;; START of THE BODY ;;;;;;;;;;;;;;;;;;;; > > ;; Which emacs are we running? > (defvar running-xemacs (string-match "X[Ee]macs\\|Lucid" (emacs-version))) > (defvar running-gnuemacs (string-match "GNU" (emacs-version))) > (string-match "\\(GNU\\|X\\)\\s-*[Ee]macs\\s-+\\([0-9.]+\\)\\s-+" (emacs-version)) > (defvar version-emacs (match-string 2 (emacs-version))) > ;;; Code: > > (require 'easymenu) > (require 'tempo) > (require 'derived) > > (defconst scilab-mode-version "2.1.7" > "Current version of Scilab mode.") > (defvar scilab-mode-all-versions nil > "Current status of Scilab mode, Emacs/Xemacs and existence of client.") > > ;; From custom web page for compatibility between versions of custom: > (eval-and-compile > (condition-case () > (require 'custom) > (error nil)) > (if (and (featurep 'custom) (fboundp 'custom-declare-variable)) > nil ;; We've got what we needed > ;; We have the old custom-library, hack around it! > (defmacro defgroup (&rest args) > nil) > (defmacro custom-add-option (&rest args) > nil) > (defmacro defface (&rest args) nil) > (defmacro defcustom (var value doc &rest args) > `(defvar ,var ,value ,doc)))) > > ;; compatibility > (if running-xemacs > (progn > (defalias 'scilab-make-overlay 'make-extent) > (defalias 'scilab-overlay-put 'set-extent-property) > (defalias 'scilab-delete-overlay 'delete-extent) > (defalias 'scilab-overlay-start 'extent-start) > (defalias 'scilab-overlay-end 'extent-end) > (defalias 'scilab-cancel-timer 'delete-itimer) > (defalias 'scilab-run-with-timer 'run-with-timer) > (require 'cus-face) > (defalias 'scilab-face-get-attribute 'face-custom-attributes-get) > (defun scilab-run-with-idle-timer (secs repeat function &rest args) > (condition-case nil > (start-itimer "scilab" function secs (if repeat secs nil) t) > (error > ;; If the above doesn't work, then try this old version of start itimer. > (start-itimer "scilab" function secs (if repeat secs nil))))) > ) > (defalias 'scilab-make-overlay 'make-overlay) > (defalias 'scilab-overlay-put 'overlay-put) > (defalias 'scilab-delete-overlay 'delete-overlay) > (defalias 'scilab-overlay-start 'overlay-start) > (defalias 'scilab-overlay-end 'overlay-end) > (defalias 'scilab-cancel-timer 'cancel-timer) > (defalias 'scilab-run-with-idle-timer 'run-with-idle-timer) > (defalias 'scilab-run-with-timer 'run-with-timer) > (defalias 'scilab-face-get-attribute 'face-attr-construct) > ) > > > (defvar scilab-server-status nil) > ;;In standard Emacs server-start is used. However, gnuserv-start > ;; has much more features and can be installed also.So: > > > (defun scilab-server-start() > "Run gnuserver if it is possible. For Xemacs this is the standard > server. For GNU emacs server is the standard server. However, gnuserver > can be installed for emacs too. In this case scilab-server-start runs > gnuserver for emacs too. In contrast to usual run serevers run only > if scilab is active and then %version variable > is updated" > (interactive) > (if (scilab-shell-active-p) > (progn > (if (fboundp 'gnuserv-start) > (progn > (let* ((TMPDIR > (substring > (scilab-shell-collect-command-output > "write(%io(2),getenv('TMPDIR'))") 0 -3)) > (process-environment > (nconc (list (concat "TMPDIR=" TMPDIR) > (concat "GNU_PORT=" > (substring TMPDIR -6 -1))) > process-environment) )) > (gnuserv-start)) > (setq scilab-server-status > (if (eq (process-status gnuserv-process) 'run) > "gnuclient" nil)) > ) > (if (fboundp 'server-start) > (progn > (server-start) > (setq scilab-server-status > (if (eq (process-status gnuserv-process) 'run) > "emacsclient" nil)) > ) > ) > ) > (scilab-shell-versions) > ) > nil > ) > ) > > > (defun scilab-server-kill() > "Run gnuserver if it is possible. For Xemacs this is the standard > server. For GNU emacs server is the standard server. However, gnuserver > can be installed for emacs too. In this case scilab-server-start runs > gnuserver for emacs too. Besides, if scila bis active then %version variable > is updated" > (interactive) > (if (fboundp 'gnuserv-start) > (if (gnuserv-running-p) > (progn > (gnuserv-shutdown) > (setq scilab-server-status nil) > )) > (if (fboundp 'server-start) > (progn > (server-start 1)) > (setq scilab-server-status nil) > ) > ) > (if (scilab-shell-active-p) > (scilab-shell-versions) > ) > ) > > > > (defun scilab-server-status() > "Gives status of scilab-server. Notice that gnuserv can rub while the status > for scilab-server will be \"not run\". To privide proper behaviour of gnuserver > it must be run only via `scilab-server-start'. This is cheked via the variable > `scilab-server-status' and this function " > (interactive) > (message (if (and (fboundp 'gnuserv-running-p) > (gnuserv-running-p) > (string-equal scilab-server-status "gnuclient") > (equal (process-status gnuserv-process) 'run)) > "gnuclient" > (if (and (boundp 'server-process) > (string-equal scilab-server-status "emacsclient") > (equal (process-status server-process) 'run)) > "emacsclient" > "No client")) > ) > ) > > > > (if (fboundp 'global-font-lock-mode) > (defalias 'scilab-font-lock-mode 'global-font-lock-mode) > (if (fboundp 'font-lock-mode) > (defalias 'scilab-font-lock-mode 'font-lock-mode) > )) > > (defcustom scilab-font-lock-mode > (if (boundp 'global-font-lock-mode) > global-font-lock-mode > (if (boundp 'font-lock-mode) > font-lock-mode nil)) > " font-lock-mode for scilab modes. Overrided by global-font-lock mode." > :group 'scilab > :group 'scilab-setup > :type 'boolean) > > (defcustom scilab-highlight-builtin scilab-font-lock-mode > "There is no regular expressions for builtins. The names are taken from the > custom `scilab-builtin-list'. So it can work slowly. You can disable this option" > :group 'scilab > :group 'scilab-setup > :type 'boolean) > > (defcustom scilab-highlight-macros nil > "There is no regular expressions for macros. The names are taken from the > dynamically updated file `scilab-libfunc-list-path'. So it can work eben slower > than for builtins. You can disable this option" > :group 'scilab > :group 'scilab-setup > :type 'boolean) > > > > (if (fboundp 'point-at-bol) > (progn > (defalias 'scilab-point-at-bol 'point-at-bol) > (defalias 'scilab-point-at-eol 'point-at-eol)) > (defun scilab-point-at-bol () > (interactive) (save-excursion (beginning-of-line) (point))) > (defun scilab-point-at-eol () > (interactive) (save-excursion (end-of-line) (point)))) > > (defun scilab-get-default-scilab-shell-command () > "Compute the default value for user-changeable variable scilab-shell-command" > (let ( > (trial-list (list (getenv "SCI") "/usr/lib/scilab-2.6")) > trial-path) > (while trial-list > (setq trial-path (car trial-list) > trial-list (cdr trial-list)) > (when trial-path > ;; add tailing "/" if need > (setq trial-path > (concat trial-path > (if (equal "/" (aref trial-path (1- (length trial-path)))) > "" "/") > "bin/scilex")) > (cond > ((file-exists-p trial-path) > (setq trial-list nil)) > ((progn (setq trial-path (concat trial-path ".exe")) > (file-exists-p trial-path)) > (setq trial-list nil)) > (t (setq trial-path nil))))) > trial-path)) > > > > ;;; User-changeable variables ================================================= > > ;; Variables which the user can change > (defgroup scilab nil > "Scilab mode." > :prefix "scilab-" > :group 'languages) > > (defgroup scilab-edit nil > "Scilab subgroup containing editing options." > :group 'scilab) > > (defcustom scilab-indent-level 2 > "*The basic indentation amount in `scilab-mode'." > :group 'scilab-edit > :type 'integer) > (defcustom scilab-dynamical-indent t > "Ebable/disable indentation in `scilab-mode'. For big files indentation works slowly. > Thus a user can switch this property " > :group 'scilab-edit > :type 'boolean) > > (defcustom scilab-cont-level 4 > "*Basic indentation after continuation if no other methods are found." > :group 'scilab-edit > :type 'integer) > > (defcustom scilab-case-level '(1 . 1) > "*How far to indent case/else statements in a select. > This can be an integer, which is the distance to indent the CASE and > ELSE commands, and how far to indent commands appearing in CASE > and ELSE blocks. It can also be a cons cell which is of form > (CASEINDENT . COMMANDINDENT) > where CASEINDENT is the indentation of the CASE and OTHERWISE > statements, and COMMANDINDENT is the indentation of commands appearing > after the CASE or ELSE command." > :group 'scilab-edit > :type 'sexp) > > (defcustom scilab-indent-function t > "*If non-nil, indent body of function." > :group 'scilab-edit > :type 'boolean) > > ;;;(defcustom scilab-indent-past-arg1-functions > ;;; "input" > ;;; "*Regex describing functions whose first arg is special. > ;;;This specialness means that all following parameters which appear on > ;;;continued lines should appear indented to line up with the second > ;;;argument, not the first argument." > ;;; :group 'scilab > ;;; :type 'string) > > ;;;(defcustom scilab-arg1-max-indent-length 15 > ;;; "*The maximum length to indent when indenting past arg1. > ;;;If arg1 is exceptionally long, then only this number of characters > ;;;will be indented beyond the open paren starting the parameter list.") > > (defcustom scilab-maximum-indents '(;; = is a convenience. Don't go too far > (?= . (10 . 4)) > ;; Fns should provide hard limits > (?\( . 50) > ;; Matrix/Cell arrays > (?\[ . 20) > (?\{ . 20)) > "Alist of maximum indentations when lining up code. > Each element is of the form (CHAR . INDENT) where char is a character > the indent engine is using, and INDENT is the maximum indentation > allowed. Indent could be of the form (MAXIMUM . INDENT), where > MAXIMUM is the maximum allowed calculated indent, and INDENT is the > amount to use if MAXIMUM is reached." > :group 'scilab-edit) > > ;(defcustom scilab-handle-scicos nil > (defvar scilab-handle-scicos nil > "*If true, add in a few scicos customizations. > This variable's state is mostly useful when set at load time when > scicos font lock keywords can be removed. This will handle > additional cases as the need arrises. It is not implemented yet" > ;; :group 'scilab > ;; :type 'boolean > ) > > (defcustom scilab-auto-fill t > "*If true, set variable `auto-fill-function' to our function at startup." > :group 'scilab-edit > :type 'boolean) > > (defcustom scilab-fill-fudge 10 > "Number of characters around `fill-column' we can fudge filling. > Basically, there are places that are very convenient to fill at, but > might not be the closest fill spot, or occur after `fill-column'. > If they occur within this fudge factor, we will use them. > Also, if none of the above occur, and we find a symbol to break at, > but an open paren (group) starts or ends within this fudge factor, > move there to boost the amount of fill leverage we can get." > :group 'scilab-edit > :type 'integer) > > (defcustom scilab-fill-fudge-hard-maximum 79 > "The longest line allowed when auto-filling code. > This overcomes situations where the `fill-column' plus the > `scilab-fill-fudge' is greater than some hard desired limit." > :group 'scilab-edit > :type 'integer) > > (defcustom scilab-elipsis-string "..." > "Text used to perform continuation on code lines. > This is used to generate and identify continuation lines." > :group 'scilab-edit > :type 'string) > > (defcustom scilab-fill-code t > "*If true, `auto-fill-mode' causes code lines to be automatically continued." > :group 'scilab-edit > :type 'boolean) > > (defcustom scilab-fill-count-ellipsis-flag t > "*Non-nil means to count the ellipsis when auto filling. > This effectively shortens the `fill-column' by the length of > `scilab-elipsis-string'." > :group 'scilab-edit > :type 'boolean) > > > (defcustom scilab-fill-strings-flag t > "*Non-nil means that when auto-fill is on, strings are broken across lines. > If `scilab-fill-count-ellipsis-flag' is non nil, this shortens the > `fill-column' by the length of `scilab-elipsis-string'." > :group 'scilab-edit > :type 'boolean) > > > (defcustom scilab-comment-column 40 > "*The goal comment column in `scilab-mode' buffers." > :group 'scilab-edit > :type 'integer) > > (defvar scilab-comment-line-s "// " > "*String to start comment on line by itself." > ;;; :group 'scilab > ;;; :type 'string) > ) > (defvar scilab-comment-on-line-s "// " > "*String to start comment on line with code." > ;;; :group 'scilab > ;;; :type 'string) > ) > (defcustom scilab-comment-region-s "// $$$ " > "*String inserted by \\[scilab-comment-region] at start of each line in \ > region." > :group 'scilab-edit > :type 'string) > > (defcustom scilab-verify-on-save-flag nil > "*Non-nil means to verify sci whenever we save a file. It is better to put t, if a user want to write programms in 1 file-1 function matlab style" > :group 'scilab > :type 'boolean) > > (defcustom scilab-mode-verify-fix-functions > '( > scilab-mode-vf-block-matches-forward > scilab-mode-vf-block-matches-backward) > "List of function symbols which perform a verification and fix to sci code. > Each function gets no arguments, and returns nothing. They can move > point, but it will be restored for them." > :group 'scilab > :type '(repeat (choice :tag "Function: " > '(scilab-mode-vf-functionname > scilab-mode-vf-block-matches-forward > scilab-mode-vf-block-matches-backward > scilab-mode-vf-quietafy-buffer > )))) > > (defcustom scilab-block-verify-max-buffer-size 50000 > "*Largest buffer size allowed for block verification during save." > :group 'scilab > :type 'integer) > > (defcustom scilab-vers-on-startup t > "*If non-nil, show the version number on startup." > :group 'scilab > :type 'boolean) > > (defcustom scilab-highlight-block-match-flag t > "*Non-nil means to highlight the matching if/end/whatever. > The highlighting only occurs when the cursor is on a block start or end > keyword." > :group 'scilab-edit > :type 'boolean) > > (defcustom scilab-show-periodic-code-details-flag nil > "*Non-nil means to show code details in the minibuffer. > This will only work if `scilab-highlight-block-match-flag' is non-nil." > :group 'scilab-edit > :type 'boolean) > > (defcustom scilab-mode-hook nil > "*List of functions to call on entry to Scilab mode." > :group 'scilab > :group 'scilab-setup > :type 'hook) > > > (defcustom scilab-completion-technique 'complete > "*How the `scilab-complete-symbol' interfaces with the user. > Valid values are: > > 'increment - which means that new strings are tried with each > successive call until all methods are exhausted. > (Similar to `hippie-expand'.) > 'complete - Which means that if there is no single completion, then > all possibilities are displayed in a completion buffer." > :group 'scilab > :type '(radio (const :tag "Incremental completion (hippie-expand)." > increment) > (const :tag "Show completion buffer." > complete))) > > (defgroup scilab-face nil > "Scilab subgroup containing all customized faces." > :group 'scilab) > > ;; Load in the region we use for highlighting stuff. > (if (and (featurep 'custom) (fboundp 'custom-declare-variable)) > > (let* ((l-region-face (if (facep 'region) 'region 'zmacs-region))) > ;; If we have custom, we can make our own special face like this > (defface scilab-region-face > (list > (list t > (scilab-face-get-attribute l-region-face nil) > )) > "*Face used to highlight a scilab region." > :group 'scilab-face > )) > > ;; If we do not, then we can fake it by copying 'region. > (cond ((facep 'region) > (copy-face 'region 'scilab-region-face)) > (t > (copy-face 'zmacs-region 'scilab-region-face)))) > > (defcustom scilab-which-func-format '(" " which-func-current " " > );;;scilab-number-line-in-function) > "Format for displaying the function in the mode line." > :group 'scilab > :type 'sexp) > > (defvar scilab-number-line-in-function "?") > > (defvar scilab-unterminated-string-face 'scilab-unterminated-string-face > "Self reference for unterminated string face.") > > (defvar scilab-scicos-keyword-face 'scilab-scicos-keyword-face > "Self reference for scicos keywords.") > (defvar scilab-valid-variable-name "\\<[A-Za-z$#_%][A-Za-z0-9$#_]*\\>" > "Regexp describing all valid variable names") > > > (defun scilab-simple-send (proc string) > "Default function for sending in scilab session to PROC input STRING. > Takes in account the meaning of the symbol '!'. > See the hook `comint-input-sender'." > (setq string (scilab-string-garbage-filter string)) > (let ((str "") (curbuff (current-buffer)) (tmpbuff nil)) > (if (not (string-equal string "")) > (setq str (substring string 0 1))) > > ; ; (if (string-match "^\\*\\*" string) > ; ; (progn > ; ; (eval (car (read-from-string (substring string 2)))) > ; ; ; (setq tmpbuff (current-buffer)) > ; ; (switch-to-buffer curbuff) > ; ; ; (comint-send-string proc (concat "//LISP//" (substring string 2) "\n")) > ; ; (comint-send-string proc "") > ; ; ) > (if (string-equal str "!") > (comint-previous-matching-input (concat "^" (substring string 1)) 1) > (comint-send-string proc string) > (comint-send-string proc "\n")) > ; ;) > > ) > ) > > > > (defun scilab-string-garbage-filter (string) > "Filters STRING for the scilab-simple-send" > (let ((garbage (concat "\\(" (regexp-quote "\C-g") "\\|" > (regexp-quote "\033[H0") "\\|" > (regexp-quote "\033[H\033[2J") "\\|" > (regexp-quote "\033H\033[2J") "\\)"))) > (while (string-match garbage string) > (if (= (aref string (match-beginning 0)) ?\C-g) > (beep t)) > (setq string (replace-match "" t t string)))) > (if (not string) "" string)) > > (defun scilab-output-garbage-filter (&optional string) > "Filters output.This function could be on `comint-output-filter-functions' or bound to a key." > (interactive) > (let ((pmark (process-mark (get-buffer-process (current-buffer)))) > (garbage (concat "\\(" (regexp-quote "\C-g") "\\|" > (regexp-quote "\C-M") "\\|" > (regexp-quote "\033[H0") "\\|" > (regexp-quote "\033[H\033[2J") "\\|" > (regexp-quote "\033H\033[2J") "\\)"))) > (save-excursion > (condition-case nil > (goto-char > (if (interactive-p) comint-last-input-end comint-last-output-start)) > (error nil)) > (while (re-search-forward garbage pmark t) > (replace-match "" t t))))) > > > (defun scilab-font-lock-adjustments () > "Make adjustments for font lock. > If font lock is not loaded, lay in wait." > (if (and (featurep 'custom) (fboundp 'custom-declare-variable)) > > (progn > (defface scilab-unterminated-string-face > (list > (list t > `( ,@(scilab-face-get-attribute 'font-lock-string-face nil) :underline t) > )) > "*Face used to highlight unterminated strings." > :group 'scilab-face) > (defface scilab-scicos-keyword-face > (list > (list t > `( ,@(scilab-face-get-attribute 'font-lock-type-face nil) > :underline t) > )) > "*Face used to highlight scicos specific functions." :group 'scilab-face) > > (defface scilab-string-face > (list > (list t > (scilab-face-get-attribute 'font-lock-string-face nil) > > )) > "*Face used to highlight strings." :group 'scilab-face) > > (defface scilab-comment-face > (list > (list t > (scilab-face-get-attribute 'font-lock-comment-face nil) > > )) > "*Face used to highlight comments." :group 'scilab-face) > > (defface scilab-builtin-face > (list > (list t > (scilab-face-get-attribute 'font-lock-builtin-face nil) > > )) > "*Face used to highlight builtins." :group 'scilab-face) > > (defface scilab-macros-face > (list > (list t > (scilab-face-get-attribute 'font-lock-variable-name-face nil) > > )) > "*Face used to highlight macros." :group 'scilab-face) > > > (defface scilab-keyword-face > (list > (list t > (scilab-face-get-attribute 'font-lock-keyword-face nil) > > )) > "*Face used to highlight keywords." :group 'scilab-face) > > (let* ((constant-face (if (facep 'font-lock-constant-face) > 'font-lock-constant-face 'font-lock-reference-face))) > (defface scilab-constant-face > (list > (list t > (scilab-face-get-attribute constant-face nil) > > )) > "*Face used to highlight constants and labels." :group 'scilab-face)) > > (defface scilab-type-face > (list > (list t > (scilab-face-get-attribute 'font-lock-type-face nil) > > )) > "*Face used to highlight types and classes." :group 'scilab-face) > (defface scilab-warning-face > (list > (list t > (scilab-face-get-attribute 'font-lock-warning-face nil) > > )) > "*Face used to highlight warnings." :group 'scilab-face) > (defface scilab-function-name-face > (list > (list t > (scilab-face-get-attribute 'font-lock-function-name-face nil) > > )) > "*Face used to highlight functions names in function header." :group 'scilab-face) > (defface scilab-tlist-field-face > (list > (list t > (scilab-face-get-attribute 'font-lock-variable-name-face nil) > > )) > "*Face used to highlight fields in tlists when it is called > \"foo.field\"." :group 'scilab-face) > > (defface scilab-variable-name-face > (list > (list t > (scilab-face-get-attribute 'font-lock-variable-name-face nil) > > )) > "*Face used to highlight variable names (in function header)." :group 'scilab-face) > ) > > > > > ;; Now, lets make the unterminated string face > (cond ((facep 'font-lock-string-face) > (copy-face 'font-lock-string-face > 'scilab-unterminated-string-face)) > (t > (make-face 'scilab-unterminated-string-face))) > (set-face-underline-p 'scilab-unterminated-string-face t) > > ;; Now make some scicos faces > (cond ((facep 'font-lock-type-face) > (copy-face 'font-lock-type-face 'scilab-scicos-keyword-face)) > (t > (make-face 'scilab-scicos-keyword-face))) > (set-face-underline-p 'scilab-scicos-keyword-face t) > ) > > (remove-hook 'font-lock-mode-hook 'scilab-font-lock-adjustments)) > > ;; Now we create our own faces, but we keep these variables for compatibility > ;; and they give users another mechanism for changing face appearance. > ;; We now allow a FACENAME in `font-lock-keywords' to be any expression that > ;; returns a face. So the easiest thing is to continue using these variables, > ;; rather than sometimes evaling FACENAME and sometimes not. sm. > (defvar scilab-comment-face 'scilab-comment-face > "Face name to use for comments.") > > (defvar scilab-string-face 'scilab-string-face > "Face name to use for strings.") > > (defvar scilab-keyword-face 'scilab-keyword-face > "Face name to use for keywords.") > > (defvar scilab-builtin-face 'scilab-builtin-face > "Face name to use for builtins.") > > (defvar scilab-macros-face 'scilab-macros-face > "Face name to use for macros.") > > (defvar scilab-function-name-face 'scilab-function-name-face > "Face name to use for function names.") > > (defvar scilab-variable-name-face 'scilab-variable-name-face > "Face name to use for variable names.") > (defvar scilab-tlist-field-face 'scilab-tlist-field-face > "Face name to use for tlist-fields names.") > > (defvar scilab-type-face 'scilab-type-face > "Face name to use for type and class names.") > > (defvar scilab-constant-face 'scilab-constant-face > "Face name to use for constant and label names.") > > (defvar scilab-warning-face 'scilab-warning-face > "Face name to use for things that should stand out.") > > (defvar scilab-reference-face 'scilab-constant-face > "This variable is obsolete. Use scilab-constant-face.") > > > ;; Make the adjustments for font lock after it's loaded. > ;; I found that eval-after-load was unreliable. > (if (featurep 'font-lock) > (scilab-font-lock-adjustments) > (add-hook 'font-lock-mode-hook 'scilab-font-lock-adjustments)) > > (add-hook 'comint-output-filter-functions 'shell-strip-ctrl-m) > (remove-hook 'comint-output-filter-functions 'comint-postoutput-scroll-to-bottom) > (add-hook 'comint-output-filter-functions 'scilab-output-garbage-filter) > > ;;; Scilab mode variables ===================================================== > > (defvar scilab-tempo-tags nil > "List of templates used in Scilab mode.") > > ;; syntax table > (defvar scilab-mode-syntax-table > (let ((st (make-syntax-table (standard-syntax-table)))) > (modify-syntax-entry ?_ "_" st) > (modify-syntax-entry ?/ ". 124b" st) > ; (modify-syntax-entry ?/ ". 1456" st) > (modify-syntax-entry ?\n ">" st) > (modify-syntax-entry ?\\ "." st) > (modify-syntax-entry ?\t " " st) > (modify-syntax-entry ?+ "." st) > (modify-syntax-entry ?- "." st) > (modify-syntax-entry ?* "." st) > (modify-syntax-entry ?' "." st) > (modify-syntax-entry ?\" "." st) > ; (modify-syntax-entry ?/ "." st) > (modify-syntax-entry ?= "." st) > (modify-syntax-entry ?< "." st) > (modify-syntax-entry ?> "." st) > (modify-syntax-entry ?& "." st) > (modify-syntax-entry ?| "." st) > ; (modify-syntax-entry ?\{ "(} " st) > ; (modify-syntax-entry ?\[ "(] " st) > ; (modify-syntax-entry ?\( "() " st) > ; (modify-syntax-entry ?\} "){ " st) > ; (modify-syntax-entry ?\] ")[ " st) > ; (modify-syntax-entry ?\) ")( " st) > st) > "The syntax table used in `scilab-mode' buffers.") > > (defvar scilab-mode-special-syntax-table > (let ((st (copy-syntax-table scilab-mode-syntax-table))) > ;; Make _ a part of words so we can skip them better > (modify-syntax-entry ?_ "w" st) > st) > "The syntax table used when navigating blocks.") > > ;; abbrev table > (defvar scilab-mode-abbrev-table nil > "The abbrev table used in `scilab-mode' buffers.") > > (define-abbrev-table 'scilab-mode-abbrev-table ()) > > > ;;; Scilab shell mode variables =============================================== > > (defvar scilab-shell-buffer-name "Scilab" > "Name used to create `scilab-shell' mode buffers. > This name will have *'s surrounding it.") > > > ;;; Keybindings =============================================================== > > (defvar scilab-help-map > (let ((km (make-sparse-keymap))) > (define-key km "w" 'scilab-shell-whereami) > (define-key km "f" 'scilab-shell-describe-command) > (define-key km "a" 'scilab-shell-apropos) > (define-key km "v" 'scilab-shell-describe-variable) > (define-key km "t" 'scilab-shell-topic-browser) > km) > "The help key map for `scilab-mode' and `scilab-shell-mode'.") > > (defvar scilab-insert-map > (let ((km (make-sparse-keymap))) > (define-key km "c" 'scilab-insert-next-case) > (define-key km "e" 'scilab-insert-end-block) > (define-key km "i" 'tempo-template-scilab-if) > (define-key km "I" 'tempo-template-scilab-if-else) > (define-key km "f" 'tempo-template-scilab-for) > (define-key km "p" 'scilab-insert-probe) > (define-key km "s" 'tempo-template-scilab-select) > (define-key km "t" 'tempo-template-scilab-try) > (define-key km "w" 'tempo-template-scilab-while) > (define-key km "F" 'tempo-template-scilab-function) > (define-key km "'" 'scilab-stringify-region) > ;; Not really inserts, but auto coding stuff > (define-key km "\C-s" 'scilab-ispell-strings) > (define-key km "\C-c" 'scilab-ispell-comments) > km) > "Keymap used for inserting simple texts based on context.") > > ;; mode map > (defvar > scilab-mode-map > (let ((km (make-sparse-keymap))) > (define-key km [return] 'scilab-return) > (define-key km "\C-c;" 'scilab-comment-region) > (define-key km "\C-c:" 'scilab-uncomment-region) > (define-key km "\C-c$" 'scilab-comment-command) > (define-key km "\C-c%" 'scilab-comment-on-line) > (define-key km [(control ?c) ?\] ] 'scilab-insert-end-block) > (define-key km [(control c) return] 'scilab-comment-return) > (define-key km [(control c) (control c)] scilab-insert-map) > (define-key km [(control c) (control ?d)] 'scilab-hungry-delete-forward) > (define-key km [(control c) (control f)] 'scilab-fill-comment-line) > (define-key km [(control c) (control j)] 'scilab-justify-line) > (define-key km [(control c) (control q)] 'scilab-fill-region) > (define-key km [(control c) (control i)] 'scilab-indent-defun) > (define-key km [(control c) (control l)] 'scilab-shell-save-and-getf-or-run) > (define-key km "\C-cr" 'scilab-shell-run-region) > (define-key km [(control c) (control e)] 'scilab-shell-remote-exit) > (define-key km [(control c) ?. ] 'scilab-find-file-on-path) > (define-key km "\C-c/" 'scilab-shell-cd) > (define-key km "\C-cd" 'scilab-shell-cd) > (define-key km [(control h) return] scilab-help-map) > (define-key km [(control h) return] scilab-help-map) > (define-key km [(control j)] 'scilab-linefeed) > (define-key km "\M-\r" 'newline) > (define-key km [(meta \;)] 'scilab-comment) > (define-key km [(meta q)] 'scilab-fill-paragraph) > (define-key km [(meta a)] 'scilab-beginning-of-command) > (define-key km [(meta e)] 'scilab-end-of-command) > (define-key km [(meta j)] 'scilab-comment-line-break-function) > (define-key km [(meta tab)] 'scilab-complete-symbol) > (define-key km [(meta control b)] 'scilab-backward-sexp) > (define-key km [(meta control f)] 'scilab-forward-sexp) > (define-key km [(meta control h)] 'scilab-mark-defun) > (define-key km [(meta up)] 'scilab-beginning-of-prev-defun) > (define-key km [(meta down)] 'scilab-beginning-of-next-defun) > (define-key km [(control up)] 'scilab-beginning-of-defun) > (define-key km [(control n)] 'scilab-function-goto-line) > (define-key km [(control down)] 'scilab-end-of-defun) > (if running-xemacs > (define-key km [(control meta button1)] 'scilab-find-file-click) > (define-key km [(control meta mouse-2)] 'scilab-find-file-click)) > (substitute-key-definition 'comment-region 'scilab-comment-region > km) ; global-map ;torkel > km) > > "The keymap used in `scilab-mode'.") > > ;;; Font locking keywords ===================================================== > > (defvar scilab-string-start-regexp "\\(^\\|[^]})a-zA-Z0-9_.']\\)" > "Regexp used to represent the character before the string char '. > The ' character has restrictions on what starts a string which is needed > when attempting to understand the current context.") > > ;; To quote a quote, put two in a row, thus we need an anchored > ;; first quote. In addition, we don't want to color strings in comments. > (defvar scilab-string-end-regexp "[^'\"\n]*\\(['\"]['\"][^'\"\n]*\\)*['\"]" > "Regexp used to represent the character pattern for ending a string. > The ' character can be used as a transpose, and can transpose transposes. > Therefore, to end, we must check all that goop.") > > (defun scilab-font-lock-string-match-normal (limit) > "When font locking strings, call this function for normal strings. > Argument LIMIT is the maximum distance to scan." > (scilab-font-lock-string-match-here > (concat scilab-string-start-regexp > "\\(['\"]" scilab-string-end-regexp "\\)" > "\\([^'\"]\\|$\\)") > limit)) > > (defun scilab-font-lock-string-match-unterminated (limit) > "When font locking strings, call this function for normal strings. > Argument LIMIT is the maximum distance to scan." > (scilab-font-lock-string-match-here > (concat scilab-string-start-regexp "\\(['\"][^'\"\n]*\\(['\"]['\"][^'\"\n]*\\)*\\)$") > limit)) > > (defun scilab-font-lock-string-match-here (regex limit) > "When font-locking strings, call this function to determine a match. > Argument REGEX is the expression to scan for. Match 2 must be the string. > Argument LIMIT is the maximum distance to scan." > (let (e) > (while (and (re-search-forward regex limit t) > (progn > ;; This gets us out of a comment after the string. > (setq e (match-end 2)) > (goto-char (match-beginning 2)) > (prog1 > (or (scilab-cursor-in-comment) > (if (bolp) nil > (save-excursion > (forward-char -1) > (scilab-cursor-in-string)))) > (goto-char e)))) > (setq e nil)) > (if (not e) > nil > (goto-char e) > t))) > > (defun scilab-font-lock-comment-match (limit) > "When font-locking comments, call this function to determine a match. > Argument LIMIT is the maximum distance to scan." > (let (e) > (while (and (re-search-forward "\\(//[^\n]*\\)" limit t) > (progn > (setq e (match-end 1)) > (member (get-text-property (match-beginning 0) 'face) > '(scilab-string-face > scilab-unterminated-string-face)))) > (setq e nil)) > (if (not e) > nil > (goto-char e) > t))) > > ;;font-lock-solo-keywords > > (defvar scilab-font-lock-solo-keywords > (list > '("\\<\\(break\\|case\\|e\\(lse\\(\\|if\\)\\|ndfunction\\)\ > \\|for\\|global\\|clear\\|clearglobal\\|if\\|return\\|while\\|pause\\|function\\|select\\|then\\|quit\\|exit\\|stop\\|abort\\|do\\|resume\\|help\\)\\>" > (0 scilab-keyword-face))) > "Font lock of keywords that appear on a line by themselves." > ) > ;; font-lock keywords > (defcustom scilab-builtin-list > ;;; From the file $SCI/routines/default/fundef > '("%i_abs" "%i_cumsum" "%i_diag" "%i_matrix" "%i_max" "%i_maxi" "%i_min" > "%i_mini" "%i_p" "%i_sum" "%i_tril" "%i_triu" "%msp_full" "%msp_spget" > "CreateLink" "DestroyLink" "ExecAppli" "GetMsg" "Matplot" "NumTokens" > "SendMsg" "WaitMsg" "abs" "addf" "addinter" "addmenu" "amell" "apropos" > "argn" "arl2_ius" "ascii" "atan" "balanc" "bdiag" "besseli" "besselj" > "besselk" "bessely" "bezout" "bfinit" "blkfc1i" "blkslvi" "bool2s" "bvode" > "c2dex" "c_link" "calerf" "call" "cdfbet" "cdfbin" "cdfchi" "cdfchn" "cdff" > "cdffnc" "cdfgam" "cdfnbn" "cdfnor" "cdfpoi" "cdft" "ceil" "champ" "champ1" > "chdir" "chol" "clc" "clean" "clear" "clearfun" "clearglobal" "code2str" > "coeff" "comp" "cond" "conj" "contour" "contour2d" "contour2di" "contr" > "convstr" "corr" "cos" "cumprod" "cumsum" "curblock" "dasrt" "dassl" > "debug" "deff" "definedfields" "degree" "delbpt" "delip" "delmenu" "det" > "diag" "diary" "disp" "dispbpt" "dlgamma" "double" "driver" "emptystr" > "ereduc" "erf" "erfc" "errcatch" "errclear" "error" "exec" "execstr" > "exists" "exp" > "expm" "eye" "fadj2sp" "fec" "feval" "fft" "file" "find" "floor" "format" > "fort" "fprintfMat" "freq" "fscanfMat" "fsolve" "fstair" "full" "funcprot" > "funptr" "gamma" "gammaln" "gca" "gcf" "geom3d" "getblocklabel" "getcwd" > "getdate" > "getenv" "getf" "getfield" "getpid" "getscicosvars" "glist" "global" > "grand" "grayplot" "gschur" "gsort" "gspec" "gstacksize" "havewindow" > "help" "hess" "host" "iconvert" "ieee" "imag" "impl" "inpnvi" "int" "int16" > "int2d" "int32" "int3d" "int8" "interp" "intg" "intppty" "inttype" "inv" > "iserror" "isglobal" "isreal" "kron" "ldiv" "ldivf" "legend" "length" "lib" > "lines" "link" "list" "load" "loadwave" "log" "log10" "lsslist" "lstcat" > "ltitr" "lu" "ludel" "lufact" "luget" "lusolve" "lyap" "m6bandred" "m6bmatch" > "m6busack" "m6cent" "m6chcm" "m6clique" "m6clique1" "m6compc" "m6compfc" > "m6concom" "m6deumesh" "m6dfs" "m6dfs2" "m6diam" "m6dijkst" "m6dmtree" > "m6edge2st" "m6findiso" "m6flomax" "m6floqua" "m6fordfulk" "m6frang" "m6hamil" > "m6hullcvex" "m6inimet" "m6johns" "m6kilter" "m6knapsk" "m6loadg" > "m6lp2tad" "m6lp2tau" "m6mesh2b" "m6meshmesh" "m6metasync" "m6ns2p" "m6p2ns" > "m6pcchna" "m6permuto" "m6prevn2p" "m6prevn2st" "m6prfmatch" "m6relax" > "m6saveg" "m6sconcom" "m6showg" "m6showns" "m6showp" "m6ta2lpd" > "m6ta2lpu" "m6tconex" "m6transc" "m6umtree" "m6umtree1" "m6visitor" "macr2lst" > "matrix" "max" "maxi" "mclearerr" "mclose" "mean" "meof" "mfprintf" "mfscanf" > "mget" "mgetstr" "min" "mini" "mlist" "mode" "mopen" "mprintf" "mput" > "mputstr" "mscanf" "mseek" "msprintf" "msscanf" "mtell" "mtlb_mode" > "mtlb_sparse" "mulf" "netclose" "netwindow" "netwindows" "newfun" "nnz" "norm" > "ode" "odedc" "oldload" "oldsave" "ones" "optim" "ordmmd" "param3d" > "param3d1" "part" "pinv" "plot" "plot2d" "plot2d1" "plot2d2" "plot2d3" "plot2d4" > "plot3d" "plot3d1" "poly" "ppol" "pppdiv" "predef" "print" "printf" "prod" > "pvm_addhosts" "pvm_barrier" "pvm_bcast" "pvm_config" "pvm_delhosts" > "pvm_error" "pvm_exit" "pvm_get_timer" "pvm_getinst" "pvm_gettid" "pvm_gsize" > "pvm_halt" "pvm_joingroup" "pvm_kill" "pvm_lvgroup" "pvm_mytid" "pvm_parent" > "pvm_recv" "pvm_recv_var" "pvm_reduce" "pvm_send" "pvm_send_var" > "pvm_set_timer" "pvm_spawn" "pvm_spawn_independentIN_pvm" "pvm_start" > "pvm_tasks" "pvm_tidtohost" "qpqpqp" "qr" "rand" "rank" "rat" "rcond" "rdivf" > "read" "read4b" "readb" "readgif" "readmps" "readxbm" "real" "remez" "residu" > "resume" "return" "ricc" "rlist" "roots" "round" "rpem" "rref" "rtitr" > "save" "savewave" "scf" "schur" "sci_tree2" "sci_tree3" "sci_tree4" "sciargs" > "scicosim" "sctree" "semidef" "setbpt" "setfield" "setmenu" > "setscicosvars" "sfact" "sfinit" "sign" "simp" "simp_mode" "sin" "size" "sort" > "sparse" "spchol" "spcompack" "spec" "spget" "splin" "sprintf" "sqrt" "stacksize" > "stdev" "str2code" "strcat" "strindex" "string" "strsubst" "subf" "subplot" "sum" > "sva" "svd" "sylv" "symfcti" "syredi" "testmatrix" "timer" "tlist" "tr_zer" "tril" > "triu" "type" "typename" "uint16" "uint32" "uint8" "ulink" "unix" "unsetmenu" > "user" "var2vec" "variance" "varn" "vec2var" "what" "where" "whereis" "who" > "winsid" "writb" "write" "write4b" "x_choose" "x_dialog" "x_mdialog" > "x_message" "xarc" "xarcs" "xarrows" "xaxis" "xchange" "xchoicesi" "xclea" > "xclear" "xclick" "xdel" "xend" "xfarc" "xfarcs" "xfpoly" "xfpolys" > "xfrect" "xg2ps" "xget" "xgetech" "xgetfile" "xgetmouse" "xgraduate" "xgrid" > "xinfo" "xinit" "xlfont" "xload" "xname" "xnumb" "xpause" "xpoly" "xpolys" > "xrect" "xrects" "xs2eps" "xs2fig" "xs2ps" "xsave" "xsegs" "xselect" "xset" > "xsetech" "xstring" "xstringl" "xtape" "xtitle" "zeros" > ;;; from the file "$SCI/routines/fraclab/fundef.fraclab > "FWT" "FWT2D" "IWT" "IWT2D" "Koutrouvelis" "McCulloch" "WTDwnHi" "WTDwnLo" > "alphagifs" "bbch" "beep" "binom" "cfg1d" "cwt" "fcfg1d" "fch1d" "fif" > "gifs2wave" "gifseg" "holder2d" "lepskiiap" "linearlt" "mcfg1d" "mch1d" > "mdfl1d" "mdzq1d" "mdzq2d" "monolr" "multim1d" "multim2d" "prescalpha" > "readgif" "reynitq" "sbinom" "sgifs" "sim_stable" "smultim1d" "smultim2d" > "stable_cov" "stable_sm" "stable_test" "wave2gifs" > ;;; from the file $SCI/routines/tksci/fundef.tksci > "TK_DoOneEvent" "TK_EvalFile" "TK_EvalStr" "TK_GetVar" "TK_SetVar" "close" > "essai" "figure" "findobj" "gcf" "get" "getgvar" "opentk" "set" "setgvar" > "uicontrol" "uimenu") > "List of Scilab Builtin functions. Not so elegant, but stable. It is taken > from 3 files: $SCI/routines/default/fundef and $SCI/routines/default/fundef > This list admits further extensions" > :group 'scilab-shell > :type '(repeat (string :tag "Name: ")) > ) > > (defcustom scilab-user-keywords-list > '("demos" "info" "help" "doc" "apropos" "what" "whos" "end" "cd" "end" "clear" "load" "save" "getf" "getd" "make" "whereis" "whereami" "where" "break" "pause" "resume " "quit" "exit" "stop" "abort" "do" "xset" "xget" "deff") > "List of words a user wants to higlight as keywords" > :group 'scilab-shell > :type '(repeat (string :tag "Name: ") > )) > > (defvar scilab-path-type-regexp "[\'\" ]?[~/.$]/*[a-zA-Z0-9_./%$-]*" > "Regexp describing possible path string when we are working with disk. Should > ;be changed for MSDOS" > ) > > > (defun scilab-make-regexp-from-builtin () > "Make regexp from builtin list of strings" > (concat "\\<\\(" (mapconcat 'regexp-quote scilab-builtin-list "\\|") > "\\)\\>") > ) > > (defcustom scilab-libfunc-list-path (if (getenv "SCILIBFUNC") (getenv "SCILIBFUNC") (concat (if (getenv "SCIHOME") (getenv "SCIHOME") (getenv "HOME")) "/libfunc")) > "*The path to the file where all library functions are listed. Need for efficient completion mechanism. You don't have to build this file, it will be done automatically" > :group 'scilab > :group 'scilab-setup > :type 'string) > > > (defun scilab-make-regexp-from-libfunc () > "Make regexp from libfunc file" > (if (not (file-exists-p scilab-libfunc-list-path)) > "\\<\\(genlib\\)\\>" > (let ((currbuf (current-buffer)) (buff nil) (lst nil)) > (find-file scilab-libfunc-list-path) > (setq buff (current-buffer)) > (setq lst (split-string (buffer-substring-no-properties (point-min) (point-max)))) > (kill-buffer buff) > (switch-to-buffer currbuf) > (concat "\\<\\(" (mapconcat 'regexp-quote lst "\\|") > "\\)\\(\\s-*[()=\n,;~]" > "\\|\\s-+" scilab-valid-variable-name > "\\|\\s-+" scilab-path-type-regexp "\\)") > ) > ) > ) > (defvar scilab-font-lock-keywords > (list > ;; String quote chars are also used as transpose, but only if directly > ;; after characters, numbers, underscores, or closing delimiters. > '(scilab-font-lock-string-match-normal 2 scilab-string-face) > ;; A string with no termination is not currently highlighted. > ;; This will show that the string needs some attention. > '(scilab-font-lock-string-match-unterminated > 2 scilab-unterminated-string-face) > ;; Comments must occur after the string, that way we can check to see > ;; if the comment start char has occurred inside our string. (EL) > '(scilab-font-lock-comment-match 1 scilab-comment-face) > ; ;; General keywords > ; '("\\<\\(break\\|ca\\(se\\|tch\\)\\|e\\(lse\\(\\|if\\)\\|ndfunction\\)\ > ;\\|for\\|global\\|if\\|return\\|while\\|pause\\|function\\|select\\|then\\|quit\\|exit\\|stop\\|abort\\|do\\|resume\\)\\>" > ; (0 scilab-keyword-face)) > ;; The end keyword is only a keyword when not used as an array > ;; dereferencing part. > '("\\(^\\|[;,]\\)[ \t]*\\(end\\)\\b" > 2 (if (scilab-valid-end-construct-p) scilab-keyword-face nil)) > ;; The global keyword defines some variables. Mark them. > '("^\\s-*global\\s-+" > ("\\(\\w+\\)\\(\\s-*=[^,; \t\n]+\\|[, \t;]+\\|$\\)" > nil nil (1 scilab-variable-name-face))) > '("\\<\\(ax\\(es\\|is\\)\\|figure\\|get\\|image\\|li\\(ght\\|ne\\)\\|\ > patch\\|s\\(et\\(\\|color\\|font\\)\\|urface\\)\\|text\\|\ > ui\\(cont\\(ext\\(\\|menu\\)\\|rol\\)\\|menu\\|\ > \\(toggle\\|push\\)tool\\|toolbar\\)\\)\\>" > (0 scilab-type-face)) > ;;;punctuation > '("[],.;:[)(^~=-]" 0 scilab-type-face) > ) > "Expressions to highlight in Scilab mode.") > > (defvar scilab-gaudy-font-lock-keywords > (append > scilab-font-lock-keywords > scilab-font-lock-solo-keywords > (list > ;; defining a function, a (possibly empty) list of assigned variables, > ;; function name, and an optional (possibly empty) list of input variables > (list (concat "^\\s-*\\(function\\)\\>[ \t\n.]*" > "\\(\\[[^]=()]*\\]\\|" scilab-valid-variable-name "\\)" > "[ \t\n.]*" > "=[ \t\n.]*\\(" > scilab-valid-variable-name > "\\)[ \t\n.]*" > "(?\\(" > "[^)]*" > "\\))?" > "\\s-*[,;\n//]") > '(1 scilab-keyword-face append) > '(2 scilab-variable-name-face append) > '(3 scilab-function-name-face append) > '(4 scilab-variable-name-face append) > ) > ;; defining a function, a function name without output > (list (concat "^\\s-*\\(function\\)[ \t\n.]+\\(" > scilab-valid-variable-name > "\\)[ \t\n.]*" > "\\(([^)]*)\\)") > '(1 scilab-keyword-face append) > '(2 scilab-function-name-face append) > '(3 scilab-variable-name-face append) > ) > ;; Pathalogy: only function name > (list (concat "^\\s-*\\(function\\)[ \t\n.]+\\(" > scilab-valid-variable-name "\\)") > '(1 scilab-keyword-face append) > '(2 scilab-function-name-face append) > ) > > > '("\\<\\(for\\)\\s-+\\(\\sw+\\)\\s-*=\\s-*\ > \\(\\([^\n,;//(]+\\|([^\n//)]+)\\)+\\)" > (1 scilab-keyword-face) > (2 scilab-variable-name-face append) > (3 scilab-constant-face append)) > ;; Items after a select statements are cool > '("\\<\\(case\\|select\\)\\s-+\\({[^}\n]+}\\|[^,//\n]+\\)" > (1 scilab-keyword-face) (2 scilab-constant-face)) > ;; How about a few scilab constants such as pi, infinity, and sqrt(-1)? > ;; The ^>> is in case I use this in an interactive mode someday > '("\\<\\(%eps\\|%[a-z]_[a-z]\\|%[a-z]_[a-z]_[a-z]\\|%[a-z]\\|%[A-Z]\\|%pi\\|%inf\\|Inf\\|%Inf\\|NaN\\|%nan\\|Nan\\|%Nan\\|ans\\|%i\\|%n\\|%tab\\|\\^>>\\)\\>" > (1 scilab-constant-face)) > ;; Define these as variables since this is about as close > ;; as scilab gets to variables > ;;; (list (concat "\\<" scilab-indent-past-arg1-functions "\\s-*") > ;;; '("(\\s-*\\(\\w+\\)\\s-*\\(,\\|)\\)" nil nil > ;;; (1 scilab-variable-name-face))) > ;;; I want to see fields of tlist highlighted > (list (concat scilab-valid-variable-name "\\.\\(" scilab-valid-variable-name "\\)") > '(1 scilab-tlist-field-face append)) > )) > "Expressions to highlight in Scilab mode.") > (if scilab-highlight-builtin > (setq scilab-gaudy-font-lock-keywords > (append > scilab-gaudy-font-lock-keywords > (list (list (scilab-make-regexp-from-builtin) '(1 scilab-builtin-face append)))))) > > (if scilab-highlight-macros > (setq scilab-gaudy-font-lock-keywords > (append > scilab-gaudy-font-lock-keywords > (list (list (scilab-make-regexp-from-libfunc) '(1 scilab-macros-face append)))))) > > > > > (defvar scilab-really-gaudy-font-lock-keywords > (append > scilab-gaudy-font-lock-keywords > (list > ;; Since it's a math language, how bout dem symbols? > '("\\([<>~]=?\\|\\.[*^']\\|=+\\|\\\\|[-!^&|*+\\/~:]\\)" > 1 scilab-type-face) > ;; How about references in the HELP text. > (list (concat "^" scilab-comment-line-s "\\s-*" > "\\(\\([A-Z]+\\s-*=\\s-+\\|\\[[^]]+]\\s-*=\\s-+\\|\\)" > "\\([A-Z][0-9A-Z]+\\)\\(([^)\n]+)\\| \\)\\)") > '(1 scilab-constant-face prepend)) > (list (concat "^" scilab-comment-line-s "\\s-*" > "SEE ALSO\\s-+") > '("\\([A-Z][A-Z0-9]+\\)\\([,.]\\| and\\|$\\) *" nil nil > (1 scilab-constant-face prepend))) > (list (concat "//\\s-*" > "\\(\\$Revision: 1.32 $]+\\$\\)") > '(1 scilab-constant-face prepend)) > ;; continuation ellipsis. > '("[^.]\\(\\.\\.\\.*\\)\\([^\n]*\\)" 1 scilab-keyword-face) > ; (2 scilab-comment-face)) > ;; How about debugging statements? > ;;'("\\<\\(db\\sw+\\)\\>" 1 'bold) > ;;(make-regexp '("dbstop" "dbclear" "dbcont" "dbdown" "dbmex" > ;; "dbstack" "dbstatus" "dbstep" "dbtype" "dbup" "dbquit")) > ;; '("\\<\\(db\\(c\\(lear\\|ont\\)\\|down\\|mex\\|quit\\| > ;;st\\(a\\(ck\\|tus\\)\\|ep\\|op\\)\\|type\\|up\\)\\)\\>" (0 'bold))) > '("\\<\\(\\(set\\|del\\|disp\\)bpt\\)\\>" (0 'bold))) > > (if scilab-handle-scicos > ;; Scicos functions, a scicos user has to edit this. > (list (list (concat "\\<\\(\\([sg]et_param\\|sim\\([gs]et\\)?\\|" > "\\(mld\\|ss\\)[A-Z]\\w+\\)\\|" > "\\(new\\|open\\|close\\|save\\|find\\)_system\\|" > "\\(add\\|delete\\|replace\\)_\\(block\\)\\|" > "scicos\\|bd\\(root\\|close\\)" > "\\)\\>") > '(1 scilab-scicos-keyword-face))) > nil)) > "Expressions to highlight in Scilab mode.") > > (defvar scilab-shell-font-lock-keywords > (list > ;; How about Errors? > '("\\(!--error\\)\\s-+\\([^\n]+\n\\)\\(.+\n\\)" (1 scilab-warning-face t)(2 scilab-warning-face t) (3 scilab-warning-face t)) > ;; and line numbers > '("^\\(at line\\)\\s-+\\([0-9]+\\)" (1 scilab-warning-face) (2 scilab-warning-face)) > ;; Warnings > '("\\(Warning:?\\|Warnings:?\\|WARNING:?\\|WARNINGS:?\\)" 1 scilab-warning-face prepend) > '("\\(Error:?\\|Errors:?\\|ERROR:?\\|ERRORS:?\\)" 1 scilab-warning-face prepend) > ;; User beep things > '("\\(\\?\\?\\?[^\n]+\\)" 1 scilab-warning-face) > ;; Useful user commands, but not useful programming constructs > (list (concat "\\<\\(" (regexp-opt scilab-user-keywords-list) "\\)\\>") > '(1 scilab-keyword-face)) > ;; Various notices > '("S C I L A B (R)" 0 'underline) > '("SCILAB (R)" 0 'underline) > '("S c i l a b" 0 scilab-function-name-face) > '("All Rights Reserved" 0 'italic) > '("\\((c)\\s-+Copyright[^\n]+\\)" 1 scilab-comment-face t) > '("\\(Copyright (C)\\)\\s-+\\([^\n]+\\)" (1 scilab-function-name-face t) (2 scilab-variable-name-face t)) > '("\\(Version\\)\\s-+\\([^\n]+\\)" > (1 scilab-function-name-face t) (2 scilab-variable-name-face t)) > '("\\(scilab-\\)\\([1-9]\\.?[0-9]?\\.?[0-9]?\\)" > (1 scilab-comment-face t) (2 scilab-variable-name-face t)) > ) > "Additional keywords used by Scilab when reporting errors in interactive\ > mode and displays varios messages.") > > > ;; hilit19 patterns > (defvar scilab-hilit19-patterns > '( > ("\\(^\\|[^//]\\)\\(//[ \t].*\\|//\\)$" 2 comment) > ("\\(^\\|[;,]\\)[ \t]*\\(\ > function\\|global\\|for\\|while\\|if\\|elseif\\|else\\|end\\(function\\)?\ > \\|return\\|select\\|case\\|then\\|quit\\|exit\\|stop\\|abort\\|resume\\|break\\|do\\)\\b" 2 keyword))) > > (defvar scilab-imenu-generic-expression > '((nil "^\\s-*function\\>[ \t\n.]*\\(\\(\\[[^]]*\\]\\|\\sw+\\)[ \t\n.]*\ > =\[ \t\n.]*\\)?\\(%?[a-zA-Z0-9#_]+\\)" > 3)) > "Expressions which find function headings in Scilab sci files.") > (defvar scilab-contline-regexp "\\(\\.\\.+[ \t.]*\n\\)" > "Regexp used to perform continuation on code lines. > It may be .. ... .. ... etc \n.") > > ;; May be excess, but ... > (defvar scilab-output-function-regexp "\\(\\(\\[[^]]*\\]\\|\\sw+\\)[ \t]*=[ \t]*\\)" > "Regexp used to perform output of function like []= or foo= or nothing" > ) > (defvar scilab-function-head-regexp (concat > "^\\s-*function\\>[ \t\n.]*" > scilab-output-function-regexp "?" > "[ \t\n.]*" > "\\(%?[a-zA-Z0-9#_]+\\)" > ) > "Regular Expression for function head in sci files.") > > > ;;; Scilab mode entry point ================================================== > > ;;;###autoload > (defun scilab-mode () > "Scilab-mode is a major mode for editing SCILAB dot-sci files. > \\ > Convenient editing commands are: > \\[scilab-comment-region] - Comment out a region of code. > \\[scilab-hungry-delete-forward] - Delete one non blank, or all blanks, starting from point. > \\[scilab-uncomment-region] - Comment out a region of code. > \\[scilab-fill-comment-line] - Fill the current comment line. > \\[scilab-fill-region] - Fill code and comments in region. > \\[scilab-fill-paragraph] - Refill the current command or comment. > \\[scilab-complete-symbol] - Symbol completion of scilab symbols\ > \\[scilab-indent-defun] - Indent correspondently all lines in the current function body in `scilab-mode' > > Convenient navigation commands are: > \\[scilab-beginning-of-command] - Move to the beginning of a command. > \\[scilab-end-of-command] - Move to the end of a command. > \\[scilab-beginning-of-defun] - Move to the beginning of the current function. > \\[scilab-beginning-of-next-defun] - Move to the beginning of the next function. > \\[scilab-get-number-line-in-function]-Gets number line of the current function \\[scilab-beginning-of-prev-defun] - Move to the beginning of the previous function. > \\[scilab-function-goto-line] - Move to the N-th line of the current\ > function. > > \\[scilab-end-of-defun] - Move do the end of thecurrent function. > \\[scilab-forward-sexp] - Move forward over a syntactic block of code. > \\[scilab-backward-sexp] - Move backwards over a syntactic block of code. > > Convenient template insertion commands: > \\[tempo-template-scilab-function] - Insert a function definition. > \\[tempo-template-scilab-if] - Insert an IF END block. > \\[tempo-template-scilab-for] - Insert a FOR END block. > \\[tempo-template-scilab-select] - Insert a SELECT END statement. > \\[scilab-insert-next-case] - Insert the next CASE condition in a SELECT. > \\[scilab-insert-end-block] - Insert a matched END statement. With \ > optional ARG, reindent. > \\[scilab-stringify-region] - Convert some plaintext into a string \ > with correctly quoted chars. > > Variables: > `scilab-indent-level' Level to indent blocks. > `scilab-cont-level' Level to indent continuation lines. > `scilab-case-level' Level to unindent case statements. > ;; `scilab-indent-past-arg1-functions' > ;; Regexp of functions to indent past the first > ;; argument on continuation lines. > `scilab-maximum-indents' List of maximum indents during lineups. > `scilab-comment-column' Goal column for on-line comments. > `fill-column' Column used in auto-fill. > `scilab-indent-function' If non-nil, indents body of SCILAB functions. > `scilab-return-function' Customize RET handling with this function > `scilab-auto-fill' Non-nil, do auto-fill at startup > `scilab-fill-code' Non-nil, auto-fill code. > `scilab-fill-strings' Non-nil, auto-fill strings. > `scilab-verify-on-save-flag' Non-nil, enable code checks on save > `scilab-highlight-block-match-flag' > Enable matching block begin/end keywords > `scilab-vers-on-startup' If t, show version on start-up. > `scilab-handle-scicos' If t, enable scicos keyword highlighting. > > All Key Bindings: > \\{scilab-mode-map}" > (interactive) > (kill-all-local-variables) > (use-local-map scilab-mode-map) > (setq major-mode 'scilab-mode) > (setq mode-name "Scilab") > (setq local-abbrev-table scilab-mode-abbrev-table) > (set-syntax-table scilab-mode-syntax-table) > (make-local-variable 'indent-line-function) > (setq indent-line-function 'scilab-indent-line) > (make-local-variable 'paragraph-start) > (setq paragraph-start (concat "^$\\|" page-delimiter)) > (make-local-variable 'paragraph-separate) > (setq paragraph-separate paragraph-start) > (make-local-variable 'paragraph-ignore-fill-prefix) > (setq paragraph-ignore-fill-prefix t) > (make-local-variable 'comment-start-skip) > (setq comment-start-skip "//\\s-*") > (make-local-variable 'comment-start) > (setq comment-start "//") > (make-local-variable 'comment-column) > (setq comment-column scilab-comment-column) > > (make-local-variable 'comment-indent-function) > (setq comment-indent-function 'scilab-comment-indent) > (make-local-variable 'fill-column) > (setq fill-column default-fill-column) > (make-local-variable 'auto-fill-function) > (make-local-variable 'which-func-format) > (setq which-func-format scilab-which-func-format) > ;; These stuffs still do not work > ;; (make-local-variable 'mode-line-format) > ;; (setq mode-line-format scilab-mode-line-format) > ;; (make-local-variable 'which-function) > ;; (setq which-function 'scilab-whereami) > ;; (make-local-variable 'which-func-update) > ;; (setq which-func-update 'scilab-which-func-update) > (if scilab-auto-fill (setq auto-fill-function 'scilab-auto-fill)) > ;; Emacs 20 supports this variable. This lets users turn auto-fill > ;; on and off and still get the right fill function. > (make-local-variable 'normal-auto-fill-function) > (setq normal-auto-fill-function 'scilab-auto-fill) > (make-local-variable 'fill-prefix) > (make-local-variable 'imenu-generic-expression) > (setq imenu-generic-expression scilab-imenu-generic-expression) > ;; Save hook for verifying src. This lets us change the name of > ;; the function in `write-file' and have the change be saved. > ;; It also lets us fix mistakes before a `save-and-getf-or-run'. > (make-local-variable 'write-contents-hooks) > (add-hook 'write-contents-hooks 'scilab-mode-verify-fix-file-fn) > ;; Tempo tags > (make-local-variable 'tempo-local-tags) > (setq tempo-local-tags (append scilab-tempo-tags tempo-local-tags)) > ;; give each file it's own parameter history > (make-local-variable 'scilab-shell-save-and-go-history) > (make-local-variable 'font-lock-defaults) > (setq font-lock-defaults '((scilab-font-lock-keywords > ; scilab-font-lock-solo-keywords > ; scilab-gaudy-font-lock-keywords > scilab-really-gaudy-font-lock-keywords > ) > t ; do not do string/comment highlighting > nil ; keywords are case sensitive. > ;; This puts _ as a word constituent, > ;; simplifying our keywords significantly > ((?_ . "w")))) > (scilab-enable-block-highlighting 1) > ; (make-local-variable 'getf-exec) > ; (setq getf-exec nil) > (if window-system (scilab-frame-init)) > ; (gud-make-debug-menu) > (run-hooks 'scilab-mode-hook) > (if (and (boundp 'font-lock-mode) (fboundp 'font-lock-mode)) > (if scilab-font-lock-mode > (turn-on-font-lock) > (font-lock-mode -1))) > > (if scilab-vers-on-startup (scilab-show-version)) > (if scilab-launch-automatically > (let ((buf (current-buffer))) > (progn > (split-window-vertically) > (scilab-shell) > (set-buffer buf))))) > > ;;; Utilities ================================================================= > > (defun scilab-show-version () > "Show the versions number in the minibuffer." > (interactive) > (if (not scilab-mode-all-versions) > (message "scilab-mode, version %s" scilab-mode-version) > (message "%s" scilab-mode-all-versions) > ) > ) > (defun scilab-find-prev-line () > "Recurse backwards until a code line is found." > (if (= -1 (forward-line -1)) nil > (if (or (scilab-ltype-empty) > (scilab-ltype-comm-ignore)) > (scilab-find-prev-line) t))) > > (defun scilab-prev-line () > "Go to the previous line of code. Return nil if not found." > (interactive) > (let ((old-point (point))) > (if (scilab-find-prev-line) t (goto-char old-point) nil))) > > (defun scilab-uniquafy-list (lst) > "Return a list that is a subset of LST where all elements are unique." > (let ((nlst nil)) > (while lst > (if (and (car lst) (not (member (car lst) nlst))) > (setq nlst (cons (car lst) nlst))) > (setq lst (cdr lst))) > (nreverse nlst))) > > ; Aki Vehtari recommends this: (19.29 required) > ;(require 'backquote) > ;(defmacro scilab-navigation-syntax (&rest body) > ; "Evaluate BODY with the scilab-mode-special-syntax-table" > ; '(let ((oldsyntax (syntax-table))) > ; (unwind-protect > ; (progn > ; (set-syntax-table scilab-mode-special-syntax-table) > ; , at body) > ; (set-syntax-table oldsyntax)))) > > (defmacro scilab-navigation-syntax (&rest forms) > "Set the current environment for syntax-navigation and execute FORMS." > (list 'let '((oldsyntax (syntax-table)) > (case-fold-search nil)) > (list 'unwind-protect > (list 'progn > '(set-syntax-table scilab-mode-special-syntax-table) > (cons 'progn forms)) > '(set-syntax-table oldsyntax)))) > > (put 'scilab-navigation-syntax 'lisp-indent-function 0) > (add-hook 'edebug-setup-hook > (lambda () > (def-edebug-spec scilab-navigation-syntax def-body))) > > (defun scilab-up-list (count &optional restrict) > "Move forwards or backwards up a list by COUNT. > Optional argument RESTRICT is where to restrict the search." > ;; Scilab syntax table has no disabling strings or comments. > (let ((dir (if (> 0 count) -1 +1)) > (origin (point)) > (ms nil)) > ;; Make count positive > (setq count (* count dir)) > (if (= dir -1) > (while (/= count 0) > ;; Search till we find an unstrung paren object. > (setq ms (re-search-backward "\\s(\\|\\s)" restrict t)) > (while (and (save-match-data (scilab-cursor-in-string-or-comment)) > (setq ms (re-search-backward "\\s(\\|\\s)" restrict t)))) > (if (not ms) > (progn > (goto-char origin) > (error "Scan Error: List missmatch"))) > ;; View it's match. > (let ((s (match-string 0))) > (if (string-match "\\s(" s) > (setq count (1- count)) > (setq count (1+ count))))) > (error "Not implemented")) > ms)) > > (defun scilab-valid-end-construct-p () > "Return non-nil if the end after point terminates a block. > Return nil if it is being used to dereference an array." > (let ((p (point)) > (err1 t)) > (condition-case nil > (save-restriction > ;; Restrict navigation only to the current command line > (save-excursion > (scilab-beginning-of-command) > (narrow-to-region (point) > (progn ;;(scilab-end-of-command (point)) > (end-of-line) > (if (> p (point)) > (progn > (setq err1 nil) > (error))) > (point)))) > (save-excursion > ;; beginning of param list > (scilab-up-list -1) > ;; backup over the parens. If that fails > (condition-case nil > (progn > (forward-sexp 1) > ;; If we get here, the END is inside parens, which is not a > ;; valid location for the END keyword. As such it is being > ;; used to dereference array parameters > nil) > ;; This error means that we have an unterminated paren > ;; block, so this end is currently invalid. > (error nil)))) > ;; an error means the list navigation failed, which also means we are > ;; at the top-level > (error err1)))) > > ;;; Regexps for SCILAB language =============================================== > > ;; "-pre" means "partial regular expression" > ;; "-if" and "-no-if" means "[no] Indent Function" > > (defconst scilab-defun-regex "^\\s-*function\\>" > "Regular expression defining the beginning of a Scilab function.") > (defconst scilab-endfun-regex "^\\s-*endfunction\\>" > "Regular expression defining (not mandatory) end of a Scilab function.") > > (defconst scilab-block-beg-pre-if "function\\|for\\|while\\|if\\|select" > "Keywords which mark the beginning of an indented block. > Includes function.") > > (defconst scilab-block-beg-pre-no-if "for\\|while\\|if\\|select" > "Keywords which mark the beginning of an indented block. > Excludes function.") > > (defconst scilab-not-variable-symbol "[():; ,.^'\"\n-]") > > (defun scilab-block-beg-pre () > "Partial regular expression to recognize Scilab block-begin keywords." > (if scilab-indent-function > scilab-block-beg-pre-if > scilab-block-beg-pre-no-if)) > > (defconst scilab-block-mid-pre > "elseif\\|else\\|then" > "Partial regular expression to recognize Scilab mid-block keywords.") > > (defconst scilab-block-end-pre-if > "end\\|endfunction\\|function" > "Partial regular expression to recognize Scilab block-end keywords.") > > (defconst scilab-block-end-pre-no-if > "end" > "Partial regular expression to recognize Scilab block-end keywords.") > > (defun scilab-block-end-pre () > "Partial regular expression to recognize Scilab block-end keywords." > (if scilab-indent-function > scilab-block-end-pre-if > scilab-block-end-pre-no-if)) > > ;; Not used. > ;;(defconst scilab-other-pre > ;; "function\\|return" > ;; "Partial regular express to recognize Scilab non-block keywords.") > > (defconst scilab-endless-blocks > ; "case\\|else\\|elseif" > "case" > "Keywords which initialize new blocks, but don't have explicit ends. > Thus, they are endless. A new case or else will end a previous > endless block, and and end will end this block, plus any outside normal > blocks.") > > (defun scilab-block-re () > "Regular expression for keywords which begin Scilab blocks." > (concat "\\(^\\|[;,]\\)\\s-*\\(" > (scilab-block-beg-pre) "\\|" > scilab-block-mid-pre "\\|" > (scilab-block-end-pre) "\\|" > scilab-endless-blocks "\\)\\b")) > > (defun scilab-block-scan-re () > "Expression used to scan over matching pairs of begin/ends." > (concat "\\(^\\|[;,]\\)\\s-*\\(" > (scilab-block-beg-pre) "\\|" > (scilab-block-end-pre) "\\)\\b")) > > (defun scilab-block-beg-re () > "Expression used to find the beginning of a block." > (concat "\\(" (scilab-block-beg-pre) "\\)")) > > (defun scilab-block-mid-re () > "Expression used to find block center parts (like else)." > (concat "\\(" scilab-block-mid-pre "\\)")) > > (defun scilab-block-end-re () > "Expression used to end a block. Usually just `end'." > (concat "\\(" (scilab-block-end-pre) "\\)")) > > (defun scilab-block-end-no-function-re () > "Expression representing and end if functions are excluded." > (concat "\\<\\(" scilab-block-end-pre-no-if "\\)\\>")) > > (defun scilab-endless-blocks-re () > "Expression of block starters that do not have associated ends." > (concat "\\(" scilab-endless-blocks "\\)")) > > (defconst scilab-cline-start-skip "[ \t]*//[ \t]*" > "*The regular expression for skipping comment start.") > > ;;; Lists for scilab keywords ================================================= > > (defvar scilab-keywords-solo > '("break" "case" "else" "elseif" "end" "for" "function" "if" > "abort" "pause" "resume" "quit" "exit" "return" "select" "while" "then") > "Keywords that appear on a line by themselves.") > > > (defvar scilab-keywords-boolean > '("and" "or" "exist" "isempty" "isequal" "ishold" "isfinite" "isglobal" > "isinf" "islogical" "isboolean ""isnan" "isprime" "isreal" "isspace" > "logical" "isdatelst" "isassarray" "islist" "istlist" "isufun" "isstr" "ispoly" "islib" "isfun") > "List of keywords that are typically used as boolean expressions.") > > (defvar scilab-core-properties > '("ButtonDownFcn" "Children" "Clipping" "CreateFcn" "DeleteFcn" > "BusyAction" "HandleVisibility" "HitTest" "Interruptible" > "Parent" "Selected" "SelectionHighlight" "Tag" "Type" > "UIContextMenu" "UserData" "Visible") > "List of properties belonging to all HG objects.") > > (defvar scilab-property-lists > '( > ("xset\\|xget". > ("alufunction" "background" "clipping" "colormap" "dashes" "default" > "font" "foreground" "fpf" "hidden3d" "line mode" "mark" "pattern" > "pixmap" "thickness" "use color" "viewport" "wdim" "window" "wpos" > "wresize" "wshow" "wwpc" "wpos" "lastpattern")) > > ("text\\|title\\|xlabel\\|ylabel\\|zlabel\\|xtitle" . > ("Color" "EraseMode" "Editing" "Extent" "FontAngle" "FontName" > "FontSize" "FontUnits" "FontWeight" "HorizontalAlignment" > "Position" "Rotation" "String" "Units" "Interpreter" > "VerticalAlignment")) > ("uicontextmenu" . ("Callback")) > ("uicontrol" . > ("BackgroundColor" "callback" "CData" "Enable" "Extent" > "fontangle" "fontname" "fontsize" "fontunits" "fontweight" > "ForegroundColor" "HorizontalAlignment" "ListboxTop" "Max" "Min" > "Position" "String" "Style" "SliderStep" "TooltipString" "Units" > "Value")) > ("uimenu" . > ("label" "windows" "operations" "callback" "ForegroundColor" > "Label" "Position" "Separator")) > ;; Flesh this out more later. > > ) > "List of property lists on a per object type basis.") > > (defvar scilab-unknown-type-commands > "[gs]et\\|findobj\\|waitfor" > "Expression for commands that have unknown types.") > > (defun scilab-all-known-properties () > "Return a list of all properties." > (let ((lst scilab-core-properties) > (tl scilab-property-lists)) > (while tl > (setq lst (append lst (cdr (car tl))) > tl (cdr tl))) > (scilab-uniquafy-list lst))) > > (defvar scilab-all-known-properties (scilab-all-known-properties) > "List of all the known properties.") > > > (defmacro scilab-property-function () > "Regexp of all builtin functions that take property lists." > '(let ((r scilab-unknown-type-commands) > (tl scilab-property-lists)) > (while tl > (setq r (concat r "\\|" (car (car tl))) > tl (cdr tl))) > r)) > > ;;; Navigation =============================================================== > > (defvar scilab-scan-on-screen-only nil > "When this is set to non-nil, then forward/backward sexp stops off screen. > This is so the block highlighter doesn't gobble up lots of time when > a block is not terminated.") > > (defun scilab-backward-sexp (&optional autoend noerror) > "Go backwards one balanced set of Scilab expressions. > If optional AUTOEND, then pretend we are at an end. > If optional NOERROR, then we return t on success, and nil on failure." > (interactive "P") > (scilab-navigation-syntax > (if (and (not autoend) > (save-excursion (backward-word 1) > (or (not > (and (looking-at > (scilab-block-end-no-function-re)) > (scilab-valid-end-construct-p))) > (scilab-cursor-in-string-or-comment)))) > ;; Go backwards one simple expression > (forward-sexp -1) > ;; otherwise go backwards recursively across balanced expressions > ;; backup over our end > (if (not autoend) (forward-word -1)) > (let ((done nil) (start (point)) (returnme t)) > (while (and (not done) > (or (not scilab-scan-on-screen-only) > (pos-visible-in-window-p))) > (if (re-search-backward (scilab-block-scan-re) nil t) > (progn > (goto-char (match-beginning 2)) > (if (looking-at (scilab-block-end-no-function-re)) > (if (or (scilab-cursor-in-string-or-comment) > (not (scilab-valid-end-construct-p))) > nil > ;; we must skip the expression and keep searching > (forward-word 1) > (scilab-backward-sexp)) > (if (not (scilab-cursor-in-string-or-comment)) > (setq done t)))) > (goto-char start) > (if noerror > (setq returnme nil) > (error "Unstarted END construct")))) > returnme)))) > > (defun scilab-forward-sexp () > "Go forward one balanced set of Scilab expressions." > (interactive) > (scilab-navigation-syntax > ;; skip over preceeding whitespace > (skip-chars-forward " \t\n;") > (if (or (not (looking-at (concat "\\(" > (scilab-block-beg-pre) > "\\)\\>"))) > (scilab-cursor-in-string-or-comment)) > ;; Go forwards one simple expression > (forward-sexp 1) > ;; otherwise go forwards recursively across balanced expressions > (forward-word 1) > (let ((done nil) (s nil) > (expr-scan (scilab-block-scan-re)) > (expr-look (scilab-block-beg-pre))) > (while (and (not done) > (setq s (re-search-forward expr-scan nil t)) > (or (not scilab-scan-on-screen-only) > (pos-visible-in-window-p))) > (goto-char (match-beginning 2)) > (if (looking-at expr-look) > (if (scilab-cursor-in-string-or-comment) > (forward-word 1) > ;; we must skip the expression and keep searching > (scilab-forward-sexp)) > (forward-word 1) > (if (and (not (scilab-cursor-in-string-or-comment)) > (scilab-valid-end-construct-p)) > (setq done t)))) > (if (not s) (error "Unterminated block")))))) > > (defun scilab-beginning-of-defun () > "Go to the beginning of the current function. If the current pointer is between two functions then go to the beginning of the above function" > (interactive) > (end-of-line) > (or (re-search-backward scilab-defun-regex nil t) > (goto-char (point-min)))) > > > (defun scilab-mark-defun () > "Put mark at end of Scilab function, point at beginning. > The marks are pushed." > (interactive) > (push-mark (point) nil t) > (scilab-end-of-defun) > (beginning-of-line 2) > (push-mark (point) nil t) > (scilab-beginning-of-defun)) > > (defun scilab-end-of-defun () > "Go to the end of the current function. If the current pointer is between > two functions go to the end of the above function" > (interactive) > (scilab-beginning-of-defun) > (or (progn > (if (looking-at scilab-defun-regex) (goto-char (match-end 0))) > (if (re-search-forward (concat "\\(" scilab-defun-regex > "\\|" scilab-endfun-regex "\\)") nil t) > (progn > (beginning-of-line) > (if (looking-at scilab-endfun-regex) > t > (forward-line -1)) > (point) > ))) > (goto-char (point-max)))) > > (defun scilab-beginning-of-prev-defun () > "Go to the beginning of the previous function." > (interactive) > (scilab-beginning-of-defun) > (forward-line -1) > (scilab-beginning-of-defun) > ) > > (defun scilab-beginning-of-next-defun () > "Go to the beginning of the previous function." > (interactive) > (scilab-end-of-defun) > (forward-line 1) > (beginning-of-line) > (or (re-search-forward scilab-defun-regex nil t) > (goto-char (point-max))) > (beginning-of-line) > ) > > (defun scilab-function-goto-line (nline) > "Go to the Nth line of the current function. If the number is more > then the number of lines into function - go to the end of the function" > (interactive "NGoto the function's line: " ) > (setq nline (prefix-numeric-value nline)) > (scilab-end-of-defun) > (let ((ep (point))) > (scilab-beginning-of-defun) > (forward-line (- nline 1)) > (if (< ep (point)) > (goto-char ep))) > ) > > (defun scilab-beginning-of-command () > "Go to the beginning of an sci command. > Travels across continuations." > (interactive) > (beginning-of-line) > (let ((p nil) > ;; This restriction is a wild guess where to end reverse > ;; searching for array continuations. The reason is that > ;; scilab-up-list is very slow, and most people would never > ;; put a blank line in a matrix. Either way, it's worth the > ;; trade off to speed this up for large files. > ;; This list of keywords is NOT meant to be comprehensive. > (r (save-excursion > (re-search-backward > "^\\s-*\\(//\\|if\\|else\\(if\\)\\|while\\|for\\|$\\)\\>" > nil t)))) > (while (and (or (save-excursion (and (scilab-prev-line) > (scilab-lattr-cont))) > (setq p (scilab-lattr-array-cont r))) > (save-excursion (beginning-of-line) (not (bobp)))) > (if p (goto-char p) (scilab-prev-line)) > (setq p nil)) > (back-to-indentation))) > > (defun scilab-end-of-command (&optional beginning) > "Go to the end of an sci command. > Optional BEGINNING is where the command starts from." > (interactive) > (while (and (or (scilab-lattr-cont) > (save-excursion > (forward-line 1) > (and (not (eobp)) > (or (scilab-ltype-continued-comm) > (scilab-lattr-array-cont beginning))))) > ;; This hack is a short circuit. If a user did not > ;; correctly end a matrix, this will short-circuit > ;; as soon as somethng that would never appear in a matrix > ;; becomes visible. > (not (save-excursion > (beginning-of-line) > (looking-at (scilab-block-scan-re))))) > (forward-line 1)) > (end-of-line)) > > > ;;; Line types and attributes ================================================= > > (defun scilab-ltype-empty () ; blank line > "Return t if current line is empty." > (save-excursion > (beginning-of-line) > (if (equal (buffer-name) (concat "*" scilab-shell-buffer-name "*")) > (looking-at (concat "^\\(" comint-prompt-regexp "\\)?[ \t]*$")) > (looking-at "^[ \t]*$")))) > > (defun scilab-ltype-comm () ; comment line > "Return t if current line is a SCILAB comment line." > (save-excursion > (beginning-of-line) > (looking-at "[ \t]*//.*$"))) > > (defun scilab-ltype-comm-ignore () ; comment out a region line > "Return t if current line is a SCILAB comment region line." > (save-excursion > (beginning-of-line) > (looking-at (concat "[ \t]*" scilab-comment-region-s)))) > > (defun scilab-ltype-help-comm () > "Return t if the current line is part of the SCILAB help comment." > (save-excursion > (if (not (scilab-ltype-comm)) > nil > (while (and (scilab-ltype-comm) (not (bobp)) > (scilab-prev-line)) > (beginning-of-line)) > (scilab-ltype-function-definition)))) > > (defun scilab-ltype-endfunction-comm () > "Return t if the current line is an ENDFUNCTION style comment." > (save-excursion > (if (not (scilab-ltype-comm)) > nil > (beginning-of-line) > (if (looking-at "^[ \t]*//[ \t]*endfunction") > t > (while (and (or (scilab-ltype-comm) > (scilab-ltype-empty)) > (not (eobp))) > (forward-line 1)) > (scilab-ltype-function-definition))))) > > (defun scilab-ltype-continued-comm () > "Return column of previous line's comment start, or nil." > (save-excursion > (beginning-of-line) > (if (or (not (scilab-ltype-comm)) (bobp)) > nil > ;; We use forward-line and not scilab-prev-line because > ;; we want blank lines to terminate this indentation method. > (forward-line -1) > (let ((col (scilab-lattr-comm))) > (if col > (progn > (goto-char col) > (current-column)) > nil))))) > > (defun scilab-ltype-function-definition () > "Return t if the current line is a function definition." > (save-excursion > (beginning-of-line) > (looking-at scilab-defun-regex))) > > (defun scilab-ltype-code () ; line of code > "Return t if current line is a SCILAB code line." > (and (not (scilab-ltype-empty)) (not (scilab-ltype-comm)))) > > (defun scilab-lattr-comm () ; line has comment > "Return t if current line contain a comment." > (save-excursion (scilab-comment-on-line))) > > (defun scilab-lattr-cont () ; line has continuation > "Return non-nil if current line ends in ... and optional comment." > (save-excursion > (beginning-of-line) > (and (re-search-forward "[^ \t.][ \t]*\\.\\.+[ \t]*\\(//.*\\)?$" > (scilab-point-at-eol) t) > (progn (goto-char (match-beginning 0)) > (not (scilab-cursor-in-comment)))))) > > (defun scilab-lattr-array-cont (&optional restrict) > "Return non-nil if current line is in an array. > If the entirety of the array is on this line, return nil. > Optional option RESTRICT is the distrance to restrict the search." > (condition-case nil > (save-excursion > (beginning-of-line) > (scilab-up-list -1 restrict) > (and (looking-at "[[{]") (point))) > (error nil))) > > (defun scilab-lattr-array-end () > "Return non-nil if the current line closes an array. > by close, the first character is the end of an array." > (save-excursion > (back-to-indentation) > (and (looking-at "[]}]") (scilab-lattr-array-cont)))) > > (defun scilab-lattr-block-cont (&optional eol) > "Return a number representing the number of unterminated block constructs. > This is any block, such as if, or for that doesn't have an END on this line. > Optional EOL indicates a virtual end of line." > (let ((v 0)) > (save-excursion > (beginning-of-line) > (save-restriction > (narrow-to-region (point) (or eol (scilab-point-at-eol))) > (scilab-navigation-syntax > (while (re-search-forward (concat "\\<" (scilab-block-beg-re) "\\>") > nil t) > (if (scilab-cursor-in-string-or-comment) > ;; Do nothing > nil > ;; Increment counter, move to end. > (setq v (1+ v)) > (let ((p (point))) > (forward-word -1) > (condition-case nil > (progn > (scilab-forward-sexp) > (setq v (1- v))) > (error (goto-char p)))))) > (if (= v 0) nil v)))))) > > (defun scilab-lattr-middle-block-cont () > "Return the number of middle block continuations. > This should be 1 or nil, and only true if the line starts with one of these > special items." > (save-excursion > (back-to-indentation) > (if (looking-at (concat (scilab-block-mid-re) "\\>")) > 1 > nil))) > > (defun scilab-lattr-endless-block-cont () > "Return the number of middle block continuations. > This should be 1 or nil, and only true if the line starts with one of these > special items." > (save-excursion > (back-to-indentation) > (if (looking-at (concat (scilab-endless-blocks-re) "\\>")) > 1 > nil))) > > (defun scilab-lattr-block-close () > "Return the number of closing block constructs. (not used yet)." > (let ((v 0)) > (save-excursion > (end-of-line) > (save-restriction > (narrow-to-region (scilab-point-at-bol) (point)) > (while (and (re-search-backward (scilab-block-end-re) nil t) > (scilab-valid-end-construct-p)) > (setq v (1+ v)) > (condition-case nil > (progn > (scilab-backward-sexp t) > (setq v (1- v))) > (error nil))) > (if (= v 0) nil v))))) > > (defun scilab-lattr-local-end () > "Return t if this line begins with an end construct." > (save-excursion > (back-to-indentation) > (let ((scilab-indent-function nil)) > (and (looking-at (concat "\\<" (scilab-block-end-re) "\\>")) > (scilab-valid-end-construct-p))))) > > (defun scilab-lattr-semantics (&optional prefix) > "Return the semantics of the current position. > Values are nil 'solo, 'value, and 'boolean. Boolean is a subset of > value. nil means there is no semantic content (ie, string or comment.) > If optional PREFIX, then return 'solo if that is the only thing on the > line." > (let ((pref "") (str "") (pathstr nil) (yeslist t)) > (if prefix (setq pref prefix)) > (if (equal (buffer-name) (concat "*" scilab-shell-buffer-name "*")) > (setq str comint-prompt-regexp)) > ; (if prefix (setq prefix (regexp-quote prefix))) > (cond ;((scilab-cursor-in-string-or-comment) > ;nil) > ((or (scilab-ltype-empty) > (member (preceding-char) '(? ?\t ?\n ?, ?\( ?\[ ?\' ?\")) > ; (save-excursion > ; (beginning-of-line) > ; (looking-at ".*[]([,)}{]$")) > ) > nil) > ((save-excursion > (setq pathstr > (buffer-substring-no-properties > (save-excursion > (beginning-of-line) > (point)) > (point))) > (string-match (concat ".*" "[\t ,([]" scilab-path-type-regexp "$") pathstr)) > 'disk) > > ((and prefix (scilab-shell-active-p) (save-excursion > (beginning-of-line) > (if (not (string-match "\\(%\\(\\w\\|[$_]\\)*\\|\\(\\w\\|[$_]\\)+\\)\\.\\(\\w\\|[$_.]\\)*" prefix)) > nil > (let* (( lst (match-string 1 prefix)) > (scistr (concat "type(" lst ")==16")) > (res (scilab-shell-collect-command-output scistr))) > (if (string-match "T" res) t (setq yeslist nil))) > ) > )) > 'list) > ((and prefix (string-match "\\." prefix)) nil) > ((and prefix (save-excursion > (beginning-of-line) > (looking-at (concat "\\(" str "\\)?\\s-*" prefix "\\s-*$")))) > 'solo) > ;;; ((save-excursion > ; (scilab-beginning-of-command) > ;;; (beginning-of-line) > ;;; (looking-at (concat "\\(" str "\\)?\\s-*\\(if\\|elseif\\|while\\|then\\)\\>"))) > ;;; 'boolean) > ((save-excursion > ; (scilab-beginning-of-command) > (beginning-of-line) > (looking-at (concat "\\(" str > "\\)?\\s-*\\(" > (scilab-property-function) > "\\)\\>"))) > 'property) > (t > 'value)))) > > > > > (defun scilab-function-called-at-point () > "Return a string representing the function called nearby point." > (save-excursion > (beginning-of-line) > (cond ((looking-at "\\s-*\\([a-zA-Z]\\w+\\)[^=][^=]") > (match-string 1)) > ((and (re-search-forward "=" (scilab-point-at-eol) t) > (looking-at "\\s-*\\([a-zA-Z]\\w+\\)\\s-*[^=]")) > (match-string 1)) > (t nil)))) > > (defun scilab-cursor-in-string-or-comment () > "Return t if the cursor is in a valid Scilab comment or string." > ;; comment and string depend on each other. Here is one test > ;; that does both. > (save-restriction > (narrow-to-region (scilab-point-at-bol) (scilab-point-at-eol)) > (let ((p (1+ (point))) > (returnme nil) > (sregex (concat scilab-string-start-regexp "['\"]")) > (prechar nil) > (prechar2 nil)) > (save-excursion > (goto-char (point-min)) > (while (and (re-search-forward > (concat "['\"]\\|//\\|" (regexp-quote scilab-elipsis-string)) > nil t) > (<= (point) p)) > (setq prechar (preceding-char)) > (backward-char 1) > (setq prechar2 (preceding-char)) > (backward-char -1) > (if (or (and (= ?/ prechar) (= ?/ prechar2)) > (= ?. (preceding-char))) > ;; Here we are in a comment for the rest of it. > (progn > (goto-char p) > (setq returnme t)) > ;; Here, we could be a string start, or transpose... > (if (or (= (current-column) 1) > (save-excursion (forward-char -2) > (looking-at sregex))) > ;; a valid string start, find the end > (let ((f (re-search-forward scilab-string-end-regexp nil t))) > (if f > (setq returnme (> (point) p)) > (setq returnme t))) > ;; Ooops, a transpose, keep going. > )))) > returnme))) > > (defun scilab-cursor-in-comment () > "Return t if the cursor is in a valid Scilab comment." > (save-match-data > (save-restriction > (narrow-to-region (scilab-point-at-bol) (scilab-point-at-eol)) > (save-excursion > (let ((prev-match nil)) > (while (and (re-search-backward > (concat "//\\|" (regexp-quote scilab-elipsis-string) "+") > nil t) > (not (scilab-cursor-in-string))) > (setq prev-match (point))) > (if (and prev-match (scilab-cursor-in-string)) > (goto-char prev-match)) > (and (looking-at (concat "//\\|" > (regexp-quote scilab-elipsis-string))) > (not (scilab-cursor-in-string)))))))) > > (defun scilab-cursor-in-string (&optional incomplete) > "Return t if the cursor is in a valid Scilab string. > If the optional argument INCOMPLETE is non-nil, then return t if we > are in what could be a an incomplete string." > (let ((m (match-data)) > (returnme nil)) > (save-restriction > (narrow-to-region (scilab-point-at-bol) (scilab-point-at-eol)) > (let ((p (1+ (point))) > (sregex (concat scilab-string-start-regexp "['\"]")) > (instring nil) > (prechar nil) > (prechar2 nil)) > (save-excursion > ;; Comment hunters need strings to not call the comment > ;; identifiers. Thus, this routines must be savvy of comments > ;; without recursing to them. > (goto-char (point-min)) > (while (or (and instring (looking-at "['\"]")) > (and (re-search-forward > (concat "['\"]\\|//\\|" > (regexp-quote scilab-elipsis-string)) > nil t) > (<= (point) p) > ;; Short circuit to fix this. > (progn (setq instring nil) t))) > ;; The next line emulates re-search-foward > (if instring (goto-char (match-end 0))) > (setq prechar (preceding-char)) > (backward-char 1) > (setq prechar2 (preceding-char)) > (backward-char -1) > (if (or (and (= ?/ prechar) (= ?/ prechar2)) > (= ?. (preceding-char))) > ;; Here we are in a comment for the rest of it. > ;; thus returnme is a force-false. > (goto-char p) > ;; Here, we could be in a string start, or transpose... > (if (or (= (current-column) 1) > instring > (save-excursion (forward-char -2) > (looking-at sregex))) > ;; a valid string start, find the end > (let ((f (re-search-forward scilab-string-end-regexp nil t))) > (if (and (not f) incomplete) > (setq returnme t) > (setq returnme (> (point) p)) > (setq instring t))) > ;; Ooops, a transpose, keep going. > )))))) > (set-match-data m) > returnme)) > > > (defun scilab-comment-on-line () > "Place the cursor on the beginning of a valid comment on this line. > If there isn't one, then return nil, point otherwise." > (interactive) > (let ((eol (scilab-point-at-eol)) > (p (point)) > (signal-error-on-buffer-boundary nil)) > (beginning-of-line) > (while (and (re-search-forward "//" eol t) > (save-excursion (forward-char -2) (scilab-cursor-in-string t)))) > (if (not (bolp)) (forward-char -2)) > (if (looking-at "//") > (point) > (goto-char p) > nil))) > > ;;; Indent functions ========================================================== > > (defun scilab-indent-line () > "Indent a line in `scilab-mode'." > (interactive) > (let ((i (scilab-calc-indent)) > (c (current-column))) > (save-excursion > (back-to-indentation) > (if (= i (current-column)) > nil > (beginning-of-line) > (delete-horizontal-space) > (indent-to i)) > ;; If line contains a comment, format it. > (if () (if (scilab-lattr-comm) (scilab-comment)))) > (if (<= c i) (move-to-column i)))) > > (defun scilab-indent-defun () > "Indent correspondently all lines in the current function body in `scilab-mode'" > (interactive) > (save-excursion > (let ( > (start (scilab-beginning-of-defun)) > (end (scilab-end-of-defun))) > (indent-region start end nil) > ) > )) > > (defun scilab-calc-indent () > "Return the appropriate indentation for this line as an integer." > (interactive) > (if (save-excursion > (beginning-of-line) > (looking-at "^\\s-*endfunction")) > (save-excursion > (scilab-beginning-of-defun) > (looking-at "\\s-*\\(function\\)") > (- (match-beginning 1) (point)) > ) > (let* ((tli (save-excursion (scilab-beginning-of-command) > (scilab-point-at-bol))) > (ci (save-excursion (or (scilab-prev-line) > (progn (beginning-of-line) > (forward-line -1))) > (scilab-beginning-of-command) > (scilab-next-line-indentation))) > (sem (scilab-calculate-indentation (if (>= ci tli) 0 ci)))) > ;; simplistic > (nth 1 sem)) > ) > ) > > (defun scilab-calculate-indentation (current-indentation) > "Calculate out the indentation of the current line. > Return a list of descriptions for this line. Return format is: > '(TYPE DEPTHNUMBER) > where TYPE is one of (comment, code, function, blockstart, blockmid, > blockendless, blockend) DEPTHNUMBER is how many characters to indent > this line. > Argument CURRENT-INDENTATION is what the previous line thinks > this line's indentation should be." > (let ((ci current-indentation) > (tmp nil)) > (cond > ;; COMMENTS > ((scilab-ltype-comm) > (cond > ;; HELP COMMENT and COMMENT REGION > ((or (scilab-ltype-help-comm) > (scilab-ltype-comm-ignore)) > (list 'comment-help 0)) > ;; COMMENT Continued From Previous Line > ((setq tmp (scilab-ltype-continued-comm)) > (list 'comment tmp)) > ;; END FUNCTION COMMENT > ((scilab-ltype-endfunction-comm) > (list 'comment-endfunction 0)) > (t > (list 'comment ci)))) > ;; FUNCTION DEFINITION > ((scilab-ltype-function-definition) > (list 'function 0)) > ;; END keyword > ((scilab-lattr-local-end) > (list 'blockend (save-excursion > (beginning-of-line) > (condition-case nil > (progn > (scilab-backward-sexp t) > (if (scilab-ltype-function-definition) (error "")) > (forward-word 1) ;; skip this match when counting > (+ (current-indentation) > (* (1- (scilab-lattr-block-cont (point))) > scilab-indent-level))) > (error (error "Unmatched end")))))) > ;; ELSE/CATCH keywords > ((scilab-lattr-middle-block-cont) > (let ((m (match-string 1))) > (list 'blockmid > (condition-case nil > (save-excursion > (beginning-of-line) > (scilab-backward-sexp t) > (if (scilab-ltype-function-definition) (error "")) > (current-column)) > (error (error "Unmatched %s" m)))))) > ;; CASE/OTHERWISE keywords > ((scilab-lattr-endless-block-cont) > (list 'blockendless > (condition-case nil > (save-excursion > (beginning-of-line) > (scilab-backward-sexp t) > (if (not (looking-at "select\\>")) (error "")) > (+ (current-column) > (if (listp scilab-case-level) > (car scilab-case-level) > scilab-case-level))) > (error (error "Unmatched case/else part"))))) > ;; End of a MATRIX > ((scilab-lattr-array-end) > (list 'array-end (save-excursion > (back-to-indentation) > (scilab-up-list -1) > (let* ((fc (following-char)) > (mi (assoc fc scilab-maximum-indents)) > (max (if mi (if (listp (cdr mi)) > (car (cdr mi)) (cdr mi)) > nil)) > (ind (if mi (if (listp (cdr mi)) > (cdr (cdr mi)) (cdr mi)) > nil))) > ;; apply the maximum limits. > (if (and ind (> (- (current-column) ci) max)) > (1- ind) ; decor > (current-column)))))) > ;; Code lines > ((save-excursion > (beginning-of-line) > (back-to-indentation) > (= (point) (progn (scilab-beginning-of-command) (point)))) > ;; This means we are at the beginning of a command structure. > ;; Always match up against the previous line. > (list 'code ci)) > ;; Lines continued from previous statements. > (t > (list (if (scilab-ltype-empty) 'empty > (if (scilab-lattr-array-cont) 'array-cont 'code)) > (condition-case nil > ;; Line up with opening paren/brace/bracket > (let ((boc (save-excursion > (scilab-beginning-of-command) > (point)))) > (save-excursion > (beginning-of-line) > (scilab-up-list -1) > (if (> boc (point)) (error nil)) > ;; Ok, it MIGHT be that we are in a program > ;; statement, and this particular command is an HG > ;; statement that would look better if the > ;; following lines lined up AFTER the first > ;; argument. Lets look. > (let ((parendepth (current-column))) > (cond > ; ;( > ; ; (and (= (following-char) ?\( ) > ; ; (save-excursion > ; ; (scilab-navigation-syntax > ; ; (forward-word -1) > ; ; (looking-at > ; ; scilab-indent-past-arg1-functions))) > ; ; (let ((start-paren (point))) > ; ; (while > ; ; (and > ; ; (re-search-forward > ; ; "," (scilab-point-at-eol) t) > ; ; (save-excursion > ; ; (scilab-up-list -1) > ; ; (> (point) start-paren))) > ; ; (if (and > ; ; (= (preceding-char) ?,) > ; ; ;; Don't bother if we hit the EOL. > ; ; (not (looking-at > > ; ; "\\s-*\\(\\.\\.\\.\\|$\\|)\\)"))) > ; ; t > ; ; (move-to-column parendepth) > ; ; nil))) > ; ; (skip-chars-forward " \t") > ; ; (if (> (- (current-column) parendepth) > ; ; scilab-arg1-max-indent-length) > ; ; (+ parendepth scilab-arg1-max-indent-length) > ; ; (current-column)))) > (t > (let* ((fc (following-char)) > (mi (assoc fc scilab-maximum-indents)) > (max (if mi > (if (listp (cdr mi)) > (car (cdr mi)) (cdr mi)) > nil)) > (ind (if mi > (if (listp (cdr mi)) > (cdr (cdr mi)) (cdr mi)) > nil))) > (forward-char 1) > (skip-chars-forward " \t") > ;; If we are at the end of a line and > ;; this open paren is there, then we > ;; DONT want to indent to it. Use the > ;; standard indent. > (if (looking-at "\\.\\.\\.\\|$") > ;; This could happen in another set > ;; of matricies. Find a current > ;; indentation based on the > ;; previous line. > (let ((cci (current-indentation))) > (+ cci scilab-cont-level)) > ;; apply the maximum limits. > (if (and ind (> (- (current-column) ci) max)) > ind > (current-column))))))))) > (error > ;; Line up to an equals sign. > (save-excursion > (scilab-beginning-of-command) > (while (and (re-search-forward "=" (scilab-point-at-eol) t) > (scilab-cursor-in-string-or-comment))) > (if (/= (preceding-char) ?=) > (+ ci scilab-cont-level) > (skip-chars-forward " \t") > (let ((cc (current-column)) > (mi (assoc ?= scilab-maximum-indents))) > (if (looking-at "\\.\\.\\.\\|$") > ;; In this case, the user obviously wants the > ;; indentation to be somewhere else. > (+ ci (cdr (cdr mi))) > ;; If the indent delta is greater than the max, > ;; use the max + currenti > (if (and mi (> (- cc ci) (if (listp (cdr mi)) > (car (cdr mi)) > (cdr mi)))) > (setq cc (+ ci (if (listp (cdr mi)) > (cdr (cdr mi)) > (cdr mi))))) > cc)))))))) > ))) > > (defun scilab-next-line-indentation () > "Calculate the indentation for lines preceeding this command line." > (let ((bc (scilab-lattr-block-cont)) > (mc (scilab-lattr-middle-block-cont)) > (ec (scilab-lattr-endless-block-cont)) > (hc (and scilab-indent-function (scilab-ltype-help-comm)))) > (+ (current-indentation) > (* scilab-indent-level (or bc 0)) > (* scilab-indent-level (or mc 0)) > (* (if (listp scilab-case-level) > (cdr scilab-case-level) scilab-case-level) > (or ec 0)) > (if hc scilab-indent-level 0)))) > > > > > ;;; The return key ============================================================ > > (defcustom scilab-return-function 'scilab-indent-end-before-ret > ;;(defcustom scilab-return-function 'scilab-double-plain-ret > "Function to handle return key. > Must be one of: > 'scilab-plain-ret > 'scilab-double-plain-ret > 'scilab-indent-after-ret > 'scilab-indent-end-before-ret > 'scilab-indent-before-ret" > :group 'scilab > :type '(choice (function-item scilab-plain-ret) > (function-item scilab-double-plain-ret) > (function-item scilab-indent-after-ret) > (function-item scilab-indent-end-before-ret) > (function-item scilab-indent-before-ret))) > > (defun scilab-return () > "Handle carriage return in `scilab-mode'." > (interactive) > (funcall scilab-return-function)) > > (defun scilab-plain-ret () > "Vanilla new line." > (interactive) > (newline)) > > (defun scilab-indent-after-ret () > "Indent after new line." > (interactive) > (newline) > (if scilab-dynamical-indent > (scilab-indent-line))) > > (defun scilab-double-plain-ret () > "Indent after new line." > (interactive) > (newline) > (newline)) > > (defun scilab-indent-end-before-ret () > "Indent line if block end, start new line, and indent again." > (interactive) > (if (save-excursion > (beginning-of-line) > (looking-at (concat "^\\s-*\\(" (scilab-block-end-re) > "\\|" (scilab-block-mid-re) > "\\|" (scilab-endless-blocks-re) > "\\)"))) > (condition-case nil > (if scilab-dynamical-indent (scilab-indent-line)) > (error nil))) > (newline) > (if scilab-dynamical-indent > (scilab-indent-line))) > > (defun scilab-indent-before-ret () > "Indent line, start new line, and indent again." > (interactive) > (if scilab-dynamical-indent (scilab-indent-line)) > (newline) > (if scilab-dynamical-indent (scilab-indent-line))) > > (defun scilab-linefeed () > "Handle line feed in `scilab-mode'. > Has effect of `scilab-return' with (not scilab-indent-before-return)." > (interactive) > (scilab-indent-line) > (newline) > (scilab-indent-line)) > > (defun scilab-comment-return () > "Handle carriage return for Scilab comment line." > (interactive) > (cond > ((scilab-ltype-comm) > (scilab-set-comm-fill-prefix) (newline) (if fill-prefix (insert fill-prefix)) > (scilab-reset-fill-prefix) (scilab-indent-line)) > ((scilab-lattr-comm) > (newline) (indent-to comment-column) > (insert scilab-comment-on-line-s)) > (t > (newline) (scilab-comment) (scilab-indent-line)))) > > (defun scilab-comm-from-prev () > "If the previous line is a comment-line then set up a comment on this line." > (save-excursion > ;; If the previous line is a comment-line then set the fill prefix from > ;; the previous line and fill this line. > (if (and (= 0 (forward-line -1)) (scilab-ltype-comm)) > (progn > (scilab-set-comm-fill-prefix) > (forward-line 1) (beginning-of-line) > (delete-horizontal-space) > (if (looking-at "//") (delete-char 2)) > (delete-horizontal-space) > (insert fill-prefix) > (scilab-reset-fill-prefix))))) > > ;;; Comment management======================================================== > (defun scilab-comment () > "Add a comment to the current line." > (interactive) > (cond ((scilab-ltype-empty) ; empty line > (scilab-comm-from-prev) > (if (scilab-lattr-comm) > (skip-chars-forward " \t//") > (insert scilab-comment-line-s) > (scilab-indent-line))) > ((scilab-ltype-comm) ; comment line > (scilab-comm-from-prev) > (skip-chars-forward " \t//")) > ((scilab-lattr-comm) ; code line w/ comment > (beginning-of-line) > ; (re-search-forward "[^//]//[ \t]") > (re-search-forward "//") > (forward-char -2) > (if (> (current-column) comment-column) (delete-horizontal-space)) > (if (< (current-column) comment-column) (indent-to comment-column)) > (skip-chars-forward "// \t")) > (t ; code line w/o comment > (end-of-line) > (re-search-backward "[^ \t\n^]" 0 t) > (forward-char) > (delete-horizontal-space) > (if (< (current-column) comment-column) > (indent-to comment-column) > (insert " ")) > (insert scilab-comment-on-line-s)))) > > (defun scilab-comment-line-break-function (&optional soft) > "Break the current line, and if in a comment, continue it. > Optional argument SOFT indicates that the newline is soft, and not hard." > (interactive) > (if (not (scilab-cursor-in-comment)) > (scilab-return) > ;; Will the below fn work in old emacsen? > (if soft (insert-and-inherit ?\n) (newline 1)) > (insert "// ") > (scilab-indent-line) > (end-of-line))) > > (defun scilab-comment-indent () > "Indent a comment line in `scilab-mode'." > (scilab-calc-indent)) > > (defun scilab-comment-region (beg-region end-region) > "Comments every line in the region. > Puts `scilab-comment-region-s' at the beginning of every line in the region. > BEG-REGION and END-REGION are arguments which specify the region boundaries. > With non-nil ARG, uncomments the region." > (interactive "*r") > (let ((end-region-mark (make-marker)) (save-point (point-marker))) > (set-marker end-region-mark end-region) > (goto-char beg-region) > (beginning-of-line) > (insert scilab-comment-region-s) > (while (and (= (forward-line 1) 0) > (< (point) end-region-mark)) > (insert scilab-comment-region-s)) > (goto-char save-point) > (set-marker end-region-mark nil) > (set-marker save-point nil))) > > (defun scilab-comment-command () > "Comment the command on which point is, as if it was a region" > (interactive) > (let (beg end) > (save-excursion > (scilab-beginning-of-command) > (setq beg (point)) > (scilab-end-of-command) > (setq end (point)) > (scilab-comment-region beg end)))) > > (defun scilab-hungry-delete-forward (&optional count) > "Delete the following character or all following whitespace > up to the next non-whitespace character." > (interactive "P") > (setq count (or count 1)) > (let ((here (point))) > (save-match-data > (dotimes (i count) > (cond > ((looking-at "\\s-+") > (delete-region here (match-end 0))) > (t (delete-char 1))))))) > > (defun scilab-insert-probe () > "Insert a line > disp('VAR=',VAR); //$$PROBE > just after line on which point is, where VAR is the symbol pointed by point" > (interactive) > (let (sci-symbol-name) > (save-excursion > (save-match-data > (when (and (re-search-backward "\\_<" nil t) > (looking-at "\\([A-Za-z_]+\\)")) > (setq sci-symbol-name (match-string-no-properties 1))))) > (when sci-symbol-name > (save-excursion > (scilab-end-of-command) > (end-of-line) > (insert "\ndisp(" sci-symbol-name ",'" sci-symbol-name "='); //$$PROBE"))))) > > (defun scilab-delete-all-probes () > (interactive) > (save-excursion > (save-match-data > (goto-char (point-min)) > (while (re-search-forward "^\\s-*disp(\\s-*\\([A-Za-z_]+\\)\ > \\s-*,\\s-*'\\([A-Za-z_]+\\)='\\s-*);\\s-*//\\$\\$PROBE\\s-*$" nil t) > (let ((p (point))) > (end-of-line 0) > (delete-region (point) p)))))) > > > (defun scilab-uncomment-region (beg-region end-region) > "Comments every line in the region. > Remove `scilab-comment-region-s' at the beginning of every line in the region. > Do it only once. Opposite action to the `scilab-comment-region'. END-REGION are arguments which specify the region boundaries." > (interactive "*r") > (let ((end-region-mark (make-marker)) (save-point (point-marker))) > (set-marker end-region-mark end-region) > (goto-char beg-region) > (beginning-of-line) > (let ((com (regexp-quote scilab-comment-region-s))) ;uncomment the region > (if (looking-at com) > (delete-region (point) (match-end 0))) > (while (and (= (forward-line 1) 0) > (< (point) end-region-mark)) > (if (looking-at com) > (delete-region (point) (match-end 0))))) > (goto-char save-point) > (set-marker end-region-mark nil) > (set-marker save-point nil))) > > > > ;;; Filling =================================================================== > > (defun scilab-set-comm-fill-prefix () > "Set the `fill-prefix' for the current (comment) line." > (interactive) > (if (scilab-lattr-comm) > (setq fill-prefix > (save-excursion > (beginning-of-line) > (let ((e (scilab-point-at-eol)) > (pf nil)) > (while (and (re-search-forward "//[ \t]*\\($$$ \\)?" e t) > (scilab-cursor-in-string))) > (setq pf (match-string 0)) > (concat (make-string (- (current-column) (length pf)) ? ) > pf)))))) > > (defun scilab-set-comm-fill-prefix-post-code () > "Set the `fill-prefix' for the current post-code comment line." > (interactive) > (scilab-set-comm-fill-prefix)) > > (defun scilab-reset-fill-prefix () > "Reset the `fill-prefix'." > (setq fill-prefix nil)) > > (defun scilab-find-convenient-line-break () > "For the current line, position the cursor where we want to break the line. > Basically, spaces are best, then operators. Always less than `fill-column' > unless we decide we can fudge the numbers. Return nil if this line should > not be broken. This function will ONLY work on code." > ;; First of all, if this is a continuation, then the user is > ;; requesting that we don't mess with his stuff. > (if (scilab-lattr-cont) > nil > (save-restriction > (narrow-to-region (scilab-point-at-bol) (scilab-point-at-eol)) > ;; get ourselves onto the fill-column. > (move-to-column fill-column) > (let ((pos nil) > (orig (point))) > (or > ;; Next, if we have a trailing comment, use that. > (progn (setq pos (or (scilab-lattr-comm) (scilab-point-at-bol))) > (goto-char pos) > (if (and (> (current-column) (- fill-column scilab-fill-fudge)) > (< (current-column) (+ fill-column scilab-fill-fudge))) > t > (goto-char orig) > nil)) > ;; Now, lets find the nearest space (after or before fill column) > (let* ((after (save-excursion > (re-search-forward "[ \t]" nil t))) > (before (save-excursion > (re-search-backward "[ \t]" nil t))) > (afterd (- (or after (scilab-point-at-eol)) (point))) > (befored (- (point) (or before (scilab-point-at-bol))))) > ;; Here, if "before" is actually the beginning of our > ;; indentation, then this is most obiously a bad place to > ;; break our lines. > (if before > (save-excursion > (goto-char before) > (if (<= (point) (save-excursion > (back-to-indentation) > (point))) > (setq before nil)))) > (cond ((and after > (< afterd scilab-fill-fudge) > (< afterd befored)) > (goto-char after) > t) > ((and before > (< befored scilab-fill-fudge) > (< befored afterd)) > (goto-char before) > t) > (t (goto-char orig) > nil))) > ;; Now, lets find the nearest backwards > (progn > (re-search-backward "\\(\\s-\\|\\s.\\)+" nil t) > (while (and (looking-at "\\^\\|\\.\\|'") > (re-search-backward "\\(\\s-\\|\\s.\\)+" nil t))) > (if (or (not (looking-at "\\(\\s-\\|\\s.\\)+")) > (<= (point) (save-excursion > (back-to-indentation) > (point)))) > (progn > ;; We failed in our mission to find anything, or fell > ;; of the edge of the earth. If we are out of > ;; bounds, lets try again. > (goto-char orig) > (if (re-search-backward "\\s.+" nil t) > t > nil)) > ;; Ok, we have a good location to break. Check for column > ;; and ref against nearest list ending to predict a possibly > ;; better break point. > (forward-char 1) > (let ((okpos (current-column)) > (startlst (save-excursion > (condition-case nil > (scilab-up-list -1) > (error nil)) > (if (save-excursion > (forward-char -1) > (looking-at "\\w")) > (forward-word -1)) > (current-column))) > (endlst (save-excursion > (condition-case nil > (scilab-up-list 1) > (error nil)) > (current-column)))) > ;; When evaluating list fudge factores, breaking on the > ;; edge of a list, or at the beginning of a function > ;; call can be more valuable than breaking on a symbol > ;; of a mid-sized list. As such, allow double-fudge > ;; for lists. > (cond > ;; First, pick the end of a list. > ((and (< endlst scilab-fill-fudge-hard-maximum) > (<= endlst (+ fill-column scilab-fill-fudge)) > (or (<= (* scilab-fill-fudge 2) (- endlst okpos)) > (<= endlst fill-column)) > (save-excursion > (move-to-column endlst) > (not (looking-at "\\^")))) > (move-to-column endlst) > t) > ;; Else, back up over this list and poke around > ((>= (* 2 scilab-fill-fudge) (- okpos startlst)) > (move-to-column startlst) > t) > ;; Oh well, just do this symbol. > (t (move-to-column okpos) > t))))) > ;; Well, this just sucks > (progn (goto-char orig) > nil)))))) > > (defun scilab-auto-fill () > "Do auto filling. > Set variable `auto-fill-function' to this symbol to enable Scilab style auto > filling which will automatically insert `...' and the end of a line." > (interactive) > (let ((fill-prefix fill-prefix) ;; safe way of modifying fill-prefix. > (fill-column (- fill-column > (if scilab-fill-count-ellipsis-flag > (save-excursion > (move-to-column fill-column) > (if (not (bobp)) > (forward-char -1)) > (if (scilab-cursor-in-string 'incomplete) > 4 3)) > 0)))) > (if (> (current-column) fill-column) > (cond > ;;case > ((scilab-ltype-comm-ignore) > nil) > ;;case > ((or (scilab-ltype-comm) > (and (save-excursion (move-to-column fill-column) > (scilab-cursor-in-comment)) > (scilab-lattr-comm))) > ;; If the whole line is a comment, do this. > (scilab-set-comm-fill-prefix) (do-auto-fill) > (scilab-reset-fill-prefix)) > ;; > ((and (scilab-ltype-code) > (not (scilab-lattr-cont)) > scilab-fill-code) > ;; If we are on a code line, we ellipsify before we fill. > (let ((m (point-marker))) > (set-marker-insertion-type m t) > (when (scilab-find-convenient-line-break) > (if (null (and (scilab-cursor-in-string 'incomplete) > (save-excursion > (forward-char -1) > (scilab-cursor-in-string 'incomplete)))) > (progn > (delete-horizontal-space) > (insert " " scilab-elipsis-string "\n") > (scilab-indent-line)) > ;; else we are guaranteed to be in an incomplete string. > (if scilab-fill-strings-flag > (let ((pos (point)) > (pos2 nil) > quote-char) > (while (and (re-search-backward "\\(['\"]\\)" nil t) > (progn (forward-char -1) > (setq quote-char (match-string 1)) > (looking-at (concat quote-char "\\{2\\}"))))) > (setq pos2 (point)) > (unless (looking-at "\\[") > (skip-chars-backward " \t") > (forward-char -1)) > (if (looking-at "\\[") > (goto-char pos) > (goto-char pos2) > (forward-char 1) > ; (insert "[") > (goto-char pos) > (forward-char 1)) > (delete-horizontal-space) > (insert quote-char " + " scilab-elipsis-string "\n") > (scilab-indent-line) > (insert " " quote-char)))) > (goto-char m)))) > )))) > > (defun scilab-join-comment-lines () > "Join current comment line to the next comment line." > ;; New w/ V2.0: This used to join the previous line, but I could find > ;; no editors that had a "join" that did that. I modified join to have > ;; a behaviour I thought more inline with other editors. > (interactive) > (end-of-line) > (if (looking-at "\n[ \t]*//") > (replace-match " " t t nil) > (error "No following comment to join with"))) > > (defun scilab-fill-region (beg-region end-region &optional justify-flag) > "Fill the region between BEG-REGION and END-REGION. > Non-nil JUSTIFY-FLAG means justify comment lines as well." > (interactive "*r\nP") > (let ((end-reg-mk (make-marker))) > (set-marker end-reg-mk end-region) > (goto-char beg-region) > (beginning-of-line) > (while (< (point) end-reg-mk) > ;; This function must also leave the point at the end of the > ;; justified line. > (scilab-fill-paragraph justify-flag) > (forward-line 1) > (beginning-of-line)))) > > (defun scilab-fill-comment-line (&optional justify) > "Fill the current comment line. > With optional argument, JUSTIFY the comment as well." > (interactive) > (if (not (scilab-comment-on-line)) > (error "No comment to fill")) > (beginning-of-line) > (if (not (looking-at scilab-cline-start-skip)) > (error "Don't fill the comment after the text")) > ;; First, find the beginning of this comment... > (while (and (looking-at scilab-cline-start-skip) > (not (bobp))) > (forward-line -1) > (beginning-of-line)) > (if (not (looking-at scilab-cline-start-skip)) > (forward-line 1)) > ;; Now scan to the end of this comment so we have our outer bounds, > ;; and narrow to that region. > (save-restriction > (narrow-to-region (point) > (save-excursion > (while (and (looking-at scilab-cline-start-skip) > (not (save-excursion (end-of-line) (eobp)))) > (forward-line 1) > (beginning-of-line)) > (if (not (looking-at scilab-cline-start-skip)) > (forward-line -1)) > (end-of-line) > (point))) > ;; Find the fill prefix... > (scilab-comment-on-line) > (looking-at "//[ \t]*") > (let ((fill-prefix (concat (make-string (current-column) ? ) > (match-string 0)))) > (fill-region (point-min) (point-max) justify)))) > > (defun scilab-justify-line () > "Delete space on end of line and justify." > (interactive) > (save-excursion > (end-of-line) > (delete-horizontal-space) > (justify-current-line))) > > (defun scilab-fill-paragraph (arg) > "When in a comment, fill the current paragraph. > Paragraphs are always assumed to be in a comment. > ARG is passed to `fill-paragraph' and will justify the text." > (interactive "P") > (cond ((or (scilab-ltype-comm) > (and (scilab-cursor-in-comment) > (not (scilab-lattr-cont)))) > ;; We are in a comment, lets fill the paragraph with some > ;; nice regular expressions. > (let ((paragraph-separate "//[a-zA-Z]\\|//[ \t]*$\\|[ \t]*$") > (paragraph-start "//[a-zA-Z]\\|//[ \t]*$\\|[ \t]*$") > (paragraph-ignore-fill-prefix nil) > (fill-prefix nil)) > (scilab-set-comm-fill-prefix) > (fill-paragraph arg))) > ((scilab-ltype-code) > ;; Ok, lets get the outer bounds of this command, then > ;; completely refill it using the smart line breaking code. > (save-restriction > (narrow-to-region (save-excursion > (scilab-beginning-of-command) > (beginning-of-line) > (point)) > (save-excursion > (scilab-end-of-command) > (point))) > ;; Remove all line breaks > (goto-char (point-min)) > (while (and (re-search-forward "$" nil t) > (not (eobp))) > (delete-horizontal-space) > ;; Blow away continuation marks > (if (scilab-lattr-cont) > (progn > (goto-char (match-beginning 0)) > (forward-char 1) > ; (forward-char 2) > (delete-region (point) (scilab-point-at-eol)))) > ;; Zap the CR > (if (not (eobp)) (delete-char 1)) > ;; Clean up whitespace > (delete-horizontal-space) > ;; Clean up trailing comments > (if (and (looking-at "// *") > (scilab-cursor-in-comment)) > (progn > (delete-char 2) > (delete-horizontal-space))) > (insert " ")) > ;; Now fill till we are done > (goto-char (point-max)) > (while (or (> (current-column) (+ fill-column scilab-fill-fudge)) > (> (current-column) scilab-fill-fudge-hard-maximum)) > (if (= (point) > (progn > (scilab-auto-fill) > (point))) > (error "Fill algorith failed!")) > (if arg (save-excursion > (forward-line -1) > (scilab-justify-line)))) > (if arg (save-excursion > (forward-line -1) > (scilab-justify-line))))) > (t > (message "Paragraph Fill not supported in this context.")))) > > ;;; Semantic text insertion and management ==================================== > > > (defun scilab-find-recent-variable-list (prefix) > "Instead of looking through the session we just use Scilab who comand to > get all variables" > (interactive) > (if (not (scilab-shell-active-p)) > nil > (let ((fields (scilab-shell-collect-command-output > (concat "%tmp=lines();lines(0);" > "#=[who('global');who('local')];" > "##='" (regexp-quote prefix) "';" > "###=length(##);" > "write(%io(2),#(part(#,1:###)==##));" > "lines(%tmp(2),%tmp(1)); clear %tmp # ## ###")))) > (if (not fields) > nil > (split-string fields))) > )) > > > > (defvar scilab-most-recent-variable-list nil > "Maintained by `scilab-find-recent-variable'.") > > (defun scilab-find-recent-variable (prefix &optional next) > "Return the most recently used variable starting with PREFIX as a string. > See `scilab-find-recent-variable-list' for details. > In NEXT is non-nil, than continue through the list of elements." > (if next > (let ((next (car scilab-most-recent-variable-list))) > (setq scilab-most-recent-variable-list > (cdr scilab-most-recent-variable-list)) > next) > (let ((syms (scilab-find-recent-variable-list prefix)) > (first nil)) > (if (eq scilab-completion-technique 'complete) > syms > (setq first (car syms)) > (setq scilab-most-recent-variable-list (cdr syms)) > first)))) > > ;; We do not use the next two functions. Instead we write new functions > ;; scilab-find-scifunctions-list and scilab-find-scifunctions > > (defun scilab-find-user-functions-list (prefix) > "Return a list of user defined functions that match PREFIX." > (setq prefix (regexp-quote prefix)) > (scilab-navigation-syntax > (let ((syms > (append > (save-excursion > (goto-char (point-min)) > (let ((lst nil)) > (while (re-search-forward "^\\s-*function\\>" nil t) > (if (re-search-forward > (concat "\\(" prefix "\\w+\\)\\s-*\\($\\|(\\)") > (scilab-point-at-eol) t) > (setq lst (cons (match-string 1) lst)))) > (nreverse lst))) > (let ((lst nil) > (files (directory-files > default-directory nil > (concat "^" prefix > "[a-zA-Z][a-zA-Z0-9_]+\\.sci$")))) > (while files > (setq lst (cons (progn (string-match "\\.sci" (car files)) > (substring (car files) 0 > (match-beginning 0))) > lst) > files (cdr files))) > lst))) > (fl nil)) > (while syms > (if (car syms) (setq fl (cons (car syms) fl))) > (setq syms (cdr syms))) > (scilab-uniquafy-list (nreverse fl))))) > > (defvar scilab-user-function-list nil > "Maintained by `scilab-find-user-functions'.") > > (defvar scilab-shell-libfunc-isbuilt nil) > > (defun scilab-find-scifunctions-list (prefix) > "Return a list of library functions that match PREFIX. The goal is > to find all sci functions. To make search over all directories everytime > is too time consuming. Instead we suggest to define a staic file, say libfunc > via Scilab or shell standard features. In shell we suggest to define a variable > SCILIBFUNC pointing on this file say in $SCIHOME/libfunc.This > value is contained in the customized variable `scilab-libfunc-list-path'. > The function first checks if the file exisits. If not it checks if $SCIHOME/libfunc file exists. If non of this exists and shell is active it builds this file. Otherwise it returns nil" > (let ((curbuff (current-buffer)) > (allnames scilab-libfunc-list-path) > (buff nil)) > (if (not allnames) > (setq allnames (concat scilab-shell-initial-directory "/libfunc"))) > (if (not (scilab-shell-active-p)) > nil > (if scilab-shell-libfunc-isbuilt > nil > (if (file-exists-p allnames) > (delete-file allnames) > ) > (scilab-shell-collect-command-output (concat > "##=who('local');" > "###='type('+##+')==14';" > "###(1)='?=['+###(1);###($)=###($)+'];';" > "execstr(###); ##=##(?);?=[];" > "###='#tmp=string('+##+');?=[?;#tmp(2:$)]';" > "execstr(###);" > "#=file('open','" allnames "','unknown');" > "write(#,?);file('close',#);clear # ## ### #tmp ?")) > (message "File %s is updated..." allnames) > (setq scilab-shell-libfunc-isbuilt t)) > ) > (if (not (file-exists-p allnames)) > nil > (find-file allnames) > (setq buff (current-buffer)) > (setq case-fold-search nil) > (save-excursion > (goto-char (point-min)) > (let ((lst nil)) > (setq prefix (regexp-quote prefix)) > (while (re-search-forward > (concat "^\\s-*\\(" prefix "\\(\\w\\|[_$]\\)*\\)\\s-*\n") nil t) > (setq lst (cons (match-string 1) lst)) > ) > (kill-buffer buff) > (switch-to-buffer curbuff) > (if lst > (scilab-uniquafy-list (nreverse lst)) nil)))))) > > (defun scilab-find-tlists-list (prefix) > "Return a list of fields of prefix considired as tlist of scilab" > (string-match "\\(%?\\(\\w\\|[_$]\\)*\\)\\.\\([^.]*\\)$" prefix) > (let ( (pref (match-string 1 prefix)) > (ff (match-string 3 prefix)) (i 0) (matchfields nil) > fields matchfields fil) > (save-excursion > (setq fields (scilab-shell-collect-command-output > (concat "%tmp=lines();lines(0);" > "write(%io(2)," pref "(1)(2:$),'(a)');" > "lines(%tmp(2),%tmp(1)); clear %tmp;" > ) > ) > ) > (setq fields (split-string fields)) > (if (not fields) > nil > (while (< i (length fields)) > (setq fil (nth i fields)) > (if (string-match (concat "\\(\\<" ff "\\(\\w\\|[_$]\\)*\\)") fil) > (setq matchfields (cons (concat pref "." fil) matchfields))) > (setq i (+ i 1)) > ) > matchfields > )))) > > > (defvar scilab-scifunction-list nil > "Maintained by `scilab-find-scifunctions'.") > > (defun scilab-find-user-functions (prefix &optional next) > "Return a list of user defined functions that match PREFIX." > (if next > (let ((next (car scilab-user-function-list))) > (setq scilab-user-function-list (cdr scilab-user-function-list)) > next) > (let ((syms (scilab-find-user-functions-list prefix)) > (first nil)) > (if (eq scilab-completion-technique 'complete) > syms > (setq first (car syms)) > (setq scilab-user-function-list (cdr syms)) > first)))) > > (defun scilab-find-scifunctions (prefix &optional next) > "Return a function from all available *.sci that match PREFIX and return it. > If optional argument NEXT is non-nil, then return the next found > object. This " > (if next > (let ((next (car scilab-scifunction-list))) > (setq scilab-scifunction-list (cdr scilab-scifunction-list)) > next) > (let ((syms (scilab-find-scifunctions-list prefix)) > (first nil)) > (if (eq scilab-completion-technique 'complete) > syms > (setq first (car syms)) > (setq scilab-scifunction-list (cdr syms)) > first)))) > > (defvar scilab-tlists-list nil > "Maintained by `scilab-find-tlists-fields'.") > > > (defun scilab-find-tlists-fields (prefix &optional next) > "Return PREFIX matching elements for tlist variable of scilab > If NEXT then the next patch from the list is used." > (if next > (let ((next (car scilab-tlists-list))) > (setq scilab-tlists-list (cdr scilab-tlists-list)) > next) > (let ((syms (scilab-find-tlists-list prefix)) > (first nil)) > (if (eq scilab-completion-technique 'complete) > syms > (setq first (car syms)) > (setq scilab-tlists-list (cdr syms)) > first)))) > > > > > > > (defvar scilab-generic-list-placeholder nil > "Maintained by `matalb-generic-list-expand'. > Holds sub-lists of symbols left to be expanded.") > > (defun scilab-generic-list-expand (list prefix &optional next) > "Return an element from LIST that start with PREFIX. > If optional NEXT argument is non nil, then the next element in the > list is used. nil is returned if there are not matches." > (if next > (let ((next (car scilab-generic-list-placeholder))) > (setq scilab-generic-list-placeholder > (cdr scilab-generic-list-placeholder)) > next) > (let ((re (concat "^" (regexp-quote prefix))) > (first nil) > (fl nil)) > (while list > (if (string-match re (car list)) > (setq fl (cons (car list) fl))) > (setq list (cdr list))) > (setq fl (nreverse fl)) > (if (eq scilab-completion-technique 'complete) > fl > (setq first (car fl)) > (setq scilab-generic-list-placeholder (cdr fl)) > first)))) > > (defun scilab-solo-completions (prefix &optional next) > "Return PREFIX matching elements for solo symbols. > If NEXT then the next patch from the list is used." > (scilab-generic-list-expand scilab-keywords-solo prefix next)) > > (defun scilab-builtin-completions (prefix &optional next) > "Return PREFIX matching elements for value symbols. > If NEXT then the next patch from the list is used." > (scilab-generic-list-expand scilab-builtin-list prefix next)) > > (defun scilab-boolean-completions (prefix &optional next) > "Return PREFIX matching elements for boolean symbols. > If NEXT then the next patch from the list is used." > (scilab-generic-list-expand scilab-keywords-boolean prefix next)) > > (defun scilab-property-completions (prefix &optional next) > "Return PREFIX matching elements for property names in strings. > If NEXT then the next property from the list is used." > (let ((f (scilab-function-called-at-point)) > (lst scilab-property-lists) > (foundlst nil) > (expandto nil)) > ;; Look for this function. If it is a known function then we > ;; can now use a subset of available properties! > (while (and lst (not foundlst)) > (if (string= (car (car lst)) f) > (setq foundlst (cdr (car lst)))) > (setq lst (cdr lst))) > (if foundlst > (setq foundlst (append foundlst scilab-core-properties)) > (setq foundlst scilab-all-known-properties)) > (setq expandto (scilab-generic-list-expand foundlst prefix next)) > ;; This looks to see if we have a singular completion. If so, > ;; then return it, and also append the "'" to the end. > (cond ((and (listp expandto) (= (length expandto) 1)) > (setq expandto (list (concat (car expandto) "'")))) > ((stringp expandto) > (setq expandto (concat expandto "'")))) > expandto)) > > (defvar scilab-last-prefix nil > "Maintained by `scilab-complete-symbol'. > The prefix used for the first completion command.") > (defvar scilab-last-semantic nil > "Maintained by `scilab-complete-symbol'. > The last type of semantic used while completing things.") > (defvar scilab-completion-search-state nil > "List of searching things we will be doing.") > > ;(defvar scilab-complete-1-window nil) > > (defun scilab-complete-symbol (&optional arg) > "Complete a partially typed symbol in a Scilab mode buffer. > If the previously entered command was also `scilab-complete-symbol' > then undo the last completion, and find a new one. > The types of symbols tried are based on the semantics of the current > cursor position. There are two types of symbols. For example, if the > cursor is in an if statement, boolean style functions and symbols are > tried first. If the line is blank, then flow control, or high level > functions are tried first. > The completion technique is controlled with `scilab-completion-technique' > It defaults to incremental completion described above. If a > completion list is preferred, then change this to 'complete. If you > just want a completion list once, then use the universal argument ARG > to change it temporarily." > (interactive "P") > ; (if (not (eq last-command 'scilab-complete-symbol)) > ; (setq scilab-complete-1-window (one-window-p))) > (if (eq (scilab-lattr-semantics) 'disk) > (comint-dynamic-complete-filename) > (scilab-navigation-syntax > (let* ((cbf (buffer-name)) > (cpt (point)) > (locp (scilab-point-at-bol)) > (prefix (if (and (not (eq last-command 'scilab-complete-symbol)) > (member (preceding-char) '(? ?\t ?\n ?, ?\( ?\[ ?\' ?\"))) > "" > (buffer-substring-no-properties > (save-excursion > (save-excursion > (beginning-of-line) > (if (looking-at (concat "^\\(" > comint-prompt-regexp "\\)")) > (setq locp (match-end 1)))) > (forward-word -1) > (while (eq (preceding-char) ?.) (forward-word -1)) > (max locp (point))) > (point)))) > (sem (scilab-lattr-semantics prefix)) > (scilab-completion-technique > (if arg (cond ((eq scilab-completion-technique 'complete) > 'increment) > (t 'complete)) > scilab-completion-technique))) > (if (not (eq last-command 'scilab-complete-symbol)) > (setq scilab-last-prefix prefix > scilab-last-semantic sem > scilab-completion-search-state > (cond ((eq sem nil) nil) > ((eq sem 'solo) > '(scilab-solo-completions > scilab-find-scifunctions > scilab-find-recent-variable > scilab-builtin-completions > ; scilab-find-user-functions > )) > ;;; ((eq sem 'boolean) > ;;; '(scilab-find-recent-variable > ;;; scilab-boolean-completions > ;;; scilab-builtin-completions > ;;; scilab-find-scifunctions > ;;; scilab-find-user-functions)) > ((eq sem 'value) > '(scilab-find-recent-variable > scilab-builtin-completions > scilab-find-scifunctions > ; scilab-find-user-functions > ; scilab-boolean-completions > )) > ((eq sem 'property) > '(scilab-property-completions > ; scilab-find-user-functions > scilab-find-recent-variable > scilab-builtin-completions)) > ((eq sem 'list) > '(scilab-find-tlists-fields)) > (t '(scilab-find-recent-variable > scilab-builtin-completions > scilab-find-scifunctions > ; scilab-find-user-functions > ; scilab-boolean-completions > ))))) > (cond > ((eq scilab-completion-technique 'increment) > (let ((r nil) (donext (eq last-command 'scilab-complete-symbol))) > (while (and (not r) scilab-completion-search-state) > (message "Expand with %S" (car scilab-completion-search-state)) > (setq r (funcall (car scilab-completion-search-state) > scilab-last-prefix donext)) > (if (not r) (setq scilab-completion-search-state > (cdr scilab-completion-search-state) > donext nil))) > (goto-char cpt) > (delete-region (point) (progn (forward-char (- (length prefix))) > (point))) > (if r > (insert r) > (insert scilab-last-prefix) > (message "No completions.")))) > ((eq scilab-completion-technique 'complete) > (let ((allsyms (scilab-uniquafy-list (apply 'append > (mapcar (lambda (f) (funcall f prefix)) > scilab-completion-search-state))))) > (set-buffer cbf) > (cond ((or (null allsyms) (=(length allsyms) 0)) > (goto-char cpt) > (if (equal prefix "") > (message "No completions") > (message "No completions for %s." prefix)) > (if (get-buffer "*Completions*") > (if (get-buffer-window (get-buffer "*Completions*")) > (save-excursion > (select-window (get-buffer-window > (get-buffer "*Completions*"))) > ; (if scilab-complete-1-window (delete-window) > (bury-buffer)))) > (select-window (get-buffer-window cbf)) > (ding)) > ((= (length allsyms) 1) > (goto-char cpt) > (delete-region (point) (progn > (forward-char (- (length prefix))) > (point))) > (message "Solo completion for %s" prefix) > (insert (car allsyms)) > (if (get-buffer "*Completions*") > (if (get-buffer-window (get-buffer "*Completions*")) > (save-excursion > (select-window (get-buffer-window > (get-buffer "*Completions*"))) > ; (if scilab-complete-1-window (delete-window) > (bury-buffer)))) > (select-window (get-buffer-window cbf)) > ) > (t > (let* ((al (mapcar (lambda (a) (list a)) allsyms)) > (c (try-completion prefix al))) > ;; This completion stuff lets us expand as much as is > ;; available to us. When the completion is the prefix > ;; then we want to display all the strings we've > ;; encountered. > (if (and (stringp c) (not (string= prefix c))) > (progn > (goto-char cpt) > (delete-region > (point) > (progn (forward-char (- (length prefix))) > (point))) > (insert c)) > (goto-char cpt) > > > ;; `display-completion-list' does all the complex > ;; ui work for us. > ; (if (or (not (get-buffer "*Completions*")) > ; (not (get-buffer-window (get-buffer "*Completions*")))) > ; (split-window-vertically)) > (with-output-to-temp-buffer "*Completions*" > (display-completion-list > (scilab-uniquafy-list allsyms)))))))))))))) > > (defun scilab-insert-end-block (&optional reindent) > "Insert and END block based on the current syntax. > Optional argument REINDENT indicates if the specified block should be re-indented." > (interactive "P") > (if (not (scilab-ltype-empty)) (progn (end-of-line) (insert "\n"))) > (let ((valid t) (begin nil)) > (save-excursion > (condition-case nil > (progn > (scilab-backward-sexp t) > (setq begin (point) > valid (buffer-substring-no-properties > (point) (save-excursion > (re-search-forward "[\n;.]" nil t) > (point))))) > (error (setq valid nil)))) > (if (not valid) > (error "No block to end") > (if (string-match "^function" valid) > (insert "endfunction") > (insert "end")) > (scilab-indent-line) > (if (stringp valid) (insert " // " valid)) > (scilab-indent-line) > (if reindent (indent-region begin (point) nil))))) > > (tempo-define-template > "scilab-for" > '("for " p " = " p > n> > r> & > "end" >) > "for" > "Insert a Scilab for statement" > 'scilab-tempo-tags > ) > > (tempo-define-template > "scilab-while" > '("while " p > n> > r> & > "end" > ) > "while" > "Insert a Scilab while statement" > 'scilab-tempo-tags > ) > > (tempo-define-template > "scilab-if" > '("if " p " then" > n > r> > "end" > n) > "if" > "Insert a Scilab if statement" > 'scilab-tempo-tags > ) > > (tempo-define-template > "scilab-if-else" > '("if " p " then" > n > r> > "else" > n > "end" > n) > "if" > "Insert a Scilab if statement" > 'scilab-tempo-tags > ) > > (tempo-define-template > "scilab-try" > '("try " > n > r> > "catch" > n > p > n > "end" > n) > "try" > "Insert a Scilab try catch statement" > 'scilab-tempo-tags > ) > > (tempo-define-template > "scilab-select" > '("select " p " then"> n > "case " p " then"> n > "else" > n > r> > "end" > n) > "select" > "Insert a Scilab select statement with region in the otherwise clause." > 'scilab-tempo-tags) > > (defun scilab-insert-next-case () > "Insert a case statement inside this select statement." > (interactive) > ;; First, make sure we are where we think we are. > (let ((valid t)) > (save-excursion > (condition-case nil > (progn > (scilab-backward-sexp t) > (setq valid (looking-at "select"))) > (error (setq valid nil)))) > (if (not valid) > (error "Not in a select statement"))) > (if (not (scilab-ltype-empty)) (progn (end-of-line) (insert "\n"))) > (indent-to 0) > (insert "case then") > (scilab-indent-line)) > > (tempo-define-template > "scilab-function" > '("function " > (P "output argument(s): " output t) > ;; Insert brackets only if there is more than one output argument > (if (string-match "," (tempo-lookup-named 'output)) > '(l "[" (s output) "]") > '(l (s output))) > ;; Insert equal sign only if there is output argument(s) > (if (= 0 (length (tempo-lookup-named 'output))) nil > " = ") > ;; The name of a function, as defined in the first line, should > ;; be the same as the name of the file without .sci extension > (if (= 1 (count-lines 1 (point))) > (tempo-save-named > 'fname > (file-name-nondirectory (file-name-sans-extension > (buffer-file-name)))) > '(l (P "function name: " fname t))) > (tempo-lookup-named 'fname) > "(" (P "input argument(s): ") ")" n > "// " (upcase (tempo-lookup-named 'fname)) " - " (P "H1 line: ") n > "// " p n) > "function" > "Insert a Scilab function statement" > 'scilab-tempo-tags > ) > > (defun scilab-stringify-region (begin end) > "Put Scilab 's around region, and quote all quotes in the string. > Stringification allows you to type in normal Scilab code, mark it, and > then turn it into a Scilab string that will output exactly what's in > the region. BEGIN and END mark the region to be stringified." > (interactive "r") > (save-excursion > (goto-char begin) > (if (re-search-forward "\n" end t) > (error > "You may only stringify regions that encompass less than one line")) > (let ((m (make-marker))) > (move-marker m end) > (goto-char begin) > (insert "'") > (while (re-search-forward "'" m t) > (insert "'")) > (goto-char m) > (insert "'")))) > > (defun scilab-ispell-strings-region (begin end) > "Spell check valid strings in region with Ispell. > Argument BEGIN and END mark the region boundary." > (interactive "r") > (require 'ispell) > (save-excursion > (goto-char begin) > ;; Here we use the font lock function for finding strings. > ;; Its cheap, fast, and accurate. > (while (and (scilab-font-lock-string-match-normal end) > (ispell-region (match-beginning 2) (match-end 2)))))) > > (defun scilab-ispell-strings () > "Spell check valid strings in the current buffer with Ispell. > Calls `scilab-ispell-strings-region'" > (interactive) > (scilab-ispell-strings-region (point-min) (point-max))) > > (defun scilab-ispell-comments (&optional arg) > "Spell check comments in the current buffer with Ispell. > Optional ARG means to only check the current comment." > (interactive "P") > (let ((beg (point-min)) > (end (point-max))) > (if (and arg (scilab-ltype-comm)) > (setq beg (save-excursion (scilab-beginning-of-command) (point)) > end (save-excursion (scilab-end-of-command) (point)))) > (save-excursion > (goto-char beg) > (beginning-of-line) > (while (and (scilab-font-lock-comment-match end) > (ispell-region (match-beginning 1) (match-end 1))))))) > > > ;;; Block highlighting ======================================================== > > (defvar scilab-block-highlighter-timer nil > "The timer representing the block highlighter.") > (defvar scilab-shell-delay (if running-gnuemacs 1 3) > "The delay running scilab command when restarting" > ) > > (defun scilab-enable-block-highlighting (&optional arg) > "Start or stop the block highlighter. > Optional ARG is 1 to force enable, and -1 to disable. > If ARG is nil, then highlighting is toggled." > (interactive "P") > (if (not (fboundp 'scilab-run-with-idle-timer)) > (setq scilab-highlight-block-match-flag nil)) > ;; Only do it if it's enabled. > (if (not scilab-highlight-block-match-flag) > nil > ;; Use post command idle hook as a local hook to dissuade too much > ;; cpu time while doing other things. > ;;(make-local-hook 'post-command-hook) > (if (not arg) > (setq arg > (if (member 'scilab-start-block-highlight-timer > post-command-hook) > -1 1))) > (if (> arg 0) > (add-hook 'post-command-hook 'scilab-start-block-highlight-timer) > (remove-hook 'post-command-hook 'scilab-start-block-highlight-timer)))) > > (defvar scilab-block-highlight-overlay nil > "The last highlighted overlay.") > (make-variable-buffer-local 'scilab-block-highlight-overlay) > > (defvar scilab-block-highlight-timer nil > "Last started timer.") > (make-variable-buffer-local 'scilab-block-highlight-timer) > > (defun scilab-start-block-highlight-timer () > "Set up a one-shot timer if we are in Scilab mode." > (if (eq major-mode 'scilab-mode) > (progn > (if scilab-block-highlight-overlay > (unwind-protect > (scilab-delete-overlay scilab-block-highlight-overlay) > (setq scilab-block-highlight-overlay nil))) > (if scilab-block-highlight-timer > (unwind-protect > (scilab-cancel-timer scilab-block-highlight-timer) > (setq scilab-block-highlight-timer nil))) > (setq scilab-block-highlight-timer > (scilab-run-with-idle-timer > 1 nil 'scilab-highlight-block-match))))) > > (defun scilab-highlight-block-match () > "Highlight a matching block if available." > (setq scilab-block-highlight-timer nil) > (let ((inhibit-quit nil) ;turn on G-g > (scilab-scan-on-screen-only t)) > (if scilab-show-periodic-code-details-flag > (scilab-show-line-info)) > (if (not (scilab-cursor-in-string-or-comment)) > (save-excursion > (if (or (bolp) > (looking-at "\\s-") > (save-excursion (forward-char -1) (looking-at "\\s-"))) > nil > (forward-word -1)) > (if (and (looking-at (concat (scilab-block-beg-re) "\\>")) > (not (looking-at "function"))) > (progn > ;; We scan forward... > (scilab-forward-sexp) > (backward-word 1) > (if (not (looking-at "end")) > nil ;(message "Unterminated block, or end off screen.") > (setq scilab-block-highlight-overlay > (scilab-make-overlay (point) > (progn (forward-word 1) > (point)) > (current-buffer))) > (scilab-overlay-put scilab-block-highlight-overlay > 'face 'scilab-region-face))) > (if (and (looking-at (concat (scilab-block-end-pre) "\\>")) > (not (looking-at "function")) > (scilab-valid-end-construct-p)) > (progn > ;; We scan backward > (forward-word 1) > (condition-case nil > (progn > (scilab-backward-sexp) > (if (not (looking-at (scilab-block-beg-re))) > nil ;(message "Unstarted block at cursor.") > (setq scilab-block-highlight-overlay > (scilab-make-overlay (point) > (progn (forward-word 1) > (point)) > (current-buffer))) > (scilab-overlay-put scilab-block-highlight-overlay > 'face 'scilab-region-face))) > (error (message "Unstarted block at cursor.")))) > ;; do nothing > )))))) > > ;;; M Code verification & Auto-fix ============================================ > > (defun scilab-mode-verify-fix-file-fn () > "Verify the current buffer from `write-contents-hooks'." > (if scilab-verify-on-save-flag > (scilab-mode-verify-fix-file (> (point-max) > scilab-block-verify-max-buffer-size))) > ;; Always return nil. > nil) > > (defun scilab-mode-verify-fix-file (&optional fast) > "Verify the current buffer satisfies all sci things that might be useful. > We will merely loop across a list of verifiers/fixers in > `scilab-mode-verify-fix-functions'. > If optional FAST is non-nil, do not perform usually lengthy checks." > (interactive) > (let ((p (point)) > (l scilab-mode-verify-fix-functions)) > (while l > (funcall (car l) fast) > (setq l (cdr l))) > (goto-char p)) > (if (interactive-p) > (message "Done."))) > > ;; > ;; Add more auto verify/fix functions here! > ;; > (defun scilab-mode-vf-functionname (&optional fast) > "Verify/Fix the function name of this file. > Optional argument FAST is ignored." > (scilab-navigation-syntax > (goto-char (point-min)) > (while (and (or (scilab-ltype-empty) (scilab-ltype-comm)) > (/= (scilab-point-at-eol) (point-max))) > (forward-line 1)) > (let ((func nil) > (bn (file-name-sans-extension > (file-name-nondirectory (buffer-file-name))))) > (if (looking-at > ;; old function was too unstable. > ;;"\\(^function\\s-+\\)\\([^=\n]+=[ \t\n.]*\\)?\\(\\sw+\\)" > (concat "\\(^\\s-*function\\b[ \t\n.]*\\)\\(\\(\\[[^]]*\\]\\|\\sw+\\)" > "[ \t\n.]*=[ \t\n.]*\\)?\\(\\sw+\\)")) > ;; The expression above creates too many numeric matches > ;; to apply a known one to our function. We cheat by knowing that > ;; match-end 0 is at the end of the function name. We can then go > ;; backwards, and get the extents we need. Navigation syntax > ;; lets us know that backward-word really covers the word. > (let ((end (match-end 0)) > (begin (progn (goto-char (match-end 0)) > (forward-word -1) > (point)))) > (setq func (buffer-substring begin end)) > (if (not (string= func bn)) > (if (not (scilab-mode-highlight-ask > begin end > "Function and file names are different. Fix?")) > nil > (goto-char begin) > (delete-region begin end) > (insert bn)))))))) > > (defun scilab-mode-vf-block-matches-forward (&optional fast) > "Verify/Fix unterminated (or un-ended) blocks. > This only checks block regions like if/end. > Optional argument FAST causes this check to be skipped." > (goto-char (point-min)) > (let ((go t) > (expr (concat "\\<\\(" (scilab-block-beg-pre) "\\)\\>"))) > (scilab-navigation-syntax > (while (and (not fast) go (re-search-forward expr nil t)) > (forward-word -1) ;back over the special word > (let ((s (point))) > (condition-case nil > (if (and (not (scilab-cursor-in-string-or-comment)) > (not (looking-at "function"))) > (progn > (scilab-forward-sexp) > (forward-word -1) > (if (not (looking-at "end\\>")) (setq go nil))) > (forward-word 1)) > (error (setq go nil))) > (if (and (not go) (goto-char s) > (not (scilab-mode-highlight-ask > (point) (save-excursion (forward-word 1) (point)) > "Unterminated block. Continue anyway?"))) > (error "Unterminated Block found!"))) > (message "Block-check: %d%%" (/ (/ (* 100 (point)) (point-max)) 2)))))) > > (defun scilab-mode-vf-block-matches-backward (&optional fast) > "Verify/fix unstarted (or dangling end) blocks. > Optional argument FAST causes this check to be skipped." > (goto-char (point-max)) > (let ((go t) (expr (concat "\\<\\(" (scilab-block-end-no-function-re) > "\\)\\>"))) > (scilab-navigation-syntax > (while (and (not fast) go (re-search-backward expr nil t)) > (forward-word 1) > (let ((s (point))) > (condition-case nil > (if (and (not (scilab-cursor-in-string-or-comment)) > (scilab-valid-end-construct-p)) > (scilab-backward-sexp) > (backward-word 1)) > (error (setq go nil))) > (if (and (not go) (goto-char s) > (not (scilab-mode-highlight-ask > (point) (save-excursion (backward-word 1) (point)) > "Unstarted block. Continue anyway?"))) > (error "Unstarted Block found!"))) > (message "Block-check: %d%%" > (+ (/ (/ (* 100 (- (point-max) (point))) (point-max)) 2) 50)))))) > > ;;; Utility for verify/fix actions if you need to highlight > ;; a section of the buffer for the user's approval. > (defun scilab-mode-highlight-ask (begin end prompt) > "Highlight from BEGIN to END while asking PROMPT as a yes-no question." > (let ((mo (scilab-make-overlay begin end (current-buffer))) > (ans nil)) > (condition-case nil > (progn > (scilab-overlay-put mo 'face 'scilab-region-face) > (setq ans (y-or-n-p prompt)) > (scilab-delete-overlay mo)) > (quit (scilab-delete-overlay mo) (error "Quit"))) > ans)) > > ;;; Quietafy an sci file to remove accidental display of ANS during a run. > ;; Useful if you have random outputs and you don't know where they are from, > ;; or before compiling to standalone where some functions now have outputs > ;; that did not have outputs earlier. > ;; > ;; You probably don't want this as a default verify function > (defun scilab-mode-vf-quietafy-buffer (&optional fast) > "Find all commands that do not end in ;, and add one. > This has the effect of removing any extraneous output that may not be > desired. Optional argument FAST is not used." > (interactive) > (save-excursion > (goto-char (point-min)) > (let ((msgpos 0) (dir .2)) > (while (not (save-excursion (end-of-line) (eobp))) > (message (aref [ "Scanning o...." "Scanning .o..." "Scanning ..o.." > "Scanning ...o." "Scanning ....o" ] (floor msgpos))) > (setq msgpos (+ msgpos dir)) > (if (or (> msgpos 5) (< msgpos 0)) (setq dir (- dir) > msgpos (+ (* 2 dir) msgpos))) > (scilab-end-of-command (point)) > (if (scilab-cursor-in-comment) > (progn > (scilab-comment-on-line) > (skip-chars-backward " \t"))) > (if (and (not (= (preceding-char) ?\;)) > (not (scilab-cursor-in-string t)) > (not (save-excursion > (beginning-of-line) > (looking-at > "\\s-*\\(function\\|for\\|while\\|\ > select\\|case\\|break\\|if\\|else\\|end\\|then \\|return\\|disp\\|\ > $\\|//\\)")))) > (let ((p (point))) > (skip-chars-backward " \t") > (if (/= p (point)) > (progn > (delete-region p (point)) > (forward-line -1)) > (if (scilab-mode-highlight-ask (point) (+ 1 (point)) > "Add Semi colon here? ") > (insert ";"))))) > (forward-line 1)))) > (message "Scanning .... done")) > > > > ;;; V19 stuff ================================================================= > > (defun scilab-mode-hilit () > "Set up hilit19 support for `scilab-mode'." > (interactive) > (cond (window-system > (setq hilit-mode-enable-list '(not text-mode) > hilit-background-mode 'light > hilit-inhibit-hooks nil > hilit-inhibit-rebinding nil) > (require 'hilit19) > (hilit-set-mode-patterns 'scilab-mode scilab-hilit19-patterns)))) > > (defvar scilab-mode-menu-keymap nil > "Keymap used in Scilab mode to provide a menu.") > > (defun scilab-frame-init () > "Initialize Emacs 19+ menu and Xemacs system. in `scilab-mode' (editing mode)" > (interactive) > ;; make a menu keymap > ; (setq active (if running-xemacs "included" "active")) > (easy-menu-define scilab-insert-menu > scilab-mode-map > "Insert" > '("Insert" > ["Complete name" scilab-complete-symbol t] > ["Set Completion Type" > (customize-variable 'scilab-completion-technique) t] > "----" > ["Comment region" scilab-comment-region t] > ["UnComment region" scilab-uncomment-region t] > "----" > "Templates" > ["if end" tempo-template-scilab-if t] > ["if else end" tempo-template-scilab-if-else t] > ["for end" tempo-template-scilab-for t] > ["select else end" tempo-template-scilab-select t] > ["Next case" scilab-insert-next-case t] > ["while end" tempo-template-scilab-while t] > ["End of block" scilab-insert-end-block t] > ["Function" tempo-template-scilab-function t] > ) > ) > (easy-menu-define scilab-navigate-menu > scilab-mode-map > "Navigate" > '("Navigate" > ["Find sc[ie] file|func" scilab-find-file-on-path t] > ["Change Dir" scilab-shell-cd (scilab-shell-active-p)] > "----" > > ["Beginning of Command" scilab-beginning-of-command t] > ["End of Command" scilab-end-of-command t] > ["Forward Block" scilab-forward-sexp t] > ["Backward Block" scilab-backward-sexp t] > "----" > ["Previous Function" scilab-beginning-of-prev-defun t] > ["Beginning of Function" scilab-beginning-of-defun t] > ["Go to line of Function" scilab-function-goto-line t] > ["Whereami" scilab-whereami t] > ["End of Function" scilab-end-of-defun t] > ["Next Function" scilab-beginning-of-next-defun t] > "----" > ["Add index menu" imenu-add-menubar-index > (and (scilab-function-file-p) > (not (and (boundp 'imenu--last-menubar-index-alist) > imenu--last-menubar-index-alist)))] > ["Which func mode on|off" which-func-mode > :included > (and (fboundp `which-func-mode) > (scilab-function-file-p)) > :active ;;added for compatability of other easy-meny > (and (fboundp `which-func-mode) > (scilab-function-file-p)) > :style toggle > :selected which-func-mode] > > ) > ) > ;(setq getf-exec (if (scilab-function-file-p) "Save and getf" "Save and exec")) > (easy-menu-define scilab-mode-menu > scilab-mode-map > "Scilab menu" > '("Scilab" > ["Show Version" scilab-show-version t] > "----" > ["Save and getf" scilab-shell-save-and-getf-or-run > :included (scilab-function-file-p) > :active ;;added for compatability of old easy-menu > (scilab-shell-active-p)] > ["Save and exec" scilab-shell-save-and-getf-or-run > :included (not (scilab-function-file-p)) > :active (scilab-shell-active-p)] > > ["Run Region" scilab-shell-run-region (scilab-shell-active-p) ] > "----" > ["Find sc[ie] file" scilab-find-file-on-path t] > ["Change Dir" scilab-shell-cd (scilab-shell-active-p)] > "----" > ("Auto Fix & Format" > ["Verify/Fix source" scilab-mode-verify-fix-file t] > ["Spell check strings" scilab-ispell-strings t] > ["Spell check comments" scilab-ispell-comments t] > ["Quietafy source" scilab-mode-vf-quietafy-buffer t] > "----" > ["Justify Line" scilab-justify-line t] > ["Fill Region" scilab-fill-region t] > ["Fill Comment Paragraph" scilab-fill-paragraph > (save-excursion (scilab-comment-on-line))] > ["Join Comment" scilab-join-comment-lines > (save-excursion (scilab-comment-on-line))] > ["Indent Current Function" scilab-indent-defun t] > > ) > "----" > ["Run scilab Command" scilab-shell-run-command (scilab-shell-active-p)] > ["Describe Variable" scilab-shell-describe-variable (scilab-shell-active-p)] > ["Help on Function" scilab-shell-describe-command t] > ["Command Apropos" scilab-shell-apropos t] > ["Topic Browser" scilab-shell-topic-browser t] > ["Separate help buff" (custom-set-variables > '(scilab-help-separate-buffer (not scilab-help-separate-buffer))) > :style toggle :selected scilab-help-separate-buffer] > "----" > ("Edit options" > ["Dynamical Indent" > (custom-set-variables '(scilab-dynamical-indent (not scilab-dynamical-indent))) > :style toggle :selected scilab-dynamical-indent] > ("Indent parameters" :included scilab-dynamical-indent > ["Indent Function Body" > (custom-set-variables '(scilab-indent-function (not scilab-indent-function))) > :style toggle :selected scilab-indent-function] > ["Basic Indent " (customize-variable `scilab-indent-level) t] > ["After \"...\" Indent" (customize-variable `scilab-cont-level) t] > ["Case Indent" (customize-variable `scilab-case-level) t]) > "----" > ["Verify File on Save" > (custom-set-variables '(scilab-verify-on-save-flag (not scilab-verify-on-save-flag))) > :style toggle :selected scilab-verify-on-save-flag] > ["Max Verify Buffer" > (customize-variable `scilab-block-verify-max-buffer-size) t] > "----" > ["Auto Fill does Code" > (custom-set-variables '(scilab-fill-code (not scilab-fill-code))) > :style toggle :selected scilab-fill-code ] > ("Fill parameters" > ["Fudge" (customize-variable `scilab-fill-fudge) t] > ["Fudge Max" (customize-variable `scilab-fill-fudge-hard-maximum) t] > ["Count \"...\"" (custom-set-variables '(scilab-fill-count-ellipsis-flag (not scilab-fill-count-ellipsis-flag ))) > :style toggle :selected scilab-fill-count-ellipsis-flag ] > ["Strings" > (custom-set-variables > '(scilab-fill-strings-flag > (not scilab-fill-strings-flag ))) > :style toggle :selected scilab-fill-strings-flag ]) > "----" > ("Comments" > ["Right margin to" (customize-variable `scilab-comment-column) t] > ["Region comm-string" (customize-variable `scilab-comment-region-s) t]) > "---" > ["Periodic Code Details" > (custom-set-variables '(scilab-show-periodic-code-details-flag > (not scilab-show-periodic-code-details-flag))) > :style toggle :selected scilab-show-periodic-code-details-flag ] > ["Highlight Matching Blocks" > (scilab-enable-block-highlighting) > :style toggle :selected (member 'scilab-start-block-highlight-timer > post-command-hook) ]) > ["Restart mode" (scilab-mode)] > ["Customize Faces" (customize-group 'scilab-face)] > ["All Preferences" (customize-group 'scilab)] > "---" > ["Start Scilab" scilab-shell (not (scilab-shell-active-p))] > ["Exit Scilab" scilab-shell-remote-exit (scilab-shell-active-p) ] > )) > (if running-xemacs > (progn > (easy-menu-add scilab-mode-menu scilab-mode-map) > (easy-menu-add scilab-navigate-menu scilab-mode-map) > (easy-menu-add scilab-insert-menu scilab-mode-map)))) > > ;;; Scilab shell ============================================================= > > (defgroup scilab-shell nil > "Scilab shell mode." > :prefix "scilab-shell-" > :group 'scilab) > > (defgroup scilab-setup nil > "This group contains variables of `scilab' and `scilab-shell' groups > used for the initial setup" > :group 'scilab) > > (defcustom scilab-launch-automatically nil > "Not-nil means *Launch `scilab-shell' automatically in `scilab-mode' > if any scilab file is open " > :group 'scilab-shell > :group 'scilab-setup > :type 'boolean) > > (defcustom scilab-shell-mode-hook nil > "*List of functions to call on entry to Scilab shell mode." > :group 'scilab-shell > :group 'scilab-setup > :type 'hook) > > (defcustom scilab-shell-command > (scilab-get-default-scilab-shell-command) > "*The name of the command to be run which will start the Scilab process. > To avoid paths problems it is better to put here the full path command. > You can use standard \"scilab\" or \"scilex\" utilities or your own > shell-scripts running scilab. I do not recommend to put here any flags. > You wil have variable `scilab-shell-command-switches' for this" > :group 'scilab-shell > :group 'scilab-setup > :type 'string) > > (defcustom scilab-shell-command-switches > '("-nw") > "*Command line parameters run with `scilab-shell-command'. The standard > flag is \"-nw\". If you remove it you will not launch scilab into emacs. > You can add here your flags" > :group 'scilab-shell > :group 'scilab-setup > :type '(repeat (string :tag "Switch: "))) > > (defcustom scilab-shell-main-directory (getenv "SCI") > "*Main scilab directory usually defined as $SCI. If you occacionally > did not define it then here is your chance" > :group 'scilab-shell > :group 'scilab-setup > :type 'string) > > ;(defcustom scilab-shell-global-key "\C-cs" > ; "Global key for `scilab-shell' command \"^C\" means Ctrl-c, \"^X\" > ;means Ctrl-x,etc" > ; :group 'scilab-shell > ; :group 'scilab-setup > ; :type 'string) > > ;;;;###autoload > ;(defun scilab-shell-get-global-key () > ;scilab-shell-global-key > ;) > > (defcustom scilab-shell-initial-directory > (if (getenv "SCIHOME") (getenv "SCIHOME") (getenv "HOME")) > "*Default initial user directory. Emacs will be here in *Scilab* buffer > at the first time. Default value is the value of $SCIHOME variable in shell. If $SCIHOME is not defined then $HOME is used. But you can redefine it to your > preference if your want" > :group 'scilab-shell > :group 'scilab-setup > :type 'string) > > (defcustom scilab-topics-file-path (if (getenv "MANCHAPTERS") (getenv "MANCHAPTERS") "/tmp/manChapters") > "Name from the variable $MANCHAPTERS. If this variable is not defined then \"/tmp/manChapters\"" > :group 'scilab-shell > :group 'scilab-setup > :type 'string) > > (defcustom scilab-shell-echoes t > "If non-nil, assume that `scilab-shell-command' echoes any input. > If so, delete one copy of the input so that only one copy eventually > appears in the buffer. Thus briefly if nil you will get echo for each command." > :group 'scilab-shell > :group 'scilab-setup > :type 'boolean) > > ;; I disable customization of this variable unless gud-mode will be > ;; implemented for scilab > (defvar scilab-shell-enable-gud-flag nil > "*Non-nil means to use GUD mode when running the Scilab shell. > Now it is set to nil since it is not implement yet well in Scilab" > ; :group 'scilab-shell > ; :type 'boolean) > ) > (defcustom scilab-shell-server-start nil > "*Non-nil means that run `scilab-server-start' if it is possible. For Xemacs this is > always `gnuserv-start'. For GNU emacs server `server-start' is the standard server. > However, `gnuserv-start' with gnuserver can be installed for emacs too. > It is very useful if you want to open files and evalulate any lisp commands > directlry from `scilab-shell'. Notice that in the case of `gnuserv-start' it is run > with additional hacks which are ajust this gnuserver to unix shell of scilab personally. Thus many emaces can run many scilab-gnuservers without problems. The server is run > only if scilab-shell is active." > :group 'scilab-shell > :group 'scilab-setup > :type 'boolean) > > ;;;###autoload > (defun scilab-mode-setup() > "Setup function. When you just got the file scilab.el, it helps to > configure your scilab with emacs" > (interactive) > (customize-group 'scilab-setup) > ;(find-file user-init-file) > ;(setq initfile (current-buffer)) > ;(re-search-forward > ;(global-set-key scilab-shell-global-key 'scilab-shell) > ) > > > > > (defun scilab-shell-active-p () > "Return t if the Scilab shell is active." > (if (get-buffer (concat "*" scilab-shell-buffer-name "*")) > (save-excursion > (set-buffer (concat "*" scilab-shell-buffer-name "*")) > (if (comint-check-proc (current-buffer)) > (current-buffer))))) > > (defun scilab-shell-active-in-current-buffer-p () > "Return t if the Scilab shell is active in the current buffer." > (if (comint-check-proc (current-buffer)) > (current-buffer))) > > (defvar scilab-shell-mode-map () > "Keymap used in `scilab-shell-mode'.") > > (defvar scilab-shell-font-lock-keywords-1 > (append scilab-font-lock-keywords scilab-shell-font-lock-keywords) > "Keyword symbol used for font-lock mode.") > > (defvar scilab-shell-font-lock-keywords-2 > (append scilab-shell-font-lock-keywords-1 scilab-gaudy-font-lock-keywords) > "Keyword symbol used for gaudy font-lock symbols.") > > (defvar scilab-shell-font-lock-keywords-3 > (append scilab-shell-font-lock-keywords-2 > scilab-font-lock-solo-keywords > scilab-really-gaudy-font-lock-keywords) > "Keyword symbol used for really gaudy font-lock symbols.") > > (eval-when-compile (require 'gud) (require 'comint) (require 'shell)) > > (defun scilab-reset-shell-mode-map () > (setq > scilab-shell-mode-map > (let ((km (make-sparse-keymap 'scilab-shell-mode-map))) > ; (if (fboundp 'set-keymap-parent) > ; (set-keymap-parent km comint-mode-map) > ; ;; 19.31 doesn't have set-keymap-parent > ; (setq km (nconc km comint-mode-map))) > (define-key km "\ep" 'comint-previous-input) > (define-key km "\en" 'comint-next-input) > (define-key km [(control up)] 'comint-previous-input) > (define-key km [(control down)] 'comint-next-input) > (define-key km "\er" 'comint-previous-matching-input) > (define-key km "\es" 'comint-next-matching-input) > (define-key km [?\C-c ?\M-r] 'comint-previous-matching-input-from-input) > (define-key km [?\C-c ?\M-s] 'comint-next-matching-input-from-input) > (define-key km "\e\C-l" 'comint-show-output) > (define-key km "\C-m" 'comint-send-input) > (define-key km "\C-d" 'comint-delchar-or-maybe-eof) > (define-key km "\C-c " 'comint-accumulate) > (define-key km "\C-c\C-x" 'comint-get-next-from-history) > (define-key km "\C-c\C-a" 'comint-bol-or-process-mark) > (define-key km "\C-c\C-u" 'comint-kill-input) > (define-key km "\C-c\C-w" 'backward-kill-word) > (define-key km "\C-c\C-c" 'comint-interrupt-subjob) > (define-key km "\C-c\C-z" 'comint-stop-subjob) > (define-key km "\C-c\C-\\" 'comint-quit-subjob) > (define-key km "\C-c\C-m" 'comint-copy-old-input) > (define-key km "\C-c\C-o" 'comint-kill-output) > (define-key km "\C-c\C-r" 'comint-show-output) > (define-key km "\C-c\C-e" 'comint-show-maximum-output) > (define-key km "\C-c\C-l" 'comint-dynamic-list-input-ring) > (define-key km "\C-c\C-n" 'comint-next-prompt) > (define-key km "\C-c\C-p" 'comint-previous-prompt) > (define-key km "\C-c\C-d" 'comint-send-eof) > > (substitute-key-definition 'next-error 'scilab-shell-last-error > km global-map) > (define-key km [(control h) return] scilab-help-map) > ; (define-key km [(tab)] 'comint-dynamic-complete-filename) > (define-key km [(tab)] 'scilab-complete-symbol) > (define-key km [(control up)] 'comint-previous-matching-input-from-input) > (define-key km [(control down)] 'comint-next-matching-input-from-input) > ; (define-key km [up] 'comint-previous-matching-input-from-input) > ; (define-key km [down] 'comint-next-matching-input-from-input) > (define-key km [(control backspace)] 'comint-kill-input) > (define-key km "\C-c\C-a" 'scilab-abort-subjob) > (define-key km "\C-c\C-c" 'comint-interrupt-subjob) > (define-key km "\C-c\C-e" 'scilab-shell-exit) > (define-key km "\C-c\C-r" 'scilab-shell-restart) > (define-key km "\C-c\C-k" 'comint-kill-subjob) > (define-key km [(control c) ?.] 'scilab-find-file-on-path) > (define-key km "\C-c/" 'scilab-shell-cd) > (define-key km "\C-cd" 'scilab-shell-cd) > (define-key km "\C-x\\" 'scilab-shell-after-pause) > (define-key km "\C-cc" 'scilab-shell-run-command) > (define-key km "\C-cr" 'scilab-shell-run-region) > (define-key km [(control return)] 'scilab-continue-subjob) > (define-key km "\C-?" 'scilab-shell-delete-backwards-no-prompt) > (define-key km [(backspace)] 'scilab-shell-delete-backwards-no-prompt) > km))) > > ;;;###autoload > (defun scilab-shell () > "Create a buffer with Scilab running as a subprocess." > > (interactive) > ;; Scilab shell does not work by default on the Windows platform. Only > ;; permit it's operation when the shell command string is different from > ;; the default value. (True when the engine program is running.) > (if (and (or (eq window-system 'pc) (eq window-system 'w32)) > (string= scilab-shell-command "scilab")) > (error "Scilab cannot be run as a inferior process. \ > Try C-h f scilab-shell RET")) > > (require 'shell) > (require 'term) > (require 'gud) > > ;; Make sure this is safe... > (if (fboundp 'gud-def) > ;; We can continue using GUD > nil > ; (message "Sorry, your emacs cannot use the Scilab Shell GUD features.") > (setq scilab-shell-enable-gud-flag nil)) > > (let ((buffer (get-buffer-create (concat "*" scilab-shell-buffer-name "*")))) > (set-buffer buffer) > (unless (comint-check-proc buffer) > ;; Build keymap here in case someone never uses comint mode > (unless scilab-shell-mode-map > (scilab-reset-shell-mode-map)) > > (when running-xemacs > (if (boundp 'system-uses-terminfo) > (setq scilab-system-uses-terminfo system-uses-terminfo) > (setq scilab-system-uses-terminfo nil)) > (setq system-uses-terminfo t)) > > (apply 'make-comint-in-buffer "scilab" > buffer > scilab-shell-command > nil ; no start file > scilab-shell-command-switches) > (if running-xemacs > (setq system-uses-terminfo scilab-system-uses-terminfo)) > (comint-mode) > (when running-xemacs > (delete-menu-item '("Complete")) > (delete-menu-item '("In/Out")) > (delete-menu-item '("Signals"))) > (setq shell-dirtrackp t) > (if scilab-shell-enable-gud-flag > (progn > (gud-mode) > (make-local-variable 'gud-marker-filter) > (setq gud-marker-filter 'gud-scilab-marker-filter) > (make-local-variable 'gud-find-file) > (setq gud-find-file 'gud-scilab-find-file) > (make-local-variable 'gud-format-command) > (setq gud-find-file 'gud-scilab-format-command) > (set-process-filter (get-buffer-process (current-buffer)) > 'gud-filter) > (set-process-sentinel (get-buffer-process (current-buffer)) > 'gud-sentinel) > (gud-set-buffer)) > ;; What to do when there is no GUD > ;(set-process-filter (get-buffer-process (current-buffer)) > ; 'scilab-shell-process-filter) > ) > > ;;;server-start. For running any emacs commands from scilab > ; (if scilab-shell-server-start (scilab-server-start)) > > > > ;; Comint and GUD both try to set the mode. Now reset it to > ;; scilab mode. > (setq scilab-shell-libfunc-isbuilt nil) > (scilab-shell-mode)) > (switch-to-buffer buffer))) > > (defun scilab-shell-versions () > "Save in scilab variable %version versions of scilab, emacs, scilab-mode > and client-mode" > (interactive) > (let* ((emacsname > (concat (if running-xemacs "'XEmacs-" "'GNU Emacs-") version-emacs "'")) > (client (scilab-server-status)) > (vv (concat emacsname ";'scilab-mode " scilab-mode-version "';'" client "'")) > (p (point-max))) > (scilab-shell-collect-command-output > (concat "if ~exists('%version') then \n" > "errcatch(4,'continue','nomessage');%version=getversion();\n" > "if iserror(4), errclear(4);%version='scilab < 2.5.1';end\n" > "errcatch(4,'kill'); end\n" > "%version=[%version(1);" vv "];\n")) > (setq scilab-mode-all-versions > (substring > (scilab-shell-collect-command-output > "write(%io(2),strcat(%version([3,2,4]),' '));") > 0 -3)) > (message "Updated scilab variable %%version: %s" scilab-mode-all-versions))) > > (defcustom scilab-shell-logo (concat (getenv "SCI") "/X11_defaults/scilab.xpm") > "*The Scilab logo file." > :group 'scilab-shell > :type '(choice (const :tag "None" nil) > (file :tag "File" ""))) > > > (defun scilab-shell-hack-logo (str) > "Replace the text logo with a real logo. > STR is passed from the commint filter." > (when (string-match "S c i l a b" str) > (save-excursion > (when (re-search-backward > "===========\n[ \t]+S c i l a b\n[ \t]+===========" > (point-min) t) > (delete-region (match-beginning 0) (match-end 0)) > (goto-char (match-beginning 0)) > (set-extent-begin-glyph (make-extent (point) (point)) > (make-glyph scilab-shell-logo)))) > ;; Remove this function from `comint-output-filter-functions' > (remove-hook 'comint-output-filter-functions > 'scilab-shell-hack-logo))) > > > (define-derived-mode scilab-shell-mode comint-mode "Scilab-Shell" > "Major mode for interactive with Scilab as a subprocess in an Emacs buffer. > > This mode will allow standard Emacs shell commands/completion to occur > with Scilab running as an inferior process. Additionally, this shell > mode is integrated with `scilab-mode', a major mode for editing sci > code. > > > From an sci file buffer: > \\ > \\[scilab-shell-save-and-getf-or-run] - Save the current sci file, and getf it in a \ > Scilab shell. If this is script then runs it. > > > From Shell mode: > \\ > \\[scilab-shell-mode] - restart scilab shell mode > \\[scilab-shell-last-error] - find location of last Scilab runtime error \ > in the offending sci file. > \\[scilab-shell-after-pause] - find the current pause-line > \\[scilab-shell-active-p] - check either scilab is active in Scilab buffer > \\[scilab-shell-active-in-current-buffer-p] - check either scilab is active in the current buffer > \\[scilab-shell-additional] - run additional scilabs as subprocesses in > emacs buffers. Auxiliary shells has much less features but sometimes they are useful > > From an sci file, or from Shell mode: > \\[scilab-shell-whereami] - Display current instruction calling tree > \\[scilab-shell-cd] - Change directory both in scilab and the current buffer > \\[scilab-shell-demos] - Runs scilab demos > \\[scilab-shell] - start scilab > \\[scilab-shell-exit] - Exist scilab > \\[scilab-shell-restart] - restart scilab > \\ > \\[scilab-shell-run-command] - Run COMMAND and show result in a popup buffer. > \\[scilab-shell-describe-variable] - Show variable contents in a popup buffer. > \\[scilab-shell-describe-command] - Show online documentation for a command \ > in a popup buffer. > \\[scilab-shell-apropos] - Show output from apropos command in a popup buffer. > \\[scilab-shell-topic-browser] - Topic browser using HELP. > > > Keymap: > \\{scilab-mode-map}" > (setq comint-prompt-regexp "-[1-100]?-> *" > comint-delimiter-argument-list (list [ 59 ])) ; semi colon > (set (make-local-variable 'comint-dynamic-complete-functions) > '(comint-replace-by-expanded-history)) > (setq comint-process-echoes scilab-shell-echoes) > ;;(add-hook 'comint-input-filter-functions 'shell-directory-tracker) > ;; Add a spiffy logo if we are running XEmacs > (if (and running-xemacs window-system > (stringp scilab-shell-logo) > (file-readable-p scilab-shell-logo)) > (add-hook 'comint-output-filter-functions 'scilab-shell-hack-logo)) > (set (make-local-variable 'comment-start) "//") > (use-local-map scilab-shell-mode-map) > (set-syntax-table scilab-mode-syntax-table) > (set (make-local-variable 'comint-input-sender) > (function scilab-simple-send)) > (set (make-local-variable 'font-lock-defaults) > '((scilab-shell-font-lock-keywords-1 > scilab-shell-font-lock-keywords-2 > scilab-shell-font-lock-keywords-3 > ) > t nil ((?_ . "w")))) > (make-local-variable 'gud-marker-acc) > (setq scilab-shell-number-graphic-window 0) > (if window-system (scilab-shell-frame-init)) > > (if scilab-shell-enable-gud-flag > (progn > (gud-scilab-make-debug-menu) > (set-marker comint-last-output-start (point-max)) > )) > (set > (make-local-variable 'next-line-add-newlines) > nil) > (run-hooks 'scilab-shell-mode-hook) > (when (ring-empty-p comint-input-ring) > (scilab-shell-cd scilab-shell-initial-directory) > (scilab-show-version) > ;;;server-start. For running any emacs commands from scilab > (if scilab-shell-server-start > (scilab-server-start) > (scilab-shell-versions) > ) > > ; (let ((allnames (if scilab-libfunc-list-path > ; scilab-libfunc-list-path > ; (concat scilab-shell-initial-directory "/libfunc")))) > ; (if (file-exists-p allnames) > ; (delete-file allnames))) > (if (and (boundp 'font-lock-mode) (fboundp 'font-lock-mode)) > (if scilab-font-lock-mode > (turn-on-font-lock) > (font-lock-mode -1))) > (comint-read-input-ring t))) > > > (defun scilab-shell-frame-init() > "Initialize Emacs 19+ menu and Xemacs system. in `scilab-shell-mode' (editing mode)" > ;;I grabbed this menu from the standard comint I/O menu, but many stuffs > ;; I removed as not useful (by my private opinion) > (use-local-map scilab-shell-mode-map) > (easy-menu-remove-item nil nil "SciI/O") > (easy-menu-define > scilab-shell-IO-menu > scilab-shell-mode-map > "Scilab shell I/O menu" > '("SciI/O" > ["Expand History Before Point" comint-replace-by-expanded-history] > ["List Input History" comint-dynamic-list-input-ring] > ["Previous Input" comint-previous-input] > ["Next Input" comint-next-input] > ["Previous Matching Current Input" comint-previous-matching-input-from-input] > ["Next Matching Current Input" comint-next-matching-input-from-input] > ["Previous Matching Input..." comint-previous-matching-input] > ["Next Matching Input..." comint-next-matching-input] > ["Backward Matching Input..." comint-backward-matching-input] > ["Forward Matching Input..." comint-forward-matching-input] > ["Copy Old Input" comint-copy-old-input] > ["Kill Current Input" comint-kill-input] > )) > (easy-menu-remove-item nil nil "Complete") > (easy-menu-define > scilab-shell-complete-menu > scilab-shell-mode-map > "Scilab shell complete menu" > '("Complete" > ["Complete Name" scilab-complete-symbol] > ["Expand File Name" comint-replace-by-expanded-filename] > ["Complete Before Point" comint-dynamic-complete] > ["Set Completion Type" (customize-variable 'scilab-completion-technique)] > > )) > (easy-menu-remove-item nil nil "SciCtrl") > (easy-menu-define > scilab-shell-control-menu > scilab-shell-mode-map > "Scilab shell control menu" > '("SciCtrl" > ["Break" comint-interrupt-subjob :included(scilab-shell-active-p) > :active(scilab-shell-active-p)] > ["Abort" scilab-abort-subjob :included(scilab-shell-active-p) > :active(scilab-shell-active-p)] > ["Resume" scilab-continue-subjob :included(scilab-shell-active-p) > :active(scilab-shell-active-p)] > "----" > ["Start" scilab-shell (not (scilab-shell-active-p))] > ["Restart" scilab-shell-restart (scilab-shell-active-p)] > ["Exit" scilab-shell-exit (scilab-shell-active-p)] > ["Quit" comint-quit-subjob (scilab-shell-active-p)] > ["Kill" comint-kill-subjob (scilab-shell-active-p)] > "----" > ["More scilabs" scilab-shell-additional] > "----" > ["Server start" scilab-server-start > :included > (and (scilab-shell-active-p) (not scilab-server-status)) > :active ;;added for compatability of other easy-meny > (and (scilab-shell-active-p) (not scilab-server-status))] > ["Server kill" scilab-server-kill > :included > (and scilab-server-status (scilab-shell-active-p)) > :active ;;added for compatability of other easy-meny > (and scilab-server-status (scilab-shell-active-p))] > ) > > ) > (easy-menu-remove-item nil nil scilab-shell-graphic-menu-title) > (setq scilab-shell-graphic-menu-title (concat > "Graphic " > (int-to-string scilab-shell-number-graphic-window))) > (easy-menu-define > scilab-shell-graphic-menu > scilab-shell-mode-map > "Scilab shell graphic windows menu" > `( ,scilab-shell-graphic-menu-title > ["Open Window" scilab-shell-open-graphic-window > :included(scilab-shell-active-p) > :active(scilab-shell-active-p) ] > ["Next" (scilab-shell-plus-graphic-window) > :included(scilab-shell-active-p) > :active(scilab-shell-active-p) ] > ["Previous" (scilab-shell-minus-graphic-window) > :included(scilab-shell-active-p) > :active(scilab-shell-active-p) ] > ["Close Window" scilab-shell-close-current-figure > :included(scilab-shell-active-p) > :active(scilab-shell-active-p)] > ["Close All" scilab-shell-close-figures > :included(scilab-shell-active-p) > :active(scilab-shell-active-p)] > )) > > (easy-menu-remove-item nil nil "Scilab") > (easy-menu-define > scilab-general-menu > scilab-shell-mode-map > "Scilab general menu" > '("Scilab" > ["Goto last error" scilab-shell-last-error t] > ["Goto after pause" scilab-shell-after-pause t] > ["Run Command" scilab-shell-run-command :included(scilab-shell-active-p) > :active(scilab-shell-active-p)] > ["Run Region" scilab-shell-run-region :included(scilab-shell-active-p) > :active(scilab-shell-active-p)] > "----" > ["Find sc[ie] file|func" scilab-find-file-on-path t] > ["Change Dir" scilab-shell-cd (scilab-shell-active-p)] > "----" > ["Shell whereami" scilab-shell-whereami (scilab-shell-active-p)] > ["Describe Variable" scilab-shell-describe-variable > :included(scilab-shell-active-p) > :active(scilab-shell-active-p)] > ["Help on Function" scilab-shell-describe-command t] > ["Apropos (Key) Command" scilab-shell-apropos t] > ["Topic Browser" scilab-shell-topic-browser t] > ["Separate help buff" (custom-set-variables > '(scilab-help-separate-buffer (not scilab-help-separate-buffer))) > :style toggle :selected scilab-help-separate-buffer] > "----" > ["Demos" scilab-shell-demos > :included(scilab-shell-active-p) > :active(scilab-shell-active-p)] > "----" > ["Open Graphic Window" scilab-shell-open-graphic-window > :included(scilab-shell-active-p) > :active(scilab-shell-active-p) ] > "----" > ["Restart mode" (scilab-shell-mode)] > ["Setup mode" (scilab-mode-setup)] > ["Customize Faces" (customize-group 'scilab-face)] > "----" > ["More scilabs" scilab-shell-additional] > )) > > (if running-xemacs > (progn > (easy-menu-add scilab-general-menu scilab-shell-mode-map) > (easy-menu-add scilab-shell-graphic-menu scilab-shell-mode-map) > (easy-menu-add scilab-shell-control-menu scilab-shell-mode-map) > (easy-menu-add scilab-shell-complete-menu scilab-shell-mode-map) > (easy-menu-add scilab-shell-IO-menu scilab-shell-mode-map) > )) > ;;Dummy action > (scilab-shell-dummy-action) > (message "Menus updated") > ) > > (defun scilab-shell-dummy-action() > "Dummy action. Does nothing" > > (if (not (scilab-on-prompt-p)) > nil > (save-excursion > (let ((pos nil) > (lastcmd)) > (goto-char (point-max)) > (beginning-of-line) > (re-search-forward comint-prompt-regexp) > (setq lastcmd (buffer-substring (point) (scilab-point-at-eol))) > (delete-region (point) (scilab-point-at-eol)) > (setq pos (point)) > (comint-send-string (get-buffer-process (current-buffer)) "\n") > (while (or (>= pos (point)) (not (scilab-on-empty-prompt-p))) > (accept-process-output (get-buffer-process (current-buffer))) > (goto-char (point-max)) > ) > (goto-char pos) > (beginning-of-line) > (delete-region pos (point-max)) > (insert lastcmd)) > ))) > > (defun scilab-shell-additional () > "Create an additional buffer with additional Scilab running as a subprocess. > If in the main scilab buffer there is no process then rerun the basic scilab" > (interactive) > (if (not (scilab-shell-active-p)) (scilab-shell) > (let ((nobuff t) (num 1) (buffname nil)) > (while nobuff > (setq buffname (concat scilab-shell-buffer-name "-" (int-to-string num))) > (switch-to-buffer (concat "*" buffname "*")) > (if (scilab-shell-active-in-current-buffer-p) > (setq num (+ num 1)) > (setq nobuff nil))) > (comint-mode) > (switch-to-buffer (make-comint buffname scilab-shell-command > nil scilab-shell-command-switches)) > (make-local-variable 'font-lock-defaults) > (setq font-lock-defaults '((scilab-shell-font-lock-keywords-1 > scilab-shell-font-lock-keywords-2 > scilab-shell-font-lock-keywords-3 > ))) > (make-local-variable 'next-line-add-newlines) > (setq next-line-add-newlines nil) > (make-local-variable 'comint-process-echoes) > (setq comint-process-echoes scilab-shell-echoes) > (run-hooks 'scilab-shell-mode-hook) > ))) > > > (defun gud-scilab-make-debug-menu() > "Make `gud-def's and runs `gud-make-debug-menu'" > (gud-def gud-break (concat "setbpt('" (scilab-which-function) "'," (scilab-get-number-line-in-function) ")") "\C-b" "Set breakpoint at current line.") > ;(gud-def gud-break (concat "setbpt('%y',%L)" "\C-b" "Set breakpoint at current line.") > ; (gud-def gud-break (concat "setbpt('" (substring %f 0 (- (length %f) 3)) "'," "%l") "\C-b" "Set breakpoint at current line.") > ; (gud-def gud-remove "delbpt at %l in %f" "\C-d" "Remove breakpoint at current line") > (gud-def gud-remove (concat "delbpt('" (scilab-which-function) "'," (scilab-get-number-line-in-function) ")") "\C-d" "Remove breakpoint at current line") > > (gud-def gud-step "dbstep %p" "\C-s" "Step one source line with display.") > (gud-def gud-cont "resume" "\C-r" "Continue with display.");;; > (gud-def gud-finish "dbquit" "\C-f" "Finish executing current function.") > (gud-def gud-up "dbup %p" "<" "Up N stack frames (numeric arg).") > (gud-def gud-down "dbdown %p" ">" "Down N stack frames (numeric arg).") > (gud-def gud-print "%e" "\C-p" "Evaluate sci expression at point.") > (if (fboundp 'gud-make-debug-menu) > (gud-make-debug-menu)) > (if (fboundp 'gud-overload-functions) > (gud-overload-functions > '((gud-massage-args . gud-scilab-massage-args) > (gud-marker-filter . gud-scilab-marker-filter) > (gud-find-file . gud-scilab-find-file)))) > ;; XEmacs doesn't seem to have this concept already. Oh well. > (setq gud-marker-acc nil) > ) > > (defvar gud-scilab-marker-regexp-1 "^K-[1-100]?->" > "Regular expression for finding a file line-number.") > > (defvar gud-scilab-marker-regexp-2 > "^> In \\([-.a-zA-Z0-9_/@]+\\) \\((\\w+) \\|\\)at line \\([0-9]+\\)[ \n]+" > "Regular expression for finding a file line-number. > Please note: The > character represents the current stack frame, so if there > are several frames, this makes sure we pick the right one to popup.") > > (defvar gud-scilab-marker-regexp-prefix "^> In " > "A prefix to scan for to know if output might be scarfed later.") > > ;; The regular expression covers the following form: > ;; Errors: !--error > ;; error_string > ;; at line of function called by: > ;; > (defvar gud-scilab-error-regexp > (concat "\\s-*\\(!--error\\).*\n" > "\\(.*\n\\)+" > "at line[ \t]+\\([0-9]+\\) of function \\(\\S-+\\)" > ;\\s-+called by:\\s-*\n" > ) > "Regular expression finding where an error occurred.") > > (defvar gud-scilab-pause-regexp > "\\s-*\\(%?[a-zA-Z0-9#_]+\\)[ \t]+called at line\\s-+\\([0-9]+\\)\\s-+of macro\\s-+\\(%?[a-zA-Z0-9#_]+\\>\\)" > "Regular expression finding where a pause occurred.") > > (defvar gud-scilab-pause-regexp2 > "\\s-*\\(Stop after row\\)\\s-+\\([0-9]+\\)\\s-+in function\\s-+\\(%?[a-zA-Z0-9#_]+\\>\\)" > "Regular expression type 2 finding where a pause occurred.") > (defvar gud-scilab-pause-regexp3 > "\\(at line\\|line\\)[ \t]+\\([0-9]+\\) of function \\(\\S-+\\)") > > (defvar scilab-last-frame-returned nil > "Store the previously returned frame for Scilabs difficult debugging output. > It is reset to nil whenever we are not prompted by the K-[1-100]?-> output.") > > (defvar scilab-one-db-request nil > "Set to t if we requested a debugger command trace.") > > (defun gud-scilab-massage-args (file args) > "Argument massager for starting scilab file. > I don't think I have to do anything, but I'm not sure. > FILE is ignored, and ARGS is returned." > args) > > (defun gud-scilab-marker-filter (string) > "Filters STRING for the Unified Debugger based on Scilab output. > Swiped ruthlessly from GDB mode in gud.el" > (let ((garbage (concat "\\(" (regexp-quote "\C-g") "\\|" > (regexp-quote "\033[H0") "\\|" > (regexp-quote "\033[H\033[2J") "\\|" > (regexp-quote "\033H\033[2J") "\\)"))) > (while (string-match garbage string) > (if (= (aref string (match-beginning 0)) ?\C-g) > (beep t)) > (setq string (replace-match "" t t string)))) > (setq gud-marker-acc (concat gud-marker-acc string)) > (let ((output "") (frame nil)) > > ;; Remove output from one stack trace... > (if (eq scilab-one-db-request t) > (if (string-match "db[a-z]+[ \n]+" gud-marker-acc) > (setq gud-marker-acc (substring gud-marker-acc (match-end 0)) > scilab-one-db-request 'prompt))) > > ;; Process all the complete markers in this chunk. > (while (and (not (eq scilab-one-db-request t)) > (string-match gud-scilab-marker-regexp-2 gud-marker-acc)) > > (setq > > ;; Extract the frame position from the marker. > frame (cons (match-string 1 gud-marker-acc) > (string-to-number (substring gud-marker-acc > (match-beginning 3) > (match-end 3)))) > > ;; Append any text before the marker to the output we're going > ;; to return - we don't include the marker in this text. > ;; If this is not a requested piece of text, then include > ;; it into the output. > output (concat output > (substring gud-marker-acc 0 > (if scilab-one-db-request > (match-beginning 0) > (match-end 0)))) > > ;; Set the accumulator to the remaining text. > gud-marker-acc (substring gud-marker-acc (match-end 0)))) > > (if frame > (progn > ;; We have a frame, so we don't need to do extra checking. > (setq scilab-last-frame-returned frame) > ) > (if (and (not scilab-one-db-request) > (string-match gud-scilab-marker-regexp-1 gud-marker-acc)) > (progn > ;; Here we know we are in debug mode, so find our stack, and > ;; deal with that later... > (setq scilab-one-db-request t) > (process-send-string (get-buffer-process gud-comint-buffer) > "dbstack\n")))) > > ;; Check for a prompt to nuke... > (if (and (eq scilab-one-db-request 'prompt) > (string-match "^K?-[1-100]?-> $" gud-marker-acc)) > (setq scilab-one-db-request nil > output "" > gud-marker-acc (substring gud-marker-acc (match-end 0)))) > > ;; Finish off this part of the output. None of our special stuff > ;; ends with a \n, so display those as they show up... > (while (string-match "^[^\n]*\n" gud-marker-acc) > (setq output (concat output (substring gud-marker-acc 0 (match-end 0))) > gud-marker-acc (substring gud-marker-acc (match-end 0)))) > > (if (string-match gud-scilab-marker-regexp-prefix gud-marker-acc) > ;; We could be collecting something. Wait for a while. > nil > (setq output (concat output gud-marker-acc) > gud-marker-acc "") > ;; Check our output for a prompt, and existence of a frame. > ;; If t his is true, throw out the debug arrow stuff. > (if (and (string-match "^-[1:100]?-> $" output) > gud-last-last-frame) > (progn > (setq overlay-arrow-position nil > gud-last-last-frame nil) > (sit-for 0) > ))) > > (if frame (setq gud-last-frame frame)) > > ;;(message "[%s] [%s]" output gud-marker-acc) > > output)) > ;;We write here the new version of function gud-scilab-find-file taking in account > ;; that scilab accepts many function in one file. The old version is commented. > (defun gud-scilab-find-file (f) > "Find file F or function when debugging frames in Scilab." > (save-excursion > (scilab-find-file-on-path f) > (if scilab-shell-enable-gud-flag > (gud-scilab-make-debug-menu)) > (current-buffer))) > > > ;;;(defun gud-scilab-find-file (f) > ;;; "Find file F when debugging frames in Scilab." > ;;; (save-excursion > ;;; (let* ((realfname (if (string-match "\\.\\(p\\)$" f) > ;;; (progn > ;;; (aset f (match-beginning 1) ?m) > ;;; f) > ;;; f)) > ;;; (buf (find-file-noselect realfname))) > ;;; (set-buffer buf) > ;;; (if (fboundp 'gud-make-debug-menu) > ;;; (gud-make-debug-menu)) > ;;; buf))) > > ;;Scilab version of gud-format-command, extend format to catch functions names > ;; and lines into functions not in file > (defun gud-scilab-format-command (str arg) > "Local version of `gud-format-command'. Add format " > > (let ((insource (not (eq (current-buffer) gud-comint-buffer))) > (frame (or gud-last-frame gud-last-last-frame)) > result) > (while (and str (string-match "\\([^%]*\\)%\\([adeflpLy]\\)" str)) > (let ((key (string-to-char (substring str (match-beginning 2)))) > subst) > (cond > ((eq key ?f) > (setq subst (file-name-nondirectory (if insource > (buffer-file-name) > (car frame))))) > ((eq key ?F) > (setq subst (file-name-sans-extension > (file-name-nondirectory (if insource > (buffer-file-name) > (car frame)))))) > ((eq key ?y) > (setq subst (if insource (scilab-which-function) > (car frame)))) > > ((eq key ?d) > (setq subst (file-name-directory (if insource > (buffer-file-name) > (car frame))))) > ((eq key ?l) > (setq subst (if insource > (save-excursion > (beginning-of-line) > (save-restriction (widen) > (1+ (count-lines 1 (point))))) > (cdr frame)))) > ((eq key ?L) > (setq subst (if insource > (scilab-get-number-line-in-function) > (cdr frame)))) > > ((eq key ?e) > (setq subst (gud-find-c-expr))) > ((eq key ?a) > (setq subst (gud-read-address))) > ((eq key ?p) > (setq subst (if arg (int-to-string arg) "")))) > (setq result (concat result > (substring str (match-beginning 1) (match-end 1)) > subst))) > (setq str (substring str (match-end 2)))) > ;; There might be text left in STR when the loop ends. > (concat result str))) > > (defun scilab-shell-delete-backwards-no-prompt (&optional arg) > "Delete one char backwards without destroying the scilab prompt. > Optional argument ARG describes the number of chars to delete." > (interactive "P") > (let ((promptend (save-excursion > (beginning-of-line) > (if (looking-at "K?-[1:100]?-> ") > (match-end 0) > (point)))) > (numchars (if (integerp arg) (- arg) -1))) > (if (<= promptend (+ (point) numchars)) > (delete-char numchars) > (error "Beginning of line")))) > > > ;;; Scilab Shell Commands ===================================================== > > (defun scilab-read-word-at-point () > "Get the word closest to point, but do not change position. > Has a preference for looking backward when not directly on a symbol. > Snatched and hacked from dired-x.el" > (let ((word-chars "a-zA-Z0-9_") > (bol (scilab-point-at-bol)) > (eol (scilab-point-at-eol)) > start) > (save-excursion > ;; First see if just past a word. > (if (looking-at (concat "[" word-chars "]")) > nil > (skip-chars-backward (concat "^" word-chars "{}()\[\]") bol) > (if (not (bobp)) (backward-char 1))) > (if (numberp (string-match (concat "[" word-chars "]") > (char-to-string (following-char)))) > (progn > (skip-chars-backward word-chars bol) > (setq start (point)) > (skip-chars-forward word-chars eol)) > (setq start (point))) ; If no found, return empty string > (buffer-substring start (point))))) > > (defun scilab-read-line-at-point () > "Get the line under point, if command line." > (if (eq major-mode 'scilab-shell-mode) > (save-excursion > (beginning-of-line) > (if (not (looking-at (concat comint-prompt-regexp))) > "" > (search-forward-regexp comint-prompt-regexp) > (buffer-substring (point) (scilab-point-at-eol)))) > (save-excursion > ;; In scilab buffer, find all the text for a command. > ;; so back over until there is no more continuation. > (while (save-excursion (forward-line -1) (scilab-lattr-cont)) > (forward-line -1)) > ;; Go forward till there is no continuation > (beginning-of-line) > (let ((start (point))) > (while (scilab-lattr-cont) (forward-line 1)) > (end-of-line) > (buffer-substring start (point)))))) > > (defun scilab-non-empty-lines-in-string (str) > "Return number of non-empty lines in STR." > (let ((count 0) > (start 0)) > (while (string-match "^.+$" str start) > (setq count (1+ count) > start (match-end 0))) > count)) > > (defun scilab-output-to-temp-buffer (buffer output) > "Print output to temp buffer, or a message if empty string. > BUFFER is the buffer to output to, and OUTPUT is the text to insert." > (let ((lines-found (scilab-non-empty-lines-in-string output))) > (cond ((= lines-found 0) > (message "(Scilab command completed with no output)")) > ((= lines-found 1) > (string-match "^.+$" output) > (message (substring output (match-beginning 0)(match-end 0)))) > (t (with-output-to-temp-buffer buffer (princ output)) > (save-excursion > (set-buffer buffer) > (if (equal buffer "*SciApropos*") > (scilab-shell-topic-mode) > (scilab-shell-help-mode)) > ))))) > > (defun scilab-shell-run-command (command) > "Run COMMAND and display result in a buffer. > This command requires an active Scilab shell." > (interactive (list (read-from-minibuffer > "Scilab command line: " > (cons (scilab-read-line-at-point) 0)))) > ; (let ((doc (scilab-shell-collect-command-output command))) > (scilab-shell-collect-command-output "%tmp=lines();lines(0)") > (let ((doc (scilab-shell-collect-command-output command))) > (scilab-output-to-temp-buffer "*SciCommand*" doc)) > (scilab-shell-collect-command-output "lines(%tmp(2),%tmp(1)); clear %tmp")) > > (defun scilab-shell-run-graphic (command) > "Run COMMAND and display result in a buffer. > This command requires an active Scilab shell." > (interactive (list (read-from-minibuffer > "Scilab graphic command: " > (cons (scilab-read-line-at-point) 0)))) > ; (let ((doc (scilab-shell-collect-command-output command))) > (scilab-shell-collect-command-output command)) > > > (defun scilab-shell-describe-variable (variable) > "Get the contents of VARIABLE and display them in a buffer. > This uses the wh (My utilita) command to find viable commands. > This command requires an active Scilab shell." > (interactive (list (read-from-minibuffer > "Scilab variable: " > (cons (scilab-read-word-at-point) 0)))) > (let ( (err (scilab-shell-collect-command-output (concat > "[#obj,#err]=evstr('" variable "'); write(%io(2),#err,'(i4)');"))) > (vartype (string-to-number (scilab-shell-collect-command-output > "write(%io(2),type(#obj),'(i2)');clear #err;"))) > vardescr) > (setq err (string-to-number err)) > (cond ((= err 4) > (setq vardescr (concat "Variable " variable " is not defined"))) > ((= err 25) > (setq vardescr (concat "Primitive (builtin) function\n\n " variable))) > ((= vartype 1) > (setq vardescr (scilab-shell-collect-command-output > "disp('Numeric (float) Matrix');disp(size(#obj));clear #obj"))) > ((= vartype 2) > (setq vardescr (scilab-shell-collect-command-output > "disp('Polynomial Matrix');disp(size(#obj));clear #obj"))) > ((= vartype 4) > (setq vardescr (scilab-shell-collect-command-output > "disp('Boolean Matrix');disp(size(#obj));clear #obj"))) > ((= vartype 5) > (setq vardescr (scilab-shell-collect-command-output > "disp('Sparse Matrix');disp(size(#obj));clear #obj"))) > ((= vartype 8) > (setq vardescr (scilab-shell-collect-command-output > "disp('Integer Matrix');disp(size(#obj));clear #obj"))) > ((= vartype 10) > (setq vardescr (scilab-shell-collect-command-output (concat > "disp('String (Matrix)');" > "if and(size(#obj)==[1 1]),disp(length(#obj)); else " > "disp(size(#obj)); end; clear #obj")))) > ((= vartype 11) > (setq vardescr (scilab-shell-collect-command-output (concat > "disp('Un-compiled function');##=macrovar(#obj);" > "disp('['+string(strcat(##(2),','))+']=" variable > "('+strcat(string(##(1)),',')+')'); clear ## #obj")))) > ((= vartype 13) > (setq vardescr (scilab-shell-collect-command-output (concat > "disp('Compiled function');##=macrovar(#obj);" > "disp('['+string(strcat(##(2),','))+']=" variable > "('+strcat(string(##(1)),',')+')'); clear ## #obj")))) > ((= vartype 14) > (setq vardescr (scilab-shell-collect-command-output > "disp('Function Library');disp(#obj);clear #obj"))) > ((= vartype 15) > (setq vardescr (scilab-shell-collect-command-output > "disp('List');disp(length(#obj));clear #obj"))) > ((= vartype 16) > (setq vardescr (scilab-shell-collect-command-output (concat > "disp('Typed List (tlist): '+#obj(1)(1));" > "disp('Number of fields: '+string(length(#obj)-1));clear #obj;")))) > ((= vartype 17) > (setq vardescr (scilab-shell-collect-command-output > "#=getfield(1,#obj); disp('Mlist: '+#(1));disp(#); clear # #obj"))) > (t (setq vardescr "Error:Unknown type")) > ) > (scilab-output-to-temp-buffer "*SciVariable*" vardescr) > )) > > > (defcustom scilab-help-separate-buffer nil > "If non-nil Display help on function into separate for each command buffer > with the name '*SciHelp: *'. Otherwise general buffer *SciHelp* for all function" > :group 'scilab > :type 'boolean > ) > > (defalias 'scilab-help-function 'scilab-shell-describe-command) > ;;;###autoload > (defun scilab-shell-describe-command (command) > "Describe COMMAND textually by fetching it's doc from the Scilab shell. > This uses the lookfor command to find viable commands. > This command does not require an active Scilab shell." > (interactive (list (read-from-minibuffer > "Help on SciLab-Function: " > (cons (scilab-read-word-at-point) 0)))) > (if (not (file-exists-p scilab-topics-file-path)) > (scilab-shell-topic-browser)) > (let ((doc (shell-command-to-string (concat > "export MANCHAPTERS=" scilab-topics-file-path ";" > "scilab -help " command)))) > (if (equal (substring doc 0 15) "No manual entry") > (scilab-shell-apropos command) > (if scilab-help-separate-buffer > (scilab-output-to-temp-buffer (concat "*SciHelp: " command "*") doc) > (scilab-output-to-temp-buffer "*SciHelp*" doc))))) > > (defalias 'scilab-apropos-function 'scilab-shell-apropos) > ;;;###autoload > (defun scilab-shell-apropos (scilabregex) > "Look for any active commands in SCILAB matching SCILABREGEX. > This uses the apropos command to find viable commands." > (interactive (list (read-from-minibuffer > "Scilab command subexpression: " > (cons (scilab-read-word-at-point) 0)))) > (if (not (file-exists-p scilab-topics-file-path)) > (scilab-shell-topic-browser)) > (let ((ap (shell-command-to-string > (concat > "export MANCHAPTERS=" scilab-topics-file-path ";" > "scilab -k " scilabregex)))) > > (scilab-output-to-temp-buffer "*SciApropos*" ap) > ; (scilab-shell-topic-mode) > )) > > ;;;(defun scilab-on-prompt-p () > ;;; "Return t if we Scilab can accept input." > ;;; (save-excursion > ;;; (end-of-line) > ;;; (if (not (eq (point-max) (point))) (kill-line)) > ;;; (goto-char (point-max)) > ;;; (beginning-of-line) > ;;; (looking-at comint-prompt-regexp) > ;;;)) > > (defun scilab-on-prompt-p () > "Return t if we Scilab can accept input." > (save-excursion > (goto-char (point-max)) > (beginning-of-line) > (looking-at comint-prompt-regexp))) > > (defun scilab-make-not-busy () > "Sometimes prompt is perturbed by noises. It makes some procedures, > for instance competion buggy. The function regularises the situation" > (save-excursion > (goto-char (point-max)) > (beginning-of-line) > (if (not (looking-at comint-prompt-regexp)) > (comint-send-input) > ) > )) > > > > (defun scilab-on-empty-prompt-p () > "Return t if we Scilab is on an empty prompt." > (save-excursion > (goto-char (point-max)) > (beginning-of-line) > (looking-at (concat comint-prompt-regexp "\\s-*$")))) > > (defun scilab-shell-buffer-barf-not-running () > "Return a running Scilab buffer iff it is currently active." > (or (scilab-shell-active-p) > (error "You need to run the command `scilab-shell' to do that!"))) > > (defun scilab-shell-test () > (scilab-shell-collect-command-output "a=1") > (scilab-shell-collect-command-output "plot(1)") > (scilab-shell-collect-command-output "b=1") > ) > (defun scilab-shell-lisp2scilab (lispvar scivar) > "Write lisp-variable to a suitable scilab object with name that scivar > string provides. If there is no corresponding scilab variable, then scilab > variable gets [] " > (interactive) > (setq type-of-lispvar (type-of lispvar)) > (cond ((or (eq type-of-lispvar 'float) > (eq type-of-lispvar 'integer)) > (scilab-shell-collect-command-output (concat > scivar "=" (number-to-string lispvar) ";"))) > ((or (eq type-of-lispvar 'string) (eq type-of-lispvar 'symbol)) > (if (eq type-of-lispvar 'symbol) > (setq lispvar (symbol-name lispvar))) > ; (string-match "\"" lispvar) > ; (setq lispvar (replace-match "\\\"\"" t t lispvar)) > (scilab-shell-collect-command-output (concat > scivar "='" lispvar "';")))) > > t) > > (defun scilab-shell-collect-command-output (command) > "If there is a Scilab shell, run the Scilab COMMAND and return it's output. > It's output is returned as a string with no face properties. The text output > of the command is removed from the Scilab buffer so there will be no > indication that it ran." > (let ((msbn (scilab-shell-buffer-barf-not-running)) > (pos nil) > (str nil) > (lastcmd)) > (save-excursion > (set-buffer msbn) > ; (if (not (scilab-on-prompt-p)) > ; (scilab-make-not-busy)) > (if (not (scilab-on-prompt-p)) > (error "Scilab shell must be non-busy to do that")) > > ;; Save the old command > (goto-char (point-max)) > (beginning-of-line) > (re-search-forward comint-prompt-regexp) > (setq lastcmd (buffer-substring (point) (scilab-point-at-eol))) > (delete-region (point) (scilab-point-at-eol)) > ;; We are done error checking, run the command. > (setq pos (point)) > (comint-send-string (get-buffer-process (current-buffer)) > (concat command "\n")) > ; (message "Scilab ... Executing command.") > (goto-char (point-max)) > ; (message "Scilab reading...") > (while (or (>= pos (point)) (not (scilab-on-empty-prompt-p))) > (accept-process-output (get-buffer-process (current-buffer))) > (goto-char (point-max)) > ) > ; (message "Scilab reading...done") > (save-excursion > (goto-char pos) > (beginning-of-line) > (setq str (buffer-substring-no-properties (save-excursion > (goto-char pos) > (beginning-of-line) > (forward-line 1) > (point)) > (save-excursion > (goto-char (point-max)) > (beginning-of-line) > (point)))) > (delete-region pos (point-max))) > (insert lastcmd) > ) > ;;; (goto-char currpt) > str)) > > (defun scilab-shell-send-invisible-string (string) > "Send STRING to the currently running scilab process." > (if (not scilab-shell-echoes) > (let ((proc (get-buffer-process (current-buffer)))) > (goto-char (point-max)) > (insert string) > (set-marker (process-mark proc) (point)))) > (if (not (string-match "^!.*\n" string)) > (send-invisible string))) > > (defun scilab-shell-send-string (string) > "Send STRING to the currently running scilab process." > (if (not scilab-shell-echoes) > (let ((curbuff (current-buffer)) (proc (get-buffer-process (current-buffer)))) > (goto-char (point-max)) > (insert string) > (set-marker (process-mark proc) (point)))) > ; (let ((curbuff (current-buffer))) > (if (not (string-match "^!.*\n" string)) > ; ; (progn > ; ; (if (string-match "^\\*\\*" string) > ; ; (save-excursion > ; ; (eval (car (read-from-string (substring string 2)))) > ; ; ; (switch-to-buffer curbuff) > ; ; ; (setq string (concat "//LISP//" (substring string 2))) > ; ; (setq string "\n") > ; ; ) > ; ; ) > (comint-send-string (get-buffer-process (current-buffer)) string)) > > ) > ; ; ) > ; ; ) > > > (defvar scilab-shell-save-and-go-history '("()") > "Keep track of parameters passed to the Scilab shell.") > (defun scilab-function-file-p() > "Checks if the given buffer is a scilab function or set of scilab functions." > (interactive) > (let ((p (point)) (p2 nil)) > (goto-char (point-max)) > (setq p2 (re-search-backward scilab-function-head-regexp 1 t)) > (goto-char p) > (if p2 t nil))) > > (defun scilab-which-function() > "Gets the name of the current function" > (interactive) > (save-excursion > (scilab-beginning-of-defun) > (beginning-of-line) > (re-search-forward scilab-function-head-regexp nil t) > (message (match-string 3)) > ) > ) > > (defun scilab-whereami() > "Gets the name of the current function and the number line" > (interactive) > (message (concat (scilab-which-function) ", Line " (int-to-string (scilab-get-number-line-in-function)))) > ) > (defun scilab-shell-whereami() > "Display current instruction calling tree" > (interactive) > (scilab-shell-send-string "whereami();\n") > (ring-insert comint-input-ring "whereami();") > ) > > (defun scilab-get-number-line-in-function() > "Get the line number into a function body" > (interactive) > (let ((p (point))) > (save-excursion > (beginning-of-line) > (if (not (looking-at scilab-function-head-regexp)) > (re-search-backward scilab-function-head-regexp nil t)) > (beginning-of-line) > (setq scilab-number-line-in-function (count-lines (point) (+ p 1)))) > ) > ) > > > > (defun scilab-shell-save-and-getf-or-run () > "Save this sci, file, and getf it in a Scilab shell. Recognize if this > file is function or script. If script -just run it" > (interactive) > (if (not (eq major-mode 'scilab-mode)) > (error "Save and getf is only useful in a Scilab buffer!")) > (let ((fn-name (buffer-file-name)) > (short-fn-name (buffer-name)) > (msbn (concat "*" scilab-shell-buffer-name "*")) > (param "getf ")) > (if (not (scilab-function-file-p)) > (setq param "exec ")) > (save-buffer) > ;; No buffer? Make it! > (if (not (get-buffer msbn)) (scilab-shell)) > ;; Ok, now fun the function in the scilab shell > (if (get-buffer-window msbn t) > (select-window (get-buffer-window msbn t)) > (switch-to-buffer-other-window msbn)) > (scilab-shell-send-string (concat > param fn-name ";\n")) > (ring-insert comint-input-ring (concat param fn-name ";")) > (if (eq param "getf ") > (message "Loading %s..." short-fn-name) > (message "Executing %s..." short-fn-name)) > )) > > (defun scilab-shell-cd (dir) > "Change directory in emacs and in Scilab. before syncronises directories to emacs's directory " > (interactive (list (read-file-name "Change current directory: " > default-directory default-directory > (and (member cd-path '(nil ("./"))) > (null (getenv "CDPATH")))))) > (cd dir) > (let ((absdr (cd-absolute dir))) > (if (equal (substring absdr 0 1) "~") > (if (equal (substring absdr 0 2) "~/") > (setq absdr (concat (getenv "HOME") (substring absdr 1))) > (setq absdr (concat (getenv "HOME") "/../" (substring absdr 1))))) > (scilab-shell-collect-command-output (concat "chdir " absdr)) > (pwd) > ) > ) > > > (defun scilab-shell-run-region (beg end) > "Run region from BEG to END and display result in Scilab shell. > This command requires an active Scilab shell." > (interactive "r") > (if (> beg end) (let (mid) (setq mid beg beg end end mid))) > (let ((command nil) > (pos nil) > (str (concat (buffer-substring-no-properties beg end) "\n")) > (msbn (scilab-shell-buffer-barf-not-running)) > (lastcmd) > ) > (save-excursion > (set-buffer msbn) > (if (not (scilab-on-prompt-p)) > (error "Scilab shell must be non-busy to do that")) > ;; Save the old command > (goto-char (point-max)) > (beginning-of-line) > (re-search-forward comint-prompt-regexp) > (setq lastcmd (buffer-substring (point) (scilab-point-at-eol))) > (delete-region (point) (scilab-point-at-eol)) > (while (string-match "\n\\([ \t]*\n\\)*" str) > (setq command (substring str 0 (match-beginning 0))) > (setq str (substring str (match-end 0))) > (if (string-match (concat "^[ \t]*" comint-prompt-regexp) command) > (setq command (substring command (match-end 0)))) > ; (scilab-shell-collect-command-output command) > (setq pos (point)) > (scilab-shell-send-string (concat command "\n")) > (goto-char (point-max)) > (while (or (>= pos (point)) (not (scilab-on-empty-prompt-p))) > (accept-process-output (get-buffer-process (current-buffer))) > (goto-char (point-max)) > ) > ) > ; (scilab-shell-dummy-action) > (insert lastcmd) > ) > (set-buffer msbn) > (goto-char (point-max)) > (display-buffer msbn) > )) > > (defun scilab-shell-last-error () > "In Scilab interactive buffer, find the last Scilab error, and go there. > To reference old errors, put the cursor just after the error text." > (interactive) > (let (eb el) > (save-excursion > (end-of-line) ;; In case we are before the linenumber 1998/06/05 16:54sk > (if (not (re-search-backward gud-scilab-error-regexp nil t)) > (error "No errors found!")) > (setq eb (buffer-substring-no-properties > (match-beginning 4) (match-end 4)) > el (buffer-substring-no-properties > (match-beginning 3) (match-end 3)))) > (scilab-find-file-on-path eb) > (scilab-function-goto-line (string-to-number el)) > )) > > (defun scilab-shell-after-pause () > "In Scilab interactive buffer, on the line > \"foo called at line ### of foo2\" go to foo2 at line ###" > (interactive) > (save-excursion > (beginning-of-line) > (if (not > (or (looking-at gud-scilab-pause-regexp) > (looking-at gud-scilab-pause-regexp2) > (looking-at gud-scilab-pause-regexp3))) > (error "This line does not seem to be the line after a pause") > (let ((eb (buffer-substring-no-properties > (match-beginning 3) (match-end 3))) > (el (buffer-substring-no-properties > (match-beginning 2) (match-end 2)))) > (scilab-find-file-on-path eb) > (scilab-function-goto-line (string-to-number el))))) > ) > ;re-search-backward gud-scilab-error-regexp nil t)) > > ; ; ; ; (defun scilab-shell-dbstop-error () > ; ; ; ; "Stop on errors." > ; ; ; ; (interactive) > ; ; ; ; (comint-send-string (get-buffer-process (current-buffer)) > ; ; ; ; "dbstop if error\n")) > > ; ; ; ; (defun scilab-shell-dbclear-error () > ; ; ; ; "Don't stop on errors." > ; ; ; ; (interactive) > ; ; ; ; (comint-send-string (get-buffer-process (current-buffer)) > ; ; ; ; "dbclear if error\n")) > > (defun scilab-shell-demos () > "Scilab demos." > (interactive) > ; (scilab-shell-collect-command-output "demos();")) > (comint-send-string (get-buffer-process (current-buffer)) "demos();\n") > (ring-insert comint-input-ring "demos();") > ) > > > > (defvar scilab-shell-number-graphic-window 0 > "Number of the active current graphic window") > (defvar scilab-shell-graphic-menu-title "Graphic 0" > "Graphic menu title") > > ; (defun scilab-shell-graphic-menu-redefine () > ; "Redefine title of the graphic menu in accordance with the > ; value of `scilab-shell-number-graphic-window'" > ; (interactive) > ; ;;(easy-menu-remove-item nil nil "Graphic") > ; (setq open (concat "Open Window " > ; (int-to-string scilab-shell-number-graphic-window))) > ; (setq close (concat "Close Window " > ; (int-to-string scilab-shell-number-graphic-window))) > ; (easy-menu-define > ; scilab-shell-graphic-menu > ; scilab-shell-mode-map > ; "Scilab shell graphic windows menu" > ; '("Graphic" > ; [open scilab-shell-open-graphic-window > ; :included(scilab-shell-active-p) > ; :active(scilab-shell-active-p) ] > ; ["Next " (scilab-shell-plus-graphic-window) > ; :included(scilab-shell-active-p) > ; :active(scilab-shell-active-p) ] > ; ["Previos" (scilab-shell-minus-graphic-window) > ; :included(scilab-shell-active-p) > ; :active(scilab-shell-active-p) ] > ; [close scilab-shell-close-current-figure > ; :included(scilab-shell-active-p) > ; :active(scilab-shell-active-p)] > ; ["Close All" scilab-shell-close-figures > ; :included(scilab-shell-active-p) > ; :active(scilab-shell-active-p)] > ; )) > ; ;;(easy-menu-add scilab-shell-graphic-menu scilab-shell-mode-map) > ; ) > > > > (defun scilab-shell-plus-graphic-window () > (setq scilab-shell-number-graphic-window > (+ scilab-shell-number-graphic-window 1) > ) > (scilab-shell-frame-init) > ) > > (defun scilab-shell-minus-graphic-window () > (setq scilab-shell-number-graphic-window > (max (- scilab-shell-number-graphic-window 1) 0) > ) > (scilab-shell-frame-init) > ) > > (defun scilab-shell-next-graphic-window () > (scilab-shell-plus-graphic-window) > (scilab-shell-open-graphic-window) > ) > > (defun scilab-shell-previous-graphic-window () > (scilab-shell-minus-graphic-window) > (scilab-shell-open-graphic-window) > ) > > > (defun scilab-shell-open-graphic-window () > "Open scilab graphic window (if it does not exists)." > (interactive) > ; (comint-send-string (get-buffer-process (current-buffer)) "xget('window');\n") > (scilab-shell-collect-command-output (concat "xset('window'," (int-to-string scilab-shell-number-graphic-window) ");")) > ) > > (defun scilab-shell-close-current-figure () > "Close current figure." > (interactive) > ; (comint-send-string (get-buffer-process (current-buffer)) "xdel()\n")) > (scilab-shell-collect-command-output (concat "xdel(" (int-to-string scilab-shell-number-graphic-window) ");")) > (setq scilab-shell-number-graphic-window 0) > (scilab-shell-frame-init) > ) > > (defun scilab-shell-close-figures () > "Close any open figures." > (interactive) > ;;; (comint-send-string (get-buffer-process (current-buffer)) "close all\n")) > (scilab-shell-collect-command-output "while winsid()~=[], xdel(); end") > ; (comint-send-string (get-buffer-process (current-buffer)) "while winsid()~=[], xdel(); end\n")) > (setq scilab-shell-number-graphic-window 0) > (scilab-shell-frame-init) > ) > > > (defun scilab-shell-exit () > "Exit Scilab shell." > (interactive) > (comint-send-string (get-buffer-process (current-buffer)) "exit\n")) > > > (defun scilab-shell-remote-exit () > "Exit Scilab shell." > (interactive) > (switch-to-buffer (concat "*" scilab-shell-buffer-name "*")) > (comint-send-string (get-buffer-process (current-buffer)) "exit\n")) > > > (defun scilab-shell-soft-restart () > "Restart Scilab shell." > (interactive) > (switch-to-buffer (concat "*" scilab-shell-buffer-name "*")) > (comint-send-string (get-buffer-process (current-buffer)) "abort;\n exec('SCI/scilab.star',-1);\n")) > > (defun scilab-shell-saferestart () > (interactive) > (comint-send-string (get-buffer-process (current-buffer)) "abort;\n save('/tmp/'+date()+'.scilab')\n; exit\n") > (switch-to-buffer (concat "*" scilab-shell-buffer-name "*")) > (scilab-shell)) > > (defun scilab-shell-restart () > (interactive) > (if (scilab-shell-active-p) > (scilab-shell-remote-exit) > ) > (while (scilab-shell-active-p) > (accept-process-output (get-buffer-process (current-buffer))) > ) > ; (scilab-run-with-timer 0.1 nil 'scilab-shell) > (scilab-shell) > ) > > > > ;;; scilab-shell based Topic Browser and Help ================================= > > (defcustom scilab-shell-topic-mode-hook nil > "*Scilab shell topic hook." > :group 'scilab-shell > :group 'scilab-setup > :type 'hook) > > (defvar scilab-shell-topic-current-topic nil > "The currently viewed topic in a Scilab shell topic buffer.") > > (defalias 'scilab-help 'scilab-shell-topic-browser) > ;;;###autoload > (defun scilab-shell-topic-browser () > "Create a topic browser by querying an active Scilab shell using HELP. > Maintain state in our topic browser buffer." > (interactive) > ;; Reset topic browser if it doesn't exist. > (if (not (get-buffer "*Scilab Topic*")) > (setq scilab-shell-topic-current-topic nil)) > (let ((b (get-buffer-create "*Scilab Topic*"))) > (switch-to-buffer-other-window b) > (if (string= scilab-shell-topic-current-topic "") > nil > (scilab-shell-topic-mode) > (scilab-shell-topic-browser-create-contents "") > ))) > > (defvar scilab-shell-topic-mouse-face-keywords > '(;; These are subtopic fields... > ("^\\(\\w+/\\w+\\)[ \t]+-" 1 scilab-constant-face) > ;; These are functions... > ("^[ \t]*\\([A-Za-z$#_%][A-Za-z0-9$#_]*\\)[ \t]+-" 1 scilab-function-name-face) > ("^[ \t]*\\([A-Za-z$#_%][A-Za-z0-9$#_]*[ \t]+(.*)\\)[ \t]+-" 1 scilab-function-name-face) > ;; Here is a See Also line... > ("[ \t]+See also " > ("[ \t]*\\(\\w+\\)\\([,.]\\| and\\|$\\) *" nil nil (1 scilab-constant-face))) > ("[ \t]*SEE ALSO[ \t]*\n[ \t]*" > ("\\(\\w+\\)\\([,.]\\| and\\|$\\)*" nil nil (1 scilab-function-name-face))) > ) > "These are keywords we also want to put mouse-faces on.") > > (defvar scilab-shell-topic-font-lock-keywords > (append scilab-shell-topic-mouse-face-keywords > '(("@\\(.*\\)" 1 scilab-keyword-face) > ;; These are subheadings... > ; ("^[ \t]+\\([^.\n]+[a-zA-Z.]\\)$" 1 'underline) > ; ("\\<[/~$]\\(\\(\\w\\|[$_.-]\\)+/\\(\\w\\|[$_.-]\\)*\\)+\\s-" 0 scilab-constant-face) > ("\\([\'\" ]?[~/.$]/*[a-zA-Z0-9_./%$-]*\\)" 0 scilab-constant-face) > ("[\'\" ]?[~/.$]/*[a-zA-Z0-9_./%$-]*\\s-+\\(.*\\)" 1 scilab-keyword-face) > ) > ) > "Keywords useful for highlighting a Scilab TOPIC buffer.") > > (defvar scilab-shell-help-font-lock-keywords > (append scilab-shell-topic-mouse-face-keywords > scilab-shell-font-lock-keywords-2 > '( > ; ("[ \t]*\\(\\[[A-Za-Z]+\\]\\)\\s-*=\\s-*\\([A-Za-z]+[0-9]*\\)(" > ; (1 scilab-variable-name-face) > ; (2 scilab-function-name-face)) > ; ;; Variables into [...] > ; ("\\[\\([^][)(]*\\)\\]" > ; (1 scilab-variable-name-face)) > ; ;; Variables > ; ("[A-Za-z$_%][A-Za-z0-9$_]*(\\([^()]*\\))" > ; 1 scilab-variable-name-face) > ; ;; Reference uppercase words > ("\\<\\([A-Z][A-Z]+\\)\\>[^(]" 1 scilab-constant-face) > ; ("\\([A-Za-z$_%][A-Za-z0-9$_]*\\)(" > ; ; 1 'bold) > ; 1 scilab-function-name-face) > ; ; 1 font-lock-doc-string-face) > ; ;;strings > ; ; ((concat scilab-string-start-regexp > ; ; "\\(['\"]" scilab-string-end-regexp "\\)" > ; ; "\\([^'\"]\\|$\\)") 1 scilab-string-face) > ; ; ;;comments > ; ; ("\\(//.*\\)" 1 scilab-comment-face) > ) > ) > > "Keywords for regular help buffers.") > > ;; View-major-mode is an emacs20 thing. This gives us a small compatibility > ;; layer. > (if (not (fboundp 'view-major-mode)) (defalias 'view-major-mode 'view-mode)) > > ;;;###autoload > (defun scilab-unboldunderline-region (start end) > "Remove all boldness (overstruck characters) and underlining > (overstruck underscores) in the region. > Called from program, takes two arguments START and END > which specify the range to operate on. This is comination of unbold-region > and ununderline-region functions" > (interactive "r") > (save-excursion > (let ((end1 (make-marker))) > (move-marker end1 (max start end)) > (goto-char (min start end)) > (while (re-search-forward "\b" end1 t) > (if (eq (following-char) (char-after (- (point) 2))) > (delete-char -2))) > (goto-char (min start end)) > (while (re-search-forward "_\b\\|\b_" end1 t) > (delete-char -2))))) > > > (define-derived-mode scilab-shell-help-mode > view-major-mode "Sci Help" > "Major mode for viewing Scilab help text. > Entry to this mode runs the normal hook `scilab-shell-help-mode-hook'. > > Commands: > \\{scilab-shell-help-mode-map}" > (scilab-unboldunderline-region (point-min) (point-max)) > (make-local-variable 'font-lock-defaults) > ; (setq font-lock-defaults '((scilab-font-lock-keywords > ; scilab-gaudy-font-lock-keywords > ; scilab-really-gaudy-font-lock-keywords > ; ) > ; t ; do not do string/comment highlighting > ; nil ; keywords are case sensitive. > ; ;; This puts _ as a word constituent, > ; ;; simplifying our keywords significantly > ; ((?_ . "w")))) > (setq font-lock-defaults '((scilab-shell-help-font-lock-keywords) > t nil ((?_ . "w")))) > ;; This makes sure that we really enter font lock since > ;; kill-all-local-variables is not used by old view-mode. > (easy-menu-add scilab-shell-help-mode-menu scilab-shell-help-mode-map) > (scilab-shell-topic-mouse-highlight-subtopics) > (if (and (boundp 'font-lock-mode) (fboundp 'font-lock-mode)) > ; (progn > ; (font-lock-mode -1) > (if scilab-font-lock-mode (font-lock-mode 1) (font-lock-mode -1)) > ; ) > ) > ) > > (define-key scilab-shell-help-mode-map [return] 'scilab-shell-topic-choose) > (define-key scilab-shell-help-mode-map "t" 'scilab-shell-topic-browser) > (define-key scilab-shell-help-mode-map "q" 'bury-buffer) > (define-key scilab-shell-help-mode-map [(control h) return] scilab-help-map) > (define-key scilab-shell-help-mode-map "\C-cr" 'scilab-shell-run-region) > > > (if running-xemacs > (define-key scilab-shell-help-mode-map [button2] 'scilab-shell-topic-click) > (define-key scilab-shell-help-mode-map [mouse-2] 'scilab-shell-topic-click)) > > (easy-menu-define > scilab-shell-help-mode-menu scilab-shell-help-mode-map > "Scilab shell topic menu" > '("Scilab Help" > ["Describe This Function" scilab-shell-topic-choose t] > "----" > ["Describe Function" scilab-shell-describe-command t] > ["Describe Variable" scilab-shell-describe-variable t] > ["Command Apropos" scilab-shell-apropos t] > ["Topic Browser" scilab-shell-topic-browser t] > ["Separate help buff" (custom-set-variables > '(scilab-help-separate-buffer (not scilab-help-separate-buffer))) > :style toggle :selected scilab-help-separate-buffer] > "----" > ["Run Region" scilab-shell-run-region (scilab-shell-active-p) ] > ["Exit Help" bury-buffer t])) > > > > (define-derived-mode scilab-shell-topic-mode > scilab-shell-help-mode "Sci-Topic" > "Major mode for browsing Scilab HELP topics. > The output of the Scilab command HELP with no parameters creates a listing > of known help topics at a given installation. This mode parses that listing > and allows selecting a topic and getting more help for it. > Entry to this mode runs the normal hook `scilab-shell-topic-mode-hook'. > > Commands: > \\{scilab-shell-topic-mode-map}" > (setq font-lock-defaults '((scilab-shell-topic-font-lock-keywords) > t nil ((?_ . "w")))) > ; (if running-xemacs > ; (setq mode-motion-hook 'scilab-shell-topic-highlight-line) > ;) > > (easy-menu-add scilab-shell-topic-mode-menu scilab-shell-topic-mode-map) > (if (and (boundp 'font-lock-mode) (fboundp 'font-lock-mode)) > (progn > (font-lock-mode -1) > (if scilab-font-lock-mode (font-lock-mode 1))) > ) > ) > > > (easy-menu-define > scilab-shell-topic-mode-menu scilab-shell-topic-mode-map > "Scilab shell topic menu" > '("Scilab Topic" > ["Select This Topic" scilab-shell-topic-choose t] > ["Top Level Topics" scilab-shell-topic-browser t] > "----" > ["Exit" bury-buffer t])) > > > > (defun scilab-shell-topic-browser-create-contents (subtopic) > "Fill in a topic browser with the output from SUBTOPIC." > (toggle-read-only -1) > (switch-to-buffer "*Scilab Topic*") > (erase-buffer) > (let ( > (standardname > (concat scilab-shell-main-directory "/man/Chapters")) > (chaptername scilab-topics-file-path) > str) > (if (string= chaptername standardname) > ; (if (file-exists-p (concat scilab-shell-initial-directory "/man/")) > ; (setq chaptername (concat scilab-shell-initial-directory "/man/Chapters")) > (setq chaptername (concat scilab-shell-initial-directory "/manChapters"))) > (if (and (scilab-shell-active-p) (scilab-on-empty-prompt-p)) > (scilab-shell-collect-command-output (concat > "#=max(length(%helps(:,1)))-length(%helps(:,1));" > "##=file('open','" chaptername "' ,'unknown');" > "###=%helps(:,1);" > "for ?=1:size(###,'*');" > "??=' '; ??=strcat(??(ones(1,#(?)+2)));" > "###(?)=###(?)+??+strsubst(%helps(?,2),'/','|');" > "end;" > "write(##,###,'(a)');" > "file('close',##);" > "clear # ## ### ? ??;")) > (if (and (not (file-exists-p chaptername)) (file-exists-p standardname)) > (progn > (copy-file standardname chaptername) > (message "copy %s to %s" standardname chaptername)) > (if (not (file-exists-p chaptername)) > (error"No manual Chapters file. Run scilab-shell, or build manullay") > )) > ) > (if (equal subtopic "") > (insert-file chaptername) > (setq str (substring > (shell-command-to-string > (concat "echo " subtopic "/whatis")) 0 -1)) > (insert-file str) > > ) > > (goto-char (point-min)) > ;; (forward-line 1) > ;; (delete-region (point-min) (point)) > (setq scilab-shell-topic-current-topic subtopic) > (if (not running-xemacs) > (scilab-shell-topic-mouse-highlight-subtopics) > ) > (toggle-read-only 1) > ) > ) > > (defun scilab-shell-topic-click (e) > "Click on an item in a Scilab topic buffer we want more information on. > Must be bound to event E." > (interactive "e") > (mouse-set-point e) > (scilab-shell-topic-choose)) > (defun scilab-shell-topic-choose () > "Choose the topic to expand on that is under the cursor. > This can fill the topic buffer with new information. If the topic is a > command, use `scilab-shell-describe-command' instead of changing the topic > buffer." > (interactive) > (let ((topic nil) (fun nil) (p (point)) (locp nil)) > (save-excursion > (beginning-of-line) > ; (if (looking-at "^\\w+/\\(\\S-+\\)[ \t]+") > (if (looking-at (concat "\\(" scilab-path-type-regexp "\\)[ \t]+")) > (setq topic (match-string 1)) > (goto-char p) > (setq locp (re-search-backward scilab-not-variable-symbol 1 t)) > (if locp > (goto-char (+ 1 locp)) > (goto-char 1)) > (if (looking-at "\\(%?[a-zA-Z0-9_]+\\)\\W") > (setq fun (match-string 1)) > (error "You did not click on a subtopic, function or reference")))) > (message "Opening item %s..." (or topic fun)) > (if topic > (scilab-shell-topic-browser-create-contents topic) > (scilab-shell-describe-command fun)) > )) > > (defun scilab-shell-topic-mouse-highlight-subtopics () > "Put a `mouse-face' on all clickable targets in this buffer." > (save-excursion > (let ((el scilab-shell-topic-mouse-face-keywords)) > (while el > (goto-char (point-min)) > (while (re-search-forward (car (car el)) nil t) > (let ((cd (car (cdr (car el))))) > (if (numberp cd) > (put-text-property (match-beginning cd) (match-end cd) > 'mouse-face 'highlight) > (while (re-search-forward (car cd) nil t) > (put-text-property (match-beginning (car (nth 3 cd))) > (match-end (car (nth 3 cd))) > 'mouse-face 'highlight))))) > (setq el (cdr el)))))) > > (defun scilab-shell-topic-highlight-line (event) > "A value of `mode-motion-hook' which will highlight topics under the mouse. > EVENT is the user mouse event." > (let* ((buffer (event-buffer event)) > (point (and buffer (event-point event)))) > (if (and buffer (not (eq buffer mouse-grabbed-buffer))) > (save-excursion > (save-window-excursion > (set-buffer buffer) > (mode-motion-ensure-extent-ok event) > (if (not point) > (detach-extent mode-motion-extent) > (goto-char point) > (end-of-line) > (setq point (point)) > (beginning-of-line) > (if (or (looking-at "^\\w+/\\(\\w+\\)[ \t]+-") > (looking-at "^[ \t]+\\(\\(\\w\\|_\\)+\\)[ \t]+-")) > (set-extent-endpoints mode-motion-extent (point) point) > (detach-extent mode-motion-extent)))))))) > > > ;;; Sci File path stuff ====================================================== > (defcustom scilab-mode-install-path > (list > (if (getenv "SCIHOME") > (if (file-exists-p (concat (getenv "SCIHOME") "/macros")) > (concat (getenv "SCIHOME") "/macros") > (getenv "SCIHOME")) > (getenv "HOME")) > (concat (getenv "SCI") "/macros")) > > "Base path pointing to the locations of all the sci files used by scilab. > All directories under each element of `scilab-mode-install-path' are > checked, so only top level toolbox directories need be added.The first default > directory is the user's scilab path, defined usually in $SCIHOME, the second > is the main scilab-path, and the rest is > what a user wants." > :group 'scilab > :group 'scilab-setup > :type '(repeat (string :tag "Path: "))) > > (defun scilab-find-file-under-path (path filename) > "Return the pathname or nil of FILENAME under PATH." > (if (file-exists-p (concat path filename)) > (concat path filename) > (let ((dirs (if (file-directory-p path) > ;; Not checking as a directory first fails on XEmacs > ;; Stelios Kyriacou > (directory-files path t nil t))) > (found nil)) > (while (and dirs (not found)) > (if (and (car (file-attributes (car dirs))) > ;; don't redo our path names > (not (string-match "/\\.\\.?$" (car dirs))) > ;; don't find files in object directories. > (not (string-match "@" (car dirs)))) > (setq found > (scilab-find-file-under-path (concat (car dirs) "/") > filename))) > (setq dirs (cdr dirs))) > found))) > > (defun scilab-find-function-over-buffers (funname) > "Find FUNNAAME over all buffers" > (let ((currbf (current-buffer)) > (lst (buffer-list)) > success bf bfn) > (save-excursion > (while (and lst (null success)) > (setq bf (car lst) > bfn (buffer-name bf)) > (when (string-match "\\.sc[ie]$" bfn) > (set-buffer (car lst)) > (if (string= bfn funname) > (setq success t) > (goto-char (point-max)) > (setq success (re-search-backward (concat > "^\\s-*\\(function\\)\\>[ \t\n.]*" > scilab-output-function-regexp "?[ \t\n.]*" > (regexp-quote funname) "\\s-*(") nil t)))) > (setq lst (cdr lst)))) > (when success > (switch-to-buffer-other-window bf) > (goto-char success)))) > > (defun scilab-find-file-on-path (filename) > "Find FILENAME on the current Scilab path. > The Scilab path is determined by `scilab-mode-install-path' and the > current directory. You must add user-installed paths into > `scilab-mode-install-path' if you would like to have them included." > (interactive > (list > (let ((default (save-excursion > (if (or (bolp) > (looking-at "\\s-") > (save-excursion (forward-char -1) > (looking-at "\\s-"))) > nil > (forward-word -1)) > (scilab-navigation-syntax > (if (looking-at "\\sw+\\>") > (match-string 0)))))) > (if default > (let ((s (read-string (concat "File (default " default "): ")))) > (if (string= s "") default s)) > (read-string "File: "))))) > (if (string= filename "") > (error "You must specify an sci file")) > (if (scilab-find-function-over-buffers filename) > nil > (if (scilab-find-library-function filename) > nil > (let ((fname nil) (fnameb nil) > (dirs scilab-mode-install-path) > (filenamebin nil) (filenamesci filename)) > (if (not (string-match "\\.sc[ie]$" filename)) > (setq filenamebin (concat filename ".bin") > filenamesci (concat filename ".sci"))) > ;; here we add the possibility for multifunction files. > ;;File *.sci may not exis > ;; But if *.bin exists it may be link on the true *.sci file > (if (file-exists-p (concat default-directory filenamesci)) > (setq fname (concat default-directory filenamesci)) > (if filenamebin > (if (file-exists-p (concat default-directory filenamebin)) > (setq fnameb (file-truename > (concat default-directory filenamebin)) > fnameb (concat > (substring > fnameb 0 (- (length fnameb) 3)) "sci"))))) > (while (and (not fname) (not fnameb) dirs) > (if (stringp (car dirs)) > (if filenamebin > (progn > (message "Searching for %s or %s in %s" > filenamesci filenamebin (car dirs)) > (setq fname (scilab-find-file-under-path > (car dirs) filenamesci) > fnameb (scilab-find-file-under-path > (car dirs) filenamebin))) > (progn > (message "Searching for %s in %s" filenamesci (car dirs)) > (setq fname (scilab-find-file-under-path > (car dirs) filenamesci))))) > (setq dirs (cdr dirs))) > (if fname (find-file-other-window fname) > (if (not fnameb) > (error "File or function %s not found on any known paths. \ > Check `scilab-mode-install-path'" filename) > (setq fnameb (file-truename fnameb) > fname (concat > (substring fnameb 0 (- (length fnameb) 3)) "sci")) > (find-file-other-window fname))) > (if (equal (substring filenamesci -4) ".sce") > (message "File %s is found." filenamesci) > (scilab-find-function-in-file filename)) > )))) > > (defun scilab-find-function-in-file (funname) > "Find function in the current file" > (goto-char (point-max)) > (setq fun (re-search-backward (concat > "^\\s-*\\(function\\)\\>[ \t\n.]*" > scilab-output-function-regexp "?[ \t\n.]*" > funname "*[(\n]") nil t)) > (if (not fun) > (message "Strange: there is no function %s in the chosen file.." > funname) > (goto-char fun) > (message "Function %s is found." funname) > ) > ) > > (defun scilab-find-library-function (funname) > ;;"Find library scilab function. Uses whereis scilab function" > (interactive) > (if (string-match "\\.sci$" funname) > (setq funname (substring funname 0 -4)) > ) > > (unless (or (null (scilab-shell-active-p)) > (string-match "[\"\'()\n\t -]" funname)) > (let ((pth (scilab-shell-collect-command-output > (concat > "#=string(evstr(whereis('" funname "')));" > "#=#(1);write(%io(2),#);clear #;" )))) > (setq pth (substring pth 0 -2) ) > (if (string-match "^\\(SCI\\)" pth) > (setq pth (replace-match scilab-shell-main-directory t nil pth))) > (unless (string= pth "") > (setq pth (substring pth 0 -1)) > (let ((pthf (concat pth funname ".sci"))) > (if (file-exists-p pthf) (find-file-other-window pthf) > (setq pthf (file-truename (concat pth funname ".bin"))) > (when pthf > (find-file-other-window (concat (substring pthf 0 -3) "sci")) > (scilab-find-function-in-file funname)))))))) > > (defun scilab-find-file-click (e) > "Find the file clicked on with event E on the current path." > (interactive "e") > (mouse-set-point e) > (let ((f (save-excursion > (if (or (bolp) > (looking-at "\\s-") > (save-excursion (forward-char -1) > (looking-at "\\s-"))) > nil > (forward-word -1)) > (scilab-navigation-syntax > (if (looking-at "\\sw+\\>") > (match-string 0)))))) > (if (not f) (error "To find an sci file, click on a word")) > (scilab-find-file-on-path f))) > > > ;;; scilab-mode debugging ===================================================== > > (defun scilab-show-line-info () > "Display type and attributes of current line. Used in debugging." > (interactive) > (let ((msg "line-info:") > (indent (scilab-calculate-indentation (current-indentation))) > (nexti (scilab-next-line-indentation))) > (setq msg (concat msg > " Line type: " (symbol-name (car indent)) > " This Line: " (int-to-string (nth 1 indent)) > " Next Line: " (int-to-string nexti))) > (if (scilab-lattr-cont) > (setq msg (concat msg " w/cont"))) > (if (scilab-lattr-comm) > (setq msg (concat msg " w/comm"))) > (message msg))) > > (defvar scilab-ptyp t > "Non-nil if communications via pty; false if by pipe. Buffer local. > This is to work around a bug in Emacs process signaling.") > > (defun scilab-interrupt-subjob () > "Interrupt the current subjob. > This command also kills the pending input > between the process-mark and point." > (interactive) > (comint-kill-input) > (interrupt-process nil t)) > > (defun scilab-kill-subjob () > "Send kill signal to the current subjob. > This command also kills the pending input > between the process-mark and point." > (interactive) > (comint-kill-input) > (kill-process nil scilab-ptyp)) > > (defun scilab-quit-subjob () > "Send quit signal to the current subjob. > This command also kills the pending input > between the process-mark and point." > (interactive) > (comint-kill-input) > (quit-process nil scilab-ptyp)) > > (defun scilab-abort-subjob () > "Stop the current subjob. > This command also kills the pending input > between the process-mark and point. > > WARNING: if there is no current subjob, you can end up suspending > the top-level process running in the buffer. If you accidentally do > this, use \\[scilab-continue-subjob] to resume the process. (This > is not a problem with most shells, since they ignore this signal.)" > (interactive) > (comint-kill-input) > (interrupt-process nil t) > (comint-send-string (get-buffer-process (current-buffer)) "\n") > ; (scilab-shell-collect-command-output "%tmp=mode();mode(-1)") > ; (scilab-shell-collect-command-output "error('The command is aborted')\n") > (comint-send-string (get-buffer-process (current-buffer)) "abort\n") > ;(comint-send-string (get-buffer-process (current-buffer)) doc) > ; (scilab-shell-collect-command-output "mode(%tmp);clear %tmp;")) > ) > > > (defun scilab-continue-subjob () > "Send CONT signal to process buffer's process group. > Useful if you accidentally suspend the top-level process." > (interactive) > (comint-send-string (get-buffer-process (current-buffer)) "resume\n")) > > (provide 'scilab) > > > ;;;;;;;;;;;;;;;;;;;;;;;;;;; END OF THE BODY ;;;;;;;;;;;;;;;;;;;; > > > > ;;; Change log > ;;;date: 2001/03/06 12:28:22; author: sasha; state: Exp; > ;;;wh function does not depend on scilab version now > ;;;libfunc file instead of AllNames > ;;; > ;;;date: 2001/03/07; author Alexander Vigodner > ;;;Due to Bruno's request: > ;;; 1) Menues are changed. Navigator and Insert menues now are main > ;;; 2) Navigators functions are added > ;;; 3) Part of menues is removed as more related to matlab > ;;; 4) Uncomment function is added > ;;; Besides completion is fixed for scilab-mode. Working during editing now > ;;; scilab.el ends here > ;;;date: 2001/03/08; author Alexander Vigodner > ;;;function scilab-completion-symbol is fixed. imenu index from Navigate. > ;;;date: 2001/03/11; author Alexander Vigodner > ;;; 1)Completion now works (with less features) when shell is not active > ;;; 2) Topic Browser is always well defined > ;;; 3) Which func mode is added > ;;; 4) New customization features. > ;;; 5) scilab-shell-after-pause ("C-x \") is added > ;;;date: 2001/03/20; author Alexander Vigodner > ;;; 1) Graphic navigation functions and menu are added > ;;; 2) wh function is fixed (long string problem) > ;; 3)Version 1.8.6 > ;;;date: 2001/03/22; author Alexander Vigodner > ;;; 1) scilb-shell-run-region - better version C-c r everywhere now > ;; 2)Version 1.8.6.1 > ;;;date: 2001/03/25; author Alexander Vigodner > ;;; 1) scilab-after-pause-regexp3 is added > ;; 2)scilab-dynamical-indent variable is added. In big files indentaion is too slow.Now > ;; we can dynamically enable/disable this > ;; 3)Version 1.8.6.2 > ;;;date: 2001/04/01; author Alexander Vigodner > ;;; 1) customized menus are extended in scilab-mode > ;; 2) scilab-mode-setup is added > ;; 3) Extended initial lines to .emacs and this is added at the beginning of > ;; file this > ;; 3)Version 1.8.6.6 > > ;;;date: 2001/04/03; author Alexander Vigodner > ;;; 1) next-line-add-newlines variable is alweays nil in shell now > ;; 2) Grammar error emacslient-> emacsclient > ;; 2)Version 1.8.6.7 > > ;;;date: 2001/04/04; author Alexander Vigodner > ;;; 1) scilab-shell-logo for xemacs > ;; 2)scilab-shell-additional is added: additional scilab shells (with less features) > ;; 3)scilab-shell-active-in-current-buffer-p is added > ;; 4) Customization faces is more friendly > ;; 5)Version 1.8.6.8 > ;;;date: 2001/04/10; author Alexander Vigodner > ;; 1)customized faces in menus > ;; 2) New customized group scilab-face > ;; 2)output and input variables in function definition has the same colors without > ;; brackets. > ;; 3) Version 1.8.7 > > ;;;date: 2001/04/15; author Alexander Vigodner > ;; 1)Fixing customized faces for xemacs > ;; 2)%version is updated smoothly now. > ;; 3)Restart function is fixed > ;; 4) New group scilab-edit is built. Some editing options are moved there > ;; 5) Version 1.8.9 > > ;;;date: 2001/04/15; author Alexander Vigodner > ;; 1)Add face to tlist fields > ;; 2) Version 1.9.0 > > ;;;date: 2001/04/22; author Alexander Vigodner > ;; 1)scilab-find-function-in-file is fixed > ;; 2) Version 1.9.1 > > ;;;date: 2001/05/02; author Alexander Vigodner > ;; 1)Save Getf menu is modified, to show that it is disable when shell > ;; is passive > ;; 2) Version 1.9.2 > > ;;;date: 2001/05/08; author Alexander Vigodner > ;; 1)scilab-shell-cd instead of cd on startup > ;; 2) %version is shown on the startup > ;; 3) Save Getf menu is fixed to be changed in sce/sci file > ;; 4)Version 1.9.3 > > ;;;date: 2001/05/14; author Alexander Vigodner > ;; 1)$MACHAPTERS now is assigned to shell locally. (We do not have to define it in sh;;ell) > ;;; 2)Version 1.9.4 > > ;;;date: 2001/05/15; author Alexander Vigodner > ;; 1)scilb-mode-install-path is added to scilab-setup group and moved from scilab-she;; ll group to general scilab group > ;;; 2)Version 1.9.5 > > ;;;date: 2001/05/27; author Alexander Vigodner > ;; 1)scilab-shell-version is fixed for the case whith no emacsclient > ;;; 2) topci-browser is build if MANCHAPTER file does not exist for the first > ;;; call of any help function > ;;; 2)Version 1.9.6 > > ;;;date: 2001/05/29; author Alexander Vigodner > ;; 1)$SCIHOME/libfunc file now is removed on startup. Useful when libraries are updated > ;;; 2)Version 1.9.7 > > ;;;date: 2001/05/30; author Alexander Vigodner > ;; 1)getf,exec,demos, whereami are added to command-history > ;; 2)Fudge max is added to edit options in scilab-edit mode > ;;; 2)Version 1.9.8 > > ;;;date: 2001/05/31; author Alexander Vigodner > ;; 1)(require 'cus-face is added for compatability for xemacs. > ;; 2) scilab-startup.el file is built and inserted commented at the beginning > ;; 3) Installation instructions are changed (simplified) > ;; 4) global-key value is acceptable from scilab.el via autoload > ;;; 5)Version 1.9.9 > > ;;;date: 2001/06/02; author Alexander Vigodner > ;; 1) global-key value is added to startup file and removed from scilab.el > ;;; 2)Version 2.0.0 > > ;;;date: 2001/06/11; author Alexander Vigodner > ;; 1) hidlighting of function header without output argument is fixed > ;;; 2) scilb-font-lock-mode is now customizedd variable. t means font-lock > ;;; for all scilab buffers. nill - no font-lock for all scilab buffers. > ;;; can be overrided by global-font-lock-mode for emacs for some buffers. > ;;; 2)Version 2.0.1 > > ;;;date: 2001/06/12; author Alexander Vigodner > ;; 1) hidlighting of function header - pathalogy cases > ;;; 2)Version 2.0.2 > > ;;;date: 2001/06/14; author Alexander Vigodner > ;; 1) Default values are more flexible for command-scilab and forinstall-paths > ;; 2) scilab-fill- stuffs are fixed, seems much better now thanks to > ;; Lydia van Dijk . > ;;; 3)Version 2.0.3 > > ;;;date: 2001/06/17; author Alexander Vigodner > ;; 1) comment-start-skip local variable is changed to fix indent-for-comment behavior > ;; thanks to Lydia van Dijk . > ;;; 2)Version 2.0.4 > > ;;;date: 2001/06/17; author Alexander Vigodner > ;; 1) scilab-indent-defun is added (also in menu) > ;; thanks to Lydia van Dijk . > > ;;;date: 2001/06/18; author Alexander Vigodner > ;; 1) garbage-filter > ;;; 2)Version 2.0.6 > > ;;;date: 2001/06/25; author Alexander Vigodner > ;; 1) scilab-server-start and scilab-server-kill are introduced > ;; They mimic gnuserv when it is possible (for xemacs it is the standard, for > ;; emacs server is the standard, but gnuserv can be installed. gnuserv is much > ;; stonger then server. So scilab-server-start/kill run/kill on of the serevers > ;; and addtionally update %version scilab variable > ;;; 2)Version 2.0.7 > > ;;;date: 2001/06/25; author Alexander Vigodner > ;; 1) scilab-comment is fixed, thanks Lydia > ;;; 2)Version 2.0.8 > > ;;;date: 2001/06/28; author Alexander Vigodner > ;; 1) No necessary to define TERM=dumb for xemacs now. Graphics works well > ;; Thanks to B. Levitan for pointing mea again on this problem > ;;; 2)Version 2.0.9 > > ;;;date: 2001/06/28; author Alexander Vigodner > ;; 1) Start interface lisp from scilab > ;;; 2)Version 2.1.0 > ;; > > ;;;date: 2001/07/03; author Alexander Vigodner > ;; 1) builtins are highlighted now > ;;; 2)Version 2.1.1 > ;; > ;;;date: 2001/07/03; author Alexander Vigodner > ;; 1) otherwise, catch, try are removed from keywords > ;;; 2)Version 2.1.1b > ;; > > ;;;date: 2001/07/05; author Alexander Vigodner > ;; 1) Revision hidlighting > ;;; 2)Version 2.1.2 > ;; > > ;;;date: 2001/07/05; author Alexander Vigodner > ;; 1) Builtins _ libfunctions are hudhligthed now. This is may be done disbale if too slow > ;; 2) Fixing switching-buffers .Thanks to B. Levitan > ;;; 2)Version 2.1.3 > ;; > > ;;;date: 2001/07/08; author Alexander Vigodner > ;; 1) Fixed mess of windows during completion > ;;; 2)Version 2.1.4 > ;; > > ;;;date: 2001/07/08; author Alexander Vigodner > ;; 1) scilab-server-status. gnuserv is proper now.(TMPDIR) > ;;; 2)Version 2.1.4 > > > ;;;date: 2001/07/10; author Alexander Vigodner > ;; 1) Added hack GNU_PORT for gnuserver > ;; 2) Selected the refer. buffer back during completion > ;;; 3)Version 2.1.5 > ;; > > ;;;date: 2001/07/10; author Alexander Vigodner > ;; 1) Exit/Start scilab moved to the end of menu in scilab-mode > ;; after B.Levitan request > ;; 2) Number of emacs/Xemacs is added to to %version > ;;; 3)Version 2.1.7 > ;; > > > > > From c_korn at gmx.de Thu Oct 23 18:58:44 2008 From: c_korn at gmx.de (Christoph Korn) Date: Thu, 23 Oct 2008 18:58:44 +0200 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <490059EF.1040503@gmx.de> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> <490059EF.1040503@gmx.de> Message-ID: <4900AD44.1090607@gmx.de> This patch was supposed to fix the segfault: http://nopaste.com/p/aoD7IF57t/txt But scilab still segfaults. This is the backtrace for it: http://nopaste.com/p/axP0MiyDP/txt Christoph Korn schrieb: > This patch enabled the IS_64_BITS_CPU flag: > http://nopaste.com/p/a60OAMINW/txt > > The package has been built successfully, but after running > scilab there is a segfault. > This is the output of strace -f scilab: > http://nopaste.com/p/asmdBxwwt/txt > > Christoph Korn schrieb: > >> modules/core/Makefile: >> http://nopaste.com/p/aSAv6qoER/txt >> >> modules/core/includes/machine.h: >> http://nopaste.com/p/avOvTZuPS/txt >> >> >> Sylvestre Ledru schrieb: >> >>>>> But I have a local amd64 machine building the package in a chroot. >>>>> So I presume that the config.log my machine produces is identical to >>>>> the one produced by the PPA machine. >>>>> This is it: >>>>> http://nopaste.com/p/aQYxImE8i/txt >>>>> The values of IS_64_BITS_CPU are: >>>>> IS_64_BITS_CPU_FALSE='' >>>>> IS_64_BITS_CPU_TRUE='#' >>>>> >>>>> The values of USE_DYNAMIC_STACK are: >>>>> USE_DYNAMIC_STACK_FALSE='' >>>>> USE_DYNAMIC_STACK_TRUE='#' >>>>> >>>>> >>>>> >>> Could you send the file modules/core/Makefile & >>> modules/core/includes/machine.h ? >>> >>> Thx >>> S >>> >>> >>> >>> >> >> > > From sylvestre.ledru at inria.fr Thu Oct 23 19:14:51 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Thu, 23 Oct 2008 19:14:51 +0200 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <4900AD44.1090607@gmx.de> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> <490059EF.1040503@gmx.de> <4900AD44.1090607@gmx.de> Message-ID: <1224782091.3319.195.camel@zlarin> For those who don't understand the thread of replies, we spend some time this afternoon on the IRC channel about this issue. Le jeudi 23 octobre 2008 ? 18:58 +0200, Christoph Korn a ?crit : > This patch was supposed to fix the segfault: > http://nopaste.com/p/aoD7IF57t/txt Bad luck. > But scilab still segfaults. This is the backtrace for it: > http://nopaste.com/p/axP0MiyDP/txt Please try to comment the stuff about env (malloc and free). It is useless in your case. I am afraid it will probably crash elsewhere ... :/ Btw Christoph, you should install a working env for this instead of bootstrapping from scratch. Sylvestre > Christoph Korn schrieb: > > This patch enabled the IS_64_BITS_CPU flag: > > http://nopaste.com/p/a60OAMINW/txt > > > > The package has been built successfully, but after running > > scilab there is a segfault. > > This is the output of strace -f scilab: > > http://nopaste.com/p/asmdBxwwt/txt > > > > Christoph Korn schrieb: > > > >> modules/core/Makefile: > >> http://nopaste.com/p/aSAv6qoER/txt > >> > >> modules/core/includes/machine.h: > >> http://nopaste.com/p/avOvTZuPS/txt > >> > >> > >> Sylvestre Ledru schrieb: > >> > >>>>> But I have a local amd64 machine building the package in a chroot. > >>>>> So I presume that the config.log my machine produces is identical to > >>>>> the one produced by the PPA machine. > >>>>> This is it: > >>>>> http://nopaste.com/p/aQYxImE8i/txt > >>>>> The values of IS_64_BITS_CPU are: > >>>>> IS_64_BITS_CPU_FALSE='' > >>>>> IS_64_BITS_CPU_TRUE='#' > >>>>> > >>>>> The values of USE_DYNAMIC_STACK are: > >>>>> USE_DYNAMIC_STACK_FALSE='' > >>>>> USE_DYNAMIC_STACK_TRUE='#' > >>>>> > >>>>> > >>>>> > >>> Could you send the file modules/core/Makefile & > >>> modules/core/includes/machine.h ? > >>> > >>> Thx > >>> S > >>> > >>> > >>> > >>> > >> > >> > > > > From c_korn at gmx.de Thu Oct 23 21:51:11 2008 From: c_korn at gmx.de (Christoph Korn) Date: Thu, 23 Oct 2008 21:51:11 +0200 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <1224782091.3319.195.camel@zlarin> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> <490059EF.1040503@gmx.de> <4900AD44.1090607@gmx.de> <1224782091.3319.195.camel@zlarin> Message-ID: <4900D5AF.2060406@gmx.de> An HTML attachment was scrubbed... URL: From sylvestre.ledru at inria.fr Thu Oct 23 22:01:07 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Thu, 23 Oct 2008 22:01:07 +0200 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <4900D5AF.2060406@gmx.de> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> <490059EF.1040503@gmx.de> <4900AD44.1090607@gmx.de> <1224782091.3319.195.camel@zlarin> <4900D5AF.2060406@gmx.de> Message-ID: <1224792067.3319.202.camel@zlarin> Le jeudi 23 octobre 2008 ? 21:51 +0200, Christoph Korn a ?crit : > I commented these lines but you where right. > It crashes at another place: > http://nopaste.com/p/aWud1Miav/txt OK, could you send the content of libs/MALLOC/Makefile ? Seems that I didn't built libs/MALLOC/malloc.c > What do you mean by the working env btw? > The package is built in a clean chroot via sbuild. You are wasting a lot of time doing it each time. It is just a suggestion. S From c_korn at gmx.de Thu Oct 23 22:26:30 2008 From: c_korn at gmx.de (Christoph Korn) Date: Thu, 23 Oct 2008 22:26:30 +0200 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <1224792067.3319.202.camel@zlarin> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> <490059EF.1040503@gmx.de> <4900AD44.1090607@gmx.de> <1224782091.3319.195.camel@zlarin> <4900D5AF.2060406@gmx.de> <1224792067.3319.202.camel@zlarin> Message-ID: <4900DDF6.8020100@gmx.de> An HTML attachment was scrubbed... URL: From sq.yu at siat.ac.cn Fri Oct 24 04:15:56 2008 From: sq.yu at siat.ac.cn (Shiqi Yu) Date: Fri, 24 Oct 2008 10:15:56 +0800 Subject: [Scilab-Dev] Localization in Scilab 5.0.3 In-Reply-To: <1224685135.14725.62.camel@korcula.inria.fr> References: <1224685135.14725.62.camel@korcula.inria.fr> Message-ID: <296f12ef0810231915h61fc03d0q64b4b9162b102093@mail.gmail.com> For Simplified Chinese, there are some errors under version 5.0.2. I have submitted to bugzilla http://bugzilla.scilab.org/show_bug.cgi?id=3692 Hope these errors can be fixed. 2008/10/22 Sylvestre Ledru > Hello > > We are probably going to release a minor version 5.0.3 containing some > important bug fixes. > I would like to take this opportunity to update localization files. > Therefor, if you want to update the localization in your language, > please let me know and I will update your work. > > Thanks > Sylvestre > > > -- Dr. Shiqi Yu Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences. Tel: +86-755-26803592 Homepage: http://yushiqi.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From sq.yu at siat.ac.cn Fri Oct 24 04:53:44 2008 From: sq.yu at siat.ac.cn (Shiqi Yu) Date: Fri, 24 Oct 2008 10:53:44 +0800 Subject: Integrate SIVP to Scilab? Message-ID: <296f12ef0810231953g32e010a9m601596731f903e4e@mail.gmail.com> Hi, all, I'm the author of SIVP: Scilab Image and Video Image Processing toolbox. I found some toolboxes had been integrated into Scilab 5, such as parameters toolbox... Is it possible to integrate SIVP into Scilab? If so, what should I do? -- Dr. Shiqi Yu Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences. Tel: +86-755-26803592 Homepage: http://yushiqi.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri Oct 24 09:51:26 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 24 Oct 2008 09:51:26 +0200 Subject: [Scilab-Dev] Integrate SIVP to Scilab? In-Reply-To: <296f12ef0810231953g32e010a9m601596731f903e4e@mail.gmail.com> References: <296f12ef0810231953g32e010a9m601596731f903e4e@mail.gmail.com> Message-ID: <1224834686.14725.152.camel@korcula.inria.fr> Hello Shiqi, For the version 5.1, we are planning to integrate what we call ATOMS. Atoms is a packaging system. That means that with one command, you will be able to download the toolbox and make it available in Scilab. Therefor, this will greatly improve the visibility of your toolbox. We are going to remove from the binary distribution some features of Scilab itself. parameters is one example among others. Sylvestre Le vendredi 24 octobre 2008 ? 10:53 +0800, Shiqi Yu a ?crit : > Hi, all, > > I'm the author of SIVP: Scilab Image and Video Image Processing > toolbox. > I found some toolboxes had been integrated into Scilab 5, such as > parameters toolbox... > Is it possible to integrate SIVP into Scilab? > If so, what should I do? > > -- > Dr. Shiqi Yu > Shenzhen Institute of Advanced Technology, > Chinese Academy of Sciences. > Tel: +86-755-26803592 > Homepage: http://yushiqi.cn From sq.yu at siat.ac.cn Fri Oct 24 10:37:06 2008 From: sq.yu at siat.ac.cn (Shiqi Yu) Date: Fri, 24 Oct 2008 16:37:06 +0800 Subject: [Scilab-Dev] Integrate SIVP to Scilab? In-Reply-To: <1224834686.14725.152.camel@korcula.inria.fr> References: <296f12ef0810231953g32e010a9m601596731f903e4e@mail.gmail.com> <1224834686.14725.152.camel@korcula.inria.fr> Message-ID: <296f12ef0810240137j270ae8adh15652a5d24fc4bab@mail.gmail.com> Looking forward to Atoms... :-) 2008/10/24 Sylvestre Ledru > Hello Shiqi, > > For the version 5.1, we are planning to integrate what we call ATOMS. > Atoms is a packaging system. That means that with one command, you will > be able to download the toolbox and make it available in Scilab. > Therefor, this will greatly improve the visibility of your toolbox. > > We are going to remove from the binary distribution some features of > Scilab itself. parameters is one example among others. > > Sylvestre > > > Le vendredi 24 octobre 2008 ? 10:53 +0800, Shiqi Yu a ?crit : > > Hi, all, > > > > I'm the author of SIVP: Scilab Image and Video Image Processing > > toolbox. > > I found some toolboxes had been integrated into Scilab 5, such as > > parameters toolbox... > > Is it possible to integrate SIVP into Scilab? > > If so, what should I do? > > > > -- > > Dr. Shiqi Yu > > Shenzhen Institute of Advanced Technology, > > Chinese Academy of Sciences. > > Tel: +86-755-26803592 > > Homepage: http://yushiqi.cn > > -- Dr. Shiqi Yu Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences. Tel: +86-755-26803592 Homepage: http://yushiqi.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From c_korn at gmx.de Fri Oct 24 14:54:25 2008 From: c_korn at gmx.de (Christoph Korn) Date: Fri, 24 Oct 2008 14:54:25 +0200 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <4900DDF6.8020100@gmx.de> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> <490059EF.1040503@gmx.de> <4900AD44.1090607@gmx.de> <1224782091.3319.195.camel@zlarin> <4900D5AF.2060406@gmx.de> <1224792067.3319.202.camel@zlarin> <4900DDF6.8020100@gmx.de> Message-ID: <4901C581.40704@gmx.de> I updated my machine to ubuntu intrepid but the segfault is still there. I have rebuilt the package on this machine. This is the output of 'scilab -debug': http://nopaste.com/p/aWmPGgt01/txt Christoph Korn schrieb: > Sylvestre Ledru schrieb: > > Le jeudi 23 octobre 2008 ? 21:51 +0200, Christoph Korn a ?crit : > > > >> I commented these lines but you where right. > >> It crashes at another place: > >> http://nopaste.com/p/aWud1Miav/txt > >> > > OK, could you send the content of libs/MALLOC/Makefile ? > > Seems that I didn't built libs/MALLOC/malloc.c > > > http://nopaste.com/p/aBV3mtMy6/txt > >> What do you mean by the working env btw? > >> The package is built in a clean chroot via sbuild. > >> > > You are wasting a lot of time doing it each time. It is just a > > suggestion. > > > > S > > > > > > > Ok, then I misunderstood your previous comment. > From cloos at jhcloos.com Sun Oct 19 10:46:55 2008 From: cloos at jhcloos.com (James Cloos) Date: Sun, 19 Oct 2008 08:46:55 +0000 Subject: [Scilab-Dev] Git / Scilab References: <1224250230.18336.330.camel@korcula.inria.fr> <48F91948.40406@free.fr> <48FA6514.2090603@free.fr> Message-ID: Fran?ois Vogel writes: >>> git clone git://git.scilab.org/scilab > > My first observation is that any empty directory in the source tree is > not received, for instance SCI/modules/action_binding/tests and > directories below. Is this normal? Git does not store directories, only files (with full paths). Empty directories do not exist in the git repo. Either the build process should create any which are needed, or some file must exist in them. -JimC -- James Cloos OpenPGP: 1024D/ED7DAEA6 From c_korn at gmx.de Fri Oct 24 21:17:34 2008 From: c_korn at gmx.de (Christoph Korn) Date: Fri, 24 Oct 2008 21:17:34 +0200 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <4901C581.40704@gmx.de> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> <490059EF.1040503@gmx.de> <4900AD44.1090607@gmx.de> <1224782091.3319.195.camel@zlarin> <4900D5AF.2060406@gmx.de> <1224792067.3319.202.camel@zlarin> <4900DDF6.8020100@gmx.de> <4901C581.40704@gmx.de> Message-ID: <49021F4E.3020709@gmx.de> An HTML attachment was scrubbed... URL: From sylvestre.ledru at inria.fr Sat Oct 25 04:41:37 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Sat, 25 Oct 2008 04:41:37 +0200 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <49021F4E.3020709@gmx.de> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> <490059EF.1040503@gmx.de> <4900AD44.1090607@gmx.de> <1224782091.3319.195.camel@zlarin> <4900D5AF.2060406@gmx.de> <1224792067.3319.202.camel@zlarin> <4900DDF6.8020100@gmx.de> <4901C581.40704@gmx.de> <49021F4E.3020709@gmx.de> Message-ID: <1224902497.21746.13.camel@zlarin> Then back to the same problem as we had before. I have a spare 64 bits (if Simon didn't break it too hardly ;) ). I am going to give a try next week. Cheers and thanks again for the time you spend with me on this issue. Sylvestre Le vendredi 24 octobre 2008 ? 21:17 +0200, Christoph Korn a ?crit : > The segfault also happens on latest git's head. > http://nopaste.com/p/al2B8HGUT/txt > > I don't know any further. > > Please let me know of any ideas you have > or information I should provide to trace the > bug. > > I would be glad to have a working scilab 5.0.x > when I switch to ubuntu intrepid amd64 on > my working machine next weak. :-( > > Christoph Korn schrieb: > > I updated my machine to ubuntu intrepid but the segfault > > is still there. > > I have rebuilt the package on this machine. > > This is the output of 'scilab -debug': > > http://nopaste.com/p/aWmPGgt01/txt > > > > Christoph Korn schrieb: > > > > > Sylvestre Ledru schrieb: > > > > > > > Le jeudi 23 octobre 2008 ? 21:51 +0200, Christoph Korn a ?crit : > > > > > > > > > > > > > I commented these lines but you where right. > > > > > It crashes at another place: > > > > > http://nopaste.com/p/aWud1Miav/txt > > > > > > > > > > > > > > OK, could you send the content of libs/MALLOC/Makefile ? > > > > Seems that I didn't built libs/MALLOC/malloc.c > > > > > > > > > > > http://nopaste.com/p/aBV3mtMy6/txt > > > > > > > > What do you mean by the working env btw? > > > > > The package is built in a clean chroot via sbuild. > > > > > > > > > > > > > > You are wasting a lot of time doing it each time. It is just a > > > > suggestion. > > > > > > > > S > > > > > > > > > > > > > > > > > > > Ok, then I misunderstood your previous comment. > > > > > > > > > > From fvogelnew1 at free.fr Sun Oct 26 10:48:00 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sun, 26 Oct 2008 10:48:00 +0100 Subject: gitignore c files from f2c Message-ID: <49043CD0.7080008@free.fr> Hi all, Suggestion: could we add all .c files generated by f2c in .gitignore? Currently there is a lot of untracked files polluting for instance git status. I know I can use git status -uno but I feel explicitly declaring f2c output files in .gitignore would be better. What do you think? Francois PS: Here is my current output of git status with an up-to-date master. The .svn directories are from copy/paste of the windows prerequirements, these will disappear as soon as the prerequirements will be migrated to git. However for f2c files (and also files in libs from prerequirements) we should add them in .gitignore files I think. $ git status # On branch master # Untracked files: # (use "git add ..." to include in what will be committed) # # scilab/bin/.svn/ # scilab/bin/atlas/ # scilab/libs/.svn/ # scilab/libs/blas/dasum.c # scilab/libs/blas/daxpy.c # scilab/libs/blas/dcabs1.c # scilab/libs/blas/dcopy.c # scilab/libs/blas/ddot.c # scilab/libs/blas/dgbmv.c # scilab/libs/blas/dgemm.c # scilab/libs/blas/dgemv.c # scilab/libs/blas/dger.c # scilab/libs/blas/dnrm2.c # scilab/libs/blas/drot.c # scilab/libs/blas/drotg.c # scilab/libs/blas/dsbmv.c # scilab/libs/blas/dscal.c # scilab/libs/blas/dspmv.c # scilab/libs/blas/dspr.c # scilab/libs/blas/dspr2.c # scilab/libs/blas/dswap.c # scilab/libs/blas/dsymm.c # scilab/libs/blas/dsymv.c # scilab/libs/blas/dsyr.c # scilab/libs/blas/dsyr2.c # scilab/libs/blas/dsyr2k.c # scilab/libs/blas/dsyrk.c # scilab/libs/blas/dtbmv.c # scilab/libs/blas/dtbsv.c # scilab/libs/blas/dtpmv.c # scilab/libs/blas/dtpsv.c # scilab/libs/blas/dtrmm.c # scilab/libs/blas/dtrmv.c # scilab/libs/blas/dtrsm.c # scilab/libs/blas/dtrsv.c # scilab/libs/blas/dzasum.c # scilab/libs/blas/dznrm2.c # scilab/libs/blas/idamax.c # scilab/libs/blas/izamax.c # scilab/libs/blas/lsame.c # scilab/libs/blas/xerbla.c # scilab/libs/blas/zaxpy.c # scilab/libs/blas/zcopy.c # scilab/libs/blas/zdotc.c # scilab/libs/blas/zdotu.c # scilab/libs/blas/zdscal.c # scilab/libs/blas/zgbmv.c # scilab/libs/blas/zgemm.c # scilab/libs/blas/zgemv.c # scilab/libs/blas/zgerc.c # scilab/libs/blas/zgeru.c # scilab/libs/blas/zhbmv.c # scilab/libs/blas/zhemm.c # scilab/libs/blas/zhemv.c # scilab/libs/blas/zher.c # scilab/libs/blas/zher2.c # scilab/libs/blas/zher2k.c # scilab/libs/blas/zherk.c # scilab/libs/blas/zhpmv.c # scilab/libs/blas/zhpr.c # scilab/libs/blas/zhpr2.c # scilab/libs/blas/zrotg.c # scilab/libs/blas/zscal.c # scilab/libs/blas/zswap.c # scilab/libs/blas/zsymm.c # scilab/libs/blas/zsyr2k.c # scilab/libs/blas/zsyrk.c # scilab/libs/blas/ztbmv.c # scilab/libs/blas/ztbsv.c # scilab/libs/blas/ztpmv.c # scilab/libs/blas/ztpsv.c # scilab/libs/blas/ztrmm.c # scilab/libs/blas/ztrmv.c # scilab/libs/blas/ztrsm.c # scilab/libs/blas/ztrsv.c # scilab/libs/lapack/dbdsqr.c # scilab/libs/lapack/dgebak.c # scilab/libs/lapack/dgebal.c # scilab/libs/lapack/dgebd2.c # scilab/libs/lapack/dgebrd.c # scilab/libs/lapack/dgecon.c # scilab/libs/lapack/dgeequ.c # scilab/libs/lapack/dgees.c # scilab/libs/lapack/dgeesx.c # scilab/libs/lapack/dgeev.c # scilab/libs/lapack/dgegs.c # scilab/libs/lapack/dgehd2.c # scilab/libs/lapack/dgehrd.c # scilab/libs/lapack/dgelq2.c # scilab/libs/lapack/dgelqf.c # scilab/libs/lapack/dgels.c # scilab/libs/lapack/dgelss.c # scilab/libs/lapack/dgelsx.c # scilab/libs/lapack/dgelsy.c # scilab/libs/lapack/dgeql2.c # scilab/libs/lapack/dgeqlf.c # scilab/libs/lapack/dgeqp3.c # scilab/libs/lapack/dgeqpf.c # scilab/libs/lapack/dgeqr2.c # scilab/libs/lapack/dgeqrf.c # scilab/libs/lapack/dgerfs.c # scilab/libs/lapack/dgerq2.c # scilab/libs/lapack/dgerqf.c # scilab/libs/lapack/dgesc2.c # scilab/libs/lapack/dgesv.c # scilab/libs/lapack/dgesvd.c # scilab/libs/lapack/dgesvx.c # scilab/libs/lapack/dgetc2.c # scilab/libs/lapack/dgetf2.c # scilab/libs/lapack/dgetrf.c # scilab/libs/lapack/dgetri.c # scilab/libs/lapack/dgetrs.c # scilab/libs/lapack/dggbak.c # scilab/libs/lapack/dggbal.c # scilab/libs/lapack/dgges.c # scilab/libs/lapack/dggev.c # scilab/libs/lapack/dgghrd.c # scilab/libs/lapack/dhgeqz.c # scilab/libs/lapack/dhseqr.c # scilab/libs/lapack/disnan.c # scilab/libs/lapack/dlabad.c # scilab/libs/lapack/dlabrd.c # scilab/libs/lapack/dlacn2.c # scilab/libs/lapack/dlacon.c # scilab/libs/lapack/dlacpy.c # scilab/libs/lapack/dladiv.c # scilab/libs/lapack/dlae2.c # scilab/libs/lapack/dlaev2.c # scilab/libs/lapack/dlaexc.c # scilab/libs/lapack/dlag2.c # scilab/libs/lapack/dlagv2.c # scilab/libs/lapack/dlahqr.c # scilab/libs/lapack/dlahr2.c # scilab/libs/lapack/dlahrd.c # scilab/libs/lapack/dlaic1.c # scilab/libs/lapack/dlaisnan.c # scilab/libs/lapack/dlaln2.c # scilab/libs/lapack/dlamch.c # scilab/libs/lapack/dlange.c # scilab/libs/lapack/dlanhs.c # scilab/libs/lapack/dlansp.c # scilab/libs/lapack/dlanst.c # scilab/libs/lapack/dlansy.c # scilab/libs/lapack/dlantr.c # scilab/libs/lapack/dlanv2.c # scilab/libs/lapack/dlapmt.c # scilab/libs/lapack/dlapy2.c # scilab/libs/lapack/dlapy3.c # scilab/libs/lapack/dlaqge.c # scilab/libs/lapack/dlaqp2.c # scilab/libs/lapack/dlaqps.c # scilab/libs/lapack/dlaqr0.c # scilab/libs/lapack/dlaqr1.c # scilab/libs/lapack/dlaqr2.c # scilab/libs/lapack/dlaqr3.c # scilab/libs/lapack/dlaqr4.c # scilab/libs/lapack/dlaqr5.c # scilab/libs/lapack/dlarf.c # scilab/libs/lapack/dlarfb.c # scilab/libs/lapack/dlarfg.c # scilab/libs/lapack/dlarft.c # scilab/libs/lapack/dlarfx.c # scilab/libs/lapack/dlartg.c # scilab/libs/lapack/dlarz.c # scilab/libs/lapack/dlarzb.c # scilab/libs/lapack/dlarzt.c # scilab/libs/lapack/dlas2.c # scilab/libs/lapack/dlascl.c # scilab/libs/lapack/dlaset.c # scilab/libs/lapack/dlasq1.c # scilab/libs/lapack/dlasq2.c # scilab/libs/lapack/dlasq3.c # scilab/libs/lapack/dlasq4.c # scilab/libs/lapack/dlasq5.c # scilab/libs/lapack/dlasq6.c # scilab/libs/lapack/dlasr.c # scilab/libs/lapack/dlasrt.c # scilab/libs/lapack/dlassq.c # scilab/libs/lapack/dlasv2.c # scilab/libs/lapack/dlaswp.c # scilab/libs/lapack/dlasy2.c # scilab/libs/lapack/dlasyf.c # scilab/libs/lapack/dlatdf.c # scilab/libs/lapack/dlatrd.c # scilab/libs/lapack/dlatrs.c # scilab/libs/lapack/dlatrz.c # scilab/libs/lapack/dlatzm.c # scilab/libs/lapack/dlazq3.c # scilab/libs/lapack/dlazq4.c # scilab/libs/lapack/dopgtr.c # scilab/libs/lapack/dorg2l.c # scilab/libs/lapack/dorg2r.c # scilab/libs/lapack/dorgbr.c # scilab/libs/lapack/dorghr.c # scilab/libs/lapack/dorgl2.c # scilab/libs/lapack/dorglq.c # scilab/libs/lapack/dorgql.c # scilab/libs/lapack/dorgqr.c # scilab/libs/lapack/dorgr2.c # scilab/libs/lapack/dorgrq.c # scilab/libs/lapack/dorgtr.c # scilab/libs/lapack/dorm2l.c # scilab/libs/lapack/dorm2r.c # scilab/libs/lapack/dormbr.c # scilab/libs/lapack/dormhr.c # scilab/libs/lapack/dorml2.c # scilab/libs/lapack/dormlq.c # scilab/libs/lapack/dormql.c # scilab/libs/lapack/dormqr.c # scilab/libs/lapack/dormr2.c # scilab/libs/lapack/dormr3.c # scilab/libs/lapack/dormrq.c # scilab/libs/lapack/dormrz.c # scilab/libs/lapack/dpocon.c # scilab/libs/lapack/dpotf2.c # scilab/libs/lapack/dpotrf.c # scilab/libs/lapack/dpotrs.c # scilab/libs/lapack/dpptrf.c # scilab/libs/lapack/drscl.c # scilab/libs/lapack/dspev.c # scilab/libs/lapack/dspgst.c # scilab/libs/lapack/dspgv.c # scilab/libs/lapack/dsptrd.c # scilab/libs/lapack/dsptrf.c # scilab/libs/lapack/dsteqr.c # scilab/libs/lapack/dsterf.c # scilab/libs/lapack/dsycon.c # scilab/libs/lapack/dsyev.c # scilab/libs/lapack/dsysv.c # scilab/libs/lapack/dsytd2.c # scilab/libs/lapack/dsytf2.c # scilab/libs/lapack/dsytrd.c # scilab/libs/lapack/dsytrf.c # scilab/libs/lapack/dsytri.c # scilab/libs/lapack/dsytrs.c # scilab/libs/lapack/dtgevc.c # scilab/libs/lapack/dtgex2.c # scilab/libs/lapack/dtgexc.c # scilab/libs/lapack/dtgsen.c # scilab/libs/lapack/dtgsy2.c # scilab/libs/lapack/dtgsyl.c # scilab/libs/lapack/dtrcon.c # scilab/libs/lapack/dtrevc.c # scilab/libs/lapack/dtrexc.c # scilab/libs/lapack/dtrsen.c # scilab/libs/lapack/dtrsyl.c # scilab/libs/lapack/dtrti2.c # scilab/libs/lapack/dtrtri.c # scilab/libs/lapack/dtrtrs.c # scilab/libs/lapack/dtzrqf.c # scilab/libs/lapack/dtzrzf.c # scilab/libs/lapack/dzsum1.c # scilab/libs/lapack/ieeeck.c # scilab/libs/lapack/ilaenv.c # scilab/libs/lapack/iparmq.c # scilab/libs/lapack/izmax1.c # scilab/libs/lapack/lsame.c # scilab/libs/lapack/slamch.c # scilab/libs/lapack/xerbla.c # scilab/libs/lapack/zbdsqr.c # scilab/libs/lapack/zdrot.c # scilab/libs/lapack/zdrscl.c # scilab/libs/lapack/zgebak.c # scilab/libs/lapack/zgebal.c # scilab/libs/lapack/zgebd2.c # scilab/libs/lapack/zgebrd.c # scilab/libs/lapack/zgecon.c # scilab/libs/lapack/zgees.c # scilab/libs/lapack/zgeev.c # scilab/libs/lapack/zgehd2.c # scilab/libs/lapack/zgehrd.c # scilab/libs/lapack/zgelq2.c # scilab/libs/lapack/zgelqf.c # scilab/libs/lapack/zgelsy.c # scilab/libs/lapack/zgeqp3.c # scilab/libs/lapack/zgeqpf.c # scilab/libs/lapack/zgeqr2.c # scilab/libs/lapack/zgeqrf.c # scilab/libs/lapack/zgesc2.c # scilab/libs/lapack/zgesvd.c # scilab/libs/lapack/zgetc2.c # scilab/libs/lapack/zgetf2.c # scilab/libs/lapack/zgetrf.c # scilab/libs/lapack/zgetri.c # scilab/libs/lapack/zgetrs.c # scilab/libs/lapack/zggbak.c # scilab/libs/lapack/zggbal.c # scilab/libs/lapack/zgges.c # scilab/libs/lapack/zggev.c # scilab/libs/lapack/zgghrd.c # scilab/libs/lapack/zheev.c # scilab/libs/lapack/zhetd2.c # scilab/libs/lapack/zhetrd.c # scilab/libs/lapack/zhgeqz.c # scilab/libs/lapack/zhseqr.c # scilab/libs/lapack/zlabrd.c # scilab/libs/lapack/zlacgv.c # scilab/libs/lapack/zlacn2.c # scilab/libs/lapack/zlacon.c # scilab/libs/lapack/zlacpy.c # scilab/libs/lapack/zladiv.c # scilab/libs/lapack/zlahqr.c # scilab/libs/lapack/zlahr2.c # scilab/libs/lapack/zlahrd.c # scilab/libs/lapack/zlaic1.c # scilab/libs/lapack/zlange.c # scilab/libs/lapack/zlanhe.c # scilab/libs/lapack/zlanhs.c # scilab/libs/lapack/zlaqp2.c # scilab/libs/lapack/zlaqps.c # scilab/libs/lapack/zlaqr0.c # scilab/libs/lapack/zlaqr1.c # scilab/libs/lapack/zlaqr2.c # scilab/libs/lapack/zlaqr3.c # scilab/libs/lapack/zlaqr4.c # scilab/libs/lapack/zlaqr5.c # scilab/libs/lapack/zlarf.c # scilab/libs/lapack/zlarfb.c # scilab/libs/lapack/zlarfg.c # scilab/libs/lapack/zlarft.c # scilab/libs/lapack/zlarfx.c # scilab/libs/lapack/zlartg.c # scilab/libs/lapack/zlarz.c # scilab/libs/lapack/zlarzb.c # scilab/libs/lapack/zlarzt.c # scilab/libs/lapack/zlascl.c # scilab/libs/lapack/zlaset.c # scilab/libs/lapack/zlasr.c # scilab/libs/lapack/zlassq.c # scilab/libs/lapack/zlaswp.c # scilab/libs/lapack/zlatdf.c # scilab/libs/lapack/zlatrd.c # scilab/libs/lapack/zlatrs.c # scilab/libs/lapack/zlatrz.c # scilab/libs/lapack/zpotf2.c # scilab/libs/lapack/zpotrf.c # scilab/libs/lapack/zrot.c # scilab/libs/lapack/zsteqr.c # scilab/libs/lapack/ztgevc.c # scilab/libs/lapack/ztgex2.c # scilab/libs/lapack/ztgexc.c # scilab/libs/lapack/ztgsen.c # scilab/libs/lapack/ztgsy2.c # scilab/libs/lapack/ztgsyl.c # scilab/libs/lapack/ztrevc.c # scilab/libs/lapack/ztrexc.c # scilab/libs/lapack/ztrsen.c # scilab/libs/lapack/ztrsyl.c # scilab/libs/lapack/ztrti2.c # scilab/libs/lapack/ztrtri.c # scilab/libs/lapack/ztzrzf.c # scilab/libs/lapack/zung2l.c # scilab/libs/lapack/zung2r.c # scilab/libs/lapack/zungbr.c # scilab/libs/lapack/zunghr.c # scilab/libs/lapack/zungl2.c # scilab/libs/lapack/zunglq.c # scilab/libs/lapack/zungql.c # scilab/libs/lapack/zungqr.c # scilab/libs/lapack/zungtr.c # scilab/libs/lapack/zunm2r.c # scilab/libs/lapack/zunmbr.c # scilab/libs/lapack/zunml2.c # scilab/libs/lapack/zunmlq.c # scilab/libs/lapack/zunmqr.c # scilab/libs/lapack/zunmr3.c # scilab/libs/lapack/zunmrz.c # scilab/modules/.svn/ # scilab/modules/arnoldi/src/arpack/cmout.c # scilab/modules/arnoldi/src/arpack/cvout.c # scilab/modules/arnoldi/src/arpack/dgetv0.c # scilab/modules/arnoldi/src/arpack/dlaqrb.c # scilab/modules/arnoldi/src/arpack/dlarnv.c # scilab/modules/arnoldi/src/arpack/dlaruv.c # scilab/modules/arnoldi/src/arpack/dmout.c # scilab/modules/arnoldi/src/arpack/dnaitr.c # scilab/modules/arnoldi/src/arpack/dnapps.c # scilab/modules/arnoldi/src/arpack/dnaup2.c # scilab/modules/arnoldi/src/arpack/dnaupd.c # scilab/modules/arnoldi/src/arpack/dnconv.c # scilab/modules/arnoldi/src/arpack/dneigh.c # scilab/modules/arnoldi/src/arpack/dneupd.c # scilab/modules/arnoldi/src/arpack/dngets.c # scilab/modules/arnoldi/src/arpack/dsaitr.c # scilab/modules/arnoldi/src/arpack/dsapps.c # scilab/modules/arnoldi/src/arpack/dsaup2.c # scilab/modules/arnoldi/src/arpack/dsaupd.c # scilab/modules/arnoldi/src/arpack/dsconv.c # scilab/modules/arnoldi/src/arpack/dseigt.c # scilab/modules/arnoldi/src/arpack/dsesrt.c # scilab/modules/arnoldi/src/arpack/dseupd.c # scilab/modules/arnoldi/src/arpack/dsgets.c # scilab/modules/arnoldi/src/arpack/dsortc.c # scilab/modules/arnoldi/src/arpack/dsortr.c # scilab/modules/arnoldi/src/arpack/dstatn.c # scilab/modules/arnoldi/src/arpack/dstats.c # scilab/modules/arnoldi/src/arpack/dstqrb.c # scilab/modules/arnoldi/src/arpack/dvout.c # scilab/modules/arnoldi/src/arpack/icnteq.c # scilab/modules/arnoldi/src/arpack/iswap.c # scilab/modules/arnoldi/src/arpack/ivout.c # scilab/modules/arnoldi/src/arpack/second.c # scilab/modules/arnoldi/src/arpack/smout.c # scilab/modules/arnoldi/src/arpack/svout.c # scilab/modules/arnoldi/src/arpack/zgetv0.c # scilab/modules/arnoldi/src/arpack/zlarnv.c # scilab/modules/arnoldi/src/arpack/zmout.c # scilab/modules/arnoldi/src/arpack/znaitr.c # scilab/modules/arnoldi/src/arpack/znapps.c # scilab/modules/arnoldi/src/arpack/znaup2.c # scilab/modules/arnoldi/src/arpack/znaupd.c # scilab/modules/arnoldi/src/arpack/zneigh.c # scilab/modules/arnoldi/src/arpack/zneupd.c # scilab/modules/arnoldi/src/arpack/zngets.c # scilab/modules/arnoldi/src/arpack/zsortc.c # scilab/modules/arnoldi/src/arpack/zstatn.c # scilab/modules/arnoldi/src/arpack/zvout.c # scilab/modules/boolean/sci_gateway/fortran/sci_bool2s.c # scilab/modules/boolean/sci_gateway/fortran/sci_find.c # scilab/modules/boolean/src/fortran/find.c # scilab/modules/boolean/src/fortran/logic.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_arl2.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_dhinf.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_ereduc.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_findbd.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_freq.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_fstair.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_gschur.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_gspec.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_hinf.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_ldiv.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_linmeq.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_ltitr.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_lyap.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_mucomp.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_ppol.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_rankqr.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_residu.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_ricc.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_ricc2.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_rtitr.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_sident.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_sorder.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_sylv.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_tzer.c # scilab/modules/cacsd/sci_gateway/fortran/sci_f_zrankqr.c # scilab/modules/cacsd/src/fortran/arl2.c # scilab/modules/cacsd/src/fortran/arl2a.c # scilab/modules/cacsd/src/fortran/calcsc.c # scilab/modules/cacsd/src/fortran/calsca.c # scilab/modules/cacsd/src/fortran/deg1l2.c # scilab/modules/cacsd/src/fortran/degl2.c # scilab/modules/cacsd/src/fortran/dfrmg.c # scilab/modules/cacsd/src/fortran/dgeco.c # scilab/modules/cacsd/src/fortran/dgedi.c # scilab/modules/cacsd/src/fortran/dhetr.c # scilab/modules/cacsd/src/fortran/dlslv.c # scilab/modules/cacsd/src/fortran/domout.c # scilab/modules/cacsd/src/fortran/dqrdc.c # scilab/modules/cacsd/src/fortran/dqrsl.c # scilab/modules/cacsd/src/fortran/dqrsm.c # scilab/modules/cacsd/src/fortran/dzdivq.c # scilab/modules/cacsd/src/fortran/expan.c # scilab/modules/cacsd/src/fortran/feq.c # scilab/modules/cacsd/src/fortran/fout.c # scilab/modules/cacsd/src/fortran/front.c # scilab/modules/cacsd/src/fortran/giv.c # scilab/modules/cacsd/src/fortran/hessl2.c # scilab/modules/cacsd/src/fortran/hhdml.c # scilab/modules/cacsd/src/fortran/jacl2.c # scilab/modules/cacsd/src/fortran/lq.c # scilab/modules/cacsd/src/fortran/modul.c # scilab/modules/cacsd/src/fortran/mzdivq.c # scilab/modules/cacsd/src/fortran/onface.c # scilab/modules/cacsd/src/fortran/optml2.c # scilab/modules/cacsd/src/fortran/outl2.c # scilab/modules/cacsd/src/fortran/phi.c # scilab/modules/cacsd/src/fortran/qhesz.c # scilab/modules/cacsd/src/fortran/qitz.c # scilab/modules/cacsd/src/fortran/qvalz.c # scilab/modules/cacsd/src/fortran/ricd.c # scilab/modules/cacsd/src/fortran/rilac.c # scilab/modules/cacsd/src/fortran/rootgp.c # scilab/modules/cacsd/src/fortran/rtitr.c # scilab/modules/cacsd/src/fortran/scaleg.c # scilab/modules/cacsd/src/fortran/scapol.c # scilab/modules/cacsd/src/fortran/shrslv.c # scilab/modules/cacsd/src/fortran/sszer.c # scilab/modules/cacsd/src/fortran/storl2.c # scilab/modules/cacsd/src/fortran/tild.c # scilab/modules/cacsd/src/fortran/watfac.c # scilab/modules/cacsd/src/fortran/wdegre.c # scilab/modules/cacsd/src/fortran/wesidu.c # scilab/modules/cacsd/src/fortran/wgeco.c # scilab/modules/cacsd/src/fortran/wgefa.c # scilab/modules/cacsd/src/fortran/wgesl.c # scilab/modules/cacsd/src/slicot/Ex-schur.c # scilab/modules/cacsd/src/slicot/ZB03OD.c # scilab/modules/cacsd/src/slicot/ab01nd.c # scilab/modules/cacsd/src/slicot/ab01od.c # scilab/modules/cacsd/src/slicot/ab13md.c # scilab/modules/cacsd/src/slicot/ereduc.c # scilab/modules/cacsd/src/slicot/fstair.c # scilab/modules/cacsd/src/slicot/ib01ad.c # scilab/modules/cacsd/src/slicot/ib01bd.c # scilab/modules/cacsd/src/slicot/ib01cd.c # scilab/modules/cacsd/src/slicot/ib01md.c # scilab/modules/cacsd/src/slicot/ib01my.c # scilab/modules/cacsd/src/slicot/ib01nd.c # scilab/modules/cacsd/src/slicot/ib01od.c # scilab/modules/cacsd/src/slicot/ib01oy.c # scilab/modules/cacsd/src/slicot/ib01pd.c # scilab/modules/cacsd/src/slicot/ib01px.c # scilab/modules/cacsd/src/slicot/ib01py.c # scilab/modules/cacsd/src/slicot/ib01qd.c # scilab/modules/cacsd/src/slicot/ib01rd.c # scilab/modules/cacsd/src/slicot/inva.c # scilab/modules/cacsd/src/slicot/ma02ad.c # scilab/modules/cacsd/src/slicot/ma02ed.c # scilab/modules/cacsd/src/slicot/ma02fd.c # scilab/modules/cacsd/src/slicot/mb01pd.c # scilab/modules/cacsd/src/slicot/mb01qd.c # scilab/modules/cacsd/src/slicot/mb01rd.c # scilab/modules/cacsd/src/slicot/mb01ru.c # scilab/modules/cacsd/src/slicot/mb01rx.c # scilab/modules/cacsd/src/slicot/mb01ry.c # scilab/modules/cacsd/src/slicot/mb01sd.c # scilab/modules/cacsd/src/slicot/mb01td.c # scilab/modules/cacsd/src/slicot/mb01ud.c # scilab/modules/cacsd/src/slicot/mb01vd.c # scilab/modules/cacsd/src/slicot/mb02pd.c # scilab/modules/cacsd/src/slicot/mb02qy.c # scilab/modules/cacsd/src/slicot/mb02ud.c # scilab/modules/cacsd/src/slicot/mb03od.c # scilab/modules/cacsd/src/slicot/mb03oy.c # scilab/modules/cacsd/src/slicot/mb03ud.c # scilab/modules/cacsd/src/slicot/mb04id.c # scilab/modules/cacsd/src/slicot/mb04iy.c # scilab/modules/cacsd/src/slicot/mb04kd.c # scilab/modules/cacsd/src/slicot/mb04nd.c # scilab/modules/cacsd/src/slicot/mb04ny.c # scilab/modules/cacsd/src/slicot/mb04od.c # scilab/modules/cacsd/src/slicot/mb04oy.c # scilab/modules/cacsd/src/slicot/polmc.c # scilab/modules/cacsd/src/slicot/riccpack.c # scilab/modules/cacsd/src/slicot/sb02mr.c # scilab/modules/cacsd/src/slicot/sb02ms.c # scilab/modules/cacsd/src/slicot/sb02mt.c # scilab/modules/cacsd/src/slicot/sb02nd.c # scilab/modules/cacsd/src/slicot/sb02od.c # scilab/modules/cacsd/src/slicot/sb02ou.c # scilab/modules/cacsd/src/slicot/sb02ov.c # scilab/modules/cacsd/src/slicot/sb02oy.c # scilab/modules/cacsd/src/slicot/sb02qd.c # scilab/modules/cacsd/src/slicot/sb02rd.c # scilab/modules/cacsd/src/slicot/sb02ru.c # scilab/modules/cacsd/src/slicot/sb02sd.c # scilab/modules/cacsd/src/slicot/sb03md.c # scilab/modules/cacsd/src/slicot/sb03mv.c # scilab/modules/cacsd/src/slicot/sb03mw.c # scilab/modules/cacsd/src/slicot/sb03mx.c # scilab/modules/cacsd/src/slicot/sb03my.c # scilab/modules/cacsd/src/slicot/sb03od.c # scilab/modules/cacsd/src/slicot/sb03or.c # scilab/modules/cacsd/src/slicot/sb03ot.c # scilab/modules/cacsd/src/slicot/sb03ou.c # scilab/modules/cacsd/src/slicot/sb03ov.c # scilab/modules/cacsd/src/slicot/sb03oy.c # scilab/modules/cacsd/src/slicot/sb03qx.c # scilab/modules/cacsd/src/slicot/sb03qy.c # scilab/modules/cacsd/src/slicot/sb03sx.c # scilab/modules/cacsd/src/slicot/sb03sy.c # scilab/modules/cacsd/src/slicot/sb04md.c # scilab/modules/cacsd/src/slicot/sb04mr.c # scilab/modules/cacsd/src/slicot/sb04mu.c # scilab/modules/cacsd/src/slicot/sb04mw.c # scilab/modules/cacsd/src/slicot/sb04my.c # scilab/modules/cacsd/src/slicot/sb04nd.c # scilab/modules/cacsd/src/slicot/sb04nv.c # scilab/modules/cacsd/src/slicot/sb04nw.c # scilab/modules/cacsd/src/slicot/sb04nx.c # scilab/modules/cacsd/src/slicot/sb04ny.c # scilab/modules/cacsd/src/slicot/sb04pd.c # scilab/modules/cacsd/src/slicot/sb04px.c # scilab/modules/cacsd/src/slicot/sb04py.c # scilab/modules/cacsd/src/slicot/sb04qd.c # scilab/modules/cacsd/src/slicot/sb04qr.c # scilab/modules/cacsd/src/slicot/sb04qu.c # scilab/modules/cacsd/src/slicot/sb04qy.c # scilab/modules/cacsd/src/slicot/sb04rd.c # scilab/modules/cacsd/src/slicot/sb04rv.c # scilab/modules/cacsd/src/slicot/sb04rw.c # scilab/modules/cacsd/src/slicot/sb04rx.c # scilab/modules/cacsd/src/slicot/sb04ry.c # scilab/modules/cacsd/src/slicot/sb10dd.c # scilab/modules/cacsd/src/slicot/sb10fd.c # scilab/modules/cacsd/src/slicot/sb10pd.c # scilab/modules/cacsd/src/slicot/sb10qd.c # scilab/modules/cacsd/src/slicot/sb10rd.c # scilab/modules/cacsd/src/slicot/select.c # scilab/modules/cacsd/src/slicot/ssxmc.c # scilab/modules/cacsd/src/slicot/tb01wd.c # scilab/modules/core/sci_gateway/fortran/sci_argn.c # scilab/modules/core/sci_gateway/fortran/sci_clear.c # scilab/modules/core/sci_gateway/fortran/sci_clearglobal.c # scilab/modules/core/sci_gateway/fortran/sci_comp.c # scilab/modules/core/sci_gateway/fortran/sci_debug.c # scilab/modules/core/sci_gateway/fortran/sci_delbpt.c # scilab/modules/core/sci_gateway/fortran/sci_dispbpt.c # scilab/modules/core/sci_gateway/fortran/sci_errcatch.c # scilab/modules/core/sci_gateway/fortran/sci_errclear.c # scilab/modules/core/sci_gateway/fortran/sci_exists.c # scilab/modules/core/sci_gateway/fortran/sci_format.c # scilab/modules/core/sci_gateway/fortran/sci_funcprot.c # scilab/modules/core/sci_gateway/fortran/sci_global.c # scilab/modules/core/sci_gateway/fortran/sci_ieee.c # scilab/modules/core/sci_gateway/fortran/sci_intppty.c # scilab/modules/core/sci_gateway/fortran/sci_iserror.c # scilab/modules/core/sci_gateway/fortran/sci_isglobal.c # scilab/modules/core/sci_gateway/fortran/sci_macrovar.c # scilab/modules/core/sci_gateway/fortran/sci_mode.c # scilab/modules/core/sci_gateway/fortran/sci_mtlb_mode.c # scilab/modules/core/sci_gateway/fortran/sci_predef.c # scilab/modules/core/sci_gateway/fortran/sci_resume.c # scilab/modules/core/sci_gateway/fortran/sci_setbpt.c # scilab/modules/core/sci_gateway/fortran/sci_type.c # scilab/modules/core/sci_gateway/fortran/sci_typnam.c # scilab/modules/core/sci_gateway/fortran/sci_useascommand.c # scilab/modules/core/sci_gateway/fortran/sci_whereis.c # scilab/modules/core/sci_gateway/fortran/where.c # scilab/modules/core/src/fortran/algebre.c # scilab/modules/core/src/fortran/allops.c # scilab/modules/core/src/fortran/allowptr.c # scilab/modules/core/src/fortran/atome.c # scilab/modules/core/src/fortran/basin.c # scilab/modules/core/src/fortran/basnms.c # scilab/modules/core/src/fortran/bexec.c # scilab/modules/core/src/fortran/btof.c # scilab/modules/core/src/fortran/btofm.c # scilab/modules/core/src/fortran/chkvar.c # scilab/modules/core/src/fortran/clause.c # scilab/modules/core/src/fortran/clunit.c # scilab/modules/core/src/fortran/cmdstr.c # scilab/modules/core/src/fortran/cmplxt.c # scilab/modules/core/src/fortran/command.c # scilab/modules/core/src/fortran/compcl.c # scilab/modules/core/src/fortran/compil.c # scilab/modules/core/src/fortran/copyvar.c # scilab/modules/core/src/fortran/createref.c # scilab/modules/core/src/fortran/cvdm.c # scilab/modules/core/src/fortran/cvname.c # scilab/modules/core/src/fortran/cvwm.c # scilab/modules/core/src/fortran/dbasin.c # scilab/modules/core/src/fortran/defmat.c # scilab/modules/core/src/fortran/dldsp.c # scilab/modules/core/src/fortran/dmdsp.c # scilab/modules/core/src/fortran/dmdspf.c # scilab/modules/core/src/fortran/dtosci.c # scilab/modules/core/src/fortran/eqid.c # scilab/modules/core/src/fortran/errmgr.c # scilab/modules/core/src/fortran/error.c # scilab/modules/core/src/fortran/expsum.c # scilab/modules/core/src/fortran/extlarg.c # scilab/modules/core/src/fortran/fact.c # scilab/modules/core/src/fortran/find.c # scilab/modules/core/src/fortran/findequal.c # scilab/modules/core/src/fortran/fmttyp.c # scilab/modules/core/src/fortran/folhp.c # scilab/modules/core/src/fortran/formatnumber.c # scilab/modules/core/src/fortran/ftob.c # scilab/modules/core/src/fortran/functionsforbasout.c # scilab/modules/core/src/fortran/funnam.c # scilab/modules/core/src/fortran/funs.c # scilab/modules/core/src/fortran/getch.c # scilab/modules/core/src/fortran/getfun.c # scilab/modules/core/src/fortran/getfunction.c # scilab/modules/core/src/fortran/getlin.c # scilab/modules/core/src/fortran/getnum.c # scilab/modules/core/src/fortran/getstr.c # scilab/modules/core/src/fortran/getsym.c # scilab/modules/core/src/fortran/hmcreate.c # scilab/modules/core/src/fortran/hndlops.c # scilab/modules/core/src/fortran/indxg.c # scilab/modules/core/src/fortran/inibrk.c # scilab/modules/core/src/fortran/inisci.c # scilab/modules/core/src/fortran/intstr.c # scilab/modules/core/src/fortran/isany.c # scilab/modules/core/src/fortran/isbrk.c # scilab/modules/core/src/fortran/iseye.c # scilab/modules/core/src/fortran/isinstring.c # scilab/modules/core/src/fortran/isnum.c # scilab/modules/core/src/fortran/israt.c # scilab/modules/core/src/fortran/istrue.c # scilab/modules/core/src/fortran/itosci.c # scilab/modules/core/src/fortran/logops.c # scilab/modules/core/src/fortran/lspdsp.c # scilab/modules/core/src/fortran/lst2vars.c # scilab/modules/core/src/fortran/macro.c # scilab/modules/core/src/fortran/majmin.c # scilab/modules/core/src/fortran/matc.c # scilab/modules/core/src/fortran/matz.c # scilab/modules/core/src/fortran/matzs.c # scilab/modules/core/src/fortran/misops.c # scilab/modules/core/src/fortran/mkindx.c # scilab/modules/core/src/fortran/mklist.c # scilab/modules/core/src/fortran/mname.c # scilab/modules/core/src/fortran/mrknmd.c # scilab/modules/core/src/fortran/namstr.c # scilab/modules/core/src/fortran/nextj.c # scilab/modules/core/src/fortran/print.c # scilab/modules/core/src/fortran/prntid.c # scilab/modules/core/src/fortran/prompt.c # scilab/modules/core/src/fortran/promptecho.c # scilab/modules/core/src/fortran/ptover.c # scilab/modules/core/src/fortran/ptrback.c # scilab/modules/core/src/fortran/putid.c # scilab/modules/core/src/fortran/ref2val.c # scilab/modules/core/src/fortran/savlod.c # scilab/modules/core/src/fortran/seteol.c # scilab/modules/core/src/fortran/setgetmode.c # scilab/modules/core/src/fortran/setippty.c # scilab/modules/core/src/fortran/setlnb.c # scilab/modules/core/src/fortran/showstack.c # scilab/modules/core/src/fortran/sigbas.c # scilab/modules/core/src/fortran/skpins.c # scilab/modules/core/src/fortran/stack.c # scilab/modules/core/src/fortran/stackc2i.c # scilab/modules/core/src/fortran/stackg.c # scilab/modules/core/src/fortran/stackgl.c # scilab/modules/core/src/fortran/stacki2d.c # scilab/modules/core/src/fortran/stackp.c # scilab/modules/core/src/fortran/stackr2d.c # scilab/modules/core/src/fortran/storeglobal.c # scilab/modules/core/src/fortran/termf.c # scilab/modules/core/src/fortran/tradsl.c # scilab/modules/core/src/fortran/typ2cod.c # scilab/modules/core/src/fortran/varfunptr.c # scilab/modules/core/src/fortran/whatln.c # scilab/modules/core/src/fortran/wmdsp.c # scilab/modules/core/src/fortran/xerbla.c # scilab/modules/data_structures/sci_gateway/fortran/sci_definedfields.c # scilab/modules/data_structures/sci_gateway/fortran/sci_getfield.c # scilab/modules/data_structures/sci_gateway/fortran/sci_list.c # scilab/modules/data_structures/sci_gateway/fortran/sci_lstcat.c # scilab/modules/data_structures/sci_gateway/fortran/sci_lstsize.c # scilab/modules/data_structures/sci_gateway/fortran/sci_setfield.c # scilab/modules/data_structures/src/fortran/extractfields.c # scilab/modules/data_structures/src/fortran/followpath.c # scilab/modules/data_structures/src/fortran/forcerhs.c # scilab/modules/data_structures/src/fortran/gratyp.c # scilab/modules/data_structures/src/fortran/insertfield.c # scilab/modules/data_structures/src/fortran/intl_e.c # scilab/modules/data_structures/src/fortran/intl_i.c # scilab/modules/data_structures/src/fortran/lsstyp.c # scilab/modules/data_structures/src/fortran/lstops.c # scilab/modules/data_structures/src/fortran/mlist.c # scilab/modules/data_structures/src/fortran/rattyp.c # scilab/modules/data_structures/src/fortran/udptr.c # scilab/modules/differential_equations/sci_gateway/fortran/Ex-bvode.c # scilab/modules/differential_equations/sci_gateway/fortran/Ex-dasrt.c # scilab/modules/differential_equations/sci_gateway/fortran/Ex-dassl.c # scilab/modules/differential_equations/sci_gateway/fortran/Ex-impl.c # scilab/modules/differential_equations/sci_gateway/fortran/Ex-int2d.c # scilab/modules/differential_equations/sci_gateway/fortran/Ex-int3d.c # scilab/modules/differential_equations/sci_gateway/fortran/Ex-intg.c # scilab/modules/differential_equations/sci_gateway/fortran/Ex-ode.c # scilab/modules/differential_equations/sci_gateway/fortran/Ex-odedc.c # scilab/modules/differential_equations/sci_gateway/fortran/badd.c # scilab/modules/differential_equations/sci_gateway/fortran/bbvode.c # scilab/modules/differential_equations/sci_gateway/fortran/bfeval.c # scilab/modules/differential_equations/sci_gateway/fortran/bint2d.c # scilab/modules/differential_equations/sci_gateway/fortran/bint3d.c # scilab/modules/differential_equations/sci_gateway/fortran/bintg.c # scilab/modules/differential_equations/sci_gateway/fortran/bj2.c # scilab/modules/differential_equations/sci_gateway/fortran/bjac.c # scilab/modules/differential_equations/sci_gateway/fortran/bjacd.c # scilab/modules/differential_equations/sci_gateway/fortran/bresd.c # scilab/modules/differential_equations/sci_gateway/fortran/bresid.c # scilab/modules/differential_equations/sci_gateway/fortran/bsurf.c # scilab/modules/differential_equations/sci_gateway/fortran/bsurfd.c # scilab/modules/differential_equations/sci_gateway/fortran/bydot.c # scilab/modules/differential_equations/sci_gateway/fortran/bydot2.c # scilab/modules/differential_equations/sci_gateway/fortran/int2d.c # scilab/modules/differential_equations/sci_gateway/fortran/int3d.c # scilab/modules/differential_equations/sci_gateway/fortran/intg.c # scilab/modules/differential_equations/sci_gateway/fortran/sci_bvode.c # scilab/modules/differential_equations/sci_gateway/fortran/sci_dasrt.c # scilab/modules/differential_equations/sci_gateway/fortran/sci_dassl.c # scilab/modules/differential_equations/sci_gateway/fortran/sci_feval.c # scilab/modules/differential_equations/sci_gateway/fortran/sci_impl.c # scilab/modules/differential_equations/sci_gateway/fortran/sci_ode.c # scilab/modules/differential_equations/sci_gateway/fortran/sci_odedc.c # scilab/modules/differential_equations/src/fortran/ainvg.c # scilab/modules/differential_equations/src/fortran/bcomp.c # scilab/modules/differential_equations/src/fortran/bnorm.c # scilab/modules/differential_equations/src/fortran/cfode.c # scilab/modules/differential_equations/src/fortran/colnew.c # scilab/modules/differential_equations/src/fortran/daux.c # scilab/modules/differential_equations/src/fortran/dcutet.c # scilab/modules/differential_equations/src/fortran/ddasrt.c # scilab/modules/differential_equations/src/fortran/ddassl.c # scilab/modules/differential_equations/src/fortran/dgbfa.c # scilab/modules/differential_equations/src/fortran/dgbsl.c # scilab/modules/differential_equations/src/fortran/dqag0.c # scilab/modules/differential_equations/src/fortran/dqags.c # scilab/modules/differential_equations/src/fortran/epsalg.c # scilab/modules/differential_equations/src/fortran/ewset.c # scilab/modules/differential_equations/src/fortran/fnorm.c # scilab/modules/differential_equations/src/fortran/greatr.c # scilab/modules/differential_equations/src/fortran/hpdel.c # scilab/modules/differential_equations/src/fortran/hpins.c # scilab/modules/differential_equations/src/fortran/intdy.c # scilab/modules/differential_equations/src/fortran/lcomp.c # scilab/modules/differential_equations/src/fortran/loren.c # scilab/modules/differential_equations/src/fortran/lsdisc.c # scilab/modules/differential_equations/src/fortran/lsoda.c # scilab/modules/differential_equations/src/fortran/lsodar.c # scilab/modules/differential_equations/src/fortran/lsode.c # scilab/modules/differential_equations/src/fortran/lsodi.c # scilab/modules/differential_equations/src/fortran/lsrgk.c # scilab/modules/differential_equations/src/fortran/odeint.c # scilab/modules/differential_equations/src/fortran/order.c # scilab/modules/differential_equations/src/fortran/prepj.c # scilab/modules/differential_equations/src/fortran/prepji.c # scilab/modules/differential_equations/src/fortran/prja.c # scilab/modules/differential_equations/src/fortran/quarul.c # scilab/modules/differential_equations/src/fortran/rchek.c # scilab/modules/differential_equations/src/fortran/rchek2.c # scilab/modules/differential_equations/src/fortran/rkf45.c # scilab/modules/differential_equations/src/fortran/rkqc.c # scilab/modules/differential_equations/src/fortran/rksimp.c # scilab/modules/differential_equations/src/fortran/roots.c # scilab/modules/differential_equations/src/fortran/roots2.c # scilab/modules/differential_equations/src/fortran/rscar1.c # scilab/modules/differential_equations/src/fortran/rscma1.c # scilab/modules/differential_equations/src/fortran/rscom1.c # scilab/modules/differential_equations/src/fortran/solsy.c # scilab/modules/differential_equations/src/fortran/stoda.c # scilab/modules/differential_equations/src/fortran/stode.c # scilab/modules/differential_equations/src/fortran/stodi.c # scilab/modules/differential_equations/src/fortran/svcar1.c # scilab/modules/differential_equations/src/fortran/svcma1.c # scilab/modules/differential_equations/src/fortran/svcom1.c # scilab/modules/differential_equations/src/fortran/twodq.c # scilab/modules/differential_equations/src/fortran/vmnorm.c # scilab/modules/differential_equations/src/fortran/vnorm.c # scilab/modules/differential_equations/src/fortran/writbufode.c # scilab/modules/differential_equations/src/fortran/xerrwv.c # scilab/modules/differential_equations/src/fortran/xsetf.c # scilab/modules/differential_equations/src/fortran/xsetun.c # scilab/modules/double/sci_gateway/fortran/matadd.c # scilab/modules/double/sci_gateway/fortran/matcc.c # scilab/modules/double/sci_gateway/fortran/matchsgn.c # scilab/modules/double/sci_gateway/fortran/matcmp.c # scilab/modules/double/sci_gateway/fortran/matext1.c # scilab/modules/double/sci_gateway/fortran/matext2.c # scilab/modules/double/sci_gateway/fortran/matins1.c # scilab/modules/double/sci_gateway/fortran/matins2.c # scilab/modules/double/sci_gateway/fortran/matldiv.c # scilab/modules/double/sci_gateway/fortran/matmult.c # scilab/modules/double/sci_gateway/fortran/matpow.c # scilab/modules/double/sci_gateway/fortran/matrc.c # scilab/modules/double/sci_gateway/fortran/matrdiv.c # scilab/modules/double/sci_gateway/fortran/matsubst.c # scilab/modules/double/sci_gateway/fortran/mattr.c # scilab/modules/double/sci_gateway/fortran/mattrc.c # scilab/modules/double/sci_gateway/fortran/matxpow.c # scilab/modules/double/sci_gateway/fortran/vecimpl.c # scilab/modules/double/sci_gateway/fortran/vecldiv.c # scilab/modules/double/sci_gateway/fortran/vecmul.c # scilab/modules/double/sci_gateway/fortran/vecrdiv.c # scilab/modules/dynamic_link/sci_gateway/fortran/sci_fort.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_abs.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_acos.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_asin.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_atan.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_ceil.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_chinesehat.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_clean.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_conj.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_cos.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_cumprod.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_cumsum.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_diag.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_dsearch.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_exp.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_expm.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_eye.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_floor.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_frexp.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_imag.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_imult.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_int.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_isequal.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_isreal.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_kron.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_log.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_log1p.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_matrix.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_maxi.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_nearfloat.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_number_properties.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_ones.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_prod.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_rand.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_real.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_round.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_sign.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_sin.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_size.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_sort.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_spones.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_sqrt.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_sum.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_tan.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_testmatrix.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_tril.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_triu.c # scilab/modules/elementary_functions/sci_gateway/fortran/sci_f_zeros.c # scilab/modules/elementary_functions/src/fortran/arcosh.c # scilab/modules/elementary_functions/src/fortran/bdiag.c # scilab/modules/elementary_functions/src/fortran/calerf.c # scilab/modules/elementary_functions/src/fortran/cbal.c # scilab/modules/elementary_functions/src/fortran/ccopy.c # scilab/modules/elementary_functions/src/fortran/cerr.c # scilab/modules/elementary_functions/src/fortran/coef.c # scilab/modules/elementary_functions/src/fortran/comqr3.c # scilab/modules/elementary_functions/src/fortran/corth.c # scilab/modules/elementary_functions/src/fortran/cortr.c # scilab/modules/elementary_functions/src/fortran/coshin.c # scilab/modules/elementary_functions/src/fortran/cupro.c # scilab/modules/elementary_functions/src/fortran/cuproi.c # scilab/modules/elementary_functions/src/fortran/cusum.c # scilab/modules/elementary_functions/src/fortran/d1mach.c # scilab/modules/elementary_functions/src/fortran/dad.c # scilab/modules/elementary_functions/src/fortran/dadd.c # scilab/modules/elementary_functions/src/fortran/dbesig.c # scilab/modules/elementary_functions/src/fortran/dbesjg.c # scilab/modules/elementary_functions/src/fortran/dbeskg.c # scilab/modules/elementary_functions/src/fortran/dbesyg.c # scilab/modules/elementary_functions/src/fortran/dclmat.c # scilab/modules/elementary_functions/src/fortran/ddif.c # scilab/modules/elementary_functions/src/fortran/ddpow.c # scilab/modules/elementary_functions/src/fortran/ddpow1.c # scilab/modules/elementary_functions/src/fortran/ddpowe.c # scilab/modules/elementary_functions/src/fortran/ddrdiv.c # scilab/modules/elementary_functions/src/fortran/dexpm1.c # scilab/modules/elementary_functions/src/fortran/dipow.c # scilab/modules/elementary_functions/src/fortran/dipowe.c # scilab/modules/elementary_functions/src/fortran/dlblks.c # scilab/modules/elementary_functions/src/fortran/dlgama.c # scilab/modules/elementary_functions/src/fortran/dmcopy.c # scilab/modules/elementary_functions/src/fortran/dmmul.c # scilab/modules/elementary_functions/src/fortran/dmmul1.c # scilab/modules/elementary_functions/src/fortran/dmprod.c # scilab/modules/elementary_functions/src/fortran/dmsum.c # scilab/modules/elementary_functions/src/fortran/drdiv.c # scilab/modules/elementary_functions/src/fortran/dsearch.c # scilab/modules/elementary_functions/src/fortran/dset.c # scilab/modules/elementary_functions/src/fortran/dsort.c # scilab/modules/elementary_functions/src/fortran/dsum.c # scilab/modules/elementary_functions/src/fortran/dtild.c # scilab/modules/elementary_functions/src/fortran/dvmul.c # scilab/modules/elementary_functions/src/fortran/dwdiv.c # scilab/modules/elementary_functions/src/fortran/dwpow.c # scilab/modules/elementary_functions/src/fortran/dwpow1.c # scilab/modules/elementary_functions/src/fortran/dwpowe.c # scilab/modules/elementary_functions/src/fortran/dwrdiv.c # scilab/modules/elementary_functions/src/fortran/eispack/hqror2.c # scilab/modules/elementary_functions/src/fortran/entier.c # scilab/modules/elementary_functions/src/fortran/exch.c # scilab/modules/elementary_functions/src/fortran/franck.c # scilab/modules/elementary_functions/src/fortran/gdcp2i.c # scilab/modules/elementary_functions/src/fortran/getdimfromvar.c # scilab/modules/elementary_functions/src/fortran/getorient.c # scilab/modules/elementary_functions/src/fortran/hilber.c # scilab/modules/elementary_functions/src/fortran/i1mach.c # scilab/modules/elementary_functions/src/fortran/imcopy.c # scilab/modules/elementary_functions/src/fortran/infinity.c # scilab/modules/elementary_functions/src/fortran/intp.c # scilab/modules/elementary_functions/src/fortran/iset.c # scilab/modules/elementary_functions/src/fortran/isort.c # scilab/modules/elementary_functions/src/fortran/isova0.c # scilab/modules/elementary_functions/src/fortran/isoval.c # scilab/modules/elementary_functions/src/fortran/ivimp.c # scilab/modules/elementary_functions/src/fortran/iwamax.c # scilab/modules/elementary_functions/src/fortran/kronc.c # scilab/modules/elementary_functions/src/fortran/kronr.c # scilab/modules/elementary_functions/src/fortran/linpack/dgefa.c # scilab/modules/elementary_functions/src/fortran/linpack/dgesl.c # scilab/modules/elementary_functions/src/fortran/linpack/icopy.c # scilab/modules/elementary_functions/src/fortran/linpack/pade.c # scilab/modules/elementary_functions/src/fortran/linpack/wcopy.c # scilab/modules/elementary_functions/src/fortran/linpack/wpade.c # scilab/modules/elementary_functions/src/fortran/lnblnk.c # scilab/modules/elementary_functions/src/fortran/magic.c # scilab/modules/elementary_functions/src/fortran/mtran.c # scilab/modules/elementary_functions/src/fortran/nearfloat.c # scilab/modules/elementary_functions/src/fortran/orthes.c # scilab/modules/elementary_functions/src/fortran/ortran.c # scilab/modules/elementary_functions/src/fortran/psi.c # scilab/modules/elementary_functions/src/fortran/pythag.c # scilab/modules/elementary_functions/src/fortran/rat.c # scilab/modules/elementary_functions/src/fortran/rcopy.c # scilab/modules/elementary_functions/src/fortran/rcsort.c # scilab/modules/elementary_functions/src/fortran/ribesl.c # scilab/modules/elementary_functions/src/fortran/rjbesl.c # scilab/modules/elementary_functions/src/fortran/rkbesl.c # scilab/modules/elementary_functions/src/fortran/round.c # scilab/modules/elementary_functions/src/fortran/rybesl.c # scilab/modules/elementary_functions/src/fortran/simple.c # scilab/modules/elementary_functions/src/fortran/slatec/balanc.c # scilab/modules/elementary_functions/src/fortran/slatec/d9b0mp.c # scilab/modules/elementary_functions/src/fortran/slatec/d9b1mp.c # scilab/modules/elementary_functions/src/fortran/slatec/d9knus.c # scilab/modules/elementary_functions/src/fortran/slatec/d9lgmc.c # scilab/modules/elementary_functions/src/fortran/slatec/dasyik.c # scilab/modules/elementary_functions/src/fortran/slatec/dasyjy.c # scilab/modules/elementary_functions/src/fortran/slatec/dbdiff.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesi.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesi0.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesi1.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesj.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesj0.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesj1.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesk.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesk0.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesk1.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesks.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesy.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesy0.c # scilab/modules/elementary_functions/src/fortran/slatec/dbesy1.c # scilab/modules/elementary_functions/src/fortran/slatec/dbkias.c # scilab/modules/elementary_functions/src/fortran/slatec/dbkisr.c # scilab/modules/elementary_functions/src/fortran/slatec/dbsi0e.c # scilab/modules/elementary_functions/src/fortran/slatec/dbsi1e.c # scilab/modules/elementary_functions/src/fortran/slatec/dbsk0e.c # scilab/modules/elementary_functions/src/fortran/slatec/dbsk1e.c # scilab/modules/elementary_functions/src/fortran/slatec/dbskes.c # scilab/modules/elementary_functions/src/fortran/slatec/dbskin.c # scilab/modules/elementary_functions/src/fortran/slatec/dbsknu.c # scilab/modules/elementary_functions/src/fortran/slatec/dbsynu.c # scilab/modules/elementary_functions/src/fortran/slatec/dcsevl.c # scilab/modules/elementary_functions/src/fortran/slatec/dexint.c # scilab/modules/elementary_functions/src/fortran/slatec/dgamlm.c # scilab/modules/elementary_functions/src/fortran/slatec/dgamln.c # scilab/modules/elementary_functions/src/fortran/slatec/dgamma.c # scilab/modules/elementary_functions/src/fortran/slatec/dgamrn.c # scilab/modules/elementary_functions/src/fortran/slatec/dhkseq.c # scilab/modules/elementary_functions/src/fortran/slatec/djairy.c # scilab/modules/elementary_functions/src/fortran/slatec/dlngam.c # scilab/modules/elementary_functions/src/fortran/slatec/dpsixn.c # scilab/modules/elementary_functions/src/fortran/slatec/dtensbs.c # scilab/modules/elementary_functions/src/fortran/slatec/dxlegf.c # scilab/modules/elementary_functions/src/fortran/slatec/dyairy.c # scilab/modules/elementary_functions/src/fortran/slatec/fdump.c # scilab/modules/elementary_functions/src/fortran/slatec/gamma.c # scilab/modules/elementary_functions/src/fortran/slatec/initds.c # scilab/modules/elementary_functions/src/fortran/slatec/j4save.c # scilab/modules/elementary_functions/src/fortran/slatec/pchim.c # scilab/modules/elementary_functions/src/fortran/slatec/xercnt.c # scilab/modules/elementary_functions/src/fortran/slatec/xermsg.c # scilab/modules/elementary_functions/src/fortran/slatec/xerprn.c # scilab/modules/elementary_functions/src/fortran/slatec/xersve.c # scilab/modules/elementary_functions/src/fortran/slatec/xgetua.c # scilab/modules/elementary_functions/src/fortran/slatec/zabs.c # scilab/modules/elementary_functions/src/fortran/slatec/zacai.c # scilab/modules/elementary_functions/src/fortran/slatec/zacon.c # scilab/modules/elementary_functions/src/fortran/slatec/zairy.c # scilab/modules/elementary_functions/src/fortran/slatec/zasyi.c # scilab/modules/elementary_functions/src/fortran/slatec/zbesh.c # scilab/modules/elementary_functions/src/fortran/slatec/zbesi.c # scilab/modules/elementary_functions/src/fortran/slatec/zbesj.c # scilab/modules/elementary_functions/src/fortran/slatec/zbesk.c # scilab/modules/elementary_functions/src/fortran/slatec/zbesy.c # scilab/modules/elementary_functions/src/fortran/slatec/zbinu.c # scilab/modules/elementary_functions/src/fortran/slatec/zbknu.c # scilab/modules/elementary_functions/src/fortran/slatec/zbuni.c # scilab/modules/elementary_functions/src/fortran/slatec/zbunk.c # scilab/modules/elementary_functions/src/fortran/slatec/zdiv.c # scilab/modules/elementary_functions/src/fortran/slatec/zexp.c # scilab/modules/elementary_functions/src/fortran/slatec/zkscl.c # scilab/modules/elementary_functions/src/fortran/slatec/zlog.c # scilab/modules/elementary_functions/src/fortran/slatec/zmlri.c # scilab/modules/elementary_functions/src/fortran/slatec/zmlt.c # scilab/modules/elementary_functions/src/fortran/slatec/zrati.c # scilab/modules/elementary_functions/src/fortran/slatec/zs1s2.c # scilab/modules/elementary_functions/src/fortran/slatec/zseri.c # scilab/modules/elementary_functions/src/fortran/slatec/zshch.c # scilab/modules/elementary_functions/src/fortran/slatec/zsqrt.c # scilab/modules/elementary_functions/src/fortran/slatec/zuchk.c # scilab/modules/elementary_functions/src/fortran/slatec/zunhj.c # scilab/modules/elementary_functions/src/fortran/slatec/zuni1.c # scilab/modules/elementary_functions/src/fortran/slatec/zuni2.c # scilab/modules/elementary_functions/src/fortran/slatec/zunik.c # scilab/modules/elementary_functions/src/fortran/slatec/zunk1.c # scilab/modules/elementary_functions/src/fortran/slatec/zunk2.c # scilab/modules/elementary_functions/src/fortran/slatec/zuoik.c # scilab/modules/elementary_functions/src/fortran/slatec/zwrsk.c # scilab/modules/elementary_functions/src/fortran/split.c # scilab/modules/elementary_functions/src/fortran/urand.c # scilab/modules/elementary_functions/src/fortran/vpythag.c # scilab/modules/elementary_functions/src/fortran/wacos.c # scilab/modules/elementary_functions/src/fortran/wasin.c # scilab/modules/elementary_functions/src/fortran/wasum.c # scilab/modules/elementary_functions/src/fortran/watan.c # scilab/modules/elementary_functions/src/fortran/waxpy.c # scilab/modules/elementary_functions/src/fortran/wbdiag.c # scilab/modules/elementary_functions/src/fortran/wcerr.c # scilab/modules/elementary_functions/src/fortran/wclmat.c # scilab/modules/elementary_functions/src/fortran/wddiv.c # scilab/modules/elementary_functions/src/fortran/wdiv.c # scilab/modules/elementary_functions/src/fortran/wdotci.c # scilab/modules/elementary_functions/src/fortran/wdotcr.c # scilab/modules/elementary_functions/src/fortran/wdpow.c # scilab/modules/elementary_functions/src/fortran/wdpow1.c # scilab/modules/elementary_functions/src/fortran/wdpowe.c # scilab/modules/elementary_functions/src/fortran/wdrdiv.c # scilab/modules/elementary_functions/src/fortran/wexchn.c # scilab/modules/elementary_functions/src/fortran/wexpm1.c # scilab/modules/elementary_functions/src/fortran/wipow.c # scilab/modules/elementary_functions/src/fortran/wipowe.c # scilab/modules/elementary_functions/src/fortran/wlog.c # scilab/modules/elementary_functions/src/fortran/wmmul.c # scilab/modules/elementary_functions/src/fortran/wmprod.c # scilab/modules/elementary_functions/src/fortran/wmsum.c # scilab/modules/elementary_functions/src/fortran/wmul.c # scilab/modules/elementary_functions/src/fortran/wnrm2.c # scilab/modules/elementary_functions/src/fortran/wrscal.c # scilab/modules/elementary_functions/src/fortran/wscal.c # scilab/modules/elementary_functions/src/fortran/wshrsl.c # scilab/modules/elementary_functions/src/fortran/wsign.c # scilab/modules/elementary_functions/src/fortran/wsort.c # scilab/modules/elementary_functions/src/fortran/wsqrt.c # scilab/modules/elementary_functions/src/fortran/wswap.c # scilab/modules/elementary_functions/src/fortran/wtan.c # scilab/modules/elementary_functions/src/fortran/wvmul.c # scilab/modules/elementary_functions/src/fortran/wwdiv.c # scilab/modules/elementary_functions/src/fortran/wwpow.c # scilab/modules/elementary_functions/src/fortran/wwpow1.c # scilab/modules/elementary_functions/src/fortran/wwpowe.c # scilab/modules/elementary_functions/src/fortran/wwrdiv.c # scilab/modules/elementary_functions/src/fortran/zbeshg.c # scilab/modules/elementary_functions/src/fortran/zbesig.c # scilab/modules/elementary_functions/src/fortran/zbesjg.c # scilab/modules/elementary_functions/src/fortran/zbeskg.c # scilab/modules/elementary_functions/src/fortran/zbesyg.c # scilab/modules/helptools/.svn/ # scilab/modules/integer/sci_gateway/fortran/sci_double.c # scilab/modules/integer/sci_gateway/fortran/sci_i_abs.c # scilab/modules/integer/sci_gateway/fortran/sci_i_cumprod.c # scilab/modules/integer/sci_gateway/fortran/sci_i_cumsum.c # scilab/modules/integer/sci_gateway/fortran/sci_i_diag.c # scilab/modules/integer/sci_gateway/fortran/sci_i_matrix.c # scilab/modules/integer/sci_gateway/fortran/sci_i_max.c # scilab/modules/integer/sci_gateway/fortran/sci_i_maxi.c # scilab/modules/integer/sci_gateway/fortran/sci_i_min.c # scilab/modules/integer/sci_gateway/fortran/sci_i_mini.c # scilab/modules/integer/sci_gateway/fortran/sci_i_mput.c # scilab/modules/integer/sci_gateway/fortran/sci_i_p.c # scilab/modules/integer/sci_gateway/fortran/sci_i_prod.c # scilab/modules/integer/sci_gateway/fortran/sci_i_sum.c # scilab/modules/integer/sci_gateway/fortran/sci_i_tril.c # scilab/modules/integer/sci_gateway/fortran/sci_i_triu.c # scilab/modules/integer/sci_gateway/fortran/sci_iconvert.c # scilab/modules/integer/sci_gateway/fortran/sci_int16.c # scilab/modules/integer/sci_gateway/fortran/sci_int32.c # scilab/modules/integer/sci_gateway/fortran/sci_int8.c # scilab/modules/integer/sci_gateway/fortran/sci_inttype.c # scilab/modules/integer/sci_gateway/fortran/sci_mgeti.c # scilab/modules/integer/sci_gateway/fortran/sci_uint16.c # scilab/modules/integer/sci_gateway/fortran/sci_uint32.c # scilab/modules/integer/sci_gateway/fortran/sci_uint8.c # scilab/modules/integer/src/fortran/bitops.c # scilab/modules/integer/src/fortran/i_a_i.c # scilab/modules/integer/src/fortran/i_abs.c # scilab/modules/integer/src/fortran/i_b_i.c # scilab/modules/integer/src/fortran/i_c_i.c # scilab/modules/integer/src/fortran/i_convert.c # scilab/modules/integer/src/fortran/i_cumprod.c # scilab/modules/integer/src/fortran/i_cumsum.c # scilab/modules/integer/src/fortran/i_d_i.c # scilab/modules/integer/src/fortran/i_diag.c # scilab/modules/integer/src/fortran/i_e.c # scilab/modules/integer/src/fortran/i_f_i.c # scilab/modules/integer/src/fortran/i_i_i.c # scilab/modules/integer/src/fortran/i_kron.c # scilab/modules/integer/src/fortran/i_l_i.c # scilab/modules/integer/src/fortran/i_logic.c # scilab/modules/integer/src/fortran/i_m_i.c # scilab/modules/integer/src/fortran/i_matrix.c # scilab/modules/integer/src/fortran/i_maxi.c # scilab/modules/integer/src/fortran/i_mget.c # scilab/modules/integer/src/fortran/i_mini.c # scilab/modules/integer/src/fortran/i_mput.c # scilab/modules/integer/src/fortran/i_p.c # scilab/modules/integer/src/fortran/i_prod.c # scilab/modules/integer/src/fortran/i_q_i.c # scilab/modules/integer/src/fortran/i_r_i.c # scilab/modules/integer/src/fortran/i_s_i.c # scilab/modules/integer/src/fortran/i_sum.c # scilab/modules/integer/src/fortran/i_t.c # scilab/modules/integer/src/fortran/i_tril.c # scilab/modules/integer/src/fortran/i_triu.c # scilab/modules/integer/src/fortran/i_x_i.c # scilab/modules/integer/src/fortran/intinttype.c # scilab/modules/integer/src/fortran/intops.c # scilab/modules/integer/src/fortran/memused.c # scilab/modules/integer/src/fortran/stack_convert.c # scilab/modules/integer/src/fortran/unarybit.c # scilab/modules/integer/src/fortran/uppertype.c # scilab/modules/interpolation/src/fortran/cshep2d.c # scilab/modules/interpolation/src/fortran/dspfit.c # scilab/modules/interpolation/src/fortran/somespline.c # scilab/modules/io/sci_gateway/fortran/intdeff.c # scilab/modules/io/sci_gateway/fortran/intdiary.c # scilab/modules/io/sci_gateway/fortran/intdisp.c # scilab/modules/io/sci_gateway/fortran/intexec.c # scilab/modules/io/sci_gateway/fortran/intexecstr.c # scilab/modules/io/sci_gateway/fortran/intfile.c # scilab/modules/io/sci_gateway/fortran/intgetenv.c # scilab/modules/io/sci_gateway/fortran/intgetf.c # scilab/modules/io/sci_gateway/fortran/intlib.c # scilab/modules/io/sci_gateway/fortran/intmgetl.c # scilab/modules/io/sci_gateway/fortran/intprint.c # scilab/modules/io/sci_gateway/fortran/intrat.c # scilab/modules/io/sci_gateway/fortran/intread.c # scilab/modules/io/sci_gateway/fortran/intread4b.c # scilab/modules/io/sci_gateway/fortran/intreadb.c # scilab/modules/io/sci_gateway/fortran/intwritb.c # scilab/modules/io/sci_gateway/fortran/intwrite.c # scilab/modules/io/sci_gateway/fortran/intwrite4b.c # scilab/modules/io/sci_gateway/fortran/oldloadsave.c # scilab/modules/io/src/fortran/newsave.c # scilab/modules/io/src/fortran/v2cunit.c # scilab/modules/io/src/fortran/v2unit.c # scilab/modules/io/src/fortran/writebuf.c # scilab/modules/linear_algebra/sci_gateway/fortran/bschur.c # scilab/modules/linear_algebra/src/fortran/DGELSY1.c # scilab/modules/linear_algebra/src/fortran/complexify.c # scilab/modules/linear_algebra/src/fortran/doldqr.c # scilab/modules/linear_algebra/src/fortran/intddet.c # scilab/modules/linear_algebra/src/fortran/intdgebal.c # scilab/modules/linear_algebra/src/fortran/intdgecon.c # scilab/modules/linear_algebra/src/fortran/intdgees0.c # scilab/modules/linear_algebra/src/fortran/intdgees1.c # scilab/modules/linear_algebra/src/fortran/intdgeev.c # scilab/modules/linear_algebra/src/fortran/intdgehrd.c # scilab/modules/linear_algebra/src/fortran/intdgelsy.c # scilab/modules/linear_algebra/src/fortran/intdgeqpf3.c # scilab/modules/linear_algebra/src/fortran/intdgeqpf4.c # scilab/modules/linear_algebra/src/fortran/intdgesv3.c # scilab/modules/linear_algebra/src/fortran/intdgesv4.c # scilab/modules/linear_algebra/src/fortran/intdgesvd1.c # scilab/modules/linear_algebra/src/fortran/intdgesvd2.c # scilab/modules/linear_algebra/src/fortran/intdgetrf.c # scilab/modules/linear_algebra/src/fortran/intdgetri.c # scilab/modules/linear_algebra/src/fortran/intdggbal.c # scilab/modules/linear_algebra/src/fortran/intdgges.c # scilab/modules/linear_algebra/src/fortran/intdggev.c # scilab/modules/linear_algebra/src/fortran/intdoldsvd.c # scilab/modules/linear_algebra/src/fortran/intdpotrf.c # scilab/modules/linear_algebra/src/fortran/intdsyev.c # scilab/modules/linear_algebra/src/fortran/intfschur.c # scilab/modules/linear_algebra/src/fortran/intgschur.c # scilab/modules/linear_algebra/src/fortran/intogschur.c # scilab/modules/linear_algebra/src/fortran/intoschur.c # scilab/modules/linear_algebra/src/fortran/intozgschur.c # scilab/modules/linear_algebra/src/fortran/intzdet.c # scilab/modules/linear_algebra/src/fortran/intzfschur.c # scilab/modules/linear_algebra/src/fortran/intzgebal.c # scilab/modules/linear_algebra/src/fortran/intzgecon.c # scilab/modules/linear_algebra/src/fortran/intzgees0.c # scilab/modules/linear_algebra/src/fortran/intzgees1.c # scilab/modules/linear_algebra/src/fortran/intzgeev.c # scilab/modules/linear_algebra/src/fortran/intzgehrd.c # scilab/modules/linear_algebra/src/fortran/intzgelsy.c # scilab/modules/linear_algebra/src/fortran/intzgeqpf3.c # scilab/modules/linear_algebra/src/fortran/intzgeqpf4.c # scilab/modules/linear_algebra/src/fortran/intzgesv3.c # scilab/modules/linear_algebra/src/fortran/intzgesv4.c # scilab/modules/linear_algebra/src/fortran/intzgesvd1.c # scilab/modules/linear_algebra/src/fortran/intzgesvd2.c # scilab/modules/linear_algebra/src/fortran/intzgetrf.c # scilab/modules/linear_algebra/src/fortran/intzgetri.c # scilab/modules/linear_algebra/src/fortran/intzggbal.c # scilab/modules/linear_algebra/src/fortran/intzgges.c # scilab/modules/linear_algebra/src/fortran/intzggev.c # scilab/modules/linear_algebra/src/fortran/intzgschur.c # scilab/modules/linear_algebra/src/fortran/intzheev.c # scilab/modules/linear_algebra/src/fortran/intzoldsvd.c # scilab/modules/linear_algebra/src/fortran/intzpotrf.c # scilab/modules/linear_algebra/src/fortran/intzschur.c # scilab/modules/linear_algebra/src/fortran/issymmetric.c # scilab/modules/linear_algebra/src/fortran/scischur.c # scilab/modules/linear_algebra/src/fortran/writebuf.c # scilab/modules/linear_algebra/src/fortran/zoldqr.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6bandred.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6bmatch.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6busack.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6cent.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6chcm.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6clique.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6clique1.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6compc.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6compfc.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6concom.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6deumesh.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6dfs.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6dfs2.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6diam.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6dijkst.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6dmtree.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6edge2st.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6findiso.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6flomax.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6floqua.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6ford.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6fordfulk.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6frang.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6hamil.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6hullcvex.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6johns.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6kilter.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6knapsk.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6loadg.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6lp2tad.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6lp2tau.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6mesh2b.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6meshmesh.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6ns2p.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6p2ns.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6pcchna.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6permuto.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6prevn2p.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6prevn2st.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6prfmatch.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6relax.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6saveg.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6sconcom.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6ta2lpd.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6ta2lpu.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6tconex.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6transc.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6umtree.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6umtree1.c # scilab/modules/metanet/sci_gateway/fortran/sci_m6visitor.c # scilab/modules/metanet/src/fortran/arbor.c # scilab/modules/metanet/src/fortran/bandred.c # scilab/modules/metanet/src/fortran/bmatch.c # scilab/modules/metanet/src/fortran/busack.c # scilab/modules/metanet/src/fortran/carete.c # scilab/modules/metanet/src/fortran/cent.c # scilab/modules/metanet/src/fortran/cfc.c # scilab/modules/metanet/src/fortran/chcm.c # scilab/modules/metanet/src/fortran/clique.c # scilab/modules/metanet/src/fortran/clique1.c # scilab/modules/metanet/src/fortran/compc.c # scilab/modules/metanet/src/fortran/compfc.c # scilab/modules/metanet/src/fortran/compmat.c # scilab/modules/metanet/src/fortran/deumesh.c # scilab/modules/metanet/src/fortran/dfs.c # scilab/modules/metanet/src/fortran/dfs1.c # scilab/modules/metanet/src/fortran/dfs2.c # scilab/modules/metanet/src/fortran/diam.c # scilab/modules/metanet/src/fortran/dijkst.c # scilab/modules/metanet/src/fortran/eclat.c # scilab/modules/metanet/src/fortran/flomax.c # scilab/modules/metanet/src/fortran/floqua.c # scilab/modules/metanet/src/fortran/ford.c # scilab/modules/metanet/src/fortran/fordfulk.c # scilab/modules/metanet/src/fortran/frang.c # scilab/modules/metanet/src/fortran/frmtrs.c # scilab/modules/metanet/src/fortran/ftrans.c # scilab/modules/metanet/src/fortran/getran.c # scilab/modules/metanet/src/fortran/hamil.c # scilab/modules/metanet/src/fortran/hullcvex.c # scilab/modules/metanet/src/fortran/johns.c # scilab/modules/metanet/src/fortran/kilter.c # scilab/modules/metanet/src/fortran/kiltq.c # scilab/modules/metanet/src/fortran/knapsk.c # scilab/modules/metanet/src/fortran/l2que.c # scilab/modules/metanet/src/fortran/match.c # scilab/modules/metanet/src/fortran/mesh2b.c # scilab/modules/metanet/src/fortran/meshmesh.c # scilab/modules/metanet/src/fortran/minty.c # scilab/modules/metanet/src/fortran/mintyq.c # scilab/modules/metanet/src/fortran/pcchna.c # scilab/modules/metanet/src/fortran/permuto.c # scilab/modules/metanet/src/fortran/prfmatch.c # scilab/modules/metanet/src/fortran/prim.c # scilab/modules/metanet/src/fortran/prim1.c # scilab/modules/metanet/src/fortran/relax.c # scilab/modules/metanet/src/fortran/seed.c # scilab/modules/metanet/src/fortran/tconex.c # scilab/modules/metanet/src/fortran/visitor.c # scilab/modules/optimization/sci_gateway/fortran/Ex-fsolve.c # scilab/modules/optimization/sci_gateway/fortran/Ex-lsqrsolve.c # scilab/modules/optimization/sci_gateway/fortran/Ex-optim.c # scilab/modules/optimization/sci_gateway/fortran/bjlsqrsolv.c # scilab/modules/optimization/sci_gateway/fortran/bjsolv.c # scilab/modules/optimization/sci_gateway/fortran/blsqrsolv.c # scilab/modules/optimization/sci_gateway/fortran/boptim.c # scilab/modules/optimization/sci_gateway/fortran/bsolv.c # scilab/modules/optimization/sci_gateway/fortran/intlsqrsolve.c # scilab/modules/optimization/sci_gateway/fortran/sci_f_fsolve.c # scilab/modules/optimization/sci_gateway/fortran/sci_f_optim.c # scilab/modules/optimization/sci_gateway/fortran/sci_f_semidef.c # scilab/modules/optimization/src/fortran/ajour.c # scilab/modules/optimization/src/fortran/bfgsd.c # scilab/modules/optimization/src/fortran/calbx.c # scilab/modules/optimization/src/fortran/calmaj.c # scilab/modules/optimization/src/fortran/ctcab.c # scilab/modules/optimization/src/fortran/ctonb.c # scilab/modules/optimization/src/fortran/dcube.c # scilab/modules/optimization/src/fortran/ddd2.c # scilab/modules/optimization/src/fortran/dpmpar.c # scilab/modules/optimization/src/fortran/dpofa.c # scilab/modules/optimization/src/fortran/fajc1.c # scilab/modules/optimization/src/fortran/fcomp1.c # scilab/modules/optimization/src/fortran/fcube.c # scilab/modules/optimization/src/fortran/ffinf1.c # scilab/modules/optimization/src/fortran/fmani1.c # scilab/modules/optimization/src/fortran/fmc11a.c # scilab/modules/optimization/src/fortran/fmc11b.c # scilab/modules/optimization/src/fortran/fmc11e.c # scilab/modules/optimization/src/fortran/fmc11z.c # scilab/modules/optimization/src/fortran/fmlag1.c # scilab/modules/optimization/src/fortran/fmulb1.c # scilab/modules/optimization/src/fortran/fmuls1.c # scilab/modules/optimization/src/fortran/fpq2.c # scilab/modules/optimization/src/fortran/fprf2.c # scilab/modules/optimization/src/fortran/frdf1.c # scilab/modules/optimization/src/fortran/fremf1.c # scilab/modules/optimization/src/fortran/fremf2.c # scilab/modules/optimization/src/fortran/fretc1.c # scilab/modules/optimization/src/fortran/fuclid.c # scilab/modules/optimization/src/fortran/gcbd.c # scilab/modules/optimization/src/fortran/gcp.c # scilab/modules/optimization/src/fortran/icscof.c # scilab/modules/optimization/src/fortran/icse.c # scilab/modules/optimization/src/fortran/icse0.c # scilab/modules/optimization/src/fortran/icse1.c # scilab/modules/optimization/src/fortran/icse2.c # scilab/modules/optimization/src/fortran/icsec2.c # scilab/modules/optimization/src/fortran/icsei.c # scilab/modules/optimization/src/fortran/majour.c # scilab/modules/optimization/src/fortran/majysa.c # scilab/modules/optimization/src/fortran/majz.c # scilab/modules/optimization/src/fortran/minpack/dogleg.c # scilab/modules/optimization/src/fortran/minpack/enorm.c # scilab/modules/optimization/src/fortran/minpack/fdjac1.c # scilab/modules/optimization/src/fortran/minpack/fdjac2.c # scilab/modules/optimization/src/fortran/minpack/hybrd.c # scilab/modules/optimization/src/fortran/minpack/hybrd1.c # scilab/modules/optimization/src/fortran/minpack/hybrj.c # scilab/modules/optimization/src/fortran/minpack/hybrj1.c # scilab/modules/optimization/src/fortran/minpack/lmder.c # scilab/modules/optimization/src/fortran/minpack/lmdif.c # scilab/modules/optimization/src/fortran/minpack/lmpar.c # scilab/modules/optimization/src/fortran/minpack/qform.c # scilab/modules/optimization/src/fortran/minpack/qrfac.c # scilab/modules/optimization/src/fortran/minpack/qrsolv.c # scilab/modules/optimization/src/fortran/minpack/r1mpyq.c # scilab/modules/optimization/src/fortran/minpack/r1updt.c # scilab/modules/optimization/src/fortran/n1fc1.c # scilab/modules/optimization/src/fortran/n1fc1a.c # scilab/modules/optimization/src/fortran/n1fc1o.c # scilab/modules/optimization/src/fortran/n1gc2.c # scilab/modules/optimization/src/fortran/n1gc2a.c # scilab/modules/optimization/src/fortran/n1gc2b.c # scilab/modules/optimization/src/fortran/n1qn1.c # scilab/modules/optimization/src/fortran/n1qn1a.c # scilab/modules/optimization/src/fortran/n1qn2.c # scilab/modules/optimization/src/fortran/n1qn2a.c # scilab/modules/optimization/src/fortran/n1qn3.c # scilab/modules/optimization/src/fortran/n1qn3a.c # scilab/modules/optimization/src/fortran/nlis0.c # scilab/modules/optimization/src/fortran/nlis2.c # scilab/modules/optimization/src/fortran/proj.c # scilab/modules/optimization/src/fortran/ql0001.c # scilab/modules/optimization/src/fortran/qnbd.c # scilab/modules/optimization/src/fortran/qpgen1sci.c # scilab/modules/optimization/src/fortran/qpgen2.c # scilab/modules/optimization/src/fortran/rednor.c # scilab/modules/optimization/src/fortran/relvar.c # scilab/modules/optimization/src/fortran/rlbd.c # scilab/modules/optimization/src/fortran/satur.c # scilab/modules/optimization/src/fortran/shanph.c # scilab/modules/optimization/src/fortran/strang.c # scilab/modules/optimization/src/fortran/util.c # scilab/modules/optimization/src/fortran/writebuf.c # scilab/modules/optimization/src/fortran/zgcbd.c # scilab/modules/optimization/src/fortran/zqnbd.c # scilab/modules/polynomials/sci_gateway/fortran/polops.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_bezout.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_coeff.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_degree.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_diag.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_div.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_pclean.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_poly.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_prod.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_psimp.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_roots.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_rsimp.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_sfact.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_simp.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_simpmd.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_sum.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_triu_tril.c # scilab/modules/polynomials/sci_gateway/fortran/sci_f_varn.c # scilab/modules/polynomials/src/fortran/bezout.c # scilab/modules/polynomials/src/fortran/bezstp.c # scilab/modules/polynomials/src/fortran/blktit.c # scilab/modules/polynomials/src/fortran/ddmpev.c # scilab/modules/polynomials/src/fortran/dimin.c # scilab/modules/polynomials/src/fortran/dmp2pm.c # scilab/modules/polynomials/src/fortran/dmpad.c # scilab/modules/polynomials/src/fortran/dmpadj.c # scilab/modules/polynomials/src/fortran/dmpcle.c # scilab/modules/polynomials/src/fortran/dmpcnc.c # scilab/modules/polynomials/src/fortran/dmpdsp.c # scilab/modules/polynomials/src/fortran/dmpext.c # scilab/modules/polynomials/src/fortran/dmpins.c # scilab/modules/polynomials/src/fortran/dmpmu.c # scilab/modules/polynomials/src/fortran/dmptld.c # scilab/modules/polynomials/src/fortran/dmptra.c # scilab/modules/polynomials/src/fortran/dmrdsp.c # scilab/modules/polynomials/src/fortran/dpmul.c # scilab/modules/polynomials/src/fortran/dpmul1.c # scilab/modules/polynomials/src/fortran/dpodiv.c # scilab/modules/polynomials/src/fortran/dprxc.c # scilab/modules/polynomials/src/fortran/dpsimp.c # scilab/modules/polynomials/src/fortran/dwmpmu.c # scilab/modules/polynomials/src/fortran/eispack/balbak.c # scilab/modules/polynomials/src/fortran/fmt.c # scilab/modules/polynomials/src/fortran/fxshfr.c # scilab/modules/polynomials/src/fortran/horner.c # scilab/modules/polynomials/src/fortran/idegre.c # scilab/modules/polynomials/src/fortran/impcnc.c # scilab/modules/polynomials/src/fortran/impext.c # scilab/modules/polynomials/src/fortran/impins.c # scilab/modules/polynomials/src/fortran/imptra.c # scilab/modules/polynomials/src/fortran/matra.c # scilab/modules/polynomials/src/fortran/mpdegr.c # scilab/modules/polynomials/src/fortran/mpdiag.c # scilab/modules/polynomials/src/fortran/mpinsp.c # scilab/modules/polynomials/src/fortran/mptri.c # scilab/modules/polynomials/src/fortran/newest.c # scilab/modules/polynomials/src/fortran/nextk.c # scilab/modules/polynomials/src/fortran/quad.c # scilab/modules/polynomials/src/fortran/quadit.c # scilab/modules/polynomials/src/fortran/quadsd.c # scilab/modules/polynomials/src/fortran/realit.c # scilab/modules/polynomials/src/fortran/recbez.c # scilab/modules/polynomials/src/fortran/residu.c # scilab/modules/polynomials/src/fortran/rpoly.c # scilab/modules/polynomials/src/fortran/sfact1.c # scilab/modules/polynomials/src/fortran/sfact2.c # scilab/modules/polynomials/src/fortran/wdmpad.c # scilab/modules/polynomials/src/fortran/wdmpmu.c # scilab/modules/polynomials/src/fortran/wmpad.c # scilab/modules/polynomials/src/fortran/wmpadj.c # scilab/modules/polynomials/src/fortran/wmpcle.c # scilab/modules/polynomials/src/fortran/wmpcnc.c # scilab/modules/polynomials/src/fortran/wmpins.c # scilab/modules/polynomials/src/fortran/wmpmu.c # scilab/modules/polynomials/src/fortran/wmptld.c # scilab/modules/polynomials/src/fortran/wmptra.c # scilab/modules/polynomials/src/fortran/wpmul.c # scilab/modules/polynomials/src/fortran/wpmul1.c # scilab/modules/polynomials/src/fortran/wpodiv.c # scilab/modules/polynomials/src/fortran/wprxc.c # scilab/modules/pvm/.svn/ # scilab/modules/pvm/src/.svn/ # scilab/modules/randlib/src/fortran/genchi.c # scilab/modules/randlib/src/fortran/genexp.c # scilab/modules/randlib/src/fortran/genf.c # scilab/modules/randlib/src/fortran/gengam.c # scilab/modules/randlib/src/fortran/genmn.c # scilab/modules/randlib/src/fortran/genmul.c # scilab/modules/randlib/src/fortran/gennch.c # scilab/modules/randlib/src/fortran/gennf.c # scilab/modules/randlib/src/fortran/gennor.c # scilab/modules/randlib/src/fortran/genprm.c # scilab/modules/randlib/src/fortran/genunf.c # scilab/modules/randlib/src/fortran/ignnbn.c # scilab/modules/randlib/src/fortran/lennob.c # scilab/modules/randlib/src/fortran/phrtsd.c # scilab/modules/randlib/src/fortran/sdot.c # scilab/modules/randlib/src/fortran/setgmn.c # scilab/modules/randlib/src/fortran/snorm.c # scilab/modules/randlib/src/fortran/spofa.c # scilab/modules/scicos/sci_gateway/fortran/sci_ctree.c # scilab/modules/scicos/sci_gateway/fortran/sci_curblock.c # scilab/modules/scicos/sci_gateway/fortran/sci_debug_count.c # scilab/modules/scicos/sci_gateway/fortran/sci_getblocklabel.c # scilab/modules/scicos/sci_gateway/fortran/sci_scicos_debug.c # scilab/modules/scicos/sci_gateway/fortran/sci_tree2.c # scilab/modules/scicos/sci_gateway/fortran/sci_tree3.c # scilab/modules/scicos/sci_gateway/fortran/sci_tree4.c # scilab/modules/scicos/sci_gateway/fortran/sci_var2vec.c # scilab/modules/scicos/sci_gateway/fortran/sci_vec2var.c # scilab/modules/scicos/src/fortran/coselm.c # scilab/modules/scicos/src/fortran/ftree2.c # scilab/modules/scicos/src/fortran/ftree3.c # scilab/modules/scicos/src/fortran/ftree4.c # scilab/modules/scicos/src/fortran/list2vars.c # scilab/modules/scicos/src/fortran/scierr.c # scilab/modules/scicos/src/fortran/scifunc.c # scilab/modules/scicos/src/fortran/scitod.c # scilab/modules/scicos/src/fortran/scitoi.c # scilab/modules/scicos/src/fortran/scitovv.c # scilab/modules/scicos/src/fortran/sctree.c # scilab/modules/scicos/src/fortran/skipvars.c # scilab/modules/scicos/src/fortran/vvtosci.c # scilab/modules/scicos_blocks/src/fortran/affich.c # scilab/modules/scicos_blocks/src/fortran/affich2.c # scilab/modules/scicos_blocks/src/fortran/constraint.c # scilab/modules/scicos_blocks/src/fortran/csslti.c # scilab/modules/scicos_blocks/src/fortran/cstblk.c # scilab/modules/scicos_blocks/src/fortran/delay.c # scilab/modules/scicos_blocks/src/fortran/delayv.c # scilab/modules/scicos_blocks/src/fortran/demux.c # scilab/modules/scicos_blocks/src/fortran/diffblk.c # scilab/modules/scicos_blocks/src/fortran/dlradp.c # scilab/modules/scicos_blocks/src/fortran/dollar.c # scilab/modules/scicos_blocks/src/fortran/dsslti.c # scilab/modules/scicos_blocks/src/fortran/eselect.c # scilab/modules/scicos_blocks/src/fortran/evtdly.c # scilab/modules/scicos_blocks/src/fortran/expblk.c # scilab/modules/scicos_blocks/src/fortran/forblk.c # scilab/modules/scicos_blocks/src/fortran/fsv.c # scilab/modules/scicos_blocks/src/fortran/gensin.c # scilab/modules/scicos_blocks/src/fortran/gensqr.c # scilab/modules/scicos_blocks/src/fortran/hltblk.c # scilab/modules/scicos_blocks/src/fortran/ifthel.c # scilab/modules/scicos_blocks/src/fortran/integr.c # scilab/modules/scicos_blocks/src/fortran/intplt.c # scilab/modules/scicos_blocks/src/fortran/intpol.c # scilab/modules/scicos_blocks/src/fortran/intrp2.c # scilab/modules/scicos_blocks/src/fortran/intrpl.c # scilab/modules/scicos_blocks/src/fortran/invblk.c # scilab/modules/scicos_blocks/src/fortran/iocopy.c # scilab/modules/scicos_blocks/src/fortran/logblk.c # scilab/modules/scicos_blocks/src/fortran/lookup.c # scilab/modules/scicos_blocks/src/fortran/lsplit.c # scilab/modules/scicos_blocks/src/fortran/lusat.c # scilab/modules/scicos_blocks/src/fortran/maxblk.c # scilab/modules/scicos_blocks/src/fortran/memo.c # scilab/modules/scicos_blocks/src/fortran/mfclck.c # scilab/modules/scicos_blocks/src/fortran/minblk.c # scilab/modules/scicos_blocks/src/fortran/mux.c # scilab/modules/scicos_blocks/src/fortran/pload.c # scilab/modules/scicos_blocks/src/fortran/powblk.c # scilab/modules/scicos_blocks/src/fortran/qzcel.c # scilab/modules/scicos_blocks/src/fortran/qzflr.c # scilab/modules/scicos_blocks/src/fortran/qzrnd.c # scilab/modules/scicos_blocks/src/fortran/qztrn.c # scilab/modules/scicos_blocks/src/fortran/readf.c # scilab/modules/scicos_blocks/src/fortran/rndblk.c # scilab/modules/scicos_blocks/src/fortran/samphold.c # scilab/modules/scicos_blocks/src/fortran/sawtth.c # scilab/modules/scicos_blocks/src/fortran/sciblk.c # scilab/modules/scicos_blocks/src/fortran/selblk.c # scilab/modules/scicos_blocks/src/fortran/sinblk.c # scilab/modules/scicos_blocks/src/fortran/sqrblk.c # scilab/modules/scicos_blocks/src/fortran/sum2.c # scilab/modules/scicos_blocks/src/fortran/sum3.c # scilab/modules/scicos_blocks/src/fortran/tanblk.c # scilab/modules/scicos_blocks/src/fortran/tcslti.c # scilab/modules/scicos_blocks/src/fortran/tcsltj.c # scilab/modules/scicos_blocks/src/fortran/timblk.c # scilab/modules/scicos_blocks/src/fortran/trash.c # scilab/modules/scicos_blocks/src/fortran/writef.c # scilab/modules/scicos_blocks/src/fortran/zcross.c # scilab/modules/signal_processing/sci_gateway/fortran/Ex-corr.c # scilab/modules/signal_processing/sci_gateway/fortran/bgetx.c # scilab/modules/signal_processing/sci_gateway/fortran/bgety.c # scilab/modules/signal_processing/sci_gateway/fortran/sci_amell.c # scilab/modules/signal_processing/sci_gateway/fortran/sci_corr.c # scilab/modules/signal_processing/sci_gateway/fortran/sci_delip.c # scilab/modules/signal_processing/sci_gateway/fortran/sci_fft.c # scilab/modules/signal_processing/sci_gateway/fortran/sci_fiir.c # scilab/modules/signal_processing/sci_gateway/fortran/sci_remez.c # scilab/modules/signal_processing/sci_gateway/fortran/sci_rpem.c # scilab/modules/signal_processing/sci_gateway/fortran/sci_syredi.c # scilab/modules/signal_processing/src/fortran/amell.c # scilab/modules/signal_processing/src/fortran/belan.c # scilab/modules/signal_processing/src/fortran/bldenz.c # scilab/modules/signal_processing/src/fortran/blnumz.c # scilab/modules/signal_processing/src/fortran/bounn.c # scilab/modules/signal_processing/src/fortran/chebc.c # scilab/modules/signal_processing/src/fortran/cheby.c # scilab/modules/signal_processing/src/fortran/cmpse2.c # scilab/modules/signal_processing/src/fortran/cmpse3.c # scilab/modules/signal_processing/src/fortran/coeft.c # scilab/modules/signal_processing/src/fortran/compel.c # scilab/modules/signal_processing/src/fortran/degree.c # scilab/modules/signal_processing/src/fortran/deli1.c # scilab/modules/signal_processing/src/fortran/deli11.c # scilab/modules/signal_processing/src/fortran/deli2.c # scilab/modules/signal_processing/src/fortran/delip.c # scilab/modules/signal_processing/src/fortran/dellk.c # scilab/modules/signal_processing/src/fortran/desi00.c # scilab/modules/signal_processing/src/fortran/desi01.c # scilab/modules/signal_processing/src/fortran/desi11.c # scilab/modules/signal_processing/src/fortran/desi12.c # scilab/modules/signal_processing/src/fortran/desi14.c # scilab/modules/signal_processing/src/fortran/desi21.c # scilab/modules/signal_processing/src/fortran/desi22.c # scilab/modules/signal_processing/src/fortran/desi24.c # scilab/modules/signal_processing/src/fortran/desia.c # scilab/modules/signal_processing/src/fortran/desib.c # scilab/modules/signal_processing/src/fortran/dfft2.c # scilab/modules/signal_processing/src/fortran/dfftbi.c # scilab/modules/signal_processing/src/fortran/dfftmx.c # scilab/modules/signal_processing/src/fortran/dgee01.c # scilab/modules/signal_processing/src/fortran/dpspln.c # scilab/modules/signal_processing/src/fortran/dsn2.c # scilab/modules/signal_processing/src/fortran/dspln.c # scilab/modules/signal_processing/src/fortran/dsqrtc.c # scilab/modules/signal_processing/src/fortran/fft842.c # scilab/modules/signal_processing/src/fortran/filbut.c # scilab/modules/signal_processing/src/fortran/freque.c # scilab/modules/signal_processing/src/fortran/gee.c # scilab/modules/signal_processing/src/fortran/hammin.c # scilab/modules/signal_processing/src/fortran/ino.c # scilab/modules/signal_processing/src/fortran/kaiser.c # scilab/modules/signal_processing/src/fortran/nstabl.c # scilab/modules/signal_processing/src/fortran/ouch.c # scilab/modules/signal_processing/src/fortran/parcha.c # scilab/modules/signal_processing/src/fortran/poles.c # scilab/modules/signal_processing/src/fortran/r2tx.c # scilab/modules/signal_processing/src/fortran/r4tx.c # scilab/modules/signal_processing/src/fortran/r8tx.c # scilab/modules/signal_processing/src/fortran/remez.c # scilab/modules/signal_processing/src/fortran/romeg.c # scilab/modules/signal_processing/src/fortran/rpem.c # scilab/modules/signal_processing/src/fortran/sci_ffir.c # scilab/modules/signal_processing/src/fortran/sn.c # scilab/modules/signal_processing/src/fortran/snell.c # scilab/modules/signal_processing/src/fortran/syredi.c # scilab/modules/signal_processing/src/fortran/tg02ad.c # scilab/modules/signal_processing/src/fortran/tranpo.c # scilab/modules/signal_processing/src/fortran/transn.c # scilab/modules/signal_processing/src/fortran/tranze.c # scilab/modules/signal_processing/src/fortran/trbipo.c # scilab/modules/signal_processing/src/fortran/trbize.c # scilab/modules/signal_processing/src/fortran/tscccf.c # scilab/modules/sparse/sci_gateway/fortran/sci_bfinit.c # scilab/modules/sparse/sci_gateway/fortran/sci_blkfc1i.c # scilab/modules/sparse/sci_gateway/fortran/sci_blkslvi.c # scilab/modules/sparse/sci_gateway/fortran/sci_fadj2sp.c # scilab/modules/sparse/sci_gateway/fortran/sci_full.c # scilab/modules/sparse/sci_gateway/fortran/sci_inpnvi.c # scilab/modules/sparse/sci_gateway/fortran/sci_ludel.c # scilab/modules/sparse/sci_gateway/fortran/sci_lufact.c # scilab/modules/sparse/sci_gateway/fortran/sci_luget.c # scilab/modules/sparse/sci_gateway/fortran/sci_lusolve.c # scilab/modules/sparse/sci_gateway/fortran/sci_nnz.c # scilab/modules/sparse/sci_gateway/fortran/sci_ordmmd.c # scilab/modules/sparse/sci_gateway/fortran/sci_sfinit.c # scilab/modules/sparse/sci_gateway/fortran/sci_sparse.c # scilab/modules/sparse/sci_gateway/fortran/sci_spchol.c # scilab/modules/sparse/sci_gateway/fortran/sci_spclean.c # scilab/modules/sparse/sci_gateway/fortran/sci_spcompa.c # scilab/modules/sparse/sci_gateway/fortran/sci_spget.c # scilab/modules/sparse/sci_gateway/fortran/sci_spmatrix.c # scilab/modules/sparse/sci_gateway/fortran/sci_spmax.c # scilab/modules/sparse/sci_gateway/fortran/sci_symfcti.c # scilab/modules/sparse/sci_gateway/fortran/spops.c # scilab/modules/sparse/src/fortran/blkfc1.c # scilab/modules/sparse/src/fortran/blkfct.c # scilab/modules/sparse/src/fortran/blkslv.c # scilab/modules/sparse/src/fortran/dcompa.c # scilab/modules/sparse/src/fortran/dful2sp.c # scilab/modules/sparse/src/fortran/dij2sp.c # scilab/modules/sparse/src/fortran/dperm.c # scilab/modules/sparse/src/fortran/dsmsp.c # scilab/modules/sparse/src/fortran/dsosp.c # scilab/modules/sparse/src/fortran/dspasp.c # scilab/modules/sparse/src/fortran/dspcle.c # scilab/modules/sparse/src/fortran/dspcsp.c # scilab/modules/sparse/src/fortran/dspdsp.c # scilab/modules/sparse/src/fortran/dspe2.c # scilab/modules/sparse/src/fortran/dspful.c # scilab/modules/sparse/src/fortran/dspis.c # scilab/modules/sparse/src/fortran/dspisp.c # scilab/modules/sparse/src/fortran/dspmat.c # scilab/modules/sparse/src/fortran/dspmax.c # scilab/modules/sparse/src/fortran/dspmin.c # scilab/modules/sparse/src/fortran/dspms.c # scilab/modules/sparse/src/fortran/dspmsp.c # scilab/modules/sparse/src/fortran/dspos.c # scilab/modules/sparse/src/fortran/dsposp.c # scilab/modules/sparse/src/fortran/dspssp.c # scilab/modules/sparse/src/fortran/dspt.c # scilab/modules/sparse/src/fortran/dspxs.c # scilab/modules/sparse/src/fortran/dspxsp.c # scilab/modules/sparse/src/fortran/findl.c # scilab/modules/sparse/src/fortran/inpnv.c # scilab/modules/sparse/src/fortran/intreadmps.c # scilab/modules/sparse/src/fortran/iperm.c # scilab/modules/sparse/src/fortran/isort1.c # scilab/modules/sparse/src/fortran/lcompa.c # scilab/modules/sparse/src/fortran/lful2sp.c # scilab/modules/sparse/src/fortran/lij2sp.c # scilab/modules/sparse/src/fortran/lsosp.c # scilab/modules/sparse/src/fortran/lspasp.c # scilab/modules/sparse/src/fortran/lspcsp.c # scilab/modules/sparse/src/fortran/lspe2.c # scilab/modules/sparse/src/fortran/lspful.c # scilab/modules/sparse/src/fortran/lspis.c # scilab/modules/sparse/src/fortran/lspisp.c # scilab/modules/sparse/src/fortran/lspmat.c # scilab/modules/sparse/src/fortran/lspops.c # scilab/modules/sparse/src/fortran/lspos.c # scilab/modules/sparse/src/fortran/lsposp.c # scilab/modules/sparse/src/fortran/lspt.c # scilab/modules/sparse/src/fortran/lspxsp.c # scilab/modules/sparse/src/fortran/mycmatptr.c # scilab/modules/sparse/src/fortran/ordmmd.c # scilab/modules/sparse/src/fortran/rdmps1.c # scilab/modules/sparse/src/fortran/rdmpsz.c # scilab/modules/sparse/src/fortran/sp2col.c # scilab/modules/sparse/src/fortran/spcho1.c # scilab/modules/sparse/src/fortran/spcho2.c # scilab/modules/sparse/src/fortran/spcompack.c # scilab/modules/sparse/src/fortran/spextr.c # scilab/modules/sparse/src/fortran/spextr1.c # scilab/modules/sparse/src/fortran/spif.c # scilab/modules/sparse/src/fortran/spif1b.c # scilab/modules/sparse/src/fortran/spifp.c # scilab/modules/sparse/src/fortran/spind.c # scilab/modules/sparse/src/fortran/spisp.c # scilab/modules/sparse/src/fortran/spord.c # scilab/modules/sparse/src/fortran/spreshape.c # scilab/modules/sparse/src/fortran/spsort.c # scilab/modules/sparse/src/fortran/spt.c # scilab/modules/sparse/src/fortran/sputil.c # scilab/modules/sparse/src/fortran/symfct.c # scilab/modules/sparse/src/fortran/sz2ptr.c # scilab/modules/sparse/src/fortran/wcompa.c # scilab/modules/sparse/src/fortran/wful2sp.c # scilab/modules/sparse/src/fortran/wij2sp.c # scilab/modules/sparse/src/fortran/wperm.c # scilab/modules/sparse/src/fortran/writebuf.c # scilab/modules/sparse/src/fortran/wsmsp.c # scilab/modules/sparse/src/fortran/wsosp.c # scilab/modules/sparse/src/fortran/wspasp.c # scilab/modules/sparse/src/fortran/wspcle.c # scilab/modules/sparse/src/fortran/wspcsp.c # scilab/modules/sparse/src/fortran/wspdsp.c # scilab/modules/sparse/src/fortran/wspe2.c # scilab/modules/sparse/src/fortran/wspful.c # scilab/modules/sparse/src/fortran/wspis.c # scilab/modules/sparse/src/fortran/wspisp.c # scilab/modules/sparse/src/fortran/wspmat.c # scilab/modules/sparse/src/fortran/wspms.c # scilab/modules/sparse/src/fortran/wspmsp.c # scilab/modules/sparse/src/fortran/wspos.c # scilab/modules/sparse/src/fortran/wsposp.c # scilab/modules/sparse/src/fortran/wspssp.c # scilab/modules/sparse/src/fortran/wspt.c # scilab/modules/sparse/src/fortran/wspxs.c # scilab/modules/sparse/src/fortran/wspxsp.c # scilab/modules/special_functions/sci_gateway/fortran/sci_f_calerf.c # scilab/modules/special_functions/sci_gateway/fortran/sci_f_dlgamma.c # scilab/modules/special_functions/sci_gateway/fortran/sci_f_gamma.c # scilab/modules/special_functions/sci_gateway/fortran/sci_f_lgamma.c # scilab/modules/special_functions/sci_gateway/fortran/sci_f_oldbesseli.c # scilab/modules/special_functions/sci_gateway/fortran/sci_f_oldbesselj.c # scilab/modules/special_functions/sci_gateway/fortran/sci_f_oldbesselk.c # scilab/modules/special_functions/sci_gateway/fortran/sci_f_oldbessely.c # scilab/modules/statistics/src/dcdflib/algdiv.c # scilab/modules/statistics/src/dcdflib/alngam.c # scilab/modules/statistics/src/dcdflib/alnrel.c # scilab/modules/statistics/src/dcdflib/apser.c # scilab/modules/statistics/src/dcdflib/basym.c # scilab/modules/statistics/src/dcdflib/bcorr.c # scilab/modules/statistics/src/dcdflib/betaln.c # scilab/modules/statistics/src/dcdflib/bfrac.c # scilab/modules/statistics/src/dcdflib/bgrat.c # scilab/modules/statistics/src/dcdflib/bpser.c # scilab/modules/statistics/src/dcdflib/bratio.c # scilab/modules/statistics/src/dcdflib/brcmp1.c # scilab/modules/statistics/src/dcdflib/brcomp.c # scilab/modules/statistics/src/dcdflib/bup.c # scilab/modules/statistics/src/dcdflib/cdfbet.c # scilab/modules/statistics/src/dcdflib/cdfbin.c # scilab/modules/statistics/src/dcdflib/cdfchi.c # scilab/modules/statistics/src/dcdflib/cdfchn.c # scilab/modules/statistics/src/dcdflib/cdff.c # scilab/modules/statistics/src/dcdflib/cdffnc.c # scilab/modules/statistics/src/dcdflib/cdfgam.c # scilab/modules/statistics/src/dcdflib/cdfnbn.c # scilab/modules/statistics/src/dcdflib/cdfnor.c # scilab/modules/statistics/src/dcdflib/cdfpoi.c # scilab/modules/statistics/src/dcdflib/cdft.c # scilab/modules/statistics/src/dcdflib/cumbet.c # scilab/modules/statistics/src/dcdflib/cumbin.c # scilab/modules/statistics/src/dcdflib/cumchi.c # scilab/modules/statistics/src/dcdflib/cumchn.c # scilab/modules/statistics/src/dcdflib/cumf.c # scilab/modules/statistics/src/dcdflib/cumfnc.c # scilab/modules/statistics/src/dcdflib/cumgam.c # scilab/modules/statistics/src/dcdflib/cumnbn.c # scilab/modules/statistics/src/dcdflib/cumnor.c # scilab/modules/statistics/src/dcdflib/cumpoi.c # scilab/modules/statistics/src/dcdflib/cumt.c # scilab/modules/statistics/src/dcdflib/devlpl.c # scilab/modules/statistics/src/dcdflib/dexpm1.c # scilab/modules/statistics/src/dcdflib/dinvnr.c # scilab/modules/statistics/src/dcdflib/dinvr.c # scilab/modules/statistics/src/dcdflib/dt1.c # scilab/modules/statistics/src/dcdflib/dzror.c # scilab/modules/statistics/src/dcdflib/erf.c # scilab/modules/statistics/src/dcdflib/erfc1.c # scilab/modules/statistics/src/dcdflib/esum.c # scilab/modules/statistics/src/dcdflib/exparg.c # scilab/modules/statistics/src/dcdflib/fpser.c # scilab/modules/statistics/src/dcdflib/gam1.c # scilab/modules/statistics/src/dcdflib/gaminv.c # scilab/modules/statistics/src/dcdflib/gamln.c # scilab/modules/statistics/src/dcdflib/gamln1.c # scilab/modules/statistics/src/dcdflib/gamma.c # scilab/modules/statistics/src/dcdflib/grat1.c # scilab/modules/statistics/src/dcdflib/gratio.c # scilab/modules/statistics/src/dcdflib/gsumln.c # scilab/modules/statistics/src/dcdflib/ipmpar.c # scilab/modules/statistics/src/dcdflib/psi.c # scilab/modules/statistics/src/dcdflib/rcomp.c # scilab/modules/statistics/src/dcdflib/rexp.c # scilab/modules/statistics/src/dcdflib/rlog.c # scilab/modules/statistics/src/dcdflib/rlog1.c # scilab/modules/statistics/src/dcdflib/spmpar.c # scilab/modules/statistics/src/dcdflib/stvaln.c # scilab/modules/string/sci_gateway/fortran/sci_string.c # scilab/modules/string/sci_gateway/fortran/strops.c # scilab/modules/string/src/fortran/strdsp.c # scilab/modules/symbolic/sci_gateway/fortran/sci_addsubf.c # scilab/modules/symbolic/sci_gateway/fortran/sci_ldivf.c # scilab/modules/symbolic/sci_gateway/fortran/sci_mulf.c # scilab/modules/symbolic/sci_gateway/fortran/sci_rdivf.c # scilab/modules/tclsci/.svn/ # scilab/modules/tclsci/includes/.svn/ # scilab/modules/tclsci/tcl/.svn/ # scilab/tools/.svn/ From pierre.marechal at scilab.org Sun Oct 26 15:19:31 2008 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Sun, 26 Oct 2008 15:19:31 +0100 Subject: [Scilab-Dev] gitignore c files from f2c In-Reply-To: <49043CD0.7080008@free.fr> References: <49043CD0.7080008@free.fr> Message-ID: <49047C73.2060602@scilab.org> Hi Fran?ois, Fran?ois Vogel a ?crit : > Hi all, > > Suggestion: could we add all .c files generated by f2c in .gitignore? > > Currently there is a lot of untracked files polluting for instance git > status. I know I can use git status -uno but I feel explicitly > declaring f2c output files in .gitignore would be better. It's obviously a good idea for all directories you are sure they will never contain versioned C files. > What do you think? > > Francois > > PS: Here is my current output of git status with an up-to-date master. > The .svn directories are from copy/paste of the windows > prerequirements, these will disappear as soon as the prerequirements > will be migrated to git. However for f2c files (and also files in libs > from prerequirements) we should add them in .gitignore files I think. I've added .svn to git.scilab.org/scilab/scilab/.gitignore (See commit 9a29e5f93f3ae0290064932e14cbee4056b357c4). > these will disappear as soon as the prerequirements will be migrated > to git. There is little chance that "prerequirements" will be migrated to git because the repository generated by git-svn is very large (> 3Gb) and, with GIT, you have to download the whole repository, contrary to Subversion. Pierre -- ============================================== Pierre MARECHAL INRIA - Unit? de Recherche de Rocquencourt Domaine de Voluceau - B.P. 105 78153 Le Chesnay Cedex ============================================== Projet Scilab B?timent 1B - Bureau 008 Email : pierre.marechal at inria.fr ============================================== From BlanchardJ at ieee.org Tue Oct 28 01:46:26 2008 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Mon, 27 Oct 2008 21:46:26 -0300 Subject: Documentation build on Solaris Message-ID: When trying to build de documentation I get some error output at the end of the build process (see end of email). Obviously the help files are not build so Scilab complain that the help file cannot be loaded at runtime. Apparently msgcat is not invoked correctly. My version of gnu gettext is 0.16.1. Any help would be greatly appreciated as I'm running out of idea on this one. -- Build localization (.mo from .po) -- -- Building for en_US -- Creating ./locale/en_US/LC_MESSAGES/ Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy] [-g] [-o outfile | --output-file=outfile] [-s] [--strict] [-v] [--verbose] files ... Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy] [-g] [-o outfile | --output-file=outfile] [-s] [--strict] [-v] [--verbose] files ... -- Building for fr_FR -- Creating ./locale/fr_FR/LC_MESSAGES/ /usr/bin/msgcat: warning: Input files contain messages in different encodings, UTF-8 among others. Converting the output to UTF-8. Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy] [-g] [-o outfile | --output-file=outfile] [-s] [--strict] [-v] [--verbose] files ... Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy] [-g] [-o outfile | --output-file=outfile] [-s] [--strict] [-v] [--verbose] files ... -- Building for zh_CN -- --- Truncated output, goes on a bit --- Jonathan Blanchard From sylvestre.ledru at inria.fr Tue Oct 28 08:02:36 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Tue, 28 Oct 2008 08:02:36 +0100 Subject: [Scilab-Dev] Documentation build on Solaris In-Reply-To: References: Message-ID: <1225177356.18411.25.camel@zlarin> Le lundi 27 octobre 2008 ? 21:46 -0300, Jonathan Blanchard a ?crit : > When trying to build de documentation I get some error output at the > end of the build process (see end of email). > > Obviously the help files are not build so Scilab complain that the > help file cannot be loaded at runtime. Apparently msgcat is not > invoked correctly. My version of gnu gettext is 0.16.1. Hello Jonathan, Seems that we are using options which don't exist yet under your version of Solaris. The trick here would be to remove the options which are not managed by gettext. In SCI/Makefile.am, we have line 176: MSGFMT_OPTS="$MSGFMT_OPTS --check"; \ and line 189/190 $(MSGFMT) $(MSGFMT_OPTS) --statistics -o $$PATHTO/$(LANG_DOMAIN).mo $$POFILE; \ My guess is that if you remove the --statistics and/or --check, you will get it. (if you do, please let me know, I will update my Makefiles). About the documentation generation error, I didn't get the error msg. :| Sylvestre From BlanchardJ at ieee.org Tue Oct 28 19:10:10 2008 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Tue, 28 Oct 2008 15:10:10 -0300 Subject: [Scilab-Dev] Documentation build on Solaris In-Reply-To: <1225177356.18411.25.camel@zlarin> References: <1225177356.18411.25.camel@zlarin> Message-ID: Thank you for the fast response. Changing the makefile didn't solve the problem. Since Opensolaris gettext package is the gnu version I decided to try to build it myself. This took care of the problem I mentioned about calling msgfmt. But Scilab is still complaining about not being able to load scilab_en_US_help.jar. I checked and the file does not exist. For reference my computer's local is en_CA.UTF-8 but when I build and run scilab I use LANG="C". Jonathan Blanchard On Tue, Oct 28, 2008 at 4:02 AM, Sylvestre Ledru wrote: > > Le lundi 27 octobre 2008 ? 21:46 -0300, Jonathan Blanchard a ?crit : >> When trying to build de documentation I get some error output at the >> end of the build process (see end of email). >> >> Obviously the help files are not build so Scilab complain that the >> help file cannot be loaded at runtime. Apparently msgcat is not >> invoked correctly. My version of gnu gettext is 0.16.1. > Hello Jonathan, > > Seems that we are using options which don't exist yet under your version > of Solaris. > > The trick here would be to remove the options which are not managed by > gettext. > In SCI/Makefile.am, we have line 176: > MSGFMT_OPTS="$MSGFMT_OPTS --check"; \ > and line 189/190 > $(MSGFMT) $(MSGFMT_OPTS) --statistics -o $$PATHTO/$(LANG_DOMAIN).mo > $$POFILE; \ > > My guess is that if you remove the --statistics and/or --check, you will > get it. > > (if you do, please let me know, I will update my Makefiles). > > About the documentation generation error, I didn't get the error msg. :| > > Sylvestre > > > From sylvestre.ledru at inria.fr Tue Oct 28 19:18:39 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Tue, 28 Oct 2008 19:18:39 +0100 Subject: [Scilab-Dev] Documentation build on Solaris In-Reply-To: References: <1225177356.18411.25.camel@zlarin> Message-ID: <1225217919.18411.33.camel@zlarin> Le mardi 28 octobre 2008 ? 15:10 -0300, Jonathan Blanchard a ?crit : > Thank you for the fast response. Changing the makefile didn't solve > the problem. Since Opensolaris gettext package is the gnu version I > decided to try to build it myself. This took care of the problem I > mentioned about calling msgfmt. But Scilab is still complaining about > not being able to load scilab_en_US_help.jar. I checked and the file > does not exist. It is a different issue here. You have to launch the configure with the option --enable-build-help You will need some deps (jeuclid, batik, docbook) that you will find on our repository. After that, "make doc" will build the help. Sylvestre From BlanchardJ at ieee.org Tue Oct 28 23:42:17 2008 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Tue, 28 Oct 2008 19:42:17 -0300 Subject: [Scilab-Dev] Documentation build on Solaris In-Reply-To: <1225217919.18411.33.camel@zlarin> References: <1225177356.18411.25.camel@zlarin> <1225217919.18411.33.camel@zlarin> Message-ID: Oups I indeed forgot to do make doc. I now get the following error... -- Building documentation (English) -- ./bin/scilab -nb -l en_US -nouserstartup -nw -e "xmltojar();exit;" Building the Scilab manual master document for en_US. Building the scilab manual file [javaHelp] (Please wait building ... this can take a while) Extracted embedded graphics from '/export/home/jo/build/scilabgit/build/scilab/modules/helptools/javaHelp/scilab_en_US_help/graphics-1.mml' to '/export/home/jo/build/scilabgit/build/scilab/modules/helptools/javaHelp/scilab_en_US_help/graphics-1.mml'. Converting MathML '/export/home/jo/build/scilabgit/build/scilab/modules/helptools/javaHelp/scilab_en_US_help/graphics-1.mml' to '/export/home/jo/build/scilabgit/build/scilab/modules/helptools/javaHelp/scilab_en_US_help/graphics-1_mml.png'... !--error 999 buildDoc: Error while building documentation: org/apache/xmlgraphics/image/loader/ImageSource. at line 462 of function xmltoformat called by : line 9 of function xmltojar called by : exec('SCI/etc/scilab.start',-1);;xmltojar();exit;; Jonathan Blanchard On Tue, Oct 28, 2008 at 3:18 PM, Sylvestre Ledru wrote: > Le mardi 28 octobre 2008 ? 15:10 -0300, Jonathan Blanchard a ?crit : >> Thank you for the fast response. Changing the makefile didn't solve >> the problem. Since Opensolaris gettext package is the gnu version I >> decided to try to build it myself. This took care of the problem I >> mentioned about calling msgfmt. But Scilab is still complaining about >> not being able to load scilab_en_US_help.jar. I checked and the file >> does not exist. > It is a different issue here. > You have to launch the configure with the option --enable-build-help > You will need some deps (jeuclid, batik, docbook) that you will find on > our repository. > After that, "make doc" will build the help. > > Sylvestre > > > From sylvestre.ledru at inria.fr Tue Oct 28 23:45:53 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Tue, 28 Oct 2008 23:45:53 +0100 Subject: [Scilab-Dev] Documentation build on Solaris In-Reply-To: References: <1225177356.18411.25.camel@zlarin> <1225217919.18411.33.camel@zlarin> Message-ID: <1225233953.18411.46.camel@zlarin> Le mardi 28 octobre 2008 ? 19:42 -0300, Jonathan Blanchard a ?crit : > Oups I indeed forgot to do make doc. I now get the following error... > > -- Building documentation (English) -- > ./bin/scilab -nb -l en_US -nouserstartup -nw -e "xmltojar();exit;" > > Building the Scilab manual master document for en_US. > > Building the scilab manual file [javaHelp] (Please wait building ... > this can take a while) > Extracted embedded graphics from > '/export/home/jo/build/scilabgit/build/scilab/modules/helptools/javaHelp/scilab_en_US_help/graphics-1.mml' > to '/export/home/jo/build/scilabgit/build/scilab/modules/helptools/javaHelp/scilab_en_US_help/graphics-1.mml'. > Converting MathML > '/export/home/jo/build/scilabgit/build/scilab/modules/helptools/javaHelp/scilab_en_US_help/graphics-1.mml' > to '/export/home/jo/build/scilabgit/build/scilab/modules/helptools/javaHelp/scilab_en_US_help/graphics-1_mml.png'... > !--error 999 > buildDoc: Error while building documentation: > org/apache/xmlgraphics/image/loader/ImageSource. You don't have xmlgraphics-common: http://xmlgraphics.apache.org/commons/ put it in SCI/thirdparty/ S From BlanchardJ at ieee.org Wed Oct 29 02:16:45 2008 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Tue, 28 Oct 2008 22:16:45 -0300 Subject: [Scilab-Dev] Documentation build on Solaris In-Reply-To: <1225233953.18411.46.camel@zlarin> References: <1225177356.18411.25.camel@zlarin> <1225217919.18411.33.camel@zlarin> <1225233953.18411.46.camel@zlarin> Message-ID: Sigh, life's very hard today... I have all the prerequisite from the thirdparty folder from the website. I tried downloading the latest version of batik, xmlgraphics and all. It changed the text of the error somewhat. I was trying to build the recent trunk. I tried building 5.0.2 but building the docs result in a segfaults from the Scilab binary and eventually crashed gmake. Jonathan Blanchard On Tue, Oct 28, 2008 at 7:45 PM, Sylvestre Ledru wrote: > Le mardi 28 octobre 2008 ? 19:42 -0300, Jonathan Blanchard a ?crit : >> Oups I indeed forgot to do make doc. I now get the following error... >> >> -- Building documentation (English) -- >> ./bin/scilab -nb -l en_US -nouserstartup -nw -e "xmltojar();exit;" >> >> Building the Scilab manual master document for en_US. >> >> Building the scilab manual file [javaHelp] (Please wait building ... >> this can take a while) >> Extracted embedded graphics from >> '/export/home/jo/build/scilabgit/build/scilab/modules/helptools/javaHelp/scilab_en_US_help/graphics-1.mml' >> to '/export/home/jo/build/scilabgit/build/scilab/modules/helptools/javaHelp/scilab_en_US_help/graphics-1.mml'. >> Converting MathML >> '/export/home/jo/build/scilabgit/build/scilab/modules/helptools/javaHelp/scilab_en_US_help/graphics-1.mml' >> to '/export/home/jo/build/scilabgit/build/scilab/modules/helptools/javaHelp/scilab_en_US_help/graphics-1_mml.png'... >> !--error 999 >> buildDoc: Error while building documentation: >> org/apache/xmlgraphics/image/loader/ImageSource. > You don't have xmlgraphics-common: > http://xmlgraphics.apache.org/commons/ > put it in SCI/thirdparty/ > > S > > > From sylvestre.ledru at inria.fr Wed Oct 29 07:41:01 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Wed, 29 Oct 2008 07:41:01 +0100 Subject: [Scilab-Dev] Documentation build on Solaris In-Reply-To: References: <1225177356.18411.25.camel@zlarin> <1225217919.18411.33.camel@zlarin> <1225233953.18411.46.camel@zlarin> Message-ID: <1225262461.18411.49.camel@zlarin> Le mardi 28 octobre 2008 ? 22:16 -0300, Jonathan Blanchard a ?crit : > Sigh, life's very hard today... > > I have all the prerequisite from the thirdparty folder from the > website. I tried downloading the latest version of batik, xmlgraphics > and all. It changed the text of the error somewhat. I was trying to > build the recent trunk. I tried building 5.0.2 but building the docs > result in a segfaults from the Scilab binary and eventually crashed > gmake. Prerequierements are differents if you are using family 5.0.X or the trunk. The trunk is using the latest versions of this packages, which is not the case of the family 5.0.X (the right version are available in the dev-tools own repository). Sylvestre From vincent.couvert at scilab.org Wed Oct 29 11:33:42 2008 From: vincent.couvert at scilab.org (Vincent COUVERT) Date: Wed, 29 Oct 2008 11:33:42 +0100 Subject: [Scilab-Dev] Re: bug debugguer scipad,... In-Reply-To: <48FF8113.8080101@free.fr> References: <48B8F0D6.809@inria.fr> <48BAF845.8010003@free.fr> <48BBB42E.2010108@inria.fr> <48FCE866.4020304@free.fr> <48FF256E.4060408@scilab.org> <48FF8113.8080101@free.fr> Message-ID: <49083C06.1060704@scilab.org> Hi Fran?ois, I think that Serge is the person of the opteam who is the most able to help you on this work. I'll be back from China next week. Vincent Fran?ois Vogel a ?crit : > Hi Vincent, > > Perfect. Works exactly like you describe it below. > > Now on the hard work. Will somebody of the opteam work on this > problem? I had a look some time ago and I remember it was quite > borderline wrt my proficiency. I don't think I can fix the problem alone. > > Francois > > > Vincent COUVERT said on 22/10/2008 15:06: >> Hi Fran?ois, >> >> Pierre as just created a new branch to work on Scipad debugger. The >> modifications needed for this work can break Scilab, so we think it >> is better to work with a branch. >> >> How to work with this branch: >> // Clone the repository >> git clone git at git.scilab.org:scilab >> >> // Create a shortcut for scipad >> git branch scipad refs/remotes/origin/scipad >> >> // Work on Scipad branch >> git checkout scipad >> >> // Check existing branches (a star must appear in front of "scipad") >> git branch >> >> // Merge "master" branch modifications to "scipad" branch >> git merge master >> >> // Merge "scipad" branch modifications to "master" branch >> git checkout master >> git merge scipad >> >> The changes on GetCommandLine.c have been merged into this branch. >> >> Vincent >> >> >> >> Fran?ois Vogel a ?crit : >>> Hi guys, >>> >>> Referring to the message below, we are now well beyond Scilab 5 >>> release. >>> >>> Shouldn't we discuss about a plan, a roadmap or something in order >>> to get the debugger back in? >>> >>> Target would be Scilab 5.1 (dec. 2008, IIRC a previous post) and >>> first step should be to put back in Serge's changes in GetCommandLine.c >>> >>> How can we organize all this together? What do you think? >>> >>> Francois >>> >>> >>> Bruno JOFRET said on 01/09/2008 11:21: >>>> Hi there, >>>> >>>> After some discussion with Serge (and some mysterious BUG showing >>>> off under windows with the last modification) we decided to revert >>>> the GetCommandLine to previous version. >>>> >>>> But it is only during the time we need to Tag the 5.0 version. >>>> I will do the commit back right after the tag. >>>> >>>> It is a very good step for the resolution of our problems but not >>>> safe enough with the close deadline of Scilab 5.0. >>>> >>>> Regards, >>>> >>>> Fran?ois Vogel a ?crit : >>>>> Serge, >>>>> >>>>> Many thanks for looking at this thorny problem. New eyes on a >>>>> muddy problem proves efficient, well done. >>>>> >>>>> It seems that you have indeed made a good step forward. Now the >>>>> debugger is no longer locked. Well, at least most of the time. >>>>> >>>>> Sometimes the user still has to hit enter in the Scilab shell in >>>>> order to make things move, but definitely you have made progress. >>>>> >>>>> Example that almost works: >>>>> >>>>> 1. Launch Scilab >>>>> >>>>> 2. Launch Scipad. >>>>> >>>>> 3. Now, after Scipad is open: >>>>> >>>>> TCL_EvalStr("set bug2789_fixed true","scipad") >>>>> >>>>> (this will unlock the debugger - I had locked it two days ago in >>>>> r27121 upon opteam request) >>>>> >>>>> 4. Paste this in scipad: >>>>> >>>>> function stupid >>>>> a=1 >>>>> b=2 >>>>> endfunction >>>>> >>>>> 5. Configure (F10) and click OK. >>>>> >>>>> 6. Step in (F8). >>>>> ----> The debugger correctly goes into DebugInProgress mode >>>>> (red tag on the lower left of Scipad window). However, the active >>>>> breakpointed line does not show up. >>>>> >>>>> 7. Hit enter in the Scilab shell (this should not be needed if it >>>>> would work correctly). >>>>> ----> The current stop point is shown in Scipad. >>>>> >>>>> 8. F8 again >>>>> ----> The new stop point is shown >>>>> >>>>> etc. >>>>> >>>>> >>>>> Try with other examples, perhaps a bit more complicated, you will >>>>> see that it often works but not always. Sometimes you need to hit >>>>> enter in the shell to make things move. >>>>> >>>>> >>>>> I have also experienced a number of crashes, where Scilab >>>>> unexpectedly closes with no message at all. >>>>> Also: >>>>> Warning !!! >>>>> Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) >>>>> with "TCL_EvalStr" function. >>>>> Save your data and restart Scilab. >>>>> >>>>> >>>>> Finally, for the debuggger to work OK, bug 1469 and 3407 should be >>>>> fixed too. There are still many problems with continued lines, >>>>> that were counted differently in 4.x than they are now in 5.0 >>>>> >>>>> >>>>> As a conclusion I think we are still not fully OK, but progress is >>>>> clear. A lot of testing and bug fixing will be needed in the next >>>>> days if the debugger is to be replugged. Please let me know what >>>>> you think and what is your plan with respect to the upcoming >>>>> Scilab 5. >>>>> >>>>> Francois >>>>> >>>>> >>>>> Serge Steer said on 30/08/2008 09:03: >>>>>> Je pense avoir corrige le bug qui empechait le debugguer de >>>>>> scipad de >>>>>> fonctionner et qui faisait que dans certains cas scilab se mettait a >>>>>> boucler avec l'execution d'un callback >>>>>> >>>>>> zzledt (GetCommandLine.c) ne signifiait pas que la lecture a ete >>>>>> interrompu par la presence d'un callback dans la queue et >>>>>> retournait une >>>>>> ligne blanche comme instruction. >>>>>> >>>>>> voir la modif que j'ai committe dans modules/shell/GetCommandLine.c >>>>>> >>>>>> Serge >>>>>> >>>>>> >>>> >>>> >> >> -- ============================================== Vincent COUVERT Responsable du d?veloppement ------ Fondation DIGITEO - Consortium Scilab Domaine de Voluceau - B.P. 105 78153 Le Chesnay Cedex B?timent 23 - Bureau 22 ------ Email : vincent.couvert at scilab.org T?l : +33 (0)1 39 63 54 46 Fax : +33 (0)1 39 63 55 94 ============================================== From BlanchardJ at ieee.org Wed Oct 29 13:59:12 2008 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Wed, 29 Oct 2008 09:59:12 -0300 Subject: [Scilab-Dev] Documentation build on Solaris In-Reply-To: <1225262461.18411.49.camel@zlarin> References: <1225177356.18411.25.camel@zlarin> <1225217919.18411.33.camel@zlarin> <1225233953.18411.46.camel@zlarin> <1225262461.18411.49.camel@zlarin> Message-ID: But we cannot access dev-tools. Is it possible to at least have an updated list of the dev branch pre-requirements so that we can build the HEAD which is not very useful otherwise... Jonathan Blanchard On Wed, Oct 29, 2008 at 3:41 AM, Sylvestre Ledru wrote: > Le mardi 28 octobre 2008 ? 22:16 -0300, Jonathan Blanchard a ?crit : >> Sigh, life's very hard today... >> >> I have all the prerequisite from the thirdparty folder from the >> website. I tried downloading the latest version of batik, xmlgraphics >> and all. It changed the text of the error somewhat. I was trying to >> build the recent trunk. I tried building 5.0.2 but building the docs >> result in a segfaults from the Scilab binary and eventually crashed >> gmake. > Prerequierements are differents if you are using family 5.0.X or the trunk. > The trunk is using the latest versions of this packages, which is not > the case of the family 5.0.X (the right version are available in the > dev-tools own repository). > > Sylvestre > > > From sylvestre.ledru at scilab.org Wed Oct 29 14:04:11 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 29 Oct 2008 14:04:11 +0100 Subject: [Scilab-Dev] Documentation build on Solaris In-Reply-To: References: <1225177356.18411.25.camel@zlarin> <1225217919.18411.33.camel@zlarin> <1225233953.18411.46.camel@zlarin> <1225262461.18411.49.camel@zlarin> Message-ID: <1225285451.14725.471.camel@korcula.inria.fr> Le mercredi 29 octobre 2008 ? 09:59 -0300, Jonathan Blanchard a ?crit : > But we cannot access dev-tools. For the 5.0.2: http://www.scilab.org/download/index_download.php?page=release leads to http://www.scilab.org/download/5.0.2/prerequirements-scilab-5.0.2-src.tar.gz You will find files in: scilab-5.0.2/thirdparty/ > Is it possible to at least have an > updated list of the dev branch pre-requirements so that we can build > the HEAD which is not very useful otherwise... http://wiki.scilab.org/Dependencies_of_Scilab_5.X for the master. Hope this helps, Sylvestre From BlanchardJ at ieee.org Wed Oct 29 15:05:23 2008 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Wed, 29 Oct 2008 11:05:23 -0300 Subject: [Scilab-Dev] Documentation build on Solaris In-Reply-To: <1225285451.14725.471.camel@korcula.inria.fr> References: <1225177356.18411.25.camel@zlarin> <1225217919.18411.33.camel@zlarin> <1225233953.18411.46.camel@zlarin> <1225262461.18411.49.camel@zlarin> <1225285451.14725.471.camel@korcula.inria.fr> Message-ID: Hmm yeah I knew of that page. To my knowledge I updated everything to the versions specified there. Maybe its something else related to Solaris. I'll try to hunt the issue when I have more time, maybe try it with Sun compiler, gcc on Solaris is flaky in some aspect. Thanks for your help, Jonathan Blanchard On Wed, Oct 29, 2008 at 10:04 AM, Sylvestre Ledru wrote: > Le mercredi 29 octobre 2008 ? 09:59 -0300, Jonathan Blanchard a ?crit : >> But we cannot access dev-tools. > For the 5.0.2: > http://www.scilab.org/download/index_download.php?page=release > leads to > http://www.scilab.org/download/5.0.2/prerequirements-scilab-5.0.2-src.tar.gz > You will find files in: > scilab-5.0.2/thirdparty/ > >> Is it possible to at least have an >> updated list of the dev branch pre-requirements so that we can build >> the HEAD which is not very useful otherwise... > http://wiki.scilab.org/Dependencies_of_Scilab_5.X > for the master. > > Hope this helps, > Sylvestre > > > From sylvestre.ledru at scilab.org Wed Oct 29 15:07:31 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 29 Oct 2008 15:07:31 +0100 Subject: [Scilab-Dev] Documentation build on Solaris In-Reply-To: References: <1225177356.18411.25.camel@zlarin> <1225217919.18411.33.camel@zlarin> <1225233953.18411.46.camel@zlarin> <1225262461.18411.49.camel@zlarin> <1225285451.14725.471.camel@korcula.inria.fr> Message-ID: <1225289251.14725.488.camel@korcula.inria.fr> Le mercredi 29 octobre 2008 ? 11:05 -0300, Jonathan Blanchard a ?crit : > Hmm yeah I knew of that page. To my knowledge I updated everything to > the versions specified there. Maybe its something else related to > Solaris. Do you get any error message ? You may find more information in the config.log file. > I'll try to hunt the issue when I have more time, maybe try > it with Sun compiler, gcc on Solaris is flaky in some aspect. Hmm, there is no "native" library used in the documentation build. All of them are in Java and portable (ie, no problem with the C compilers). > Thanks for your help, You are welcome. Sylvestre From BlanchardJ at ieee.org Wed Oct 29 16:59:52 2008 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Wed, 29 Oct 2008 12:59:52 -0300 Subject: [Scilab-Dev] Documentation build on Solaris In-Reply-To: <1225289251.14725.488.camel@korcula.inria.fr> References: <1225217919.18411.33.camel@zlarin> <1225233953.18411.46.camel@zlarin> <1225262461.18411.49.camel@zlarin> <1225285451.14725.471.camel@korcula.inria.fr> <1225289251.14725.488.camel@korcula.inria.fr> Message-ID: Haven't been able to make it work on 5.0.2 but I cleaned my thirdparty directory and downloaded everything again. I can now build the en_US documentation but Scilab and the build process crash when trying the french localized doc. For reference the Java VM report that it crashed somewhere in strlen and the scilab binary complain that it does not support the FR local. This is good enough for me, I can just take the english doc and copy it to the Scilab directory. Jonathan Blanchard On Wed, Oct 29, 2008 at 11:07 AM, Sylvestre Ledru wrote: > Le mercredi 29 octobre 2008 ? 11:05 -0300, Jonathan Blanchard a ?crit : >> Hmm yeah I knew of that page. To my knowledge I updated everything to >> the versions specified there. Maybe its something else related to >> Solaris. > Do you get any error message ? > You may find more information in the config.log file. > >> I'll try to hunt the issue when I have more time, maybe try >> it with Sun compiler, gcc on Solaris is flaky in some aspect. > Hmm, there is no "native" library used in the documentation build. > All of them are in Java and portable (ie, no problem with the C > compilers). > >> Thanks for your help, > You are welcome. > > Sylvestre > > > From c_korn at gmx.de Wed Oct 29 19:29:32 2008 From: c_korn at gmx.de (Christoph Korn) Date: Wed, 29 Oct 2008 19:29:32 +0100 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <1224902497.21746.13.camel@zlarin> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> <490059EF.1040503@gmx.de> <4900AD44.1090607@gmx.de> <1224782091.3319.195.camel@zlarin> <4900D5AF.2060406@gmx.de> <1224792067.3319.202.camel@zlarin> <4900DDF6.8020100@gmx.de> <4901C581.40704@gmx.de> <49021F4E.3020709@gmx.de> <1224902497.21746.13.camel@zlarin> Message-ID: <4908AB8C.4050904@gmx.de> An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Wed Oct 29 20:26:57 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Wed, 29 Oct 2008 20:26:57 +0100 Subject: Gitview not updated? Message-ID: <4908B901.6000002@free.fr> Hi, Is gitview under maintenance today or something? http://gitweb.scilab.org/?p=scilab;a=summary pretends the last change dates back to yesterday (27 hours ago) while git pull provides with a number of new commits in my local repository. Also, since I'm here, another question: is there any way in gitview to show only the commits pertaining to a given branch? Currently everything is mixed up and it's not easy to find what applies to what branch. Thanks, Francois From fvogelnew1 at free.fr Wed Oct 29 20:30:31 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Wed, 29 Oct 2008 20:30:31 +0100 Subject: [Scilab-Dev] Re: bug debugguer scipad,... In-Reply-To: <49083C06.1060704@scilab.org> References: <48B8F0D6.809@inria.fr> <48BAF845.8010003@free.fr> <48BBB42E.2010108@inria.fr> <48FCE866.4020304@free.fr> <48FF256E.4060408@scilab.org> <48FF8113.8080101@free.fr> <49083C06.1060704@scilab.org> Message-ID: <4908B9D7.8010104@free.fr> Vincent COUVERT said on 29/10/2008 11:33: > I think that Serge is the person of the opteam who is the most able to > help you on this work. I'll be back from China next week. OK, very good. In the meantime I'll anyway dive into the problem once more. Let's wait a few days then, I hope Serge can provide feedback here when he'll be back. Francois From fvogelnew1 at free.fr Wed Oct 29 20:58:01 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Wed, 29 Oct 2008 20:58:01 +0100 Subject: Gitview not updated? In-Reply-To: <4908B901.6000002@free.fr> References: <4908B901.6000002@free.fr> Message-ID: <4908C049.4000106@free.fr> Also, another question: How can I see the commits in a remote branch, say origin/master without fetching or pulling them first? Before merging in my local repo I would like to assess how likely it is the new commits will break my local build. So far I used gitview, but I cannot believe there is no way directly in git bash. Any idea? Thanks, Francois From fvogelnew1 at free.fr Wed Oct 29 22:32:22 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Wed, 29 Oct 2008 22:32:22 +0100 Subject: Merging branches In-Reply-To: <48FF256E.4060408@scilab.org> References: <48B8F0D6.809@inria.fr> <48BAF845.8010003@free.fr> <48BBB42E.2010108@inria.fr> <48FCE866.4020304@free.fr> <48FF256E.4060408@scilab.org> Message-ID: <4908D666.1000100@free.fr> Vincent COUVERT said on 22/10/2008 15:06: > // Merge "master" branch modifications to "scipad" branch > git merge master Today this spits: $ git merge master error: Entry 'scilab/modules/pvm/src/nopvm/nopvm.rc' not uptodate. Cannot merge. fatal: merging of trees 9bccd6d1cce5eb8f555f48d3253184ff6013d578 and 3ee3dd5796795c1659da5820f0a5c4090be9011b failed Merge with strategy recursive failed. I was not able to solve this. I tried git clean -f at no avail, and even completely erased my repository and started from the very beginning: git clone git at git.scilab.org:scilab git branch scipad refs/remotes/origin/scipad git checkout scipad git merge master What do you think? Thanks, Francois From fvogelnew1 at free.fr Wed Oct 29 22:36:57 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Wed, 29 Oct 2008 22:36:57 +0100 Subject: Merging branches In-Reply-To: <4908D666.1000100@free.fr> References: <48B8F0D6.809@inria.fr> <48BAF845.8010003@free.fr> <48BBB42E.2010108@inria.fr> <48FCE866.4020304@free.fr> <48FF256E.4060408@scilab.org> <4908D666.1000100@free.fr> Message-ID: <4908D779.1090103@free.fr> Fran?ois Vogel said on 29/10/2008 22:32: > Vincent COUVERT said on 22/10/2008 15:06: >> // Merge "master" branch modifications to "scipad" branch >> git merge master > > Today this spits: > > $ git merge master > error: Entry 'scilab/modules/pvm/src/nopvm/nopvm.rc' not uptodate. > Cannot merge. > fatal: merging of trees 9bccd6d1cce5eb8f555f48d3253184ff6013d578 and > 3ee3dd5796795c1659da5820f0a5c4090be9011b failed > Merge with strategy recursive failed. > > I was not able to solve this. I tried git clean -f at no avail, and even > completely erased my repository and started from the very beginning: > git clone git at git.scilab.org:scilab > git branch scipad refs/remotes/origin/scipad > git checkout scipad > git merge master Very strange. After initial clone I get: $ git status # On branch scipad # Changed but not updated: # (use "git add ..." to update what will be committed) # # modified: scilab/modules/pvm/src/nopvm/nopvm.rc # modified: scilab/modules/randlib/src/norandlib/norandlib.rc # modified: scilab/modules/renderer/.checkstyle # modified: scilab/modules/renderer/.classpath # modified: scilab/modules/renderer/.project # modified: scilab/modules/renderer/src/norenderer/norenderer.rc # modified: scilab/modules/scicos/src/c/noscicos/noscicos.rc # modified: scilab/modules/shell/.checkstyle # modified: scilab/modules/shell/.classpath # modified: scilab/modules/shell/.project # modified: scilab/modules/shell/src/c/shell.rc # modified: scilab/modules/sound/src/c/sound.rc # modified: scilab/modules/sound/src/nosound/nosound.rc # modified: scilab/modules/spreadsheet/src/c/spreadsheet.rc # modified: scilab/modules/spreadsheet/src/nospreadsheet/nospreadsheet.rc # modified: scilab/modules/time/src/c/time.rc # modified: scilab/modules/umfpack/src/c/umfpack.rc # modified: scilab/modules/umfpack/src/noumfpack/noumfpack.rc # modified: scilab/modules/windows_tools/.checkstyle # modified: scilab/modules/windows_tools/.classpath # modified: scilab/modules/windows_tools/.project # modified: scilab/modules/windows_tools/src/c/CScilex/CScilex.rc # modified: scilab/modules/windows_tools/src/c/scilab_windows/scilab_windows.rc # modified: scilab/modules/windows_tools/src/c/windows_tools.rc # modified: scilab/modules/windows_tools/src/nowindows_tools/nowindows_tools.rc # no changes added to commit (use "git add" and/or "git commit -a") How can I have locally modified files right after cloning? Puzzled... Francois From pierre.marechal at scilab.org Thu Oct 30 14:46:13 2008 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Thu, 30 Oct 2008 14:46:13 +0100 Subject: [Scilab-Dev] Gitview not updated? In-Reply-To: <4908B901.6000002@free.fr> References: <4908B901.6000002@free.fr> Message-ID: <4909BAA5.5080704@scilab.org> Hi Fran?ois, Fran?ois Vogel a ?crit : > Hi, > > Is gitview under maintenance today or something? > > http://gitweb.scilab.org/?p=scilab;a=summary > > pretends the last change dates back to yesterday (27 hours ago) while > git pull provides with a number of new commits in my local repository. > It's now fixed : http://gitweb.scilab.org > Also, since I'm here, another question: is there any way in gitview to > show only the commits pertaining to a given branch? Currently > everything is mixed up and it's not easy to find what applies to what > branch. Yes, links are in the "heads" section : http://gitweb.scilab.org/?p=scilab;a=shortlog;h=refs/heads/5.0 > Thanks, > Francois Pierre -- ============================================== Pierre MARECHAL INRIA - Unit? de Recherche de Rocquencourt Domaine de Voluceau - B.P. 105 78153 Le Chesnay Cedex ============================================== Projet Scilab B?timent 1B - Bureau 008 Email : pierre.marechal at scilab.org ============================================== From pierre.marechal at scilab.org Thu Oct 30 15:13:34 2008 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Thu, 30 Oct 2008 15:13:34 +0100 Subject: [Scilab-Dev] Merging branches In-Reply-To: <4908D666.1000100@free.fr> References: <48B8F0D6.809@inria.fr> <48BAF845.8010003@free.fr> <48BBB42E.2010108@inria.fr> <48FCE866.4020304@free.fr> <48FF256E.4060408@scilab.org> <4908D666.1000100@free.fr> Message-ID: <4909C10E.9000507@scilab.org> Fran?ois Vogel a ?crit : > Vincent COUVERT said on 22/10/2008 15:06: >> // Merge "master" branch modifications to "scipad" branch >> git merge master > > Today this spits: > > $ git merge master > error: Entry 'scilab/modules/pvm/src/nopvm/nopvm.rc' not uptodate. > Cannot merge. > fatal: merging of trees 9bccd6d1cce5eb8f555f48d3253184ff6013d578 and > 3ee3dd5796795c1659da5820f0a5c4090be9011b failed > Merge with strategy recursive failed. > > I was not able to solve this. I tried git clean -f at no avail, and > even completely erased my repository and started from the very beginning: > git clone git at git.scilab.org:scilab > git branch scipad refs/remotes/origin/scipad > git checkout scipad > git merge master > > What do you think? > > Thanks, > Francois With exactly the same commands on my ubuntu, I have not encountered any problem : http://gitweb.scilab.org/?p=scilab.git;a=shortlog;h=refs/heads/scipad Just one conflict to resolve : http://gitweb.scilab.org/?p=scilab.git;a=commit;h=7db8fe7f2465717d1e045a2f8b5afb8eaaf7739a Pierre -- ============================================== Pierre MARECHAL INRIA - Unit? de Recherche de Rocquencourt Domaine de Voluceau - B.P. 105 78153 Le Chesnay Cedex ============================================== Projet Scilab B?timent 1B - Bureau 008 Email : pierre.marechal at scilab.org ============================================== From fvogelnew1 at free.fr Thu Oct 30 22:14:24 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Thu, 30 Oct 2008 22:14:24 +0100 Subject: [Scilab-Dev] Merging branches In-Reply-To: <4909C10E.9000507@scilab.org> References: <48B8F0D6.809@inria.fr> <48BAF845.8010003@free.fr> <48BBB42E.2010108@inria.fr> <48FCE866.4020304@free.fr> <48FF256E.4060408@scilab.org> <4908D666.1000100@free.fr> <4909C10E.9000507@scilab.org> Message-ID: <490A23B0.5050602@free.fr> Pierre MARECHAL said on 30/10/2008 15:13: > With exactly the same commands on my ubuntu, I have not encountered any > problem Works for me too now. Could not understand why it failed. > http://gitweb.scilab.org/?p=scilab.git;a=shortlog;h=refs/heads/scipad > Just one conflict to resolve : > http://gitweb.scilab.org/?p=scilab.git;a=commit;h=7db8fe7f2465717d1e045a2f8b5afb8eaaf7739a Both links you give above result for me in: 403 Forbidden - No such project Francois From fvogelnew1 at free.fr Thu Oct 30 22:22:07 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Thu, 30 Oct 2008 22:22:07 +0100 Subject: [Scilab-Dev] Gitview not updated? In-Reply-To: <4909BAA5.5080704@scilab.org> References: <4908B901.6000002@free.fr> <4909BAA5.5080704@scilab.org> Message-ID: <490A257F.70205@free.fr> Pierre MARECHAL said on 30/10/2008 14:46: >> Also, since I'm here, another question: is there any way in gitview to >> show only the commits pertaining to a given branch? Currently >> everything is mixed up and it's not easy to find what applies to what >> branch. > Yes, links are in the "heads" section : > http://gitweb.scilab.org/?p=scilab;a=shortlog;h=refs/heads/5.0 OK, found, thanks. Btw, did you perhaps miss the other question I had yesterday: How can I see the commits in a remote branch, say origin/master without fetching or pulling them first? Francois From pierre.marechal at scilab.org Fri Oct 31 08:11:51 2008 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Fri, 31 Oct 2008 08:11:51 +0100 Subject: [Scilab-Dev] Merging branches In-Reply-To: <490A23B0.5050602@free.fr> References: <48B8F0D6.809@inria.fr> <48BAF845.8010003@free.fr> <48BBB42E.2010108@inria.fr> <48FCE866.4020304@free.fr> <48FF256E.4060408@scilab.org> <4908D666.1000100@free.fr> <4909C10E.9000507@scilab.org> <490A23B0.5050602@free.fr> Message-ID: <490AAFB7.9080407@scilab.org> Fran?ois Vogel a ?crit : > Pierre MARECHAL said on 30/10/2008 15:13: >> With exactly the same commands on my ubuntu, I have not encountered >> any problem > > Works for me too now. Could not understand why it failed. > >> http://gitweb.scilab.org/?p=scilab.git;a=shortlog;h=refs/heads/scipad >> Just one conflict to resolve : >> http://gitweb.scilab.org/?p=scilab.git;a=commit;h=7db8fe7f2465717d1e045a2f8b5afb8eaaf7739a > > > Both links you give above result for me in: > > 403 Forbidden - No such project > > Francois I think gitweb blocks external link (i.e. if the referer isn't gitweb.scilab.org), maybe to limit robots. But, if you reach these URL via the homepage (http://gitweb.scilab.org), it works ! Pierre -- ============================================== Pierre MARECHAL INRIA - Unit? de Recherche de Rocquencourt Domaine de Voluceau - B.P. 105 78153 Le Chesnay Cedex ============================================== Projet Scilab B?timent 1B - Bureau 008 Email : pierre.marechal at scilab.org ============================================== From ycollet at freesurf.fr Fri Oct 31 09:19:16 2008 From: ycollet at freesurf.fr (ycollet at freesurf.fr) Date: Fri, 31 Oct 2008 09:19:16 +0100 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <4908AB8C.4050904@gmx.de> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> <490059EF.1040503@gmx.de> <4900AD44.1090607@gmx.de> <1224782091.3319.195.camel@zlarin> <4900D5AF.2060406@gmx.de> <1224792067.3319.202.camel@zlarin> <4900DDF6.8020100@gmx.de> <4901C581.40704@gmx.de> <49021F4E.3020709@gmx.de> <1224902497.21746.13.camel@zlarin> <4908AB8C.4050904@gmx.de> Message-ID: <20081031091916.19742qizl4rqz98g@webmail-html.freesurf.fr> Hello, I have no problem to compile scilab-trunk under mandriva 2009 64 bits on amd64 quad core. Maybe this problem is related to your linux distribution ? I have meet a problem with another application for which a mandriva package was not useable and I need to recompile gsl with a configure flag --with-pic. YC Christoph Korn a ?crit?: Hello, Sylvestre did you try it already? Tomorrow is intrepid release. If it does not get fixed I would have to install a i386 virtual machine to run scilab. Would not be that worse, but a fix would be better. ;-) Sylvestre Ledru schrieb: Then back to the same problem as we had before. I have a spare 64 bits (if Simon didn't break it too hardly ;) ). I am going to give a try next week.Cheers and thanks again for the time you spend with me on this issue. SylvestreLe vendredi 24 octobre 2008 ? 21:17 +0200, Christoph Korn a ?crit : > The segfault also happens on latest git's head. class=\"moz-txt-link-freetext\" > href=\"http://nopaste.com/p/al2B8HGUT/txt\">http://nopaste.com/p/al2B8HGUT/txtI > don't know any further.Please let me know of any ideas you have or > information I should provide to trace the bug.I would be glad to > have a working scilab 5.0.x when I switch to ubuntu intrepid amd64 > on my working machine next weak. :-(Christoph Korn schrieb: > > > I updated my machine to ubuntu intrepid but the segfault is still > there. I have rebuilt the package on this machine. This is the > output of 'scilab -debug': href=\"http://nopaste.com/p/aWmPGgt01/txt\">http://nopaste.com/p/aWmPGgt01/txtChristoph > Korn schrieb: > > Sylvestre Ledru schrieb: > > Le jeudi 23 octobre 2008 ? 21:51 +0200, Christoph Korn a ?crit > : > > I commented these lines but you where right. It crashes at > another place: href=\"http://nopaste.com/p/aWud1Miav/txt\">http://nopaste.com/p/aWud1Miav/txt > OK, could you send the content of libs/MALLOC/Makefile ? Seems that I didn't built libs/MALLOC/malloc.c http://nopaste.com/p/aBV3mtMy6/txt > > > What do you mean by the working env btw? The package is built in > a clean chroot via sbuild. You are wasting a lot of time doing it each time. It is just a suggestion.S Ok, then I misunderstood your previous comment. -- Transmis via le Webmail FreeSurf: http://www.freesurf.fr From c_korn at gmx.de Fri Oct 31 12:00:31 2008 From: c_korn at gmx.de (Christoph Korn) Date: Fri, 31 Oct 2008 12:00:31 +0100 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <20081031091916.19742qizl4rqz98g@webmail-html.freesurf.fr> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> <490059EF.1040503@gmx.de> <4900AD44.1090607@gmx.de> <1224782091.3319.195.camel@zlarin> <4900D5AF.2060406@gmx.de> <1224792067.3319.202.camel@zlarin> <4900DDF6.8020100@gmx.de> <4901C581.40704@gmx.de> <49021F4E.3020709@gmx.de> <1224902497.21746.13.camel@zlarin> <4908AB8C.4050904@gmx.de> <20081031091916.19742qizl4rqz98g@webmail-html.freesurf.fr> Message-ID: <490AE54F.80202@gmx.de> Thanks for the tipp but scilab is by default compiled with --fPiC I tested scilab on my notebook using intrepid and the same segfault occurs. ycollet at freesurf.fr schrieb: > Hello, > > I have no problem to compile scilab-trunk under mandriva 2009 64 bits > on amd64 quad core. > Maybe this problem is related to your linux distribution ? > I have meet a problem with another application for which a mandriva > package was not useable and I need to recompile gsl with a configure > flag --with-pic. > > YC > > Christoph Korn a ?crit : > > Hello, > Sylvestre did you try it already? > Tomorrow is intrepid release. > > If it does not get fixed I would have to install a i386 virtual > machine to run scilab. > Would not be that worse, but a fix would be better. ;-) > > Sylvestre Ledru schrieb: > > Then back to the same problem as we had before. I have a spare 64 > bits (if Simon didn't break it too hardly ;) ). I am going to give a > try next week.Cheers and thanks again for the time you spend with me > on this issue. SylvestreLe vendredi 24 octobre 2008 ? 21:17 +0200, > Christoph Korn a ?crit : > >> The segfault also happens on latest git's head. > class=\"moz-txt-link-freetext\" >> > href=\"http://nopaste.com/p/al2B8HGUT/txt\">http://nopaste.com/p/al2B8HGUT/txtI > >> don't know any further.Please let me know of any ideas you have or >> information I should provide to trace the bug.I would be glad to >> have a working scilab 5.0.x when I switch to ubuntu intrepid amd64 >> on my working machine next weak. :-(Christoph Korn schrieb: >> >> >> I updated my machine to ubuntu intrepid but the segfault is still >> there. I have rebuilt the package on this machine. This is the >> output of 'scilab -debug': > href=\"http://nopaste.com/p/aWmPGgt01/txt\">http://nopaste.com/p/aWmPGgt01/txtChristoph > >> Korn schrieb: >> >> Sylvestre Ledru schrieb: >> >> Le jeudi 23 octobre 2008 ? 21:51 +0200, Christoph Korn a ?crit >> : >> >> I commented these lines but you where right. It crashes at >> another place: > href=\"http://nopaste.com/p/aWud1Miav/txt\">http://nopaste.com/p/aWud1Miav/txt > >> > > OK, could you send the content of libs/MALLOC/Makefile ? Seems that > I didn't built libs/MALLOC/malloc.c > > http://nopaste.com/p/aBV3mtMy6/txt > >> >> >> What do you mean by the working env btw? The package is built in >> a clean chroot via sbuild. > > You are wasting a lot of time doing it each time. It is just a > suggestion.S > > Ok, then I misunderstood your previous comment. > > > > From sylvestre.ledru at scilab.org Fri Oct 31 15:05:24 2008 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 31 Oct 2008 15:05:24 +0100 Subject: [Scilab-Dev] Error in scilab compiled for amd64 In-Reply-To: <490AE54F.80202@gmx.de> References: <48FF9A95.6050108@gmx.de> <48FFA642.5060302@gmx.de> <1224714336.3319.186.camel@zlarin> <490036D4.6000403@gmx.de> <490059EF.1040503@gmx.de> <4900AD44.1090607@gmx.de> <1224782091.3319.195.camel@zlarin> <4900D5AF.2060406@gmx.de> <1224792067.3319.202.camel@zlarin> <4900DDF6.8020100@gmx.de> <4901C581.40704@gmx.de> <49021F4E.3020709@gmx.de> <1224902497.21746.13.camel@zlarin> <4908AB8C.4050904@gmx.de> <20081031091916.19742qizl4rqz98g@webmail-html.freesurf.fr> <490AE54F.80202@gmx.de> Message-ID: <1225461924.29623.123.camel@korcula.inria.fr> It is working for me on a brand new Ubuntu Intrepid on a Intel 64 bits and Scilab master (cloned from the current repo) Sylvestre Le vendredi 31 octobre 2008 ? 12:00 +0100, Christoph Korn a ?crit : > Thanks for the tipp but scilab is by default compiled with --fPiC > > I tested scilab on my notebook using intrepid and the same segfault occurs. > > ycollet at freesurf.fr schrieb: > > Hello, > > > > I have no problem to compile scilab-trunk under mandriva 2009 64 bits > > on amd64 quad core. > > Maybe this problem is related to your linux distribution ? > > I have meet a problem with another application for which a mandriva > > package was not useable and I need to recompile gsl with a configure > > flag --with-pic. > > > > YC > > > > Christoph Korn a ?crit : > > > > Hello, > > Sylvestre did you try it already? > > Tomorrow is intrepid release. > > > > If it does not get fixed I would have to install a i386 virtual > > machine to run scilab. > > Would not be that worse, but a fix would be better. ;-) > > > > Sylvestre Ledru schrieb: > > > > Then back to the same problem as we had before. I have a spare 64 > > bits (if Simon didn't break it too hardly ;) ). I am going to give a > > try next week.Cheers and thanks again for the time you spend with me > > on this issue. SylvestreLe vendredi 24 octobre 2008 ? 21:17 +0200, > > Christoph Korn a ?crit : > > > >> The segfault also happens on latest git's head. > > class=\"moz-txt-link-freetext\" > >> > > href=\"http://nopaste.com/p/al2B8HGUT/txt\">http://nopaste.com/p/al2B8HGUT/txtI > > > >> don't know any further.Please let me know of any ideas you have or > >> information I should provide to trace the bug.I would be glad to > >> have a working scilab 5.0.x when I switch to ubuntu intrepid amd64 > >> on my working machine next weak. :-(Christoph Korn schrieb: > >> > >> > >> I updated my machine to ubuntu intrepid but the segfault is still > >> there. I have rebuilt the package on this machine. This is the > >> output of 'scilab -debug': > > href=\"http://nopaste.com/p/aWmPGgt01/txt\">http://nopaste.com/p/aWmPGgt01/txtChristoph > > > >> Korn schrieb: > >> > >> Sylvestre Ledru schrieb: > >> > >> Le jeudi 23 octobre 2008 ? 21:51 +0200, Christoph Korn a ?crit > >> : > >> > >> I commented these lines but you where right. It crashes at > >> another place: > > href=\"http://nopaste.com/p/aWud1Miav/txt\">http://nopaste.com/p/aWud1Miav/txt > > > >> > > > > OK, could you send the content of libs/MALLOC/Makefile ? Seems that > > I didn't built libs/MALLOC/malloc.c > > > > http://nopaste.com/p/aBV3mtMy6/txt > > > >> > >> > >> What do you mean by the working env btw? The package is built in > >> a clean chroot via sbuild. > > > > You are wasting a lot of time doing it each time. It is just a > > suggestion.S > > > > Ok, then I misunderstood your previous comment. > > > > > > > >