all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Helmut Eller <eller.helmut@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org,  Daniel Colascione <dancol@dancol.org>
Subject: Re: Help with pdumper
Date: Sun, 30 Jun 2024 11:47:14 +0200	[thread overview]
Message-ID: <87ikxqrcd9.fsf@gmail.com> (raw)
In-Reply-To: <jwv7ce7tvqw.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sat, 29 Jun 2024 15:28:47 -0400")

On Sat, Jun 29 2024, Stefan Monnier wrote:

> +static dump_off
> +dump_markers (struct dump_context *ctx, const struct Lisp_Markers *t)
> +{
> +  ptrdiff_t bytesize = (sizeof (struct Lisp_Markers)
> +			+ t->size * sizeof (struct Lisp_Marker *));
> +  struct Lisp_Markers *out = malloc (bytesize);
> +  dump_object_start (ctx, out, bytesize);
> +  DUMP_FIELD_COPY (out, t, size);
> +  DUMP_FIELD_COPY (out, t, gap_beg);
> +  DUMP_FIELD_COPY (out, t, gap_end);
> +  for (m_index_t i = 0; i < t->size; i++)
> +    if (t->markers[i])
> +      dump_field_fixup_later (ctx, out, t, &t->markers[i]);

Maybe dump_field_lv_rawptr would work here?



      parent reply	other threads:[~2024-06-30  9:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-29 19:28 Help with pdumper Stefan Monnier
2024-06-29 20:01 ` Daniel Colascione
2024-06-30  3:59   ` Stefan Monnier
2024-06-30  5:16 ` Gerd Möllmann
2024-07-03 20:12   ` Stefan Monnier
2024-07-04  3:46     ` Gerd Möllmann
2024-06-30  9:47 ` Helmut Eller [this message]

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=87ikxqrcd9.fsf@gmail.com \
    --to=eller.helmut@gmail.com \
    --cc=dancol@dancol.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.