Re: New WGET and mainline version up: crm114-20080326-BlameSentansoken --> 64-bit SuSe 10.2 output

Paolo <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <20080401143738.GT25908@localhost>
On Tue, Apr 01, 2008 at 08:49:23AM -0400, Bill Y wrote:

> Maybe now is the time to start global replacement of int/long/float/double
> with the "proper" 32/64-bit architecture-clean macros.

need I to say +1? :)

> So, I will propose the followimg macros (names carefully chosen to be 
...
>   Char        8-bit char
>   UChar       8-bit unsigned char

why? we already have /usr/include/stdint.h:

...
/* Exact integral types.  */

/* Signed.  */

/* There is some amount of overlap with <sys/types.h> as known by inet code */
#ifndef __int8_t_defined
# define __int8_t_defined
typedef signed char             int8_t;
typedef short int               int16_t;
typedef int                     int32_t;
# if __WORDSIZE == 64
typedef long int                int64_t;
# else
__extension__
typedef long long int           int64_t;
# endif
#endif

/* Unsigned.  */
typedef unsigned char           uint8_t;
typedef unsigned short int      uint16_t;
#ifndef __uint32_t_defined
typedef unsigned int            uint32_t;
# define __uint32_t_defined
#endif
#if __WORDSIZE == 64
typedef unsigned long int       uint64_t;
#else
...

-- 
paolo

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.