* harbour/contrib/libct/keyset.c
* cleaned warning
* harbour/bldcmncf.sh
* harbour/debian/control
* harbour/debian/harbour.cfg
* harbour/debian/harbour.1
* harbour/debian/dirs
* harbour/debian/rules.cf
* harbour/debian/compat
* harbour/debian/hbmake.1
* harbour/debian/changelog
* harbour/debian/copyright
* harbour/debian/hbtest.1
* harbour/debian/hbpp.1
* harbour/debian/hbrun.1
* harbour/debian/hbdoc.1
* harbour/make_deb.sh
* harbour/tests/foreach2.prg
* harbour/tests/gtchars.prg
* harbour/tests/gtcolors.prg
* harbour/tests/gtkeys.prg
* harbour/make_gcc.sh
* harbour/doc/howtosvn.txt
* harbour/makefile.gc
* harbour/contrib/tip/thtml.prg
* harbour/contrib/tip/thtml.ch
* harbour/contrib/libct/screen2.c
* harbour/contrib/libct/dbftools.c
* harbour/contrib/libct/ctdisk.ch
* harbour/contrib/libct/maxline.c
* harbour/contrib/libct/video.c
* harbour/contrib/libct/dattime3.c
* harbour/contrib/libct/lton.c
* harbour/contrib/libct/cursor.c
* harbour/contrib/libct/misc2.c
* harbour/contrib/libct/color.c
* harbour/contrib/libct/cttime.prg
* harbour/contrib/libct/ctvideo.ch
* harbour/contrib/libct/numcount.c
* harbour/contrib/libct/pack.c
* harbour/contrib/libct/setlast.c
* harbour/contrib/libct/like.c
* harbour/contrib/libct/disk.c
* harbour/contrib/libct/ctstrfil.c
* harbour/contrib/libct/ctstrfil.h
* harbour/contrib/libct/numline.c
* harbour/contrib/libct/dattime2.c
* harbour/contrib/libct/misc3.c
* harbour/contrib/libct/ctpad.c
* harbour/contrib/libct/datetime.c
* harbour/contrib/libct/blank.prg
* harbour/source/rtl/gtchrmap.c
* harbour/source/rtl/gttrm/Makefile
* harbour/source/rtl/gttrm/gttrm.c
* harbour/source/rtl/hbhex.c
* harbour/source/rtl/hbbit.c
* harbour/source/codepage/cpsv850.c
* harbour/source/codepage/cpsk852.c
* harbour/source/codepage/ucmik.c
* harbour/source/codepage/cpbgmik.c
* harbour/source/codepage/cpsvwin.c
* harbour/source/codepage/cpskiso.c
* harbour/source/codepage/cpskwin.c
* harbour/source/codepage/cpsvclip.c
* harbour/source/codepage/cpskkam.c
* harbour/config/w32/owatcom.cf
+ set svn:eol-style property to native
+ add some missing svn:keywords Id property
72 lines
2.4 KiB
C
72 lines
2.4 KiB
C
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/*
|
|
* xHarbour Project source code:
|
|
* CT3 numeric functions
|
|
*
|
|
* NUMCOUNT()
|
|
* Copyright 2004 Pavel Tsarenko <tpe2.mail.ru>
|
|
* www - http://www.xharbour.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"
|
|
|
|
static LONG s_lCounter = 0;
|
|
|
|
HB_FUNC( NUMCOUNT )
|
|
{
|
|
BOOL bMode = ISLOG( 2 ) && hb_parl( 2 );
|
|
|
|
if( ISNUM( 1 ) )
|
|
{
|
|
if( bMode )
|
|
s_lCounter = hb_parnl( 1 );
|
|
else
|
|
s_lCounter += hb_parnl( 1 );
|
|
}
|
|
|
|
hb_retnl( s_lCounter );
|
|
}
|