Search the web
Sign In
New User? Sign Up
dmalloc · Debug Malloc Library (dmalloc) Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
C++ vs strdup   Message List  
Reply | Forward Message #498 of 529 |
Re: [dmalloc] C++ vs strdup

> At the top of dmalloc.h, there's a test that determines the return type
> of all the wrapped functions. It ends up setting DMALLOC_PNT to void*
> in the C++ case. The strdup function is supposed to always return a
> char*, though. Because C++ is very picky about pointer conversion,
> this can cause compiler errors because strdup is not returning a char* .
> Does the following patch make sense?

Yes it does Dan. Like duh. Not sure why I didn't see this before.
I'll push it into the main line right now.
---
gray.eg3@...

Copyright 2003 by Gray Watson.
You may not copy, forward, transmit, publish, post or otherwise use
this work without the express written permission of Gray Watson.



Wed Jun 18, 2003 10:03 pm

graywatson1
Offline Offline
Send Email Send Email

Forward
Message #498 of 529 |
Expand Messages Author Sort by Date

At the top of dmalloc.h, there's a test that determines the return type of all the wrapped functions. It ends up setting DMALLOC_PNT to void* in the C++ case....
Dan Nelson
Genesys_
Offline Send Email
Jun 18, 2003
9:49 pm

... Yes it does Dan. Like duh. Not sure why I didn't see this before. I'll push it into the main line right now. ... gray.eg3@... Copyright 2003 by...
Gray Watson
graywatson1
Offline Send Email
Jun 18, 2003
10:03 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help