Re: [fpc-devel] Semicolon before else

2010-01-25 Thread Graeme Geldenhuys
Daniël Mantione wrote: > > Indeed, it would be undesired to accept that semicolon. What makes me > uncomfortable is that he went to the trouble of modifying the compiler for > it. We should encourage that. I know, it is impressive that somebody went through all that trouble in modifying the co

Re: [fpc-devel] Semicolon before else

2010-01-25 Thread Daniël Mantione
Op Tue, 26 Jan 2010, schreef Graeme Geldenhuys: David W Noon wrote: Syntax and understanding is as clear as rain. Adding extra semi-colon, as you suggested, is not. Indeed, it would be undesired to accept that semicolon. What makes me uncomfortable is that he went to the trouble of modifyi

Re: [fpc-devel] Semicolon before else

2010-01-25 Thread Graeme Geldenhuys
David W Noon wrote: > > [snip] >> case p of >> '1': do_1; >> '2' if (q > 0) then do_2; >> else do_3; >> end; >> >> It is not clear if else should be part of branch '2' (part of if >> statement), or else branch for case. > > A quick examination of Jensen & Wirth's original Pascal grammar will > te

Re: [fpc-devel] Semicolon before else

2010-01-25 Thread David W Noon
On Tue, 26 Jan 2010 01:08:45 +0100, Aleksa Todorovic wrote about [fpc-devel] Semicolon before else: [snip] > case p of > '1': do_1; > '2' if (q > 0) then do_2; > else do_3; > end; > > It is not clear if else should be part of branch '2' (part of if > statement), or else branch for case. A quick

[fpc-devel] Semicolon before else

2010-01-25 Thread Aleksa Todorovic
Hi, all! I used to work in Pascal (Delphi/fpc) for 10 years, and later had to go to C++ (because of my day job). Now, I'm back to fpc, and one thing I really miss is ability to have semicolon before else. So, here's (attached) patch for fpc that makes it possible. The only problematic place for t

Re: [fpc-devel] Fpsigprocmask

2010-01-25 Thread Martin Schreiber
On Monday 25 January 2010 17:16:59 Michael Schnell wrote: > > @Martin: > what is the complicated thread save stuff with sys_semdestroy() > necessary for ? > Would it not be useful to use a Futex instead of a sema ? > Possible, I don't touch such code if it works - or if I think it works. ;-) Do you

Re: [fpc-devel] problem with fpcres on macosx

2010-01-25 Thread zeljko
On Monday 25 January 2010 18:45, Giulio Bernardi wrote: > Il 25/01/2010 18.40, zeljko ha scritto: > > lindas-computer:~/genres Linda$ ppc386 test.pas > > Free Pascal Compiler version 2.4.1 [2010/01/24] for i386 > > Copyright (c) 1993-2009 by Florian Klaempfl > > Target OS: Darwin for i386 > > Compi

Re: [fpc-devel] problem with fpcres on macosx

2010-01-25 Thread Giulio Bernardi
Il 25/01/2010 18.40, zeljko ha scritto: lindas-computer:~/genres Linda$ ppc386 test.pas Free Pascal Compiler version 2.4.1 [2010/01/24] for i386 Copyright (c) 1993-2009 by Florian Klaempfl Target OS: Darwin for i386 Compiling test.pas Assembling test Compiling resource test.or Error: Can't open f

Re: [fpc-devel] problem with fpcres on macosx

2010-01-25 Thread zeljko
On Monday 25 January 2010 18:21, Giulio Bernardi wrote: > Could you please make a test with the code below? > Put the attached program in a new folder (since it creates a lot of > files), then compile the program from the Terminal with > fpc genres.pas > It will create 260 small .lfm files and a t

Re: [fpc-devel] problem with fpcres on macosx

2010-01-25 Thread Giulio Bernardi
Il 25/01/2010 15.40, zeljko ha scritto: Hi all, I've already filled up an issue http://bugs.freepascal.org/view.php?id=15586 which shows the problem. It cannot link application with> 255 lfms (mac only - win32& linux are ok). fpc-2.4.1 r14802 Anyone ? Could you please make a test with the c

Re: [fpc-devel] Fpsigprocmask

2010-01-25 Thread Michael Schnell
On 01/22/2010 03:02 PM, Marco van de Voort wrote: > > (baseunix.) > fpsignal, fpsigemptyset fpsigaddset fpsigprocmask > Thanks ! Martins source now does compile with uses baseunix and fpsignal(), fpsigemptyset(), fpsigaddset() and fpsigprocmask(), fpwrite(), ... :) but there are some more lib

Re: [fpc-devel] problem with fpcres on mac

2010-01-25 Thread Paul Ishenin
25.01.2010 21:30, Jonas Maebe wrote: I don't know how fcl-res deals with resources, but if it creates a separate section in the object file for each resource, then that is probably the problem (mach-o object files are limited to 255 sections). If that is indeed the problem, then instead of crea

Re: [fpc-devel] problem with fpcres on macosx

2010-01-25 Thread zeljko
On Monday 25 January 2010 15:40, zeljko wrote: > Hi all, > > I've already filled up an issue > http://bugs.freepascal.org/view.php?id=15586 which shows the problem. > It cannot link application with > 255 lfms (mac only - win32 & linux are > ok). fpc-2.4.1 r14802 Sorry about double posting (I wasn

[fpc-devel] problem with fpcres on macosx

2010-01-25 Thread zeljko
Hi all, I've already filled up an issue http://bugs.freepascal.org/view.php?id=15586 which shows the problem. It cannot link application with > 255 lfms (mac only - win32 & linux are ok). fpc-2.4.1 r14802 Anyone ? zeljko ___ fpc-devel maillist - fpc-

Re: [fpc-devel] problem with fpcres on mac

2010-01-25 Thread Jonas Maebe
On 25 Jan 2010, at 15:02, zeljko wrote: > I've already filled up an issue > http://bugs.freepascal.org/view.php?id=15586 which shows the problem. > It cannot link application with > 255 lfms (mac only - win32 & linux are ok). > fpc-2.4.1 r14802 > > Anyone ? I don't know how fcl-res deals with r

[fpc-devel] problem with fpcres on mac

2010-01-25 Thread zeljko
Hi all, I've already filled up an issue http://bugs.freepascal.org/view.php?id=15586 which shows the problem. It cannot link application with > 255 lfms (mac only - win32 & linux are ok). fpc-2.4.1 r14802 Anyone ? zeljko ___ fpc-devel maillist - fpc-