projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0c0766
)
CODING-STYLE: Drop mention of g_slice
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 3 Mar 2023 11:24:58 +0000
(06:24 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Mar 2023 18:56:42 +0000
(14:56 -0400)
docs/CODING-STYLE.md
patch
|
blob
|
history
diff --git
a/docs/CODING-STYLE.md
b/docs/CODING-STYLE.md
index d48df10f6f7708c12944eafd04221a3c0eb1da75..ee3674a1922f8a9a6bbc48fbe134b3db97f54ebb 100644
(file)
--- 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