types.h

Go to the documentation of this file.
00001 /*
00002  * types.h: some often used basic type definitions
00003  * $Revision: 1.9 $
00004  */
00005 #ifndef __TYPES_H__
00006 #define __TYPES_H__
00007 
00008 // Machine types
00009 typedef unsigned char       Byte;       /* 8 bits */
00010 typedef unsigned short      SWord;      /* 16 bits */
00011 typedef unsigned int        DWord;      /* 32 bits */
00012 typedef unsigned int        dword;      /* 32 bits */
00013 typedef unsigned int        Word;       /* 32 bits */
00014 typedef unsigned int        ADDRESS;    /* 32-bit unsigned */
00015 
00016 
00017 #define STD_SIZE    32                  // Standard size
00018 // Note: there is a known name collision with NO_ADDRESS in WinSock.h
00019 #ifdef NO_ADDRESS
00020 #undef NO_ADDRESS
00021 #endif
00022 #define NO_ADDRESS ((ADDRESS)-1)        // For invalid ADDRESSes
00023 
00024 #ifndef _MSC_VER
00025 typedef long unsigned long QWord;       // 64 bits
00026 #else
00027 typedef unsigned __int64   QWord;       
00028 #endif
00029 
00030 #if defined(_MSC_VER)
00031 #pragma warning(disable:4390)
00032 #endif
00033 
00034 #if defined(_MSC_VER) && _MSC_VER <= 1200
00035 // For MSVC 5 or 6: warning about debug into truncated to 255 chars
00036 #pragma warning(disable:4786)
00037 #endif
00038 
00039 #endif  // #ifndef __TYPES_H__

Generated on Tue Sep 19 21:18:35 2006 for Boomerang by  doxygen 1.4.6