Date: Mon, 1 Nov 1999 13:42:04 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Rob de Bijl cc: djgpp AT delorie DOT com Subject: Re: Interrupt programming in DJGPP In-Reply-To: <7vgvo9$if$1@news.worldonline.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.