mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
656b0ddd8a
commit
d9f8fd8680
2 changed files with 11 additions and 5 deletions
|
@ -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>
|
1999-09-24 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* configure.in: Add check for Objective-C headers.
|
* configure.in: Add check for Objective-C headers.
|
||||||
|
|
|
@ -63,11 +63,11 @@ typedef struct {
|
||||||
* Return NO if the end of the string is reached.
|
* Return NO if the end of the string is reached.
|
||||||
* For internal use only.
|
* For internal use only.
|
||||||
*/
|
*/
|
||||||
#define skipToNextField() ({ \
|
#define skipToNextField() ({\
|
||||||
while (_scanLocation < myLength() \
|
while (_scanLocation < myLength()\
|
||||||
&& (*_skipImp)(_charactersToBeSkipped, memSel, myUnicode(_scanLocation))) \
|
&& (*_skipImp)(_charactersToBeSkipped, memSel, myCharacter(_scanLocation)))\
|
||||||
_scanLocation++; \
|
_scanLocation++;\
|
||||||
(_scanLocation >= myLength()) ? NO : YES; \
|
(_scanLocation >= myLength()) ? NO : YES;\
|
||||||
})
|
})
|
||||||
|
|
||||||
+ (void) initialize
|
+ (void) initialize
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue