[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.31 and 1.34

version 1.31, 2009/07/21 15:53:31 version 1.34, 2009/07/26 10:29:39
Line 487  post_dt(POST_ARGS)
Line 487  post_dt(POST_ARGS)
                 free(m->meta.vol);                  free(m->meta.vol);
                 if (NULL == (m->meta.vol = strdup(cp)))                  if (NULL == (m->meta.vol = strdup(cp)))
                         return(mdoc_nerr(m, m->last, EMALLOC));                          return(mdoc_nerr(m, m->last, EMALLOC));
                 n = n->next;  
         } else {          } else {
                 cp = mdoc_a2arch(n->string);                  cp = mdoc_a2arch(n->string);
                 if (NULL == cp) {                  if (NULL == cp) {
Line 531  post_os(POST_ARGS)
Line 530  post_os(POST_ARGS)
         if (NULL == (m->meta.os = strdup(buf)))          if (NULL == (m->meta.os = strdup(buf)))
                 return(mdoc_nerr(m, m->last, EMALLOC));                  return(mdoc_nerr(m, m->last, EMALLOC));
   
         m->flags |= MDOC_PBODY;  
         return(post_prol(m));          return(post_prol(m));
 }  }
   
Line 823  post_prol(POST_ARGS)
Line 821  post_prol(POST_ARGS)
         }          }
   
         mdoc_node_freelist(n);          mdoc_node_freelist(n);
   
           if (m->meta.title && m->meta.date && m->meta.os)
                   m->flags |= MDOC_PBODY;
         return(1);          return(1);
 }  }
   
Line 833  pre_dl(PRE_ARGS)
Line 834  pre_dl(PRE_ARGS)
   
         if (MDOC_BODY == n->type)          if (MDOC_BODY == n->type)
                 m->flags |= MDOC_LITERAL;                  m->flags |= MDOC_LITERAL;
   
         return(1);          return(1);
 }  }
   
Line 845  pre_bd(PRE_ARGS)
Line 847  pre_bd(PRE_ARGS)
         if (MDOC_BODY != n->type)          if (MDOC_BODY != n->type)
                 return(1);                  return(1);
   
         /* Enter literal context if `Bd -literal' or * -unfilled'. */          /* Enter literal context if `Bd -literal' or `-unfilled'. */
   
           /*
            * TODO: `-offset' without an argument should be the width of
            * the literal "<string>".
            */
   
         for (n = n->parent, i = 0; i < (int)n->args->argc; i++)          for (n = n->parent, i = 0; i < (int)n->args->argc; i++)
                 if (MDOC_Literal == n->args->argv[i].arg)                  if (MDOC_Literal == n->args->argv[i].arg)

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.34

CVSweb