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

Diff for /docbook2mdoc/node.c between version 1.19 and 1.24

version 1.19, 2019/04/15 00:34:15 version 1.24, 2019/04/28 15:03:29
Line 19 
Line 19 
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   
   #include "xmalloc.h"
 #include "node.h"  #include "node.h"
   
 /*  /*
Line 78  static const struct nodeprop properties[] = {
Line 79  static const struct nodeprop properties[] = {
         { "link",               CLASS_ENCL },          { "link",               CLASS_ENCL },
         { "listitem",           CLASS_TRANS },          { "listitem",           CLASS_TRANS },
         { "literal",            CLASS_ENCL },          { "literal",            CLASS_ENCL },
         { "literallayout",      CLASS_BLOCK },          { "literallayout",      CLASS_NOFILL },
         { "manvolnum",          CLASS_TRANS },          { "manvolnum",          CLASS_TRANS },
         { "markup",             CLASS_LINE },          { "markup",             CLASS_LINE },
         { "member",             CLASS_LINE },          { "member",             CLASS_LINE },
Line 101  static const struct nodeprop properties[] = {
Line 102  static const struct nodeprop properties[] = {
         { "parameter",          CLASS_LINE },          { "parameter",          CLASS_LINE },
         { "personname",         CLASS_TRANS },          { "personname",         CLASS_TRANS },
         { "preface",            CLASS_BLOCK },          { "preface",            CLASS_BLOCK },
         { "programlisting",     CLASS_BLOCK },          { "productname",        CLASS_LINE },
           { "programlisting",     CLASS_NOFILL },
         { "prompt",             CLASS_TRANS },          { "prompt",             CLASS_TRANS },
         { "pubdate",            CLASS_TRANS },          { "pubdate",            CLASS_TRANS },
         { "quote",              CLASS_ENCL },          { "quote",              CLASS_ENCL },
Line 120  static const struct nodeprop properties[] = {
Line 122  static const struct nodeprop properties[] = {
         { "replaceable",        CLASS_LINE },          { "replaceable",        CLASS_LINE },
         { "row",                CLASS_BLOCK },          { "row",                CLASS_BLOCK },
         { "sbr",                CLASS_BLOCK },          { "sbr",                CLASS_BLOCK },
         { "screen",             CLASS_BLOCK },          { "screen",             CLASS_NOFILL },
         { "section",            CLASS_BLOCK },          { "section",            CLASS_BLOCK },
         { "simplelist",         CLASS_TRANS },          { "simplelist",         CLASS_TRANS },
         { "simplesect",         CLASS_BLOCK },          { "simplesect",         CLASS_BLOCK },
Line 128  static const struct nodeprop properties[] = {
Line 130  static const struct nodeprop properties[] = {
         { "subscript",          CLASS_TEXT },          { "subscript",          CLASS_TEXT },
         { "subtitle",           CLASS_BLOCK },          { "subtitle",           CLASS_BLOCK },
         { "superscript",        CLASS_TEXT },          { "superscript",        CLASS_TEXT },
         { "synopsis",           CLASS_BLOCK },          { "synopsis",           CLASS_NOFILL },
         { "systemitem",         CLASS_LINE },          { "systemitem",         CLASS_LINE },
         { "table",              CLASS_TRANS },          { "table",              CLASS_TRANS },
         { "tbody",              CLASS_TRANS },          { "tbody",              CLASS_TRANS },
Line 142  static const struct nodeprop properties[] = {
Line 144  static const struct nodeprop properties[] = {
         { "variablelist",       CLASS_BLOCK },          { "variablelist",       CLASS_BLOCK },
         { "varlistentry",       CLASS_BLOCK },          { "varlistentry",       CLASS_BLOCK },
         { "varname",            CLASS_LINE },          { "varname",            CLASS_LINE },
           { "void",               CLASS_TEXT },
         { "warning",            CLASS_BLOCK },          { "warning",            CLASS_BLOCK },
         { "wordasword",         CLASS_TRANS },          { "wordasword",         CLASS_TRANS },
           { "xref",               CLASS_LINE },
         { "[UNKNOWN]",          CLASS_VOID },          { "[UNKNOWN]",          CLASS_VOID },
         { "(t)",                CLASS_TEXT },          { "(t)",                CLASS_TEXT },
         { "(e)",                CLASS_TEXT }          { "(e)",                CLASS_TEXT }
Line 249  pnode_alloc(struct pnode *np)
Line 253  pnode_alloc(struct pnode *np)
 {  {
         struct pnode    *n;          struct pnode    *n;
   
         if ((n = calloc(1, sizeof(*n))) != NULL) {          n = xcalloc(1, sizeof(*n));
                 TAILQ_INIT(&n->childq);          TAILQ_INIT(&n->childq);
                 TAILQ_INIT(&n->attrq);          TAILQ_INIT(&n->attrq);
                 if ((n->parent = np) != NULL)          if ((n->parent = np) != NULL)
                         TAILQ_INSERT_TAIL(&np->childq, n, child);                  TAILQ_INSERT_TAIL(&np->childq, n, child);
         }  
         return n;          return n;
 }  }
   

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.24

CVSweb