Skip to content

khash: factor out kh_release_* - #107

Open
rscharfe wants to merge 1 commit into
attractivechaos:masterfrom
rscharfe:master
Open

khash: factor out kh_release_*#107
rscharfe wants to merge 1 commit into
attractivechaos:masterfrom
rscharfe:master

Conversation

@rscharfe

@rscharfe rscharfe commented Oct 3, 2018

Copy link
Copy Markdown

Add a function for releasing only the internal memory of the khash structure, but not the structure itself. This allows keeping that struct on the stack instead of allocating it using kh_init_*.

@larseggert

Copy link
Copy Markdown

Needs a kh_release() macro added, otherwise a great addition

@rscharfe

Copy link
Copy Markdown
Author

kh_release() added, patch amended.

Add a function for releasing only the internal memory of the khash
structure, but not the structure itself.  This allows keeping that
struct on the stack instead of allocating it using kh_init_*.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants