[BACK]Return to mdoc_action.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/Attic/mdoc_action.c between version 1.2 and 1.3

version 1.2, 2009/06/14 23:00:57 version 1.3, 2009/06/18 01:19:02
Line 56 
Line 56 
 static  int       post_dd(POST_ARGS);  static  int       post_dd(POST_ARGS);
 static  int       post_display(POST_ARGS);  static  int       post_display(POST_ARGS);
 static  int       post_dt(POST_ARGS);  static  int       post_dt(POST_ARGS);
   static  int       post_lk(POST_ARGS);
 static  int       post_nm(POST_ARGS);  static  int       post_nm(POST_ARGS);
 static  int       post_os(POST_ARGS);  static  int       post_os(POST_ARGS);
 static  int       post_prol(POST_ARGS);  static  int       post_prol(POST_ARGS);
Line 179 
Line 180 
         { NULL, NULL }, /* Lb */          { NULL, NULL }, /* Lb */
         { NULL, NULL }, /* Ap */          { NULL, NULL }, /* Ap */
         { NULL, NULL }, /* Lp */          { NULL, NULL }, /* Lp */
         { NULL, NULL }, /* Lk */          { NULL, post_lk }, /* Lk */
         { NULL, NULL }, /* Mt */          { NULL, NULL }, /* Mt */
         { NULL, NULL }, /* Brq */          { NULL, NULL }, /* Brq */
         { NULL, NULL }, /* Bro */          { NULL, NULL }, /* Bro */
Line 532 
Line 533 
          * width if a macro.           * width if a macro.
          */           */
   
         if ((n = m->last->body->child)) {          n = m->last->body->child;
           if (n) {
                 assert(MDOC_BLOCK == n->type);                  assert(MDOC_BLOCK == n->type);
                 assert(MDOC_It == n->tok);                  assert(MDOC_It == n->tok);
                 n = n->head->child;                  n = n->head->child;
Line 659 
Line 661 
                 if ( ! post_bl_width(m))                  if ( ! post_bl_width(m))
                         return(0);                          return(0);
   
           return(1);
   }
   
   
   static int
   post_lk(POST_ARGS)
   {
           struct mdoc_node *n;
   
           if (m->last->child)
                   return(1);
   
           n = m->last;
           m->next = MDOC_NEXT_CHILD;
           /* FIXME: this isn't documented anywhere! */
           if ( ! mdoc_word_alloc(m, m->last->line,
                                   m->last->pos, "~"))
                   return(0);
   
           m->last = n;
           m->next = MDOC_NEXT_SIBLING;
         return(1);          return(1);
 }  }
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3