[fpc-devel] strange code in TThread in classesh.inc

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Sep 29 12:31:47 CEST 2006


On 29/09/06, Tomas Hajny <XHajT03 at mbox.vol.cz> wrote:
> What would be your suggestion - change it to {$IF defined(UNIX) or
> defined(NETWLIBC)}? I'd say that it would be better to make the interface
> completely common, i.e. to get rid of these IFDEFs completely (e.g. by
> including a record defined in platform specific part of the unit).
>
> Tomas

Yeah, I just thought it is unnecessary code duplication and extra work
if it has to be maintained.  The record idea sounds like a good plan
and will get rid of the IFDEF's completely. Sound make the code much
easier to read as well.

Regards,
  - Graeme -



More information about the fpc-devel mailing list