see changelog
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
19990711-20:25 Ryszard Glab <rglab@imid.med.pl>
|
||||
19990711-21:15 Eddie Runia <eddie@runia.com>
|
||||
* include/hbdefs.h; include/extend.h; source/rtl/codebloc.c;
|
||||
source/rtl/memvars.c
|
||||
HANDLE changed to HB_HANDLE
|
||||
|
||||
19990711-20:25 Ryszard Glab <rglab@imid.med.pl>
|
||||
* include/init.h
|
||||
* all functions and variables declared in this file have to be 'static'
|
||||
|
||||
@@ -8,8 +12,6 @@
|
||||
symbols table initialization only when strict ANSI C compiler
|
||||
is used.
|
||||
|
||||
19990711-20:25 Ryszard Glab <rglab@imid.med.pl>
|
||||
|
||||
* include/extend.h
|
||||
+ added HB_VALUE structure for storing memvars and detached locals
|
||||
+ added hb_struMemvar used in HB_ITEM structure
|
||||
|
||||
@@ -292,9 +292,9 @@ PDYNSYM NewDynSym( PSYMBOL pSymbol ); /* creates a new dynamic symbol based on
|
||||
PDYNSYM FindDynSym( char * szName ); /* finds a dynamic symbol */
|
||||
|
||||
/* functions for memvar variables */
|
||||
HANDLE hb_GlobalValueNew( PHB_ITEM );
|
||||
void hb_GlobalValueIncRef( HANDLE );
|
||||
void hb_GlobalValueDecRef( HANDLE );
|
||||
HB_HANDLE hb_GlobalValueNew( PHB_ITEM );
|
||||
void hb_GlobalValueIncRef( HB_HANDLE );
|
||||
void hb_GlobalValueDecRef( HB_HANDLE );
|
||||
HB_VALUE_PTR * hb_GlobalValueBaseAddress( void );
|
||||
|
||||
#endif /* HB_EXTEND_H_ */
|
||||
|
||||
@@ -43,8 +43,7 @@ typedef int BOOL;
|
||||
#undef PVOID
|
||||
typedef void * PVOID;
|
||||
|
||||
#undef HANDLE
|
||||
typedef USHORT HANDLE;
|
||||
typedef USHORT HB_HANDLE;
|
||||
|
||||
#define LOBYTE(w) ((BYTE)(w))
|
||||
#define HIBYTE(w) ((BYTE)(((WORD)(w) >> 8) & 0xFF))
|
||||
|
||||
@@ -76,7 +76,7 @@ HB_CODEBLOCK_PTR hb_CodeblockNew( BYTE * pBuffer,
|
||||
*/
|
||||
WORD w = 0;
|
||||
PHB_ITEM pLocal;
|
||||
HANDLE hGlobal;
|
||||
HB_HANDLE hGlobal;
|
||||
|
||||
/* Create a table that will store the values of local variables
|
||||
* accessed in a codeblock
|
||||
|
||||
@@ -80,10 +80,10 @@ HB_VALUE_PTR *hb_GlobalValueBaseAddress( void )
|
||||
* handle to variable memory or fails
|
||||
*
|
||||
*/
|
||||
HANDLE hb_GlobalValueNew( HB_ITEM_PTR pSource )
|
||||
HB_HANDLE hb_GlobalValueNew( HB_ITEM_PTR pSource )
|
||||
{
|
||||
HB_VALUE_PTR pValue;
|
||||
HANDLE hValue;
|
||||
HB_HANDLE hValue;
|
||||
|
||||
if( ! _globalTable )
|
||||
{
|
||||
@@ -154,7 +154,7 @@ HANDLE hb_GlobalValueNew( HB_ITEM_PTR pSource )
|
||||
* This function increases the number of references to passed global value
|
||||
*
|
||||
*/
|
||||
void hb_GlobalValueIncRef( HANDLE hValue )
|
||||
void hb_GlobalValueIncRef( HB_HANDLE hValue )
|
||||
{
|
||||
#ifdef MEMVARDEBUG
|
||||
if( hValue < 0 || hValue > _globalTableSize )
|
||||
@@ -176,7 +176,7 @@ void hb_GlobalValueIncRef( HANDLE hValue )
|
||||
* If it is the last reference then this value is deleted.
|
||||
*
|
||||
*/
|
||||
void hb_GlobalValueDecRef( HANDLE hValue )
|
||||
void hb_GlobalValueDecRef( HB_HANDLE hValue )
|
||||
{
|
||||
HB_VALUE_PTR pValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user