Use libffi for library calls

Use libffi to portably call arbitrary functions at runtime, rather than
forcing library functions to use a standard prototype.
This commit is contained in:
Nunuhara Cabbage
2020-01-07 22:48:29 -08:00
parent f1cc9082b3
commit 6a4d11f3de
30 changed files with 1425 additions and 1522 deletions
+1
View File
@@ -50,6 +50,7 @@ void string_append_cstr(struct string **a, const char *b, size_t b_size);
void string_push_back(struct string **s, int c);
void string_pop_back(struct string **s);
void string_erase(struct string **s, int index);
void string_clear(struct string *s);
// queries
int string_find(const struct string *haystack, const struct string *needle);