Files
harbour-core/harbour/include
Przemyslaw Czerpak 46e9900a91 2010-06-23 12:47 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbextern.ch
  * harbour/src/vm/runner.c
    + added new PRG function
         HB_HRBSIGNATURE() -> <cSig>
      which returns HRB file signature
    + added internal function hb_hrbCheckSig() to keep HRB file
      signature checking in one place

  * harbour/include/hbextern.ch
  * harbour/src/vm/cmdarg.c
    + added new PRG function
         HB_ARGSHIFT( [<lProgName>] ) -> NIL
      which updates HB_ARG*() parameter list removing the 1-st one
      and replacing it by others. If <lProgName> is .T. then first
      non internal parameter is moved to hb_argv(0) (hb_progname())
      and all next are shifted.

  * harbour/utils/hbrun/hbrun.prg
    + when extension does not allow to recognize file type then check
      passed file signature. If it's HRB file then execute directly
      otherwise use it as PRG script.
      This modification allows to use any names (except the ones using
      known for HBRUN extensions like .hrb amd .dbf) as PRG script names.
    + Call HB_ARGSHIFT(.T.) to strip HBRUN executable file name from
      parameter list when PRG script or HRB file is executed
2010-06-23 10:47:41 +00:00
..