Re: [fpc-devel] mips-linux and mipsel-linux snapshots available

2012-12-17 Thread michael . vancanneyt
On Mon, 17 Dec 2012, Nikolai Zhubr wrote: Hi Sergei and Mark, 16.12.2012 12:41, Sergei Gorelkin: [...] This was caused by insufficient alignment of Double-typed temp variables, fixed in r23146. Moreover, it appeared that function UnixToWinAge wasn't doing anything useful since year 2005, so

Re: [fpc-devel] Is this future save? class casting for var-param

2012-12-03 Thread michael . vancanneyt
On Mon, 3 Dec 2012, Martin wrote: having a procedure Foo(var x: TSomeClass); calling it with Foo(TSomeClass(ObjOfBaseClassOfTSomeClass)); It compiles with 2.6.0. Just want to be sure, it wont stop in future versions. It should not stop. Michael.

Re: [fpc-devel] Tests of observer feature [was: Considerations about observer]

2012-11-29 Thread michael . vancanneyt
On Wed, 28 Nov 2012, luiz americo pereira camara wrote: Given the considerations i did about the observer feature, here are some simple projects that supports my concerns and therefore the request i made to change the interface of two functions. Test1 As is today, if you have a reference to

Re: [fpc-devel] Tests of observer feature [was: Considerations about observer]

2012-11-29 Thread michael . vancanneyt
On Thu, 29 Nov 2012, Sven Barth wrote: Am 29.11.2012 03:59, schrieb luiz americo pereira camara: As is today, if you have a reference to a IFPObserver is not possible to use it to attach to, e.g., child objects. This occurs because AFAIK you can't get a TObject from a interface reference.

Re: [fpc-devel] Are global variables guaranteed to be zero?

2012-11-29 Thread michael . vancanneyt
On Thu, 29 Nov 2012, Alexander Klenin wrote: On Wed, Nov 28, 2012 at 2:29 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: Will global variables and static global arrays be always initialized to zero? Yes. Then I suggest to amend the first paragraph of

Re: [fpc-devel] Tests of observer feature [was: Considerations about observer]

2012-11-29 Thread michael . vancanneyt
On Thu, 29 Nov 2012, luiz americo pereira camara wrote: 2012/11/29 michael.vancann...@wisa.be: On Thu, 29 Nov 2012, Sven Barth wrote: Am 29.11.2012 03:59, schrieb luiz americo pereira camara: As is today, if you have a reference to a IFPObserver is not possible to use it to attach to,

Re: [fpc-devel] Are global variables guaranteed to be zero?

2012-11-29 Thread michael . vancanneyt
On Thu, 29 Nov 2012, Mark Morgan Lloyd wrote: michael.vancann...@wisa.be wrote: On Thu, 29 Nov 2012, Alexander Klenin wrote: On Wed, Nov 28, 2012 at 2:29 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: Will global variables and static global arrays be always initialized to zero? Yes.

Re: [fpc-devel] Tests of observer feature [was: Considerations about observer]

2012-11-29 Thread michael . vancanneyt
On Thu, 29 Nov 2012, Graeme Geldenhuys wrote: Hi Luiz, First off, thanks for take the trouble it creating test projects. On 2012-11-29 02:59, luiz americo pereira camara wrote: Test1 As is today, if you have a reference to a IFPObserver is not possible to use it to attach to, e.g., child

Re: [fpc-devel] Tests of observer feature [was: Considerations about observer]

2012-11-29 Thread michael . vancanneyt
On Thu, 29 Nov 2012, luiz americo pereira camara wrote: Well i have at least two situations, with code that is already running, that the observer pattern would fit as i described. - I implemented a Wizard Page component where i can attach a page to any TFrame. Each page can be assigned as

Re: [fpc-devel] Are global variables guaranteed to be zero?

2012-11-29 Thread michael . vancanneyt
On Thu, 29 Nov 2012, Mark Morgan Lloyd wrote: michael.vancann...@wisa.be wrote: You must initialize local variables. Are there cases where locals are set to a sane initial state, e.g. for strings and dynamic arrays? What about (references to) objects? Managed types are normally

Re: [fpc-devel] Tests of observer feature [was: Considerations about observer]

2012-11-29 Thread michael . vancanneyt
On Thu, 29 Nov 2012, luiz americo pereira camara wrote: I fail to see how the current interface forbids this ? It does not forbids. It's just an example of the need to check if a object implements an IFPObserver before attaching it. You have said that there's no real life situation you

Re: [fpc-devel] Tests of observer feature [was: Considerations about observer]

