[fpc-pascal] What about signals.pp on win32?
Michael Van Canneyt
michael at freepascal.org
Mon Jan 14 10:38:29 CET 2008
On Mon, 14 Jan 2008, Tiziano De Togni wrote:
> 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?
It tries to do (for a limited amount of signals) what I advise not to do :-)
Michael.
More information about the fpc-pascal
mailing list