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

Diff for /mandoc/mdoc.c between version 1.105 and 1.112

version 1.105, 2009/09/16 14:40:56 version 1.112, 2009/10/27 08:26:12
Line 14 
Line 14 
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
   #include <sys/types.h>
   
 #include <assert.h>  #include <assert.h>
 #include <ctype.h>  #include <ctype.h>
 #include <stdarg.h>  #include <stdarg.h>
Line 74  const char *const __mdoc_merrnames[MERRMAX] = {   
Line 76  const char *const __mdoc_merrnames[MERRMAX] = {   
         "unclosed explicit scope", /* EOPEN */          "unclosed explicit scope", /* EOPEN */
         "unterminated quoted phrase", /* EQUOTPHR */          "unterminated quoted phrase", /* EQUOTPHR */
         "closure macro without prior context", /* ENOCTX */          "closure macro without prior context", /* ENOCTX */
         "no description found for library" /* ELIB */          "no description found for library", /* ELIB */
           "bad child for parent context", /* EBADCHILD */
           "list arguments preceding type", /* ENOTYPE */
 };  };
   
 const   char *const __mdoc_macronames[MDOC_MAX] = {  const   char *const __mdoc_macronames[MDOC_MAX] = {
Line 112  const char *const __mdoc_macronames[MDOC_MAX] = {   
Line 116  const char *const __mdoc_macronames[MDOC_MAX] = {   
         /* LINTED */          /* LINTED */
         "Brc",          "\%C",          "Es",           "En",          "Brc",          "\%C",          "Es",           "En",
         /* LINTED */          /* LINTED */
         "Dx",           "\%Q",          "br",           "sp"          "Dx",           "\%Q",          "br",           "sp",
           /* LINTED */
           "\%U"
         };          };
   
 const   char *const __mdoc_argnames[MDOC_ARG_MAX] = {  const   char *const __mdoc_argnames[MDOC_ARG_MAX] = {
Line 124  const char *const __mdoc_argnames[MDOC_ARG_MAX] = {   
Line 130  const char *const __mdoc_argnames[MDOC_ARG_MAX] = {   
         "ohang",                "inset",                "column",          "ohang",                "inset",                "column",
         "width",                "compact",              "std",          "width",                "compact",              "std",
         "filled",               "words",                "emphasis",          "filled",               "words",                "emphasis",
         "symbolic",             "nested"          "symbolic",             "nested",               "centered"
         };          };
   
 const   char * const *mdoc_macronames = __mdoc_macronames;  const   char * const *mdoc_macronames = __mdoc_macronames;
Line 192  static int
Line 198  static int
 mdoc_alloc1(struct mdoc *mdoc)  mdoc_alloc1(struct mdoc *mdoc)
 {  {
   
         bzero(&mdoc->meta, sizeof(struct mdoc_meta));          memset(&mdoc->meta, 0, sizeof(struct mdoc_meta));
         mdoc->flags = 0;          mdoc->flags = 0;
         mdoc->lastnamed = mdoc->lastsec = SEC_NONE;          mdoc->lastnamed = mdoc->lastsec = SEC_NONE;
         mdoc->last = calloc(1, sizeof(struct mdoc_node));          mdoc->last = calloc(1, sizeof(struct mdoc_node));
Line 656  parsetext(struct mdoc *m, int line, char *buf)
Line 662  parsetext(struct mdoc *m, int line, char *buf)
         m->next = MDOC_NEXT_SIBLING;          m->next = MDOC_NEXT_SIBLING;
         return(1);          return(1);
 }  }
   
   
   
   

Legend:
Removed from v.1.105  
changed lines
  Added in v.1.112

CVSweb