This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6846] Full featured printf hooks
- From: "rsa at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 3 Mar 2009 05:15:38 -0000
- Subject: [Bug libc/6846] Full featured printf hooks
- References: <20080815064110.6846.rsa@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From rsa at us dot ibm dot com 2009-03-03 05:15 -------
Created an attachment (id=3787)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=3787&action=view)
pritnf-hooks-2009-03-02.patch with full interface
Ulrich
This patch satisfies the interface requirements you laid out earlier and
completes the work of the previous patch, namely:
Unified function for creating a length modifier or conversion specifier
override.
Elimination of the free callback, and elimination of the requirement that a
user malloc storage. GLIBC now takes a 'size' indicator when the length
modifier is registered and allocates storage for the user based on this.
I'd like comment on two factors. Should I break apart the array of overrides
into a few single-type arrays rather than the unified array?
Also the current flag mechanism is limited since it uses unused bits in the
existing data_args_type flag to set user flags. It only supports up to 16
override format codes this way. I didn't want to extend any public structures
or modify and public functions without comment from you.
Thanks
Ryan
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #3011 is|0 |1
obsolete| |
Attachment #3783 is|0 |1
obsolete| |
http://sourceware.org/bugzilla/show_bug.cgi?id=6846
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.