Skip to content

Remove get_double_attrs and parse_color; fix color_hex guard#55

Merged
andy5995 merged 1 commit into
trunkfrom
remove-double-attrs-parse-color
Jun 17, 2026
Merged

Remove get_double_attrs and parse_color; fix color_hex guard#55
andy5995 merged 1 commit into
trunkfrom
remove-double-attrs-parse-color

Conversation

@andy5995

Copy link
Copy Markdown
Owner
  • Remove canfigger_get_double_attrs() and canfigger_parse_color() (no concrete consumers; dual-format complexity not justified)
  • canfigger_parse_color_hex(): reject strings with non-hex characters via strspn guard (sscanf alone silently mis-parsed e.g. "#12345g")
  • Add missing non-hex test cases to tests/color_hex.c

- Remove canfigger_get_double_attrs() and canfigger_parse_color() (no
  concrete consumers; dual-format complexity not justified)
- canfigger_parse_color_hex(): reject strings with non-hex characters
  via strspn guard (sscanf alone silently mis-parsed e.g. "#12345g")
- Add missing non-hex test cases to tests/color_hex.c

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@andy5995 andy5995 merged commit 5dec828 into trunk Jun 17, 2026
10 checks passed
@andy5995 andy5995 deleted the remove-double-attrs-parse-color branch June 17, 2026 06:46
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