From 15d1d5f2a4373836615b0d458c00d9cc233caf5c Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 6 Jan 2014 13:54:17 +0000 Subject: Rename dbindex() to dbadd() to be less confusing. The concept of an index file is gone since the switch to SQLite. No functional change. --- mandocdb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mandocdb.c b/mandocdb.c index 4cae71b1..e4346b69 100644 --- a/mandocdb.c +++ b/mandocdb.c @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.104 2014/01/06 03:52:13 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.105 2014/01/06 13:54:17 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze @@ -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); } } -- cgit v1.2.3-56-ge451