Michael Van Canneyt ha scritto:

On Mon, 14 Jan 2008, Tiziano De Togni wrote:

I was trying to convert a C source to Pascal. It uses signals, and I thought
that these things were not available on Win platforms.

Documentation talks about signals in oldlinux and baseunix units only (Linux).

Then I went on the signals.pp unit in:

C:\fpc\...\source\rtl\win32\signals.pp


I understand the function signal, but I don't see a way to "Raise" a signal.

There isn't a proper way; Signals on windows have totally different semantics than on Linux/unix.
You should not try to imitate them.

I agree, so I removed all signal related code from the C source and in win32 I used other things.

But then, what is signals.pp meant for?

tiziano
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to