Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: ollydbg on July 16, 2009, 04:12:04 PM

Title: How does header statement generated?
Post by: ollydbg on July 16, 2009, 04:12:04 PM
In each cpp or header file of the code::blocks' source file, there are the code like below:


/*
* This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
* http://www.gnu.org/licenses/gpl-3.0.html
*
* $Revision: 4909 $
* $Id: token.cpp 4909 2008-02-27 13:15:26Z mortenmacfly $
* $HeadURL: svn://svn.berlios.de/codeblocks/trunk/src/plugins/codecompletion/parser/token.cpp $


So, my question is:

these $Revision: number was modified manually? or it is generated automatically?

Thanks.
Title: Re: How does header statement generated?
Post by: stahta01 on July 16, 2009, 04:59:20 PM
Quote from: ollydbg on July 16, 2009, 04:12:04 PM
In each cpp or header file of the code::blocks' source file, there are the code like below:


/*
* This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
* http://www.gnu.org/licenses/gpl-3.0.html
*
* $Revision: 4909 $
* $Id: token.cpp 4909 2008-02-27 13:15:26Z mortenmacfly $
* $HeadURL: svn://svn.berlios.de/codeblocks/trunk/src/plugins/codecompletion/parser/token.cpp $


So, my question is:

these $Revision: number was modified manually? or it is generated automatically?

Thanks.

The are tokens (Keyword Substitution) that are replaced in checked into a source control system like CVS/SVN.

Edit: added link: http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.keywords.html

Tim S.
Title: Re: How does header statement generated?
Post by: ollydbg on July 16, 2009, 05:01:58 PM
Understand now.
Thanks for your explanation!
Title: Re: How does header statement generated?
Post by: rhf on July 16, 2009, 05:03:42 PM
Quote from: ollydbg on July 16, 2009, 04:12:04 PM

So, my question is:

these $Revision: number was modified manually? or it is generated automatically?
See for example the Subversion book: http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.props.special.keywords