# HG changeset patch # User Paper # Date 1703539606 18000 # Node ID a6ab6d9c0daca993cbafaf449e5573d8df5b61ca # Parent c2408abb258acec3b1e6d7613b51c5840e60124f readme: fix typos, str: remove outdated note our allocator is actually fairly smart now :) diff -r c2408abb258a -r a6ab6d9c0dac README.md --- a/README.md Mon Dec 25 16:24:16 2023 -0500 +++ b/README.md Mon Dec 25 16:26:46 2023 -0500 @@ -19,7 +19,7 @@ int main() { /* open the file */ - FILE* file = fopen("intensive care unit.TXT", "rb"); + FILE* file = fopen("MyProject.TXT", "rb"); if (!file) return 1; @@ -42,7 +42,7 @@ /* pass it to libedl */ EDL edl = EDL_parse(data, fsize + 1); - /* dump the EDL to */ + /* dump the EDL to a string */ char* edl_str = EDL_dump(edl); printf("%s\n", edl_str); free(edl_str); diff -r c2408abb258a -r a6ab6d9c0dac src/str.c --- a/src/str.c Mon Dec 25 16:24:16 2023 -0500 +++ b/src/str.c Mon Dec 25 16:26:46 2023 -0500 @@ -29,7 +29,6 @@ } int EDL_internal_string_append(EDL_internal_string* str, const char* data, const size_t length) { - /* this sucks, but I'm too lazy to write anything smarter. */ { size_t capacity = 1; while (capacity < (str->size + length + 1))