Re: Proposal to merge src/support/putenv.C and src/support/filetools.C

2005-02-15 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | João Assirati contributed a 'less horrible, less leaky' putenv function in | src/support/putenv.C. It's currently used only by src/lyxsocket.C. > | We also have putEnv in src/support/filetools.C. It has the same signature | as

Proposal to merge src/support/putenv.C and src/support/filetools.C

2005-02-15 Thread Angus Leeming
João Assirati contributed a 'less horrible, less leaky' putenv function in src/support/putenv.C. It's currently used only by src/lyxsocket.C. We also have putEnv in src/support/filetools.C. It has the same signature as João's function but uses either ::setenv or ::pute

Re: lyx-devel src/: LyXAction.C src/support/: filetools.C

2002-11-27 Thread Lars Gullik Bjønnes
>> | Changes by:[EMAIL PROTECTED]02/11/27 14:46:15 >> | >> | Modified files: >> |lyx-devel/src/: LyXAction.C >> |lyx-devel/src/support/: filetools.C >> | >> | Log message: >> |As André says, what a a waste of time, but at leas

Re: lyx-devel src/: LyXAction.C src/support/: filetools.C

2002-11-27 Thread Angus Leeming
> | Modified files: > | lyx-devel/src/: LyXAction.C > | lyx-devel/src/support/: filetools.C > | > | Log message: > | As André says, what a a waste of time, but at least it's now consistent. > > you are aware that "size_t(0)" would work as well? So? The t

Re: [PATCH] filetools.C

2002-05-03 Thread Andre Poenitz
On Fri, May 03, 2002 at 12:13:47PM +0200, Lars Gullik Bjønnes wrote: > ('you' here is _me_ not _you_) Indeed. I should have made it explicit by saying "Look as We are right". Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one

Re: [PATCH] filetools.C

2002-05-03 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Friday 03 May 2002 11:13 am, Lars Gullik Bjønnes wrote: >> Angus Leeming <[EMAIL PROTECTED]> writes: >> | On Friday 03 May 2002 7:09 am, Andre Poenitz wrote: >> >> On Thu, May 02, 2002 at 08:18:32PM +0200, Lars Gullik Bjønnes wrote: >> >> > I think t

Re: [PATCH] filetools.C

2002-05-03 Thread Angus Leeming
On Friday 03 May 2002 11:13 am, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > | On Friday 03 May 2002 7:09 am, Andre Poenitz wrote: > >> On Thu, May 02, 2002 at 08:18:32PM +0200, Lars Gullik Bjønnes wrote: > >> > I think that > >> > > >> >str.substr(0) == str > >

Re: [PATCH] filetools.C

2002-05-03 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Friday 03 May 2002 7:09 am, Andre Poenitz wrote: >> On Thu, May 02, 2002 at 08:18:32PM +0200, Lars Gullik Bjønnes wrote: >> > I think that >> > >> >str.substr(0) == str >> >str.substr(0, ) == str >> > >> > easy to check though. >> >>

Re: [PATCH] filetools.C

