Mail Archives: djgpp-workers/2003/04/02/16:11:25
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 -