From 3483af0f0f605a01b9524aeb1e333cda59ba35f6 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Tue, 28 Mar 2023 10:16:14 -0600 Subject: style: enforce webkit style for plugins $ clang-format -style=webkit -i */.c $ clang-format -style=webkit -i */*/.c --- plugins/readability/readability.c | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'plugins/readability') diff --git a/plugins/readability/readability.c b/plugins/readability/readability.c index 2afc63b..bc2f02f 100644 --- a/plugins/readability/readability.c +++ b/plugins/readability/readability.c @@ -1,22 +1,23 @@ #include -#include #include +#include #define READABILITY_N 85133 + 1000 -void read_readability_js(char* string){ - FILE *fp=fopen("/home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/plugins/readability/readability.js", "r"); - if (!fp) { // fp is NULL, fopen failed - fprintf(stderr, "Failed to open file\n"); - string=NULL; - return; - } - int i=0; - int c; - while ((c = fgetc(fp)) != EOF){ - string[i++] = c; - } - string[i]='\0'; - fclose(fp); +void read_readability_js(char* string) +{ + FILE* fp = fopen("/home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/plugins/readability/readability.js", "r"); + if (!fp) { // fp is NULL, fopen failed + fprintf(stderr, "Failed to open file\n"); + string = NULL; + return; + } + int i = 0; + int c; + while ((c = fgetc(fp)) != EOF) { + string[i++] = c; + } + string[i] = '\0'; + fclose(fp); } /* -- cgit v1.2.3