SWIs which take no parameters

Tom Hughes tom at compton.nu
Fri Oct 3 18:17:34 BST 2003


In message <5ed49f3b4c.philip at philipnet.com>
          Philip Ludlam <philip at philipnet.com> wrote:

> I'm pretty much finished constructing a SWI file (for Reporter) which
> I'll submit when (a) Martin Avison's said it's OK and (b) I've got one
> final issue sorted: some of the SWIs for Reporter don't take any
> arguments. I thought that using ABSENT instead of ENTRY would still
> produce a C header file which defines veneers for these SWIs, but it
> doesn't.

ABSENT is a way of declaring the SWI for documentation purposes
without actually providing a veneer.

For your case you don't need anything in the SWI body, like this
example for OS_Escape:

  OS_Escape = (NUMBER 0x11B "VDU command for escape (no operation)")

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/



More information about the oslib-user mailing list