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

Diff for /mandoc/man.c between version 1.135 and 1.139

version 1.135, 2014/07/30 21:18:24 version 1.139, 2014/09/06 23:24:32
Line 16 
Line 16 
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
 #ifdef HAVE_CONFIG_H  
 #include "config.h"  #include "config.h"
 #endif  
   
 #include <sys/types.h>  #include <sys/types.h>
   
Line 186  man_node_append(struct man *man, struct man_node *p)
Line 184  man_node_append(struct man *man, struct man_node *p)
         assert(p->parent);          assert(p->parent);
         p->parent->nchild++;          p->parent->nchild++;
   
         if ( ! man_valid_pre(man, p))  
                 return(0);  
   
         switch (p->type) {          switch (p->type) {
           case MAN_BLOCK:
                   if (p->tok == MAN_SH || p->tok == MAN_SS)
                           man->flags &= ~MAN_LITERAL;
                   break;
         case MAN_HEAD:          case MAN_HEAD:
                 assert(MAN_BLOCK == p->parent->type);                  assert(MAN_BLOCK == p->parent->type);
                 p->parent->head = p;                  p->parent->head = p;
Line 472  man_pmacro(struct man *man, int ln, char *buf, int off
Line 471  man_pmacro(struct man *man, int ln, char *buf, int off
         int              i, ppos;          int              i, ppos;
         int              bline;          int              bline;
   
         if ('"' == buf[offs]) {  
                 mandoc_msg(MANDOCERR_COMMENT_BAD, man->parse,  
                     ln, offs, NULL);  
                 return(1);  
         } else if ('\0' == buf[offs])  
                 return(1);  
   
         ppos = offs;          ppos = offs;
   
         /*          /*
Line 496  man_pmacro(struct man *man, int ln, char *buf, int off
Line 488  man_pmacro(struct man *man, int ln, char *buf, int off
         tok = (i > 0 && i < 4) ? man_hash_find(mac) : MAN_MAX;          tok = (i > 0 && i < 4) ? man_hash_find(mac) : MAN_MAX;
   
         if (MAN_MAX == tok) {          if (MAN_MAX == tok) {
                 mandoc_vmsg(MANDOCERR_MACRO, man->parse, ln, ppos,                  mandoc_msg(MANDOCERR_MACRO, man->parse,
                     "%s", buf + ppos - 1);                      ln, ppos, buf + ppos - 1);
                 return(1);                  return(1);
         }          }
   

Legend:
Removed from v.1.135  
changed lines
  Added in v.1.139

CVSweb