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

Diff for /docbook2mdoc/node.c between version 1.1 and 1.6

version 1.1, 2019/03/26 18:32:07 version 1.6, 2019/04/09 01:39:09
Line 28  static const char *const attrkeys[ATTRKEY__MAX] = {
Line 28  static const char *const attrkeys[ATTRKEY__MAX] = {
         "choice",          "choice",
         "class",          "class",
         "close",          "close",
           "cols",
           "DEFINITION",
           "endterm",
           "href",
         "id",          "id",
         "linkend",          "linkend",
           "NAME",
         "open",          "open",
         "rep"          "PUBLIC",
           "rep",
           "SYSTEM",
           "url",
           "xlink:href"
 };  };
   
 static  const char *const attrvals[ATTRVAL__MAX] = {  static  const char *const attrvals[ATTRVAL__MAX] = {
Line 143  pnode_getattr_raw(struct pnode *pn, enum attrkey key, 
Line 152  pnode_getattr_raw(struct pnode *pn, enum attrkey key, 
                 return defval;                  return defval;
         TAILQ_FOREACH(ap, &pn->attrq, child)          TAILQ_FOREACH(ap, &pn->attrq, child)
                 if (ap->key == key)                  if (ap->key == key)
                         return ap->val == ATTRVAL__MAX ? ap->rawval :                          return ap->val != ATTRVAL__MAX ? attrvals[ap->val] :
                             attrvals[ap->val];                              ap->rawval != NULL ? ap->rawval : defval;
         return defval;          return defval;
 }  }
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.6

CVSweb