Skip to content

lib/string/: Compact files#1651

Open
alejandro-colomar wants to merge 3 commits into
shadow-maint:masterfrom
alejandro-colomar:sspn
Open

lib/string/: Compact files#1651
alejandro-colomar wants to merge 3 commits into
shadow-maint:masterfrom
alejandro-colomar:sspn

Conversation

@alejandro-colomar

@alejandro-colomar alejandro-colomar commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

(And use stpspn() in one more place, to simplify some code, and make it more explicit.)


Revisions:

v2
  • Also compact lib/string/strcmp/.
$ git rd 
1:  f865a4ba61bb = 1:  f865a4ba61bb lib/, src/, lib/string/strspn/: Compact files
2:  5274442fc893 = 2:  5274442fc893 lib/limits.c: Use stpspn() to simplify
-:  ------------ > 3:  0b112a7cc9eb lib/, src/, lib/string/strcmp/: Compact files

Put together str*() and corresponding stp*() APIs in the same file.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This loop accepts and skips contiguous commas.  Let's acknowledge that
by using code that explicitly does this (and which is also simpler,
avoiding a conditional operator).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
@alejandro-colomar alejandro-colomar changed the title lib/string/strspn/: Compact files lib/string/: Compact files Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant