[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 68/86: Remove unneeded memmove.c and strerror.c files
From: |
Andy Wingo |
Subject: |
[Guile-commits] 68/86: Remove unneeded memmove.c and strerror.c files |
Date: |
Wed, 20 Jun 2018 14:09:43 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit d04ff278f588411a447303354df9c05d1dd23473
Author: Andy Wingo <address@hidden>
Date: Wed Jun 20 14:35:06 2018 +0200
Remove unneeded memmove.c and strerror.c files
* libguile/memmove.c:
* libguile/strerror.c: Remove; these must be present for C99.
* libguile/Makefile.am (address@hidden@_la_SOURCES):
Remove files.
---
libguile/Makefile.am | 1 -
libguile/memmove.c | 22 ----------------------
libguile/strerror.c | 30 ------------------------------
3 files changed, 53 deletions(-)
diff --git a/libguile/Makefile.am b/libguile/Makefile.am
index 1175f48..53e1e7f 100644
--- a/libguile/Makefile.am
+++ b/libguile/Makefile.am
@@ -459,7 +459,6 @@ all-local: guile-procedures.texi
address@hidden@_la_SOURCES = \
syscalls.h \
- memmove.c strerror.c \
dynl.c regex-posix.c \
posix.c net_db.c socket.c \
debug-malloc.c \
diff --git a/libguile/memmove.c b/libguile/memmove.c
deleted file mode 100644
index f2d4537..0000000
--- a/libguile/memmove.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Wrapper to implement ANSI C's memmove using BSD's bcopy. */
-/* This function is in the public domain. --Per Bothner. */
-
-
-#include <sys/types.h>
-
-#ifdef __STDC__
-#define PTR void *
-#define CPTR const void *
-PTR memmove (PTR, CPTR, size_t);
-#else
-#define PTR char *
-#define CPTR char *
-PTR memmove ();
-#endif
-
-PTR
-memmove (PTR s1, CPTR s2, size_t n)
-{
- bcopy (s2, s1, n);
- return s1;
-}
diff --git a/libguile/strerror.c b/libguile/strerror.c
deleted file mode 100644
index c4c19c2..0000000
--- a/libguile/strerror.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Turning errno values into English error messages.
- Copyright (C) 1985-1988,1993,1994,1995,2000-2001,2006,2018
- Free Software Foundation, Inc.
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 3 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- 02110-1301 USA
-*/
-
-char *
-strerror (int errnum)
-{
- extern char *sys_errlist[];
- extern int sys_nerr;
-
- if (errnum >= 0 && errnum < sys_nerr)
- return sys_errlist[errnum];
- return (char *) "Unknown error";
-}
- [Guile-commits] 27/86: Devolve pairs.h, (continued)
- [Guile-commits] 27/86: Devolve pairs.h, Andy Wingo, 2018/06/20
- [Guile-commits] 53/86: Devolve smob snarfers, Andy Wingo, 2018/06/20
- [Guile-commits] 57/86: Shuffle around inline C function implementation, Andy Wingo, 2018/06/20
- [Guile-commits] 62/86: Devolve foreign.h from _scm.h, Andy Wingo, 2018/06/20
- [Guile-commits] 63/86: Devolve programs.h from _scm.h., Andy Wingo, 2018/06/20
- [Guile-commits] 22/86: Devolve more validate macros, Andy Wingo, 2018/06/20
- [Guile-commits] 23/86: Remove includes of validate.h., Andy Wingo, 2018/06/20
- [Guile-commits] 56/86: Devolve variable.h from _scm.h., Andy Wingo, 2018/06/20
- [Guile-commits] 69/86: Move SCM_C_INLINE_KEYWORD definition to inline.h, Andy Wingo, 2018/06/20
- [Guile-commits] 70/86: Fix include in test-ffi-lib, Andy Wingo, 2018/06/20
- [Guile-commits] 68/86: Remove unneeded memmove.c and strerror.c files,
Andy Wingo <=
- [Guile-commits] 64/86: Devolve strings.h, Andy Wingo, 2018/06/20
- [Guile-commits] 72/86: Fix missing includes in tests., Andy Wingo, 2018/06/20
- [Guile-commits] 60/86: Remove modules.h from _scm.h., Andy Wingo, 2018/06/20
- [Guile-commits] 75/86: Move SCM_TICK definition to __scm.h., Andy Wingo, 2018/06/20
- [Guile-commits] 74/86: Remove crufty support for 16-bit architectures., Andy Wingo, 2018/06/20
- [Guile-commits] 73/86: Deprecate pre-stdint.h limit macros, Andy Wingo, 2018/06/20
- [Guile-commits] 80/86: Rationalize guile-readline includes, Andy Wingo, 2018/06/20
- [Guile-commits] 61/86: Devolve symbols.h from _scm.h, Andy Wingo, 2018/06/20
- [Guile-commits] 76/86: Move SCM_ARG1, etc definitions to error.h, Andy Wingo, 2018/06/20
- [Guile-commits] 59/86: Devolve threads.h from _scm.h., Andy Wingo, 2018/06/20