Changeset 0bf5340 for driver/cfa.cc
- Timestamp:
- Sep 10, 2019, 9:01:32 AM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 216597d
- Parents:
- 7c8246d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
driver/cfa.cc
r7c8246d r0bf5340 10 10 // Created On : Tue Aug 20 13:44:49 2002 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Aug 27 06:11:24201913 // Update Count : 41 612 // Last Modified On : Mon Sep 9 17:57:40 2019 13 // Update Count : 417 14 14 // 15 15 … … 36 36 37 37 38 static string __CFA_FLAGPREFIX__( "__CFA_FLAG" ); // "N__=" suffix 39 38 40 void Putenv( char * argv[], string arg ) { 39 41 static int flags = 0; // environment variables must have unique names 40 42 41 if ( putenv( (char *)( *new string( string( "__CFA_FLAG"+ to_string( flags++ ) + "__=" ) + arg ) ).c_str() ) ) {43 if ( putenv( (char *)( *new string( string( __CFA_FLAGPREFIX__ + to_string( flags++ ) + "__=" ) + arg ) ).c_str() ) ) { 42 44 cerr << argv[0] << " error, cannot set environment variable." << endl; 43 45 exit( EXIT_FAILURE );
Note: See TracChangeset
for help on using the changeset viewer.