[fpc-devel] Re: [patch] types.pp - InflateRect() & Size()

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Jul 25 16:42:57 CEST 2006

Sorry, I added the two Size() functions as a last minute and only
after sending the patch I noticed that it breaks the FPC build!

I attached another patch, without the Size() functions...  Anybody
know how we can get around the Size() issue.  It conflicts with the
"SIZE = TSize;" line on line 94 in unit types.pp

types.pp(267,14) Error: overloaded identifier "SIZE" isn't a function
types.pp(268,14) Error: overloaded identifier "SIZE" isn't a function
types.pp(271,1) Fatal: There were 2 errors compiling module, stopping
types.pp(271,1) Fatal: Compilation aborted


On 7/25/06, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> Hi,
> Attached is a patch for the types.pp unit.  I also include some Unit
> Tests for InflateRect() function in a separate file (uses fpcUnit) by
> wasn't sure how or where to incorporate them.  The patch needs to be
> applied in the root FPC source directory.
> Changes:
>  * Added a new InflateRect() function, which does the same as the
> Windows API call, but is cross-platform.
>  * Added two Size() functions with different parameters that return a
> TSize record. It works the same as the Point() function that returns a
> TPoint record.
> Regards,
>   Graeme.
> --
> There's no place like

There's no place like
-------------- next part --------------
A non-text attachment was scrubbed...
Name: types.pp.patch
Type: text/x-patch
Size: 824 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20060725/b7ad73ce/attachment.bin>

More information about the fpc-devel mailing list