2013-04-07 12:49 UTC+0200 Viktor Szakats (harbour syenar.net)
* bin/check.hb
* tests/fixcase.hb
! fixed another loop of regexp search and replace to only
change exactly the item it found. It will fix some
weird cases experienced in the past,
f.e. in extras/httpsrv/uhttpd.prg
This commit is contained in:
@@ -10,6 +10,14 @@
|
||||
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
|
||||
*/
|
||||
|
||||
2013-04-07 12:49 UTC+0200 Viktor Szakats (harbour syenar.net)
|
||||
* bin/check.hb
|
||||
* tests/fixcase.hb
|
||||
! fixed another loop of regexp search and replace to only
|
||||
change exactly the item it found. It will fix some
|
||||
weird cases experienced in the past,
|
||||
f.e. in extras/httpsrv/uhttpd.prg
|
||||
|
||||
2013-04-07 10:59 UTC+0200 Viktor Szakats (harbour syenar.net)
|
||||
* contrib/Makefile
|
||||
! do not ignore failures in contribs in GNU Make build process
|
||||
|
||||
10
bin/check.hb
10
bin/check.hb
@@ -817,11 +817,11 @@ STATIC FUNCTION FixFuncCase( cFileName )
|
||||
NEXT
|
||||
|
||||
IF !( "hbclass.ch" $ cFileName ) .AND. ! lPartial
|
||||
FOR EACH match IN hb_regexAll( "(?:REQUEST|EXTERNAL|EXTERNA|EXTERN)[ \t]+([A-Za-z_][A-Za-z0-9_]+)", cFile,,,,, .T. )
|
||||
cProper := ProperCase( hAll, match[ 2 ] )
|
||||
IF !( cProper == match[ 2 ] )
|
||||
cFile := StrTran( cFile, match[ 1 ], StrTran( match[ 1 ], match[ 2 ], cProper ) )
|
||||
OutStd( cFileName, match[ 2 ], cProper, "|" + match[ 1 ] + "|" + hb_eol() )
|
||||
FOR EACH match IN hb_regexAll( "(?:REQUEST|EXTERNAL|EXTERNA|EXTERN)[ \t]+([A-Za-z_][A-Za-z0-9_]+)", cFile,,,,, .F. )
|
||||
cProper := ProperCase( hAll, match[ 2 ][ _MATCH_cStr ] )
|
||||
IF !( cProper == match[ 2 ][ _MATCH_cStr ] )
|
||||
cFile := Left( cFile, match[ 2 ][ _MATCH_nStart ] - 1 ) + cProper + SubStr( cFile, match[ 2 ][ _MATCH_nEnd ] + 1 )
|
||||
OutStd( cFileName, match[ 2 ][ _MATCH_cStr ], cProper, "|" + match[ 1 ][ _MATCH_cStr ] + "|" + hb_eol() )
|
||||
nChanged++
|
||||
ENDIF
|
||||
NEXT
|
||||
|
||||
@@ -169,11 +169,11 @@ STATIC PROCEDURE ProcFile( hAll, cFileName )
|
||||
NEXT
|
||||
|
||||
IF !( "hbclass.ch" $ cFileName ) .AND. ! lPartial
|
||||
FOR EACH match IN hb_regexAll( "(?:REQUEST|EXTERNAL|EXTERNA|EXTERN)[ \t]+([A-Za-z_][A-Za-z0-9_]+)", cFile,,,,, .T. )
|
||||
cProper := ProperCase( hAll, match[ 2 ] )
|
||||
IF !( cProper == match[ 2 ] )
|
||||
cFile := StrTran( cFile, match[ 1 ], StrTran( match[ 1 ], match[ 2 ], cProper ) )
|
||||
? cFileName, match[ 2 ], cProper, "|" + match[ 1 ] + "|"
|
||||
FOR EACH match IN hb_regexAll( "(?:REQUEST|EXTERNAL|EXTERNA|EXTERN)[ \t]+([A-Za-z_][A-Za-z0-9_]+)", cFile,,,,, .F. )
|
||||
cProper := ProperCase( hAll, match[ 2 ][ _MATCH_cStr ] )
|
||||
IF !( cProper == match[ 2 ][ _MATCH_cStr ] )
|
||||
cFile := Left( cFile, match[ 2 ][ _MATCH_nStart ] - 1 ) + cProper + SubStr( cFile, match[ 2 ][ _MATCH_nEnd ] + 1 )
|
||||
OutStd( cFileName, match[ 2 ][ _MATCH_cStr ], cProper, "|" + match[ 1 ][ _MATCH_cStr ] + "|" + hb_eol() )
|
||||
nChanged++
|
||||
ENDIF
|
||||
NEXT
|
||||
|
||||
Reference in New Issue
Block a user