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

Diff for /mandoc/mandocdb.c between version 1.91 and 1.92

version 1.91, 2013/12/31 18:07:42 version 1.92, 2013/12/31 19:40:20
Line 154  static int  parse_mdoc_body(struct mpage *, const stru
Line 154  static int  parse_mdoc_body(struct mpage *, const stru
 static  int      parse_mdoc_head(struct mpage *, const struct mdoc_node *);  static  int      parse_mdoc_head(struct mpage *, const struct mdoc_node *);
 static  int      parse_mdoc_Fd(struct mpage *, const struct mdoc_node *);  static  int      parse_mdoc_Fd(struct mpage *, const struct mdoc_node *);
 static  int      parse_mdoc_Fn(struct mpage *, const struct mdoc_node *);  static  int      parse_mdoc_Fn(struct mpage *, const struct mdoc_node *);
 static  int      parse_mdoc_In(struct mpage *, const struct mdoc_node *);  
 static  int      parse_mdoc_Nd(struct mpage *, const struct mdoc_node *);  static  int      parse_mdoc_Nd(struct mpage *, const struct mdoc_node *);
 static  int      parse_mdoc_Nm(struct mpage *, const struct mdoc_node *);  static  int      parse_mdoc_Nm(struct mpage *, const struct mdoc_node *);
 static  int      parse_mdoc_Sh(struct mpage *, const struct mdoc_node *);  static  int      parse_mdoc_Sh(struct mpage *, const struct mdoc_node *);
 static  int      parse_mdoc_St(struct mpage *, const struct mdoc_node *);  
 static  int      parse_mdoc_Xr(struct mpage *, const struct mdoc_node *);  static  int      parse_mdoc_Xr(struct mpage *, const struct mdoc_node *);
 static  void     putkey(const struct mpage *,  static  void     putkey(const struct mpage *,
                         const char *, uint64_t);                          const char *, uint64_t);
Line 216  static const struct mdoc_handler mdocs[MDOC_MAX] = {
Line 214  static const struct mdoc_handler mdocs[MDOC_MAX] = {
         { parse_mdoc_Fn, 0 },  /* Fn */          { parse_mdoc_Fn, 0 },  /* Fn */
         { NULL, TYPE_Ft },  /* Ft */          { NULL, TYPE_Ft },  /* Ft */
         { NULL, TYPE_Ic },  /* Ic */          { NULL, TYPE_Ic },  /* Ic */
         { parse_mdoc_In, TYPE_In },  /* In */          { NULL, TYPE_In },  /* In */
         { NULL, TYPE_Li },  /* Li */          { NULL, TYPE_Li },  /* Li */
         { parse_mdoc_Nd, TYPE_Nd },  /* Nd */          { parse_mdoc_Nd, TYPE_Nd },  /* Nd */
         { parse_mdoc_Nm, TYPE_Nm },  /* Nm */          { parse_mdoc_Nm, TYPE_Nm },  /* Nm */
Line 224  static const struct mdoc_handler mdocs[MDOC_MAX] = {
Line 222  static const struct mdoc_handler mdocs[MDOC_MAX] = {
         { NULL, 0 },  /* Ot */          { NULL, 0 },  /* Ot */
         { NULL, TYPE_Pa },  /* Pa */          { NULL, TYPE_Pa },  /* Pa */
         { NULL, 0 },  /* Rv */          { NULL, 0 },  /* Rv */
         { parse_mdoc_St, 0 },  /* St */          { NULL, TYPE_St },  /* St */
         { NULL, TYPE_Va },  /* Va */          { NULL, TYPE_Va },  /* Va */
         { parse_mdoc_body, TYPE_Va },  /* Vt */          { parse_mdoc_body, TYPE_Va },  /* Vt */
         { parse_mdoc_Xr, 0 },  /* Xr */          { parse_mdoc_Xr, 0 },  /* Xr */
Line 1441  parse_mdoc_Fd(struct mpage *mpage, const struct mdoc_n
Line 1439  parse_mdoc_Fd(struct mpage *mpage, const struct mdoc_n
   
         if (end > start)          if (end > start)
                 putkeys(mpage, start, end - start + 1, TYPE_In);                  putkeys(mpage, start, end - start + 1, TYPE_In);
         return(1);          return(0);
 }  }
   
 static int  static int
 parse_mdoc_In(struct mpage *mpage, const struct mdoc_node *n)  
 {  
   
         if (NULL != n->child && MDOC_TEXT == n->child->type)  
                 return(0);  
   
         putkey(mpage, n->child->string, TYPE_In);  
         return(1);  
 }  
   
 static int  
 parse_mdoc_Fn(struct mpage *mpage, const struct mdoc_node *n)  parse_mdoc_Fn(struct mpage *mpage, const struct mdoc_node *n)
 {  {
         const char      *cp;          const char      *cp;
Line 1489  parse_mdoc_Fn(struct mpage *mpage, const struct mdoc_n
Line 1476  parse_mdoc_Fn(struct mpage *mpage, const struct mdoc_n
 }  }
   
 static int  static int
 parse_mdoc_St(struct mpage *mpage, const struct mdoc_node *n)  
 {  
   
         if (NULL == n->child || MDOC_TEXT != n->child->type)  
                 return(0);  
   
         putkey(mpage, n->child->string, TYPE_St);  
         return(1);  
 }  
   
 static int  
 parse_mdoc_Xr(struct mpage *mpage, const struct mdoc_node *n)  parse_mdoc_Xr(struct mpage *mpage, const struct mdoc_node *n)
 {  {
         char    *cp;          char    *cp;
Line 1556  static int
Line 1532  static int
 parse_mdoc_Nm(struct mpage *mpage, const struct mdoc_node *n)  parse_mdoc_Nm(struct mpage *mpage, const struct mdoc_node *n)
 {  {
   
         if (SEC_NAME == n->sec)          return(SEC_NAME == n->sec ||
                 return(1);              (SEC_SYNOPSIS == n->sec && MDOC_HEAD == n->type));
         else if (SEC_SYNOPSIS != n->sec || MDOC_HEAD != n->type)  
                 return(0);  
   
         return(1);  
 }  }
   
 static int  static int

Legend:
Removed from v.1.91  
changed lines
  Added in v.1.92

CVSweb