mirror of
https://github.com/tailix/libkernaux.git
synced 2025-06-30 18:42:46 -04:00
Revert the rename
This commit is contained in:
parent
e2706ccc5b
commit
c4698fb204
36 changed files with 38 additions and 42 deletions
|
@ -26,7 +26,3 @@
|
||||||
2022-12-05 Alex Kotov <kotovalexarian@gmail.com>
|
2022-12-05 Alex Kotov <kotovalexarian@gmail.com>
|
||||||
|
|
||||||
libkernaux 0.6.1 released
|
libkernaux 0.6.1 released
|
||||||
|
|
||||||
2022-12-03 Alex Kotov <kotovalexarian@gmail.com>
|
|
||||||
|
|
||||||
* include/kernaux/assert.h: Rename to "include/kernaux/panic.h"
|
|
||||||
|
|
|
@ -30,10 +30,10 @@ lib_LTLIBRARIES = libkernaux.la
|
||||||
|
|
||||||
libkernaux_la_LIBADD =
|
libkernaux_la_LIBADD =
|
||||||
libkernaux_la_SOURCES = \
|
libkernaux_la_SOURCES = \
|
||||||
|
src/assert.c \
|
||||||
src/generic/display.c \
|
src/generic/display.c \
|
||||||
src/generic/malloc.c \
|
src/generic/malloc.c \
|
||||||
src/generic/mutex.c \
|
src/generic/mutex.c
|
||||||
src/panic.c
|
|
||||||
|
|
||||||
########
|
########
|
||||||
# libc #
|
# libc #
|
||||||
|
|
|
@ -46,7 +46,7 @@ zero). Work-in-progress APIs can change at any time.
|
||||||
* [Example: CONTAINER\_OF](/examples/macro_container_of.c)
|
* [Example: CONTAINER\_OF](/examples/macro_container_of.c)
|
||||||
* [Example: BITS](/examples/macro_bits.c)
|
* [Example: BITS](/examples/macro_bits.c)
|
||||||
* [Example: STATIC\_TEST\*](/examples/macro_static_test.c)
|
* [Example: STATIC\_TEST\*](/examples/macro_static_test.c)
|
||||||
* [Panic & assertions](/include/kernaux/panic.h) (*non-breaking since* **?.?.?**)
|
* [Assertions](/include/kernaux/assert.h) (*non-breaking since* **?.?.?**)
|
||||||
* [Example: Assert](/examples/assert.c)
|
* [Example: Assert](/examples/assert.c)
|
||||||
* [Example: Panic](/examples/panic.c)
|
* [Example: Panic](/examples/panic.c)
|
||||||
* Stack trace *(planned)*
|
* Stack trace *(planned)*
|
||||||
|
@ -110,7 +110,7 @@ zero). Work-in-progress APIs can change at any time.
|
||||||
### Global variables
|
### Global variables
|
||||||
|
|
||||||
```c
|
```c
|
||||||
// in <kernaux/panic.h>
|
// in <kernaux/assert.h>
|
||||||
void (*kernaux_assert_cb)(const char *file, int line, const char *msg)
|
void (*kernaux_assert_cb)(const char *file, int line, const char *msg)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ AC_CANONICAL_HOST
|
||||||
|
|
||||||
AC_CONFIG_MACRO_DIRS([m4])
|
AC_CONFIG_MACRO_DIRS([m4])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_CONFIG_SRCDIR([src/panic.c])
|
AC_CONFIG_SRCDIR([src/assert.c])
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
examples/Makefile
|
examples/Makefile
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#define KERNAUX_DEBUG
|
#define KERNAUX_DEBUG
|
||||||
#include <kernaux/panic.h>
|
#include <kernaux/assert.h>
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <kernaux/panic.h>
|
#include <kernaux/assert.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#define KERNAUX_DEBUG
|
#define KERNAUX_DEBUG
|
||||||
#include <kernaux/panic.h>
|
#include <kernaux/assert.h>
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
|
@ -9,6 +9,7 @@ nobase_include_HEADERS = \
|
||||||
kernaux/asm/riscv64.h \
|
kernaux/asm/riscv64.h \
|
||||||
kernaux/asm/x86_64.h \
|
kernaux/asm/x86_64.h \
|
||||||
kernaux/asm/x86.h \
|
kernaux/asm/x86.h \
|
||||||
|
kernaux/assert.h \
|
||||||
kernaux/cmdline.h \
|
kernaux/cmdline.h \
|
||||||
kernaux/elf.h \
|
kernaux/elf.h \
|
||||||
kernaux/free_list.h \
|
kernaux/free_list.h \
|
||||||
|
@ -23,7 +24,6 @@ nobase_include_HEADERS = \
|
||||||
kernaux/multiboot2.h \
|
kernaux/multiboot2.h \
|
||||||
kernaux/multiboot2/header_macro.h \
|
kernaux/multiboot2/header_macro.h \
|
||||||
kernaux/ntoa.h \
|
kernaux/ntoa.h \
|
||||||
kernaux/panic.h \
|
|
||||||
kernaux/pfa.h \
|
kernaux/pfa.h \
|
||||||
kernaux/printf.h \
|
kernaux/printf.h \
|
||||||
kernaux/printf_fmt.h \
|
kernaux/printf_fmt.h \
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#include <kernaux/arch/i386.h>
|
#include <kernaux/arch/i386.h>
|
||||||
#include <kernaux/arch/riscv64.h>
|
#include <kernaux/arch/riscv64.h>
|
||||||
#include <kernaux/arch/x86_64.h>
|
#include <kernaux/arch/x86_64.h>
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/cmdline.h>
|
#include <kernaux/cmdline.h>
|
||||||
#include <kernaux/elf.h>
|
#include <kernaux/elf.h>
|
||||||
#include <kernaux/free_list.h>
|
#include <kernaux/free_list.h>
|
||||||
|
@ -18,7 +19,6 @@
|
||||||
#include <kernaux/multiboot2.h>
|
#include <kernaux/multiboot2.h>
|
||||||
#include <kernaux/multiboot2/header_macro.h>
|
#include <kernaux/multiboot2/header_macro.h>
|
||||||
#include <kernaux/ntoa.h>
|
#include <kernaux/ntoa.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
#include <kernaux/pfa.h>
|
#include <kernaux/pfa.h>
|
||||||
#include <kernaux/printf.h>
|
#include <kernaux/printf.h>
|
||||||
#include <kernaux/printf_fmt.h>
|
#include <kernaux/printf_fmt.h>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef KERNAUX_INCLUDED_PANIC
|
#ifndef KERNAUX_INCLUDED_ASSERT
|
||||||
#define KERNAUX_INCLUDED_PANIC
|
#define KERNAUX_INCLUDED_ASSERT
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
|
@ -3,7 +3,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <kernaux/arch/i386.h>
|
#include <kernaux/arch/i386.h>
|
||||||
#include <kernaux/panic.h>
|
#include <kernaux/assert.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <kernaux/panic.h>
|
#include <kernaux/assert.h>
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/cmdline.h>
|
#include <kernaux/cmdline.h>
|
||||||
#include <kernaux/macro.h>
|
#include <kernaux/macro.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/elf.h>
|
#include <kernaux/elf.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
bool KernAux_ELF_Header_is_valid(
|
bool KernAux_ELF_Header_is_valid(
|
||||||
const struct KernAux_ELF_Header *const header
|
const struct KernAux_ELF_Header *const header
|
||||||
|
|
|
@ -9,11 +9,11 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/free_list.h>
|
#include <kernaux/free_list.h>
|
||||||
#include <kernaux/generic/malloc.h>
|
#include <kernaux/generic/malloc.h>
|
||||||
#include <kernaux/generic/mutex.h>
|
#include <kernaux/generic/mutex.h>
|
||||||
#include <kernaux/macro.h>
|
#include <kernaux/macro.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <kernaux/panic.h>
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/generic/display.h>
|
#include <kernaux/generic/display.h>
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/generic/malloc.h>
|
#include <kernaux/generic/malloc.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/generic/mutex.h>
|
#include <kernaux/generic/mutex.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
void KernAux_Mutex_lock(const KernAux_Mutex mutex)
|
void KernAux_Mutex_lock(const KernAux_Mutex mutex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/mbr.h>
|
#include <kernaux/mbr.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/memmap.h>
|
#include <kernaux/memmap.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/multiboot2.h>
|
#include <kernaux/multiboot2.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/multiboot2.h>
|
#include <kernaux/multiboot2.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/generic/display.h>
|
#include <kernaux/generic/display.h>
|
||||||
#include <kernaux/macro.h>
|
#include <kernaux/macro.h>
|
||||||
#include <kernaux/multiboot2.h>
|
#include <kernaux/multiboot2.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/multiboot2.h>
|
#include <kernaux/multiboot2.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#ifdef WITH_MEMMAP
|
#ifdef WITH_MEMMAP
|
||||||
#include <kernaux/memmap.h>
|
#include <kernaux/memmap.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/multiboot2.h>
|
#include <kernaux/multiboot2.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/multiboot2.h>
|
#include <kernaux/multiboot2.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/macro.h>
|
#include <kernaux/macro.h>
|
||||||
#include <kernaux/multiboot2.h>
|
#include <kernaux/multiboot2.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/ntoa.h>
|
#include <kernaux/ntoa.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/macro.h>
|
#include <kernaux/macro.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
#include <kernaux/pfa.h>
|
#include <kernaux/pfa.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <kernaux/panic.h>
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/printf.h>
|
#include <kernaux/printf.h>
|
||||||
#include <kernaux/printf_fmt.h>
|
#include <kernaux/printf_fmt.h>
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <kernaux/panic.h>
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/printf_fmt.h>
|
#include <kernaux/printf_fmt.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/ntoa.h>
|
#include <kernaux/ntoa.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
#include <kernaux/units.h>
|
#include <kernaux/units.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <kernaux/panic.h>
|
#include <kernaux/assert.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
|
|
||||||
#define KERNAUX_ACCESS_PRIVATE
|
#define KERNAUX_ACCESS_PRIVATE
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/macro.h>
|
#include <kernaux/macro.h>
|
||||||
#include <kernaux/memmap.h>
|
#include <kernaux/memmap.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/ntoa.h>
|
#include <kernaux/ntoa.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <kernaux/assert.h>
|
||||||
#include <kernaux/macro.h>
|
#include <kernaux/macro.h>
|
||||||
#include <kernaux/panic.h>
|
|
||||||
#include <kernaux/pfa.h>
|
#include <kernaux/pfa.h>
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue