From: Dmitry Antipov <dmantipov@yandex.ru>
To: Dan Nicolaescu <dann@gnu.org>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: Pseudovectors initialization
Date: Wed, 27 Jun 2012 21:26:04 +0400 [thread overview]
Message-ID: <4FEB422C.7070803@yandex.ru> (raw)
In-Reply-To: <yxq62acbsak.fsf@fencepost.gnu.org>
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
next prev parent reply other threads:[~2012-06-27 17:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-26 7:26 Pseudovectors initialization Dmitry Antipov
2012-06-26 9:17 ` John Wiegley
2012-06-26 11:02 ` Dmitry Antipov
2012-06-26 12:33 ` Michael Welsh Duggan
2012-06-26 13:07 ` Dmitry Antipov
2012-06-26 13:15 ` Stefan Monnier
2012-06-26 13:52 ` Nix
2012-06-27 17:04 ` Dan Nicolaescu
2012-06-27 17:26 ` Dmitry Antipov [this message]
2012-06-27 21:22 ` Stefan Monnier
2012-06-27 21:31 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FEB422C.7070803@yandex.ru \
--to=dmantipov@yandex.ru \
--cc=dann@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.