This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: patch to make strace printfs available to C code


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]