[fpc-devel]ClrScr bug in crt unit (win32 1.0.7 )

2003-02-13 Thread pascalive
I noticed that the crt.ClrScr (win32) in 1.0.7 is buggy. Take a look at the following program: uses crt; vari,j: integer; begin for i :=1 to 25 do begin window(1,1,80,25); textattr:=7; clrScr; window(1,1,i,i); textAttr:=31; clrScr; f

Re: [fpc-devel]h2pas bug

2003-02-13 Thread Michael . VanCanneyt
On Thu, 13 Feb 2003, Jeff Pohlmeyer wrote: > > This is legal in a C header: > struct foo; > > - But it causes a seg fault in h2pas when it tries > to read the fields from the undefined structure. > > There may be a better place to test for this, > but the patch below seems to work: I applie

[fpc-devel]h2pas bug

2003-02-13 Thread Jeff Pohlmeyer
This is legal in a C header: struct foo; - But it causes a seg fault in h2pas when it tries to read the fields from the undefined structure. There may be a better place to test for this, but the patch below seems to work: [PATCH] --- h2pas-old/h2pas.pas Thu Feb 13 15:20:44 2003 +++ h2pas

Re: [fpc-devel]making pdf docs

2003-02-13 Thread Mattias Gaertner
On Thu, 13 Feb 2003 20:22:00 +0100 (W. Europe Standard Time) Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > On Thu, 13 Feb 2003, Mattias Gaertner wrote: > > > Hi all, > > > > I have trouble making the current docs in pdf (fpc cvs, redhat 7.3). > > I tried: > > > > [fpc]# make -C docs pdf

Re: [fpc-devel]making pdf docs

2003-02-13 Thread Michael Van Canneyt
On Thu, 13 Feb 2003, Mattias Gaertner wrote: > Hi all, > > I have trouble making the current docs in pdf (fpc cvs, redhat 7.3). > I tried: > > [fpc]# make -C docs pdf > make: Entering directory `/[...]/fpc/docs' > pdflatex user > This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3

[fpc-devel]making pdf docs

2003-02-13 Thread Mattias Gaertner
Hi all, I have trouble making the current docs in pdf (fpc cvs, redhat 7.3). I tried: [fpc]# make -C docs pdf make: Entering directory `/[...]/fpc/docs' pdflatex user This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1) (./user.tex{/usr/share/texmf/pdftex/config/pdftex.cfg} LaTeX

Re: [fpc-devel]Weird isn't it ?

2003-02-13 Thread Jonas Maebe
On donderdag, feb 13, 2003, at 01:32 Europe/Brussels, Maly wrote: well, exception handling isn't important, they'are handled outside this code and ChDir can't fail i.e raise any exception. The main question is why Write changes code execution/generation ? In general this is due to you having a

Re: [fpc-devel]Weird isn't it ?

2003-02-13 Thread Michael Van Canneyt
On Thu, 13 Feb 2003, Maly wrote: > Anton Tichawa wrote: > > Convernig the optimization .. try replacing the last line, > > > > FFS.ChDir(SavedPath); > > > > with > > > > AFS.ChDir(SavedPath); > > > > Because, it might seem to the compiler, that the last instruction is > > write-only and should

Re: [fpc-devel]Weird isn't it ?

2003-02-13 Thread Michael Van Canneyt
On Thu, 13 Feb 2003, Anton Tichawa wrote: > Hi! > > > It is not. You should AT LEAST put the > > > >AFS.ChDir(FFilePath); > >FFS.ChDir(SavedPath); > > > > In a try/finally block: > > > >AFS.ChDir(FFilePath); > > In your example, you actually put the AFS.ChDir(FFilePath) OUTSIDE the >