commit 2d1d2d535b6ad6401d73c1bbfb42735a81dbc8cc
parent 8307e1c8bb63c8205d548806061acae08352157d
Author: rpa <rpa@grass>
Date: Wed, 22 Nov 2023 19:55:50 +0000
wdb: more cleanup
Diffstat:
4 files changed, 3 insertions(+), 25 deletions(-)
diff --git a/src/wdb/mkfile b/src/wdb/mkfile
@@ -1,5 +1,5 @@
</$objtype/mkfile
-HFILES=wdb.h
+HFILES=
OFILES=
BIN=$home/bin/$cputype/wdb
RC=\
diff --git a/src/wdb/search.c b/src/wdb/search.c
@@ -8,8 +8,6 @@ Biobuf *bout;
#include "../util/util.h"
#include "../tablist/tablist.h"
-#include "wdb.h"
-
enum { MaxTags = 256, Growth = 16, BSize = 8192, };
char *tags[MaxTags], *types[MaxTags];
diff --git a/src/wdb/ui.inc b/src/wdb/ui.inc
@@ -7,6 +7,8 @@ fn main_help {
'h - help
i - regenerate index
s [query] - search
+t [query] - search by tag
+T [query] - search by type
n - new entry
q - quit'
}
diff --git a/src/wdb/wdb.h b/src/wdb/wdb.h
@@ -1,22 +0,0 @@
-enum {
- WDBId,
- WDBName,
- WDBTags,
- WDBType,
-
- WDBMax,
-};
-
-typedef struct WDB WDB;
-struct WDB {
- union {
- char **pp[WDBMax];
- struct {
- char **id;
- char **name;
- char **tags;
- char **type;
- };
- };
- long n;
-};