utf8 processing without struct
This commit is contained in:
+2
-4
@@ -1,9 +1,7 @@
|
||||
#include "../include/append_buffer.h"
|
||||
|
||||
extern struct editorConfig E;
|
||||
|
||||
void abAppend(struct abuf *ab, const unsigned char *s, int len) {
|
||||
unsigned char *new = realloc(ab->b, ab->len + len);
|
||||
void abAppend(struct abuf *ab, const char *s, int len) {
|
||||
char *new = realloc(ab->b, ab->len + len);
|
||||
|
||||
if (new == NULL) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user