chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1cd415
)
implement cht_do_cdbwr_delete
author
ian
<ian>
Sun, 5 Feb 2006 00:59:15 +0000
(
00:59
+0000)
committer
ian
<ian>
Sun, 5 Feb 2006 00:59:15 +0000
(
00:59
+0000)
cdb/writeable.c
patch
|
blob
|
history
diff --git
a/cdb/writeable.c
b/cdb/writeable.c
index e04cf69830465309ccdf55060c5edd072aad064a..ccdd6aa3de4e15b4a974544060d3ab2706ae59bf 100644
(file)
--- a/
cdb/writeable.c
+++ b/
cdb/writeable.c
@@
-829,3
+829,8
@@
int cht_do_cdbwr_update_hb(ClientData cd, Tcl_Interp *ip,
void *rw_v, const char *key, HBytes_Value value) {
return update(ip, rw_v, key, cht_hb_data(&value), cht_hb_len(&value));
}
+
+int cht_do_cdbwr_delete(ClientData cd, Tcl_Interp *ip, void *rw_v,
+ const char *key) {
+ return update(ip, rw_v, key, 0, 0);
+}