This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3 02/11] ldbl-128ibm-compat: Add ISO C99 versions of scanf functions
On Mon, 09 Dec 2019, Paul E Murphy wrote:
>On 12/3/19 11:05 AM, Gabriel F. T. Gomes wrote:
>> From: "Gabriel F. T. Gomes" <gabrielftg@linux.ibm.com>
>>
>> + /* For ISO C99, scan the single-precision value with "%as" to test
>> + that __isoc99_*scanf ignores the 's'. For DEPRECATED_SCANF, do not
>> + use "%as", because that would try to scan a string and allocate
>> + space for it. */
>> +#if __GLIBC_USE (DEPRECATED_SCANF)
>> +# define FMT "%La %a"
>> +#else
>> +# define FMT "%La %as"
>> +#endif
>
>That does simplify the patch nicely. LGTM.
Thanks, this and the preceding patch are now committed.