2010-06-02 17:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* utils/hbmk2/hbmk2.prg
    % Using precompiled regexp.

  * ChangeLog
    ! Fixed my name into header of previous entry.
This commit is contained in:
Viktor Szakats
2010-06-02 15:01:35 +00:00
parent cb86f578a6
commit 1e1fdcc70d
2 changed files with 15 additions and 5 deletions

View File

@@ -17,7 +17,14 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-06-02 13:10 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
2010-06-02 17:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
% Using precompiled regexp.
* ChangeLog
! Fixed my name into header of previous entry.
2010-06-02 13:10 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
+ Now uses regular expression to extract #include directives
from source files, so now it should recognize all supported

View File

@@ -5498,6 +5498,7 @@ STATIC FUNCTION FindNewerHeaders( hbmk, cFileName, cParentDir, lSystemHeader, tT
LOCAL cDependency
LOCAL aCommand
STATIC s_hRegexInclude := NIL
STATIC s_hExclStd := NIL
IF s_hExclStd == NIL
@@ -5773,7 +5774,9 @@ STATIC FUNCTION FindNewerHeaders( hbmk, cFileName, cParentDir, lSystemHeader, tT
http://en.wikipedia.org/wiki/PCRE
http://www.pcre.org/pcre.txt */
aMatch := hb_regexAll( '^[ \t]*#[ \t]*include[ \t]+(\".+?\"|<.+?>)', cFile, .F. /* lCaseSensitive */, .T. /* lNewLine */, NIL, NIL /* nGetMatch */, .T. /* lOnlyMatch */ )
DEFAULT s_hRegexInclude TO hb_regexComp( '^[ \t]*#[ \t]*include[ \t]+(\".+?\"|<.+?>)', .F. /* lCaseSensitive */, .T. /* lNewLine */ )
aMatch := hb_regexAll( s_hRegexInclude, cFile, NIL /* lCaseSensitive */, NIL /* lNewLine */, NIL, NIL /* nGetMatch */, .T. /* lOnlyMatch */ )
IF ! Empty( aMatch )
FOR EACH tmp IN aMatch
@@ -7864,11 +7867,11 @@ STATIC FUNCTION getFirstFunc( hbmk, cFile )
EXIT
ENDIF
NEXT
ELSEIF Lower( cExt ) == ".c" .OR. ;
Lower( cExt ) == ".cpp" .OR. ;
ELSEIF Lower( cExt ) == ".cpp" .OR. ;
Lower( cExt ) == ".cc" .OR. ;
Lower( cExt ) == ".cxx" .OR. ;
Lower( cExt ) == ".cx"
Lower( cExt ) == ".cx" .OR. ;
_EXT_IS_UPPER( cExt, ".C" )
/* do nothing */
ELSEIF ! Empty( cExecNM := FindInPath( hbmk[ _HBMK_cCCPREFIX ] + "nm" ) )
cFuncList := ""