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/style/style.c | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'plugins/style/style.c') diff --git a/plugins/style/style.c b/plugins/style/style.c index 3aa5144..1010506 100644 --- a/plugins/style/style.c +++ b/plugins/style/style.c @@ -1,22 +1,23 @@ #include -#include #include +#include #define STYLE_N 1393 + 1 -void read_style_js(char* string){ - FILE *fp=fopen("/home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/plugins/style/style.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_style_js(char* string) +{ + FILE* fp = fopen("/home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/plugins/style/style.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