Javier, je wrote to me:
CR>>> const char far *ks; // Pointer to BIOS keyboard flag
EW>> const volatile char far *ks;
FC>> volatile char far * const ks;
EW> Perhaps making the pointer static would a be good idea too, since
here's
EW> only one BIOS keyboard flags byte.
JK> Is "static volatile blablabla" a valid declaration???
JK> Because the volatile is needed, too.
If I am not terribly mistaken, even
static const volatile unsigned char far * const far KeyboardStatus;
is allowed. :-)
It is a constant pointer (possibly located outside the near data segment)
pointing to an unsigned (it contains flags) char (possibly located etc.) that
can be changed by something or someone outside the scope of the program but
not by the program through this pointer.
Bye,
Erik
---
---------------
* Origin: WarmelinkE@vertis.nl (2:282/608.60)
|