From owner-freebsd-questions@FreeBSD.ORG Fri Feb 24 12:51:44 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1500D10656D8 for ; Fri, 24 Feb 2012 12:51:44 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id C70E48FC1D for ; Fri, 24 Feb 2012 12:51:43 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so3655681obc.13 for ; Fri, 24 Feb 2012 04:51:43 -0800 (PST) Received-SPF: pass (google.com: domain of m.e.sanliturk@gmail.com designates 10.182.51.73 as permitted sender) client-ip=10.182.51.73; Authentication-Results: mr.google.com; spf=pass (google.com: domain of m.e.sanliturk@gmail.com designates 10.182.51.73 as permitted sender) smtp.mail=m.e.sanliturk@gmail.com; dkim=pass header.i=m.e.sanliturk@gmail.com Received: from mr.google.com ([10.182.51.73]) by 10.182.51.73 with SMTP id i9mr850517obo.17.1330087903243 (num_hops = 1); Fri, 24 Feb 2012 04:51:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pWoYP7Zrf6bkpk0B7wGfVqxqkZtTV3oVZ/igm9PRIl4=; b=yDWyqjefVvrWeNNlVlQqjDaDufS9klAWYMEAS2EH6oPCa0ARvouUTjv9nsRqlIcGUy oy/n+MP0nsbv1sS1GHJ+hrLOmXEUYr+rvI/HjG3lV0PG9UGViOiJ/IYZT1hIMCMVal1L VYOMhHvyMIyfdyuwTOsfwYrToZysQnBGy8Y2s= MIME-Version: 1.0 Received: by 10.182.51.73 with SMTP id i9mr745822obo.17.1330087903057; Fri, 24 Feb 2012 04:51:43 -0800 (PST) Received: by 10.182.38.38 with HTTP; Fri, 24 Feb 2012 04:51:43 -0800 (PST) In-Reply-To: <4f47bcc2.i0iNgy94hupdyGb5%perryh@pluto.rain.com> References: <4f47bcc2.i0iNgy94hupdyGb5%perryh@pluto.rain.com> Date: Fri, 24 Feb 2012 07:51:43 -0500 Message-ID: From: Mehmet Erol Sanliturk To: perryh@pluto.rain.com Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Converting C++ to C X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 12:51:44 -0000 On Fri, Feb 24, 2012 at 4:37 AM, 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 close enough. > > 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 would be able to figure out an > equivalent C program. > > In case it matters, I'm using FreeBSD 8.1. > http://www.comeaucomputing.com/ http://www.comeaucomputing.com/tryitout/ http://www.comeaucomputing.com/faqs/genfaq.html#ccompiler http://stackoverflow.com/questions/737257/code-convert-from-c-to-c Thank you very much . Mehmet Erol Sanliturk