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: Emacs' C: static inline considered useless nowadays? Date: Tue, 18 Oct 2022 05:30:53 +0300 Message-ID: <83h701278i.fsf@gnu.org> References: <874jw37764.fsf@rfc20.org> <835ygj3rqp.fsf@gnu.org> <877d0y6zex.fsf@rfc20.org> <83ilki1cyo.fsf@gnu.org> <874jw26vht.fsf@rfc20.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13520"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Matt Armstrong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 18 04:33:04 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 1okcPf-0003KO-Su for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Oct 2022 04:33:03 +0200 Original-Received: from localhost ([::1]:40264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okcPd-00071F-8A for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Oct 2022 22:33:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okcO7-0006HD-Kz for emacs-devel@gnu.org; Mon, 17 Oct 2022 22:31:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okcO6-0000Ci-92; Mon, 17 Oct 2022 22:31:26 -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=eRi8n48PpFTkWB9WDgq+pMV8C1fBhP5QkPE1W+OiW00=; b=lW5a+s0I54AW QI2R8WXU5ViZ1cZHtZrmUocheRw2Fu2JtfAnhw8MONkXl6K9F4jLRMA1K97lBScqO08ekx9Zc9CAh cl+le1sCEqYM37mDfC6gIsKpkWpxd7VVylUGzeLfkC1XUREQ3CT5TLe2ZIB6dUaWYko+JEYM9zxTR 7E8Co5S/lD/GzRRzAsVJc7Am6JqY6BXcZak6xK9Ax4VwMJFM4sve/7gBzY/SkiAfhjlFX2HzbyE/8 npkcGWCBI8l+9tXulBpWYrbhAkzqFGgQW1oLWKcT2mtXrjfMoR2bKFOlEtKl1ZdqawsWp8UWAQW+G rCWUATsYbuAJByEOg2gn8Q==; Original-Received: from [87.69.77.57] (port=1102 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 1okcNk-0007LB-Jh; Mon, 17 Oct 2022 22:31:25 -0400 In-Reply-To: <874jw26vht.fsf@rfc20.org> (message from Matt Armstrong on Mon, 17 Oct 2022 13:33:18 -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:298005 Archived-At: > From: Matt Armstrong > Cc: emacs-devel@gnu.org > Date: Mon, 17 Oct 2022 13:33:18 -0700 > > Eli Zaretskii writes: > > >> From: Matt Armstrong > >> Cc: emacs-devel@gnu.org > >> Date: Mon, 17 Oct 2022 12:08:38 -0700 > >> > >> > See conf_post.h, around line 395: it explains the issue and the > >> > expected usage of these in our sources. > >> > >> conf_post.h didn't answer my question since it seems to pertain to code > >> in header files. > > > > Why would you need 'inline' anywhere else? > > That is the question I started the thread with, in different words. If > you grep our sources 'static inline' appears in .c files, and I wondered > why. Never mind that; it's a historic accident. Just use 'static' and let the compiler decide when to inline.