changeset 5:a6ab6d9c0dac

readme: fix typos, str: remove outdated note our allocator is actually fairly smart now :)
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Dec 2023 16:26:46 -0500
parents c2408abb258a
children 7137fbac0b85
files README.md src/str.c
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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))