Remove mmio, port io, and debug headers from kernel side, and keep them on the libc. Simplify debugging functions. Add missing comments in several locations. Move ANSI color definitions in a separate file.
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
||||
#include <termios.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <debug.h>
|
||||
#include <io/debug.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
#include <limits.h>
|
||||
#include <strerror.h>
|
||||
#include <ctype.h>
|
||||
#include <debug.h>
|
||||
#include <io/debug.h>
|
||||
|
||||
static inline int is_number(char *s)
|
||||
{
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
#include <pwd.h>
|
||||
#include <strerror.h>
|
||||
#include <stdlib.h>
|
||||
#include <debug.h>
|
||||
#include <io/debug.h>
|
||||
|
||||
#include "ansi_colors.h"
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <libgen.h>
|
||||
#include <sys/bitops.h>
|
||||
#include <debug.h>
|
||||
#include <io/debug.h>
|
||||
|
||||
#define FLAG_L (1U << 0U)
|
||||
#define FLAG_A (1U << 1U)
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
#include <libgen.h>
|
||||
#include <sys/stat.h>
|
||||
#include <signal.h>
|
||||
#include <debug.h>
|
||||
#include <io/debug.h>
|
||||
#include <sys/bitops.h>
|
||||
#include "stdbool.h"
|
||||
#include "stddef.h"
|
||||
|
||||
Reference in New Issue
Block a user