[Gtk2forpascal-devel] Fw: [lazarus-dev] patch for gtk2 for pascal
Brought to you by:
mgaertner
From: Mattias G. <nc-...@ne...> - 2004-09-29 10:01:57
|
Should we apply this patch? It sounds useful, but it will break existing gtk2 applications. Mattias Begin forwarded message: Date: Wed, 29 Sep 2004 11:43:36 +0200 From: Mazen NEIFER <ma...@fr...> To: laz...@mi... Subject: [lazarus-dev] patch for gtk2 for pascal Hello, Mattias, can you please commit this patch for GTK2 for pascal. It mainly replace all macros argument of type pointer by an untyped argument. For example function GTK_IS_RANGE(obj:Pointer) : boolean; becomes function GTK_IS_RANGE(const obj) : boolean; As it was initially (in C code) a macro. This also allow saving a lot of ifdef gtk2 in lazarus while keeping current code able to compile. Also these macros should accept every king of types and just test if it is a pointer to a valid range object. So I think is should be a const parameter. Mazen, -- |