News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How does header statement generated?

Started by ollydbg, July 16, 2009, 04:12:04 PM

Previous topic - Next topic

ollydbg

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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

stahta01

#1
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

ollydbg

Understand now.
Thanks for your explanation!
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

rhf

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