[BACK]Return to mandocdb.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mandocdb.c between version 1.49.2.7 and 1.49.2.9

version 1.49.2.7, 2013/10/02 21:03:26 version 1.49.2.9, 2013/10/10 23:43:04
Line 34 
Line 34 
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
   
 #if defined(__linux__) || defined(__sun)  #if defined(__APPLE__)
 # include <endian.h>  
 # include <db_185.h>  
 #elif defined(__APPLE__)  
 # include <libkern/OSByteOrder.h>  # include <libkern/OSByteOrder.h>
 # include <db.h>  #elif defined(__linux__)
   # include <endian.h>
   #elif defined(__sun)
   # include <sys/byteorder.h>
   # include <sys/stat.h>
 #else  #else
 # include <sys/endian.h>  # include <sys/endian.h>
 # include <db.h>  
 #endif  #endif
   
 #if defined(__sun)  #if defined(__linux__) || defined(__sun)
 #include <sys/stat.h>  # include <db_185.h>
   #else
   # include <db.h>
 #endif  #endif
   
 #include "man.h"  #include "man.h"
Line 620  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 738  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) {

Legend:
Removed from v.1.49.2.7  
changed lines
  Added in v.1.49.2.9

CVSweb