Re: [fpc-devel] negative TDateTime values and MinDateTime

2011-08-02 Thread LacaK
Jonas Maebe wrote / napĂ­sal(a): On 02 Aug 2011, at 13:45, LacaK wrote: What do you think, can we change MinDateTime from -693593.0 to -693594.0; (to accept 01/01/0001 23:59:59.999) http://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg07989.html Thanks, it seems, that Joost in 200

Re: [fpc-devel] negative TDateTime values and MinDateTime

2011-08-02 Thread Jonas Maebe
On 02 Aug 2011, at 13:45, LacaK wrote: What do you think, can we change MinDateTime from -693593.0 to -693594.0; (to accept 01/01/0001 23:59:59.999) http://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg07989.html Jonas ___ fpc-devel mai

Re: [fpc-devel] negative TDateTime values and MinDateTime

2011-08-02 Thread Hans-Peter Diettrich
LacaK schrieb: Exception is raised because v2 What's the rationale for a restriction at all? DoDi ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] negative TDateTime values and MinDateTime

2011-08-02 Thread LacaK
Hi , I have problem with comparing negative datetime values in fcl-db test suite (accessed as variants). It is related to VariantToDate function (in cvarutil.inc), where result is tested against MinDateTime. For example: v1 :=strtodatetime('01.01.0001 12:00:00'); v2 :=strtodatetime('01.01.0

Re: RE : [fpc-devel] Including Sorokin's TRegExpr in FPC

2011-08-02 Thread Michael Van Canneyt
On Tue, 2 Aug 2011, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: I knew I recognised the name of the author. This code is already used in lazarus and can be found in components/synedit/synregexpr.pas. I had to work on it because the original code doesn't run on

Re: RE : [fpc-devel] Including Sorokin's TRegExpr in FPC

2011-08-02 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > >> I knew I recognised the name of the author. This code is already used in > >> lazarus and can be found in components/synedit/synregexpr.pas. I had to > >> work > >> on it because the original code doesn't run on cpu's requiring alignment. > >

Re: RE : [fpc-devel] Including Sorokin's TRegExpr in FPC

2011-08-02 Thread Michael Van Canneyt
On Tue, 2 Aug 2011, Vincent Snijders wrote: 2011/8/2 Ludo Brands : I knew I recognised the name of the author. This code is already used in lazarus and can be found in components/synedit/synregexpr.pas. I had to work on it because the original code doesn't run on cpu's requiring alignment. Th

RE : RE : [fpc-devel] Including Sorokin's TRegExpr in FPC

2011-08-02 Thread Ludo Brands
> > I knew I recognised the name of the author. This code is > already used > > in lazarus and can be found in components/synedit/synregexpr.pas. I > > had to work on it because the original code doesn't run on cpu's > > requiring alignment. The patch is attached at > > http://bugs.freepascal.

Re: RE : [fpc-devel] Including Sorokin's TRegExpr in FPC

2011-08-02 Thread Vincent Snijders
2011/8/2 Ludo Brands : > I knew I recognised the name of the author. This code is already used in > lazarus and can be found in components/synedit/synregexpr.pas. I had to work > on it because the original code doesn't run on cpu's requiring alignment. > The patch is attached at http://bugs.freepas

RE : [fpc-devel] Including Sorokin's TRegExpr in FPC

2011-08-02 Thread Ludo Brands
I knew I recognised the name of the author. This code is already used in lazarus and can be found in components/synedit/synregexpr.pas. I had to work on it because the original code doesn't run on cpu's requiring alignment. The patch is attached at http://bugs.freepascal.org/view.php?id=19109. Lud

Re: [fpc-devel] Including Sorokin's TRegExpr in FPC

2011-08-02 Thread Mark Morgan Lloyd
Felipe Monteiro de Carvalho wrote: Hello, I was porting a Delphi project and I needed support for TRegExpr. Well, it seams that FPC doesn't already come with one, but it has a Regexpr unit, but it's docs are not very positive about how complete this library is: http://wiki.lazarus.freepascal.or