Commit 1f0e845

mo khan <mo.khan@gmail.com>
2021-01-13 00:03:49
add sections
1 parent d46fdbe
Changed files (1)
kilo.c
@@ -1,3 +1,5 @@
+/*** includes ***/
+
 #include <ctype.h>
 #include <errno.h>
 #include <stdio.h>
@@ -5,8 +7,12 @@
 #include <termios.h>
 #include <unistd.h>
 
+/*** data ***/
+
 struct termios orig_termios;
 
+/*** terminal ***/
+
 void die(const char *s) {
   perror(s);
   exit(1);
@@ -32,6 +38,8 @@ void enable_raw_mode() {
   if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw) == -1) die("tcsetattr");
 }
 
+/*** init ***/
+
 int main() {
   enable_raw_mode();