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

Diff for /mandoc/mandoc.h between version 1.87 and 1.92

version 1.87, 2011/07/21 14:13:00 version 1.92, 2011/07/23 12:01:54
Line 110  enum mandocerr {
Line 110  enum mandocerr {
         MANDOCERR_ERROR, /* ===== start of errors ===== */          MANDOCERR_ERROR, /* ===== start of errors ===== */
   
         /* related to equations */          /* related to equations */
         MANDOCERR_EQNARGS, /* bad equation macro arguments */  
         MANDOCERR_EQNNEST, /* too many nested equation defines */          MANDOCERR_EQNNEST, /* too many nested equation defines */
         MANDOCERR_EQNNSCOPE, /* unexpected equation scope closure*/          MANDOCERR_EQNNSCOPE, /* unexpected equation scope closure*/
         MANDOCERR_EQNSCOPE, /* equation scope open on exit */          MANDOCERR_EQNSCOPE, /* equation scope open on exit */
           MANDOCERR_EQNBADSCOPE, /* overlapping equation scopes */
           MANDOCERR_EQNEOF, /* unexpected end of equation */
           MANDOCERR_EQNSYNT, /* equation syntax error */
   
         /* related to tables */          /* related to tables */
         MANDOCERR_TBL, /* bad table syntax */          MANDOCERR_TBL, /* bad table syntax */
Line 282  struct tbl_span {
Line 284  struct tbl_span {
 enum    eqn_boxt {  enum    eqn_boxt {
         EQN_ROOT, /* root of parse tree */          EQN_ROOT, /* root of parse tree */
         EQN_TEXT, /* text (number, variable, whatever) */          EQN_TEXT, /* text (number, variable, whatever) */
         EQN_SUBEXPR /* nested subexpression */          EQN_SUBEXPR, /* nested `eqn' subexpression */
           EQN_LIST, /* subexpressions list */
           EQN_MATRIX /* matrix subexpression */
 };  };
   
 enum    eqn_markt {  enum    eqn_markt {
Line 313  enum eqn_post {
Line 317  enum eqn_post {
         EQNPOS_SUB,          EQNPOS_SUB,
         EQNPOS_TO,          EQNPOS_TO,
         EQNPOS_FROM,          EQNPOS_FROM,
         EQNPOS_ABOVE,  
         EQNPOS__MAX          EQNPOS__MAX
 };  };
   
   enum    eqn_pilet {
           EQNPILE_NONE = 0,
           EQNPILE_CPILE,
           EQNPILE_RPILE,
           EQNPILE_LPILE,
           EQNPILE_CCOL,
           EQNPILE_RCOL,
           EQNPILE_LCOL,
           EQNPILE__MAX
   };
   
  /*   /*
  * A "box" is a parsed mathematical expression as defined by the eqn.7   * A "box" is a parsed mathematical expression as defined by the eqn.7
  * grammar.   * grammar.
  */   */
 struct  eqn_box {  struct  eqn_box {
           int               size; /* font size of expression */
   #define EQN_DEFSIZE       INT_MIN
         enum eqn_boxt     type; /* type of node */          enum eqn_boxt     type; /* type of node */
         struct eqn_box   *child; /* child node */          struct eqn_box   *first; /* first child node */
         struct eqn_box   *next; /* next in tree */          struct eqn_box   *last; /* last child node */
         enum eqn_post     pos; /* position of next box */          struct eqn_box   *next; /* node sibling */
           struct eqn_box   *parent; /* node sibling */
         char             *text; /* text (or NULL) */          char             *text; /* text (or NULL) */
           char             *left;
           char             *right;
           enum eqn_post     pos; /* position of next box */
         enum eqn_markt    mark; /* a mark about the box */          enum eqn_markt    mark; /* a mark about the box */
         enum eqn_fontt    font; /* font of box */          enum eqn_fontt    font; /* font of box */
           enum eqn_pilet    pile; /* equation piling */
 };  };
   
 /*  /*
Line 389  void   *mandoc_calloc(size_t, size_t);
Line 410  void   *mandoc_calloc(size_t, size_t);
 void             *mandoc_malloc(size_t);  void             *mandoc_malloc(size_t);
 void             *mandoc_realloc(void *, size_t);  void             *mandoc_realloc(void *, size_t);
 char             *mandoc_strdup(const char *);  char             *mandoc_strdup(const char *);
   char             *mandoc_strndup(const char *, size_t);
   
 enum mandoc_esc   mandoc_escape(const char **, const char **, int *);  enum mandoc_esc   mandoc_escape(const char **, const char **, int *);
   

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

CVSweb