mirror of
https://github.com/postgres/postgres.git
synced 2025-05-12 16:21:30 +03:00
Doc: clarify a critical and undocumented aspect of simplehash.h.
I just got burnt by trying to use pg_malloc instead of pg_malloc0 with this. Save the next hacker some time by not leaving this API detail undocumented.
This commit is contained in:
parent
0c04342b1d
commit
b1ce6c2843
@ -41,7 +41,7 @@
|
|||||||
* - SH_SCOPE - in which scope (e.g. extern, static inline) do function
|
* - SH_SCOPE - in which scope (e.g. extern, static inline) do function
|
||||||
* declarations reside
|
* declarations reside
|
||||||
* - SH_RAW_ALLOCATOR - if defined, memory contexts are not used; instead,
|
* - SH_RAW_ALLOCATOR - if defined, memory contexts are not used; instead,
|
||||||
* use this to allocate bytes
|
* use this to allocate bytes. The allocator must zero the returned space.
|
||||||
* - SH_USE_NONDEFAULT_ALLOCATOR - if defined no element allocator functions
|
* - SH_USE_NONDEFAULT_ALLOCATOR - if defined no element allocator functions
|
||||||
* are defined, so you can supply your own
|
* are defined, so you can supply your own
|
||||||
* The following parameters are only relevant when SH_DEFINE is defined:
|
* The following parameters are only relevant when SH_DEFINE is defined:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user