avr-libc-dev
[Top][All Lists]
Advanced

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

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


From: Mudiaga Obada
Subject: Re: [avr-libc-dev] Please have a look at avr-libc patch #3750
Date: Mon, 05 Sep 2005 15:53:58 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.11) Gecko/20050728

> What about having arguments passed to put/get in such a way that an
> 'old' put would pop only
> 'c' and an uptodate one would pop 'c' & 'stream'? (this will fail with
> -mint8 I suppose..)

I think you have good idea here. Which is definitly better than what i
was thinking.

Due to C's left to right argument passing, and the caller responsible
for clearing the stack (if used), it would work just by changing the new
fdevopen putc callback declaration from

int (*__put)(FILE *, char)

to

int (*__put)(char, FILE *)

which happends to be consisten with fputc.

Regards,

Mudiaga Obada








reply via email to

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