🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #384

Re: Problem w/ TURBO-C 2.01 & <dos.h>

#384
From: Bob Montante
Date: Tue, 11 Aug 1992 20:06
23 lines
1525 bytes
ldgiltne@wsuhub.uc.twsu.edu (Lawrence Giltner) <1992Aug10.220740.34@wsuhub.uc.twsu.edu> :
| 
| I was messing with small freeware program (TURBO C v2.01) and
| among the many warnings, these two error messages kept occuring.
| I found that these errors occurr in any program where I use <dos.h>.
| 
| /* Here are the lines as edited from a couple printscreen dumps. */
| 
| void    interrupt(* _Cdecl getvect(int interruptno)) ();
|                    ^
|  Error C:\Y\C\INCLUDE\DOS.H 180: Declaration syntax error
| 
| void     _Cdecl setvect(int interruptno, void interrupt (*isr) ());
|                                                           ^
|  Error C:\Y\C\INCLUDE\DOS.H 211: Function definition out of place
| 
| The carets mark where TC had the highlight on when I reviewed.


I tried a quick experiment using getvect(), and it seems to work fine
for me.  Perhaps you have some compiler switch set so that it fails to
recognize these lines?  (e.g., the _Cdecl is misinterpreted...)  Or perhaps
the names were already used once?
Technical Details
Message-ID: <1992Aug11.150637.5620@news.cs.indiana.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!mips!sdd.hp.com!ux1.cso.uiuc.edu!news.cs.indiana.edu!bobmon@sandshark.cs.indiana.edu
References: <1992Aug10.220740.34@wsuhub.uc.twsu.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!mips!sdd.hp.com!ux1.cso.uiuc.edu!news.cs.indiana.edu!bobmon@sandshark.cs.indiana.edu
From: Bob Montante <bobmon@sandshark.cs.indiana.edu>
Subject: Re: Problem w/ TURBO-C 2.01 & <dos.h>
Message-ID: <1992Aug11.150637.5620@news.cs.indiana.edu>
Organization: dyskaryotic
References: <1992Aug10.220740.34@wsuhub.uc.twsu.edu>
Date: Tue, 11 Aug 1992 15:06:30 -0500
Lines: 23