ChangeLogTag:Tue May 11 18:53:43 1999 Gonzalo A. Diethelm <Gonzalo.Diethelm@jda.cl>

This commit is contained in:
Gonzalo A. Diethelm
1999-05-11 23:51:07 +00:00
parent af595046da
commit f06e46c342
11 changed files with 74 additions and 13 deletions

View File

@@ -1,3 +1,33 @@
Tue May 11 18:53:43 1999 Gonzalo A. Diethelm <Gonzalo.Diethelm@jda.cl>
* Makefile:
Added obj to the list of directories.
* source/Makefile:
Added rdd to the list of directories.
* source/rtl/Makefile:
Added gtapi.c to the list of C sources.
* source/rtl/gtapi.c:
Got rid of two warnings with gcc.
* source/rtl/environ.c:
Made sure it compiles with gcc.
There was a missing #endif.
* source/tools/stringp.prg:
* tests/working/debugtst.prg:
Replaced Debug() with HBDebug(), otherwise the generated C source
collides with the macro DEBUG.
* source/vm/hvm.c:
Corrected a comment.
* source/rdd/Makefile:
* obj/Makefile:
Added these two Makefiles.
19990511-19:20 Eddie Runia
* source/rtl/classes.c
(Default) parameter self added to INLINE methods

View File

@@ -6,6 +6,7 @@ ROOT = ./
DIRS=\
source \
obj \
tests \
include $(ROOT)config/dir.cf

7
harbour/obj/Makefile Normal file
View File

@@ -0,0 +1,7 @@
#
# $Id$
#
ROOT = ../
include $(TOP)$(ROOT)config/dir.cf

View File

@@ -8,6 +8,7 @@ DIRS=\
compiler \
rtl \
vm \
rdd \
tools \
include $(ROOT)config/dir.cf

View File

@@ -0,0 +1,7 @@
#
# $Id$
#
ROOT = ../../
include $(TOP)$(ROOT)config/dir.cf

View File

@@ -14,6 +14,7 @@ C_SOURCES=\
errorapi.c \
extend.c \
files.c \
gtapi.c \
itemapi.c \
math.c \
set.c \

View File

@@ -6,6 +6,12 @@
HARBOUR OS()
{
#ifdef __GNUC__
_retc("UNKNOWN");
#else
/* TODO: add MSVC support but MSVC cannot detect any OS except Windows! */
#if defined(__TURBOC__) || defined(__BORLANDC__)
@@ -57,6 +63,8 @@ HARBOUR OS()
_retc("OS/2");
}
#endif /* WATCOMC */
/* TODO: get Windows version (major, minor) */
/* detect Windows */
regs.w.ax = 0x160A;
@@ -90,6 +98,8 @@ HARBOUR OS()
/* TODO: detect other OSes */
/* TODO: detect MS-DOS version */
_retc("MS-DOS");
#endif /* __GNUC__ */
}
HARBOUR VERSION()

View File

@@ -37,6 +37,8 @@ int _gtMaxCol( void )
gettextinfo( &ti );
return ti.screenwidth;
#else
return 0;
#endif
}
@@ -47,6 +49,8 @@ int _gtMaxRow( void )
gettextinfo( &ti );
return ti.screenheight;
#else
return 0;
#endif
}

View File

@@ -106,12 +106,12 @@ function ToChar( xTxt, cSeparator, lDebug )
return cOut
//
// <xItem> Debug ( <xItem> )
// <xItem> HBDebug ( <xItem> )
//
// Non-volatile debugging function showing contents of xItem and returing
// passed argument.
//
function Debug( xItem )
function HBDebug( xItem )
QOut( ToChar( xItem, ", ", .T. ) )

View File

@@ -107,7 +107,7 @@ void StackPop( void ); /* pops an item from the stack */
void StackFree( void ); /* releases all memory used by the stack */
void StackPush( void ); /* pushes an item on to the stack */
void StackInit( void ); /* initializes the stack */
void StackShow( void ); /* show the types of the items on the stack for HBDEBUGging purposes */
void StackShow( void ); /* show the types of the items on the stack for debugging purposes */
PCODEBLOCK CodeblockNew( BYTE *, WORD, PSYMBOL, int, WORD );
void CodeblockDelete( PCODEBLOCK );

View File

@@ -18,7 +18,7 @@ function Main()
QOut( "-OBJECT additions-" )
QOut( "What is in oForm ? " )
Debug( oForm:Transfer() )
HBDebug( oForm:Transfer() )
QOut( "Does transfer exists ? ", IsMessage( oForm, "Transfer" ) )
QOut( "Is transfer DATA ? ", IsData ( oForm, "Transfer" ) )
@@ -32,23 +32,23 @@ function Main()
QOut( "Set nLeft to 50 and nRight to 100" )
oForm:Transfer( {"nLeft", 50}, {"nRight", 100} )
Debug( oForm:Transfer() )
HBDebug( oForm:Transfer() )
Pause()
QOut( "-DEBUG Functions-")
QOut( "-Statics-" )
Debug( __aStatic() )
HBDebug( __aStatic() )
QOut( "-Global Stack-" )
Debug ( __aGlobalStack() )
HBDebug ( __aGlobalStack() )
QOut( "-Local Stack-" )
Debug ( __aStack() )
HBDebug ( __aStack() )
QOut( "-Parameters-" )
Debug ( __aParam() )
HBDebug ( __aParam() )
Pause()
@@ -73,19 +73,19 @@ function FuncSecond( nParam, cParam, uParam )
QOut()
QOut( "-Statics-" )
Debug ( __aStatic() )
HBDebug ( __aStatic() )
QOut()
QOut( "-Global Stack- Len=", __GlobalStackLen() )
Debug ( __aGlobalStack() )
HBDebug ( __aGlobalStack() )
QOut()
QOut( "-Local Stack- Len=", __StackLen() )
xStack := Debug ( __aStack() )
xStack := HBDebug ( __aStack() )
QOut()
QOut( "-Parameters-" )
xParam := Debug( __aParam() )
xParam := HBDebug( __aParam() )
if xParam[ xStack[ 7 ] ] == "Hello"
QOut( ":-)" )
endif