Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-11

[patch] - types.pp

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

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

Changes:
* 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' http://tinyurl.com/y6lc26 There's no place like 127.0.0.1

Reply by email