From be8462ef1a0c542c9acefc9fdef26475d312b650 Mon Sep 17 00:00:00 2001 From: Brian Hays Date: Tue, 6 Nov 2001 06:29:15 +0000 Subject: [PATCH] 2001-11-05 22:35 UTC-0800 Brian Hays --- harbour/ChangeLog | 23 ++++++++++++++--------- harbour/source/vm/dynsym.c | 18 ++++++++++++++++-- 2 files changed, 30 insertions(+), 11 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 1e2a6dcc54..cd0445694a 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,8 @@ +2001-11-05 22:35 UTC-0800 Brian Hays + * harbour/source/vm/dynsym.c + * added "trimming" to new symbols, should fix bugs + related to dbUseArea called with space-padded alias + 2001-11-05 19:25 UTC-0400 David G. Holm * config/w32/gcc.cf @@ -16,7 +21,7 @@ * utils/hbtest/hbtest.prg + Enhanced the display of errors, now the correct and incorrect - results are below each other, so it's much easier to spot the + results are below each other, so it's much easier to spot the difference. * source/common/hbver.c @@ -32,7 +37,7 @@ ! Added winspool lib... * makefile.bc - - Removed -M switch from hbmake. Please use set CFLAGS= to add + - Removed -M switch from hbmake. Please use set CFLAGS= to add optional switches. * source/rtl/gtwin/gtwin.c @@ -42,15 +47,15 @@ 2001-11-04 18:34 UTC+0100 Viktor Szakats - * source/compiler/cmdcheck.c - * source/compiler/gencobj.c + * source/compiler/cmdcheck.c + * source/compiler/gencobj.c * source/compiler/hbpcode.c - * source/rtl/filesys.c + * source/rtl/filesys.c * source/rtl/idle.c - * source/vm/classes.c - * source/vm/hvm.c + * source/vm/classes.c + * source/vm/hvm.c ! Non-ansi comments fixed. - Note that RDD files has lots of // comments, if you're the author + Note that RDD files has lots of // comments, if you're the author of some those files and seeing this, please check your code. Thx. 2001-11-04 18:14 UTC+0100 Viktor Szakats @@ -61,7 +66,7 @@ * source/rtl/isprint.c * source/vm/classes.c * source/vm/hvm.c - ! Fixed BCC551 warnings. (One more warning is left, due to some + ! Fixed BCC551 warnings. (One more warning is left, due to some define messes) ! Non-ansi comments fixed. diff --git a/harbour/source/vm/dynsym.c b/harbour/source/vm/dynsym.c index 78127bef6d..1e7f5cfe52 100644 --- a/harbour/source/vm/dynsym.c +++ b/harbour/source/vm/dynsym.c @@ -174,7 +174,21 @@ PHB_DYNS hb_dynsymGet( char * szName ) /* finds and creates a symbol if not fou while( iLen-- ) { char cChar = *szName++; - *pDest++ = ( cChar >= 'a' && cChar <= 'z' ) ? cChar - ( 'a' - 'A' ) : cChar; + + if( cChar >= 'a' && cChar <= 'z' ) + { + *pDest++ = cChar - ( 'a' - 'A' ); + } + else if( cChar == ' ' || cChar == '\t' ) + { + *pDest = '\0'; + break; + } + else + { + *pDest++ = cChar; + } + } } @@ -383,4 +397,4 @@ HB_FUNC( __DYNSGETPRF ) /* profiler: It returns an array with a function or proc } } -#endif \ No newline at end of file +#endif