chiark / gitweb /
compilation fixes
[chiark-tcl.git] / cdb / cdb.tct
index 0999af9d94018820df2bc43cd76f78836ddde89e..29325f19cb339e0ebdd0a7e707f70b0caaea3fe1 100644 (file)
@@ -58,42 +58,56 @@ Table cdbwr Cdbwr_SubCommand
        open 0
                pathb   string
                on_info obj
+               ?on_lexminval obj
+               # on_lexminval present and not empty list: provides a
+               #  script which returns the current lexminval.  In
+               #  this case, occasionally,
+               #  on_lexminval will be called and then entries whose
+               #  value is lexically strictly less than lexminval
+               #  will be deleted automatically.  The comparison
+               #  is bytewise on the UTF-8 representations.
                =>      iddata(&cdbtcl_rwdatabases)
        open-okjunk RWSCF_OKJUNK
                pathb   string
                on_info obj
+               ?on_lexminval obj
                =>      iddata(&cdbtcl_rwdatabases)
                # on_info <event> <xinfo>...:
                # on_info open-clean <statistics-info-string>
                # on_info open-dirty-start <statistics-info-string>
-               # on_info open-dirty-junk <problem-info-string>
+               # on_info open-dirty-junk <problem-info-string> \
+               #               <problem-error-code-list>
                # on_info open-dirty-done <statistics-info-string>
                # on_info compact-start <statistics-info-string>
                # on_info compact-done <statistics-info-string>
                # on_info close <statistics-info-string>
        lookup 0
                db      iddata(&cdbtcl_rwdatabases)
-               key     obj
+               key     string
                ?def    obj
                =>      obj
        lookup-hb 0
                db      iddata(&cdbtcl_rwdatabases)
-               key     hb
+               key     string
                ?def    hb
                =>      hb
+       delete 0
+               db      iddata(&cdbtcl_rwdatabases)
+               key     string
        update 0
                db      iddata(&cdbtcl_rwdatabases)
-               key     obj
+               key     string
                value   obj
        update-hb 0
                db      iddata(&cdbtcl_rwdatabases)
-               key     hb
+               key     string
                value   hb
        compact-force 0
                db      iddata(&cdbtcl_rwdatabases)
        compact-check 0
                db      iddata(&cdbtcl_rwdatabases)
-       compact-onupdate 0 # this is the default
+       compact-auto 0
+               # this is the default
                db      iddata(&cdbtcl_rwdatabases)
        compact-explicit 0
                db      iddata(&cdbtcl_rwdatabases)