[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Potential GC-related problems in compose_chars_in_text
From: |
Stefan Monnier |
Subject: |
Re: Potential GC-related problems in compose_chars_in_text |
Date: |
Mon, 19 Sep 2005 09:43:14 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> Actually, it often happens that things like ENABLE_CHECKING add assert
> statements in the macro expansion which causes the args to be used more
> than once.
> As far as I can see, ENABLE_CHECKING has no such effect anywhere.
It does.
See the definition of XSET:
#define XSET(var, type, ptr) \
(eassert (XTYPE (ptr) == 0), /* Check alignment. */ \
(var) = ((EMACS_INT) (type)) | ((EMACS_INT) (ptr)))
> And there is only one definition of SREF.
Yes, currently SREF does not currently "suffer" from this problem, but it
may become useful at some point in the future to add some kind of check on
the second or of SREF.
I have myself bumped into such problem when I try to add such checks in XINT
(which currently doesn't check that its arg is indeed an integer).
Stefan
- Re: potential bug in display_mode_element?, (continued)
- Potential GC-related problems in compose_chars_in_text, Kim F. Storm, 2005/09/12
- Re: Potential GC-related problems in compose_chars_in_text, Kenichi Handa, 2005/09/12
- Re: Potential GC-related problems in compose_chars_in_text, Richard M. Stallman, 2005/09/13
- Re: Potential GC-related problems in compose_chars_in_text, Kenichi Handa, 2005/09/14
- Re: Potential GC-related problems in compose_chars_in_text, Richard M. Stallman, 2005/09/14
- Re: Potential GC-related problems in compose_chars_in_text, Kenichi Handa, 2005/09/15
- Re: Potential GC-related problems in compose_chars_in_text, Richard M. Stallman, 2005/09/15
- Re: Potential GC-related problems in compose_chars_in_text, Stefan Monnier, 2005/09/16
- Re: Potential GC-related problems in compose_chars_in_text, Richard M. Stallman, 2005/09/17
- Re: Potential GC-related problems in compose_chars_in_text,
Stefan Monnier <=
Re: potential bug in display_mode_element?, Richard M. Stallman, 2005/09/12