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: Forwording symbols Date: Mon, 24 Jun 2024 18:14:31 +0200 Message-ID: References: <878qyy1f55.fsf@gmail.com> <87o77szwif.fsf@gmail.com> <877cegzu5j.fsf@gmail.com> <87tthjxwet.fsf@gmail.com> <87bk3qwezd.fsf@gmail.com> 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="39800"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel , Eli Zaretskii To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 24 18:15:24 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 1sLmLj-000ACz-V7 for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Jun 2024 18:15:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLmL1-0007NU-I0; Mon, 24 Jun 2024 12:14:39 -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 1sLmL0-0007NM-5y for emacs-devel@gnu.org; Mon, 24 Jun 2024 12:14:38 -0400 Original-Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLmKy-0000mf-N9; Mon, 24 Jun 2024 12:14:37 -0400 Original-Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2ec0f3b9cfeso53130711fa.0; Mon, 24 Jun 2024 09:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719245674; x=1719850474; 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=QA/LkVNQ6RpFGJrnRgthW8gVL97GUvPUwXzgOICCtBQ=; b=ZevYaVgI0fU+5f4w7QEpH9HCHcgi/DKseIsoeOHbuPAhbe5+fvqrycBavFKrrfltbY ytvsz3aHxQWPKOm0cU2qD6joA/FJhyqOEUBlsxTmNzRQFv4dVlezFNuKTI1C38UFAO+e 1RJoLUZKQzwbAoGuV/5jCaVHpTlQqPItiHlNqgewR+Rk2G70uu/E+aYxtUuR2CQI83L/ /71CbwodnepCqbEiQvoXelbxnXn/QdTOYGmXtXAkDlCnzQt9d5wU0OVFNF2LQB9N5CPR 86YwB9s63YbPJkLCApJHmgVl1Zkr8fOhuXpJbzHSIRovjml8+SNTTYAnLB58mz1lhB5M MERQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719245674; x=1719850474; 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=QA/LkVNQ6RpFGJrnRgthW8gVL97GUvPUwXzgOICCtBQ=; b=vpItthguWNC8nK7lABf0PnTlvGcOngub/lsoddVMVhLGqk/A1mSQQLp9CVE2PVhS9p 77saOH8mOGhY1ZwzAcd7etY1ctYL8Uyyd12/sIhKXa/avIWLBTt2ojCHpln/OKPtP6Um F2nAshtHdeFPv0xfn/g72nrpWQHCGbK162VqnGvzh8zqFJK54SWmVRWf484hJG98EcIS kPZoh0ku+JsD6bvncaxnU2s+u3Vf5pDIPAgW/boHW4MAjCmTIwy7crfuV14GCXrNh87n AXOJWoG49YxDLfC3rZR6a7+mYdXtWhhKQEXyBLiwfbi2T8sqOJjGiKOEfAuh3g9zmNtx LbmQ== X-Forwarded-Encrypted: i=1; AJvYcCXSx6BTHRr3eB3ZwM84NJxcyqckUbr/lWq5THbEepeVNQIHZfeexgPWJez9/LjWQpwIFyXeOseY4NhrQ0g= X-Gm-Message-State: AOJu0Yyy5Te9blyVuqyKLNAESFgowiE+3HEUM4RuaSXnRPWJAHOXtgvZ Ue2sr3Rf8Xnf48vhq3dg4brHrSdsciwVd01fKg4kNl/OKR6kb9SiLQTVow== X-Google-Smtp-Source: AGHT+IGMk1r0175mcmkICoxK+3b2TRmIQC7BJKuxPFfDXPjuNLVpzmIZHqrsHONm1RWORQ8v6K5U4w== X-Received: by 2002:a2e:860f:0:b0:2ec:5502:b2e3 with SMTP id 38308e7fff4ca-2ec5956a0d5mr32378601fa.45.1719245673257; Mon, 24 Jun 2024 09:14:33 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a079.dip0.t-ipconnect.de. [79.227.160.121]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ec4d7142eesm9595301fa.63.2024.06.24.09.14.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 09:14:32 -0700 (PDT) In-Reply-To: <87bk3qwezd.fsf@gmail.com> (Helmut Eller's message of "Mon, 24 Jun 2024 17:13:42 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::229; envelope-from=gerd.moellmann@gmail.com; helo=mail-lj1-x229.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:320612 Archived-At: Helmut Eller writes: > On Mon, Jun 24 2024, Gerd M=C3=B6llmann wrote: > >>> Here is an attempt to use an enum. I'm not sure that it's easier to >>> read and the enum constants have odd names. >> >> Pushed! > > I have one more patch: it moves the bufoffset field back to the union. > I think that's a bit nicer; and with the predicate enum there is enough > room to do it. > > There other patch, sets some fields in a popped handler to nil to avoid > a potential leak. > Thanks and pushed. (Wonder what that is c5f180ff596 Merge branch 'scratch/igc' of git.savannah.gnu.org:/srv/git/emacs into scratch/igc Whtever...) >> We even spared a word in the struct :-). > > Right, I haven't even noticed that. Now the union only needs one word > and the type fields could be packed in 3 bits. That would probably be > small enough to store it in a symbol. :-)