2009-06-12 13:30 UTC+0300 Alexander Kresin <alex at belacy.belgorod.su>

* utils/hbformat/hbformat.prg
    ! EOL handling fixed
  * utils/hbformat/hbformac.c
    * EOF dropped now
This commit is contained in:
Alexander S.Kresin
2009-06-12 09:27:24 +00:00
parent 74585bd192
commit 6969aa63c2
3 changed files with 16 additions and 1 deletions

View File

@@ -17,6 +17,12 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-06-12 13:30 UTC+0300 Alexander Kresin <alex at belacy.belgorod.su>
* utils/hbformat/hbformat.prg
! EOL handling fixed
* utils/hbformat/hbformac.c
* EOF dropped now
2009-06-12 11:09 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
! Fixed to autodetect special *nix dir layout in case

View File

@@ -76,6 +76,11 @@ HB_FUNC( RF_FILEREAD )
}
ulLines ++;
}
else if( (unsigned int)(*ptr) < 9 )
{
hb_ret();
return;
}
ptr ++;
}
ptr --;
@@ -102,7 +107,11 @@ HB_FUNC( RF_FILEREAD )
}
if( ul == ulLines )
{
if( *(ptr-1) == 0x1A )
ptr --;
hb_arraySetCL( arr, ul, ptr1, ptr - ptr1 );
}
hb_itemReturnRelease( arr );
}

View File

@@ -926,7 +926,7 @@ METHOD File2Array( cFileName ) CLASS CODEFORMAT
IF hb_FileExists( cFileName )
aFile := rf_FileRead( MemoRead( cFileName ), @cEol )
IF ::nEol <= 0
IF ::nEol < 0
::cEol := cEol
ENDIF
ENDIF