2011-01-31 13:38 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbide/idemisc.prg
    ! Applied FN_FromArray() fix to the copy in HBIDE.
    ; QUESTION: Should we make some of these file manipulation
                functions part of core (possibly with
                reorganized names)? These are generally useful, 
                and some of them are not trivial, some others 
                are often used, and all of them generic:
      Some possible candidates from hbmk2:
        hb_pwd()
        PathNormalize( ... )
        PathMakeAbsolute( ... )
        PathMakeRelative( ... )
        PathSepToSelf( ... )
        DirAddPathSep( ... )
        DirDelPathSep( ... )
        DirBuild( ... )
        DirUnbuild( ... )
        FNameDirGet( ... )
        FNameDirExtSet( ... )
        FNameNameGet( ... )
        FNameNameExtGet( ... )
        FNameExtGet( ... )
        FNameExtDef( ... )
        FNameExtSet( ... )
        FNameEscape( ... )
This commit is contained in:
Viktor Szakats
2011-01-31 12:40:04 +00:00
parent d3fda49df8
commit cae8d16963
2 changed files with 31 additions and 1 deletions

View File

@@ -16,6 +16,33 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-01-31 13:38 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbide/idemisc.prg
! Applied FN_FromArray() fix to the copy in HBIDE.
; QUESTION: Should we make some of these file manipulation
functions part of core (possibly with
reorganized names)? These are generally useful,
and some of them are not trivial, some others
are often used, and all of them generic:
Some possible candidates from hbmk2:
hb_pwd()
PathNormalize( ... )
PathMakeAbsolute( ... )
PathMakeRelative( ... )
PathSepToSelf( ... )
DirAddPathSep( ... )
DirDelPathSep( ... )
DirBuild( ... )
DirUnbuild( ... )
FNameDirGet( ... )
FNameDirExtSet( ... )
FNameNameGet( ... )
FNameNameExtGet( ... )
FNameExtGet( ... )
FNameExtDef( ... )
FNameExtSet( ... )
FNameEscape( ... )
2011-01-31 13:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/utils/hbmk2/hbmk2.prg
! small fix in FN_FromArray() which caused that relative paths were

View File

@@ -1613,7 +1613,10 @@ STATIC FUNCTION FN_FromArray( aPath, nFrom, nTo, cFileName, cDirPrefix )
cDir := ""
FOR tmp := nFrom TO nTo
cDir += aPath[ tmp ] + hb_ps()
cDir += aPath[ tmp ]
IF nFrom < nTo
cDir += hb_ps()
ENDIF
NEXT
RETURN hb_FNameMerge( DirDelPathSep( hbide_DirAddPathSep( cDirPrefix ) + cDir ), cFileName )