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:
parent
3a5a7d1e56
commit
dfa8e6e9d5
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# GNU Mes --- Maxwell Equations of Software
|
# 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.
|
# This file is part of GNU Mes.
|
||||||
#
|
#
|
||||||
|
@ -155,7 +155,6 @@ lib/stdio/putc.c
|
||||||
lib/stdio/putchar.c
|
lib/stdio/putchar.c
|
||||||
lib/stdio/ungetc.c
|
lib/stdio/ungetc.c
|
||||||
lib/stdlib/free.c
|
lib/stdlib/free.c
|
||||||
lib/stdlib/malloc.c
|
|
||||||
lib/stdlib/realloc.c
|
lib/stdlib/realloc.c
|
||||||
lib/string/memchr.c
|
lib/string/memchr.c
|
||||||
lib/string/memcmp.c
|
lib/string/memcmp.c
|
||||||
|
@ -209,6 +208,7 @@ lib/linux/_getcwd.c
|
||||||
lib/linux/gettimeofday.c
|
lib/linux/gettimeofday.c
|
||||||
lib/linux/ioctl.c
|
lib/linux/ioctl.c
|
||||||
lib/linux/_open3.c
|
lib/linux/_open3.c
|
||||||
|
lib/linux/malloc.c
|
||||||
lib/linux/_read.c
|
lib/linux/_read.c
|
||||||
lib/linux/time.c
|
lib/linux/time.c
|
||||||
lib/linux/unlink.c
|
lib/linux/unlink.c
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* -*-comment-start: "//";comment-end:""-*-
|
/* -*-comment-start: "//";comment-end:""-*-
|
||||||
* GNU Mes --- Maxwell Equations of Software
|
* 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>
|
* Copyright © 2021 Danny Milosavljevic <dannym@scratchpost.org>
|
||||||
*
|
*
|
||||||
* This file is part of GNU Mes.
|
* This file is part of GNU Mes.
|
||||||
|
@ -24,15 +24,6 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.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;
|
char *__brk = 0;
|
||||||
|
|
||||||
void *
|
void *
|
||||||
|
@ -49,4 +40,3 @@ malloc (size_t size)
|
||||||
__brk += size;
|
__brk += size;
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
#endif /* !__GNU__ */
|
|
Loading…
Reference in a new issue