Files
harbour-core/contrib/hbxdiff/tests/test.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

38 lines
679 B
Plaintext

#require "hbxdiff"
#define _SIZE 62
PROCEDURE Main()
LOCAL pMMF
LOCAL cFileCtx
LOCAL nSize
pMMF := xdl_init_mmfile( XDLT_STD_BLKSIZE, XDL_MMF_ATOMIC )
? xdl_mmfile_size( pMMF )
? xdl_mmfile_iscompact( pMMF )
cFileCtx := hb_MemoRead( __FILE__ )
? xdl_write_mmfile( pMMF, cFileCtx ), Len( cFileCtx )
? xdl_mmfile_size( pMMF )
? xdl_read_mmfile( pMMF, NIL, _SIZE, @nSize )
? nSize
xdl_seek_mmfile( pMMF, 0 )
? xdl_read_mmfile( pMMF, NIL, _SIZE, @nSize )
? nSize
? xdl_read_mmfile( pMMF, NIL, _SIZE, @nSize )
? nSize
xdl_seek_mmfile( pMMF, _SIZE )
? xdl_read_mmfile( pMMF, NIL, _SIZE, @nSize )
? nSize
RETURN