🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #1349

Re: MSL C.PPC.Lib (pro 5 -> pro 6)

#1349
From: MWRon
Date: Mon, 30 Oct 2000 20:07
42 lines
2518 bytes
In article <8tk79f$2lr$1@mserv2.dl.ac.uk>, "Gareth J Baker"
<G.J.Baker@dl.ac.uk> wrote:

>There has been a change in fcntl.mac.h in MSL from pro 5 to pro 6. the
>definition of 'open' in pro 5 is now  '_open' (with an underscore) in pro 6.
>A definition of 'open' is inlined to _open but only within a #ifdef POSIX
>construct.
>
>Does anyone know any possible reason for this?

First you shouldn't have been using fcntl.mac.h in the first place for
open(), you should have used the POSIX standard header.   If you had you
would not have noticed any change.   Metrowerks standard libraries include
the source and the header files so that users can use them but you should
not expect any non standard header to be unchanging, that is why we use
these variations.

Now, if you choose to use the function open in your code you are free to
do so since it is not an ANSI/ISO function.  However if you want to use
the POSIX function (which we allow by default) you can use that too.  You
now only have to change the configuration file and it is fixed for the
entire library.

So now...
POSIX is an option globally
Header files are consistent across platforms
Easier to find the correct declaration 
Easier to maintain code and make changes as a user
More POSIX is now available on Macintosh


And there are several other reasons that this approach is better for the
programmer.

Ron

-- 
 "...we feel it's truly the best of the bunch."
Internet Week Reviews...Java Wars 2000
http://www.internetwk.com/reviews00/rev100200.htm

Metrowerks, "Software Starts Here" - Ron Liechty - MWRon@metrowerks.com
Technical Details
Message-ID: <mwron-3010001507480001@c243286-a.bcreek1.mi.home.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!cyclone-sf.pbi.net!165.113.238.17!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwron
References: <8tk79f$2lr$1@mserv2.dl.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,9cbd3180af8f803b
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,9cbd3180af8f803b
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2000-10-30 12:50:35 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!cyclone-sf.pbi.net!165.113.238.17!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwron
From: mwron@metrowerks.com (MWRon)
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: Re: MSL C.PPC.Lib  (pro 5 -> pro 6)
Date: Mon, 30 Oct 2000 15:07:48 -0500
Organization: Metrowerks
Lines: 42
Message-ID: <mwron-3010001507480001@c243286-a.bcreek1.mi.home.com>
References: <8tk79f$2lr$1@mserv2.dl.ac.uk>
NNTP-Posting-Host: p-151.newsdawg.com
X-Newsreader: MT-NewsWatcher 2.4.4