From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 3ed79cd: Separate bytecode stack Date: Tue, 15 Mar 2022 16:42:01 +0200 Message-ID: <83k0cvi8g6.fsf@gnu.org> References: <83lexdlpjy.fsf@gnu.org> <447E1D53-FA02-4776-9730-507BCA1993FA@acm.org> <83h781lma9.fsf@gnu.org> <1EB42282-A67C-4C20-8E5D-BA8DA9A21E9C@acm.org> <83a6dsjw12.fsf@gnu.org> <210D2D02-9086-4DB5-8015-120E07489974@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24890"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 15 15:52:14 2022 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 1nU8Wz-0006Cs-Lj for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Mar 2022 15:52:13 +0100 Original-Received: from localhost ([::1]:51770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nU8Wx-0004d5-Ti for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Mar 2022 10:52:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU8NJ-0000IU-CW for emacs-devel@gnu.org; Tue, 15 Mar 2022 10:42:15 -0400 Original-Received: from [2001:470:142:3::e] (port=39280 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU8NI-0001Si-Uz; Tue, 15 Mar 2022 10:42:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=eGlm9mmZLscbWX+JKJUENsH4yPstg6XqmOXNz82jQ8E=; b=eYtwi7n8aBGr2O65KqMv pWTu5nyEdFpUUNFbsG88Is78mOrwH9Hun5DICz574EWb0NWT6VhvGYqxgk9T4yXLOqs5krOqVURoq RwLTEcWv4UUA0YU1j/yzqtZO0wVOrSJ37DHj2g+AzLE57nEIOjDVUZ/wOJtLYYEESgefVgBcgPT3C SSNoEQT4ao1ppC8gr5jWpWA3ii7ZtuYbOjCeGSunR9krXvZ80J3FHrJRzSmQYQR0QAfk5K2nkyLce JZeHHqvA4VWhBJitr15p27yLE6PNObHXh98OwocNLEVBCPBYag47hZfy+EpiDeEBBJ6Or/gUY0gI4 HUJjdVyQ5en9vQ==; Original-Received: from [87.69.77.57] (port=3752 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU8NH-0005fk-MF; Tue, 15 Mar 2022 10:42:12 -0400 In-Reply-To: <210D2D02-9086-4DB5-8015-120E07489974@acm.org> (message from Mattias =?utf-8?Q?Engdeg=C3=A5rd?= on Tue, 15 Mar 2022 15:20:29 +0100) 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" Xref: news.gmane.io gmane.emacs.devel:287189 Archived-At: > From: Mattias EngdegÄrd > Date: Tue, 15 Mar 2022 15:20:29 +0100 > Cc: Emacs-Devel > > >> The latter alternative would become a little more palatable if we could use flexible array struct members on all platforms. Given that we assume C99, can we do that now? > > > > What do you mean by "flexible array struct members"? Please show a > > code snippet. > > I'm sure you know it well, it's the ability to put an incomplete array declaration as the last member of a struct, as in: > > struct S { int n; float a[]; }; > > which roughly means the same thing as declaring that array to be of size zero. > It's not required in our case but would make the next_stack function (see patch) go away. I think you can use this (we already use it elsewhere in Emacs).