summaryrefslogtreecommitdiff
path: root/doc/static-inline.texi
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-03-20 03:51:26 +0100
committerBruno Haible <bruno@clisp.org>2019-03-20 03:51:26 +0100
commit85e7bcab41a955145422ecdc753b3cf2d75acccb (patch)
tree784bcc93c75ce88a9c6d06d7c1a4fba253a592bd /doc/static-inline.texi
parente4d8618dfd0c115f8b6076411e74d2df10e383af (diff)
downloadgnulib-85e7bcab41a955145422ecdc753b3cf2d75acccb.tar.gz
doc: Document how to use 'static inline'.
* doc/static-inline.texi: New file. * doc/gnulib.texi: Include it.
Diffstat (limited to 'doc/static-inline.texi')
-rw-r--r--doc/static-inline.texi20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/static-inline.texi b/doc/static-inline.texi
new file mode 100644
index 0000000000..035c023121
--- /dev/null
+++ b/doc/static-inline.texi
@@ -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.