Changeset ec129c4 for src/driver
- Timestamp:
- Oct 26, 2016, 5:10:48 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 1b29996
- Parents:
- 315f634
- git-author:
- Peter A. Buhr <pabuhr@…> (10/26/16 17:02:36)
- git-committer:
- Peter A. Buhr <pabuhr@…> (10/26/16 17:10:48)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/driver/cfa.cc ¶
r315f634 rec129c4 10 10 // Created On : Tue Aug 20 13:44:49 2002 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Aug 6 16:14:55201613 // Update Count : 1 4812 // Last Modified On : Tue Oct 25 21:29:48 2016 13 // Update Count : 152 14 14 // 15 15 … … 51 51 int main( int argc, char *argv[] ) { 52 52 string Version( VERSION ); // current version number from CONFIG 53 string Major( "0" ), Minor( "0" ), Patch( "0" ); // default version numbers 54 55 int posn1 = Version.find( "." ); // find the divider between major and minor version numbers 56 if ( posn1 == -1 ) { // not there ? 57 Major = Version; 58 } else { 59 Major = Version.substr( 0, posn1 ); 60 int posn2 = Version.find( ".", posn1 + 1 ); // find the divider between minor and patch numbers 61 if ( posn2 == -1 ) { // not there ? 62 Minor = Version.substr( posn1 ); 63 } else { 64 Minor = Version.substr( posn1 + 1, posn2 - posn1 - 1 ); 65 Patch = Version.substr( posn2 + 1 ); 66 } // if 67 } // if 53 string Major( CFA_VERSION_MAJOR ), Minor( CFA_VERSION_MINOR ), Patch( CFA_VERSION_MINOR ); 68 54 69 55 string installincdir( CFA_INCDIR ); // fixed location of include files … … 268 254 // add the correct set of flags based on the type of compile this is 269 255 270 args[nargs] = ( *new string( string("-D__CFA_ _=") + Major ) ).c_str();256 args[nargs] = ( *new string( string("-D__CFA_MAJOR__=") + Major ) ).c_str(); 271 257 nargs += 1; 272 258 args[nargs] = ( *new string( string("-D__CFA_MINOR__=") + Minor ) ).c_str(); 273 259 nargs += 1; 274 args[nargs] = ( *new string( string("-D__CFA_PATCH LEVEL__=") + Patch ) ).c_str();260 args[nargs] = ( *new string( string("-D__CFA_PATCH__=") + Patch ) ).c_str(); 275 261 nargs += 1; 276 262 args[nargs] = "-D__CFA__";
Note: See TracChangeset
for help on using the changeset viewer.