emacs-devel
[Top][All Lists]
Advanced

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

Re: Pseudovectors initialization


From: Dmitry Antipov
Subject: Re: Pseudovectors initialization
Date: Wed, 27 Jun 2012 21:26:04 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1

On 06/27/2012 09:04 PM, Dan Nicolaescu wrote:

Is removing this, or removing anything that is set to Qnil safe?
It might be from case to case, but it's not obvious...

It's verified to be safe for windows, frames, processes and terminals.
ALLOCATE_PSEUDOVECTOR evaluates how many Lisp_Objects are located
after vectorlike_header, and then calls allocate_pseudovector to
initialize all of them to Qnil. Next, allocate_{window,frame,process,
terminal} zeroes the rest. Thus, you need to initialize Lisp_Object
slot only if it should be non-nil and other slot only if it should
be non-zero.

Dmitry



reply via email to

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