Article View: comp.sys.amiga.tech
Article #11833Re: Prototypes & the default promotions (was about the new RKM stuff..
From: John Toebes
Date: Wed, 15 Mar 1989 17:28
Date: Wed, 15 Mar 1989 17:28
29 lines
2356 bytes
2356 bytes
In article <15802@oberon.USC.EDU> papa@pollux.usc.edu (Marco Papa) writes:
>You're quite right, BUT MANX 5.0 is way way down the line, AND a lot of
>"current" programs do assume that the argument promotion is performed
>(which has a lot of implications like sign extension, etc...). As you
>mention, the ANSI standard ensured that 'old' programs that assumed the
>"argument promotion" be performed will still behave like K&R, UNLESS
>function prototypes have been added. MANX 5.0 (as well as Lattice 5.0)
????????????????????????
>library stubs will clearly be different from the current release.
Perhaps I am missing something here, but since Lattice C V4.0, we have
been supplying prototypes and #pragma statements for calling all the system
functions. These work with both short integers and long integers as well
as conforms to the current ANSI proposed standard. Given that the actual
system functtions being called aren't changing and that we already follow the
ANSI conventions, there doesn't appear to be any need for us to change
the compiler/glue routines. Note also, that the Amiga.lib glue routines
shipped with the compiler is the EXACT library supplied by Commodore.
>
>The reason I am saying that MANX 5.0 is way down the line is that they are
>still asking on BIX what "features" programmers would like to see in MANX
>5.0 (as you probably know MANX 4.x will not be released). So you should
>assume that you'll have to work with MANX 3.6 for quite some time.
>-- Marco Papa 'Doc'
/*---------------------All standard Disclaimers apply---------------------*/
/*----Working for but not officially representing SAS or Lattice Inc.-----*/
/*----John A. Toebes, VIII usenet:...!mcnc!rti!sas!toebes-----*/
/*------------------------------------------------------------------------*/
Technical Details
Message-ID:
<970@sas.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!mcnc!rti!sas!toebesReferences:
<8903111954.AA04828@jade.berkeley.edu> <15802@oberon.USC.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!mcnc!rti!sas!toebes From: toebes@sas.UUCP (John Toebes) Newsgroups: comp.sys.amiga.tech Subject: Re: Prototypes & the default promotions (was about the new RKM stuff.. Message-ID: <970@sas.UUCP> Date: 15 Mar 89 17:28:30 GMT References: <8903111954.AA04828@jade.berkeley.edu> <15802@oberon.USC.EDU> Reply-To: toebes@sas.UUCP (John Toebes) Organization: SAS Institute Inc, Cary NC Lines: 29