Header files of Common Data Types

Source: Internet
Author: User

//! Header files of Common Data Types

/**
* General Library version 4.0
* This header file mainly defines the Unified Data Type and exception base class, which will be provided to all header files in the general library.
* @ Author zdhsoft (Zhu Donghua)
* @ Version 4.0
* @ Date 2008-03-01
* @ File xcommon. h
* @ Test: tested
*/
# Ifndef _ X_COMMON_H _
# Define _ X_COMMON_H _
// Included header file
# Include <xconfig. h>
# Include <string>
# Include <cassert>

Namespace zdh
{
Typedef unsigned char XByte; // <8-bit unsigned integer
Typedef char XChar; // <8 characters
Typedef unsigned short XWord; // <16-bit unsigned integer
Typedef short XShort; // <16-bit signed integer

# If CONFIG_CPU32
Typedef unsigned int XDWord; // <32-bit unsigned integer
Typedef int XInt; // <32-bit signed integer
# Else
Typedef unsigned long XDWord; // <32-bit unsigned integer
Typedef signed long XInt; // <32-bit signed integer
# Endif

# If CONFIG_BCB
# If CONFIG_BCB5
Typedef unsigned _ int64 XDDWord; // <64-bit unsigned integer
Typedef signed _ int64 XLong; // <64-bit signed integer
# Elif CONFIG_BCB6 | CONFIG_BCB2006
Typedef unsigned long XDDWord; // <64-bit unsigned integer
Typedef signed long XLong; // <64-bit signed integer
# Else
Typedef unsigned _ int64 XDDWord; // <64-bit unsigned integer
Typedef signed _ int64 XLong; // <64-bit signed integer
# Endif
# Elif CONFIG_VC
# If CONFIG_VC2003 | CONFIG_VC2005 | CONFIG_VC2001
Typedef unsigned long XDDWord; // <64-bit unsigned integer
Typedef signed long XLong; // <64-bit signed integer
# Elif CONFIG_VC6 | CONFIG_VC5
Typedef unsigned _ int64 XDDWor

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.