Ignore:
Timestamp:
Sep 29, 2021, 10:46:52 PM (3 years ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
4b3b352
Parents:
218096f
Message:

Refactoring of string internals. Existing tests pass.

Adding tracking for multiple string heaps, or "scratchpads."
Cases of allocating across different pad contexts aren't implemented yet.
Adding basic controls to manage these contexts, which lead to expected assertion failures
at unimplemented cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/containers/string_res.hfa

    r218096f r0f781fb8  
    2727    HandleNode *flink;                                  // forward link
    2828    HandleNode *blink;                                  // backward link
     29    VbyteHeap *ulink;                   // upward link
    2930
    3031    char *s;                                            // pointer to byte string
     
    3233}; // HandleNode
    3334
    34 extern VbyteHeap * DEBUG_string_heap;
     35VbyteHeap * DEBUG_string_heap();
    3536size_t DEBUG_string_bytes_avail_until_gc( VbyteHeap * heap );
    3637const char * DEBUG_string_heap_start( VbyteHeap * heap );
Note: See TracChangeset for help on using the changeset viewer.