From: Jess Balint <jbalint@gmail.com>
To: emacs-devel@gnu.org
Subject: finalizers and dynamic modules
Date: Mon, 15 Feb 2016 15:41:17 -0600 [thread overview]
Message-ID: <CA+fD2U2wqsQif_5-V0RpbF2o9H7H2c016c=Kmd2KfSMEKr2W0A@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 407 bytes --]
Hi!
Dynamic modules are really cool so far, but I think finalizers should not
be mandatory (alloc.c):
#ifdef HAVE_MODULES
else if (mblk->markers[i].m.u_any.type == Lisp_Misc_User_Ptr)
{
struct Lisp_User_Ptr *uptr = &mblk->markers[i].m.u_user_ptr;
uptr->finalizer (uptr->p); <----- should NULL-check first
}
#endif
https://github.com/emacs-mirror/emacs/blob/master/src/alloc.c#L6893
thanks.
Jess
[-- Attachment #2: Type: text/html, Size: 972 bytes --]
next reply other threads:[~2016-02-15 21:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-15 21:41 Jess Balint [this message]
2016-02-18 19:25 ` finalizers and dynamic modules John Wiegley
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='CA+fD2U2wqsQif_5-V0RpbF2o9H7H2c016c=Kmd2KfSMEKr2W0A@mail.gmail.com' \
--to=jbalint@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 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.