From: "Rob de Bijl" Newsgroups: comp.os.msdos.djgpp Subject: Re: Interrupt programming in DJGPP Date: Tue, 2 Nov 1999 19:20:08 +0100 Organization: WorldOnline News server Lines: 52 Message-ID: <7vn9dr$9oj$1@news.worldonline.nl> References: <7vgvo9$if$1 AT news DOT worldonline DOT nl> NNTP-Posting-Host: vp236-53.worldonline.nl X-Trace: news.worldonline.nl 941566203 10003 195.241.236.53 (2 Nov 1999 18:10:03 GMT) X-Complaints-To: newsmaster AT worldonline DOT nl NNTP-Posting-Date: 2 Nov 1999 18:10:03 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks for your help! Rob Damian Yerrick schreef in berichtnieuws zYYeOF3KkLMdVoG4jvxae7+7Hr19 AT 4ax 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/