Article View: comp.sys.amiga.tech
Article #11652Re: Lattice prototype bugs?
From: Mike (I'll think of something ye...
Date: Fri, 03 Mar 1989 00:39
Date: Fri, 03 Mar 1989 00:39
39 lines
2011 bytes
2011 bytes
In article <9334@bloom-beacon.MIT.EDU> rlcarr@athena.mit.edu (Rich Carreiro) writes: <I have discovered what I believe to be some errors in the Lattice C <5.02 prototype files. < <1) proto/icon.h has AllocWBObject() prototyped as being 'struct WBObject' < and AddFreeList() is prototyped as 'long' < < HOWEVER, in the workbench/icon.h include file, they are declared as < < struct WBObject *AllocWBObject(); < VOID AddFreeList(); < < I modified proto/icon.h and the Error 72's I had went away. < <2) stdlib.h DOES NOT have a prototype for rand(). As a result, < the linker won't pick @rand out of lcr.lib when using the < -rr option to lc (it will pick _rand out of lc.lib, though). < <Are these legit bugs or am I being naive? Those are legit - I fixed the first one myself. On the other hand, I've _never_ gotten a release from Lattice where I didn't have to twiddle the include files, though I've gotten releases where I only had to twiddle those that should have come from CBM. There are some other problems with -rr. Onbreak() was apparently compiled without -rr in lcsr.lib, so that it looks for _CXBRK instead of @CXBRK. And one of the utility functions in proto/intuition.h is missing completely from the library. The solution in both cases was to change the proto files so those are declared as __stdarg functions. <mike -- Love and affection, Mike Meyer Of the corporate kind. mwm@berkeley.edu It's just belly to belly, ucbvax!mwm Never eye to eye. mwm@ucbjade.BITNET
Technical Details
Message-ID:
<21092@agate.BERKELEY.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!eris.berkeley.edu!mwmReferences:
<9334@bloom-beacon.MIT.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!eris.berkeley.edu!mwm From: mwm@eris.berkeley.edu (Mike (I'll think of something yet) Meyer) Newsgroups: comp.sys.amiga.tech Subject: Re: Lattice prototype bugs? Message-ID: <21092@agate.BERKELEY.EDU> Date: 3 Mar 89 00:39:05 GMT References: <9334@bloom-beacon.MIT.EDU> Sender: usenet@agate.BERKELEY.EDU Organization: Missionaria Phonibalonica Lines: 39