[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.10

version 1.49.2.7, 2013/10/02 21:03:26 version 1.49.2.10, 2013/11/21 01:53:48
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 732  index_merge(const struct of *of, struct mparse *mp,
Line 736  index_merge(const struct of *of, struct mparse *mp,
                         }                          }
                         buf_appendb(buf, ")", 2);                          buf_appendb(buf, ")", 2);
                         for (p = buf->cp; '\0' != *p; p++)                          for (p = buf->cp; '\0' != *p; p++)
                                 *p = tolower(*p);                                  *p = tolower((unsigned char)*p);
                         key.data = buf->cp;                          key.data = buf->cp;
                         key.size = buf->len;                          key.size = buf->len;
                         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.10

CVSweb