shithub: tinygl

Download patch

ref: c007eedfa2fa72e5598dc764ac9f3f7b82b697fc
parent: 3e9520551f7c8ab4f6dff999a9ea3678dde7c23a
author: gek <6974902+gordonfreeman424@users.noreply.github.com>
date: Wed Jul 7 13:46:54 EDT 2021

Automatic commit.

--- a/include-demo/stringutil.h
+++ b/include-demo/stringutil.h
@@ -5,8 +5,8 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <ctype.h>
+#include <stddef.h>
 
-
 #ifndef STRUTIL_ALLOC
 #define STRUTIL_ALLOC(s) malloc(s)
 #endif
@@ -178,7 +178,7 @@
 */
 static char* strencodealloc(const char* inbuf, const char** tokens, unsigned long ntokens, char esc, char tokmark){
 	unsigned long lenin;
-	char c; unsigned long i = 0; unsigned long j;
+	unsigned long i = 0; unsigned long j;
 	char c_str[512];
 	char* out = NULL;
 
@@ -494,7 +494,7 @@
 }
 
 static strll* parse_matched(strll* current_node, const char* tl, const char* tr){
-	strll* current_child; strll* child_old; strll* right_old;
+	strll* child_old; strll* right_old;
 	long current_tl_location; long counter = 1;
 	long current_tr_location; long start_tl_location;
 	long len_tl;
@@ -518,7 +518,6 @@
 	if(current_tl_location == -1){
 		return current_node;
 	}
-	current_child = current_node->child;
 	child_old = current_node->child;
 	current_node->child = STRUTIL_CALLOC(1, sizeof(strll));
 	current_node->child->right = child_old;