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

Diff for /mandoc/eqn.c between version 1.36 and 1.38

version 1.36, 2011/07/23 18:41:18 version 1.38, 2011/07/25 15:37:00
Line 205  static const struct eqnstr eqnposs[EQNPOS__MAX] = {
Line 205  static const struct eqnstr eqnposs[EQNPOS__MAX] = {
   
 static  const struct eqnstr eqnpiles[EQNPILE__MAX] = {  static  const struct eqnstr eqnpiles[EQNPILE__MAX] = {
         { "", 0 }, /* EQNPILE_NONE */          { "", 0 }, /* EQNPILE_NONE */
           { "pile", 4 }, /* EQNPILE_PILE */
         { "cpile", 5 }, /* EQNPILE_CPILE */          { "cpile", 5 }, /* EQNPILE_CPILE */
         { "rpile", 5 }, /* EQNPILE_RPILE */          { "rpile", 5 }, /* EQNPILE_RPILE */
         { "lpile", 5 }, /* EQNPILE_LPILE */          { "lpile", 5 }, /* EQNPILE_LPILE */
           { "col", 3 }, /* EQNPILE_COL */
         { "ccol", 4 }, /* EQNPILE_CCOL */          { "ccol", 4 }, /* EQNPILE_CCOL */
         { "rcol", 4 }, /* EQNPILE_RCOL */          { "rcol", 4 }, /* EQNPILE_RCOL */
         { "lcol", 4 }, /* EQNPILE_LCOL */          { "lcol", 4 }, /* EQNPILE_LCOL */
Line 292  eqn_read(struct eqn_node **epp, int ln, 
Line 294  eqn_read(struct eqn_node **epp, int ln, 
          */           */
   
         if (0 == strncmp(p, ".EN", 3)) {          if (0 == strncmp(p, ".EN", 3)) {
                 er = eqn_end(ep);                  er = eqn_end(epp);
                 *epp = NULL;  
                 p += 3;                  p += 3;
                 while (' ' == *p || '\t' == *p)                  while (' ' == *p || '\t' == *p)
                         p++;                          p++;
Line 331  eqn_alloc(const char *name, int pos, int line, struct 
Line 332  eqn_alloc(const char *name, int pos, int line, struct 
   
         p = mandoc_calloc(1, sizeof(struct eqn_node));          p = mandoc_calloc(1, sizeof(struct eqn_node));
   
         if ('\0' != *name) {          if (name && '\0' != *name) {
                 sz = strlen(name);                  sz = strlen(name);
                 assert(sz);                  assert(sz);
                 do {                  do {
Line 350  eqn_alloc(const char *name, int pos, int line, struct 
Line 351  eqn_alloc(const char *name, int pos, int line, struct 
 }  }
   
 enum rofferr  enum rofferr
 eqn_end(struct eqn_node *ep)  eqn_end(struct eqn_node **epp)
 {  {
           struct eqn_node *ep;
         struct eqn_box  *root;          struct eqn_box  *root;
         enum eqn_rest    c;          enum eqn_rest    c;
   
           ep = *epp;
           *epp = NULL;
   
         ep->eqn.root = mandoc_calloc(1, sizeof(struct eqn_box));          ep->eqn.root = mandoc_calloc(1, sizeof(struct eqn_box));
   

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.38

CVSweb