[comp.lang.c++] Using RCS and C++

andy@odessa.uswest.com (Dave Taenzer) (06/20/91)

We are interested in any experiences and/or suggestions that people
have related to software development using C++ and either RCS or SCCS.

For example, we currently use a scheme which produces one ident line
per header and source file.  This is done by defining a symbol in the
header for each class and then using it in the source file:

in the header file:

	#ifndef FOO_H
	#define FOO_H "$Header:"

	. . .

	#endif

in the source file:

	#include "Foo.h"

	static char *RCSid_c = "$Header:$";
	static char *RCSid_h = FOO_H;


This takes advantage of the "standard" #ifndef/#define in the header
file and prevents multiple ident lines for the header file (as would
happen if there was a "static char *RCSid" in the header file.

We are new to C++ and looking for any ideas that people are willing to 
share on this and related topics. Send me email, and if the response is
sufficient I will post a summary to the net.

Thanks.

andy@uswest.com
-- 
Andy Hewitt				Internet:  andy@uswest.com
U S WEST Advanced Technologies		UUCP:  {...}!ncar!boulder!uswat!andy
4001 Discovery Dr
Boulder, CO 80303			Phone: (303) 541-6563