delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/01/14:15:40

Date: Mon, 1 Nov 1999 13:42:04 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Rob de Bijl <rdebijl AT worldonline DOT nl>
cc: djgpp AT delorie DOT com
Subject: Re: Interrupt programming in DJGPP
In-Reply-To: <7vgvo9$if$1@news.worldonline.nl>
Message-ID: <Pine.SUN.3.91.991101134135.10931B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019