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

📄 typedefs.h

📁 This is an implementation of double-array structure for representing trie, as proposed by Junichi A
💻 H
字号:
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- *//* * typedefs.h - general types * Created : 11 Aug 2006 * Author  : Theppitak Karoonboonyanan <thep@linux.thai.net> */#ifndef __TYPEDEFS_H#define __TYPEDEFS_H#include <limits.h>typedef enum { FALSE = 0, TRUE = 1 } Bool;# if UCHAR_MAX == 0xff#   ifndef UINT8_TYPEDEF#     define UINT8_TYPEDEF      typedef unsigned char  uint8;#   endif /* UINT8_TYPEDEF */# endif /* UCHAR_MAX */# if SCHAR_MAX == 0x7f#   ifndef INT8_TYPEDEF#     define INT8_TYPEDEF      typedef signed char    int8;#   endif /* INT8_TYPEDEF */# endif /* SCHAR_MAX */# if UINT_MAX == 0xffff#   ifndef UINT16_TYPEDEF#     define UINT16_TYPEDEF      typedef unsigned int   uint16;#   endif /* UINT16_TYPEDEF */# endif /* UINT_MAX */# if INT_MAX == 0x7fff#   ifndef INT16_TYPEDEF#     define INT16_TYPEDEF      typedef int            int16;#   endif /* INT16_TYPEDEF */# endif /* INT_MAX */# if USHRT_MAX == 0xffff#   ifndef UINT16_TYPEDEF#     define UINT16_TYPEDEF      typedef unsigned short uint16;#   endif /* UINT16_TYPEDEF */# endif /* USHRT_MAX */# if SHRT_MAX == 0x7fff#   ifndef INT16_TYPEDEF#     define INT16_TYPEDEF      typedef short          int16;#   endif /* INT16_TYPEDEF */# endif /* SHRT_MAX */# if UINT_MAX == 0xffffffff#   ifndef UINT32_TYPEDEF#     define UINT32_TYPEDEF      typedef unsigned int   uint32;#   endif /* UINT32_TYPEDEF */# endif /* UINT_MAX */# if INT_MAX == 0x7fffffff#   ifndef INT32_TYPEDEF#     define INT32_TYPEDEF      typedef int            int32;#   endif /* INT32_TYPEDEF */# endif /* INT_MAX */# if ULONG_MAX == 0xffffffff#   ifndef UINT32_TYPEDEF#     define UINT32_TYPEDEF      typedef unsigned long  uint32;#   endif /* UINT32_TYPEDEF */# endif /* ULONG_MAX */# if LONG_MAX == 0x7fffffff#   ifndef INT32_TYPEDEF#     define INT32_TYPEDEF      typedef long           int32;#   endif /* INT32_TYPEDEF */# endif /* LONG_MAX */# ifndef UINT8_TYPEDEF#   error "uint8 type is undefined!"# endif# ifndef INT8_TYPEDEF#   error "int8 type is undefined!"# endif# ifndef UINT16_TYPEDEF#   error "uint16 type is undefined!"# endif# ifndef INT16_TYPEDEF#   error "int16 type is undefined!"# endif# ifndef UINT32_TYPEDEF#   error "uint32 type is undefined!"# endif# ifndef INT32_TYPEDEF#   error "int32 type is undefined!"# endiftypedef uint8  byte;typedef uint16 word;typedef uint32 dword;#endif /* __TYPEDEFS_H *//*vi:ts=4:ai:expandtab*/

⌨️ 快捷键说明

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