summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-01-06 13:54:17 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-01-06 13:54:17 +0000
commitafc3ef1963eab2ca62a7689ca50f8f8f34febc3d (patch)
tree31fc2cfe0e78e784600bbade83efec94d338977f /mandocdb.c
parent64f5d2e4e90fd817523e78c27a8ca9e758dc909d (diff)
downloadmandoc-afc3ef1963eab2ca62a7689ca50f8f8f34febc3d.tar.gz
Rename dbindex() to dbadd() to be less confusing.
The concept of an index file is gone since the switch to SQLite. No functional change.
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 647129a6..ef445ea1 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -130,7 +130,7 @@ struct mdoc_handler {
};
static void dbclose(int);
-static void dbindex(const struct mpage *, struct mchars *);
+static void dbadd(const struct mpage *, struct mchars *);
static int dbopen(int);
static void dbprune(void);
static void filescan(const char *);
@@ -1047,7 +1047,7 @@ mpages_merge(struct mchars *mc, struct mparse *mp)
else
parse_cat(mpage);
- dbindex(mpage, mc);
+ dbadd(mpage, mc);
ohash_delete(&strings);
mpage = ohash_next(&mpages, &pslot);
}
@@ -1732,7 +1732,7 @@ render_key(struct mchars *mc, struct str *key)
* Also, handle escape sequences at the last possible moment.
*/
static void
-dbindex(const struct mpage *mpage, struct mchars *mc)
+dbadd(const struct mpage *mpage, struct mchars *mc)
{
struct mlink *mlink;
struct str *key;
@@ -1741,7 +1741,7 @@ dbindex(const struct mpage *mpage, struct mchars *mc)
unsigned int slot;
if (verb)
- say(mpage->mlinks->file, "Adding to index");
+ say(mpage->mlinks->file, "Adding to database");
if (nodb)
return;
@@ -1802,7 +1802,7 @@ dbprune(void)
SQL_STEP(stmts[STMT_DELETE_PAGE]);
sqlite3_reset(stmts[STMT_DELETE_PAGE]);
if (verb)
- say(mlink->file, "Deleted from index");
+ say(mlink->file, "Deleted from database");
mpage = ohash_next(&mpages, &slot);
}
}