[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.60 and 1.62

version 1.60, 2010/05/17 23:57:06 version 1.62, 2010/05/29 18:58:52
Line 57  static int   post_dd(POST_ARGS);
Line 57  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_lb(POST_ARGS);  static  int       post_lb(POST_ARGS);
   static  int       post_li(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_pa(POST_ARGS);  static  int       post_pa(POST_ARGS);
Line 102  static const struct actions mdoc_actions[MDOC_MAX] = {
Line 103  static const struct actions mdoc_actions[MDOC_MAX] = {
         { NULL, NULL }, /* Ft */          { NULL, NULL }, /* Ft */
         { NULL, NULL }, /* Ic */          { NULL, NULL }, /* Ic */
         { NULL, NULL }, /* In */          { NULL, NULL }, /* In */
         { NULL, NULL }, /* Li */          { NULL, post_li }, /* Li */
         { NULL, NULL }, /* Nd */          { NULL, NULL }, /* Nd */
         { NULL, post_nm }, /* Nm */          { NULL, post_nm }, /* Nm */
         { NULL, NULL }, /* Op */          { NULL, NULL }, /* Op */
Line 637  post_bl_tagwidth(POST_ARGS)
Line 638  post_bl_tagwidth(POST_ARGS)
         /* Defaults to ten ens. */          /* Defaults to ten ens. */
   
         sz = 10; /* XXX: make this a macro value. */          sz = 10; /* XXX: make this a macro value. */
         nn = n->body->child;  
   
           for (nn = n->body->child; nn; nn = nn->next) {
                   if (MDOC_It == nn->tok)
                           break;
           }
   
         if (nn) {          if (nn) {
                 assert(MDOC_BLOCK == nn->type);                  assert(MDOC_BLOCK == nn->type);
                 assert(MDOC_It == nn->tok);  
                 nn = nn->head->child;                  nn = nn->head->child;
                 if (MDOC_TEXT != nn->type) {                  if (MDOC_TEXT != nn->type) {
                         sz = mdoc_macro2len(nn->tok);                          sz = mdoc_macro2len(nn->tok);
Line 827  post_pa(POST_ARGS)
Line 831  post_pa(POST_ARGS)
         m->next = MDOC_NEXT_CHILD;          m->next = MDOC_NEXT_CHILD;
         /* XXX: make into macro value. */          /* XXX: make into macro value. */
         if ( ! mdoc_word_alloc(m, n->line, n->pos, "~"))          if ( ! mdoc_word_alloc(m, n->line, n->pos, "~"))
                   return(0);
           m->last = np;
           return(1);
   }
   
   
   /*
    * Empty `Li' macros get an empty string to make front-ends add an extra
    * space.
    */
   static int
   post_li(POST_ARGS)
   {
           struct mdoc_node *np;
   
           if (n->child)
                   return(1);
   
           np = n;
           m->next = MDOC_NEXT_CHILD;
           if ( ! mdoc_word_alloc(m, n->line, n->pos, ""))
                 return(0);                  return(0);
         m->last = np;          m->last = np;
         return(1);          return(1);

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.62

CVSweb