]> git.proxmox.com Git - mirror_qemu.git/blobdiff - CODING_STYLE
hw/i386: Replace global smp variables with machine smp properties
[mirror_qemu.git] / CODING_STYLE
index 90321e9c2821d655e070f94f392f72fded0365f6..cb8edcbb3692c02ea9a369d6f3cbda3b91bf0596 100644 (file)
@@ -147,10 +147,10 @@ block to a separate function altogether.
 When comparing a variable for (in)equality with a constant, list the
 constant on the right, as in:
 
-if (a == 1) {
-    /* Reads like: "If a equals 1" */
-    do_something();
-}
+    if (a == 1) {
+        /* Reads like: "If a equals 1" */
+        do_something();
+    }
 
 Rationale: Yoda conditions (as in 'if (1 == a)') are awkward to read.
 Besides, good compilers already warn users when '==' is mis-typed as '=',