[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: |
Dmitry K. |
Subject: |
Re: [avr-libc-dev] Please have a look at avr-libc patch #3750 |
Date: |
Tue, 6 Sep 2005 09:33:53 +1100 |
User-agent: |
KMail/1.5 |
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 changes.
>
> I disagree. I don't want to poison our interface spec with
> non-protoype function declarations. After all, this is the year of
> 2005, and non-prototype function decl's have been deprecated in 1989.
I agree with your remark. Nevertheless, it is possible to avoid an old
C-code rewriting. It is needed to place into 'stdio.h' 2 definitions,
old:
extern FILE *fdevopen(int (*__put)(char), int (*__get)(void), int __opts);
and new:
extern FILE * new_fdevopen (int (*__put)(char, FILE*), int (*__get)(FILE*),
int __opts);
And it is needed to define (at library build time) a second entry to the
only one new 'fdevopen'.
Dmitry.
- Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750, (continued)
- Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750, Bernard Fouche, 2005/09/05
- Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750, Björn Haase, 2005/09/06
- Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750, Joerg Wunsch, 2005/09/06
- Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750, Bernard Fouché, 2005/09/06
- Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750, Joerg Wunsch, 2005/09/06
- Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750, Erik Christiansen, 2005/09/07
- Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750, Joerg Wunsch, 2005/09/05
- Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750, Bernard Fouche, 2005/09/05
- Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750, Russell Shaw, 2005/09/05
- Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750, Björn Haase, 2005/09/06
- Re: [avr-libc-dev] Please have a look at avr-libc patch #3750,
Dmitry K. <=
[avr-libc-dev] Re: [avr-gcc-list] Please have a look at avr-libc patch #3750, Russell Shaw, 2005/09/04
Message not available