chiark / gitweb /
implement cht_do_cdbwr_delete
authorian <ian>
Sun, 5 Feb 2006 00:59:15 +0000 (00:59 +0000)
committerian <ian>
Sun, 5 Feb 2006 00:59:15 +0000 (00:59 +0000)
cdb/writeable.c

index e04cf69..ccdd6aa 100644 (file)
@@ -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);
+}