Print this page
Update to 1.12.3.

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mandoc/html.h
          +++ new/usr/src/cmd/mandoc/html.h
   1      -/*      $Id: html.h,v 1.47 2011/10/05 21:35:17 kristaps Exp $ */
        1 +/*      $Id: html.h,v 1.49 2013/08/08 20:07:47 schwarze Exp $ */
   2    2  /*
   3    3   * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
   4    4   *
   5    5   * Permission to use, copy, modify, and distribute this software for any
   6    6   * purpose with or without fee is hereby granted, provided that the above
   7    7   * copyright notice and this permission notice appear in all copies.
   8    8   *
   9    9   * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10   10   * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11   11   * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
↓ open down ↓ 56 lines elided ↑ open up ↑
  68   68          ATTR_SUMMARY,
  69   69          ATTR_ALIGN,
  70   70          ATTR_COLSPAN,
  71   71          ATTR_MAX
  72   72  };
  73   73  
  74   74  enum    htmlfont {
  75   75          HTMLFONT_NONE = 0,
  76   76          HTMLFONT_BOLD,
  77   77          HTMLFONT_ITALIC,
       78 +        HTMLFONT_BI,
  78   79          HTMLFONT_MAX
  79   80  };
  80   81  
  81   82  struct  tag {
  82   83          struct tag       *next;
  83   84          enum htmltag      tag;
  84   85  };
  85   86  
  86   87  struct tagq {
  87   88          struct tag       *head;
↓ open down ↓ 22 lines elided ↑ open up ↑
 110  111  };
 111  112  
 112  113  struct  html {
 113  114          int               flags;
 114  115  #define HTML_NOSPACE     (1 << 0) /* suppress next space */
 115  116  #define HTML_IGNDELIM    (1 << 1)
 116  117  #define HTML_KEEP        (1 << 2)
 117  118  #define HTML_PREKEEP     (1 << 3)
 118  119  #define HTML_NONOSPACE   (1 << 4) /* never add spaces */
 119  120  #define HTML_LITERAL     (1 << 5) /* literal (e.g., <PRE>) context */
      121 +#define HTML_SKIPCHAR    (1 << 6) /* skip the next character */
 120  122          struct tagq       tags; /* stack of open tags */
 121  123          struct rofftbl    tbl; /* current table */
 122  124          struct tag       *tblt; /* current open table scope */
 123  125          struct mchars    *symtab; /* character-escapes */
 124  126          char             *base_man; /* base for manpage href */
 125  127          char             *base_includes; /* base for include href */
 126  128          char             *style; /* style-sheet URI */
 127  129          char              buf[BUFSIZ]; /* see bufcat and friends */
 128  130          size_t            buflen; 
 129  131          struct tag       *metaf; /* current open font scope */
↓ open down ↓ 35 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX