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

Diff for /docbook2mdoc/Attic/rules.c between version 1.5 and 1.6

version 1.5, 2014/03/30 16:32:03 version 1.6, 2014/03/30 16:44:13
Line 260  isparent(enum nodeid node, enum nodeid parent)
Line 260  isparent(enum nodeid node, enum nodeid parent)
                 case (NODE_FUNCSYNOPSISINFO):                  case (NODE_FUNCSYNOPSISINFO):
                 case (NODE_FUNCTION):                  case (NODE_FUNCTION):
                 case (NODE_LINK):                  case (NODE_LINK):
                   case (NODE_LITERAL):
                 case (NODE_MANVOLNUM):                  case (NODE_MANVOLNUM):
                 case (NODE_OPTION):                  case (NODE_OPTION):
                 case (NODE_PARA):                  case (NODE_PARA):
Line 288  isparent(enum nodeid node, enum nodeid parent)
Line 289  isparent(enum nodeid node, enum nodeid parent)
                         break;                          break;
                 }                  }
                 return(0);                  return(0);
           case (NODE_LITERAL):
                   switch (parent) {
                   case (NODE_EMPHASIS):
                   case (NODE_FUNCSYNOPSISINFO):
                   case (NODE_LINK):
                   case (NODE_PARA):
                   case (NODE_PROGRAMLISTING):
                   case (NODE_REFDESCRIPTOR):
                   case (NODE_REFENTRYTITLE):
                   case (NODE_REFNAME):
                   case (NODE_REFPURPOSE):
                   case (NODE_SYNOPSIS):
                   case (NODE_TERM):
                   case (NODE_TITLE):
                   case (NODE_ULINK):
                           return(1);
                   default:
                           break;
                   }
                   return(0);
         case (NODE_MANVOLNUM):          case (NODE_MANVOLNUM):
                 switch (parent) {                  switch (parent) {
                 case (NODE_CITEREFENTRY):                  case (NODE_CITEREFENTRY):
Line 406  isparent(enum nodeid node, enum nodeid parent)
Line 427  isparent(enum nodeid node, enum nodeid parent)
                 case (NODE_FUNCSYNOPSISINFO):                  case (NODE_FUNCSYNOPSISINFO):
                 case (NODE_FUNCTION):                  case (NODE_FUNCTION):
                 case (NODE_LINK):                  case (NODE_LINK):
                   case (NODE_LITERAL):
                 case (NODE_MANVOLNUM):                  case (NODE_MANVOLNUM):
                 case (NODE_OPTION):                  case (NODE_OPTION):
                 case (NODE_PARA):                  case (NODE_PARA):
Line 424  isparent(enum nodeid node, enum nodeid parent)
Line 446  isparent(enum nodeid node, enum nodeid parent)
                 case (NODE_ULINK):                  case (NODE_ULINK):
                 default:                  default:
                         return(1);                          return(1);
                   }
                   return(0);
           case (NODE_SBR):
                   switch (parent) {
                   case (NODE_ARG):
                   case (NODE_CMDSYNOPSIS):
                           return(1);
                   default:
                           break;
                 }                  }
                 return(0);                  return(0);
         case (NODE_STRUCTNAME):          case (NODE_STRUCTNAME):

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

CVSweb