2007-10-17 11:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* common.mak
* source/rtl/Makefile
* source/rtl/oemansi.c
+ source/rtl/oemansix.c
* source/rtl/typefile.prg
+ source/rtl/typefilx.prg
* source/rdd/Makefile
* source/rdd/dbjoin.prg
+ source/rdd/dbjoinx.prg
* source/rdd/dblist.prg
+ source/rdd/dblistx.prg
* source/rdd/dbtotal.prg
+ source/rdd/dbtotalx.prg
* source/rdd/dbstrux.prg
+ source/rdd/dbstruxx.prg
* source/rdd/dbfuncs.prg
+ source/rdd/dbfuncsx.prg
* source/rdd/dbsort.prg
+ source/rdd/dbsortx.prg
* source/rdd/dbcmd.c
+ source/rdd/dbcmdx.c
* source/rdd/dbupdat.prg
+ source/rdd/dbupdatx.prg
+ Moved XPP compatible functions into separated source files.
This commit is contained in:
@@ -8,6 +8,32 @@
|
||||
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
|
||||
*/
|
||||
|
||||
2007-10-17 11:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* common.mak
|
||||
* source/rtl/Makefile
|
||||
* source/rtl/oemansi.c
|
||||
+ source/rtl/oemansix.c
|
||||
* source/rtl/typefile.prg
|
||||
+ source/rtl/typefilx.prg
|
||||
* source/rdd/Makefile
|
||||
* source/rdd/dbjoin.prg
|
||||
+ source/rdd/dbjoinx.prg
|
||||
* source/rdd/dblist.prg
|
||||
+ source/rdd/dblistx.prg
|
||||
* source/rdd/dbtotal.prg
|
||||
+ source/rdd/dbtotalx.prg
|
||||
* source/rdd/dbstrux.prg
|
||||
+ source/rdd/dbstruxx.prg
|
||||
* source/rdd/dbfuncs.prg
|
||||
+ source/rdd/dbfuncsx.prg
|
||||
* source/rdd/dbsort.prg
|
||||
+ source/rdd/dbsortx.prg
|
||||
* source/rdd/dbcmd.c
|
||||
+ source/rdd/dbcmdx.c
|
||||
* source/rdd/dbupdat.prg
|
||||
+ source/rdd/dbupdatx.prg
|
||||
+ Moved XPP compatible functions into separated source files.
|
||||
|
||||
2007-10-17 00:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* contrib/Makefile
|
||||
+ contrib/win32prn/Makefile
|
||||
|
||||
@@ -471,6 +471,7 @@ RTL_LIB_OBJS = \
|
||||
$(OBJ_DIR)\natmsg$(OBJEXT) \
|
||||
$(OBJ_DIR)\net$(OBJEXT) \
|
||||
$(OBJ_DIR)\oemansi$(OBJEXT) \
|
||||
$(OBJ_DIR)\oemansix$(OBJEXT) \
|
||||
$(OBJ_DIR)\oldbox$(OBJEXT) \
|
||||
$(OBJ_DIR)\oldclear$(OBJEXT) \
|
||||
$(OBJ_DIR)\pad$(OBJEXT) \
|
||||
@@ -588,6 +589,7 @@ RTL_LIB_OBJS = \
|
||||
$(OBJ_DIR)\ttextlin$(OBJEXT) \
|
||||
$(OBJ_DIR)\ttopbar$(OBJEXT) \
|
||||
$(OBJ_DIR)\typefile$(OBJEXT) \
|
||||
$(OBJ_DIR)\typefilx$(OBJEXT) \
|
||||
$(OBJ_DIR)\valtoexp$(OBJEXT) \
|
||||
$(OBJ_DIR)\wait$(OBJEXT) \
|
||||
|
||||
@@ -777,6 +779,7 @@ CODEPAGE_LIB_OBJS = \
|
||||
|
||||
RDD_LIB_OBJS = \
|
||||
$(OBJ_DIR)\dbcmd$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbcmdx$(OBJEXT) \
|
||||
$(OBJ_DIR)\hbdbsort$(OBJEXT) \
|
||||
$(OBJ_DIR)\workarea$(OBJEXT) \
|
||||
$(OBJ_DIR)\wacore$(OBJEXT) \
|
||||
@@ -790,12 +793,19 @@ RDD_LIB_OBJS = \
|
||||
$(OBJ_DIR)\dbdelim$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbsdf$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbjoin$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbjoinx$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbtotal$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbtotalx$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbfuncs$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbfuncsx$(OBJEXT) \
|
||||
$(OBJ_DIR)\dblist$(OBJEXT) \
|
||||
$(OBJ_DIR)\dblistx$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbsort$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbsortx$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbstrux$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbstruxx$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbupdat$(OBJEXT) \
|
||||
$(OBJ_DIR)\dbupdatx$(OBJEXT) \
|
||||
$(OBJ_DIR)\rddord$(OBJEXT) \
|
||||
$(OBJ_DIR)\rddsys$(OBJEXT) \
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ ROOT = ../../
|
||||
|
||||
C_SOURCES=\
|
||||
dbcmd.c \
|
||||
dbcmdx.c \
|
||||
workarea.c \
|
||||
wacore.c \
|
||||
wafunc.c \
|
||||
@@ -19,16 +20,23 @@ C_SOURCES=\
|
||||
PRG_SOURCES=\
|
||||
dbdelim.prg \
|
||||
dbfuncs.prg \
|
||||
dbfuncsx.prg \
|
||||
dbjoin.prg \
|
||||
dbtotal.prg \
|
||||
dbjoinx.prg \
|
||||
dblist.prg \
|
||||
dblistx.prg \
|
||||
dbsdf.prg \
|
||||
dbsort.prg \
|
||||
dbsortx.prg \
|
||||
dbstrux.prg \
|
||||
dbstruxx.prg \
|
||||
dbtotal.prg \
|
||||
dbtotalx.prg \
|
||||
dbupdat.prg \
|
||||
dbupdatx.prg \
|
||||
rddord.prg \
|
||||
rddsys.prg \
|
||||
|
||||
|
||||
ifeq ($(HB_MT),MT)
|
||||
MT_LIBNAME=rddmt
|
||||
endif
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* The following functions are added by
|
||||
* Horacio Roldan <harbour_ar@yahoo.com.ar>
|
||||
@@ -1715,61 +1716,6 @@ HB_FUNC( ORDCOUNT )
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
HB_FUNC( ORDWILDSEEK )
|
||||
{
|
||||
AREAP pArea = ( AREAP ) hb_rddGetCurrentWorkAreaPointer();
|
||||
|
||||
if( pArea )
|
||||
{
|
||||
char * szPattern = hb_parc( 1 );
|
||||
|
||||
if( szPattern )
|
||||
{
|
||||
BOOL fCont = hb_parl( 2 ), fBack = hb_parl( 3 ), fFound = FALSE;
|
||||
DBORDERINFO OrderInfo;
|
||||
ERRCODE errCode = SUCCESS;
|
||||
|
||||
memset( &OrderInfo, 0, sizeof( DBORDERINFO ) );
|
||||
OrderInfo.itmResult = hb_itemNew( NULL );
|
||||
|
||||
if( !fCont )
|
||||
{
|
||||
char * szKey;
|
||||
|
||||
if( fBack )
|
||||
errCode = SELF_GOBOTTOM( pArea );
|
||||
else
|
||||
errCode = SELF_GOTOP( pArea );
|
||||
|
||||
if( errCode == SUCCESS )
|
||||
{
|
||||
errCode = SELF_ORDINFO( pArea, DBOI_KEYVAL, &OrderInfo );
|
||||
if( errCode == SUCCESS )
|
||||
{
|
||||
szKey = hb_itemGetCPtr( OrderInfo.itmResult );
|
||||
fFound = hb_strMatchWild( szKey, szPattern );
|
||||
}
|
||||
}
|
||||
}
|
||||
if( !fFound && errCode == SUCCESS )
|
||||
{
|
||||
OrderInfo.itmNewVal = hb_param( 1, HB_IT_STRING );
|
||||
if( SELF_ORDINFO( pArea, fBack ? DBOI_SKIPWILDBACK : DBOI_SKIPWILD,
|
||||
&OrderInfo ) == SUCCESS )
|
||||
fFound = hb_itemGetL( OrderInfo.itmResult );
|
||||
}
|
||||
hb_itemRelease( OrderInfo.itmResult );
|
||||
hb_retl( fFound );
|
||||
}
|
||||
else
|
||||
hb_errRT_DBCMD( EG_ARG, EDBCMD_DBFILEPUTBADPARAMETER, NULL, "ORDWILDSEEK" );
|
||||
}
|
||||
else
|
||||
hb_errRT_DBCMD( EG_NOTABLE, EDBCMD_NOTABLE, NULL, "ORDWILDSEEK" );
|
||||
}
|
||||
#endif
|
||||
|
||||
HB_FUNC( ORDLISTADD )
|
||||
{
|
||||
AREAP pArea = ( AREAP ) hb_rddGetCurrentWorkAreaPointer();
|
||||
@@ -2692,62 +2638,3 @@ HB_FUNC( __RDDGETTEMPALIAS )
|
||||
else
|
||||
hb_ret();
|
||||
}
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
HB_FUNC( DBSKIPPER )
|
||||
{
|
||||
AREAP pArea = ( AREAP ) hb_rddGetCurrentWorkAreaPointer();
|
||||
|
||||
if( pArea )
|
||||
{
|
||||
LONG lSkipped = 0;
|
||||
LONG lRecs = 1;
|
||||
BOOL fBEof;
|
||||
ULONG ulRecords = 0;
|
||||
|
||||
if( SELF_RECCOUNT( pArea, &ulRecords ) == SUCCESS && ulRecords > 0 )
|
||||
{
|
||||
if( ISNUM( 1 ) )
|
||||
lRecs = hb_parnl( 1 ) ;
|
||||
|
||||
if( lRecs == 0 )
|
||||
SELF_SKIP( pArea, 0 );
|
||||
else if( lRecs > 0 )
|
||||
{
|
||||
if( SELF_EOF( pArea, &fBEof ) == SUCCESS )
|
||||
{
|
||||
while( lSkipped < lRecs )
|
||||
{
|
||||
if( SELF_SKIP( pArea, 1 ) != SUCCESS )
|
||||
break;
|
||||
if( SELF_EOF( pArea, &fBEof ) != SUCCESS )
|
||||
break;
|
||||
if( fBEof )
|
||||
{
|
||||
SELF_SKIP( pArea, -1 );
|
||||
break;
|
||||
}
|
||||
lSkipped++;
|
||||
}
|
||||
}
|
||||
}
|
||||
else /* if( lRecs < 0 ) */
|
||||
{
|
||||
while( lSkipped > lRecs )
|
||||
{
|
||||
if( SELF_SKIP( pArea, -1 ) != SUCCESS )
|
||||
break;
|
||||
if( SELF_BOF( pArea, &fBEof ) != SUCCESS )
|
||||
break;
|
||||
if( fBEof )
|
||||
break;
|
||||
lSkipped--;
|
||||
}
|
||||
}
|
||||
}
|
||||
hb_retnl( lSkipped );
|
||||
}
|
||||
else
|
||||
hb_errRT_DBCMD( EG_NOTABLE, EDBCMD_NOTABLE, NULL, "DBSKIPPER" );
|
||||
}
|
||||
#endif
|
||||
|
||||
171
harbour/source/rdd/dbcmdx.c
Normal file
171
harbour/source/rdd/dbcmdx.c
Normal file
@@ -0,0 +1,171 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* Base RDD module (XPP functions)
|
||||
*
|
||||
* Copyright 1999 Bruno Cantero <bruno@issnet.net>
|
||||
* Copyright 2004-2007 Przemyslaw Czerpak <druzus / at / priv.onet.pl>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbapirdd.h"
|
||||
#include "hbapierr.h"
|
||||
#include "hbapiitm.h"
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
HB_FUNC( ORDWILDSEEK )
|
||||
{
|
||||
AREAP pArea = ( AREAP ) hb_rddGetCurrentWorkAreaPointer();
|
||||
|
||||
if( pArea )
|
||||
{
|
||||
char * szPattern = hb_parc( 1 );
|
||||
|
||||
if( szPattern )
|
||||
{
|
||||
BOOL fCont = hb_parl( 2 ), fBack = hb_parl( 3 ), fFound = FALSE;
|
||||
DBORDERINFO OrderInfo;
|
||||
ERRCODE errCode = SUCCESS;
|
||||
|
||||
memset( &OrderInfo, 0, sizeof( DBORDERINFO ) );
|
||||
OrderInfo.itmResult = hb_itemNew( NULL );
|
||||
|
||||
if( !fCont )
|
||||
{
|
||||
char * szKey;
|
||||
|
||||
if( fBack )
|
||||
errCode = SELF_GOBOTTOM( pArea );
|
||||
else
|
||||
errCode = SELF_GOTOP( pArea );
|
||||
|
||||
if( errCode == SUCCESS )
|
||||
{
|
||||
errCode = SELF_ORDINFO( pArea, DBOI_KEYVAL, &OrderInfo );
|
||||
if( errCode == SUCCESS )
|
||||
{
|
||||
szKey = hb_itemGetCPtr( OrderInfo.itmResult );
|
||||
fFound = hb_strMatchWild( szKey, szPattern );
|
||||
}
|
||||
}
|
||||
}
|
||||
if( !fFound && errCode == SUCCESS )
|
||||
{
|
||||
OrderInfo.itmNewVal = hb_param( 1, HB_IT_STRING );
|
||||
if( SELF_ORDINFO( pArea, fBack ? DBOI_SKIPWILDBACK : DBOI_SKIPWILD,
|
||||
&OrderInfo ) == SUCCESS )
|
||||
fFound = hb_itemGetL( OrderInfo.itmResult );
|
||||
}
|
||||
hb_itemRelease( OrderInfo.itmResult );
|
||||
hb_retl( fFound );
|
||||
}
|
||||
else
|
||||
hb_errRT_DBCMD( EG_ARG, EDBCMD_DBFILEPUTBADPARAMETER, NULL, "ORDWILDSEEK" );
|
||||
}
|
||||
else
|
||||
hb_errRT_DBCMD( EG_NOTABLE, EDBCMD_NOTABLE, NULL, "ORDWILDSEEK" );
|
||||
}
|
||||
|
||||
HB_FUNC( DBSKIPPER )
|
||||
{
|
||||
AREAP pArea = ( AREAP ) hb_rddGetCurrentWorkAreaPointer();
|
||||
|
||||
if( pArea )
|
||||
{
|
||||
LONG lSkipped = 0;
|
||||
LONG lRecs = 1;
|
||||
BOOL fBEof;
|
||||
ULONG ulRecords = 0;
|
||||
|
||||
if( SELF_RECCOUNT( pArea, &ulRecords ) == SUCCESS && ulRecords > 0 )
|
||||
{
|
||||
if( ISNUM( 1 ) )
|
||||
lRecs = hb_parnl( 1 ) ;
|
||||
|
||||
if( lRecs == 0 )
|
||||
SELF_SKIP( pArea, 0 );
|
||||
else if( lRecs > 0 )
|
||||
{
|
||||
if( SELF_EOF( pArea, &fBEof ) == SUCCESS )
|
||||
{
|
||||
while( lSkipped < lRecs )
|
||||
{
|
||||
if( SELF_SKIP( pArea, 1 ) != SUCCESS )
|
||||
break;
|
||||
if( SELF_EOF( pArea, &fBEof ) != SUCCESS )
|
||||
break;
|
||||
if( fBEof )
|
||||
{
|
||||
SELF_SKIP( pArea, -1 );
|
||||
break;
|
||||
}
|
||||
lSkipped++;
|
||||
}
|
||||
}
|
||||
}
|
||||
else /* if( lRecs < 0 ) */
|
||||
{
|
||||
while( lSkipped > lRecs )
|
||||
{
|
||||
if( SELF_SKIP( pArea, -1 ) != SUCCESS )
|
||||
break;
|
||||
if( SELF_BOF( pArea, &fBEof ) != SUCCESS )
|
||||
break;
|
||||
if( fBEof )
|
||||
break;
|
||||
lSkipped--;
|
||||
}
|
||||
}
|
||||
}
|
||||
hb_retnl( lSkipped );
|
||||
}
|
||||
else
|
||||
hb_errRT_DBCMD( EG_NOTABLE, EDBCMD_NOTABLE, NULL, "DBSKIPPER" );
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -119,22 +119,3 @@ FUNCTION ordSetFocu( xOrder, cFile )
|
||||
|
||||
FUNCTION ordSetRela( xArea, bRelation, cRelation )
|
||||
RETURN ordSetRelation( xArea, bRelation, cRelation )
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION _dbExport( cFile, aFields, bFor, bWhile, nNext, nRecord, lRest, cXPP_Driver, cDelimiter )
|
||||
|
||||
DO CASE
|
||||
CASE cXPP_Driver == "SDFDBE"
|
||||
RETURN __dbCopy( cFile, aFields, bFor, bWhile, nNext, nRecord, lRest, "SDF" )
|
||||
/* Alternate CA-Cl*pper compatible call:
|
||||
RETURN __dbSDF( .T., cFile, aFields, bFor, bWhile, nNext, nRecord, lRest ) */
|
||||
CASE cXPP_Driver == "DELDBE"
|
||||
RETURN __dbCopy( cFile, aFields, bFor, bWhile, nNext, nRecord, lRest, "DELIM", , , cDelimiter )
|
||||
/* Alternate CA-Cl*pper compatible call:
|
||||
RETURN __dbDelim( .T., cFile, cDelimiter, aFields, bFor, bWhile, nNext, nRecord, lRest ) */
|
||||
ENDCASE
|
||||
|
||||
RETURN __dbCopy( cFile, aFields, bFor, bWhile, nNext, nRecord, lRest, cXPP_Driver )
|
||||
|
||||
#endif
|
||||
|
||||
70
harbour/source/rdd/dbfuncsx.prg
Normal file
70
harbour/source/rdd/dbfuncsx.prg
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* XPP compatible _dbExport() function
|
||||
*
|
||||
* Copyright 1999-2007 Viktor Szakats <viktor.szakats@syenar.hu>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION _dbExport( cFile, aFields, bFor, bWhile, nNext, nRecord, lRest, cXPP_Driver, cDelimiter )
|
||||
|
||||
DO CASE
|
||||
CASE cXPP_Driver == "SDFDBE"
|
||||
RETURN __dbCopy( cFile, aFields, bFor, bWhile, nNext, nRecord, lRest, "SDF" )
|
||||
/* Alternate CA-Cl*pper compatible call:
|
||||
RETURN __dbSDF( .T., cFile, aFields, bFor, bWhile, nNext, nRecord, lRest ) */
|
||||
CASE cXPP_Driver == "DELDBE"
|
||||
RETURN __dbCopy( cFile, aFields, bFor, bWhile, nNext, nRecord, lRest, "DELIM", , , cDelimiter )
|
||||
/* Alternate CA-Cl*pper compatible call:
|
||||
RETURN __dbDelim( .T., cFile, cDelimiter, aFields, bFor, bWhile, nNext, nRecord, lRest ) */
|
||||
ENDCASE
|
||||
|
||||
RETURN __dbCopy( cFile, aFields, bFor, bWhile, nNext, nRecord, lRest, cXPP_Driver )
|
||||
|
||||
#endif
|
||||
@@ -169,10 +169,3 @@ STATIC PROCEDURE __doJoinList( aList )
|
||||
ENDIF
|
||||
|
||||
RETURN
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION dbJoin( cAlias, cFile, aFields, bFor )
|
||||
RETURN __dbJoin( cAlias, cFile, aFields, bFor )
|
||||
|
||||
#endif
|
||||
|
||||
58
harbour/source/rdd/dbjoinx.prg
Normal file
58
harbour/source/rdd/dbjoinx.prg
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* XPP compatible dbJoin() function
|
||||
*
|
||||
* Copyright 1999-2007 Viktor Szakats <viktor.szakats@syenar.hu>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION dbJoin( cAlias, cFile, aFields, bFor )
|
||||
RETURN __dbJoin( cAlias, cFile, aFields, bFor )
|
||||
|
||||
#endif
|
||||
@@ -126,10 +126,3 @@ PROCEDURE __dbList( lOff, abEval, lAll, bFor, bWhile, nNext, nRecord, lRest, lTo
|
||||
ENDIF
|
||||
|
||||
RETURN
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION dbList( lOff, abEval, lAll, bFor, bWhile, nNext, nRecord, lRest, lToPrint, cToFileName )
|
||||
RETURN __dbList( abEval, lOff, lAll, bFor, bWhile, nNext, nRecord, lRest, lToPrint, cToFileName )
|
||||
|
||||
#endif
|
||||
|
||||
58
harbour/source/rdd/dblistx.prg
Normal file
58
harbour/source/rdd/dblistx.prg
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* XPP compatible dbList() function
|
||||
*
|
||||
* Copyright 1999-2007 Viktor Szakats <viktor.szakats@syenar.hu>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION dbList( lOff, abEval, lAll, bFor, bWhile, nNext, nRecord, lRest, lToPrint, cToFileName )
|
||||
RETURN __dbList( abEval, lOff, lAll, bFor, bWhile, nNext, nRecord, lRest, lToPrint, cToFileName )
|
||||
|
||||
#endif
|
||||
@@ -91,10 +91,3 @@ FUNCTION __dbSort( cToFileName, aFields, bFor, bWhile, nNext, nRecord, lRest,;
|
||||
ENDIF
|
||||
|
||||
RETURN .T.
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION dbSort( cToFileName, aFields, bFor, bWhile, nNext, nRecord, lRest )
|
||||
RETURN __dbSort( cToFileName, aFields, bFor, bWhile, nNext, nRecord, lRest )
|
||||
|
||||
#endif
|
||||
|
||||
58
harbour/source/rdd/dbsortx.prg
Normal file
58
harbour/source/rdd/dbsortx.prg
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* XPP compatible dbSort() function
|
||||
*
|
||||
* Copyright 1999-2007 Viktor Szakats <viktor.szakats@syenar.hu>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION dbSort( cToFileName, aFields, bFor, bWhile, nNext, nRecord, lRest )
|
||||
RETURN __dbSort( cToFileName, aFields, bFor, bWhile, nNext, nRecord, lRest )
|
||||
|
||||
#endif
|
||||
@@ -189,15 +189,3 @@ FUNCTION __dbStructFilter( aStruct, aFieldList )
|
||||
iif( nIndex == 0, NIL, AAdd( aStructFiltered, aStruct[ nIndex] ) ) } )
|
||||
|
||||
RETURN aStructFiltered
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
/* Identical to __dbCopyStruct() */
|
||||
|
||||
FUNCTION dbCopyStruct( cFileName, aFieldList )
|
||||
RETURN dbCreate( cFileName, __dbStructFilter( dbStruct(), aFieldList ) )
|
||||
|
||||
FUNCTION dbCopyExtStruct( cFileName )
|
||||
RETURN __dbCopyXStruct( cFileName )
|
||||
|
||||
#endif
|
||||
|
||||
63
harbour/source/rdd/dbstruxx.prg
Normal file
63
harbour/source/rdd/dbstruxx.prg
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* XPP compatible dbCopyStruct(), dbCopyExtStruct() functions
|
||||
*
|
||||
* Copyright 1999-2007 Viktor Szakats <viktor.szakats@syenar.hu>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
/* Identical to __dbCopyStruct() */
|
||||
|
||||
FUNCTION dbCopyStruct( cFileName, aFieldList )
|
||||
RETURN dbCreate( cFileName, __dbStructFilter( dbStruct(), aFieldList ) )
|
||||
|
||||
FUNCTION dbCopyExtStruct( cFileName )
|
||||
RETURN __dbCopyXStruct( cFileName )
|
||||
|
||||
#endif
|
||||
@@ -229,10 +229,3 @@ STATIC FUNCTION __GetField( cField )
|
||||
|
||||
FUNCTION __dbTransRec( nDstArea, aFieldsStru )
|
||||
RETURN __dbTrans( nDstArea, aFieldsStru, NIL, NIL, 1 )
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION dbTotal( cFile, xKey, aFields, xFor, xWhile, nNext, nRec, lRest )
|
||||
RETURN __dbTotal( cFile, xKey, aFields, xFor, xWhile, nNext, nRec, lRest )
|
||||
|
||||
#endif
|
||||
|
||||
58
harbour/source/rdd/dbtotalx.prg
Normal file
58
harbour/source/rdd/dbtotalx.prg
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* XPP compatible dbTotal() function
|
||||
*
|
||||
* Copyright 1999-2007 Viktor Szakats <viktor.szakats@syenar.hu>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION dbTotal( cFile, xKey, aFields, xFor, xWhile, nNext, nRec, lRest )
|
||||
RETURN __dbTotal( cFile, xKey, aFields, xFor, xWhile, nNext, nRec, lRest )
|
||||
|
||||
#endif
|
||||
@@ -101,10 +101,3 @@ FUNCTION __dbUpdate( cAlias, bKey, lRandom, bAssign )
|
||||
ENDIF
|
||||
|
||||
RETURN .T.
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION dbUpdate( cAlias, bAssign, bKey, lRandom )
|
||||
RETURN __dbUpdate( cAlias, bKey, lRandom, bAssign )
|
||||
|
||||
#endif
|
||||
|
||||
58
harbour/source/rdd/dbupdatx.prg
Normal file
58
harbour/source/rdd/dbupdatx.prg
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* XPP compatible dbUpdate() function
|
||||
*
|
||||
* Copyright 1999-2007 Viktor Szakats <viktor.szakats@syenar.hu>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION dbUpdate( cAlias, bAssign, bKey, lRandom )
|
||||
RETURN __dbUpdate( cAlias, bKey, lRandom, bAssign )
|
||||
|
||||
#endif
|
||||
@@ -83,6 +83,7 @@ C_SOURCES=\
|
||||
natmsg.c \
|
||||
net.c \
|
||||
oemansi.c \
|
||||
oemansix.c \
|
||||
oldbox.c \
|
||||
oldclear.c \
|
||||
pad.c \
|
||||
@@ -202,6 +203,7 @@ PRG_SOURCES=\
|
||||
ttextlin.prg \
|
||||
ttopbar.prg \
|
||||
typefile.prg \
|
||||
typefilx.prg \
|
||||
valtoexp.prg \
|
||||
wait.prg \
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* Harbour Project source code:
|
||||
* OEM <-> ANSI string conversion functions (Win32 specific, Xbase++ ext.)
|
||||
*
|
||||
* Copyright 1999-2001 Viktor Szakats <viktor.szakats@syenar.hu>
|
||||
* Copyright 1999-2007 Viktor Szakats <viktor.szakats@syenar.hu>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -99,21 +99,3 @@ HB_FUNC( HB_OEMTOANSI )
|
||||
else
|
||||
hb_retc( NULL );
|
||||
}
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
/* NOTE: Xbase++ compatible function */
|
||||
|
||||
HB_FUNC( CONVTOOEMCP )
|
||||
{
|
||||
HB_FUNC_EXEC( HB_ANSITOOEM );
|
||||
}
|
||||
|
||||
/* NOTE: Xbase++ compatible function */
|
||||
|
||||
HB_FUNC( CONVTOANSICP )
|
||||
{
|
||||
HB_FUNC_EXEC( HB_OEMTOANSI );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
68
harbour/source/rtl/oemansix.c
Normal file
68
harbour/source/rtl/oemansix.c
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* XPP compatible OEM <-> ANSI string conversion functions
|
||||
*
|
||||
* Copyright 1999-2007 Viktor Szakats <viktor.szakats@syenar.hu>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
HB_FUNC_EXTERN( HB_ANSITOOEM );
|
||||
HB_FUNC_EXTERN( HB_OEMTOANSI );
|
||||
|
||||
HB_FUNC( CONVTOOEMCP )
|
||||
{
|
||||
HB_FUNC_EXEC( HB_ANSITOOEM );
|
||||
}
|
||||
|
||||
HB_FUNC( CONVTOANSICP )
|
||||
{
|
||||
HB_FUNC_EXEC( HB_OEMTOANSI );
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -145,10 +145,3 @@ PROCEDURE __TypeFile( cFile, lPrint )
|
||||
ENDIF
|
||||
|
||||
RETURN
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION _TypeFile( cFile, lPrint )
|
||||
RETURN __TypeFile( cFile, lPrint )
|
||||
|
||||
#endif
|
||||
|
||||
58
harbour/source/rtl/typefilx.prg
Normal file
58
harbour/source/rtl/typefilx.prg
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* XPP compatible _Typefile() function
|
||||
*
|
||||
* Copyright 1999-2007 Viktor Szakats <viktor.szakats@syenar.hu>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HB_COMPAT_XPP
|
||||
|
||||
FUNCTION _TypeFile( cFile, lPrint )
|
||||
RETURN __TypeFile( cFile, lPrint )
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user