aboutsummaryrefslogtreecommitdiffstats
path: root/src/env.h
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02[WIP] Tighten up reader node managementDavid Robillard1-2/+2
[WIP] Broken on 32-bit This makes the reader stack manipulations stricter, to make the code more regular and avoid redundant work and bad cache activity. Now, functions that push node headers and their bodies are responsible for (more or less) immediately pushing any trailing null bytes required for termination and alignment. This makes the writes to the node in the stack more local, ensures nodes are terminated as early as possible (to reduce the risk of using non-terminated strings), and avoids the need to calculate aligned stack allocations.
2023-12-02Use ZixStringView directlyDavid Robillard1-7/+7
2023-12-02[WIP] Remove SERD_CURIE node datatype entirelyDavid Robillard1-10/+0
2023-12-02[WIP] Expand URIs in readerDavid Robillard1-0/+8
This expands relative and prefixed URIs in the reader on the stack, rather than passing them to the caller to be dealt with. This pushes these context-full forms to the edge of the system as much as possible to minimise the headaches they can cause. Towards having stricter guarantees about nodes and eliminating the CURIE node type altogether.
2023-12-02Use Zix attributes directlyDavid Robillard1-2/+2
2023-12-02Make serd_env_expand_in_place() take a string view instead of a nodeDavid Robillard1-1/+1
2023-12-02Simplify SerdEnv APIDavid Robillard1-0/+24
2023-12-02Simplify node construction APIDavid Robillard1-0/+14