delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/04/02/16:11:25

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3E8B51E9.CADBBDB0@phekda.freeserve.co.uk>
Date: Wed, 02 Apr 2003 22:11:05 +0100
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: %n$, *m$ and some other c99 support for doprnt.c
References: <3E8B4CC9 DOT E21C27CF AT hrz1 DOT hrz DOT tu-darmstadt DOT de>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

Juan Manuel Guerrero wrote:
> This is a patch to implement %n$, *m$ and some other c99 support for
> _doprnt.c.

Excellent!

> 1) New flag added:
>      ': (thousands' grouping flag) The code checks if locale support is
>      available or not. If not available this flag has no influence at all
>      on output.
> 
> 2) New length modifiers added:
>      hh: conversion specifiers: d, i, o, ,u, x, or X applies to a
>      signed/unsigned char.
>      ll: conversion specifiers: d, i, o, ,u, x, or X applies to a
>      signed/unsigned long long int.
>      j:  conversion specifiers: d, i, o, ,u, x, or X applies to a intmax_t
>      or uintmax_t.
>      t:  conversion specifiers: d, i, o, ,u, x, or X applies to a ptrdiff_t.
>      z:  conversion specifiers: d, i, o, ,u, x, or X applies to a size_t.

doprnt.c in CVS already has these. Since you basically rewrote printf ;) , we
need to revert some (if not all) of the C99 patches I made and apply your
patch.

> 3) New conversion specifier added:
>      a, A: A double argument is converted in the style: [-]0xh.hhhhp[+-]d,
>      where h is a hexadecimal digit, d is a decimal digit and p stands for
>      the base 2.
[snip]

Excellent! That was next on my to-do list, after some work on printfs and
NaNs.

Are you planning to make a version of this patch against DJGPP CVS?

Thanks, bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019