diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/system/help/xhelp/zzdebug.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/system/help/xhelp/zzdebug.x')
-rw-r--r-- | pkg/system/help/xhelp/zzdebug.x | 59 |
1 files changed, 59 insertions, 0 deletions
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 |