aboutsummaryrefslogtreecommitdiff
path: root/plugins/style
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-03-28 10:16:14 -0600
committerNunoSempere <nuno.sempere@protonmail.com>2023-03-28 10:16:14 -0600
commit3483af0f0f605a01b9524aeb1e333cda59ba35f6 (patch)
treee584b53ffc5db25ccf68002f8b4f075ec734b108 /plugins/style
parentec97a8f3f384d212ae5cb1aa076ffdf29427b897 (diff)
style: enforce webkit style for plugins
$ clang-format -style=webkit -i */.c $ clang-format -style=webkit -i */*/.c
Diffstat (limited to 'plugins/style')
-rw-r--r--plugins/style/style.c31
1 files changed, 16 insertions, 15 deletions
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 <stdio.h>
-#include <string.h>
#include <stdlib.h>
+#include <string.h>
#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);
}
/*