From: Matthias Clasen Date: Fri, 3 Mar 2023 11:24:58 +0000 (-0500) Subject: CODING-STYLE: Drop mention of g_slice X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~553^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=83d14bfa98a0d11a59e59753391ab33f678a27d4;p=gtk4.git CODING-STYLE: Drop mention of g_slice --- diff --git a/docs/CODING-STYLE.md b/docs/CODING-STYLE.md index d48df10f6f..ee3674a192 100644 --- a/docs/CODING-STYLE.md +++ b/docs/CODING-STYLE.md @@ -678,11 +678,10 @@ Interfaces must have the following macros: ### Memory allocation -When dynamically allocating data on the heap either use `g_new()` or, -if allocating multiple small data structures, `g_slice_new()`. +When dynamically allocating data on the heap use `g_new()`. Public structure types should always be returned after being zero-ed, -either explicitly for each member, or by using `g_new0()` or `g_slice_new0()`. +either explicitly for each member, or by using `g_new0()`. ### Macros