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

Diff for /mandoc/Attic/man_action.c between version 1.26 and 1.29

version 1.26, 2010/03/22 14:03:03 version 1.29, 2010/03/24 20:10:53
Line 18 
Line 18 
 #include "config.h"  #include "config.h"
 #endif  #endif
   
 #include <sys/utsname.h>  
   
 #include <assert.h>  #include <assert.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
Line 32  struct actions {
Line 30  struct actions {
 };  };
   
 static  int       post_TH(struct man *);  static  int       post_TH(struct man *);
   static  int       post_de(struct man *);
 static  int       post_fi(struct man *);  static  int       post_fi(struct man *);
 static  int       post_nf(struct man *);  static  int       post_nf(struct man *);
   
Line 68  const struct actions man_actions[MAN_MAX] = {
Line 67  const struct actions man_actions[MAN_MAX] = {
         { NULL }, /* DT */          { NULL }, /* DT */
         { NULL }, /* UC */          { NULL }, /* UC */
         { NULL }, /* PD */          { NULL }, /* PD */
           { NULL }, /* Sp */
           { post_nf }, /* Vb */
           { post_fi }, /* Ve */
           { post_de }, /* de */
           { post_de }, /* dei */
           { post_de }, /* am */
           { post_de }, /* ami */
           { post_de }, /* ig */
           { NULL }, /* . */
 };  };
   
   
Line 107  post_fi(struct man *m)
Line 115  post_fi(struct man *m)
   
   
 static int  static int
   post_de(struct man *m)
   {
   
           /*
            * XXX: for the time being, we indiscriminately remove roff
            * instructions from the parse stream.
            */
           if (MAN_BLOCK == m->last->type)
                   man_node_delete(m, m->last);
   
           return(1);
   }
   
   
   static int
 post_nf(struct man *m)  post_nf(struct man *m)
 {  {
   
Line 178  post_TH(struct man *m)
Line 201  post_TH(struct man *m)
         if (n && (n = n->next))          if (n && (n = n->next))
                 m->meta.vol = mandoc_strdup(n->string);                  m->meta.vol = mandoc_strdup(n->string);
   
         n = m->last;          /*
         man_node_unlink(m, n);           * Remove the `TH' node after we've processed it for our
         man_node_freelist(n);           * meta-data.
            */
           man_node_delete(m, m->last);
         return(1);          return(1);
 }  }

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.29

CVSweb