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.

Submitter:  None
Submitted:  Fri 18 Feb 2005 01:25:12 AM UTC
   
 
Category:  None Priority:  3 - Low
Status:  Done Privacy:  Public
Assigned to:  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>
Group administrator
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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

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.13-4448.
Corresponding source code