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

Diff for /mandoc/mdoc.h between version 1.99 and 1.102

version 1.99, 2010/07/02 15:03:14 version 1.102, 2010/07/21 09:08:26
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 155  enum mdoct {
Line 155  enum mdoct {
   
 /* What follows is a list of ALL possible macro arguments. */  /* What follows is a list of ALL possible macro arguments. */
   
 /* FIXME: make this into an enum. */  enum    mdocargt {
 #define MDOC_Split       0          MDOC_Split,
 #define MDOC_Nosplit     1          MDOC_Nosplit,
 #define MDOC_Ragged      2          MDOC_Ragged,
 #define MDOC_Unfilled    3          MDOC_Unfilled,
 #define MDOC_Literal     4          MDOC_Literal,
 #define MDOC_File        5          MDOC_File,
 #define MDOC_Offset      6          MDOC_Offset,
 #define MDOC_Bullet      7          MDOC_Bullet,
 #define MDOC_Dash        8          MDOC_Dash,
 #define MDOC_Hyphen      9          MDOC_Hyphen,
 #define MDOC_Item        10          MDOC_Item,
 #define MDOC_Enum        11          MDOC_Enum,
 #define MDOC_Tag         12          MDOC_Tag,
 #define MDOC_Diag        13          MDOC_Diag,
 #define MDOC_Hang        14          MDOC_Hang,
 #define MDOC_Ohang       15          MDOC_Ohang,
 #define MDOC_Inset       16          MDOC_Inset,
 #define MDOC_Column      17          MDOC_Column,
 #define MDOC_Width       18          MDOC_Width,
 #define MDOC_Compact     19          MDOC_Compact,
 #define MDOC_Std         20          MDOC_Std,
 #define MDOC_Filled      21          MDOC_Filled,
 #define MDOC_Words       22          MDOC_Words,
 #define MDOC_Emphasis    23          MDOC_Emphasis,
 #define MDOC_Symbolic    24          MDOC_Symbolic,
 #define MDOC_Nested      25          MDOC_Nested,
 #define MDOC_Centred     26          MDOC_Centred,
 #define MDOC_ARG_MAX     27          MDOC_ARG_MAX
   };
   
 /* Type of a syntax node. */  /* Type of a syntax node. */
 enum    mdoc_type {  enum    mdoc_type {
Line 236  struct mdoc_meta {
Line 237  struct mdoc_meta {
   
 /* An argument to a macro (multiple values = `It -column'). */  /* An argument to a macro (multiple values = `It -column'). */
 struct  mdoc_argv {  struct  mdoc_argv {
         int               arg;          enum mdocargt     arg;
         int               line;          int               line;
         int               pos;          int               pos;
         size_t            sz;          size_t            sz;
Line 303  struct mdoc_bl {
Line 304  struct mdoc_bl {
         const char       *offs; /* -offset */          const char       *offs; /* -offset */
         enum mdoc_list    type; /* -tag, -enum, etc. */          enum mdoc_list    type; /* -tag, -enum, etc. */
         int               comp; /* -compact */          int               comp; /* -compact */
           size_t            ncols; /* -column arg count */
           const char      **cols; /* -column val ptr */
 };  };
   
 struct  mdoc_bf {  struct  mdoc_bf {

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.102

CVSweb