* config/postinst.hb
* utils/hbmk2/hbmk2.prg
+ using HB_CWD() instead of DIRCHANGE()
- tests/speedold.prg
* contrib/gtwvg/3state.prg
* contrib/gtwvg/activex.prg
* contrib/gtwvg/bitmap.prg
* contrib/gtwvg/checkbox.prg
* contrib/gtwvg/class.prg
* contrib/gtwvg/combobox.prg
* contrib/gtwvg/crt.prg
* contrib/gtwvg/dataref.prg
* contrib/gtwvg/dialog.prg
* contrib/gtwvg/drawarea.prg
* contrib/gtwvg/genrc.prg
* contrib/gtwvg/gtwvg.c
* contrib/gtwvg/htmlview.prg
* contrib/gtwvg/listbox.prg
* contrib/gtwvg/menubar.prg
* contrib/gtwvg/mle.prg
* contrib/gtwvg/paint.prg
* contrib/gtwvg/parthdlr.prg
* contrib/gtwvg/pushbut.prg
* contrib/gtwvg/radiobut.prg
* contrib/gtwvg/scrollbr.prg
* contrib/gtwvg/sle.prg
* contrib/gtwvg/statbar.prg
* contrib/gtwvg/static.prg
* contrib/gtwvg/syswnd.prg
* contrib/gtwvg/tabpage.prg
* contrib/gtwvg/tests/activex.prg
* contrib/gtwvg/tests/cuigdlgs.prg
* contrib/gtwvg/tests/demowvg.prg
* contrib/gtwvg/tests/demowvg1.prg
* contrib/gtwvg/tests/demoxbp.prg
* contrib/gtwvg/tests/dyndlgs.prg
* contrib/gtwvg/tests/modal.prg
* contrib/gtwvg/tests/tbrowser.prg
* contrib/gtwvg/tests/utils.prg
* contrib/gtwvg/tests/wvtcls.prg
* contrib/gtwvg/tests/xbp.prg
* contrib/gtwvg/toolbar.prg
* contrib/gtwvg/treeview.prg
* contrib/gtwvg/wnd.prg
* contrib/gtwvg/wvgcore.c
* contrib/gtwvg/wvgcuig.c
* contrib/gtwvg/wvtwin.ch
* contrib/hbct/getinfo.prg
* contrib/hbhttpd/readme.txt
* contrib/hbhttpd/widgets.prg
* contrib/hbmzip/tests/myunzip.prg
* contrib/hbmzip/tests/myzip.prg
* contrib/hbnetio/tests/netiot02.prg
* contrib/hbnf/hex2dec.prg
* contrib/hbsqlit3/tests/backup.prg
* contrib/hbwin/tests/pdfcreat.prg
* contrib/hbwin/tests/testole.prg
* contrib/rddsql/tests/arrayrdd.prg
* contrib/xhb/cstruct.prg
* contrib/xhb/dumpvar.prg
* contrib/xhb/trpc.prg
* contrib/xhb/ttable.ch
* contrib/xhb/txml.prg
* contrib/xhb/xcstr.prg
* contrib/xhb/xdbmodst.prg
* ChangeLog
* doc/en/command.txt
* doc/en/hvm.txt
* doc/en/menu.txt
* doc/en/tbrowse.txt
* extras/gtwvw/gtwvw.c
* extras/gtwvw/hbgtwvw.h
* extras/gtwvw/tests/cbtest1.prg
* extras/gtwvw/tests/cbtest6.prg
* extras/gtwvw/tests/drawimg.prg
* extras/gtwvw/tests/ebtest7.prg
* extras/gtwvw/tests/inpfocus.prg
* extras/gtwvw/tests/prog0.prg
* extras/gtwvw/tests/prog1.prg
* extras/gtwvw/tests/prog2.prg
* extras/gtwvw/tests/wvwmouse.prg
* extras/gtwvw/tests/wvwtest9.prg
* extras/gtwvw/wvwcheck.c
* extras/gtwvw/wvwdraw.c
* extras/gtwvw/wvwfuncs.c
* extras/gtwvw/wvwmenu.c
* extras/gtwvw/wvwpush.c
* extras/gtwvw/wvwstbar.c
* extras/gtwvw/wvwtbar.c
* extras/hbvpdf/hbvpdf.prg
* extras/hbvpdf/hbvpdft.prg
* extras/hbxlsxml/tests/example.prg
* extras/hbxlsxml/tests/example2.prg
* extras/hbxlsxml/tests/example3.prg
* extras/hbxlsxml/xlsxml_s.prg
* extras/hbxlsxml/xlsxml_y.prg
* extras/hbxlsxml/xlsxml.prg
* extras/httpsrv/cookie.prg
* extras/httpsrv/session.prg
* extras/httpsrv/uhttpd.prg
* src/compiler/hbmain.c
* src/debug/dbgtarr.prg
* src/debug/dbgthsh.prg
* src/debug/dbgtobj.prg
* src/debug/debugger.prg
* src/rdd/dbfcdx/dbfcdx1.c
* src/rdd/dbfnsx/dbfnsx1.c
* src/rdd/dbfntx/dbfntx1.c
* src/rdd/hbsix/sxcompat.prg
* src/rtl/tpersist.prg
* tests/and_or.prg
* tests/clsccast.prg
* tests/clsicast.prg
* tests/clsscast.prg
* tests/clsscope.prg
* tests/codebl.prg
* tests/cpinfo.prg
* tests/foreach.prg
* tests/inherit.prg
* tests/memvar.prg
* tests/mt/mttest01.prg
* tests/mt/mttest02.prg
* tests/mt/mttest03.prg
* tests/mt/mttest04.prg
* tests/mt/mttest05.prg
* tests/mt/mttest06.prg
* tests/mt/mttest07.prg
* tests/mt/mttest09.prg
* tests/mt/mttest10.prg
* tests/rddtest/rddmktst.prg
* tests/rddtest/rddtst.prg
* tests/rto_get.prg
* tests/rto_tb.prg
* tests/speedtst.prg
* tests/stripem.prg
* tests/testpre.prg
* tests/testwarn.prg
* tests/transtst.prg
* utils/hbtest/hbtest.prg
* utils/hbtest/rt_hvma.prg
* various formal cleanups
! fixed ==/!= operator usage in hbxlsxml
84 lines
1.6 KiB
Plaintext
84 lines
1.6 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
REQUEST __PP_STDRULES
|
|
|
|
PROCEDURE Main()
|
|
|
|
LOCAL cString, l_pp
|
|
LOCAL i, j, aScript
|
|
|
|
CLS
|
|
|
|
l_pp := __pp_init()
|
|
|
|
? "Testing Harbour run-time preprocessing"
|
|
? "======================================"
|
|
?
|
|
|
|
cString := "@ 10, 10 SAY 'Hello!'"
|
|
? cString
|
|
? __pp_process( l_pp, cString )
|
|
?
|
|
|
|
cString := "? 'Hello mom'"
|
|
? cString
|
|
? __pp_process( l_pp, cString )
|
|
?
|
|
|
|
cString := 'SET RELATION TO Something INTO MySelf'
|
|
? cString
|
|
? __pp_process( l_pp, cString )
|
|
?
|
|
|
|
cString := 'SET RELATION ADDITIVE TO Something INTO YourSelf'
|
|
? cString
|
|
? __pp_process( l_pp, cString )
|
|
?
|
|
|
|
cString := "#xcommand DEFAULT <v1> := <x1> => IF <v1> == NIL ; <v1> := <x1> ; END"
|
|
? cString
|
|
IF __pp_addRule( l_pp, cString )
|
|
? "Rule added successfully !"
|
|
ELSE
|
|
? "Rule addition failed ..."
|
|
ENDIF
|
|
|
|
cString := 'DEFAULT x := 100'
|
|
? cString
|
|
? __pp_process( l_pp, cString )
|
|
?
|
|
|
|
? "Press <Enter>..."
|
|
__Accept( "" )
|
|
|
|
CLS
|
|
|
|
aScript := { 'cMyDatabase := "dontknow.dbf"', ;
|
|
'USE (cMyDatabase)', ;
|
|
'GO TOP', ;
|
|
'', ;
|
|
'? MYFIELD, YOURFIELD', ;
|
|
'', ;
|
|
'WAIT "Press <Enter> key..."', ;
|
|
'', ;
|
|
'CLOSE ALL' }
|
|
|
|
FOR j := 1 TO 2
|
|
? iif( j == 1, "Before", "After" ) + " __pp_process()"
|
|
? "==================="
|
|
?
|
|
FOR i := 1 TO Len( aScript )
|
|
|
|
? iif( j == 1, aScript[ i ], __pp_process( l_pp, aScript[ i ] ) )
|
|
|
|
NEXT
|
|
?
|
|
? "Press <Enter> key..."
|
|
__Accept( "" )
|
|
CLS
|
|
NEXT
|
|
|
|
RETURN
|