[fpc-pascal]Calling intr from Windows

Jonas Maebe jonas at zeus.rug.ac.be
Sat Mar 16 10:10:48 CET 2002


On Fri, 15 Mar 2002 xhajt03 at vol.cz wrote:

> can anybody talk about an API here?  Anyway, I don't think we should
> use any "Win32 API" function, that isn't available on some of current
> target platforms and won't be supported on future ones either, in our
> RTL.

I agree, but I also think we shouldn't have any function in the RTL that
can silently fail. Either we remove the intr and msdos procedures from the
interface of all Dos.pp units (except of that for the go32v2 target), or
we put a call to runerror in them (with a unique value that gets added to
the docs with the description "unsupported function on the current
platform").

Striving to a common interface for all platforms is a nice goal, but if it
can't be done, you should not silently fail imho, since that kind of bugs
are the hardest to track. The same can be said for mark/release, which
also do nothing currently.


Jonas





More information about the fpc-pascal mailing list