xserver janitorial work

Alan Coopersmith Alan.Coopersmith at Sun.COM
Thu Jun 8 09:40:18 PDT 2006


Greg KH wrote:
> On Thu, Jun 08, 2006 at 01:03:54AM +0200, Matthieu Herrb wrote:
>> - parameters that get promoted to int or double in K&R style
>> (they should ihmo be declared as int or double in "ansi" declaration, in 
>> order to be compatible with old code)
>> How would this happen? With variables that have no explicit "type"?

http://dickey.his.com/ansification/index.html has notes that explain the
pitfalls here from one of the people who did a lot of K&R->ANSI conversion
in X in the past.
Just for the record, the current agreed upon standard for X is ANSI/ISO C89.
You can not yet assume C99, but you can use C99'ism's like __func__ with
proper #ifdef or configure.ac tests and reasonable fallbacks when not
supported. Similarly for gcc extensions to ANSI C.
-- 
	-Alan Coopersmith- alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering


More information about the xorg mailing list

AltStyle によって変換されたページ (->オリジナル) /