mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +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
|
@ -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…
Add table
Add a link
Reference in a new issue