Mail Archives: djgpp/1999/11/01/14:15:40
On Sun, 31 Oct 1999, Rob de Bijl wrote:
> I'm trying to convert a program to DJGPP C format. I run into problems =
> when I try to compile the following declaration:
>
> void interrupt (*oldlptisr)();
>
> It gives me he following errors:
>
> Error: parse error before '*'
> Error: 'interrupt' declared as a function returning a function
DJGPP doesn't support the `interrupt' keyword. You will have to
rewrite your code. Section 18.9 of the DJGPP FAQ list explains how to
do that. Please read it, and if something is still unclear after
that, ask specific questions here.
> In the program it is used as follows:
>
> oldlptisr = getvect(lptP.intNo);
>
> How do I convert the above line so that DJGPP understands it?
Use either `__dpmi_get_protected_mode_interrupt_vector' or
`_go32_dpmi_get_protected_mode_interrupt_vector'. Again, the FAQ
explains the details in section 18.9.
> Also, can any of you point me to a place
> where I can learn more about interrupt programming for DOS using DJGPP?
Section 18.9, near its end, has some pointers for you.
And please don't post in HTML.
- Raw text -