📄 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>
// VXWORKS Declaration for platform independent architectures : added by Jurjan
#if defined(P_VXWORKS)
//typedef signed int int32; // 32 bit
#define PCHAR8 PANSI_CHAR
#define PBYTE_ORDER PLITTLE_ENDIAN
//#define PBYTE_ORDER PBIG_ENDIAN
class ostream;
class istream;
ostream & operator<<(ostream & s, long double n);
istream & operator>>(istream & s, long double n);
#endif
///////////////////////////////////////////
//
// 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 byte
typedef signed short PInt16; // 16 bit
typedef unsigned short WORD;
typedef signed int PInt32; // 32 bit
typedef unsigned int DWORD;
#ifndef P_NEEDS_INT64
typedef 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_64BIT
typedef long INT;
#else
typedef int INT;
#endif
typedef 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 + -