unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lee Duhem <lee.duhem@gmail.com>
To: emacs-devel@gnu.org
Subject: Why do Fdefvar not protect its argument and temporaries with GCPRO?
Date: Wed, 19 Nov 2014 10:48:44 +0800	[thread overview]
Message-ID: <CAOSer0BaKCCLw=RCzx_2=q22p3BHWvBkFy6nUNn3LQm9=YJFDw@mail.gmail.com> (raw)

Hi all,

In the definition of `Fdefvar`, it calls `eval_sub`, and its temporary
variable `tail` is used after that call. So why do `Fdefvar` not protect
`tail` and other temporaries from GC with GCPRO? As other functions in
`src/eval.c` did.

Is this a bug? Or did I overlook something?

Sincerely,
lee



             reply	other threads:[~2014-11-19  2:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-19  2:48 Lee Duhem [this message]
2014-11-19  9:44 ` Why do Fdefvar not protect its argument and temporaries with GCPRO? Andreas Schwab
2014-11-19 13:51   ` Stefan Monnier
2014-11-20  2:59     ` Lee Duhem

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOSer0BaKCCLw=RCzx_2=q22p3BHWvBkFy6nUNn3LQm9=YJFDw@mail.gmail.com' \
    --to=lee.duhem@gmail.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).