2012-11-29 Thread michael . vancanneyt
On Thu, 29 Nov 2012, luiz americo pereira camara wrote: - I cannot define FieldsObserver as IFPObserver (the reasons why do i prefer as it are above) - Using FieldsObserver as TObject each time i attach/dettach from a TFields there will be a type cast that i know before hand is not necessary

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread michael . vancanneyt
On Tue, 27 Nov 2012, luiz americo pereira camara wrote: 2012/11/27 Michael Van Canneyt mich...@freepascal.org: On Tue, 27 Nov 2012, luiz americo pereira camara wrote: Hi, i requested a change to observer interface with some considerations in http://bugs.freepascal.org/view.php?id=23394

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread michael . vancanneyt
On Wed, 28 Nov 2012, Vincent Snijders wrote: 2012/11/28 michael.vancann...@wisa.be It IS a big change. There is production code out there that uses this, and this is an incompatible change. Then Luiz is right on time with his proposal, with the frist release candidate of the first release

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread michael . vancanneyt
On Wed, 28 Nov 2012, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: Then Luiz is right on time with his proposal, with the frist release candidate of the first release that contains this feature. If production code already uses it, then the production

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread michael . vancanneyt
On Wed, 28 Nov 2012, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: At some point, there must be an object, and at some point, there is a typecast, You often can't reroot external components, but if they support tcomponent What does reroot external

Re: [fpc-devel] Memory Streams unable to handle reads past 2GB

2012-11-06 Thread michael . vancanneyt
On Mon, 5 Nov 2012, Andrew Brunner wrote: Same problem with TMemoryStream.Write :-( On 11/05/2012 10:09 PM, Andrew Brunner wrote: objpas/classes/classesh.inc TCustomMemoryStream function Read(var Buffer; Count: LongInt): LongInt; override; Having Read result declared as LongInt is

Re: [fpc-devel] Observer support in Delphi

2012-10-24 Thread michael . vancanneyt
On Tue, 23 Oct 2012, luiz americo pereira camara wrote: While looking for the new TextHint property in Delphi docs, i found that recent Delphi implements Observer support. See: http://docwiki.embarcadero.com/Libraries/XE3/en/System.Classes.TComponent.Observers

Re: [fpc-devel] Observer support in Delphi

2012-10-24 Thread michael . vancanneyt
On Wed, 24 Oct 2012, Graeme Geldenhuys wrote: On 2012-10-24 07:52, michael.vancann...@wisa.be wrote: However, given the total lack of documentation, it is hard to say. +1 I had a look too, the Embarcadero website isn't much help. From what I've seen, I can surmise it is geared towards

Re: [fpc-devel] Observer support in Delphi

2012-10-24 Thread michael . vancanneyt
On Wed, 24 Oct 2012, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: Recently observer support was added to fpc. Just wondering what path fpc will follow: 1) Ditches the current fpc implementation and implements a Delphi compatible interface 2) Time to

Re: [fpc-devel] FPC related fairy tale

2012-10-18 Thread michael . vancanneyt
On Thu, 18 Oct 2012, Sven Barth wrote: Hello together! Over the past weeks I've spent some time on getting something to work in FPC and now I'm about to commit this either this evening or at least this weekend (depending on the time I have). Now I thought that I'd make a little test to

Re: [fpc-devel] XML Parser problems with C-Data and Character Encoding

2012-09-27 Thread michael . vancanneyt
On Thu, 27 Sep 2012, Andrew Brunner wrote: On 09/27/2012 04:19 AM, Mattias Gaertner wrote: Have you tried setting the right encoding in the xml? http://mantis.freepascal.org/view.php?id=22990 I have, and it did and it did work (thanks Sergei :-) Maybe you can explain what you are trying

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread michael . vancanneyt
On Thu, 27 Sep 2012, Marcos Douglas wrote: On Thu, Sep 27, 2012 at 11:01 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 27 Sep 2012, at 15:51, Marcos Douglas wrote: What is the advantages to the compiler return the error bellow? ERROR: unit1.pas(31,3) Error: Duplicate identifier

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread michael . vancanneyt
On Thu, 27 Sep 2012, Marcos Douglas wrote: But this is a programmer's choice, ie, using or not the Self. The problem, IMHO, is that I can't choose when we talk about local variables. You can: Use delphi mode. Michael. ___ fpc-devel maillist -

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread michael . vancanneyt
On Thu, 27 Sep 2012, Marcos Douglas wrote: Yes, it's always possible. In practice, I haven't seen this happen a single time in the 10+ years that the compiler has had this feature. That doesn't mean that it's impossible, but it's another factor in the good to have versus causes more harm

Re: [fpc-devel] Using Macros for IInterface

2012-09-26 Thread michael . vancanneyt
On Wed, 26 Sep 2012, Graeme Geldenhuys wrote: On 2012-09-25 22:16, Henry Vermaak wrote: I've used a macro for this in the past. E.g. : {$macro on} {$ifdef windows} {$define CCONV:=stdcall} {$else} {$define CCONV:=cdecl} {$endif} Then use CCONV where you would specify the calling

Re: [fpc-devel] Using Macros for IInterface

