Re: [avr-libc-dev] Re: [avr-gcc-list] Please have a look at avr-libc patch #3750

2005-09-05 Thread Björn Haase
Russell Shaw wrote on Montag, 5. September 2005 02:39 : I'd rather adapt to a newer and better api than continue with old junk. I agree. One should be prepared to face a flaming war on this list, but I think that a substantial improvement is worth to endure this. Bjoern

Re: [avr-libc-dev] Please have a look at avr-libc patch #3750

2005-09-05 Thread Joerg Wunsch
(Accumulated followup to several replies.) As Dmitry K. wrote: It is possible to facilitate transition to a new variant: 1. To change the order of arguments 'put' as: int (*put)(FILE *, char) -- int (*put)(char, FILE *) It would allow to leave the asm program 'put' without

Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750

2005-09-05 Thread Bernard Fouché
Joerg Wunsch wrote: As the malloc()-less API change is long overdue, I'd rather move that in by the same time. We're going to have a new library minor version number, so we are eligible for an API change anyway. Great! How about the following API: #define __STDIO_FBUF_SIZE

[avr-libc-dev] [task #3693] Add new devices: mega 640-1280-1281-2560-2561

2005-09-05 Thread Anatoly Sokolov
Update of task #3693 (project avr-libc): Status:None = In Progress Assigned to:None = aesok ___ Reply to this item at:

[avr-libc-dev] [patch #4102] Add support for ATMega 640-1280-1281

2005-09-05 Thread Anatoly Sokolov
Additional Item Attachment, patch #4102 (project avr-libc): File name: binutils-2.16-atmega640_1280_1281.diff Size:0 KB http://savannah.nongnu.org/patch/download.php?item_id=4102item_file_id=5146 ___ Reply to this item at:

[avr-libc-dev] [patch #4102] Add support for ATMega 640-1280-1281

2005-09-05 Thread Anatoly Sokolov
Update of patch #4102 (project avr-libc): Status:None = In Progress Assigned to:None = aesok ___ Additional Item Attachment: File name:

Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750

2005-09-05 Thread Joerg Wunsch
As Joerg Wunsch wrote: -in stdio.h: #define STDIO_SETUP(stream,buf,put,get,flags) FILE stream={buf,\ 0,\ flags,\ sizeof(buf),\ 0,\ put,\ get} That might basically

Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750

2005-09-05 Thread Joerg Wunsch
As Joerg Wunsch wrote: -in stdio.h: #define STDIO_SETUP(stream,buf,put,get,flags) FILE stream={buf,\ 0,\ flags,\ sizeof(buf),\ 0,\ put,\ get} That might basically

Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750

2005-09-05 Thread Bernard Fouche
Joerg Wunsch wrote: . The get backend function can now return -2 to indicate an end-of-file condition, in addition to -1 for an error condition. This will affect the internal state that can be queried using the standard feof() and ferror() functions. The documentation says

Re: [avr-libc-dev] Please have a look at avr-libc patch #3750

2005-09-05 Thread Dmitry K.
On Tuesday 06 September 2005 01:19, Joerg Wunsch wrote: (Accumulated followup to several replies.) ... 2. To clean the specification of arguments in 'stdio.h': fdevopen(int (*put)(), int (*get)(), int opts __attribute__((unused))) It will allow to compile existing programs without

Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750

2005-09-05 Thread Russell Shaw
Joerg Wunsch wrote: As Joerg Wunsch wrote: -in stdio.h: #define STDIO_SETUP(stream,buf,put,get,flags) FILE stream={buf,\ 0,\ flags,\ sizeof(buf),\ 0,\ put,\ get} That might

Re: [avr-libc-dev] malloc-less i/o: small comparison

2005-09-05 Thread Joerg Wunsch
As Dmitry K. wrote: Results are (in decimal): textdata bss dec hex filename 1060 12 101082 43a ex1_old.elf 260 16 0 276 114 ex1_new.elf Thanks for the comparision! -- cheers, Jorg .-.-. --... ...-- -.. .