emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MPS: dangling markers


From: Gerd Möllmann
Subject: Re: MPS: dangling markers
Date: Fri, 28 Jun 2024 18:56:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Ihor Radchenko <yantar92@posteo.net> writes:

> Gerd Möllmann <gerd.moellmann@gmail.com> writes:
>
>>>   for (struct marker_it it_ = marker_it_init (b); marker_it_valid (&it_); \
>>>        marker_it_next (&it_)) \
>>>     for (struct Lisp_Marker *m = marker_it_marker (&it_); m; m = NULL)
>>>
>>> is a double loop, which is different from version of master (master has
>>> a single for loop).
>>
>> It's only a syntactic trick to get M declared. Please note that the
>> inner for runs exactly onee.
>
> But when we have for (...) for (...) break;, the break will only stop
> the inner loop, no?

Oh, that's right. Didn't think of that... Shit. Emacs should use C++ so
that one can write real iterators :-(.

Maybe you can also tell me what the compilation error is?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]