⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lstddef.h

📁 这是RENESAS的DASHBOARD的方案
💻 H
字号:
/*--------------------------------------------------------------------*/
/* H8S,H8/300 SERIES C Compiler Ver. 1.0                              */
/* Copyright (C) 1994 Hitachi, Ltd.                                   */
/* Licensed Material of Hitachi,Ltd.                                  */
/*--------------------------------------------------------------------*/
/**********************************************************************/
/* SPEC;                                                              */
/*  NAME = stddef :                                                   */
/*                                                                    */
/*  FUNC = this module do the following functions                     */
/*                                                                    */
/*  CLAS = UNIT;                                                      */
/*                                                                    */
/* END;                                                               */
/**********************************************************************/
/**********************************************************************/
/* __CPU__ == 0: 300 STACK   1: 300 REGISTER                          */
/*            2: 300H NORMAL 3: 300H ADVANCED                         */
/*            4: 2600 NORMAL 5: 2600 ADVANCED                         */
/*            6: 2000 NORMAL 7: 2000 ADVANCED                         */
/**********************************************************************/
#if __DATA_ADDRESS_SIZE__ == 4
#ifndef  _PTRDIFF_T                                 /* V3.0 C P3V054L */
#define  _PTRDIFF_T                                 /* V3.0 C P3V054L */
typedef  long           ptrdiff_t;                  /* V3.0 C P3V054L */
#endif
#ifndef  _SIZE_T                                    /* V3.0 C P3V054L */
#define  _SIZE_T                                    /* V3.0 C P3V054L */
typedef  unsigned long  size_t;                     /* V3.0 C P3V054L */
#endif
#else
#ifndef  _PTRDIFF_T                                 /* V3.0 C P3V054L */
#define  _PTRDIFF_T                                 /* V3.0 C P3V054L */
typedef  int            ptrdiff_t;                  /* V3.0 C P3V054L */
#endif
#ifndef  _SIZE_T                                    /* V3.0 C P3V054L */
#define  _SIZE_T                                    /* V3.0 C P3V054L */
typedef  unsigned int   size_t;                     /* V3.0 C P3V054L */
#endif
#endif

#ifndef  NULL
#define  NULL           ((void *)0)
#endif

#ifndef  offsetof
#define  offsetof(type,id) ((char *)(&(((type *)NULL)->id))  -    \
                            (char *)((type *)NULL))
#endif

#ifndef  errno
#ifndef _REENTRANT								/* A 3V611-34 */
#define  errno          _errno
#else											/* A 3V611-34 */
extern  int *errno_addr(void);					/* A 3V611-34 */
#define _errno (*errno_addr())					/* A 3V611-34 */
#endif											/* A 3V611-34 */
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -