delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/02/08:37:23

From: Damian Yerrick <DELCAPSyerricde AT pineight DOT 8mSOFTWARE DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Interrupt programming in DJGPP
Organization: Pin Eight Software <http://yerricde.tripod.com/binaries/>
Message-ID: <zYYeOF3KkLMdVoG4jvxae7+7Hr19@4ax.com>
References: <7vgvo9$if$1 AT news DOT worldonline DOT nl>
X-Newsreader: Forte Agent 1.6/32.525
MIME-Version: 1.0
Lines: 43
X-Trace: +r4CDjKWa2dXb9zrn3blUvjU1VKnGSwjKSoPGqUt2fiXo/aJ3qnk/Rg7/SlvAgp5VK07UyF1Lmuc!pARUa9AgD5DnK+NXVNgZ0AWlJWZsqrra5DjiQBP0QktI9tN8wXQTiUy+H1kunVjXOA==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Tue, 02 Nov 1999 06:42:11 GMT
Distribution: world
Date: Tue, 02 Nov 1999 06:42:12 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sun, 31 Oct 1999 09:57:23 +0100,
"Rob de Bijl" <rdebijl AT worldonline DOT nl> wrote:

> Hello everybody,
> 
> I'm new to DJGPP, however I have some experience in C-programming.
> 
> 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
> 
> 
> In the program it is used as follows: 
> 
> oldlptisr = getvect(lptP.intNo);
> 
> How do I convert the above line so that DJGPP understands it?
> Does any of you gurus have a tip for me?
> Also, can any of you point me to a place where I can learn more
> about interrupt programming for DOS using DJGPP?

Read The Fine Manual, in this case, DJGPP FAQ list.
http://www.delorie.com/djgpp/v2faq/
especially the section on porting legacy code.

> It would help me a lot.

It always helps, when you have a problem, to look at the
documentation. You might have missed the solution last time you looked
at it.

To see how one library manages lots of interrupts, look at the source
for Allegro.
http://www.talula.demon.co.uk/allegro/

--
Damian Yerrick
Visit my web site: http://yerricde.spedia.net/

- Raw text -


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