version 1.91, 2011/07/22 14:55:07 |
version 1.94, 2011/07/23 18:41:18 |
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_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_EQNBADSCOPE, /* overlapping equation scopes */ |
|
|
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 `eqn' subexpression */ |
EQN_SUBEXPR, /* nested `eqn' subexpression */ |
EQN_LIST /* list of subexpressions */ |
EQN_LIST, /* subexpressions list */ |
|
EQN_MATRIX /* matrix subexpression */ |
}; |
}; |
|
|
enum eqn_markt { |
enum eqn_markt { |
Line 305 enum eqn_fontt { |
|
Line 305 enum eqn_fontt { |
|
EQNFONT_NONE = 0, |
EQNFONT_NONE = 0, |
EQNFONT_ROMAN, |
EQNFONT_ROMAN, |
EQNFONT_BOLD, |
EQNFONT_BOLD, |
|
EQNFONT_FAT, |
EQNFONT_ITALIC, |
EQNFONT_ITALIC, |
EQNFONT__MAX |
EQNFONT__MAX |
}; |
}; |
Line 324 enum eqn_pilet { |
|
Line 325 enum eqn_pilet { |
|
EQNPILE_CPILE, |
EQNPILE_CPILE, |
EQNPILE_RPILE, |
EQNPILE_RPILE, |
EQNPILE_LPILE, |
EQNPILE_LPILE, |
|
EQNPILE_CCOL, |
|
EQNPILE_RCOL, |
|
EQNPILE_LCOL, |
EQNPILE__MAX |
EQNPILE__MAX |
}; |
}; |
|
|
Line 346 struct eqn_box { |
|
Line 350 struct eqn_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 */ |
enum eqn_pilet pile; /* equation piling */ |
int above; /* next node is above */ |
|
}; |
}; |
|
|
/* |
/* |
Line 354 struct eqn_box { |
|
Line 357 struct eqn_box { |
|
* line and position. |
* line and position. |
*/ |
*/ |
struct eqn { |
struct eqn { |
|
char *name; /* identifier (or NULL) */ |
struct eqn_box *root; /* root mathematical expression */ |
struct eqn_box *root; /* root mathematical expression */ |
int ln; /* invocation line */ |
int ln; /* invocation line */ |
int pos; /* invocation position */ |
int pos; /* invocation position */ |