mescc: Mes C Library: malloc.c: Move unix-variant to lib/linux.

* lib/stdlib/malloc.c: Move to...
lib/linux/malloc.c: ...here.
* build-aux/configure-lib.sh (libc_SOURCES): Move malloc.c...
[linux]: ...here.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2021-05-02 13:10:40 +02:00
parent 3a5a7d1e56
commit dfa8e6e9d5
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 3 additions and 13 deletions

View file

@ -1,7 +1,7 @@
#! /bin/sh
# GNU Mes --- Maxwell Equations of Software
# Copyright © 2019, 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
# Copyright © 2019,2020,2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
#
# This file is part of GNU Mes.
#
@ -155,7 +155,6 @@ lib/stdio/putc.c
lib/stdio/putchar.c
lib/stdio/ungetc.c
lib/stdlib/free.c
lib/stdlib/malloc.c
lib/stdlib/realloc.c
lib/string/memchr.c
lib/string/memcmp.c
@ -209,6 +208,7 @@ lib/linux/_getcwd.c
lib/linux/gettimeofday.c
lib/linux/ioctl.c
lib/linux/_open3.c
lib/linux/malloc.c
lib/linux/_read.c
lib/linux/time.c
lib/linux/unlink.c

View file

@ -1,6 +1,6 @@
/* -*-comment-start: "//";comment-end:""-*-
* GNU Mes --- Maxwell Equations of Software
* Copyright © 2016,2017,2018,2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
* Copyright © 2016,2017,2018,2019,2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
* Copyright © 2021 Danny Milosavljevic <dannym@scratchpost.org>
*
* This file is part of GNU Mes.
@ -24,15 +24,6 @@
#include <stddef.h>
#include <stdint.h>
/* FIXME: We want bin/mes-mescc's x86-linux sha256sum to stay the same.
Therfore we cannot remove stdlib/malloc from libc_SOURCES, which is
what GNU suggests.
move stdlib/malloc.c to unix/malloc.c and move it from shared
libc_SOURCES to linux-specific list when the checksum of mes.c
changes. */
#if !__GNU__
char *__brk = 0;
void *
@ -49,4 +40,3 @@ malloc (size_t size)
__brk += size;
return p;
}
#endif /* !__GNU__ */