1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 06:56:44 +02:00

modularize string arrays for line completion

Instead of using various different forms of string arrays and having to handle them
differently for string completion, we now always use char pointer arrays. This allows
us to remove some large stack allocations, remove a bunch of confusing defines that
keep track of global array sizes, and generally unclutters the code so it's easier
to read.
This commit is contained in:
jfreegman
2020-10-29 20:28:09 -04:00
parent 2b43340c90
commit 7560bc9547
13 changed files with 203 additions and 237 deletions

View File

@ -142,6 +142,7 @@ int ID_to_QRcode_png(const char *tox_id, const char *outfile)
if (row == NULL) {
fclose(fp);
QRcode_free(qr_obj);
return -1;
}