summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-05-09 13:22:58 +0200
committerLinus Nordberg <linus@nordu.net>2016-05-09 13:22:58 +0200
commit135ed3aab0757e3a26fd381a927e2825ae2c6479 (patch)
treedefdeba3d4b6113ae3421bda0af666d8d0403d6c
parent5ac659718c48573356054e4e6ea6af5844c07931 (diff)
Document keypart().
-rw-r--r--c_src/permdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/c_src/permdb.c b/c_src/permdb.c
index ea0fc91..7abc8ed 100644
--- a/c_src/permdb.c
+++ b/c_src/permdb.c
@@ -500,6 +500,10 @@ keybits(const unsigned char *key, unsigned int level)
return (b >> (6 - 2*mlev)) & 0x3;
}
+/*
+ * Extracts the parts of KEY used for traversing a tree down to LEVEL
+ * and write an ASCII representation to S.
+ */
static void
keypart(const unsigned char *key, unsigned int level, ps_string *s)
{