From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Interrupt programming in DJGPP Organization: Pin Eight Software Message-ID: References: <7vgvo9$if$1 AT news DOT worldonline DOT nl> X-Newsreader: Forte Agent 1.6/32.525 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" 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/