This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/6846] Full featured printf hooks

------- Additional Comments From rsa at us dot ibm dot com  2009-03-03 05:15 -------
Created an attachment (id=3787)
 --> (
pritnf-hooks-2009-03-02.patch with full interface


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

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.


           What    |Removed                     |Added
Attachment #3011 is|0                           |1
           obsolete|                            |
Attachment #3783 is|0                           |1
           obsolete|                            |

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]