[cfe-dev] utils/ccc -print-prog-name

Nuno Lopes nunoplopes at sapo.pt
Fri Jan 25 07:10:49 PST 2008


Thank you!
Nuno

P.S.: shh, I'm a PHP core developer, so don't tell anyone I made a patch to 
a python script :P

----- Original Message ----- 
> Thanks. Applied with a little changes. (See below.)
>
> 2008/1/25, Nuno Lopes <nunoplopes at sapo.pt>:
>> -    print ' '.join(args)
>> +    #print ' '.join(args)
>
> I want to keep this. This print is helpful when ccc behaves unexpectedly.
>
>> +        if arg[:16] == '-print-prog-name':
>> +            action = 'print-prog-name'
>
> Better arg.startswith('-print-prog-name').
>
>> +    if action == 'print-prog-name':
>> +        # assume we can handle everything
>> +        print sys.argv[0]
>> +        sys.exit(0)
>
> Better return here.
>
> -- 
> Seo Sanghyeon 




More information about the cfe-dev mailing list