📄 sdtypes.h
字号:
/*****************************************************************************
* Filename: SDTYPES.H - Type Definition for HDTK
*
* SanDisk Host Developer's Toolkit
*
* Copyright (c) 1997 - 1999 SanDisk Corporation
* All rights reserved.
*
* Description:
* Data Type Definitions
*
*****************************************************************************/
#ifndef _SDTYPES_H_
#ifndef FALSE
# define FALSE (0)
#endif /* FALSE */
#ifndef TRUE
# define TRUE (!FALSE)
#endif /* TRUE */
#if 0
#define YES TRUE /* True */
#define NO FALSE /* False */
#endif
/* Pseudo types to eliminate confusion about the sizes of native types */
/* Note: these are artifacts of this package's roots in SanDisk's Host
Developer's Toolkit. Most of these are defined in Windows types.h and
wtypes.h. Keep the rest of this around to make the code happy*/
#include <windows.h>
#include <types.h>
#include <wtypes.h>
//typedef char CHAR; /* 8-bit signed */
typedef char INT08; /* 8-bit signed */
//typedef short INT16; /* 16-bit signed */
typedef short COUNT; /* 16 bit signed */
//typedef long INT32; /* 32-bit signed */
//typedef long LONG; /* 32-bit signed */
typedef unsigned char UCHAR; /* 8-bit unsigned */
typedef unsigned char UINT08; /* 8-bit unsigned */
//typedef unsigned short UINT16; /* 16-bit unsigned */
typedef unsigned short UCOUNT; /* 16-bit unsigned */
//typedef unsigned long UINT32; /* 32-bit unsigned */
//typedef unsigned long ULONG; /* 32-bit unsigned */
typedef void * SDHANDLE;
typedef UINT16 SDWIN_HANDLE;
typedef UINT16 SDCLIENT_HANDLE;
typedef unsigned char UTINY; /* unsigned 8 bit */
typedef unsigned char UTEXT; /* unsigned 8 bit for string */
typedef char TEXT; /* char for string */
typedef unsigned long BLOCKT; /* 32-bit unsigned */
typedef short PCFD; /* file desc */
#define SDVOID void /* void */
#define SDIMPORT extern /* For external data */
#define SDLOCAL static /* For internal data and functions */
#define SDGLOBAL extern /* For external functions */
/* Null pointer */
#define SDNULL ((void *)0)
typedef enum SD_YES_NO
{
NO = FALSE,
YES = TRUE
} SDBOOL;
/*---------------------- Typedefs ---------------------*/
#ifndef bool
typedef unsigned char bool;
#endif
#define BLOCKEQ0 0L
#define _SDTYPES_H_
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -