[PATCH v2 10/17] stdio-common: Add tests for formatted fscanf input specifiers

Maciej W. Rozycki macro@redhat.com
Sat Apr 19 10:52:24 GMT 2025


On Thu, 3 Apr 2025, Andreas Schwab wrote:

> > +#include "tst-scanf-format-skeleton.h"
> > +#include "tst-scanf-format-f.h"
> > +#include "tst-scanf-format-real.h"
> > +#include "tst-scanf-format-skeleton-double.c"
> 
> If tst-scanf-format-real.h would be included in
> tst-scanf-format-skeleton-double.c then verify_input and read_real could
> be functions istead of macros.

 Thank you for the suggestion.  I converted these callables from functions 
to macros in the course of adding the host-specific skeleton for long 
doubles.  However having nested macro calls turned out fragile and moving 
the inclusion as you suggest improves code structure, so I have made this 
change now.

 Patches posted at: 
<https://inbox.sourceware.org/libc-alpha/alpine.DEB.2.21.2504190620570.18253@angie.orcam.me.uk/>,
<https://inbox.sourceware.org/libc-alpha/alpine.DEB.2.21.2504190627470.18253@angie.orcam.me.uk/>.

  Maciej



More information about the Libc-alpha mailing list