emacs-devel
[Top][All Lists]
Advanced

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

Re: Simplify internal_catch()


From: Paul Eggert
Subject: Re: Simplify internal_catch()
Date: Wed, 28 Dec 2016 11:24:24 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Stefan Monnier wrote:
There's a fair bit of

    Lisp_Object foo;

    foo = ...;

around, indeed, because at some point in the past, some C compilers did
not support "Lisp_Object foo = ..." when Lisp_Object is a union type.

Actually, that kind of code was around because C89 did not allow declarations after statements. Even ancient C compilers allowed union-typed expressions as initial values for auto variables, and "Lisp_Object foo = ..." at block start has been in Emacs since the beginning; it's in the very oldest code (dated 1985) committed in the Emacs repository.



reply via email to

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