summaryrefslogtreecommitdiff
path: root/doc/rdsrc.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-05-14 06:05:06 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-05-14 06:05:06 +0000
commitfe1bdcb23f58a4cd623676506351ee9021303f2c (patch)
tree340dfd7b82ee5e6c78c8f52da8905df283790a8f /doc/rdsrc.pl
parentf834c7e4a728249f3f19eb88d42fd0478c8b7137 (diff)
downloadnasm-fe1bdcb23f58a4cd623676506351ee9021303f2c.tar.gz
Produce "dip" -- basically digested paragraphs for standalone backends
Diffstat (limited to 'doc/rdsrc.pl')
-rw-r--r--doc/rdsrc.pl26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/rdsrc.pl b/doc/rdsrc.pl
index e667c21d..e9f5c109 100644
--- a/doc/rdsrc.pl
+++ b/doc/rdsrc.pl
@@ -142,6 +142,9 @@ print "done.\n";
print "Producing WinHelp output: ";
&write_hlp;
print "done.\n";
+print "Producing Documentation Intermediate Paragraphs: ";
+&write_dip;
+print "done.\n";
sub got_para {
local ($_) = @_;
@@ -2335,3 +2338,26 @@ sub font_metrics {
600, 600, 600, 600, 0, 0, 0, 0
);
}
+
+#
+# This produces documentation intermediate paragraph format; this is
+# basically the digested output of the front end. Intended for use
+# by future backends, instead of putting it all in the same script.
+#
+sub write_dip {
+ open(PARAS, "> nasmdoc.dip");
+ foreach $k (keys(%metadata)) {
+ print PARAS 'meta :', $k, "\n";
+ print PARAS $metadata{$k},"\n";
+ }
+ for ($para = 0; $para <= $#pnames; $para++) {
+ print PARAS $pflags[$para], "\n";
+ print PARAS join("\037", @{$pnames[$para]}, "\n");
+ }
+ foreach $k (@itags) {
+ print PARAS 'indx :', $k, "\n";
+ print PARAS join("\037", @{$idxmap{$k}}), "\n";
+ }
+ close(PARAS);
+}
+