This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] manual: Document the standardized scanf flag, "m". [BZ #16376]
- From: Andreas Schwab <schwab at suse dot de>
- To: Rical Jasan <ricaljasan at pacific dot net>
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Wed, 07 Feb 2018 09:46:29 +0100
- Subject: Re: [PATCH] manual: Document the standardized scanf flag, "m". [BZ #16376]
- Authentication-results: sourceware.org; auth=none
- References: <7c42f58d-d076-aeb3-a229-2581aa03af94@pacific.net>
On Feb 06 2018, Rical Jasan <ricaljasan@pacific.net> wrote:
> Looking in stdio-common/vfscanf.c, "a" uses GNU_MALLOC, and "m" uses
> POSIX_MALLOC, and there is a MALLOC which is defined to either, and
> throughout the code there are several conditionals where POSIX_MALLOC is
> nested beneath MALLOC (GNU_MALLOC is always MALLOC), but I'm not sure we
> want to document any internal implementation differences (if they're
> even significant). The existing documentation wasn't very detailed
> itself, but I still wanted to mention it.
IMHO the "a" modifier should be marked as deprecated, since it conflicts
with the %a format. I think it would be enough to mention it in a
paragraph, but nowhere else.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."