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
(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
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
Update of task #3693 (project avr-libc):
Status:None = In Progress
Assigned to:None = aesok
___
Reply to this item at:
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:
Update of patch #4102 (project avr-libc):
Status:None = In Progress
Assigned to:None = aesok
___
Additional Item Attachment:
File name:
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
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
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
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
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
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 .-.-. --... ...-- -.. .
12 matches
Mail list logo