[cfe-dev] utils/ccc -print-prog-name
Sanghyeon Seo
sanxiyn at gmail.com
Fri Jan 25 06:58:41 PST 2008
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