avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] address@hidden: [avr-libc-commit] avr-libc ./ChangeLog ./


From: Joerg Wunsch
Subject: [avr-gcc-list] address@hidden: [avr-libc-commit] avr-libc ./ChangeLog ./NEWS doc/examples/twites...]
Date: Tue, 6 Sep 2005 21:26:21 +0200
User-agent: Mutt/1.4.2.1i

FYI.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
--- Begin Message --- Subject: [avr-libc-commit] avr-libc ./ChangeLog ./NEWS doc/examples/twites... Date: Tue, 06 Sep 2005 14:49:15 -0400
CVSROOT:        /cvsroot/avr-libc
Module name:    avr-libc
Branch:         
Changes by:     Joerg Wunsch <address@hidden>   05/09/06 18:49:15

Modified files:
        .              : ChangeLog NEWS 
        doc/examples/twitest: twitest.c 
        include        : stdio.h 
        libc/stdio     : Files.am clearerr.c fclose.c fdevopen.c feof.c 
                         ferror.c fgetc.c fgets.c fputc.c fputs.c 
                         fputs_p.c fwrite.c gets.c puts.c puts_p.c 
                         stdio_private.h vfprintf.c vfscanf.c 
Added files:
        libc/stdio     : iob.c 

Log message:
        Major API changes of the standard IO facilities.
        
        Part of these changes (passing user data to get and put) have been
        contributed by Ted Roth as patch #3750.
        
        * include/stdio.h: implement the new prototype for fdevopen() that
        allows passing user data to the backend put and get functions;
        retain a backwards-compatible prototype iff
        __STDIO_FDEVOPEN_COMPAT_12 is defined before including stdio.h; move
        definition of struct __file from stdio_internal.h here, so user code
        will be able to directly declare objects of type FILE; include the
        udata field in struct __file; add macros fdev_set_udata() and
        fdev_get_udata() to access the user data field; implement a
        macro-based, malloc()-free alternative API to fdevopen() consisting
        of the macros fdev_setup_stream() and FDEV_SETUP_STREAM() together
        with _FDEV_SETUP_READ, _FDEV_SETUP_WRITE, and _FDEV_SETUP_RW that
        can be passed to declare the open intent; add _FDEV_ERR and
        _FDEV_EOF to be returned by the internal get function; add inline
        macros shadowing the functions clearerr(), feof(), and ferror() (now
        that struct __file is user-visible); add documentation for all the
        API changes in the introduction; sub-structure the introductional
        doxygen comment; remove the "this is likely to be changed in future"
        warning.
        * libc/stdio/fdevopen.c (fdevopen): Update dox for new get and put
        argument types.  Change the get() and put() function pointers so
        that they take the stream as an argument.  Remove the definition of
        __iob[] to avoid the need for dragging in fdevopen() to access the
        standard streams.
        * libc/stdio/fgetc.c (fgetc): Pass stream to get() method; set __SERR
        or __SEOF dependent of the backend's return code.
        * libc/stdio/fputc.c (fputc): Pass stream to put() method.
        * libc/stdio/fputs.c (fputs): Ditto.
        * libc/stdio/fputs_p.c (fputs_P): Ditto.
        * libc/stdio/fwrite.c (fwrite): Ditto.
        * libc/stdio/puts.c (puts): Ditto.
        * libc/stdio/puts_p.c (puts_P): Ditto.
        * libc/stdio/stdio_private.h: remove struct __file from here.
        * libc/stdio/iob.c: New file (split off of fdevopen.c).
        * libc/stdio/Files.am: add iob.c.
        * doc/examples/twitest/twitest.c: convert to the new stdio API.
        * libc/stdio/clearerr.c: undef the shadow macro first.
        * libc/stdio/ferror.c: (Ditto.)
        * libc/stdio/feof.c: (Ditto.)
        * libc/stdio/fclose.c: change inttypes.h into stdint.h.
        * libc/stdio/fgets.c: don't forcibly set __SERR, getc() already
        handled that.
        * libc/stdio/gets.c: (Ditto.)
        * libc/stdio/vfprintf.c: Allocate the fp conversion buffer on
        the stack as opposed to using malloc().
        * libc/stdio/vfscanf.c: (Ditto.)

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/ChangeLog.diff?tr1=1.544&tr2=1.545&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/NEWS.diff?tr1=1.81&tr2=1.82&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/doc/examples/twitest/twitest.c.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/include/stdio.h.diff?tr1=1.18&tr2=1.19&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/iob.c?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/Files.am.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/clearerr.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/fclose.c.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/fdevopen.c.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/feof.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/ferror.c.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/fgetc.c.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/fgets.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/fputc.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/fputs.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/fputs_p.c.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/fwrite.c.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/gets.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/puts.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/puts_p.c.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/stdio_private.h.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/vfprintf.c.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/libc/stdio/vfscanf.c.diff?tr1=1.10&tr2=1.11&r1=text&r2=text



_______________________________________________
avr-libc-commit mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-libc-commit


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]