You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

54 lines
1.4 KiB

/*
* Turbo Vision - Version 2.0
*
* Copyright (c) 1994 by Borland International
* All Rights Reserved.
*
Modified by Robert H”hne to be used for RHIDE.
Modified by Salvador E. Tropea to compile for 64 bits architectures.
*
*
*/
/* ------------------------------------------------------------------------*/
/* */
/* class TStreamableClass */
/* */
/* Used internally by TStreamableTypes and pstream. */
/* */
/* ------------------------------------------------------------------------*/
#if defined( Uses_TStreamableClass ) && !defined( __TStreamableClass )
#define __TStreamableClass
#include <limits.h>
const P_id_type P_id_notFound = UINT_MAX;
typedef TStreamable *(*BUILDER)();
//#define __DELTA( d ) (FP_OFF((TStreamable *)(d *)1)-1)
#define __DELTA( d ) ((long)((TStreamable *)(d *)1)-1)
class TStreamableClass
{
friend class TStreamableTypes;
friend class opstream;
friend class ipstream;
public:
TStreamableClass( const char *n, BUILDER b, int d );
private:
const char *name;
BUILDER build;
int delta;
};
#endif // Uses_TStreamableClass