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

Diff for /mandoc/man_macro.c between version 1.76 and 1.80

version 1.76, 2013/10/17 20:54:58 version 1.80, 2013/12/31 23:23:10
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2012 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
    * Copyright (c) 2013 Franco Fichtner <franco@lastsummer.de>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 298  blk_close(MACRO_PROT_ARGS)
Line 299  blk_close(MACRO_PROT_ARGS)
                 if (ntok == nn->tok && MAN_BLOCK == nn->type)                  if (ntok == nn->tok && MAN_BLOCK == nn->type)
                         break;                          break;
   
         if (NULL != nn)          if (NULL == nn) {
                 man_unscope(man, nn, MANDOCERR_MAX);  
         else  
                 man_pmsg(man, line, ppos, MANDOCERR_NOSCOPE);                  man_pmsg(man, line, ppos, MANDOCERR_NOSCOPE);
                   if ( ! rew_scope(MAN_BLOCK, man, MAN_PP))
                           return(0);
           } else
                   man_unscope(man, nn, MANDOCERR_MAX);
   
         return(1);          return(1);
 }  }
Line 428  in_line_eoln(MACRO_PROT_ARGS)
Line 431  in_line_eoln(MACRO_PROT_ARGS)
                 if ( ! man_word_alloc(man, line, la, p))                  if ( ! man_word_alloc(man, line, la, p))
                         return(0);                          return(0);
         }          }
   
           /*
            * Append MAN_EOS in case the last snipped argument
            * ends with a dot, e.g. `.IR syslog (3).'
            */
   
           if (n != man->last &&
               mandoc_eos(man->last->string, strlen(man->last->string)))
                   man->last->flags |= MAN_EOS;
   
         /*          /*
          * If no arguments are specified and this is MAN_SCOPED (i.e.,           * If no arguments are specified and this is MAN_SCOPED (i.e.,

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.80

CVSweb