commit | bd5918760ecd1f40a574ccc8a302af869f68c27f | [log] [download] |
---|---|---|
author | nicm <nicm> | Fri Dec 11 15:46:57 2015 +0000 |
committer | nicm <nicm> | Fri Dec 11 15:46:57 2015 +0000 |
tree | 61937b9355903e6810816eaf4068567df478f36e | |
parent | d7e11d0af78bacc7722998509ac93be7fcffc7b4 [diff] |
We cannot do hooks_find and then hooks_remove because it might have come from the parent (global) tree, instead make it remove by name like options. While here, also tidy up a few bits of options and hooks handling (use RB_FOREACH_SAFE, and a helper function for the free).