📄 contain.h
字号:
/* * contain.h * * Low level object and container definitions. * * Portable Windows Library * * Copyright (c) 1993-1998 Equivalence Pty. Ltd. * * The contents of this file are subject to the Mozilla Public License * Version 1.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See * the License for the specific language governing rights and limitations * under the License. * * The Original Code is Portable Windows Library. * * The Initial Developer of the Original Code is Equivalence Pty. Ltd. * * Portions are Copyright (C) 1993 Free Software Foundation, Inc. * All Rights Reserved. * * Contributor(s): ______________________________________. * * $Log: contain.h,v $ * Revision 1.13 1999/05/01 11:29:19 robertj * Alpha linux port changes. * * Revision 1.12 1999/01/08 01:27:43 robertj * Moved include of pmachdep to earlier in inclusions. * * Revision 1.11 1998/11/30 22:06:35 robertj * New directory structure. * * Revision 1.10 1998/11/03 10:56:33 robertj * Removed unused extern for PErrorStream * * Revision 1.9 1998/09/24 04:11:31 robertj * Added open software license. * */#ifndef _PCONTAIN#define _PCONTAIN#include "pmachdep.h"#include <unistd.h>#include <ctype.h>/////////////////////////////////////////////// define TRUE and FALSE for environments that don't have them//#ifndef TRUE#define TRUE 1#define FALSE 0#endif/////////////////////////////////////////////// define a macro for declaring classes so we can bolt// extra things to class declarations//#define PEXPORT#define PSTATIC/////////////////////////////////////////////// define some basic types and their limits//typedef int BOOL;typedef unsigned char BYTE; // 1 bytetypedef signed short PInt16; // 16 bittypedef unsigned short WORD;typedef signed int PInt32; // 32 bittypedef unsigned int DWORD;#ifndef P_NEEDS_INT64typedef signed long long int PInt64;typedef unsigned long long int PUInt64; // 64 bit#endif// Integer type that is same size as a pointer type.#ifdef P_64BITtypedef long INT;#elsetypedef int INT;#endiftypedef size_t PINDEX;#define P_MAX_INDEX 0x7fffffff#define PABSINDEX(idx) (idx) // careful - size_t may be signed!#define PASSERTINDEX(idx)/////////////////////////////////////////////// include common declarations//#include "../../contain.h"#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -