diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-04 20:43:38 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-04 20:43:38 +0000 |
commit | 33e222d2893cd2543464bbb9c8ed5c7d6a0c57ce (patch) | |
tree | 2b3fb0a3509b64c696f1d599b03862ec048630f5 /mandoc-db.c | |
parent | c74a9fa3c4aa1003c08cf8571d41c861ec60a6a7 (diff) | |
download | mandoc-33e222d2893cd2543464bbb9c8ed5c7d6a0c57ce.tar.gz |
Grok manual architecture in mandoc-db.c.
Diffstat (limited to 'mandoc-db.c')
-rw-r--r-- | mandoc-db.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mandoc-db.c b/mandoc-db.c index ea055c5e..d8f2ce29 100644 --- a/mandoc-db.c +++ b/mandoc-db.c @@ -228,6 +228,7 @@ main(int argc, char *argv[]) char *fn; /* current file being parsed */ const char *msec, /* manual section */ *mtitle, /* manual title */ + *arch, /* manual architecture */ *dir; /* result dir (default: cwd) */ char ibuf[MAXPATHLEN], /* index fname */ ibbuf[MAXPATHLEN], /* index backup fname */ @@ -364,6 +365,7 @@ main(int argc, char *argv[]) mtitle = NULL != mdoc ? mdoc_meta(mdoc)->title : man_meta(man)->title; + arch = NULL != mdoc ? mdoc_meta(mdoc)->arch : NULL; assert(msec); assert(mtitle); @@ -380,6 +382,9 @@ main(int argc, char *argv[]) dbt_appendb(&rval, &rsz, fn, strlen(fn) + 1); dbt_appendb(&rval, &rsz, msec, strlen(msec) + 1); dbt_appendb(&rval, &rsz, mtitle, strlen(mtitle) + 1); + dbt_appendb(&rval, &rsz, arch ? arch : "", + arch ? strlen(arch) + 1 : 1); + sv = rval.size; /* Fix the record number in the btree value. */ |