* utils/hbmk2/hbmk2.*.po
* utils/hbmk2/hbmk2.prg
% minor optimization to recent patch
+ cleanups in some help items
+ '-?' and '-h' options are now accepted as '-help'
+ '-??' and '-hh' options are now accepted as '-longhelp'
- deleted '-license' option, it's now part of '-longhelp'
! hbshell_gtSelect() parameter fixed to be case insentitive
in an internal check
+ tests/clipper.ch
+ added header file that translates certain Harbour
specific functions to ones understood by Clipper.
Useful to compile lightly Harbour specific code
in Clipper (or other Clipper compatible language),
for comparison.
* tests/*.prg
- tests/exthrb.prg
+ tests/hrbext.prg
* website/samples/*.prg.html
! various cleanups, minor fixes, formatting
+ #included "clipper.ch" to enable running what's
possible to run with Clipper
* src/rtl/gtwin/gtwin.c
* src/rtl/gtwvt/gtwvt.c
! return string type for hb_gtInfo( HB_GTI_FONTSEL )
in sync with GTXWC
* contrib/xhb/xhbfunc.c
* include/hbdefs.h
* HB_FUNC_EXEC() macro value to not end with ';',
now it should be added on usage (almost all usages
were such already). To be code formatter friendly.
* contrib/xhb/xhb.hbp
+ contrib/xhb/xhbdepr.prg
+ added compatiblity stubs for functions deprecated from
Harbour core, but still available in xHarbour. (xHarbour
has yet to deprecate anything)
So here we can gather stuff that's deprecated from Harbour
core (except internal functions - most of them named '__*' -,
and the "evil" ones)
; NOTE: Runtime efficiency is not a goal with these stubs,
only "cheap" long term maintainability.
- contrib/hbblat/tests/blattest.prg
+ contrib/hbblat/tests/test.prg
* extras/guestbk/guestbk.hbp
- extras/guestbk/testcgi.prg
+ extras/guestbk/cgi.prg
* renames
* src/vm/dynsym.c
* contrib/hbfbird/tests/testapi.c
* contrib/xhb/thtm.prg
* minor
78 lines
1.6 KiB
HTML
78 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/xregexp/2.0.0/xregexp-min.js"></script>
|
|
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/xregexp/2.0.0/backcompat.js"></script>
|
|
<script type="text/javascript" src="/js/shCore.js"></script>
|
|
<script type="text/javascript" src="/js/shBrushHarbour.js"></script>
|
|
<link href="/css/shCore.css" rel="stylesheet" type="text/css" />
|
|
<link href="/css/shThemeDefault.css" rel="stylesheet" type="text/css" />
|
|
<script type="text/javascript">SyntaxHighlighter.all()</script>
|
|
</head>
|
|
<body>
|
|
|
|
<script type="syntaxhighlighter" class="brush: harbour; light: true"><![CDATA[
|
|
|
|
// Managing variables by reference
|
|
|
|
PROCEDURE Main()
|
|
|
|
STATIC s_x := 10
|
|
|
|
LOCAL x := 0
|
|
|
|
? "Managing LOCAL variables by reference"
|
|
? "In main before ref1 x=", x
|
|
ref1( @x )
|
|
? " In main after ref1 x=", x
|
|
|
|
? "Managing STATIC variables by reference"
|
|
? "In main before ref1 s=", s_x
|
|
ref1( @s_x )
|
|
? " In main after ref1 s=", s_x
|
|
|
|
RETURN
|
|
|
|
PROCEDURE ref1( x )
|
|
|
|
x++
|
|
? " In ref1 before ref2 =", x
|
|
Ref2( @x )
|
|
? " In ref1 after ref2 =", x
|
|
|
|
RETURN
|
|
|
|
PROCEDURE ref2( x )
|
|
|
|
x++
|
|
? " In ref2 before ref3 =", x
|
|
Ref3( @x )
|
|
? " In ref2 after ref3 =", x
|
|
|
|
RETURN
|
|
|
|
PROCEDURE ref3( x )
|
|
|
|
STATIC s_a
|
|
|
|
x++
|
|
? " In ref3 before ref4 =", x
|
|
s_a := { x, x }
|
|
Ref4( @s_a )
|
|
? " In ref3 after ref4 =", x
|
|
|
|
RETURN
|
|
|
|
PROCEDURE ref4( a )
|
|
|
|
a[ 1 ]++
|
|
? " In ref4 =", a[ 1 ]
|
|
|
|
RETURN
|
|
|
|
]]></script>
|
|
|
|
</body>
|
|
</html>
|