AmendHub

jcs

/

subtext

/

amendments

/

bile.c

Amendments on June 9, 2022

bile: Revert in-place saves, keep 8k alignment, fix bug in bile_alloc

In bile_alloc, the initial last_pos is set to the header length, but
if there is only one object, we never add its length to last_pos.
This only happens when we have objects and then delete all of them,
leaving only the map object. Normally we'd either have 0 or 1+map.
Add canary to bile struct, verify it exists in every function so we
can check that we have a valid bile file and not a bogus pointer.
jcs made amendment 127 about 1 year ago

Amendments on June 6, 2022

bile: Sync with upstream, support in-place updates

jcs made amendment 120 about 1 year ago

Amendments on June 3, 2022

bile: Sync with other projects, drop bubble sort in bile_alloc

jcs made amendment 115 about 1 year ago

Amendments on June 1, 2022

bile: Allow shallow unmarshalling

When quickly iterating over a bunch of objects, it's useful to be
able to avoid all the malloc/free of unmarshalling objects that have
dynamic-length strings
jcs made amendment 111 about 1 year ago

Amendments on May 23, 2022

bile: Correct size calculation in bile_unmarshall_object

The full size has already been written into the data being
unmarshalled, no need to multiply it by the field size
jcs made amendment 106 about 1 year ago

Amendments on May 20, 2022

bile: Fix function name in panic

I wish THINK C supported __func__
jcs made amendment 104 about 1 year ago

Amendments on May 18, 2022

bile: Let negative size of marshalled field be a multiplier

Instead of just using -1, multiply the size taken from the other field
by the negative value of this size, like -4 for an array of longs with
the number of longs stored in the other field
jcs made amendment 102 about 1 year ago

Amendments on March 3, 2022

bile: Add bile_sorted_ids_by_type

jcs made amendment 84 over 2 years ago

Amendments on March 1, 2022

bile: Correct error message

Would be nice if THINK C supported __func__...
jcs made amendment 82 over 2 years ago

Amendments on January 29, 2022

bile: Add object marshalling

jcs made amendment 67 over 2 years ago

Amendments on January 22, 2022

bile: Sync with upstream

jcs made amendment 58 over 2 years ago

Amendments on January 18, 2022


Amendments on January 14, 2022

bile: Even more API changes

jcs made amendment 50 over 2 years ago

Amendments on January 6, 2022

bile: More API changes

jcs made amendment 49 over 2 years ago

Amendments on January 5, 2022

bile: A more Unix-like API, with bile_error like errno

jcs made amendment 47 over 2 years ago

Amendments on January 4, 2022

bile: More work

jcs made amendment 46 over 2 years ago

Amendments on January 3, 2022

bile: Add initial binary file API

This will eventually replace resource files for the backend which are
not well-suited for writing new/modified records
jcs made amendment 44 over 2 years ago