Improve lsm_str API #17
Labels
No labels
Kind/Bug
Kind/Enhancement
Kind/Feature
Project/Lander
Project/Landerctl
idea
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Chewing_Bever/lander#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The current design for
lsm_stris turning out to be rather cumbersome to use. Therefore I think the following changes are in order:lsm_strstruct publicly available, as to allow allocating them on the stacklsm_strto any C function that takes a C string is currently very cumbersome, having to copy the string to a new buffer. Ideally, we could just pass the result oflsm_str_ptras a C string.lsm_str_setfunction that serves the same purpose aslsm_str_overwrite, but does not free the previous string's contents; this to allow setting an empty stack-allocated string object for the first timeThese changes will make working with the
lsm_strlibrary much nicer.