Revert the rename

This commit is contained in:
Alex Kotov 2022-12-13 08:09:22 +04:00
parent e2706ccc5b
commit c4698fb204
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
36 changed files with 38 additions and 42 deletions

View File

@ -26,7 +26,3 @@
2022-12-05 Alex Kotov <kotovalexarian@gmail.com>
libkernaux 0.6.1 released
2022-12-03 Alex Kotov <kotovalexarian@gmail.com>
* include/kernaux/assert.h: Rename to "include/kernaux/panic.h"

View File

@ -30,10 +30,10 @@ lib_LTLIBRARIES = libkernaux.la
libkernaux_la_LIBADD =
libkernaux_la_SOURCES = \
src/assert.c \
src/generic/display.c \
src/generic/malloc.c \
src/generic/mutex.c \
src/panic.c
src/generic/mutex.c
########
# libc #

View File

@ -46,7 +46,7 @@ zero). Work-in-progress APIs can change at any time.
* [Example: CONTAINER\_OF](/examples/macro_container_of.c)
* [Example: BITS](/examples/macro_bits.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: Panic](/examples/panic.c)
* Stack trace *(planned)*
@ -110,7 +110,7 @@ zero). Work-in-progress APIs can change at any time.
### Global variables
```c
// in <kernaux/panic.h>
// in <kernaux/assert.h>
void (*kernaux_assert_cb)(const char *file, int line, const char *msg)
```

View File

