Ticket #1083 (closed patch: wontfix)
Managed cstrings to avoid the need of Parrot_str_free_cstring
Reported by: | NotFound | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | core | Version: | 1.6.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
This is another attempt to solve the problems of Parrot_str_free_cstring (need to ensure to call it in all code paths, lose the cstring some called function unexpectedly throws...).
It adds the new function Parrot_str_to_cstring_managed that returns some PMC (a ManagedStruct now, but this is an implementation detail) that contains the cstring, providing access to it via vtable get_pointer and frees it when destroyed.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.