all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: dancol@dancol.org, eller.helmut@gmail.com, emacs-devel@gnu.org
Subject: Re: MPS: Problem with dynamic modules
Date: Mon, 20 May 2024 14:50:41 +0300	[thread overview]
Message-ID: <86o790aei6.fsf@gnu.org> (raw)
In-Reply-To: <m2plthhwpm.fsf@pro2.fritz.box> (message from Gerd Möllmann on Mon, 20 May 2024 07:35:33 +0200)

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: dancol@dancol.org,  eller.helmut@gmail.com,  emacs-devel@gnu.org
> Date: Mon, 20 May 2024 07:35:33 +0200
> 
> Gerd Möllmann <gerd.moellmann@gmail.com> writes:
> 
> > Eli Zaretskii <eliz@gnu.org> writes:
> >
> >>> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> >>> Cc: Daniel Colascione <dancol@dancol.org>,  eller.helmut@gmail.com,
> >>>   emacs-devel@gnu.org
> >>> Date: Sun, 19 May 2024 18:17:06 +0200
> >>> 
> >>> Eli Zaretskii <eliz@gnu.org> writes:
> >>> 
> >>> > No, I mean tell the pool we are using now that this vector cannot be
> >>> > moved.  AFAIU, this should be possible, and we do that in other cases,
> >>> > no?
> >>> 
> >>> Sort of. The only way to do this is to add a reference to the object to an
> >>> ambiguous root. I.e. we need some registry data structure for such
> >>> objects and make that an ambig root.
> >>
> >> That sounds like the easiest solution, no?
> >
> > Hm, I wouldn't say so. The easiest for me would be to malloc the value,
> > followed by using the AMS pool, followed by implementing a tree or
> > whatever is good for that purpose, making it a root and scan it.
> 
> I've added said pool now.

I tried to run the emacs-module test, but it doesn't compile here:

    CCLD     src/emacs-module-resources/mod-test.dll
  make[1]: Entering directory `/d/gnu/git/emacs/feature/test'
  In file included from src/emacs-module-resources/mod-test.c:47:
  ../src/emacs-module.h:1120:26: error: unknown type name 'Lisp_Object'
   1120 | struct emacs_value_tag { Lisp_Object v; };
	|                          ^~~~~~~~~~~
  ../src/emacs-module.h:1128:27: error: field 'header' has incomplete type
   1128 |   union vectorlike_header header;
	|                           ^~~~~~

Does it compile for you?  Why did you move the emacs_value_tag stuff
from emacs-module.c (which is compiled as part of Emacs) to
emacs-module.h (which is included by modules, which aren't supposed to
know about Lisp_Object, they are supposed to use emacs_value instead.
But not a module cannot be compiled without including lisp.h, which I
think is wrong.



  reply	other threads:[~2024-05-20 11:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-19 13:01 MPS: Problem with dynamic modules Gerd Möllmann
2024-05-19 13:21 ` Eli Zaretskii
2024-05-19 13:58   ` Gerd Möllmann
2024-05-19 15:37     ` Eli Zaretskii
2024-05-19 16:17       ` Gerd Möllmann
2024-05-19 16:28         ` Eli Zaretskii
2024-05-19 16:47           ` Gerd Möllmann
2024-05-20  5:35             ` Gerd Möllmann
2024-05-20 11:50               ` Eli Zaretskii [this message]
2024-05-20 12:07                 ` Gerd Möllmann
2024-05-20 13:06                   ` Eli Zaretskii
2024-05-20 13:23                     ` Gerd Möllmann
2024-05-20 13:50                       ` Eli Zaretskii
2024-05-21  7:56                         ` Andrea Corallo
2024-05-21  8:25                           ` Gerd Möllmann
2024-05-21 10:26                             ` Andrea Corallo
2024-05-21 11:49                               ` Gerd Möllmann

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=86o790aei6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dancol@dancol.org \
    --cc=eller.helmut@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=gerd.moellmann@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 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.