📄 common.h
字号:
/** * \file common.h * \author Chen Zuan <chenz@lreis.ac.cn> * \date 2004/04/12 * * This file includes macro definitions and typedefs that commonly used * by RoadAngel. * * \b Revisions: * - 04/12/2004 the virgin one - 1.0 * \verbatim Copyright (C) 2004 CASW NAVI Dept.D This file is part of RoadAngel, a lightweight Car Navi Map Application support library for real-time embedded OS. \endverbatim*//* * $Id: common.h,v 1.3 2004/10/20 08:02:48 maolf Exp $ * * RoadAngel Version 0.0.x */#ifndef __RA_COMMON_H__#define __RA_COMMON_H__/** * \defgroup macros_types Macros and data types commonly used * @{ *//** * \defgroup version_info Version information * @{ *//** * \def _VERSION_CODE(major, minor, micro) * \brief A macro that returns the version code from \a major, \a minor * and \a micro version number. * * RoadAngel uses this macro to evaluate the version code of current RoadAngel * library installed in your system, and define it to _RA_VERSION_CODE. * * \sa _RA_VERSION_CODE */#define _VERSION_CODE(major, minor, micro) (((major)<<16) | ((minor)<<8) | (micro))/** * \def _RA_VERSION_CODE * \brief Version code of RoadAngel. * * \sa _VERSION_CODE */#define _RA_VERSION_CODE \ ((RA_MAJOR_VERSION << 16) | (RA_MINOR_VERSION << 8) | RA_MICRO_VERSION)/** @} end of version_info *//** * \defgroup basic_types Basic data types * @{ *//** * \var typedef unsigned char uint8 * \brief A type definition for an 8-bit unsigned character. */typedef unsigned char uint8;/** * \var typedef signed char sint8 * \brief A type definition for an 8-bit signed character. */typedef signed char sint8;/** * \var typedef unsigned short uint16 * \brief A type definition for a 16-bit unsigned integer. */typedef unsigned short uint16;/** * \var typedef signed short uint16 * \brief A type definition for a 16-bit signed integer. */typedef signed short sint16;/** * \var typedef unsigned int uint32 * \brief A type definition for a 32-bit unsigned integer. */typedef unsigned int uint32;/** * \var typedef signed int sint32 * \brief A type definition for a 32-bit signed integer. */typedef signed int sint32;/** @} end of basic_types *//** * \defgroup simple_types Simple and common types and macros * @{ */#ifndef BOOL/** * \var typedef int BOOL * \brief A type definition for boolean value. */typedef int BOOL;/** * \def FALSE * \brief FALSE value, defined as 0 by RoadAngel. */#ifndef FALSE#define FALSE 0#endif/** * \def TRUE * \brief TRUE value, defined as 1 by RoadAngel. */#ifndef TRUE#define TRUE 1#endif#endif/** * \def NULL * \brief A value indicates null pointer. */#ifndef NULL#define NULL ((void *)0)#endif#define VOID void#define GUIAPI/** @} end of simple_types *//** @} end of macros_types */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -