Cleanup and document core APIs in C, JS, and Python.

This commit is contained in:
Joshua Bemenderfer
2023-02-19 14:53:59 -05:00
parent 38068b24df
commit 3f6c475756
8 changed files with 134 additions and 328 deletions

View File

@@ -9,8 +9,7 @@ void linedata_basic (char indent) {
size_t bufsize = 32;
ssize_t c_read = 0;
terrace_linedata_t line_data;
line_data.indent = indent;
terrace_linedata_t line_data = terrace_create_line_data(indent);
while(c_read = getline(&line, &bufsize, stdin)) {
if (c_read == -1) break;
@@ -29,8 +28,7 @@ void linedata_head_tail (char indent) {
size_t bufsize = 32;
ssize_t c_read = 0;
terrace_linedata_t line_data;
line_data.indent = indent;
terrace_linedata_t line_data = terrace_create_line_data(indent);
char *head;
char *tail;