Xref: utzoo unix-pc.general:1036 comp.sys.att:3715 news.software.b:1469
Path: utzoo!utgpu!water!watmath!uunet!nuchat!flatline!erict
From: erict@flatline.UUCP (j eric townsend)
Newsgroups: unix-pc.general,comp.sys.att,news.software.b
Subject: varible name conflicts in news (due to 8char limit on some systems)
Keywords: 8char, no flexnames, news
Message-ID: <1079@flatline.UUCP>
Date: 9 Jul 88 23:59:41 GMT
Organization: a flat near the Montrose, Houston, Tx.
Lines: 40



[This is on unix.pc and comp.sys.att because many 3b1/7300 owners still
use 3.0 w/ its 8char limit.]


I was playing with a c preprocessor that converts all varible names
in <=8character variblenames.  If there is a conflict, the cpp converts
a conflicitng name to a crc'd name.

I found, in news (B 2.11 patch #14) three varible name conflicts.
I've had news up and running for almost a year now -- the c compiler
never complained as it truncates everything to 8 characters.  I think
this might solve a few buggy, rather erratic problems I was having.

Here are the varible names, and my substitutions:


histfile  -- leave as histfile
histfilecounter -- BOGUS1

writeout -- leave as writeout
writeoutrc -- BOGUS2

newsgroup -- change to "newsgrou" (compiler does this anyway....)
newsgroups -- BOGUS3


Just realised I didn't list the filenames that this occurs in.  I'll
leave this as an exercise for the reader. :-)

Also, although diffs might have been easier to apply, they would have been
*much* larger than this posting.

Hope this helps someone.
-- 
Skate UNIX or go home, boogie boy...
     [Obscure joke goes here]
J. Eric Townsend ->uunet!nuchat!flatline!erict smail:511Parker#2,Hstn,Tx,77007
             ..!bellcore!tness1!/