From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- pkg/system/help/xhelp/zzdebug.x | 59 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 pkg/system/help/xhelp/zzdebug.x (limited to 'pkg/system/help/xhelp/zzdebug.x') diff --git a/pkg/system/help/xhelp/zzdebug.x b/pkg/system/help/xhelp/zzdebug.x new file mode 100644 index 00000000..70a95d9b --- /dev/null +++ b/pkg/system/help/xhelp/zzdebug.x @@ -0,0 +1,59 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + + +# ZZDEBUG.X -- Debug routines for the help formatting system. + +task lroff2html = t_lroff2html, + lroff2ps = t_lroff2ps + + +# LROFF2HTML -- Test program to convert an Lroff source file to HTML. + +procedure t_lroff2html () + +int fdi, fdo +char iname[SZ_FNAME], oname[SZ_FNAME] + +int open() +errchk open + +begin + call clgstr ("input", iname, SZ_FNAME) # get parameters + call clgstr ("output", oname, SZ_FNAME) + + fdi = open (iname, READ_ONLY, TEXT_FILE) # open the file + fdo = open (oname, NEW_FILE, TEXT_FILE) + + # Process it. + call lroff2html (fdi, fdo, iname, "", "", "", "") + + call close (fdi) + call close (fdo) +end + + +# LROFF2PS -- Test program to convert an Lroff source file to Postscript. + +procedure t_lroff2ps () + +int fdi, fdo +char iname[SZ_FNAME], oname[SZ_FNAME] + +pointer ps +int open() +errchk open + +begin + call clgstr ("input", iname, SZ_FNAME) # get parameters + call clgstr ("output", oname, SZ_FNAME) + + fdi = open (iname, READ_ONLY, TEXT_FILE) # open the files + fdo = open (oname, READ_ONLY, TEXT_FILE) + + # Process it. + ps = NULL + call lroff2ps (fdi, fdo, ps, "", "") + + call close (fdi) + call close (fdo) +end -- cgit