Article View: comp.text
Article #359Typesetter Independent Troff on a Sun-4
From: Steve Grandi
Date: Thu, 20 Jul 1989 18:07
Date: Thu, 20 Jul 1989 18:07
19 lines
1349 bytes
1349 bytes
Has anyone ported the AT&T Typesetter-independent Troff package (also
known as Device Independent Troff or DWB) to a Sun-4? I have both
DWB-1 and DWB-2 (properly licensed!) but compiling them on the Sun-4
results in an immediate segmentation violation.
When Kernighan rewrote Troff into Typesetter-independent Troff, he
utilized a pair of routines fdprintf and sprintf as scaled down
versions of the library routines. Unfortunately, these two use
variable numbers of arguments accessed through a stack pointer which
is a no-no on the SPARC.
So, before I go in with my machete and hack and slash this stuff into
shape with varargs(3) (or switch back to the library routines), has
someone already done the work? I haven't even got to any possible alignment
problems yet!
--
Steve Grandi, National Optical Astronomy Observatories, Tucson AZ, 602-325-9228
UUCP: {arizona,decvax,ncar}!noao!grandi or uunet!noao.edu!grandi
Internet: grandi@noao.edu SPAN/HEPNET: NOAO::GRANDI (NOAO=5355)
Technical Details
Message-ID:
<1132@noao.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!noao!grandiShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!noao!grandi From: grandi@noao.edu (Steve Grandi) Newsgroups: comp.text Subject: Typesetter Independent Troff on a Sun-4 Message-ID: <1132@noao.UUCP> Date: 20 Jul 89 18:07:29 GMT Organization: National Optical Astronomy Observatories, Tucson, AZ Lines: 19