delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/08/14:27:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 8 Jul 2002 14:24:40 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: patch to make strace printfs available to C code
Message-ID: <20020708182440.GH15519@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3D29D614 DOT 5030809 AT hekimian DOT com>
Mime-Version: 1.0
In-Reply-To: <3D29D614.5030809@hekimian.com>
User-Agent: Mutt/1.3.23.1i

On Mon, Jul 08, 2002 at 02:12:36PM -0400, Joe Buehler wrote:
>Attached is a short patch that makes the various strace printf macros
>available in C code and not just C++.  It could be made more efficient
>(avoid a function call) by moving a class attribute out of the strace
>class and making it a global variable.
>
>I will send in a patch to dlmalloc.c to use this, once I clean it up a
>little.  The idea being to dump malloc debugging output to strace
>instead of stderr, so there is more context about what is going on when
>the malloc check stuff finds something worth reporting.

Why not just rename dlmalloc.c to dlmalloc.cc?  I don't like making concessions
to C code in a C++ program.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019