Auto-configuring software -- potential problems

Chris Torek chris at umcp-cs.UUCP
Sat Oct 13 14:18:13 AEST 1984


Rather than ``char *FOO = "%R% %W% ..."'' (in file foo.c), I always use

	#ifndef lint
	static char rcsid[] = "$Header$";
	#endif lint

(obviously I use RCS, not SCCS).  This has a couple of advantages:

	- lint won't complain about the ``unused'' variable
	- the name can't possibly conflict with another since it's local
	  to the particular source file
	- the file will even make it through the V6 cpp (not that any of
	  my source would run on V6...).
-- 
(This mind accidently left blank.)

In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at maryland



More information about the Comp.unix.wizards mailing list