Skip to content

lib: simplify more white space loops#16363

Closed
bagder wants to merge 1 commit intomasterfrom
bagder/parse-simplifier
Closed

lib: simplify more white space loops#16363
bagder wants to merge 1 commit intomasterfrom
bagder/parse-simplifier

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Feb 17, 2025

Since the ISBLANK() and ISSPACE() macros check for specific matches, there is no point in using while(*ptr && ISSPACE(*ptr)) etc, as the '*ptr' check is then superfluous.

Since the ISBLANK() and ISSPACE() macros check for specific matches,
there is no point in using while(*ptr && ISSPACE(*ptr)) etc, as the
'*ptr' check is then superfluous.
@bagder bagder added the tidy-up label Feb 17, 2025
@bagder bagder closed this in 076444e Feb 17, 2025
@bagder bagder deleted the bagder/parse-simplifier branch February 17, 2025 12:17
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Since the ISBLANK() and ISSPACE() macros check for specific matches,
there is no point in using while(*ptr && ISSPACE(*ptr)) etc, as the
'*ptr' check is then superfluous.

Closes curl#16363
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant