📄 vcitypes.h
字号:
/* vim:set ts=4 sw=4 et: */
/*****************************************************************************
******************************************************************************
** **
** Copyright (c) 2003, 2004, 2005 Videon Central, Inc. **
** All rights reserved. **
** **
** The computer program contained herein contains proprietary information **
** which is the property of Videon Central, Inc. The program may be used **
** and/or copied only with the written permission of Videon Central, Inc. **
** or in accordance with the terms and conditions stipulated in the **
** agreement/contract under which the programs have been supplied. **
** **
******************************************************************************
*****************************************************************************/
/**
* @file
* vcitypes.h
*
* Common types for cross-platform development.
*
* @author
* Art Shipkowski
*
* @remark
* None
*
* $Id: vcitypes.h,v 1.39 2006/11/13 14:53:47 ctusar Exp $
*/
#if !defined(VCITYPES_H)
#define VCITYPES_H
/*****************************************************************************
******************************************************************************
** **
** Compiler / Platform: **
** Visual C++ **
** **
** Author: **
** Jared Arteca **
** **
** Maintainer: **
** Jared Arteca **
** **
** Notes: **
** none **
** **
** Revision History: **
** 08/03/00 JCA File origination **
** 10/03/00 JCA Fixes for stdafx.h being included **
** **
******************************************************************************
*****************************************************************************/
#ifdef _MSC_VER
/*****************************************************************************
* *
* Signed Data Types *
* *
*****************************************************************************/
#ifndef _WINDOWS_
#ifndef _WINNT_
typedef signed char CHAR; /* 8 bits - signed character */
typedef signed short WCHAR; /* 16 bits - signed character (Unicode) */
#endif
#endif
typedef signed short SHORT; /* 16 bits - signed integer */
typedef signed long LONG; /* 32 bits - signed integer */
typedef signed _int64 LONGLONG; /* 64 bits - signed integer */
typedef signed char int8;
typedef signed short int16;
typedef signed long int32;
typedef signed _int64 int64;
/*****************************************************************************
* *
* Unsigned Data Types *
* *
*****************************************************************************/
typedef unsigned char BYTE; /* 8 bits - unsigned integer */
typedef unsigned char UCHAR; /* 8 bits - unsigned integer */
typedef unsigned short USHORT; /* 16 bits - unsigned integer */
typedef unsigned long ULONG; /* 32 bits - unsigned integer */
typedef unsigned _int64 ULONGLONG; /* 64 bits - unsigned integer */
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned long uint32;
typedef unsigned _int64 uint64;
/*****************************************************************************
* *
* Floating Point Data Types *
* *
*****************************************************************************/
typedef float FLOAT; /* 32 bits - floating point (real) */
typedef double DOUBLE; /* 64 bits - double precision */
/*****************************************************************************
* *
* Boolean Data Types and Constants *
* *
*****************************************************************************/
typedef unsigned char BOOLEAN; /* 8 bits - boolean */
#ifndef true /* true = 1 */
#define true (1)
#endif
#ifndef TRUE /* TRUE = 1 */
#define TRUE (1)
#endif
#ifndef false /* false = 0 */
#define false (0)
#endif
#ifndef FALSE /* FALSE = 0 */
#define FALSE (0)
#endif
/*****************************************************************************
* *
* Void Pointer Data Type *
* *
*****************************************************************************/
typedef void * PVOID; /* 32 bits - void pointer */
/*****************************************************************************
* *
* String Data Type *
* NULL terminated string made up of an array of type CHAR *
* *
*****************************************************************************/
typedef CHAR * STR; /* 8*(strlen+1) bits */
typedef BYTE * PBYTE;
/*****************************************************************************
* *
* Error Code Status Structure *
* *
*****************************************************************************/
typedef unsigned long ERR_CODE; /* 32 bits - unsigned integer */
#define ISEQUAL(x, y) (x) == (y)
#define __attribute__(x)
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
#endif /* _MSC_VER */
/*****************************************************************************
******************************************************************************
** **
** Compiler / Platform: **
** Green Hills / MIPS R3000 **
** **
** Author: **
** Micah Willy **
** **
** Maintainer: **
** Micah Willy **
** **
** Notes: **
** 1) The L64030's CPU core, the TinyRISC EZ4102 is MIPS R3000 **
** compliant, the long long, 64 bit storage types may need compiler **
** settings to enable 64 bit emulation or register handling. **
** 2) The L64030's CPU core, the TinyRISC EZ4102 is MIPS R3000 **
** compliant, there is most likely not a floating math co-processor **
** so the -fsoft switch in Green Hills must be used to enable **
** software floating point emulation. Green Hills / MIPS supports **
** IEEE 754 floating point formatting. **
** **
** Revision History: **
** 08/07/00 MBW File origination **
** **
******************************************************************************
*****************************************************************************/
#ifdef __ghs
/*****************************************************************************
* *
* Type Definitions *
* *
*****************************************************************************/
/* -- Signed Types -- */ /* BITS DESCRIPTION PREFIX */
typedef signed char CHAR; /* 8 signed character c */
typedef signed short WCHAR; /* 16 signed character wc */
typedef signed short SHORT; /* 16 signed integer s */
typedef signed long LONG; /* 32 signed integer l */
#if 0
typedef signed long long LONGLONG; /* 64 signed integer ll */
#endif
/* -- Unsigned Types -- */
typedef unsigned char BYTE; /* 8 unsigned integer b */
typedef unsigned char UCHAR; /* 8 unsigned integer uc */
typedef unsigned short USHORT; /* 16 unsigned integer us */
typedef unsigned long ULONG; /* 32 unsigned integer ul */
#if 0
typedef unsigned long long ULONGLONG; /* 64 unsigned integer ull */
#endif
/* -- Conditional Returns and Error Codes -- */
typedef unsigned char BOOLEAN; /* 8 Bool(T 1, F 0) f */
typedef unsigned long ERR_CODE; /* 32 unsigned integer ec */
/* -- Floating Point Types -- */
typedef float FLOAT; /* 32 floating point fl */
typedef double DOUBLE; /* 64 double-precision d */
/* -- Pointer Types -- */
typedef void * PVOID; /* 32 void pointer pv */
typedef signed char * STR; /* 8 x (strlen + 1) str */
/*****************************************************************************
* *
* Standard Definitions *
* *
*****************************************************************************/
/* -- Standard Definitions ( TRUE, FALSE, SUCCESS, Error Codes ) -- */
#define TRUE 0x01
#define FALSE 0x00
#define DUMMY_ERR_CODE 0xfeedf00d
/*****************************************************************************
* *
* Macros *
* *
*****************************************************************************/
/* -- Data Formatting Macros ( HIBYTE, LOBYTE, n'at ) -- */
#endif /* __ghs */
/*****************************************************************************
******************************************************************************
** **
** Compiler / Platform: **
** Trimedia **
** **
** Author: **
** Arthur Shipkowski **
** **
** Maintainer: **
** Arthur Shipkowski **
** **
** Notes: **
** No long long (64-bit) types available AFAIK. **
** **
** Revision History: **
** 08/22/00 AES File origination **
** **
******************************************************************************
*****************************************************************************/
#ifdef __TCS__
/*********************/
/* Value-based Types */
/*********************/
typedef signed char CHAR; /* 8 bits - signed character */
typedef signed short WCHAR; /* 16 bits - signed character (Unicode) */
typedef signed short SHORT; /* 16 bits - signed integer */
typedef signed long LONG; /* 32 bits - signed integer */
/* No long long type available AFAIK */
typedef unsigned char BYTE; /* 8 bits - unsigned integer */
typedef unsigned char UCHAR; /* 8 bits - unsigned integer */
typedef unsigned short USHORT; /* 16 bits - unsigned integer */
typedef unsigned long ULONG; /* 32 bits - unsigned integer */
/* No unsigned long long type available AFAIK either */
typedef float FLOAT; /* 32 bits - floating point (real) */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -