patchAVR C Runtime Library - Patches: patch #3750, Allow passing user data to stdio...


You are not allowed to post comments on this tracker with your current authentication level.

patch #3750: Allow passing user data to stdio fdevopen() get and put methods.

Submitted by:  None
Submitted on:  Fri 18 Feb 2005 01:25:12 AM UTC  
Category:  None Priority:  3 - Low
Status:  Done Privacy:  Public
Assigned to:  Joerg Wunsch <joerg_wunsch> Originator Email:  -email is unavailable-
Open/Closed:  Closed

Tue 06 Sep 2005 06:53:03 PM UTC, comment #1: 

After some discussion in avr-libc-dev and avr-gcc-list, this
feature has been committed.  There was consensus though to
perform the actual implementation in a slightly different way
that allows full backwards API compatibility.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Fri 18 Feb 2005 01:25:12 AM UTC, original submission:  

This patch allows inserting stream specific data into a FILE * object making it possible to have many streams open that use generic get and put methods and still remain reentrant and store stream specific state information.

Expect this patch to break existing code which uses fdevopen(). Migration is trivial though and the flexibility gained with the get and put methods was worth the effort to me.



Attached Files
file #8423:  avr-libc-put-get-stream-data.diff added by None (11KiB - text/x-patch - First implementation. Patch against cvs head.)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-09-06 joerg_wunsch StatusNone => Done
    Assigned toNone => joerg_wunsch
    Open/ClosedOpen => Closed
2005-02-18 None Attached File- => Added avr-libc-put-get-stream-data.diff, #4193

Back to the top

Powered by Savane 3.5