"Re: Identifier significance CHALLENGE - (nf)"

chris at umcp-cs.UUCP chris at umcp-cs.UUCP
Wed Dec 14 11:49:09 AEST 1983


Look at your K&R book.  Chapter 2, p. 33:

	"Only the first eight characters of an internal name are
	significant, although more may be used."

(They also mention that external names (i.e. globals) may have
less than 8 significant characters.)

So, a suggestion:

*Prepend* a unique identifier to those which are not already
unique.  For example, you might replace

	long_name_function () ...

with

	_1_long_name_function () ...

if "long_na" (or whatever the name becomes after compilation) is
not unique.  The next occurance might have "_2_" prepended.

The nice thing about this is that the original names are easy to
find (and, if necessary, recreate).
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris.umcp-cs at CSNet-Relay



More information about the Comp.lang.c mailing list