[fpc-pascal] Minimal Sylpheed plugin in FreePascal

Jonas Maebe jonas.maebe at elis.ugent.be
Tue May 17 22:18:22 CEST 2011

On 17 May 2011, at 22:03, Anton Shepelev wrote:

> Do  I understand correctly, that at load my library was dis-
> abling the exception mask for the whole program?

The fpu exception mask is always global for an entire program. It is not possible to disable it only for the code in one single library.

> Is masking such exceptions a common practice in C?

It's not C programmers that do it. It's the C library that does it in its startup code, or maybe even the operating system when creating a new process. But as a result, indeed almost no single C program takes invalid floating point operations into account (which is bad practice, because e.g. floating point operations involving NaNs can be extremely slow).

> Will  it
> be politically correct to ask the developer to fix the prob-
> lem?

You can try, but he probably won't care.


More information about the fpc-pascal mailing list