This is the mail archive of the
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: <firstname.lastname@example.org> <alpine.DEB.email@example.com>
On Mon, Feb 12, 2018 at 11:25 AM, Joseph Myers <firstname.lastname@example.org> 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.