2012-09-26 Thread michael . vancanneyt
On Wed, 26 Sep 2012, Sven Barth wrote: Am 26.09.2012 12:28, schrieb Marco van de Voort: In our previous episode, Sven Barth said: end; IInterface = IUnknown; This depends on whether we want to enable $macro in the system unit... It doesn't work at all since macro's

Re: [fpc-devel] inode number

2012-09-24 Thread michael . vancanneyt
On Mon, 24 Sep 2012, Michael Schnell wrote: In the RTL, is there an encapsulation for finding the inode number of a file in an extX file system ? Or dis anybody already do code for this ? You need to use the fpstat function for this. The stat record contains the inode number. Michael.

Re: [fpc-devel] URIParser is not up to spec

2012-09-19 Thread michael . vancanneyt
On Wed, 19 Sep 2012, Sergei Gorelkin wrote: 19.09.2012 11:45, Graeme Geldenhuys пишет: Hi, I have to deal with complex URL's in a new part in my project, and thought I would take advantage of the already existing URIParser unit in FPC. At closer inspection I noticed that the URIParser is

Re: [fpc-devel] TProcess and arguments with quotes

2012-09-05 Thread michael . vancanneyt
On Wed, 5 Sep 2012, Martin wrote: From http://bugs.freepascal.org/view.php?id=22801 You should not pass quotes. The quotes are only needed in a shell. That is not always possible. And the quotes work on most platforms. Windows is an exception (as usual). See below. I know TProcess

Re: [fpc-devel] TProcess and arguments with quotes

2012-09-05 Thread michael . vancanneyt
On Wed, 5 Sep 2012, michael.vancann...@wisa.be wrote: On Wed, 5 Sep 2012, Martin wrote: From http://bugs.freepascal.org/view.php?id=22801 You should not pass quotes. The quotes are only needed in a shell. That is not always possible. And the quotes work on most platforms. Windows is

Re: [fpc-devel] TProcess and arguments with quotes