2002-05-03 Thread Herbert Voss
On Fri, 3 May 2002, Angus Leeming wrote: > + if (lyxerr.level() & Debug::GRAPHICS) { > + string const print_str = (str.size() > 60) ? > + str.substr(0,60) : str; > + lyxerr << "Scanstring: " << print_str << en

Re: [PATCH] filetools.C

2002-05-03 Thread Angus Leeming
se? Angus Index: ChangeLog === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/ChangeLog,v retrieving revision 1.102 diff -u -p -r1.102 ChangeLog --- ChangeLog 2 May 2002 16:55:25 - 1.102 +++ ChangeLog 3 May 2

Re: [PATCH] filetools.C

2002-05-02 Thread Andre Poenitz
On Thu, May 02, 2002 at 08:18:32PM +0200, Lars Gullik Bjønnes wrote: > I think that > >str.substr(0) == str >str.substr(0, ) == str > > easy to check though. 21.3.6.7 basic_string::substr[lib.string::substr] basic_string substr(size_type pos = 0, si

Re: [PATCH] filetools.C

2002-05-02 Thread Lars Gullik Bjønnes
; >> >>2002-05-02 Herbert Voss <[EMAIL PROTECTED]> >> >> >> >> * filetools.C: getline -> std::getline. >> >> >> >> >> >>maybe that I'm getting old, but this is in my ChangeLog, but >> >>not changed in my filetools.C and I

Re: [PATCH] filetools.C

2002-05-02 Thread Angus Leeming
On Thursday 02 May 2002 6:03 pm, Herbert Voss wrote: > Angus Leeming wrote: > > On Thursday 02 May 2002 5:17 pm, Herbert Voss wrote: > >>I don't who committed this: > >> > >>2002-05-02 Herbert Voss <[EMAIL PROTECTED]> > >> > >>

Re: [PATCH] filetools.C

2002-05-02 Thread Herbert Voss
Angus Leeming wrote: > On Thursday 02 May 2002 5:17 pm, Herbert Voss wrote: > >>I don't who committed this: >> >>2002-05-02 Herbert Voss <[EMAIL PROTECTED]> >> >> * filetools.C: getline -> std::getline. >> >> >>maybe

Re: [PATCH] filetools.C

2002-05-02 Thread Angus Leeming
On Thursday 02 May 2002 5:17 pm, Herbert Voss wrote: > I don't who committed this: > > 2002-05-02 Herbert Voss <[EMAIL PROTECTED]> > > * filetools.C: getline -> std::getline. > > > maybe that I'm getting old, but this is in my ChangeLog, but

[PATCH] filetools.C

2002-05-02 Thread Herbert Voss
I don't who committed this: 2002-05-02 Herbert Voss <[EMAIL PROTECTED]> * filetools.C: getline -> std::getline. maybe that I'm getting old, but this is in my ChangeLog, but not changed in my filetools.C and I never send such patch. It's part of the

Re: support/filetools.C cosmetics

2001-10-24 Thread Andre Poenitz
On Wed, Oct 24, 2001 at 12:46:56PM +0200, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | -cmdret const c = do_popen(kpsecmd); > | - > | -lyxerr[Debug::LATEX] << "kpse status = " << c.first << "\n" > | -<< "kpse result = `" <

support/filetools.C cosmetics

2001-10-24 Thread Andre Poenitz
where p is never used afterwards... Andre' -- André Pönitz .. [EMAIL PROTECTED] ? texput.log Index: filetools.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/filetools.C,v retr

Re: IsSGMLFIlename - filetools.C

2001-02-27 Thread Jose Abilio Oliveira Matos
On Tue, Feb 27, 2001 at 01:23:06PM +0100, Lars Gullik Bjønnes wrote: > Jose Abilio Oliveira Matos <[EMAIL PROTECTED]> writes: > > | On Tue, Feb 27, 2001 at 12:57:23PM +0100, Lars Gullik Bjønnes wrote: > | > | > | > | > Lgb > | > | > | > | On a related issue, I want to move the funct

Re: IsSGMLFIlename - filetools.C

2001-02-27 Thread Lars Gullik Bjønnes
Jose Abilio Oliveira Matos <[EMAIL PROTECTED]> writes: | On Tue, Feb 27, 2001 at 12:57:23PM +0100, Lars Gullik Bjønnes wrote: | > | | > | > Lgb | > | | > | On a related issue, I want to move the function that is in | > | src/insets/includeinset.C, | > | > What do you need it for a

Re: IsSGMLFIlename - filetools.C

2001-02-27 Thread Jose Abilio Oliveira Matos
On Tue, Feb 27, 2001 at 12:57:23PM +0100, Lars Gullik Bjønnes wrote: > | > | > Lgb > | > | On a related issue, I want to move the function that is in > | src/insets/includeinset.C, > > What do you need it for again? Is it for a temporary unique filename? > In what domain, file, dir

Re: IsSGMLFIlename - filetools.C

2001-02-27 Thread Lars Gullik Bjønnes
Jose Abilio Oliveira Matos <[EMAIL PROTECTED]> writes: | On Tue, Feb 27, 2001 at 12:42:57PM +0100, Lars Gullik Bjønnes wrote: | > | > Note the function name: "IsLyX_FILENAME_" this is not really a check | > that this is in fact a lyx file. So what we should check is that this | > regexp holds: "

Re: IsSGMLFIlename - filetools.C

2001-02-27 Thread Jose Abilio Oliveira Matos
On Tue, Feb 27, 2001 at 12:42:57PM +0100, Lars Gullik Bjønnes wrote: > > Note the function name: "IsLyX_FILENAME_" this is not really a check > that this is in fact a lyx file. So what we should check is that this > regexp holds: "^.*\.lyx(\..+)$" Will you do it? If not I can do it. >

Re: IsSGMLFIlename - filetools.C

2001-02-27 Thread Lars Gullik Bjønnes
Jose Abilio Oliveira Matos <[EMAIL PROTECTED]> writes: | On Tue, Feb 27, 2001 at 12:26:49PM +0100, Lars Gullik Bjønnes wrote: | > | > This change: | > | > 2001-02-27 Jos=E9 Matos <[EMAIL PROTECTED]> | > | > * filetools.C (IsLyXFilename): | > * file

IsSGMLFIlename - filetools.C

2001-02-27 Thread Lars Gullik Bjønnes
This change: 2001-02-27 José Matos <[EMAIL PROTECTED]> * filetools.C (IsLyXFilename): * filetools.C (IsSGMLFilename): test if extension is suffix and not only containned. Why was this done? This will AFAIS it impossible to have filenames like testfile.lyx.i

Re: filetools.C

2000-06-08 Thread Albert Chin-A-Young
On Thu, Jun 08, 2000 at 03:49:17PM +0200, Jean-Marc Lasgouttes wrote: > > "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: > > Andre> retval is not defined if HAVE_SETENV is not defined. One > Andre> possible solution: > > You mean neither HAVE_SETENV and HAVE_PUTENV are defined? On what

Re: filetools.C

2000-06-08 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> retval is not defined if HAVE_SETENV is not defined. One Andre> possible solution: You mean neither HAVE_SETENV and HAVE_PUTENV are defined? On what system did this occur? I guess in this case it would be better to set retval to a

filetools.C

2000-06-08 Thread Andre Poenitz
retval is not defined if HAVE_SETENV is not defined. One possible solution: - snip --- Index: filetools.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/filetools.C,v retrieving

figinset.C; filetools.C was: Re: 3026 public symbol exports in LyX global name space (wa: Re: LaTeX file handling)

1999-08-23 Thread Arnd Hanses
On 23 Aug 1999 15:51:19 +0900, [EMAIL PROTECTED] wrote: > >It is irrevalent, since, except for a few, all the X11 apps here (including >LyX) are single threaded. -Zmt flag in the compiler/linker does not make >your application multithreaded, nor even thread safe. >> Attached follows the very exp