On Jan 31, 1:12 am, blindfold <seeingwithso...@gmail.com> wrote:
> When compiling hprofConv.c I noticed that stdint.h is not included
> with Visual Studio C++ products (http://en.wikipedia.org/wiki/
> Stdint.h), so I fetched the "portable stdint.h" pstdint.h from the web
> (http://www.azillionmonkeys.com/qed/pstdint.h). Next I found that I
> had to redefine DBUG for lack of support for variable length argument
> lists in my (old) C preprocessor, and I had to apply a few explicit
> casts to HprofBasicType to satisfy the VC compiler. Of course I fully
> understand that HprofConv was not yet developed for maximum
> portability but for in-house use. I will experiment with your
> HprofConv utility later.

Unfortunately I don't have a lot of different compilers to test with.
<stdint.h> is only needed for a couple of types (uint8_t and
uint32_t); not sure if there's a better way to deal with those.  I
figured variadic macros could be a problem, but since it's a debug
macro that is compiled out by default I figured at worst people could
just strip it out entirely.

One user reported some problems running it under Cygwin that sounded
like stdin/stdout were undergoing text conversion, so I posted a new
version that takes the input and output files as arguments, and will
fopen them with "rb"/"wb".  Per UNIX convention, you can specify "-"
to use stdin/stdout for the original behavior.  (I probably should've
done it this way in the first place.)

New version is up on http://bigflake.com/HprofConv.c.txt .

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to