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

Diff for /mandoc/man_validate.c between version 1.87 and 1.90

version 1.87, 2013/12/31 18:07:42 version 1.90, 2014/03/30 19:47:48
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) 2010, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * 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 32 
Line 32 
   
 #include "man.h"  #include "man.h"
 #include "mandoc.h"  #include "mandoc.h"
   #include "mandoc_aux.h"
 #include "libman.h"  #include "libman.h"
 #include "libmandoc.h"  #include "libmandoc.h"
   
Line 123  static const struct man_valid man_valids[MAN_MAX] = {
Line 124  static const struct man_valid man_valids[MAN_MAX] = {
         { NULL, posts_fi }, /* EE */          { NULL, posts_fi }, /* EE */
         { NULL, posts_ur }, /* UR */          { NULL, posts_ur }, /* UR */
         { NULL, NULL }, /* UE */          { NULL, NULL }, /* UE */
           { NULL, NULL }, /* ll */
 };  };
   
   
Line 211  check_root(CHKARGS) 
Line 213  check_root(CHKARGS) 
   
                 man->meta.title = mandoc_strdup("unknown");                  man->meta.title = mandoc_strdup("unknown");
                 man->meta.msec = mandoc_strdup("1");                  man->meta.msec = mandoc_strdup("1");
                 man->meta.date = mandoc_normdate                  man->meta.date = man->quick ? mandoc_strdup("") :
                         (man->parse, NULL, n->line, n->pos);                      mandoc_normdate(man->parse, NULL, n->line, n->pos);
         }          }
   
         return(1);          return(1);
Line 435  post_TH(CHKARGS)
Line 437  post_TH(CHKARGS)
         if (n)          if (n)
                 n = n->next;                  n = n->next;
         if (n && n->string && '\0' != n->string[0]) {          if (n && n->string && '\0' != n->string[0]) {
                 man->meta.date = mandoc_normdate                  man->meta.date = man->quick ?
                     (man->parse, n->string, n->line, n->pos);                      mandoc_strdup(n->string) :
                       mandoc_normdate(man->parse, n->string,
                           n->line, n->pos);
         } else          } else
                 man->meta.date = mandoc_strdup("");                  man->meta.date = mandoc_strdup("");
   

Legend:
Removed from v.1.87  
changed lines
  Added in v.1.90

CVSweb