No description provided.
Minor version 1.1.0 #7
croil
commented 2026年03月28日 00:48:21 +01:00
croil
self-assigned this 2026年03月28日 00:48:21 +01:00
croil
added 4 commits 2026年03月28日 00:48:22 +01:00
This patch fixes non-compliance with strict C99 by changing the `ssize_t` type to `intmax_t`, implementing `_strnlen_i()` using `memchr()` as a replacement for `strnlen()`, which is an extension, and fixes an edge case where if the first path passed to any of the `crpath*cat()` family is trivial, `nacc` will be set to an uninitialized value, causing undefined behavior.
This is the staging commit for version 1.1.0. This minor version release adds
crpathup(), which gives the semantic parent of the given path rather than the lexical parent. This is distinct in that the lexical parent of a path obtained by crpathparent() does not exist if there is only one item in the path, and CREMPTYPATH is returned, whereas the semantic parent is either root if the single item is /, or trivial otherwise. We also add crpatherrs(), an inline utility for getting the string literal name or an error code.
8b239ce61b- Significant enhancements to documentation in header file. - Updated argument checking so that we always ensure that the real length of any `path` argument is clamped to the first terminating zero found in the buffer before `np`. - Updated `_pathlast_i()` so that nothing will be written to `buf` or `*len` assuming they are provided until the last item is found. - Took advantage of the updated argument checks to eliminate some redundant internal calls to `_strnlen_i()`. - Implemented `crpathup()` for fetching the semantic parent of a path. - Added `crpatherrs()` utility for getting string descriptions of error codes. - Updated `example.c` to check the result of `crpathup()` and to be more verbose for pedagogical reasons.
croil
added 1 commit 2026年03月28日 00:57:33 +01:00
croil
commented 2026年03月28日 00:59:18 +01:00
Manually merged main into staging and resolved all conflicts to staging.
Manually merged main into staging and resolved all conflicts to staging.
croil
referenced this pull request from a commit 2026年03月28日 01:00:46 +01:00
croil
merged commit d9fdd4b881 into main 2026年03月28日 01:01:19 +01:00
croil
deleted branch staging 2026年03月28日 01:01:20 +01:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
Compat/Breaking
Breaking change that won't be backward compatible
Kind/Bug
Something is not working
Kind/Documentation
Documentation changes
Kind/Enhancement
Improve existing functionality
Kind/Feature
New functionality
Kind/Security
This is security issue
Kind/Testing
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Resolved
Marks the issue as resolved.
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Resolved
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
croil/crpath!7
Loading...
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "staging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?