1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 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
|