Article View: comp.sys.amiga.tech
Article #11422Re: Any good makes out there?
From: Matt Dillon
Date: Sun, 12 Feb 1989 06:48
Date: Sun, 12 Feb 1989 06:48
29 lines
1384 bytes
1384 bytes
: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.
:
:Finally, Lattice has the obnoxious habit of throwing away the value
:returned from main.
So, it seems that neither Aztec or Lattice set the DOS return code,
though they do return it in D0 (ignored by a CLI/Execute).
As for throwing away main's return value , this is what is supposed
to happen. That is, so the following:
main()
{
}
NO return at all (i.e. garbage in D0) is equivalent to returning 0.
If you want to return an exit code, you need to use exit(n). Unless you
*were* using exit(), in which case the first comment applies.
>I'd like to see a version of system that actually worked - with _any_
>compiler. Can you provide that code for Lattice 5.0.
Amen to that.
-Matt
Technical Details
Message-ID:
<8902120648.AA14117@postgres.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!POSTGRES.BERKELEY.EDU!dillonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!POSTGRES.BERKELEY.EDU!dillon From: dillon@POSTGRES.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga.tech Subject: Re: Any good makes out there? Message-ID: <8902120648.AA14117@postgres.Berkeley.EDU> Date: 12 Feb 89 06:48:37 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 29