]> Savannah Git Hosting - gnulib.git/commitdiff
doc: Document how to use 'static inline'.
authorBruno Haible <bruno@clisp.org>
Wed, 20 Mar 2019 02:51:26 +0000 (03:51 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 20 Mar 2019 02:51:26 +0000 (03:51 +0100)
* doc/static-inline.texi: New file.
* doc/gnulib.texi: Include it.

ChangeLog
doc/gnulib.texi
doc/static-inline.texi [new file with mode: 0644]

index 7f937aae1121bc0020815e2b08e26e95f9384093..267b63f139a5a1be9a0e363393287cb2f5ca5ec4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-03-19  Bruno Haible  <bruno@clisp.org>
+
+       doc: Document how to use 'static inline'.
+       * doc/static-inline.texi: New file.
+       * doc/gnulib.texi: Include it.
+
 2019-03-19  Bruno Haible  <bruno@clisp.org>
 
        libtextstyle-optional: Add tests.
index 802e39b41902e44f9932b6a955e6966587f604b3..ac3d570c669cf274fac790cd1bc2d67a722893ff 100644 (file)
@@ -6373,6 +6373,7 @@ to POSIX that it can be treated like any other Unix-like platform.
 * Safe Allocation Macros::
 * Compile-time Assertions::
 * Integer Properties::
+* static inline::
 * extern inline::
 * Closed standard fds::
 * Container data types::
@@ -6403,6 +6404,8 @@ to POSIX that it can be treated like any other Unix-like platform.
 
 @include intprops.texi
 
+@include static-inline.texi
+
 @include extern-inline.texi
 
 @include xstdopen.texi
diff --git a/doc/static-inline.texi b/doc/static-inline.texi
new file mode 100644 (file)
index 0000000..035c023
--- /dev/null
@@ -0,0 +1,20 @@
+@c GNU static-inline module documentation
+
+@c Copyright (C) 2019 Free Software Foundation, Inc.
+
+@c Permission is granted to copy, distribute and/or modify this document
+@c under the terms of the GNU Free Documentation License, Version 1.3
+@c or any later version published by the Free Software Foundation;
+@c with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
+@c Texts.  A copy of the license is included in the ``GNU Free
+@c Documentation License'' file as part of this distribution.
+
+@node static inline
+@section Static inline functions
+
+@cindex static inline
+@cindex inline
+
+In order to mark functions as @code{static inline}, the only
+prerequisite you need is an @code{AC_REQUIRE([AC_C_INLINE])}.
+No Gnulib module is needed.