From a4682e5d66274403b31fa6347a125bed599c3f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Wed, 26 Sep 2012 18:39:42 +0200 Subject: [PATCH] Core: Added low-level function mapping_free_keypair(). This function is needed to perform some low-level modifications of mappings. --- src/mapping.c | 5 +++++ src/mapping.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/mapping.c b/src/mapping.c index c8912f608a..54675d3732 100644 --- a/src/mapping.c +++ b/src/mapping.c @@ -112,6 +112,11 @@ BLOCK_ALLOC_FILL_PAGES(mapping, 2) } while(0) #endif /* !PIKE_MAPPING_KEYPAIR_LOOP */ +void mapping_free_keypair(struct mapping_data *md, struct keypair *k) +{ + FREE_KEYPAIR(md, k); +} + #ifdef PIKE_DEBUG /** This function checks that the type field isn't lacking any bits. diff --git a/src/mapping.h b/src/mapping.h index 3d8087edcf..207e394c45 100644 --- a/src/mapping.h +++ b/src/mapping.h @@ -140,6 +140,8 @@ BLOCK_ALLOC_FILL_PAGES(mapping, 2); +void mapping_free_keypair(struct mapping_data *md, struct keypair *k); + PMOD_EXPORT struct mapping *debug_allocate_mapping(int size); /** Function that actually frees the mapping data, called by the wrapper -- GitLab