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: Generic stack I can use in C core? Date: Fri, 23 Sep 2022 23:12:19 +0300 Message-ID: <838rm9q28s.fsf@gnu.org> References: <3C69BDE1-2B31-4FD5-BB8C-81F83116D239@gmail.com> <52CE9A48-5F88-4228-9F12-7C6287FE96D3@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36990"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 23 22:15:00 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 1obp4c-0009KE-M8 for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Sep 2022 22:14:58 +0200 Original-Received: from localhost ([::1]:57718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obp4b-0003AI-1q for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Sep 2022 16:14:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obp2D-0001hx-9c for emacs-devel@gnu.org; Fri, 23 Sep 2022 16:12:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41780) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obp2D-0003mm-1B; Fri, 23 Sep 2022 16:12:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fMYlOyxuVFiLt7h2T91h39DVCvDdAaME9+2erlatcwI=; b=RyE5GFamVoQ+ LfZ52MovGOzODcgq4t0+JyfhIinFIg45W5y269FPGNs049k/E41iQEVP9UvcKUtlD35MDKgQ+znLa acxhn2YtcYsO5o7Gfw7gUKPRTrCbc71dLhQ0R9tbhRELvp9U2+PZnzdf+vsuQGMKVA7R7hY6XRsBL zm3Y15jtcpVZpyZQ/8Ozw30KNrMsFg6LUKn0TkD17Q+kE1SUgfaNaDlAt4c6mfPCaBEzQO27fcAro 79rVCwaV7ewaIzVxLsC34QHlz5lx7+zroG4E85nzCot8aEexIra6n+IYnrCfqFmMfJ3goAS8Impy5 QXMxp9xiDcJto3HCrTfQOw==; Original-Received: from [87.69.77.57] (port=1615 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 1obp2C-00009D-FQ; Fri, 23 Sep 2022 16:12:28 -0400 In-Reply-To: <52CE9A48-5F88-4228-9F12-7C6287FE96D3@gmail.com> (message from Yuan Fu on Fri, 23 Sep 2022 12:24:45 -0700) 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:296090 Archived-At: > From: Yuan Fu > Date: Fri, 23 Sep 2022 12:24:45 -0700 > > > > > On Sep 23, 2022, at 12:20 PM, Yuan Fu wrote: > > > > Is there a generic stack data structure that I use in the C core? Something that automatically grows and shrinks? > > *Something that allocates a chunk of memory to store the nodes and automatically grows and shrinks and copies stuff over. What kind of stuff do you want to store there?