version 1.88, 2011/07/21 15:21:13 |
version 1.91, 2011/07/22 14:55:07 |
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 /* list of subexpressions */ |
}; |
}; |
|
|
enum eqn_markt { |
enum eqn_markt { |
|
|
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__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. |
Line 325 struct eqn_box { |
|
Line 335 struct eqn_box { |
|
int size; /* font size of expression */ |
int size; /* font size of expression */ |
#define EQN_DEFSIZE INT_MIN |
#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 */ |
|
int above; /* next node is above */ |
}; |
}; |
|
|
/* |
/* |
Line 391 void *mandoc_calloc(size_t, size_t); |
|
Line 407 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 *); |
|
|