2012-09-05 Thread michael . vancanneyt
On Wed, 5 Sep 2012, Martin wrote: On 05/09/2012 10:38, Martin wrote: function RunCommand(const cmdline:string;var outputstring:string):boolean; deprecated; Sorry seen to late, it is deprecated... Seems that FPC is missing the functionality for commandline (which is a property that

Re: [fpc-devel] TProcess and arguments with quotes

2012-09-05 Thread michael . vancanneyt
On Wed, 5 Sep 2012, Marco van de Voort wrote: In our previous episode, Martin said: function RunCommand(const cmdline:string;var outputstring:string):boolean; deprecated; Sorry seen to late, it is deprecated... Seems that FPC is missing the functionality for commandline (which is a

Re: [fpc-devel] Implementing a Dataset

2012-09-03 Thread michael . vancanneyt
On Mon, 3 Sep 2012, Felipe Monteiro de Carvalho wrote: On Mon, Sep 3, 2012 at 11:18 AM, michael.vancann...@wisa.be wrote: I think your best bet is to create a descendent of TBufDataset: it is in itself a full TDataset. You'll have to implement the least amount of methods there, and you can

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread michael . vancanneyt
On Tue, 28 Aug 2012, Graeme Geldenhuys wrote: On 28/08/12 02:48, Luiz Americo Pereira Camara wrote: Back in 2010, in the thread about observer support in fcl, i asked if the actions would be customizable so i could, e.g., notify/observe if a child was added or removed in a tree structure.

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread michael . vancanneyt
On Tue, 28 Aug 2012, Luiz Americo Pereira Camara wrote: Em 28/8/2012 04:50, michael.vancann...@wisa.be escreveu: On Mon, 27 Aug 2012, Luiz Americo Pereira Camara wrote: I ask to change to a mechanism that could allow customizable operations (more than one) That is why you have

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread michael . vancanneyt
On Tue, 28 Aug 2012, Luiz Americo Pereira Camara wrote: Em 28/8/2012 09:15, michael.vancann...@wisa.be escreveu: On Tue, 28 Aug 2012, Luiz Americo Pereira Camara wrote: Why not let TFPObservedOperation as integer and define constants. It could define a constant like ooUser = 32 Below

Re: [fpc-devel] Does FPC optimize unused parameters ?

2012-08-08 Thread michael . vancanneyt
On Wed, 8 Aug 2012, Jonas Maebe wrote: Martin wrote on Wed, 08 Aug 2012: Out of curiosity. Is there an optimization like this [removing calculation/load of unused parameters] No. (or is it possible? After the body of the called routine has been parsed, it would be possible in theory

Re: [fpc-devel] Opening FPC base classes

2012-07-23 Thread michael . vancanneyt
On Mon, 23 Jul 2012, Martin Schreiber wrote: Hi, I am the author of MSEide+MSEgui, a Free Pascal development environment: http://sourceforge.net/projects/mseide-msegui/ MSEide+MSEgui is not Delphi compatible and handles some basic TComponent issues differently to Lazarus:

Re: [fpc-devel] Opening FPC base classes

2012-07-23 Thread michael . vancanneyt
On Mon, 23 Jul 2012, Martin Schreiber wrote: On Monday 23 July 2012 15:31:42 michael.vancann...@wisa.be wrote: I don't see why you cannot do the same. It's perfectly possible to use the streaming system for both TComponent and other classes. All it takes is RTTI, which happens to be enabled

Re: [fpc-devel] Packpage Installer.

2012-07-20 Thread michael . vancanneyt
On Fri, 20 Jul 2012, Cristofer Martins wrote: I think it could be very usefull for all the comunity. Python have pypi and ruby have ruby Gems, FreePascal having its own easy way of install/uninstall packpages would make installing and using packpages easy, with a good standard library,

Re: [fpc-devel] Class field reordering

2012-07-18 Thread michael . vancanneyt
On Wed, 18 Jul 2012, Martin Schreiber wrote: On Tuesday 17 July 2012 09:40:36 michael.vancann...@wisa.be wrote: Maybe, but what about performance? Another complication is the updatebuffer with the oldvalues. Thinking about it: I would allocate the buffer as is, with for all string fields

Re: [fpc-devel] Class field reordering

2012-07-18 Thread michael . vancanneyt
On Wed, 18 Jul 2012, Martin Schreiber wrote: On Wednesday 18 July 2012 08:19:02 Martin Schreiber wrote: Used in order TParams create tmseparam items instead of TParam: TCollection: - FItemClass Probably can be solved in a forked db.pas Or by 2 other solutions: * having a global

Re: [fpc-devel] Class field reordering

2012-07-18 Thread michael . vancanneyt
On Wed, 18 Jul 2012, Martin Schreiber wrote: On Wednesday 18 July 2012 09:33:09 michael.vancann...@wisa.be wrote: I think you are missing an important point: You want some radical changes, so I expect you to be the one giving the reasons/motivations for a change. I want to help find

Re: [fpc-devel] Class field reordering

2012-07-17 Thread michael . vancanneyt
On Tue, 17 Jul 2012, Martin Schreiber wrote: On Monday 16 July 2012 17:25:58 michael.vancann...@wisa.be wrote: On Mon, 16 Jul 2012, Martin Schreiber wrote: On Monday 16 July 2012 16:50:06 michael.vancann...@wisa.be wrote: Well, from your code adding the following to the protected section:

Re: [fpc-devel] Class field reordering

2012-07-16 Thread michael . vancanneyt
On Sun, 15 Jul 2012, Martin Schreiber wrote: On Sunday 15 July 2012 19:21:58 Michael Van Canneyt wrote: On Sun, 15 Jul 2012, Martin Schreiber wrote: Currently I need access to the following private FCL class fields because of MSEide+MSEgui extensions: I have looked at your list. (I sent

Re: [fpc-devel] Class field reordering

2012-07-16 Thread michael . vancanneyt
On Mon, 16 Jul 2012, Mattias Gaertner wrote: On Mon, 16 Jul 2012 09:35:16 +0200 (CEST) michael.vancann...@wisa.be wrote: [...] TComponent, TWriter, TReader for example because in MSEide+MSEgui one can place additional components in an inserted tframe and combination of inherited frames and

Re: [fpc-devel] Class field reordering

2012-07-16 Thread michael . vancanneyt
On Mon, 16 Jul 2012, Martin Schreiber wrote: On Monday 16 July 2012 09:35:16 michael.vancann...@wisa.be wrote: The DB components mainly because MSEgui stores string fields as UnicodeString in datasets and because of the direct data access by index without scrolling. So you take away the

Re: [fpc-devel] Class field reordering

2012-07-16 Thread michael . vancanneyt
On Mon, 16 Jul 2012, Martin Schreiber wrote: On Monday 16 July 2012 16:50:06 michael.vancann...@wisa.be wrote: Well, from your code adding the following to the protected section: Property ValueBuffer : Pointer Read FValueBuffer; Property Validating : Boolean Read FValidating ;

Re: [fpc-devel] How to delete cookie in fcl-web?

2012-07-02 Thread michael . vancanneyt
On Mon, 2 Jul 2012, silvioprog wrote: Hello, What better way to delete a cookie using fcl-web? Remembering that to delete a cookie simply set the 'Thu, 01-Jan-70 00:00:01 GMT' date to expires property. There is a demo in freepascal showing how to do this? I think it would be interesting to

Re: [fpc-devel] Windows 64bit SEH exception handling

2012-06-20 Thread michael . vancanneyt
On Wed, 20 Jun 2012, Sergei Gorelkin wrote: 19.06.2012 23:43, tomek пишет: Hello, with reference to http://bugs.freepascal.org/view.php?id=12742 about random crash with Windows OpenDialog Box only on Win7 64bit. Today I compile trunk-fpc with TEST_WIN64_SEH support and it seems that

Re: [fpc-devel] Parallel procedures

2012-06-15 Thread michael . vancanneyt
On Fri, 15 Jun 2012, Mattias Gaertner wrote: Hi, FPC does not yet have parallel loops/procedures, but there is a unit that helps to create parallel procedures/methods (mtprocs). http://wiki.freepascal.org/Parallel_procedures I use this unit since 4 years in several of my projects, which

Re: [fpc-devel] Breaking change in FPC 2.6.1

2012-05-02 Thread michael . vancanneyt
On Wed, 2 May 2012, Martin Schreiber wrote: On 01.05.2012 17:37, Michael Van Canneyt wrote: As written before, in MSEgui I'll define a bookmarkty type, so MSEgui users have bookmarkty in order to avoid the warning. FPC and Lazarus probably can't do the same because of Delphi compatibility.

Re: RE : RE : RE : [fpc-devel] Breaking change in FPC 2.6.1

2012-04-25 Thread michael . vancanneyt
On Wed, 25 Apr 2012, Marco van de Voort wrote: In our previous episode, Ludo Brands said: that is increasingly happening, with the first D7 supports disappearing) The underlying problem is that the Delphi Tbookmark definition migrated from the simple record tag to something that holds (or

Re: [fpc-devel] RFC: sqlDB extend TStatementType

2012-04-19 Thread michael . vancanneyt
On Thu, 19 Apr 2012, LacaK wrote: Hi , now we have in sqlDB.pp: TStatementType = (stNone, stSelect, stInsert, stUpdate, stDelete, stDDL, stGetSegment, stPutSegment, stExecProcedure, stStartTrans, stCommit, stRollback, stSelectForUpd); Statement type is initialy determined by parsing

Re: [fpc-devel] RFC: sqlDB extend TStatementType

2012-04-19 Thread michael . vancanneyt
On Thu, 19 Apr 2012, LacaK wrote: In fact, this is not quite correct. Insert into table (a,b,c) returning values (x,y,z) can also be done with an Open, yet it will probably get stInsert as type. This case is handled in PrepareStatement phase. In case of IBConnection is StatementType

Re: [fpc-devel] Request to review patch from 21530

2012-04-12 Thread michael . vancanneyt
On Wed, 11 Apr 2012, Luiz Americo Pereira Camara wrote: Hi, Can someone review the patch of http://bugs.freepascal.org/view.php?id=21530 ? I applied the patch, but I don't see what the reason is for having it read-only. I can think of use-cases where I would want to set the dataset as

Re: [fpc-devel] sqlite support for Android

2012-04-03 Thread michael . vancanneyt
On Mon, 2 Apr 2012, Felipe Monteiro de Carvalho wrote: Hello, In Android a dlopen operation without a full path will fail: sqliteDLL:=DlOpen('libsqlite.so',RTLD_LAZY); == fails sqliteDLL:=DlOpen('libsqlite3.so',RTLD_LAZY); == fails

Re: [fpc-devel] sqlite support for Android

2012-04-03 Thread michael . vancanneyt
On Tue, 3 Apr 2012, Felipe Monteiro de Carvalho wrote: On Tue, Apr 3, 2012 at 11:47 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: In Android a dlopen operation without a full path will fail: A bit of googling suggests that the above statement is wrong:

Re: [fpc-devel] TStrings Add(array of string)

2012-04-02 Thread michael . vancanneyt
On Sun, 1 Apr 2012, Andrew Haines wrote: On 04/01/12 05:13, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: I was thinking about TStrings possibly having an overloaded function Add or AddStrings where the argument is an array of string? procedure Add(strs:

Re: [fpc-devel] Are C style operators default or not?

2012-03-27 Thread michael . vancanneyt
On Tue, 27 Mar 2012, Sven Barth wrote: Am 27.03.2012 07:47, schrieb Gennadiy Poryev: Hi all, I’ve recently ran into weird problem with “C style operators”. Though the story is about Lazarus, I thought I better ask it here. All of a sudden, my Lazarus trunk had refused to build

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-03-23 Thread michael . vancanneyt
On Fri, 23 Mar 2012, LacaK wrote: Michael, I updated patch for fcl-db test suite. See: http://bugs.freepascal.org/view.php?id=17303 Would you be so glad and will you apply them please ? Done, rev. 20572. As I wrote yesterday, I uploaded last patch for fcl-db test suite to

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-03-22 Thread michael . vancanneyt
On Thu, 22 Mar 2012, LacaK wrote: And will you apply also diffs to fcl-db tests ? So we can run complete test suite ... I will do so later today. Michael, I updated patch for fcl-db test suite. See: http://bugs.freepascal.org/view.php?id=17303 Would you be so glad and will you

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-03-21 Thread michael . vancanneyt
On Tue, 20 Mar 2012, Marcos Douglas wrote: On Tue, Mar 20, 2012 at 8:12 PM, michael.vancann...@wisa.be wrote: On Tue, 20 Mar 2012, Marcos Douglas wrote: On Tue, Mar 20, 2012 at 6:59 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Tue, 20 Mar 2012, Marcos Douglas wrote:

Re: [fpc-devel] What's the state of string?

2012-03-21 Thread michael . vancanneyt
On Wed, 21 Mar 2012, Hans-Peter Diettrich wrote: I wonder about much code in the RTL/FCL, that depends on String type arguments, like: Procedure TStream.WriteAnsiString (const S : String); Var L : Longint; begin L:=Length(S); WriteBuffer (L,SizeOf(L)); WriteBuffer

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-03-21 Thread michael . vancanneyt
On Wed, 21 Mar 2012, Marcos Douglas wrote: On Wed, Mar 21, 2012 at 3:34 AM, LacaK la...@zoznam.sk wrote: create table #t (col1 int NULL, col2 varchar(60) NULL) (MS SQL Server nullability is controled by database setting ANSI null default so you can check this setting on your temp database

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-03-20 Thread michael . vancanneyt
On Tue, 20 Mar 2012, Marcos Douglas wrote: On Tue, Mar 20, 2012 at 6:59 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Tue, 20 Mar 2012, Marcos Douglas wrote: No. Anyway, I change the colum names (id,name to col1, col2) The error is: Cannot insert the value NULL into column

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-03-19 Thread michael . vancanneyt
On Mon, 19 Mar 2012, LacaK wrote: michael.vancann...@wisa.be wrote / napísal(a): On Thu, 15 Mar 2012, Marcos Douglas wrote: On Mon, Feb 27, 2012 at 9:33 AM, Marcos Douglas m...@delfire.net wrote: On Mon, Feb 27, 2012 at 5:08 AM, michael.vancann...@wisa.be wrote: On Mon, 27 Feb

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-03-19 Thread michael . vancanneyt
On Mon, 19 Mar 2012, LacaK wrote: Hi Michael, splitting files into two packages was unavoidable? Yes. As you can see for the other databases, we always keep the header imports separate from the components. Standard time-tested practice. Hm, although I am not happy with this, I can do

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-03-16 Thread michael . vancanneyt
On Thu, 15 Mar 2012, Marcos Douglas wrote: On Mon, Feb 27, 2012 at 9:33 AM, Marcos Douglas m...@delfire.net wrote: On Mon, Feb 27, 2012 at 5:08 AM,  michael.vancann...@wisa.be wrote: On Mon, 27 Feb 2012, LacaK wrote: Hi, let me share same basic info/ideas about TMSSQLConnection : 1. As

Re: [fpc-devel] FPImage unit ImageHandlersManager design problem

2012-03-15 Thread michael . vancanneyt
On Thu, 15 Mar 2012, Andrew Brunner wrote: Having just looked over the class factory for images in FPC, I found that ImageHandlersManager is missing a critical method to obtain a reader or write by the extension used. Presently the getReader uses the TypeName and not the Extenstion. I find

Re: [fpc-devel] FreeNotification and opRemove

2012-03-08 Thread michael . vancanneyt
On Thu, 8 Mar 2012, Martin wrote: Further more: the program below, does not crash in delphi (turbo delphi) I also noticed. I suspect the problem is the owner; If it gets a free notification, it should pass it to all the children. Michael. On 08/03/2012 09:56, Martin wrote: I found a

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-02-27 Thread michael . vancanneyt
On Mon, 27 Feb 2012, LacaK wrote: Hi, let me share same basic info/ideas about TMSSQLConnection : 1. As Marcos wrote it is descendant of sql-db TSQLConnection class and provides native connector for MS SQL Servers and Sybase servers 2. is depends/requires on FreeTDS open-source cross

Re: [fpc-devel] PParser.IsTokenHint deserves an update

2012-02-20 Thread michael . vancanneyt
On Mon, 20 Feb 2012, Hans-Peter Diettrich wrote: The extended syntax of hint tokens should be reflected in IsTokenHint. See oldlinux.pp: unit oldlinux deprecated 'Use Baseunix/Unix'; Perhaps it's sufficient to skip the next token after an hint, when it is a string literal? Dunno about the

Re: [fpc-devel] MakeSkel problem with operators?

2012-02-20 Thread michael . vancanneyt
On Mon, 20 Feb 2012, Hans-Peter Diettrich wrote: In an attempt to check the yet undocumented FCL units for use with FPDoc and MakeSkel, I got an error in the created skeleton for gmp: element name=operator (MPFloat, MPFloat): Boolean The and chars in operator names should be escaped in

Re: [fpc-devel] Problem documenting source code

2012-02-17 Thread michael . vancanneyt
On Fri, 17 Feb 2012, Hans-Peter Diettrich wrote: After adding documentation for some items in the FPDoc Editor, I have problems running MakeSkel or FPDoc. Both report errors in the input file, which seem to be related to wrong or missing compiler options for that file. How can a

Re: [fpc-devel] Changing Windows API A routines in SysUtils to W in Windows NT

2012-02-07 Thread michael . vancanneyt
On Tue, 7 Feb 2012, Felipe Monteiro de Carvalho wrote: On Mon, Feb 6, 2012 at 9:35 PM, Sergei Gorelkin sergei_gorel...@mail.ru wrote: So, this is basically a first step of locking Windows RTL to use utf-8 by default No, it will not use UTF-8 by default because that would break

Re: [fpc-devel] FPDoc imports

2012-02-02 Thread michael . vancanneyt
On Thu, 2 Feb 2012, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: Well, It took me about 15 lines to implement it in dglobals.pas of fpdoc. I moved one function out of fpdocoptsxml to mkfpdoc to split the input line. First tests work fine. See revision 20213. A fine solution

Re: [fpc-devel] FPDoc imports

2012-02-01 Thread michael . vancanneyt
On Wed, 1 Feb 2012, Hans-Peter Diettrich wrote: Sven Barth schrieb: Am 31.01.2012 14:42, schrieb Hans-Peter Diettrich: I still wonder why the number of units in the imported RTL package increases over time. Initially it contains 7 modules, and 38 modules in the end, where the RTL

Re: [fpc-devel] EBCDIC (was On a port of Free Pascal to the IBM 370)

2012-01-30 Thread michael . vancanneyt
On Mon, 30 Jan 2012, steve smithers wrote: Finally, the suggestions about developing FreePascal/370 as an ASCII compiler seem somewhat pointless to me.  Why would anyone want to use an ASCII compiler on an EBCDIC system?  I accept fully that producing an EBCDIC version will present problems,

Re: [fpc-devel] EBCDIC (was On a port of Free Pascal to the IBM 370)

2012-01-30 Thread michael . vancanneyt
On Mon, 30 Jan 2012, rvmart...@ntlworld.com wrote: michael.vancann...@wisa.be wrote the following on 30/01/12 14:49:53: I think the reason for producing an ASCII version first is very simple: All FPC sources - including the compiler - are in ASCII encoding. I don't understand this

Re: [fpc-devel] FPDoc improvements

2012-01-27 Thread michael . vancanneyt
On Fri, 27 Jan 2012, Hans-Peter Diettrich wrote: Unfortunately I managed to supply the EasyImports.patch twice, please drop Mantis #21168 as a dupe of #21167. Sorry for the inconvenience :-( Thank you. I will look at it. Starting with this patch I suggest further improvements of fpdoc.

Re: [fpc-devel] FPDoc improvements

2012-01-27 Thread michael . vancanneyt
On Fri, 27 Jan 2012, Hans-Peter Diettrich wrote: should first document dependent units. It currently does not know how to do this by itself. Again, what are you talking about? FPDoc doesn't require a special order of input files, neither source nor documentation files :-) It does, see

Re: [fpc-devel] New bug in building RTL docs

2012-01-25 Thread michael . vancanneyt
On Wed, 25 Jan 2012, michael.vancann...@wisa.be wrote: On Wed, 25 Jan 2012, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: On Tue, 24 Jan 2012, Hans-Peter Diettrich wrote: michael.vancann...@wisa.be schrieb: Today I had problems in the FPDocManager, where the

Re: [fpc-devel] New bug in building RTL docs

2012-01-25 Thread michael . vancanneyt
On Wed, 25 Jan 2012, Hans-Peter Diettrich wrote: michael.vancann...@wisa.be schrieb: I checked here at work, and here the SVN copy is different than at home. So I committed a fix, please test rev. 20169. Just tested: the dupes error has gone away :-) Great. Now remain the syntax

Re: [fpc-devel] New bug in building RTL docs

2012-01-24 Thread michael . vancanneyt
On Tue, 24 Jan 2012, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: On Mon, 23 Jan 2012, Hans-Peter Diettrich wrote: Today I had problems in the FPDocManager, where the scanner/parser throws an exception String list does not allow duplicates. Reason may be duplicate include

Re: [fpc-devel] On a port of Free Pascal to the IBM 370

2012-01-18 Thread michael . vancanneyt
On Wed, 18 Jan 2012, Michael Schnell wrote: AFAI learned: I suppose the code generator should be doable, regarding that there already are several supported CPUs. At least a working compiler might come into existence in a decent amount of time, adding optimizations is another project.

Re: [fpc-devel] On a port of Free Pascal to the IBM 370

2012-01-18 Thread michael . vancanneyt
On Wed, 18 Jan 2012, Tomas Hajny wrote: On Wed, January 18, 2012 10:15, michael.vancann...@wisa.be wrote: On Wed, 18 Jan 2012, Michael Schnell wrote: AFAI learned: I suppose the code generator should be doable, regarding that there already are several supported CPUs. At least a working

Re: [fpc-devel] On a port of Free Pascal to the IBM 370

2012-01-18 Thread michael . vancanneyt
On Wed, 18 Jan 2012, Tomas Hajny wrote: On Wed, January 18, 2012 11:23, michael.vancann...@wisa.be wrote: On Wed, 18 Jan 2012, Tomas Hajny wrote: On Wed, January 18, 2012 10:15, michael.vancann...@wisa.be wrote: On Wed, 18 Jan 2012, Michael Schnell wrote: AFAI learned: I suppose the code

Re: [fpc-devel] On a port of Free Pascal to the IBM 370

2012-01-18 Thread michael . vancanneyt
On Wed, 18 Jan 2012, Tomas Hajny wrote: But then you are assuming the RTL should be using EBCDIC internally as well ? Obviously, that will be a lot more work. But I don't think this should be so. I may be overlooking something, of course. However: Our RTL is based on common (target

Re: [fpc-devel] Cant' compile trunk

2011-12-27 Thread michael . vancanneyt
On Tue, 27 Dec 2011, José Mejuto wrote: Hello FPC, I can't compile trunk: [...] make[1]: Entering directory `F:/fpc/svn/utils/importtl' F:/fpc/fpc/2.4.4/bin/i386-win32/ppc386.exe -Fu../../rtl/units/i386-win32 -FE. -FUunits/i386-win32 -di386 importtl.pas Free Pascal Compiler version

Re: [fpc-devel] Paramstr trailing spaces, bug or not?

2011-12-22 Thread michael . vancanneyt
On Thu, 22 Dec 2011, Joost van der Sluis wrote: Hi all, With this command-line: fpmake --prefix=bla --baseistall=test paramstr(1) gives --prefix=bla . Thus with the trailing space. Is this a bug or a feature? It's what the shell has passed on. The paramstr() code doesn't do any parsing

Re: [fpc-devel] MakeSkel and FPDoc projects

2011-12-17 Thread michael . vancanneyt
On Sat, 17 Dec 2011, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: Feel free to create this program. If I may give some advice: the tasks you outline belong in a Documentation writers IDE. To some degree, maybe. But checking for updates should be doable by a script, without

Re: [fpc-devel] Determin file size - how?

2011-12-15 Thread michael . vancanneyt
On Thu, 15 Dec 2011, Hans-Peter Diettrich wrote: Tomas Hajny schrieb: I wonder how to obtain the size of an file on disk. The only function I could find so far is FileSize, which requires an open File, but nothing for an file name :-( ATM FileSize(TEXT) would help, too, but FileSize only

Re: [fpc-devel] Determin file size - how?

2011-12-15 Thread michael . vancanneyt
On Thu, 15 Dec 2011, Hans-Peter Diettrich wrote: michael.vancann...@wisa.be schrieb: Normally I use TFileStream's, which have a Size property. But I find it nasty to open an file, when I only want to know its size. FPC (like Delphi) lacks some basic file/directory handling functions (Size,

Re: [fpc-devel] FPDoc parser doesn't handle forward declarations properly?

2011-12-08 Thread michael . vancanneyt
On Thu, 8 Dec 2011, Graeme Geldenhuys wrote: On 7 December 2011 23:09, Hans-Peter Diettrich DrDiettrich1@ wrote: Does there exist a chance (trick) to use the input files of a different installation, without copying the description files? If you use the make command to generate the

Re: [fpc-devel] TFPCustomCanvas Expanded Clipping

2011-12-08 Thread michael . vancanneyt
On Thu, 8 Dec 2011, Felipe Monteiro de Carvalho wrote: Some more changes I'd like to propose. It seams that Rectangle is not TCanvas compatible: procedure TFPPixelCanvas.DoRectangle (const Bounds:TRect); A rectangle over (0, 0, 10, 10) should not include the pixels line with x=10 and y=10

Re: [fpc-devel] TFPCustomCanvas Expanded Clipping

2011-12-08 Thread michael . vancanneyt
On Thu, 8 Dec 2011, Felipe Monteiro de Carvalho wrote: On Thu, Dec 8, 2011 at 9:33 AM, michael.vancann...@wisa.be wrote: Yes, but changing this will break existing code ? Yes, it cannot do both at the same time, unless we add a property PaintLikeTCanvas or something like that. Hm. I

Re: [fpc-devel] FPDoc parser doesn't handle forward declarations properly?

2011-12-08 Thread michael . vancanneyt
On Thu, 8 Dec 2011, Hans-Peter Diettrich wrote: michael.vancann...@wisa.be schrieb: Does there exist a chance (trick) to use the input files of a different installation, without copying the description files? If you use the make command to generate the docs, simply pass the FPCSRCDIR

Re: [fpc-devel] TFPCustomCanvas Expanded Clipping

2011-12-07 Thread michael . vancanneyt
On Wed, 7 Dec 2011, Felipe Monteiro de Carvalho wrote: On Wed, Dec 7, 2011 at 8:06 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Indeed good idea, I am implementing like that with slightly different names (TFPCustomRegion and IsPointInRegion). commited, I did not

  1   2   3   >