mlibc: New library layout; remove duplication.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 3 Dec 2017 12:56:21 +0000 (13:56 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 3 Dec 2017 12:56:21 +0000 (13:56 +0100)
commit808af5001fe948b4f2927715a364e840009b7779
tree987c6008010d6e7e53c433a513ab9d1376524189
parentd7b35f6b1e80860e4dd6de52876be891c6f228d6
mlibc: New library layout; remove duplication.

* lib/libc+tcc-gcc.c: New file: Libc bits for GCC from libc-mes+tcc.c.
* lib/libc+tcc-mes.c: New file: Libc bits for MesCC from libc-mes+tcc.c.
* lib/libc+tcc.c: New file: Libc bits from libc-mes+tcc.c.
* lib/libc.c: New file: Merged from libc-mes.c, libc-gcc.c.
  (abtoi): New function: Rename from _atoi.
* lib/linux+tcc-gcc.c: New file:  Linux bits from libc-gcc+tcc.c.
* lib/linux+tcc-mes.c: New file: Linux bits from libc-mes+tcc.c.
* lib/linux-gcc.c: New file: Linux bits from libc-gcc.c.
* lib/linux-mes.c: New file: Linux bits from libc-mes.c.
* lib/mini-libc-gcc.c: New file.
* lib/mini-libc.c: New file: Libc bits from mini-libc-mes.c.
* lib/mini-linux-gcc.c: New file.
* lib/mini-linux-mes.c: New file: Linux bits from mini-libc-mes.c.
* lib/libc-gcc.c: Remove duplication using include now.
* lib/libc-mes.c: Likewise.
* lib/mini-libc-mes.c: Likewise.
* include/stdio.h (puts)[POSIX]: Remomve macro.
  (fputc, fputs)[!POSIX]: New macro.
  (fputc, fputs): Remove declaration.
* scaffold/tests/7j-strtoull.c (strtoull, test): Use abtoi.
* src/lib.c (fputs)[__MESC__]: Remove define.
* guile/guix/make.scm: Update for new library layout.
* make.scm: Likewise.
* build.sh: Likewise.
* install.sh: Likewise.
24 files changed:
build.sh
guile/guix/make.scm
include/stdio.h
install.sh
lib/libc+tcc-gcc.c [new file with mode: 0644]
lib/libc+tcc-mes.c [new file with mode: 0644]
lib/libc+tcc.c [new file with mode: 0644]
lib/libc-gcc+tcc.c [deleted file]
lib/libc-gcc.c
lib/libc-mes+tcc.c [deleted file]
lib/libc-mes.c
lib/libc.c [new file with mode: 0644]
lib/linux+tcc-gcc.c [new file with mode: 0644]
lib/linux+tcc-mes.c [new file with mode: 0644]
lib/linux-gcc.c [new file with mode: 0644]
lib/linux-mes.c [new file with mode: 0644]
lib/mini-libc-gcc.c [new file with mode: 0644]
lib/mini-libc-mes.c
lib/mini-libc.c [new file with mode: 0644]
lib/mini-linux-gcc.c [new file with mode: 0644]
lib/mini-linux-mes.c [new file with mode: 0644]
make.scm
scaffold/tests/7j-strtoull.c
src/lib.c