[fpc-pascal] Re: How to write text to the console?

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 9:38, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Mon, 16 Jul 2012, Reinier Olislagers wrote: This works in FPC 2.7.1: WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE),@s[1],length(s),bw,nil); ... but seems to be Windows-only. Indeed. What am I missing and what is

Re: [fpc-pascal] How to write text to the console?

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 9:38, michael.vancann...@wisa.be wrote: On Mon, 16 Jul 2012, Reinier Olislagers wrote: After having had help on the list I managed to write UTF8 text to the Windows Vista console using 2.6 However, my test program (see attachment) fails on trunk. snip This works in FPC 2.7.1:

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: [Nod], understood. Hit a slight snag here with trunk FPC + trunk Lazarus: Target OS: Solaris for SPARC Compiling sqldblaz.pas Compiling registersqldb.pas registersqldb.pas(58,3) Fatal: Can't find unit ibconnection used by registersqldb Fatal: Compilation aborted

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread michael . vancanneyt
On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: [Nod], understood. Hit a slight snag here with trunk FPC + trunk Lazarus: Target OS: Solaris for SPARC Compiling sqldblaz.pas Compiling registersqldb.pas registersqldb.pas(58,3) Fatal: Can't find unit ibconnection used

Re: [fpc-pascal] Variable of class method type of function

2012-07-16 Thread CA Gorski
On 15.07.2012 15:35, Jonas Maebe wrote: That seems to be a bug in ObjFPC mode procvar support. It works in Delphi mode. Please always include a complete test program in the future, so that people wanting to help you don't have to write multiple test programs themselves to figure out what the

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Graeme Geldenhuys
On 16 July 2012 12:16, michael.vancann...@wisa.be wrote: I don't think Firebird works on Solaris or SPARC cpus, so it makes no sense to compile in firebird support on that platform. Wrong! From the Firebird website: Firebird 2.5 runs on Windows (32- and 64-bit), various Linux versions (32-

[fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 13:26, Graeme Geldenhuys wrote: On 16 July 2012 12:16, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: I don't think Firebird works on Solaris or SPARC cpus, so it makes no sense to compile in firebird support on that platform. Wrong! From the Firebird website:

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: [Nod], understood. Hit a slight snag here with trunk FPC + trunk Lazarus: Target OS: Solaris for SPARC Compiling sqldblaz.pas Compiling registersqldb.pas registersqldb.pas(58,3) Fatal:

[fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 15:15, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On a side note: My quoted paragraph doesn't mention FreeBSD, but I have successfully ran Firebird Server

Re: [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Mattias Gaertner
On Mon, 16 Jul 2012 13:49:13 + Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: [...] Remove the ibconnection unit or put it in an {$IFNDEF SOLARIS}. (or should that be SUNOS ?) You'll have to remove TIBConnection from the registercomponents call as well. If that

Re: [fpc-pascal] Re: Cross platform signal handler?

2012-07-16 Thread Andreas Schneider
On Sunday, July 15, 2012, at 14:48 leledumbo wrote: It will depend on what you want to achive. So, what do you need it for? Handle Ctrl+C and other kinds of forced program termination. Take a look here

[fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 15:58, Reinier Olislagers wrote: On 16-7-2012 15:15, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On a side note: My quoted paragraph doesn't mention FreeBSD, but I

[fpc-pascal] Re: Cross platform signal handler?

2012-07-16 Thread leledumbo
Thanks, that's closer, I hope the linux ifdef could be replaced with unix (Mac OS X is *nix, right?). I wonder why we don't have it at RTL level... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Cross-platform-signal-handler-tp5710328p5710355.html Sent from the

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: Whoopsie, error in the patch: this: - merged P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes); P.SourcePath.Add('src/sqldb/sqlite', SqliteOSes); into P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes+SqliteOSes); for clarity on who gets sqlite wasn't

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 18:41, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: Whoopsie, error in the patch: this: - merged P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes); P.SourcePath.Add('src/sqldb/sqlite', SqliteOSes); into P.SourcePath.Add('src/sqldb/sqlite',

[fpc-pascal] Re: fcl-passrc package question about source file and line number info

2012-07-16 Thread Seth Grover
Michael wrote: Please check revision 21909. I haven't done much testing, because I didn't get to the test cases for statements yet. Michael, I grabbed what's currently up in the svn trunk under fcl-passrc. I am getting the source filename and line number information now, so that's great. I

[fpc-pascal] Re: fcl-passrc package question about source file and line number info

2012-07-16 Thread Seth Grover
I think I found another problem with the latest revision of fcl-passrc in svn trunk. Given this source file as input to the test_parser program: === unit timelib; interface implementation procedure SortIndexHashTable; begin try except if (h nil) then

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 16-7-2012 18:41, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: Whoopsie, error in the patch: this: - merged P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes); P.SourcePath.Add('src/sqldb/sqlite', SqliteOSes); into P.SourcePath.Add('src/sqldb/sqlite',

Re: [fpc-pascal] Re: fcl-passrc package question about source file and line number info

2012-07-16 Thread Michael Van Canneyt
On Mon, 16 Jul 2012, Seth Grover wrote: I think I found another problem with the latest revision of fcl-passrc in svn trunk. I should have fixed both problems you found. Please test, rev 21922. Michael. ___ fpc-pascal maillist -

[fpc-pascal] Re: fcl-passrc package question about source file and line number info

2012-07-16 Thread Seth Grover
I should have fixed both problems you found. Please test, rev 21922. Michael. It did fix those problems, but there's still a problem in the release given the following unit with a finalization section: === unit testlib; interface implementation

Re: [fpc-pascal] Variable of class method type of function

2012-07-16 Thread waldo kitty
On 7/15/2012 08:13, Jonas Maebe wrote: On 15 Jul 2012, at 14:05, CA Gorski wrote: How to declare a variable of class method type of function? ... var MyVar: function(AParam: string): boolean of class; ... gives an error using FPC 2.6.1 (Win64). You have to use of object, just like for a

Re: [fpc-pascal] Variable of class method type of function

2012-07-16 Thread Sven Barth
Am 17.07.2012 01:10 schrieb waldo kitty wkitt...@windstream.net: On 7/15/2012 08:13, Jonas Maebe wrote: On 15 Jul 2012, at 14:05, CA Gorski wrote: How to declare a variable of class method type of function? ... var MyVar: function(AParam: string): boolean of class; ... gives an