diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-02-01 17:41:52 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-02-01 17:41:52 +0100 |
commit | 513d5dc6975350ead11bdbd6ab4eca382444329c (patch) | |
tree | df0b84c9be1e192e8bf9f767d7932628ba0885c6 /gl | |
parent | e2fd9e2ac9415b3d41aa47fb7a41a0d46e7f1bec (diff) | |
download | libtasn1-513d5dc6975350ead11bdbd6ab4eca382444329c.tar.gz libtasn1-513d5dc6975350ead11bdbd6ab4eca382444329c.tar.bz2 libtasn1-513d5dc6975350ead11bdbd6ab4eca382444329c.zip |
Update gnulib files.
Diffstat (limited to 'gl')
-rw-r--r-- | gl/Makefile.am | 11 | ||||
-rw-r--r-- | gl/m4/gnulib-cache.m4 | 4 | ||||
-rw-r--r-- | gl/m4/gnulib-comp.m4 | 3 | ||||
-rw-r--r-- | gl/m4/memmove.m4 | 18 | ||||
-rw-r--r-- | gl/memmove.c | 26 |
5 files changed, 3 insertions, 59 deletions
diff --git a/gl/Makefile.am b/gl/Makefile.am index 5dfd57c..91aa8e6 100644 --- a/gl/Makefile.am +++ b/gl/Makefile.am @@ -9,7 +9,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --aux-dir=build-aux --libtool --macro-prefix=gl fdl gendocs getopt gpl-3.0 lgpl-2.1 maintainer-makefile memmove progname read-file stdint strdup version-etc-fsf +# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --aux-dir=build-aux --libtool --macro-prefix=gl fdl gendocs getopt gpl-3.0 lgpl-2.1 maintainer-makefile progname read-file stdint strdup version-etc-fsf AUTOMAKE_OPTIONS = 1.5 gnits @@ -99,15 +99,6 @@ EXTRA_libgnu_la_SOURCES += malloc.c ## end gnulib module malloc-posix -## begin gnulib module memmove - - -EXTRA_DIST += memmove.c - -EXTRA_libgnu_la_SOURCES += memmove.c - -## end gnulib module memmove - ## begin gnulib module progname libgnu_la_SOURCES += progname.h progname.c diff --git a/gl/m4/gnulib-cache.m4 b/gl/m4/gnulib-cache.m4 index 07d4e64..2cc08ba 100644 --- a/gl/m4/gnulib-cache.m4 +++ b/gl/m4/gnulib-cache.m4 @@ -15,11 +15,11 @@ # Specification in the form of a command-line invocation: -# gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --aux-dir=build-aux --libtool --macro-prefix=gl fdl gendocs getopt gpl-3.0 lgpl-2.1 maintainer-makefile memmove progname read-file stdint strdup version-etc-fsf +# gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --aux-dir=build-aux --libtool --macro-prefix=gl fdl gendocs getopt gpl-3.0 lgpl-2.1 maintainer-makefile progname read-file stdint strdup version-etc-fsf # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([gl/override]) -gl_MODULES([fdl gendocs getopt gpl-3.0 lgpl-2.1 maintainer-makefile memmove progname read-file stdint strdup version-etc-fsf]) +gl_MODULES([fdl gendocs getopt gpl-3.0 lgpl-2.1 maintainer-makefile progname read-file stdint strdup version-etc-fsf]) gl_AVOID([]) gl_SOURCE_BASE([gl]) gl_M4_BASE([gl/m4]) diff --git a/gl/m4/gnulib-comp.m4 b/gl/m4/gnulib-comp.m4 index 1a1a9b5..22ac1bc 100644 --- a/gl/m4/gnulib-comp.m4 +++ b/gl/m4/gnulib-comp.m4 @@ -49,7 +49,6 @@ AC_DEFUN([gl_INIT], AC_SUBST([LTLIBINTL]) gl_FUNC_MALLOC_POSIX gl_STDLIB_MODULE_INDICATOR([malloc-posix]) - gl_FUNC_MEMMOVE gl_FUNC_READ_FILE gl_FUNC_REALLOC_POSIX gl_STDLIB_MODULE_INDICATOR([realloc-posix]) @@ -190,7 +189,6 @@ AC_DEFUN([gl_FILE_LIST], [ lib/getopt_int.h lib/gettext.h lib/malloc.c - lib/memmove.c lib/progname.c lib/progname.h lib/read-file.c @@ -212,7 +210,6 @@ AC_DEFUN([gl_FILE_LIST], [ m4/include_next.m4 m4/longlong.m4 m4/malloc.m4 - m4/memmove.m4 m4/read-file.m4 m4/realloc.m4 m4/stdarg.m4 diff --git a/gl/m4/memmove.m4 b/gl/m4/memmove.m4 deleted file mode 100644 index 66054e4..0000000 --- a/gl/m4/memmove.m4 +++ /dev/null @@ -1,18 +0,0 @@ -# memmove.m4 serial 2 -dnl Copyright (C) 2002 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_FUNC_MEMMOVE], -[ - AC_REPLACE_FUNCS(memmove) - if test $ac_cv_func_memmove = no; then - gl_PREREQ_MEMMOVE - fi -]) - -# Prerequisites of lib/memmove.c. -AC_DEFUN([gl_PREREQ_MEMMOVE], [ - : -]) diff --git a/gl/memmove.c b/gl/memmove.c deleted file mode 100644 index c5ff8b5..0000000 --- a/gl/memmove.c +++ /dev/null @@ -1,26 +0,0 @@ -/* memmove.c -- copy memory. - Copy LENGTH bytes from SOURCE to DEST. Does not null-terminate. - In the public domain. - By David MacKenzie <djm@gnu.ai.mit.edu>. */ - -#include <config.h> - -#include <stddef.h> - -void * -memmove (void *dest0, void const *source0, size_t length) -{ - char *dest = dest0; - char const *source = source0; - if (source < dest) - /* Moving from low mem to hi mem; start at end. */ - for (source += length, dest += length; length; --length) - *--dest = *--source; - else if (source != dest) - { - /* Moving from hi mem to low mem; start at beginning. */ - for (; length; --length) - *dest++ = *source++; - } - return dest0; -} |