Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!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: Any good makes out there? Message-ID: <20353@agate.BERKELEY.EDU> Date: 14 Feb 89 05:28:13 GMT References: <8902100715.AA16566@postgres.Berkeley.EDU> <7381@batcomputer.tn.cornell.edu> <20212@agate.BERKELEY.EDU> <5963@cbmvax.UUCP> Sender: usenet@agate.BERKELEY.EDU Organization: Missionaria Phonibalonica Lines: 76 In article <5963@cbmvax.UUCP> jesup@cbmvax.UUCP (Randell Jesup) writes: mwm@eris.berkeley.edu (Mike (I'll think of something yet) Meyer) writes: <> <>The compiler may, but lc/lc1/lc2 don't. They always return 0 for <>IoError. Makes using execute in Make or (a cc command) pretty <>pointless - which is why I don't. < < Huh? lc/lc1/lc2 don't have to set IoErr(). They just have to That message _isn't_ from Make; it's from Execute(). For a make, I <>don't want to see that message. Worse yet, you can't get the dos error <>code from IoErr for lc (though real dos commands give it to you), <>and Execute always hands back a -1 - no matter how well the command <>works. < < Execute() never prints such a message. Ok, when _my_ code isn't printing that message, then who is? It could be the Lattice Execute() stub. Given the context of the comment (discussing using Execute() in Lattice C), this means Execute() said it. Finally, Lattice has the obnoxious habit of throwing away the value <>returned from main. < < That habit is the ANSI standard. main() is void. Section 2.1.2.2: int main(void) { /*...*/ } int main(int argc, char *argv[]) { /*...*/ } and A return from the initial call to the main function is equivalent to calling the exit function with the value returned by the main function, ...