From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: dangling markers Date: Fri, 28 Jun 2024 18:56:24 +0200 Message-ID: References: <87v81u85hv.fsf@localhost> <87frsx81m2.fsf@localhost> <87cyo180y2.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15102"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier , emacs-devel@gnu.org, Eli Zaretskii , eller.helmut@gmail.com To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 28 18:57:25 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sNEua-0003mO-TV for ged-emacs-devel@m.gmane-mx.org; Fri, 28 Jun 2024 18:57:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNEtl-00030b-QO; Fri, 28 Jun 2024 12:56:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNEtj-0002zY-7F for emacs-devel@gnu.org; Fri, 28 Jun 2024 12:56:31 -0400 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNEtg-0002B9-8o; Fri, 28 Jun 2024 12:56:29 -0400 Original-Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-57d20d89748so1062257a12.0; Fri, 28 Jun 2024 09:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719593786; x=1720198586; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2mD0UPc85+ryx4NrQvCuzYYAA7nQhWXGlpzTzqvpcgg=; b=eQ+pMjC8FlJNohrSyLQvLHljO3hVY8hGvCz8JbM0GK/F2p+b8ZWor30AqjjjAWqeQw GJ7yj9AS5xs88S90QI4TJ+G9c7GG0l3bMBbDK1060oVWAo+1xgooV1PD/mvpTZSDK92y Fn0UAP8xctSm0/QIHf03r13UQy9xRXvO1G4I8avQFzQZenSzJSMtuaQuHTBgZSbnzo74 kmD8CBHHiMR3zSkcjwcIh1l6ga6vHRIGN+YDQfWhPkWY9Dt+vIPKGeSaLmvz6OuQFqNG KY/HG1TM8rnO9z5Gfiw7YPrhc1KmIVv4VAVxu0DCAoYECriZyJfp3SZU4z0u8LvJmVjt wzVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719593786; x=1720198586; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=2mD0UPc85+ryx4NrQvCuzYYAA7nQhWXGlpzTzqvpcgg=; b=GOXdXJsIfiahFsNZGhgWVx+bFmGGme2yWojf2nNgTawxvpdPwnt3vsnn5LCqzIBssy n1FcdmxYxWU0Ly8jmGD/n5Dj1GgTdZx+tP75r4+SFp6+F0ZBdwqHOy2wIIAYN4JExkj3 3xCTt5I5Ts+2zvp3OYrLGDGg9Xv9wAenNwvtWzZMDwlSm+3vHrS6W1TJfYrJ0pYzwLgc 0S7a7u5YPx588xOVIlMYWBeGwhXuhLeeDS+qr0BNjA4aIOs+avObsLnNgTyjhfedbFbN d7h1AizfesLUqi5AjiiBecC2Gp+PfoZEWlyKQk8zvz+ri+Z/xasn10dRnqaLBHTz99vn Uhow== X-Forwarded-Encrypted: i=1; AJvYcCXdUrgWWFKDiBHc4sz04FnGxaAc9cvCbXGIqqqBcSnNqTFVUgZKtxVCL6jThUvvMpdMBprVeN4meOlI0mZL0AQBzuI9XPQGsmYaMKd+1w1ZKOg= X-Gm-Message-State: AOJu0YwMG1vmG2yjsgSz2CCwXLZjRpc8FiNs9o4WfnzAaREsPVbheWTr tkb0zQyGA6hkCNwvhfP3MYuax3lkFzbps5nAldvpMNZBpAnGi3Lt X-Google-Smtp-Source: AGHT+IGCFfkvuuARf20ZwRaNjkiPRayxrPdDZes7GUDN20ha7ommzxmo0XBlGWQKwCRw1KzvuRHUDA== X-Received: by 2002:a05:6402:1ec1:b0:585:c6c0:40b6 with SMTP id 4fb4d7f45d1cf-585c6cf8375mr2930396a12.35.1719593785980; Fri, 28 Jun 2024 09:56:25 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e360da.dip0.t-ipconnect.de. [217.227.96.218]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-586138185ebsm1250405a12.52.2024.06.28.09.56.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jun 2024 09:56:25 -0700 (PDT) In-Reply-To: <87cyo180y2.fsf@localhost> (Ihor Radchenko's message of "Fri, 28 Jun 2024 16:52:05 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320827 Archived-At: Ihor Radchenko writes: > Gerd M=C3=B6llmann writes: > >>> for (struct marker_it it_ =3D marker_it_init (b); marker_it_valid (&i= t_); \ >>> marker_it_next (&it_)) \ >>> for (struct Lisp_Marker *m =3D marker_it_marker (&it_); m; m =3D NU= LL) >>> >>> 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?