[fpc-devel]fpStat() and LinuxError

2003-12-01 Thread Jeff Pohlmeyer
How do I get the error code for fpStat() ? The oldlinux.stat() function returns FALSE on failure, and sets LinuxError. The libc.stat() function returns (-1) on failure, and sets errno. The baseunix.fpStat() function returns (-1) on failure, but it does not set LinuxError. If I call fpStat() o

Re: [fpc-devel]fpStat() and LinuxError

2003-12-01 Thread Peter Vreman
> How do I get the error code for fpStat() ? > > The oldlinux.stat() function returns FALSE on failure, and sets > LinuxError. > > The libc.stat() function returns (-1) on failure, and sets errno. > > The baseunix.fpStat() function returns (-1) on failure, > but it does not set LinuxError. > > If I

Re: [fpc-devel]fpStat() and LinuxError

2003-12-01 Thread Marco van de Voort
> How do I get the error code for fpStat() ? > > The oldlinux.stat() function returns FALSE on failure, and sets LinuxError. > > The libc.stat() function returns (-1) on failure, and sets errno. > > The baseunix.fpStat() function returns (-1) on failure, > but it does not set LinuxError. Linu

[fpc-devel]debugging

2003-12-01 Thread Tamas Konkoly
Hi, Has the compiler a switch which I can set that if I get a runtime error or other error, I receive the error line number and source file name too? Tcc ___ fpc-devel maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-

Re: [fpc-devel]fpStat() and LinuxError

2003-12-01 Thread Marco van de Voort
> > The libc.stat() function returns (-1) on failure, and sets errno. > > > > The baseunix.fpStat() function returns (-1) on failure, > > but it does not set LinuxError. > > > > If I call fpStat() on a non-existing file, "strace" shows > > the error is ENOENT, but LinuxError is still zero. > > > >

Re: [fpc-devel]debugging

2003-12-01 Thread Florian Klaempfl
Tamas Konkoly wrote: Hi, Has the compiler a switch which I can set that if I get a runtime error or other error, I receive the error line number and source file name too? -gl Please ask such questions at fpc-pascal, fpc-devel is about development of fpc. ___

Re: [fpc-devel]Nested function as argument for TList.Sort

2003-12-01 Thread Olle Raab
03-11-30 10.36, skrev Jonas Maebe följande: > > On 30-nov-03, at 02:29, Pedro Lopez-Cabanillas wrote: > >> Of course, if the compiler doesn't support this feature, because the >> internal >> handling of function calls, a compiler error message is better than a >> program >> crash. > > The probl

[fpc-devel]Port of JUnit to Free Pascal

2003-12-01 Thread Dean Zobec
Hi, A couple of weeks ago I've started a port of the JUnit framework to fpc as I needed a run some tests over the fresh port of our EOS framework to Free Pascal (http://camelos.sourceforge.net). I've tried to adhere as much as possible to the original JUnit design to preserve it's ease of use