two fixes for uncrustify parameter when called for automatic fixup

This commit is contained in:
Viktor Szakats
2013-04-05 18:59:13 +02:00
parent 748fac0694
commit c622c4c78f
2 changed files with 7 additions and 3 deletions

View File

@@ -567,10 +567,10 @@ STATIC FUNCTION FNameExc( cName, aList )
STATIC PROCEDURE ProcFile( cFileName )
STATIC sc_hProc := { ;
LOCAL hProc := { ;
".png" => { "avdpng -z -4 %1$s", "optipng -o7 %1$s" }, ;
".jpg" => { "jpegoptim --strip-all %1$s" }, ;
".c" => { "uncrustify -c bin/harbour.ucf %1$s", @FixFuncCase() }, ;
".c" => { hb_StrFormat( "uncrustify -c %1$s %%1$s", hb_DirSepToOS( _HBROOT_ + "bin/harbour.ucf" ) ), @FixFuncCase() }, ;
".cpp" => ".c", ;
".h" => ".c", ;
".api" => ".c", ;
@@ -581,7 +581,7 @@ STATIC PROCEDURE ProcFile( cFileName )
LOCAL aProc := hb_FNameExt( cFileName )
LOCAL xCmd
DO WHILE HB_ISSTRING( aProc := hb_HGetDef( sc_hProc, aProc, NIL ) )
DO WHILE HB_ISSTRING( aProc := hb_HGetDef( hProc, aProc, NIL ) )
ENDDO
IF HB_ISARRAY( aProc )