[fpc-devel] a patch for fpioctl

2007-09-28 Thread ik
Hi, I found a difference between the POSIX and the BSD implementation of ioctl, and the FPC fpioctrl is set as the way BSD is working. My patch fixes that, making different decleration according to BSD/everything else. Please note that accidentally Linuxs' ioctl have parameters the way POSIX spec

Re: [fpc-devel] resource compilation fails, if cpp is not on the path

2007-09-28 Thread Vincent Snijders
Yury Sidorov schreef: From: "Vincent Snijders" <[EMAIL PROTECTED]> Yury Sidorov schreef: From: "Vincent Snijders" <[EMAIL PROTECTED]> I created the attached patch. What do you think? Use FindFile and FindExe functions to search for "cpp". The same way as windres binary is searched above:

Re: [fpc-devel] resource compilation fails, if cpp is not on the path

2007-09-28 Thread Yury Sidorov
From: "Vincent Snijders" <[EMAIL PROTECTED]> Yury Sidorov schreef: From: "Vincent Snijders" <[EMAIL PROTECTED]> Yury Sidorov schreef: Yes. It is known issue. Compiler can search for "cpp" tool the same way as other tools like "as", "ld" and then pass --preprocessor switch to windres if "

Re: [fpc-devel] resource compilation fails, if cpp is not on the path

2007-09-28 Thread Vincent Snijders
Yury Sidorov schreef: From: "Vincent Snijders" <[EMAIL PROTECTED]> Yury Sidorov schreef: Yes. It is known issue. Compiler can search for "cpp" tool the same way as other tools like "as", "ld" and then pass --preprocessor switch to windres if "cpp" was found. I created the attached patch.

Re: [fpc-devel] resource compilation fails, if cpp is not on the path

2007-09-28 Thread Yury Sidorov
From: "Vincent Snijders" <[EMAIL PROTECTED]> Yury Sidorov schreef: Yes. It is known issue. Compiler can search for "cpp" tool the same way as other tools like "as", "ld" and then pass --preprocessor switch to windres if "cpp" was found. I created the attached patch. What do you think?

Re: [fpc-devel] resource compilation fails, if cpp is not on the path

2007-09-28 Thread Vincent Snijders
Yury Sidorov schreef: Yes. It is known issue. Compiler can search for "cpp" tool the same way as other tools like "as", "ld" and then pass --preprocessor switch to windres if "cpp" was found. I created the attached patch. What do you think? Vincent Index: comprsrc.pas

Re: [fpc-devel] makefile is looking for source files in the include directory

2007-09-28 Thread Peter Vreman
> Hi, > > Why does a makefile generated by fpcmake contain the following lines? > vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR) > vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR) > > It seems to be looking in the include directory for source files. It is needed for dependencies l

[fpc-devel] makefile is looking for source files in the include directory

2007-09-28 Thread Vincent Snijders
Hi, Why does a makefile generated by fpcmake contain the following lines? vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR) vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR) It seems to be looking in the include directory for source files. Vincent __

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Mattias Gaertner
On Thu, 27 Sep 2007 23:13:07 +0800 Павел Ишенин <[EMAIL PROTECTED]> wrote: > Hello, FPC developers' list > > I had discussion with Marc about how to mark some properties as > widgetset specific (and show them in object inspector as specific for > widgetset 'xxx'). As result of discussion we fou

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Michael Van Canneyt
On Fri, 28 Sep 2007, Marco van de Voort wrote: > > On Fri, 28 Sep 2007, Marc Weustink wrote: > > > No the property will always exist and always been written. Only an > > > indication > > > to the user can be shown that this is a property which might not work on > > > all > > > platforms > > >

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Marco van de Voort
> On Fri, 28 Sep 2007, Marc Weustink wrote: > > No the property will always exist and always been written. Only an > > indication > > to the user can be shown that this is a property which might not work on all > > platforms > > IIRC, that's what the platform directive was meant for. > > Only to

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Marc Weustink
Michael Van Canneyt wrote: On Fri, 28 Sep 2007, Marc Weustink wrote: Graeme Geldenhuys wrote: On 27/09/2007, Павел Ишенин <[EMAIL PROTECTED]> wrote: TMenu = class(...) published property Detachable: Boolean read ... write ... ; platform carbon qt; { or it can be platform 'carbon,qt' or ano

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Vincent Snijders
Michael Van Canneyt schreef: On Fri, 28 Sep 2007, Marc Weustink wrote: Graeme Geldenhuys wrote: On 27/09/2007, Павел Ишенин <[EMAIL PROTECTED]> wrote: TMenu = class(...) published property Detachable: Boolean read ... write ... ; platform carbon qt; { or it can be platform 'carbon,qt' or a

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Michael Van Canneyt
On Fri, 28 Sep 2007, Marc Weustink wrote: > Graeme Geldenhuys wrote: > > On 27/09/2007, Павел Ишенин <[EMAIL PROTECTED]> wrote: > > > TMenu = class(...) > > > published > > > property Detachable: Boolean read ... write ... ; platform carbon qt; > > > { or it can be platform 'carbon,qt' or anot

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Marc Weustink
Graeme Geldenhuys wrote: On 27/09/2007, Павел Ишенин <[EMAIL PROTECTED]> wrote: TMenu = class(...) published property Detachable: Boolean read ... write ... ; platform carbon qt; { or it can be platform 'carbon,qt' or another easier way } end; So using this example: Detachable property info