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

Diff for /mandoc/Attic/mdoc_action.c between version 1.4 and 1.6

version 1.4, 2009/04/02 16:37:40 version 1.6, 2009/04/06 08:53:12
Line 212  mdoc_action_pre(struct mdoc *m, const struct mdoc_node
Line 212  mdoc_action_pre(struct mdoc *m, const struct mdoc_node
                 break;                  break;
         }          }
   
         if (NULL == mdoc_actions[m->last->tok].pre)          if (NULL == mdoc_actions[n->tok].pre)
                 return(1);                  return(1);
         return((*mdoc_actions[m->last->tok].pre)(m, n));          return((*mdoc_actions[n->tok].pre)(m, n));
 }  }
   
   
Line 343  post_nm(POST_ARGS)
Line 343  post_nm(POST_ARGS)
   
         if (m->meta.name)          if (m->meta.name)
                 return(1);                  return(1);
   
           printf("bar\n");
   
           buf[0] = 0;
         if ( ! concat(m, m->last->child, buf, sizeof(buf)))          if ( ! concat(m, m->last->child, buf, sizeof(buf)))
                 return(0);                  return(0);
   
           printf("foo\n");
   
         if (NULL == (m->meta.name = strdup(buf)))          if (NULL == (m->meta.name = strdup(buf)))
                 return(verr(m, EMALLOC));                  return(verr(m, EMALLOC));
   
           printf("baz\n");
   
         return(1);          return(1);
 }  }
   
Line 366  post_sh(POST_ARGS)
Line 375  post_sh(POST_ARGS)
   
         if (MDOC_HEAD != m->last->type)          if (MDOC_HEAD != m->last->type)
                 return(1);                  return(1);
   
           buf[0] = 0;
         if ( ! concat(m, m->last->child, buf, sizeof(buf)))          if ( ! concat(m, m->last->child, buf, sizeof(buf)))
                 return(0);                  return(0);
         if (SEC_CUSTOM != (sec = mdoc_atosec(buf)))          if (SEC_CUSTOM != (sec = mdoc_atosec(buf)))
Line 694  post_dd(POST_ARGS)
Line 705  post_dd(POST_ARGS)
 {  {
         char              buf[64];          char              buf[64];
   
           buf[0] = 0;
         if ( ! concat(m, m->last->child, buf, sizeof(buf)))          if ( ! concat(m, m->last->child, buf, sizeof(buf)))
                 return(0);                  return(0);
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

CVSweb