urbit
urbit copied to clipboard
u3: refactor cttp, http, lord, and newt modules to better share functionality
Reduce duplicated code in the following ways:
- Factor out functionality shared between
cttpandhttpmodules into a shared module that both can use without duplicating code. - Replace the in-place linked list implementation in
u3_hhedwithc3_list. - Replace the in-place linked list implementation in
u3_lordwithc3_list. - Pull
newtinterface into its own header file in preparation for replacing in-place linked list implementations innewtdata structures.
This is an ongoing process, but I'm putting this chunk of work up for review now so that the diff remains manageable for other eyes.
Test plan:
$ urbit -F zod
$ valgrind urbit zod
No new memory leaks or errors were reported when running under valgrind.