aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-03-11 16:48:43 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-19 15:27:27 -0500
commit77ac48626362abf47a9a6f915fdeea732391f2ba (patch)
tree1822abf05442c39ae4dbeb3b265e8d3a8d2e9455
parentd35215f8085db57fea54bf7bc2d8438350440bcf (diff)
CODING_STYLE: Reserve qemu_ prefix for library wrappers
Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--CODING_STYLE3
1 files changed, 3 insertions, 0 deletions
diff --git a/CODING_STYLE b/CODING_STYLE
index a579cb1b5f..92036f34bc 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -49,6 +49,9 @@ and is therefore likely to be changed.
Typedefs are used to eliminate the redundant 'struct' keyword. It is the
QEMU coding style.
+When wrapping standard library functions, use the prefix qemu_ to alert
+readers that they are seeing a wrapped version; otherwise avoid this prefix.
+
4. Block structure
Every indented statement is braced; even if the block contains just one