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

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

version 1.37, 2011/07/23 18:44:42 version 1.38, 2011/07/25 15:37:00
Line 294  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 333  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 352  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.37  
changed lines
  Added in v.1.38

CVSweb