[m-dev.] for review: string__fmt

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Aug 8 22:48:28 AEST 2000


On 08-Aug-2000, Peter Ross <peter.ross at miscrit.be> wrote:
> On Tue, Aug 08, 2000 at 12:59:32PM +1000, Tyson Dowd wrote:
> > On 07-Aug-2000, Peter Ross <peter.ross at miscrit.be> wrote:
> > > +	% valid float conversion specifiers
> > > +spec([P | _Ps]) --> { P = f(_) }, ['e'].
> > > +spec([P | _Ps]) --> { P = f(_) }, ['E'].
> > > +spec([P | _Ps]) --> { P = f(_) }, ['f'].
> > > +spec([P | _Ps]) --> { P = f(_) }, ['F'].
> > > +spec([P | _Ps]) --> { P = f(_) }, ['g'].
> > > +spec([P | _Ps]) --> { P = f(_) }, ['G'].
> > > +% spec([P | _Ps]) --> { P = f(_) }, ['a'].
> > > +% spec([P | _Ps]) --> { P = f(_) }, ['A'].
> > 
> > Why are these commented out?
> > 
> They are valid for sprintf but not by the documentation of
> string__format.

These format specifiers are new in C99.  They are not present in C89.
You should document that, and the comments here should also explain
why the C99 stuff is commented out.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list