提交 26791f39 编写于 作者: J Ján Tomko

docs: hacking: add missing code element

Wrap the 'g_renew()' call for VIR_SHRINK_N in <code>.
Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 3666d7ac
...@@ -1056,7 +1056,7 @@ BAD: ...@@ -1056,7 +1056,7 @@ BAD:
<td>the newly added memory is not zeroed</td></tr> <td>the newly added memory is not zeroed</td></tr>
<tr><td><code>VIR_EXPAND_N</code></td><td><code>g_renew(var_t, ptr, n)</code></td> <tr><td><code>VIR_EXPAND_N</code></td><td><code>g_renew(var_t, ptr, n)</code></td>
<td>zero the new memory manually or use an array type</td></tr> <td>zero the new memory manually or use an array type</td></tr>
<tr><td><code>VIR_SHRINK_N</code></td><td>g_renew(var_t, ptr, n)</td> <tr><td><code>VIR_SHRINK_N</code></td><td><code>g_renew(var_t, ptr, n)</code></td>
<td></td></tr> <td></td></tr>
<tr><td><code>VIR_APPEND_ELEMENT</code></td><td><code>g_array_append_val</code></td> <tr><td><code>VIR_APPEND_ELEMENT</code></td><td><code>g_array_append_val</code></td>
<td><code>g_ptr_array_add</code> or <code>g_byte_array_append</code></td></tr> <td><code>g_ptr_array_add</code> or <code>g_byte_array_append</code></td></tr>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册