X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=config_h.SH;h=fb359323ed99ebccf87f56c800e6b97458355adf;hb=e0a10278435e0dff75e2ea63cd1637e4c4b4296c;hp=5355052c8f97b34d85065c27f154c69de9b6a91e;hpb=a22e52b96b9903703a79e4a00983091457f7aff2;p=p5sagit%2Fp5-mst-13.2.git diff --git a/config_h.SH b/config_h.SH index 5355052..fb35932 100644 --- a/config_h.SH +++ b/config_h.SH @@ -998,22 +998,29 @@ sed <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- */ #define STDCHAR $stdchar /**/ +/* HAS_QUAD: + * This symbol, if defined, tells that there's a 64-bit integer type, + * Quad_t. + */ /* Quad_t: * This symbol holds the type used for 64-bit integers. * It can be int, long, long long, int64_t etc... */ -/* QUADCASE: - * This symbol, if defined, encodes the type of a quad: - * 1 = int, 2 = long, 3 = long long, 4 = int64_t. - */ /* Uquad_t: * This symbol holds the type used for unsigned 64-bit integers. * It can be unsigned int, unsigned long, unsigned long long, * uint64_t etc... */ -#define Quad_t $quadtype -#define Uquad_t $uquadtype -#define QUADCASE $quadcase +#$d_quad HAS_QUAD /**/ +#$d_quad Quad_t $quadtype /**/ +#$d_quad Uquad_t $uquadtype /**/ +#ifdef HAS_QUAD +# define QUADKIND $quadkind /**/ +# define QUAD_IS_INT 1 +# define QUAD_IS_LONG 2 +# define QUAD_IS_LONG_LONG 3 +# define QUAD_IS_INT64_T 4 +#endif /* HAS_ACCESSX: * This symbol, if defined, indicates that the accessx routine is @@ -2215,6 +2222,13 @@ sed <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- */ #$d_hasmntopt HAS_HASMNTOPT /**/ +/* HAS_INT64_T: + * This symbol will defined if the C compiler supports int64_t. + * Usually the needs to be included, but sometimes + * is enough. + */ +#$d_int64t HAS_INT64_T /**/ + /* HAS_LDBL_DIG: * This symbol, if defined, indicates that this system's * or defines the symbol LDBL_DIG, which is the number @@ -2315,13 +2329,7 @@ sed <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- * This symbol, if defined, indicates to the C program that it should * include . */ -/* HAS_INT64_T: - * This symbol will defined if the C compiler supports int64_t. - * Usually the needs to be included, but sometimes - * is enough. - */ #$i_inttypes I_INTTYPES /**/ -#$d_int64t HAS_INT64_T /**/ /* I_MNTENT: * This symbol, if defined, indicates that exists and @@ -2476,7 +2484,7 @@ sed <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- #define U16TYPE $u16type /**/ #define I32TYPE $i32type /**/ #define U32TYPE $u32type /**/ -#ifdef Quad_t +#ifdef HAS_QUAD #define I64TYPE $i64type /**/ #define U64TYPE $u64type /**/ #endif @@ -2489,7 +2497,7 @@ sed <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- #define U16SIZE $u16size /**/ #define I32SIZE $i32size /**/ #define U32SIZE $u32size /**/ -#ifdef Quad_t +#ifdef HAS_QUAD #define I64SIZE $i64size /**/ #define U64SIZE $u64size /**/ #endif @@ -2804,6 +2812,11 @@ sed <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- */ #define Gid_t_f $gidformat /**/ +/* Gid_t_size: + * This symbol holds the size of a Gid_t in bytes. + */ +#define Gid_t_size $gidsize /* GID size */ + /* Gid_t: * This symbol holds the return type of getgid() and the type of * argument to setrgid() and related functions. Typically, @@ -2821,8 +2834,12 @@ sed <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- /* LSEEKSIZE: * This symbol holds the number of bytes used by the Off_t. */ +/* Off_t_size: + * This symbol holds the number of bytes used by the Off_t. + */ #define Off_t $lseektype /* type */ #define LSEEKSIZE $lseeksize /* size */ +#define Off_t_size $lseeksize /* size */ /* Mode_t: * This symbol holds the type used to declare file modes @@ -2852,6 +2869,11 @@ sed <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- */ #define Uid_t_f $uidformat /**/ +/* Uid_t_size: + * This symbol holds the size of a Uid_t in bytes. + */ +#define Uid_t_size $uidsize /* UID size */ + /* Uid_t: * This symbol holds the type used to declare user ids in the kernel. * It can be int, ushort, uid_t, etc... It may be necessary to include