version 1.13, 2011/11/27 23:27:16 |
version 1.14, 2011/11/28 00:57:28 |
|
|
#include <stdint.h> |
#include <stdint.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
#include <unistd.h> |
#include <db.h> |
#include <db.h> |
|
|
#include "man.h" |
#include "man.h" |
|
|
index_prune(of, db, fbuf, idx, ibuf, |
index_prune(of, db, fbuf, idx, ibuf, |
&maxrec, &recs, &recsz); |
&maxrec, &recs, &recsz); |
|
|
if (OP_UPDATE == op) |
if (OP_UPDATE == op) { |
|
chdir(dir); |
index_merge(of, mp, &dbuf, &buf, hash, |
index_merge(of, mp, &dbuf, &buf, hash, |
db, fbuf, idx, ibuf, |
db, fbuf, idx, ibuf, |
maxrec, recs, reccur); |
maxrec, recs, reccur); |
|
} |
|
|
goto out; |
goto out; |
} |
} |
|
|
|
|
of = of->first; |
of = of->first; |
|
|
|
chdir(dirs.paths[i]); |
index_merge(of, mp, &dbuf, &buf, hash, db, fbuf, |
index_merge(of, mp, &dbuf, &buf, hash, db, fbuf, |
idx, ibuf, maxrec, recs, reccur); |
idx, ibuf, maxrec, recs, reccur); |
} |
} |