aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apropos_db.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-11-13 10:49:57 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-11-13 10:49:57 +0000
commit58b2b9f4741e56383779973cc412ca087987b114 (patch)
tree22c8eba850208336fb68f15e3c7dcfe3780b451f /apropos_db.h
parent634723ea3f0d1959630822e288b230b77961eb92 (diff)
downloadmandoc-58b2b9f4741e56383779973cc412ca087987b114.tar.gz
mandoc-58b2b9f4741e56383779973cc412ca087987b114.tar.zst
mandoc-58b2b9f4741e56383779973cc412ca087987b114.zip
Inventing new keywords for mostly the same thing when a well-established
set of keywords already exists is a bad idea, so reuse the mdoc(7) macro names as apropos(1) search types. This is a gain in brevity as well. Some time ago, kristaps@ agreed in principle. The search type bit field constants are used by both mandocdb(8) and apropos(1) and should better stay in sync, so give them their own header file.
Diffstat (limited to 'apropos_db.h')
-rw-r--r--apropos_db.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/apropos_db.h b/apropos_db.h
index fd37931c..7801b126 100644
--- a/apropos_db.h
+++ b/apropos_db.h
@@ -1,4 +1,4 @@
-/* $Id: apropos_db.h,v 1.1 2011/11/13 10:12:05 schwarze Exp $ */
+/* $Id: apropos_db.h,v 1.2 2011/11/13 10:49:57 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -17,20 +17,6 @@
#ifndef APROPOS_H
#define APROPOS_H
-#define TYPE_NAME 0x01
-#define TYPE_FUNCTION 0x02
-#define TYPE_UTILITY 0x04
-#define TYPE_INCLUDES 0x08
-#define TYPE_VARIABLE 0x10
-#define TYPE_STANDARD 0x20
-#define TYPE_AUTHOR 0x40
-#define TYPE_CONFIG 0x80
-#define TYPE_DESC 0x100
-#define TYPE_XREF 0x200
-#define TYPE_PATH 0x400
-#define TYPE_ENV 0x800
-#define TYPE_ERR 0x1000
-
struct rec {
char *file; /* file in file-system */
char *cat; /* category (3p, 3, etc.) */