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

Diff for /mandoc/Attic/action.c between version 1.36 and 1.43

version 1.36, 2009/03/08 20:50:12 version 1.43, 2009/03/16 23:37:28
Line 1 
Line 1 
 /* $Id$ */  /* $Id$ */
 /*  /*
  * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>   * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@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   * purpose with or without fee is hereby granted, provided that the
Line 23 
Line 23 
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <time.h>  
   
 #include "private.h"  #include "private.h"
   
Line 60  static int  post_dt(struct mdoc *);
Line 59  static int  post_dt(struct mdoc *);
 static  int      post_nm(struct mdoc *);  static  int      post_nm(struct mdoc *);
 static  int      post_os(struct mdoc *);  static  int      post_os(struct mdoc *);
 static  int      post_sh(struct mdoc *);  static  int      post_sh(struct mdoc *);
 static  int      post_ex(struct mdoc *);  static  int      post_std(struct mdoc *);
 static  int      post_prologue(struct mdoc *);  static  int      post_prologue(struct mdoc *);
   
   #define merr(m, t) nerr((m), (m)->last, (t))
   #define mwarn(m, t) nwarn((m), (m)->last, (t))
   
 const   struct actions mdoc_actions[MDOC_MAX] = {  const   struct actions mdoc_actions[MDOC_MAX] = {
         { NULL }, /* \" */          { NULL }, /* \" */
         { post_dd }, /* Dd */          { post_dd }, /* Dd */
Line 86  const struct actions mdoc_actions[MDOC_MAX] = {
Line 88  const struct actions mdoc_actions[MDOC_MAX] = {
         { NULL }, /* Dv */          { NULL }, /* Dv */
         { NULL }, /* Er */          { NULL }, /* Er */
         { NULL }, /* Ev */          { NULL }, /* Ev */
         { post_ex }, /* Ex */          { post_std }, /* Ex */
         { NULL }, /* Fa */          { NULL }, /* Fa */
         { NULL }, /* Fd */          { NULL }, /* Fd */
         { NULL }, /* Fl */          { NULL }, /* Fl */
Line 100  const struct actions mdoc_actions[MDOC_MAX] = {
Line 102  const struct actions mdoc_actions[MDOC_MAX] = {
         { NULL }, /* Op */          { NULL }, /* Op */
         { NULL }, /* Ot */          { NULL }, /* Ot */
         { NULL }, /* Pa */          { NULL }, /* Pa */
         { NULL }, /* Rv */          { post_std }, /* Rv */
         { NULL }, /* St */          { NULL }, /* St */
         { NULL }, /* Va */          { NULL }, /* Va */
         { NULL }, /* Vt */          { NULL }, /* Vt */
Line 172  const struct actions mdoc_actions[MDOC_MAX] = {
Line 174  const struct actions mdoc_actions[MDOC_MAX] = {
         { NULL }, /* Ud */          { NULL }, /* Ud */
         { NULL }, /* Lb */          { NULL }, /* Lb */
         { NULL }, /* Ap */          { NULL }, /* Ap */
           { NULL }, /* Lp */
           { NULL }, /* Lk */
           { NULL }, /* Mt */
           { NULL }, /* Brq */
           { NULL }, /* Bro */
           { NULL }, /* Brc */
           { NULL }, /* %C */
           { NULL }, /* Es */
           { NULL }, /* En */
           { NULL }, /* Dx */
 };  };
   
   
 #define merr(m, t) nerr((m), (m)->last, (t))  
 static int  static int
 nerr(struct mdoc *m, const struct mdoc_node *n, enum merr type)  nerr(struct mdoc *m, const struct mdoc_node *n, enum merr type)
 {  {
Line 194  nerr(struct mdoc *m, const struct mdoc_node *n, enum m
Line 205  nerr(struct mdoc *m, const struct mdoc_node *n, enum m
 }  }
   
   
 #define mwarn(m, t) nwarn((m), (m)->last, (t))  
 static int  static int
 nwarn(struct mdoc *m, const struct mdoc_node *n, enum mwarn type)  nwarn(struct mdoc *m, const struct mdoc_node *n, enum mwarn type)
 {  {
Line 223  nwarn(struct mdoc *m, const struct mdoc_node *n, enum 
Line 233  nwarn(struct mdoc *m, const struct mdoc_node *n, enum 
   
   
 static int  static int
 post_ex(struct mdoc *mdoc)  post_std(struct mdoc *mdoc)
 {  {
   
         /*          /*
          * If `.Ex -std' is invoked without an argument, fill it in with           * If '-std' is invoked without an argument, fill it in with our
          * our name (if it's been set).           * name (if it's been set).
          */           */
   
         if (NULL == mdoc->last->args)          if (NULL == mdoc->last->args)

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.43

CVSweb