From 3dd17f128831e09c230a8d56e34495d3b31dbacb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 27 Jan 2005 06:16:59 +0000 Subject: r5034: - added a type mapping function in pidl, so the type names in our IDL files don't need to match the type names in the generated headers - with this type mapping we no longer need definitions for the deprecated "int32", "uint8" etc form of types. We can now force everyone to use the standard types int32_t, uint8_t etc. - fixed all the code that used the deprecated types - converted the IDL types "int64" and "uint64" to "dlong" and "udlong". These are the 4 byte aligned 64 bit integers that Microsoft internally define as two 32 bit integers in a structure. After discussions with Ronnie Sahlberg we decided that calling these "int64" was confusing, as it implied a true 8 byte aligned type - fixed all the cases where we incorrectly used things like "NTTIME_hyper" in our C code. The generated API now uses a NTTIME for those. The fact that it is hyper-aligned on the wire is not relevant to the API, and should remain just a IDL property (This used to be commit f86521677d7ff16bdc4815f9524e5286026f10f3) --- source4/include/includes.h | 43 ------------------------------------------- 1 file changed, 43 deletions(-) (limited to 'source4/include/includes.h') diff --git a/source4/include/includes.h b/source4/include/includes.h index 8c2e96b62e..68e369a77b 100644 --- a/source4/include/includes.h +++ b/source4/include/includes.h @@ -85,49 +85,6 @@ #define VOLATILE #endif -/* - Samba needs type definitions for - int8_t, int16_t, int32_t, int64_t - uint8_t, uint16_t, uint32_t and uint64_t. - - Normally these are signed and unsigned 8, 16, 32 and 64 bit integers, but - they actually only need to be at least 8, 16, 32 and 64 bits - respectively. Thus if your word size is 8 bytes just defining them - as signed and unsigned int will work. -*/ - -#if !defined(int8) -#define int8 int8_t -#endif - -#if !defined(uint8) -#define uint8 uint8_t -#endif - -#if !defined(int16) -#define int16 int16_t -#endif - -#if !defined(uint16) -#define uint16 uint16_t -#endif - -#if !defined(int32) -#define int32 int32_t -#endif - -#if !defined(uint32) -#define uint32 uint32_t -#endif - -#if !defined(int64) -#define int64 int64_t -#endif - -#if !defined(uint64) -#define uint64 uint64_t -#endif - #define False (0) #define True (1) #define Auto (2) -- cgit