Re: [libposix-development] printf parser
Status: Pre-Alpha
Brought to you by:
hdante
From: Kirill A. S. <ki...@sh...> - 2009-06-28 18:50:07
|
On Sun, Jun 28, 2009 at 6:41 PM, Henrique Almeida<hd...@gm...> wrote: > I'm approaching a complete printf implementation, and I've just > updated a printf parser to the repository, which is already in an > advanced state. It's able to parse non trivial strings, like "e %-2ld > f %0#'133.45Lg g %+.hhX i\n". The actual output functions > (output_unsigned, output_double, etc.) are still missing, so it > doesn't print anything yet, but I'll start writing those soon. Also > missing are dealing with "numbered arguments" (things like "%2$d %1$s > %3$g", they allow out of order argument passing), which are harder and > require a working malloc implementation. > > Please run the tests "printf_parser" and "printf_scanner" and check > that they don't crash or give weird results. printf_scanner should > return zero and printf_parser should have the following result at the > moment: > > abcd > e f g i > > I expect to finish this until the middle of the week, so that we have > a nearly complete printf. What about unit tests? |