Fix inludes using IWYU
This commit is contained in:
parent
695dd854d6
commit
e3fb954aeb
4 changed files with 12 additions and 5 deletions
|
@ -1,5 +1,3 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "commands.h"
|
||||
#include "input.h"
|
||||
#include "kilo.h"
|
||||
|
|
|
@ -3,13 +3,15 @@
|
|||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "buffer.h"
|
||||
#include "kilo.h"
|
||||
#include "ui.h"
|
||||
#include "input.h"
|
||||
#include "kilo.h"
|
||||
#include "terminal.h"
|
||||
#include "ui.h"
|
||||
#include "utils.h"
|
||||
|
||||
void editor_init(char *filename);
|
||||
|
||||
|
|
|
@ -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 <stdlib.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "input.h"
|
||||
#include "kilo.h"
|
||||
#include "utils.h"
|
||||
#include "terminal.h"
|
||||
#include "utils.h"
|
||||
|
||||
ERRCODE terminal_enable_raw(void) {
|
||||
if (tcgetattr(STDIN_FILENO, &E.orig_termios) == -1)
|
||||
|
|
1
src/ui.c
1
src/ui.c
|
@ -2,6 +2,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "buffer.h"
|
||||
|
|
Reference in a new issue