Bugfix for skipping fields in scanner

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4948 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-09-27 19:19:10 +00:00
parent 599fe5ffb9
commit b503e9eb22
2 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,9 @@
Mon Sep 27 20:37:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSScanner.m: Fix error introduced into skipToNextField() macro
my my last rewrite - sorry. Thanks to N. Pero for narrowing down the
problem to a level where I could locate it.
1999-09-24 Adam Fedor <fedor@gnu.org>
* configure.in: Add check for Objective-C headers.

View file

@ -63,11 +63,11 @@ typedef struct {
* Return NO if the end of the string is reached.
* For internal use only.
*/
#define skipToNextField() ({ \
while (_scanLocation < myLength() \
&& (*_skipImp)(_charactersToBeSkipped, memSel, myUnicode(_scanLocation))) \
_scanLocation++; \
(_scanLocation >= myLength()) ? NO : YES; \
#define skipToNextField() ({\
while (_scanLocation < myLength()\
&& (*_skipImp)(_charactersToBeSkipped, memSel, myCharacter(_scanLocation)))\
_scanLocation++;\
(_scanLocation >= myLength()) ? NO : YES;\
})
+ (void) initialize