Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: replace while(ISBLANK()) loops with Curl_str_passblanks() #16520

Closed
wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Feb 28, 2025

  • replace several ISSPACE() with ISBLANK(), since the former also skips
    CR and LF which in most cases should not occur where this macro is
    used

  • after this commit, there is no ISSPACE() user left in libcurl code, but
    unfortunately tool and test code use the macro so it cannot be removed.

@bagder bagder added the tidy-up label Feb 28, 2025
@bagder bagder force-pushed the bagder/str-passblanks branch 2 times, most recently from bc9f9bf to 0f47ebd Compare February 28, 2025 14:04
@bagder bagder force-pushed the bagder/str-passblanks branch from 0f47ebd to 7ddcfaf Compare February 28, 2025 22:40
@bagder bagder force-pushed the bagder/str-passblanks branch from cf71ecc to 8572070 Compare March 1, 2025 23:33
- replace several ISSPACE() with ISBLANK(), since the former also skips
  CR and LF which in most cases should not occur where this macro is
  used

- after this commit, there is no ISSPACE() user left in libcurl code, but
  unfortunately tool and test code use the macro so it cannot be removed.

Closes #16520
@bagder bagder force-pushed the bagder/str-passblanks branch from 8572070 to 11de23c Compare March 3, 2025 08:05
@bagder bagder changed the title lib: more use of strparse functions for parsing lib: replace while(ISBLANK()) loops with Curl_str_passblanks() Mar 3, 2025
@bagder bagder closed this in 294136b Mar 3, 2025
@bagder bagder deleted the bagder/str-passblanks branch March 3, 2025 09:56
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.

3 participants