mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
599fe5ffb9
commit
b503e9eb22
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>
|
||||
|
||||
* configure.in: Add check for Objective-C headers.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue