[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs' C: static inline considered useless nowadays?
From: |
Eli Zaretskii |
Subject: |
Re: Emacs' C: static inline considered useless nowadays? |
Date: |
Tue, 18 Oct 2022 05:30:53 +0300 |
> From: Matt Armstrong <matt@rfc20.org>
> Cc: emacs-devel@gnu.org
> Date: Mon, 17 Oct 2022 13:33:18 -0700
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: Matt Armstrong <matt@rfc20.org>
> >> 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.
- Emacs' C: static inline considered useless nowadays?, Matt Armstrong, 2022/10/16
- Re: Emacs' C: static inline considered useless nowadays?, Stefan Monnier, 2022/10/16
- Re: Emacs' C: static inline considered useless nowadays?, Eli Zaretskii, 2022/10/17
- Re: Emacs' C: static inline considered useless nowadays?, Matt Armstrong, 2022/10/17
- Re: Emacs' C: static inline considered useless nowadays?, Eli Zaretskii, 2022/10/17
- Re: Emacs' C: static inline considered useless nowadays?, Matt Armstrong, 2022/10/17
- Re: Emacs' C: static inline considered useless nowadays?,
Eli Zaretskii <=
- Re: Emacs' C: static inline considered useless nowadays?, Stefan Monnier, 2022/10/18
- Re: Emacs' C: static inline considered useless nowadays?, Eli Zaretskii, 2022/10/18
- Re: Emacs' C: static inline considered useless nowadays?, tomas, 2022/10/18
- Re: Emacs' C: static inline considered useless nowadays?, Stefan Monnier, 2022/10/18
- Re: Emacs' C: static inline considered useless nowadays?, Eli Zaretskii, 2022/10/18
Re: Emacs' C: static inline considered useless nowadays?, Richard Stallman, 2022/10/18