Archived
1
Fork 0

Fix inludes using IWYU

This commit is contained in:
Hadeed 2023-09-08 21:51:30 +05:00
parent 695dd854d6
commit e3fb954aeb
4 changed files with 12 additions and 5 deletions

View file

@ -1,5 +1,3 @@
#include <stdlib.h>
#include "commands.h" #include "commands.h"
#include "input.h" #include "input.h"
#include "kilo.h" #include "kilo.h"

View file

@ -3,13 +3,15 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h>
#include <unistd.h> #include <unistd.h>
#include "buffer.h" #include "buffer.h"
#include "kilo.h"
#include "ui.h"
#include "input.h" #include "input.h"
#include "kilo.h"
#include "terminal.h" #include "terminal.h"
#include "ui.h"
#include "utils.h"
void editor_init(char *filename); void editor_init(char *filename);

View file

@ -1,12 +1,18 @@
// IWYU pragma: no_include <bits/termios-c_cc.h>
// IWYU pragma: no_include <bits/termios-c_cflag.h>
// IWYU pragma: no_include <bits/termios-c_iflag.h>
// IWYU pragma: no_include <bits/termios-c_oflag.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <termios.h> #include <termios.h>
#include <unistd.h> #include <unistd.h>
#include "input.h"
#include "kilo.h" #include "kilo.h"
#include "utils.h"
#include "terminal.h" #include "terminal.h"
#include "utils.h"
ERRCODE terminal_enable_raw(void) { ERRCODE terminal_enable_raw(void) {
if (tcgetattr(STDIN_FILENO, &E.orig_termios) == -1) if (tcgetattr(STDIN_FILENO, &E.orig_termios) == -1)

View file

@ -2,6 +2,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h>
#include <unistd.h> #include <unistd.h>
#include "buffer.h" #include "buffer.h"