📄 types.h
字号:
/******************************************************************************* Filename : types.h ** Program : loader. ** Copyright : Copyright (C) 2001, Young-Su, Ahn. ** Author : Young-Su, Ahn <nurie@dreamwiz.com> ** Description : Variable Type. ** Created at : Wed Mar 13 2001. ** Based on : ** Modified by : ** Modified at : *******************************************************************************//* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */#ifndef _TYPES_H_#define _TYPES_H_#ifndef _TYPE_DEFINE_#define _TYPE_DEFINE_typedef unsigned int U32;typedef int S32;typedef unsigned short U16;typedef short S16;typedef unsigned char U8;typedef char S8;#endif#define ADDR32(A) (*((volatile U32 *)(A)))#define ADDR16(A) (*((volatile U16 *)(A)))#define ADDR8(A) (*((volatile U8 *)(A)))#ifndef __cplusplustypedef int bool;#define true 1#define false 0#endiftypedef enum { VAR_LONG=32, VAR_SHORT=16, VAR_CHAR=8} VAR_TYPE;#ifndef NULL#define NULL (void *)0#endif#endif // end _TYPES_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -