[Top][All Lists]

[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,
   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'.


reply via email to

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