aboutsummaryrefslogtreecommitdiff
path: root/docs/devel/style.rst
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2022-01-05 13:49:59 +0000
committerAlex Bennée <alex.bennee@linaro.org>2022-01-18 16:42:42 +0000
commit3918fe16b0f8c6657928a14f41b7ff50061e33e1 (patch)
tree344efd6081f54abcf605507ce70baf050aa057e6 /docs/devel/style.rst
parenta68e025bf5103280be6cfeab19452491b793e679 (diff)
downloadqemu-3918fe16b0f8c6657928a14f41b7ff50061e33e1.zip
qemu-3918fe16b0f8c6657928a14f41b7ff50061e33e1.tar.gz
qemu-3918fe16b0f8c6657928a14f41b7ff50061e33e1.tar.bz2
docs/devel: more documentation on the use of suffixes
Using _qemu is a little confusing. Let's use _compat for these sorts of things. We should also mention _impl which is another common suffix in the code base. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20220105135009.1584676-25-alex.bennee@linaro.org>
Diffstat (limited to 'docs/devel/style.rst')
-rw-r--r--docs/devel/style.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/devel/style.rst b/docs/devel/style.rst
index 4f77000..793a8d4 100644
--- a/docs/devel/style.rst
+++ b/docs/devel/style.rst
@@ -151,6 +151,12 @@ If there are two versions of a function to be called with or without a
lock held, the function that expects the lock to be already held
usually uses the suffix ``_locked``.
+If a function is a shim designed to deal with compatibility
+workarounds we use the suffix ``_compat``. These are generally not
+called directly and aliased to the plain function name via the
+pre-processor. Another common suffix is ``_impl``; it is used for the
+concrete implementation of a function that will not be called
+directly, but rather through a macro or an inline function.
Block structure
===============