2008-01-16 03:18 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/macro.c
! strip trailing and leading SPACEs and TABs from macro compiled
symbols
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
|
||||
*/
|
||||
|
||||
2008-01-16 03:18 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/source/vm/macro.c
|
||||
! strip trailing and leading SPACEs and TABs from macro compiled
|
||||
symbols
|
||||
|
||||
2008-01-16 01:20 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
|
||||
+ harbout/contrib/hbzlib
|
||||
+ added support for zlib library and zip files (based on
|
||||
|
||||
@@ -659,7 +659,15 @@ char * hb_macroTextSymbol( char *szString, ULONG ulLength, BOOL *pfNewString )
|
||||
|
||||
szResult = hb_macroTextSubst( szString, &ulLength );
|
||||
|
||||
while( ulLength && szResult[ ulLength - 1 ] == ' ' )
|
||||
while( ulLength && ( szResult[ 0 ] == ' ' || szResult[ 0 ] == '\t' ) )
|
||||
{
|
||||
++szResult;
|
||||
++szString;
|
||||
--ulLength;
|
||||
}
|
||||
|
||||
while( ulLength && ( szResult[ ulLength - 1 ] == ' ' ||
|
||||
szResult[ ulLength - 1 ] == '\t' ) )
|
||||
--ulLength;
|
||||
|
||||
/* NOTE: This uses _a-zA-Z0-9 pattern to check for a valid name
|
||||
|
||||
Reference in New Issue
Block a user