]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: hacking: extend the table of removed libvirt macros
authorJán Tomko <jtomko@redhat.com>
Fri, 18 Oct 2019 21:10:28 +0000 (23:10 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 22 Oct 2019 20:09:14 +0000 (22:09 +0200)
Mention the various ATTRIBUTE* macros and ARRAY_CARDINALITY
that were removed earlier.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
docs/hacking.html.in

index 793a6b7e592ca9bbfad53468223bb5c4c5785460..ae4d14e7b78ada041dd760dd63d5ce8ef897f08a 100644 (file)
@@ -1073,6 +1073,14 @@ BAD:
         <tr><td><code>VIR_STEAL_PTR</code></td><td><code>g_steal_pointer</code></td>
             <td><code>a = f(&amp;b)</code> instead of <code>f(a, b)</code></td></tr>
         <tr><td><code>VIR_RETURN_PTR</code></td><td><code>return g_steal_pointer</code></td><td></td></tr>
+        <tr><td><code>ARRAY_CARDINALITY</code></td><td><code>G_N_ELEMENTS</code></td><td></td></tr>
+        <tr><td><code>ATTRIBUTE_FALLTHROUGH</code></td><td><code>G_GNUC_FALLTHROUGH</code></td><td></td></tr>
+        <tr><td><code>ATTRIBUTE_FMT_PRINTF</code></td><td><code>G_GNUC_PRINTF</code></td><td></td></tr>
+        <tr><td><code>ATTRIBUTE_NOINLINE</code></td><td><code>G_GNUC_NO_INLINE</code></td><td></td></tr>
+        <tr><td><code>ATTRIBUTE_NORETURN</code></td><td><code>G_GNUC_NORETURN</code></td><td></td></tr>
+        <tr><td><code>ATTRIBUTE_RETURN_CHECK</code></td><td><code>G_GNUC_WARN_UNUSED_RESULT</code></td><td></td></tr>
+        <tr><td><code>ATTRIBUTE_SENTINEL</code></td><td><code>G_GNUC_NULL_TERMINATED</code></td><td></td></tr>
+        <tr><td><code>ATTRIBUTE_UNUSED</code></td><td><code>G_GNUC_UNUSED</code></td><td></td></tr>
     </table>