From a632e72ed393e6834285c78e2175b657a125f1f1 Mon Sep 17 00:00:00 2001 From: fslongjin Date: Mon, 24 Jan 2022 23:11:10 +0800 Subject: [PATCH] =?UTF-8?q?:wrench:=20=E4=BF=AE=E6=94=B9=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E7=9B=B8=E5=85=B3=E7=9A=84=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/common/font.h | 4 +--- kernel/common/printk.h | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/kernel/common/font.h b/kernel/common/font.h index 1c8add4f..4f07fa22 100644 --- a/kernel/common/font.h +++ b/kernel/common/font.h @@ -1,6 +1,5 @@ -#ifndef __FONT_H__ -#define __FONT_H__ +#pragma once unsigned char font_ascii[256][16]= { @@ -316,5 +315,4 @@ unsigned char font_ascii[256][16]= }; -#endif diff --git a/kernel/common/printk.h b/kernel/common/printk.h index d3ff8003..50acbacc 100644 --- a/kernel/common/printk.h +++ b/kernel/common/printk.h @@ -2,8 +2,7 @@ // Created by longjin on 2022/1/21. // #pragma once -#ifndef PRINTK_H -#define PRINTK_H + #define PAD_ZERO 1 // 0填充 #define LEFT 2 // 靠左对齐 @@ -121,4 +120,3 @@ static void putchar(unsigned int *fb, int Xsize, int x, int y, unsigned int FRco int printk_color(unsigned int FRcolor, unsigned int BKcolor, const char*fmt, ...); -#endif \ No newline at end of file