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

Diff for /mandoc/mandoc.h between version 1.46 and 1.52

version 1.46, 2011/01/03 23:53:51 version 1.52, 2011/01/11 00:11:45
Line 100  enum mandocerr {
Line 100  enum mandocerr {
         MANDOCERR_BADESCAPE, /* unknown escape sequence */          MANDOCERR_BADESCAPE, /* unknown escape sequence */
         MANDOCERR_BADQUOTE, /* unterminated quoted string */          MANDOCERR_BADQUOTE, /* unterminated quoted string */
   
         /* related to tables */  
         MANDOCERR_TBLEXTRADAT, /* extra data cells */  
   
         MANDOCERR_ERROR, /* ===== start of errors ===== */          MANDOCERR_ERROR, /* ===== start of errors ===== */
   
         /* related to tables */          /* related to tables */
Line 111  enum mandocerr {
Line 108  enum mandocerr {
         MANDOCERR_TBLLAYOUT, /* bad table layout */          MANDOCERR_TBLLAYOUT, /* bad table layout */
         MANDOCERR_TBLNOLAYOUT, /* no table layout cells specified */          MANDOCERR_TBLNOLAYOUT, /* no table layout cells specified */
         MANDOCERR_TBLNODATA, /* no table data cells specified */          MANDOCERR_TBLNODATA, /* no table data cells specified */
           MANDOCERR_TBLIGNDATA, /* ignore data in cell */
           MANDOCERR_TBLBLOCK, /* data block still open */
           MANDOCERR_TBLEXTRADAT, /* ignoring extra data cells */
   
         MANDOCERR_ROFFLOOP, /* input stack limit exceeded, infinite loop? */          MANDOCERR_ROFFLOOP, /* input stack limit exceeded, infinite loop? */
         MANDOCERR_BADCHAR, /* skipping bad character */          MANDOCERR_BADCHAR, /* skipping bad character */
           MANDOCERR_NAMESC, /* escaped character not allowed in a name */
         MANDOCERR_NOTEXT, /* skipping text before the first section header */          MANDOCERR_NOTEXT, /* skipping text before the first section header */
         MANDOCERR_MACRO, /* skipping unknown macro */          MANDOCERR_MACRO, /* skipping unknown macro */
         MANDOCERR_REQUEST, /* NOT IMPLEMENTED: skipping request */          MANDOCERR_REQUEST, /* NOT IMPLEMENTED: skipping request */
Line 150  struct tbl {
Line 151  struct tbl {
         char              tab; /* cell-separator */          char              tab; /* cell-separator */
         char              decimal; /* decimal point */          char              decimal; /* decimal point */
         int               linesize;          int               linesize;
         char              delims[2]; /* FIXME: deprecate */  
         int               opts;          int               opts;
 #define TBL_OPT_CENTRE   (1 << 0)  #define TBL_OPT_CENTRE   (1 << 0)
 #define TBL_OPT_EXPAND   (1 << 1)  #define TBL_OPT_EXPAND   (1 << 1)
Line 201  enum tbl_cellt {
Line 201  enum tbl_cellt {
 struct  tbl_cell {  struct  tbl_cell {
         struct tbl_cell  *next;          struct tbl_cell  *next;
         enum tbl_cellt    pos;          enum tbl_cellt    pos;
         int               spacing;          size_t            spacing;
         int               flags;          int               flags;
 #define TBL_CELL_TALIGN  (1 << 0) /* t, T */  #define TBL_CELL_TALIGN  (1 << 0) /* t, T */
 #define TBL_CELL_BALIGN  (1 << 1) /* d, D */  #define TBL_CELL_BALIGN  (1 << 1) /* d, D */
Line 223  struct tbl_row {
Line 223  struct tbl_row {
 };  };
   
 enum    tbl_datt {  enum    tbl_datt {
         TBL_DATA_DATA,          TBL_DATA_NONE, /* has no data */
         TBL_DATA_HORIZ,          TBL_DATA_DATA, /* consists of data/string */
         TBL_DATA_DHORIZ,          TBL_DATA_HORIZ, /* horizontal line */
         TBL_DATA_NHORIZ,          TBL_DATA_DHORIZ, /* double-horizontal line */
         TBL_DATA_NDHORIZ          TBL_DATA_NHORIZ, /* squeezed horizontal line */
           TBL_DATA_NDHORIZ /* squeezed double-horizontal line */
 };  };
   
 /*  /*
Line 235  enum tbl_datt {
Line 236  enum tbl_datt {
  * string value that's in the cell.  The rest is layout.   * string value that's in the cell.  The rest is layout.
  */   */
 struct  tbl_dat {  struct  tbl_dat {
         struct tbl_cell  *layout; /* layout cell: CAN BE NULL */          struct tbl_cell  *layout; /* layout cell */
           int               spans; /* how many spans follow */
         struct tbl_dat   *next;          struct tbl_dat   *next;
         char             *string;          char             *string; /* data (NULL if not TBL_DATA_DATA) */
         enum tbl_datt     pos;          enum tbl_datt     pos;
 };  };
   
Line 253  enum tbl_spant {
Line 255  enum tbl_spant {
 struct  tbl_span {  struct  tbl_span {
         struct tbl       *tbl;          struct tbl       *tbl;
         struct tbl_head  *head;          struct tbl_head  *head;
         struct tbl_row   *layout; /* layout row: CAN BE NULL */          struct tbl_row   *layout; /* layout row */
         struct tbl_dat   *first;          struct tbl_dat   *first;
         struct tbl_dat   *last;          struct tbl_dat   *last;
         int               flags;          int               flags;

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.52

CVSweb