[Top][All Lists]

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

Re: RFC: status icon support

From: Andreas Schwab
Subject: Re: RFC: status icon support
Date: Sat, 12 Jan 2008 15:10:10 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux)

David Kastrup <address@hidden> writes:

> Andreas Schwab <address@hidden> writes:
>> David Kastrup <address@hidden> writes:
>>> Richard Stallman <address@hidden> writes:
>>>>     Please no K&R in new code.  
>>>> We have no policy against K&R style.  I recently accepted non-K&R
>>>> function definitions in Emacs sources, but I still do not particularly
>>>> like it.  K&R style is easier to read anyway.
>>> It stops the compiler from doing type checking and type conversions, for
>>> one thing.
>> Unless you add prototypes.
> In which case you have
> a) undefined behavior (the compiler need not check whether the prototype
>    matches the function declaration).

There is nothing undefined in old-style function defintions.

> b) not K&R compatible C, so where is the point?

The Emacs sources use macros that keep prototypes from being visible
from obsolte compilers.  What's your point?


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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