2009-07-14 12:25 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/source/rtl/gtcrs/gtcrs.c
  * harbour/source/rtl/gttrm/gttrm.c
    * updated to compile with DJGPP 2.03
This commit is contained in:
Przemyslaw Czerpak
2009-07-14 10:25:46 +00:00
parent 61962be0dd
commit df06dd542d
3 changed files with 18 additions and 3 deletions

View File

@@ -17,6 +17,11 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-07-14 12:25 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtcrs/gtcrs.c
* harbour/source/rtl/gttrm/gttrm.c
* updated to compile with DJGPP 2.03
2009-07-14 12:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/extend.c
! Fixed hb_parvcx() to return "" instead of NULL when dealing

View File

@@ -60,13 +60,15 @@ static HB_GT_FUNCS SuperTable;
#define HB_GTSUPER (&SuperTable)
#define HB_GTID_PTR (&s_GtId)
static volatile BOOL s_SignalTable[MAX_SIGNO];
#if defined( SA_NOCLDSTOP ) && defined( SA_RESTART ) && defined( SIGCHLD )
static volatile BOOL s_SignalFlag = FALSE;
/* this variable should be global and checked in main VM loop */
static volatile BOOL s_BreakFlag = FALSE;
static volatile BOOL s_InetrruptFlag = FALSE;
#endif
static volatile BOOL s_WinSizeChangeFlag = FALSE;
static volatile BOOL s_SignalFlag = FALSE;
static volatile BOOL s_SignalTable[MAX_SIGNO];
static int s_iStdIn, s_iStdOut, s_iStdErr;
@@ -1738,6 +1740,7 @@ static int gt_getsize( InOutBase * ioBase, int *rows, int *cols )
*rows = *cols = 0;
#if defined( TIOCGWINSZ )
if ( isatty( ioBase->base_outfd ) )
{
struct winsize win;
@@ -1748,6 +1751,8 @@ static int gt_getsize( InOutBase * ioBase, int *rows, int *cols )
*cols = win.ws_col;
}
}
#endif
if ( *rows <= 0 || *cols <= 0 )
{
char *env;
@@ -1809,6 +1814,7 @@ static int gt_setsize( InOutBase * ioBase, int rows, int cols )
s_WinSizeChangeFlag = FALSE;
ret = gt_resize( ioBase );
}
#if defined( TIOCGWINSZ )
else if ( isatty( ioBase->base_outfd ) )
{
struct winsize win;
@@ -1821,6 +1827,7 @@ static int gt_setsize( InOutBase * ioBase, int rows, int cols )
}
ret = gt_resize( ioBase );
}
#endif
}
return ret;

View File

@@ -393,6 +393,8 @@ typedef struct _HB_GTTRM
/* static variables use by signal handler */
#if defined( HB_OS_UNIX_COMPATIBLE ) || defined( __DJGPP__ )
static volatile BOOL s_WinSizeChangeFlag = FALSE;
#endif
#if defined( HB_OS_UNIX_COMPATIBLE ) && defined( SA_NOCLDSTOP )
static volatile BOOL s_fRestTTY = FALSE;
#endif
@@ -661,7 +663,8 @@ static int hb_gt_trm_getSize( PHB_GTTRM pTerm, int * piRows, int * piCols )
{
*piRows = *piCols = 0;
#if defined( HB_OS_UNIX_COMPATIBLE ) || defined( __DJGPP__ )
#if ( defined( HB_OS_UNIX_COMPATIBLE ) || defined( __DJGPP__ ) ) && \
defined( TIOCGWINSZ )
if( pTerm->fOutTTY )
{
struct winsize win;