From 43cc9408dba9932a2ffe7f8ac674fac7dd156fa6 Mon Sep 17 00:00:00 2001 From: masoud bolhassani Date: Fri, 4 Oct 2019 23:34:14 +0300 Subject: [PATCH 1/4] style change --- kilo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kilo.c b/kilo.c index 9490a77..3a02bdd 100644 --- a/kilo.c +++ b/kilo.c @@ -1244,8 +1244,7 @@ void initEditor(void) { E.filename = NULL; E.syntax = NULL; if (getWindowSize(STDIN_FILENO,STDOUT_FILENO, - &E.screenrows,&E.screencols) == -1) - { + &E.screenrows,&E.screencols) == -1){ perror("Unable to query the screen for size (columns / rows)"); exit(1); } From 577728e04e5a78515b5e292eacfd2bc52c62afb3 Mon Sep 17 00:00:00 2001 From: masoud bolhassani Date: Sat, 5 Oct 2019 19:21:15 +0300 Subject: [PATCH 2/4] minor style --- kilo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kilo.c b/kilo.c index 3a02bdd..7feafa1 100644 --- a/kilo.c +++ b/kilo.c @@ -87,7 +87,7 @@ typedef struct erow { } erow; typedef struct hlcolor { - int r,g,b; + int r, g, b; } hlcolor; struct editorConfig { From da2f2596f169d916316d855e3bad1448de9ddee9 Mon Sep 17 00:00:00 2001 From: masoud bolhassani Date: Sat, 5 Oct 2019 19:35:19 +0300 Subject: [PATCH 3/4] minor style --- kilo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kilo.c b/kilo.c index 7feafa1..97289a1 100644 --- a/kilo.c +++ b/kilo.c @@ -87,7 +87,7 @@ typedef struct erow { } erow; typedef struct hlcolor { - int r, g, b; + int r, g, b; } hlcolor; struct editorConfig { From 3f1c880f463eb60edfbf7aa29dc94fa9ea663015 Mon Sep 17 00:00:00 2001 From: masoud bolhassani Date: Sat, 5 Oct 2019 21:39:20 +0300 Subject: [PATCH 4/4] warining remove --- kilo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kilo.c b/kilo.c index 97289a1..0398fb4 100644 --- a/kilo.c +++ b/kilo.c @@ -36,6 +36,7 @@ #define _BSD_SOURCE #define _GNU_SOURCE +#define _DEFAULT_SOURCE #include #include @@ -50,6 +51,7 @@ #include #include #include +#include /* Syntax highlight types */ #define HL_NORMAL 0