@ -22,7 +22,7 @@ AC_CANONICAL_HOST
AC_CONFIG_MACRO_DIRS([m4])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/panic.c])
AC_CONFIG_SRCDIR([src/assert.c])
AC_CONFIG_FILES([
Makefile
examples/Makefile

View File

@ -1,5 +1,5 @@
#define KERNAUX_DEBUG
#include <kernaux/panic.h>
#include <kernaux/assert.h>
#include <assert.h>
#include <stddef.h>

View File

@ -2,7 +2,7 @@
#include "config.h"
#endif
#include <kernaux/panic.h>
#include <kernaux/assert.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,5 +1,5 @@
#define KERNAUX_DEBUG
#include <kernaux/panic.h>
#include <kernaux/assert.h>
#include <assert.h>
#include <stddef.h>

View File

@ -9,6 +9,7 @@ nobase_include_HEADERS = \
kernaux/asm/riscv64.h \
kernaux/asm/x86_64.h \
kernaux/asm/x86.h \
kernaux/assert.h \
kernaux/cmdline.h \
kernaux/elf.h \
kernaux/free_list.h \
@ -23,7 +24,6 @@ nobase_include_HEADERS = \
kernaux/multiboot2.h \
kernaux/multiboot2/header_macro.h \
kernaux/ntoa.h \
kernaux/panic.h \
kernaux/pfa.h \
kernaux/printf.h \
kernaux/printf_fmt.h \

View File

@ -6,6 +6,7 @@
#include <kernaux/arch/i386.h>
#include <kernaux/arch/riscv64.h>
#include <kernaux/arch/x86_64.h>
#include <kernaux/assert.h>
#include <kernaux/cmdline.h>
#include <kernaux/elf.h>
#include <kernaux/free_list.h>
@ -18,7 +19,6 @@
#include <kernaux/multiboot2.h>
#include <kernaux/multiboot2/header_macro.h>
#include <kernaux/ntoa.h>
#include <kernaux/panic.h>
#include <kernaux/pfa.h>
#include <kernaux/printf.h>
#include <kernaux/printf_fmt.h>

View File

@ -1,5 +1,5 @@
#ifndef KERNAUX_INCLUDED_PANIC
#define KERNAUX_INCLUDED_PANIC
#ifndef KERNAUX_INCLUDED_ASSERT
#define KERNAUX_INCLUDED_ASSERT
#ifdef __cplusplus
extern "C" {

View File

@ -3,7 +3,7 @@
#endif
#include <kernaux/arch/i386.h>
#include <kernaux/panic.h>
#include <kernaux/assert.h>
#include <string.h>

View File

@ -2,7 +2,7 @@
#include "config.h"
#endif
#include <kernaux/panic.h>
#include <kernaux/assert.h>
#include <stddef.h>

View File

@ -2,9 +2,9 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/cmdline.h>
#include <kernaux/macro.h>
#include <kernaux/panic.h>
#include <stddef.h>
#include <string.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/elf.h>
#include <kernaux/panic.h>
bool KernAux_ELF_Header_is_valid(
const struct KernAux_ELF_Header *const header

View File

@ -9,11 +9,11 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/free_list.h>
#include <kernaux/generic/malloc.h>
#include <kernaux/generic/mutex.h>
#include <kernaux/macro.h>
#include <kernaux/panic.h>
#include <stddef.h>
#include <stdint.h>

View File

@ -2,7 +2,7 @@
#include "config.h"
#endif
#include <kernaux/panic.h>
#include <kernaux/assert.h>
#include <kernaux/generic/display.h>
#include <stdarg.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/generic/malloc.h>
#include <kernaux/panic.h>
#include <stddef.h>
#include <string.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/generic/mutex.h>
#include <kernaux/panic.h>
void KernAux_Mutex_lock(const KernAux_Mutex mutex)
{

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/mbr.h>
#include <kernaux/panic.h>
#include <stdbool.h>
#include <stddef.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/memmap.h>
#include <kernaux/panic.h>
#include <stdbool.h>
#include <stddef.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/multiboot2.h>
#include <kernaux/panic.h>
#include <stddef.h>
#include <stdint.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/multiboot2.h>
#include <kernaux/panic.h>
#include <stdbool.h>
#include <stddef.h>

View File

@ -2,10 +2,10 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/generic/display.h>
#include <kernaux/macro.h>
#include <kernaux/multiboot2.h>
#include <kernaux/panic.h>
#include <stddef.h>
#include <stdint.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/multiboot2.h>
#include <kernaux/panic.h>
#ifdef WITH_MEMMAP
#include <kernaux/memmap.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/multiboot2.h>
#include <kernaux/panic.h>
#include <stddef.h>
#include <stdint.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/multiboot2.h>
#include <kernaux/panic.h>
#include <stdbool.h>
#include <stddef.h>

View File

@ -2,9 +2,9 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/macro.h>
#include <kernaux/multiboot2.h>
#include <kernaux/panic.h>
#include <stddef.h>
#include <stdint.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/ntoa.h>
#include <kernaux/panic.h>
#include <stddef.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/macro.h>
#include <kernaux/panic.h>
#include <kernaux/pfa.h>
#include <string.h>

View File

@ -13,7 +13,7 @@
#include "config.h"
#endif
#include <kernaux/panic.h>
#include <kernaux/assert.h>
#include <kernaux/printf.h>
#include <kernaux/printf_fmt.h>

View File

@ -9,7 +9,7 @@
#include "config.h"
#endif
#include <kernaux/panic.h>
#include <kernaux/assert.h>
#include <kernaux/printf_fmt.h>
#include <ctype.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/ntoa.h>
#include <kernaux/panic.h>
#include <kernaux/units.h>
#include <string.h>

View File

@ -2,7 +2,7 @@
#include "config.h"
#endif
#include <kernaux/panic.h>
#include <kernaux/assert.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -4,9 +4,9 @@
#define KERNAUX_ACCESS_PRIVATE
#include <kernaux/assert.h>
#include <kernaux/macro.h>
#include <kernaux/memmap.h>
#include <kernaux/panic.h>
#include <assert.h>
#include <stdbool.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/ntoa.h>
#include <kernaux/panic.h>
#include <assert.h>
#include <setjmp.h>

View File

@ -2,8 +2,8 @@
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/macro.h>
#include <kernaux/panic.h>
#include <kernaux/pfa.h>
#include <assert.h>