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

📄 mmtypes.h

📁 mmstatd包含一个 C库和服务器
💻 H
字号:
/* $Id: mmtypes.h,v 1.2 2003/01/01 14:54:11 mmondor Exp $ *//* * Copyright (C) 2000-2003, Matthew Mondor * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *      This product includes software written by Matthew Mondor. * 4. The name of Matthew Mondor may not be used to endorse or promote *    products derived from this software without specific prior written *    permission. * * THIS SOFTWARE IS PROVIDED BY MATTHEW MONDOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL MATTHEW MONDOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */#ifndef MM_TYPES_H#define MM_TYPES_H/* These were mostly used on Amiga */typedef signed char BYTE;typedef unsigned char UBYTE;typedef signed short WORD;typedef unsigned short UWORD;typedef signed long LONG;typedef unsigned long ULONG;typedef signed long long DLONG;typedef signed long long QUAD;typedef unsigned long long UDLONG;typedef unsigned long long UQUAD;typedef float FLOAT;typedef double DOUBLE;typedef int BOOL;typedef void VOID;/* These consist of the Xisop types */typedef signed char int8;typedef unsigned char uint8;typedef signed short int16;typedef unsigned short uint16;typedef signed long int32;typedef unsigned long uint32;typedef signed long long int64;typedef unsigned long long uint64;typedef int bool;#ifndef NULL#define NULL		(0L)#endif#ifndef TRUE#define TRUE		/* CONSTCOND */(1)#endif#ifndef FALSE#define FALSE		/* CONSTCOND */(0)#endif#ifndef _SYS_TYPES_H_#ifndef __GLIBC__typedef unsigned long size_t;#endif#endif#ifdef __GLIBC__typedef unsigned long useconds_t;#endif#define MMCOPYRIGHT(x)	static const char mmcopyright[] = x#define MMRCSID(x)	static const char mmrcsid[] = x/* This is only currently being used in mmlib/mmstring.c for mm_mem*(). * ARCH_INTn should specify the number of bits held in a standard int. * It may be useful to define ARCH_LOWCACHE if unrolling loops is not wanted * for a particular architecture (slow memory, no instruction cache, etc). *//*#define ARCH_INT8#define ARCH_INT16#define ARCH_INT32#define ARCH_INT64*/#define ARCH_INT32/*#define ARCH_LOWCACHE*//* Useful to o-align a value relative to v (sizes and pointers) */#define MMALIGN_CEIL(v, o) ((long)v + (sizeof(o) - ((long)v % sizeof(o))))#define MMALIGN_FLOOR(v, o) ((long)v - ((long)v % sizeof(o)))#endif

⌨️ 快捷键说明

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