Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rochester!pt!b.gp.cs.cmu.edu!ralf From: ralf@b.gp.cs.cmu.edu (Ralf Brown) Newsgroups: comp.sys.ibm.pc Subject: YATCB (Yet Another Turbo C Bug) Message-ID: <74@b.gp.cs.cmu.edu> Date: Mon, 3-Aug-87 21:10:17 EDT Article-I.D.: b.74 Posted: Mon Aug 3 21:10:17 1987 Date-Received: Tue, 4-Aug-87 06:31:30 EDT Organization: Carnegie-Mellon University, CS/RI Lines: 24 I was (trying to) recompile NetHack in the integrated environment, and found the following bug: if the maximum number of warnings is set to greater than 127, the first warning will immediately be followed by the error "Too many warnings". [Looks like someone used signed char instead of unsigned char...] I also found a discrepancy between TC and TCC--NetHack got compile-time errors in the integrated environment but not from TCC! The integrated environment complained about old-style function declarations in files for which one of the include files contained a prototype. Example: PCUNIX.C contains the declaration extern time_t time(); TIME.H (included by PCUNIX.C) contains the prototype time_t _Cdecl time(time_t *timer); PCUNIX compiles fine with TCC, but gets an error on the above declaration in the integrated environment. -- -=-=-=-=-=-=-=-= {harvard,seismo,ucbvax}!b.gp.cs.cmu.edu!ralf =-=-=-=-=-=-=-=- ARPAnet: RALF@B.GP.CS.CMU.EDU BITnet: RALF%B.GP.CS.CMU.EDU@CMUCCVMA AT&Tnet: (412) 268-3053 (school) FIDOnet: Ralf Brown at 129/31 DISCLAIMER? Who ever said I claimed anything? "I do not fear computers. I fear the lack of them..." -- Isaac Asimov