Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!hao!ames!ucbcad!ucbvax!unisoft!lll-lcc!well!physh From: physh@well.UUCP (JonPhysh Foreman) Newsgroups: comp.sys.ibm.pc Subject: Re: MS-DOS NRO (an 'NROFF'- 'RNO'-like Source in C) Message-ID: <3123@well.UUCP> Date: Sat, 23-May-87 04:43:37 EDT Article-I.D.: well.3123 Posted: Sat May 23 04:43:37 1987 Date-Received: Sat, 23-May-87 20:42:05 EDT References: <405@ritcv.UUCP> <725@thumper.UUCP> <693@cod.UUCP> Reply-To: physh@well.UUCP (JonPhysh Foreman) Distribution: na Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 29 Keywords: NRO Manx Aztec Summary: NRO on Manx/Aztec C In order to make nro run under Manx Aztec C, I have to rename the brk() function to robrk(), and change all the "brk()" statements and nro.c, nrotxt.c, and nrocmd.c to "robrk()". It turns out that brk() is part of the memory allocator. I added one thing that I missed from nroff, which was comments. Comments are of the form: .. this is a comment It is basically the command char twice at the beginning of the line. To add nroff-like comments, just add the line: if (p[0] == dc.cmdchr && p[1] == dc.cmdchr) return; just before the line: ct = comtype (p, macexp); in routine "comand" in the file "nrocmd.c" Jon -- Disclaimer: Today I'm probably insane, or at least I'll plead it that way. Addresses: ptsfa!unicom!physh, hplabs!{unicom,well}!physh, killer!rrm!ssbn!physh, {hoptoad,lll-lcc,lll-crg}!well!physh