Main: move libc to "libc/"

This commit is contained in:
Alex Kotov 2022-06-08 06:20:08 +03:00
parent ea8ef8fc95
commit 044e3a24c2
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
9 changed files with 13 additions and 12 deletions

4
.gitignore vendored
View File

@ -35,7 +35,7 @@
/Makefile.in
/include/Makefile.in
/libc/Makefile.in
/libc/include/Makefile.in
########################
# To build out of root #
@ -91,7 +91,7 @@
/Makefile
/include/Makefile
/libc/Makefile
/libc/include/Makefile
/include/kernaux.h
/include/kernaux/console.h

View File

@ -2,7 +2,7 @@
# Common #
##########
SUBDIRS = include libc
SUBDIRS = include libc/include
CLEANFILES =
TESTS =
@ -18,8 +18,8 @@ AM_CFLAGS = \
if WITH_LIBC
AM_CFLAGS += \
-I$(top_builddir)/libc \
-I$(top_srcdir)/libc
-I$(top_builddir)/libc/include \
-I$(top_srcdir)/libc/include
endif
if ENABLE_WERROR
@ -70,7 +70,7 @@ if WITH_FRAMEBUFFER
libkernaux_a_SOURCES += src/framebuffer.c
endif
if WITH_LIBC
libkernaux_a_SOURCES += src/libc.c
libkernaux_a_SOURCES += libc/src/main.c
endif
if WITH_MBR
libkernaux_a_SOURCES += src/mbr.c

View File

@ -75,9 +75,9 @@ zero). Work-in-progress APIs can change at any time.
* [snprintf](/examples/snprintf.c)
* [vsnprintf](/examples/snprintf_va.c)
* libc replacement
* [ctype.h](/libc/ctype.h)
* [stdlib.h](/libc/stdlib.h)
* [string.h](/libc/string.h)
* [ctype.h](/libc/include/ctype.h)
* [stdlib.h](/libc/include/stdlib.h)
* [string.h](/libc/include/string.h)

View File

@ -233,7 +233,7 @@ AM_INIT_AUTOMAKE([1.9 subdir-objects])
AC_CONFIG_FILES([
Makefile
include/Makefile
libc/Makefile
libc/include/Makefile
include/kernaux.h
include/kernaux/console.h
include/kernaux/printf.h

View File

@ -2,9 +2,10 @@
#include "config.h"
#endif
#include "libc.h"
#include <ctype.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
int atoi(const char *str)
{