Re: [fpc-devel] gtkliststore.inc

2008-01-22 Thread Michael Van Canneyt
On Tue, 22 Jan 2008, Paul Ishenin wrote: > Hello, FPC developers' list. > > Can someone tell me what for gtk2 package have this strange defines inside > sources: > > {$IFNDEF KYLIX} > function gtk_list_store_new(n_columns:gint; args:array of > const):PGtkListStore; cdecl; overload; external g

Re: [fpc-devel] gtkliststore.inc

2008-01-22 Thread Michael Van Canneyt
On Tue, 22 Jan 2008, Paul Ishenin wrote: > Michael Van Canneyt wrote: > > > > On Tue, 22 Jan 2008, Paul Ishenin wrote: > > > > > Hello, FPC developers' list. > > > > > > Can someone tell me what for gtk2 package have this strange defines inside > > > sources: > > > > > > {$IFNDEF KYLIX} > > >

Re: [fpc-devel] gtkliststore.inc

2008-01-22 Thread Paul Ishenin
Michael Van Canneyt wrote: On Tue, 22 Jan 2008, Paul Ishenin wrote: Hello, FPC developers' list. Can someone tell me what for gtk2 package have this strange defines inside sources: {$IFNDEF KYLIX} function gtk_list_store_new(n_columns:gint; args:array of const):PGtkListStore; cdecl; overloa

Re: [fpc-devel] Interfaces vs. smartlink issue

2008-01-22 Thread Sergei Gorelkin
Peter Vreman wrote: It is legacy. You can improve it to put the wrappers for one interface definition in its own section. Looks like a one-line fix (see the attached patch). By the way, while testing it in Windows, I could not make the compiler do the smartlink with external linker. I compi

[fpc-devel] One more issue with string function results (hopefully, the last)

2008-01-22 Thread Sergei Gorelkin
Hello, Ran into it while compiling Lazarus. It appears that, while many sophisticated checks are done in tcallnode.maybe_create_funcret_node, the obvious case when function result destination is one of the function's arguments, is not checked. To be honest, I noticed that earlier for the case

Re: [fpc-devel] One more issue with string function results (hopefully, the last)

2008-01-22 Thread Peter Vreman
> Hello, > > Ran into it while compiling Lazarus. It appears that, while many > sophisticated checks are done in tcallnode.maybe_create_funcret_node, > the obvious case when function result destination is one of the > function's arguments, is not checked. To be honest, I noticed that > earlier for

Re: [fpc-devel] One more issue with string function results (hopefully, the last)

2008-01-22 Thread Peter Vreman
>> Hello, >> >> Ran into it while compiling Lazarus. It appears that, while many >> sophisticated checks are done in tcallnode.maybe_create_funcret_node, >> the obvious case when function result destination is one of the >> function's arguments, is not checked. To be honest, I noticed that >> earli

Re: [fpc-devel] One more issue with string function results (hopefully, the last)

2008-01-22 Thread Sergei Gorelkin
Peter Vreman wrote: The example that is provided doesn't fail. Because when calling foo the value of -4(%ebp) is loaded in %eax and that value is used in the function foo. The setlength() will create a new string and store that at -4(%ebp) of the calling function. But doesn't change the origi

Re: [fpc-devel] Haiku and IDE support in the BeOS port

2008-01-22 Thread Olivier Coursière
Here is a working patch to exeinfo.pp. However, i am not sure i have used the best approach to reuse ELF32 functions. BeOS only need to set processaddress in OpenElf function using a specific function. Olivier exeinfo.pp.diff Description: Binary data _

[fpc-devel] Unable to build FPC from source, any ideas?

2008-01-22 Thread Paul Michell
I've been updating my FPC 2.2.1 from SVN for some time, but my batch file has started failing (since last Sunday I think?) It appears to be nolonger able to build the initial compiler? I'm working on Windows XP and using 2.2.0 as a seed compiler. make cycle from the compiler folder gives: