From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: Porting Watcom 11.0 to djgpp Date: Fri, 07 Jan 2000 13:42:36 +0200 Organization: NetVision Israel Lines: 20 Message-ID: <3875D12C.F6931CFF@is.elta.co.il> References: <853fat$5q4$1 AT bgtnsc03 DOT worldnet DOT att DOT net> NNTP-Posting-Host: ras1-p62.rvt.netvision.net.il Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.netvision.net.il 947245438 29791 62.0.172.64 (7 Jan 2000 11:43:58 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 7 Jan 2000 11:43:58 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,ru,hebrew To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Charles Wood wrote: > > I am having a problem declaring a pointer to a function: > > in watcom: > > void interrupt (*old)(); > > this doesn't compile. > > errors: > > dataglb.h : xxx: 'old' was not declared in this scope > dataglb.h : xxx: function 'void interrupt()' is initialized like > a variable GCC doesn't recognize the `interrupt' keyword. See section 18.9 of the DJGPP FAQ list for details of how to install interrupt handlers with DJGPP. You will see that you need to rewrite most of your handler anyhow, so the `interrupt' qualifier should be the least of your problems.