version 1.49.2.6, 2013/10/01 00:52:58 |
version 1.49.2.9, 2013/10/10 23:43:04 |
|
|
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
#if defined(__linux__) || defined(__sun) |
#if defined(__APPLE__) |
|
# include <libkern/OSByteOrder.h> |
|
#elif defined(__linux__) |
# include <endian.h> |
# include <endian.h> |
|
#elif defined(__sun) |
|
# include <sys/byteorder.h> |
|
# include <sys/stat.h> |
|
#else |
|
# include <sys/endian.h> |
|
#endif |
|
|
|
#if defined(__linux__) || defined(__sun) |
# include <db_185.h> |
# include <db_185.h> |
#elif defined(__APPLE__) |
|
# include <libkern/OSByteOrder.h> |
|
# include <db.h> |
|
#else |
#else |
# include <db.h> |
# include <db.h> |
#endif |
#endif |
|
|
#if defined(__sun) |
|
#include <sys/stat.h> |
|
#endif |
|
|
|
#include "man.h" |
#include "man.h" |
#include "mdoc.h" |
#include "mdoc.h" |
#include "mandoc.h" |
#include "mandoc.h" |
Line 619 index_merge(const struct of *of, struct mparse *mp, |
|
Line 622 index_merge(const struct of *of, struct mparse *mp, |
|
uint64_t vbuf[2]; |
uint64_t vbuf[2]; |
char type; |
char type; |
|
|
|
static char emptystring[] = ""; |
|
|
if (warnings) { |
if (warnings) { |
files = NULL; |
files = NULL; |
hash_reset(&files); |
hash_reset(&files); |
Line 737 index_merge(const struct of *of, struct mparse *mp, |
|
Line 742 index_merge(const struct of *of, struct mparse *mp, |
|
val.data = NULL; |
val.data = NULL; |
val.size = 0; |
val.size = 0; |
if (0 == skip) |
if (0 == skip) |
val.data = ""; |
val.data = emptystring; |
else { |
else { |
ch = (*files->get)(files, &key, &val, 0); |
ch = (*files->get)(files, &key, &val, 0); |
if (ch < 0) { |
if (ch < 0) { |