Converting C++ to C

2012-02-24 Thread perryh
Some early implementations of C++ operated as preprocessors that emitted C code. Is there any current tool that will do that? I didn't recognize any such option in the g++ manpage, although I suppose it's possible that one of the -fdump-tree- options would come close enough. Reason: I want to

Re: Converting C++ to C

2012-02-24 Thread Julian H. Stacey
per...@pluto.rain.com wrote: Some early implementations of C++ operated as preprocessors that emitted C code. Is there any current tool that will do that? I didn't recognize any such option in the g++ manpage, although I suppose it's possible that one of the -fdump-tree- options would come

Re: Converting C++ to C

2012-02-24 Thread Mehmet Erol Sanliturk
On Fri, Feb 24, 2012 at 4:37 AM, per...@pluto.rain.com wrote: Some early implementations of C++ operated as preprocessors that emitted C code. Is there any current tool that will do that? I didn't recognize any such option in the g++ manpage, although I suppose it's possible that one of the

Re: Converting C++ to C

2012-02-24 Thread Da Rock
On 02/24/12 22:07, Julian H. Stacey wrote: per...@pluto.rain.com wrote: Some early implementations of C++ operated as preprocessors that emitted C code. Is there any current tool that will do that? I didn't recognize any such option in the g++ manpage, although I suppose it's possible that

Re: Converting C++ to C

2012-02-24 Thread Robert Bonomi
Julian H. Stacey j...@berklix.com wrote; per...@pluto.rain.com wrote: Reason: I want to make what I think would be a fairly minor change to a small (1100-line) C++ program, but I don't know C++ -- only C -- and I don't understand the program well enough to mess with it. I suspect I