1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-06-09 18:31:51 -04:00

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 /Makefile.in
/include/Makefile.in /include/Makefile.in
/libc/Makefile.in /libc/include/Makefile.in
######################## ########################
# To build out of root # # To build out of root #
@ -91,7 +91,7 @@
/Makefile /Makefile
/include/Makefile /include/Makefile
/libc/Makefile /libc/include/Makefile
/include/kernaux.h /include/kernaux.h
/include/kernaux/console.h /include/kernaux/console.h

View file

@ -2,7 +2,7 @@
# Common # # Common #
########## ##########
SUBDIRS = include libc SUBDIRS = include libc/include
CLEANFILES = CLEANFILES =
TESTS = TESTS =
@ -18,8 +18,8 @@ AM_CFLAGS = \
if WITH_LIBC if WITH_LIBC
AM_CFLAGS += \ AM_CFLAGS += \
-I$(top_builddir)/libc \ -I$(top_builddir)/libc/include \
-I$(top_srcdir)/libc -I$(top_srcdir)/libc/include
endif endif
if ENABLE_WERROR if ENABLE_WERROR
@ -70,7 +70,7 @@ if WITH_FRAMEBUFFER
libkernaux_a_SOURCES += src/framebuffer.c libkernaux_a_SOURCES += src/framebuffer.c
endif endif
if WITH_LIBC if WITH_LIBC
libkernaux_a_SOURCES += src/libc.c libkernaux_a_SOURCES += libc/src/main.c
endif endif
if WITH_MBR if WITH_MBR
libkernaux_a_SOURCES += src/mbr.c 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) * [snprintf](/examples/snprintf.c)
* [vsnprintf](/examples/snprintf_va.c) * [vsnprintf](/examples/snprintf_va.c)
* libc replacement * libc replacement
* [ctype.h](/libc/ctype.h) * [ctype.h](/libc/include/ctype.h)
* [stdlib.h](/libc/stdlib.h) * [stdlib.h](/libc/include/stdlib.h)
* [string.h](/libc/string.h) * [string.h](/libc/include/string.h)

View file

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

View file

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