🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#373
From: Lawrence Giltner
Date: Tue, 11 Aug 1992 04:07
35 lines
2200 bytes
I hope this one isn't a FAQ because I haven't found any mention
of this problem in all the official patch files I've FTP'ed.

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.
The lines before and after were properly terminated by semicolons.
The program compiled after I commented these two lines in DOS.H.
FileCompare reported no differences from the factory disk file.
The declarations match the ones printed in my TURBO C Reference
Guide.  I even had somebody send me a copy of his DOS.H (yea, I
know it isn't legal, but I'm getting desperate) and the lines
were essentially the same with a slight difference in white
space.  I am facing re-copying the compiler from the floppy and
having to go through and reconfigure everything again.  B-(

Can anybody help me set this right without having to spend my
non-existant money on an upgrade?

   main.frame (man'fram'), n. the largest peripheral you can attach to a PC.
   Of course these are my opinions, you'll have to go out and buy your own!
 VAX Internet  ldgiltne@wsuhub.uc.twsu.edu   VAX BITNET  ldgiltne at twsuvax
                Wichita State University   Wichita, Kansas,  U.S.A.
Technical Details
Message-ID: <1992Aug10.220740.34@wsuhub.uc.twsu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!mips!swrinde!sdd.hp.com!caen!kuhub.cc.ukans.edu!wsuhub.uc.twsu.edu!ldgiltne

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!mips!swrinde!sdd.hp.com!caen!kuhub.cc.ukans.edu!wsuhub.uc.twsu.edu!ldgiltne
From: ldgiltne@wsuhub.uc.twsu.edu (Lawrence Giltner)
Newsgroups: comp.os.msdos.programmer
Subject: Problem w/ TURBO-C 2.01 & <dos.h>
Message-ID: <1992Aug10.220740.34@wsuhub.uc.twsu.edu>
Date: 11 Aug 92 04:07:40 GMT
Organization: Wichita State University, Wichita, Ks
Lines: 35