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 1999-09-27 19:19:10 +00:00
parent 656b0ddd8a
commit d9f8fd8680
2 changed files with 11 additions and 5 deletions

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