Changeset 0bf5340 for driver/cfa.cc


Ignore:
Timestamp:
Sep 10, 2019, 9:01:32 AM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

updates after code review, use suffix .ifa for cc1 stage1 temp-file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/cfa.cc

    r7c8246d r0bf5340  
    1010// Created On       : Tue Aug 20 13:44:49 2002
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Aug 27 06:11:24 2019
    13 // Update Count     : 416
     12// Last Modified On : Mon Sep  9 17:57:40 2019
     13// Update Count     : 417
    1414//
    1515
     
    3636
    3737
     38static string __CFA_FLAGPREFIX__( "__CFA_FLAG" );               // "N__=" suffix
     39
    3840void Putenv( char * argv[], string arg ) {
    3941        static int flags = 0;                                                           // environment variables must have unique names
    4042
    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() ) ) {
    4244                cerr << argv[0] << " error, cannot set environment variable." << endl;
    4345                exit( EXIT_FAILURE );
Note: See TracChangeset for help on using the changeset viewer.