[fpc-devel] [patch] - types.pp

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Nov 21 10:18:12 CET 2006


Attached is a patch for types.pp.  It must be applied from the root
FPC Source directory.

* As suggested by Vinzent Hoefler, regarding my patch supplied on the
25 July. I removed the SIZE = TSize declaration from types.pp.  I
searched all of the FPC Src for any references to SIZE.  All I could
find was local Size variables or types, all declared in the units it
was needed, never using the one declared in the types.pp unit. If I
missed on, it can just be change to TSize.  I recompiled the whole FPC
Source and compiled Lazarus and a few of my apps and they all seem to
be happy with SIZE being gone.
* Added two new Size() functions that work the same as Rect(),
Bounds() or Point().
   function Size(AWidth, AHeight: Integer): TSize;
   function Size(ARect: TRect): TSize;

Graeme Geldenhuys
Location: S 34° 03.168'  E018° 49.342'

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

More information about the fpc-devel mailing list