Skip to content

Commit 3017694

Browse files
committed
update kklibc
1 parent 8a852d0 commit 3017694

File tree

8 files changed

+24
-13
lines changed

8 files changed

+24
-13
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
commit 8a852d0488bd393fbc6c654f9854cd8c4626c122
2+
Author: Alexeev Bronislav <[email protected]>
3+
Date: Mon Sep 1 02:57:42 2025 +0700
4+
5+
update readme
6+
17
commit 8439ee4ae7050884e59307cd18c8db3779218440
28
Author: Alexeev Bronislav <[email protected]>
39
Date: Mon Sep 1 02:51:27 2025 +0700

src/kernel/kklibc/assert.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef KKLIBC_ASSERT_H
2+
#define KKLIBC_ASSERT_H
3+
14
#include "stdio.h"
25

36
void __assert(char* expr, char* waited_expr) {
@@ -7,3 +10,5 @@ void __assert(char* expr, char* waited_expr) {
710
printf("%s != %s\n", expr, waited_expr);
811
}
912
}
13+
14+
#endif

src/kernel/kklibc/ctypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Description: null
66
* ----------------------------------------------------------------------------*/
77

8-
#ifndef CTYPES_H
9-
#define CTYPES_H
8+
#ifndef KKLIBC_CTYPES_H
9+
#define KKLIBC_CTYPES_H
1010

1111
typedef unsigned int u32;
1212
typedef int s32;

src/kernel/kklibc/math.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Title: Набор математических функций и алгоритмов (заголовчный файл)
55
* Description: null
66
* ----------------------------------------------------------------------------*/
7-
#ifndef MATH_H
8-
#define MATH_H
7+
#ifndef KKLIBC_MATH_H
8+
#define KKLIBC_MATH_H
99

1010
#include "ctypes.h"
1111

src/kernel/kklibc/mem.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Description: null
66
* ----------------------------------------------------------------------------*/
77

8-
#ifndef MEM_H
9-
#define MEM_H
8+
#ifndef KKLIBC_MEM_H
9+
#define KKLIBC_MEM_H
1010

1111
#include "ctypes.h"
1212

src/kernel/kklibc/paging.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef PAGING_H
2-
#define PAGING_H
1+
#ifndef KKLIBC_PAGING_H
2+
#define KKLIBC_PAGING_H
33

44
#include "../cpu/isr.h"
55
#include "ctypes.h"

src/kernel/kklibc/stdio.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Description: null
66
* ----------------------------------------------------------------------------*/
77

8-
#ifndef LIBC_STDIO_H
9-
#define LIBC_STDIO_H
8+
#ifndef KKLIBC_STDIO_H
9+
#define KKLIBC_STDIO_H
1010

1111
#include "../drivers/screen.h"
1212

@@ -44,4 +44,4 @@ void printf_colored(char* fmt, int color, ...);
4444
**/
4545
void printf_at(char* fmt, int col, int row, int color, ...);
4646

47-
#endif // LIBC_STDIO_H
47+
#endif // KKLIBC_STDIO_H

src/kernel/kklibc/stdlib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* Определяет функции для работы со строками, памятью,
77
* преобразованиями и управления системой.
88
* ---------------------------------------------------------------------------*/
9-
#ifndef STDLIB_H
10-
#define STDLIB_H
9+
#ifndef KKLIBC_STDLIB_H
10+
#define KKLIBC_STDLIB_H
1111

1212
#include "ctypes.h"
1313
#include "stdio.h"

0 commit comments

Comments
 (0)