SigTerm |
10-21-2011 12:26 PM |
Quote:
Originally Posted by NevemTeve
(Post 4504424)
Well, I haven't seen such platform yet, and this link doesn't seem to give example.
|
http://www.unix.org/version2/whatsnew/lp64_wp.html
Cray supercomputers.
Quote:
Originally Posted by NevemTeve
(Post 4504424)
you should know that actually sizeof (int) _is_ 4.
|
Nope. YOu should know that you can ask the debugger what the size of (int) is.
Quote:
Originally Posted by NevemTeve
(Post 4504424)
Well, I don't think wchar_t would lead anywhere, have never used it myself.
|
wchar_t is char with unicode support. You'll have to use it for every character code that doesn't fit into ASCII.
Quote:
Originally Posted by NevemTeve
(Post 4504424)
I think every modern compiler has inttypes.h, but if not,
|
This is a C99 header (afaik you need to use stdint.h instead), which means it doesn't need to be available in C++ compiler (it should be available in next standard which isn't here yet). C and C++ are not the same language. MSVC2008 doesn't have it. MSVC2005 doesn't have it. For maximum/minimum values there's std::numeric_limits.
Quote:
Originally Posted by NevemTeve
(Post 4504424)
|
Please do not give such advices. Somebody is bound to take it seriously and produce another batch of buggy software as a result.
This implementation is naive and will cause problems. I'd advise to avoid using this particular header at all costs.
MSVC compiler has __int8, __int32 and __int64 type (non-standard), so if you're going to provide typedefs, you should use THEM instead - their size is guaranteed. "Hack one" is a bad idea - header that provides such types should come with a large framework that is frequently updated and reviewed by a team of people - this guarantees that the header is somewhat reliable and should work on whatever obscure compiler your code will be compiled.
"missing header" written by a "unnamed lone hero" is a BAD idea, since it does not guarantee that the header has been tested properly. If you're going to use external header, use the one provided with boost.
|