unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: "Elias Mårtenson" <lokedhs@gmail.com>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Module support: No environment in pointer release function
Date: Sun, 5 Feb 2017 21:33:41 -0800	[thread overview]
Message-ID: <082f6c7c-7c0c-8747-8464-e19f7807b786@cs.ucla.edu> (raw)
In-Reply-To: <CADtN0WJ-hXNkzrHqzQjXYQDRRsHH1pO1Ujnh=DnG=yoWGWp-3g@mail.gmail.com>

Elias Mårtenson wrote:
> In
> addition to the pointer itself, the ‘emacs_env’ pointer is needed. An
> arbitrary ‘void *data’ pointer would be useful too.

Can you package up these pointers into a single data structure, and pass a 
pointer to that structure? That's what's usually done in situations like this, 
and is why a single 'void *' should suffice.



  reply	other threads:[~2017-02-06  5:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-03  2:55 Module support: No environment in pointer release function Elias Mårtenson
2017-02-06  5:33 ` Paul Eggert [this message]
2017-02-07  3:16   ` Elias Mårtenson
2017-02-07  6:41     ` Paul Eggert
2017-02-07 12:54     ` Philipp Stephani
2017-02-07 12:51   ` Philipp Stephani
2017-02-07 12:50 ` Philipp Stephani
2017-02-08 17:03 ` Andreas Politz
2017-02-10  5:21   ` Elias Mårtenson
2017-02-10  5:22     ` Elias Mårtenson
2017-02-10  9:27     ` Andreas Politz
2017-02-26 16:23     ` Philipp Stephani
2017-02-27  4:31       ` Elias Mårtenson

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=082f6c7c-7c0c-8747-8464-e19f7807b786@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=lokedhs@gmail.com \
    /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).