lstddef.h

来自「这是RENESAS的DASHBOARD的方案」· C头文件 代码 · 共 59 行

H
59
字号
/*--------------------------------------------------------------------*/
/* 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 + =
减小字号Ctrl + -
显示快捷键?