This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Use C99-compliant scanf under _GNU_SOURCE.
- From: Zack Weinberg <zackw at panix dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, Rical Jasan <ricaljasan at pacific dot net>, Andreas Schwab <schwab at suse dot de>
- Date: Mon, 12 Feb 2018 11:33:10 -0500
- Subject: Re: [PATCH] Use C99-compliant scanf under _GNU_SOURCE.
- Authentication-results: sourceware.org; auth=none
- References: <20180210181736.11570-1-zackw@panix.com> <alpine.DEB.2.20.1802121621290.15590@digraph.polyomino.org.uk>
On Mon, Feb 12, 2018 at 11:25 AM, Joseph Myers <joseph@codesourcery.com> wrote:
> On Sat, 10 Feb 2018, Zack Weinberg wrote:
>
>> +#if defined __USE_ISOC99 || defined __USE_XOPEN2K
>
> That's equivalent to just #ifdef __USE_ISOC99 (since __USE_XOPEN2K implies
> __USE_ISOC99; POSIX.1-2001 is based on C99).
Well, that certainly throws the question of how anyone could possibly
use the noncompliant vscanf into stark relief.
zw