source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* docbook2mdoc: do not abort(3) when there is more than one <refmeta>
@ 2019-04-03 16:53 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-04-03 16:53 UTC (permalink / raw)
  To: source

Log Message:
-----------
do not abort(3) when there is more than one <refmeta>

Modified Files:
--------------
    docbook2mdoc:
        docbook2mdoc.c
        statistics.c

Revision Data
-------------
Index: statistics.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/statistics.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -Lstatistics.c -Lstatistics.c -u -p -r1.10 -r1.11
--- statistics.c
+++ statistics.c
@@ -348,6 +348,7 @@ main(int argc, char *argv[])
 
 	/* Exclude relations that are already fully implemented. */
 	if (show_all == 0) {
+		table_add("ROOT", "refentry");
 		table_add("chapter", NULL);
 		table_add("constant", "TEXT");
 		table_add("emphasis", "TEXT");
@@ -370,8 +371,19 @@ main(int argc, char *argv[])
 		table_add("parameter", "TEXT");
 		table_add("primary", NULL);
 		table_add("programlisting", NULL);
+		table_add("refentry", "refmeta");
+		table_add("refentry", "refnamediv");
+		table_add("refentry", "refsect1");
+		table_add("refentry", "refsynopsisdiv");
+		table_add("refmeta", "manvolnum");
+		table_add("refmeta", "refentrytitle");
+		table_add("refname", "TEXT");
+		table_add("refnamediv", "refname");
+		table_add("refnamediv", "refpurpose");
+		table_add("refpurpose", "TEXT");
 		table_add("refsect1", NULL);
 		table_add("refsect2", NULL);
+		table_add("refsynopsisdiv", "funcsynopsis");
 		table_add("row", "entry");
 		table_add("screen", NULL);
 		table_add("secondary", NULL);
Index: docbook2mdoc.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/docbook2mdoc.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -Ldocbook2mdoc.c -Ldocbook2mdoc.c -u -p -r1.88 -r1.89
--- docbook2mdoc.c
+++ docbook2mdoc.c
@@ -783,9 +783,6 @@ pnode_print(struct format *p, struct pno
 		/* Suppress. */
 		pnode_unlinksub(pn);
 		break;
-	case NODE_REFMETA:
-		abort();
-		break;
 	case NODE_REFNAME:
 		/* Suppress non-text children... */
 		macro_open(p, "Nm");
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-03 16:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-03 16:53 docbook2mdoc: do not abort(3) when there is more than one <refmeta> schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).