From: Richard Stallman <rms@gnu.org>
Cc: schwab@suse.de, emacs-devel@gnu.org, miles@gnu.org
Subject: Re: passing arg of `merge_face_heights' makes integer from pointer without a cast
Date: Fri, 05 Nov 2004 10:01:47 -0500 [thread overview]
Message-ID: <E1CQ5b1-0003vD-0b@fencepost.gnu.org> (raw)
In-Reply-To: <20041104211651.GA22409@fencepost> (message from Miles Bader on Thu, 4 Nov 2004 16:16:51 -0500)
> That structure looks like something for which cons cells would work,
> so why not use cons cells?
Because these structures are allocated on the stack -- they are very temporary
and used extremely often.
If they are allocated in the stack, then it should be easy to
explicitly gcpro the Lisp_Object in each one. Just do that in the
frame that allocates the struct. Doesn't that do the job this
gcpro argument was intended to do?
Here's another idea.
How deep does this stack often get? Maybe just allocate a single
vector and use it as a stack. If it ever isn't big enough, replace it
with a vector twice as big. You can null out the whole vector at the
end of face merging.
Since this would be an ordinary Lisp vector, GC would handle it just
fine, it just needs a staticpro.
next prev parent reply other threads:[~2004-11-05 15:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-04 0:23 passing arg of `merge_face_heights' makes integer from pointer without a cast Andreas Schwab
2004-11-04 20:43 ` Richard Stallman
2004-11-04 21:16 ` Miles Bader
2004-11-05 15:01 ` Richard Stallman [this message]
2004-11-05 22:34 ` Miles Bader
2004-11-06 15:19 ` Richard Stallman
2004-11-08 3:41 ` Miles Bader
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=E1CQ5b1-0003vD-0b@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=miles@gnu.org \
--cc=schwab@suse.de \
/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.