[net.sources] flexnames meet sys3 or v7...

allbery@ncoast.UUCP (Brandon Allbery) (03/07/86)

Expires:

Quoted from <2214@teddy.UUCP> ["Re: Using identifiers with more than 7 chars. #$%@"], by jpn@teddy.UUCP...
+---------------
| >[FLAME ON!]
| >
| >I  wish  that the people that post sources to the net would try to keep
| >in mind that some of us have compilers that can't swollow  indentifiers
| >that are longer than seven (7) characters long.
| 
| I cannot sympathize.  I have a program that was posted to the net some
| time ago called "shortc" which takes all conflicting long identifiers in
| a set of source files, and outputs #defines to differentiate them (which
| 
| Of course, if the pre-processor you have is ALSO limited to 7 characters,
| then you may STILL have a problem, since shortc assumes the preprocessor
| can differentiate all identifiers in the program.  Of course, if this is
| the case, I would throw away that compiler, and start over!
+---------------

Right.  Ever try to do that when you don't have a source license?  You 4.2
types are STILL spoiled.

+---------------
| 
| Of course, even with a bogus compiler, and a bogus preprocessor, you can
| still take the output of shortc and apply the changes by hand yourself!  The
| program will be less readable after this transformation, though.  No
| doubt shortc could be modified to output awk scripts, or something, to
| automate this process.
+---------------

I've a short lex program and a shorter shell script to do this kind of thing.
Problem:  ever try to edit by hand (or automatically with sed scripts, as I
did once) Hack?  Or, worse, GNU Emacs?  There are limits to what you can do
with these things... especially if you intend to put the source back on the
net (or distribute it elsewhere, as we have 5 or 6 sites downstream from us
who have no Usenet access except what I send them) and you want it to be
meaningful.

Yes, repost shortc... but repost the Decus cpp as well (and fix the Witness-
forsaken thing;  it didn't handle #include <file> /* comment */ right, last I
saw).  (I just ported msg to our Plexus running sys3; I am not feeling
charitable about flexnames right now.)

--Brandon
-- 
In mid-winter, all of us Midwesterners would *love* a taste of California...
	(r-r-r-rumbleSHA-A-KE!!!)		      ...but not *that* badly!

decvax!cwruecmp!ncoast!allbery  ncoast!allbery@Case.CSNET  ncoast!tdi2!brandon
(ncoast!tdi2!root for business) 6615 Center St. #A1-105, Mentor, OH 44060-4101
Phone: +01 216 974 9210      CIS 74106,1032      MCI MAIL BALLBERY (part-time)
      >>> Nominate Mark Leeper for a Hugo as Best Fan Writer of '85 <<<
(I disagree with many of his reviews, but that's just me.  He's better than 
 most of what I see.  Let's show the world what the NET is!)