diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2012-03-16 09:04:34 +0100 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2012-03-16 09:43:01 +0100 |
commit | 9ea38da9fbeda4ca2d8cdc4bc5ede2202d3ff34e (patch) | |
tree | a160a0934373241bfa7da3a77d4707862ec9a3ed /basicdefs.h | |
parent | 944747af30e067b3431cca1ef306e375ba1f4c34 (diff) | |
download | sed-9ea38da9fbeda4ca2d8cdc4bc5ede2202d3ff34e.tar.gz |
clean up header inclusions
2012-03-16 Paolo Bonzini <bonzini@gnu.org>
* basicdefs.h: Enjoy gnulib's headers.
* sed/compile.c: Likewise.
* sed/execute.c: Likewise.
* sed/regexp.c: Likewise.
* sed/sed.c: Likewise.
* sed/sed.h: Likewise.
* sed/utils.c: Likewise.
Diffstat (limited to 'basicdefs.h')
-rw-r--r-- | basicdefs.h | 40 |
1 files changed, 3 insertions, 37 deletions
diff --git a/basicdefs.h b/basicdefs.h index 0d1db78..9d18322 100644 --- a/basicdefs.h +++ b/basicdefs.h @@ -19,18 +19,9 @@ #define BASICDEFS_H #include <alloca.h> - -#ifdef HAVE_WCHAR_H -# include <wchar.h> -#endif -#ifdef HAVE_LOCALE_H -# include <locale.h> -#endif -#ifdef HAVE_WCTYPE_H -# include <wctype.h> -#endif - - +#include <wchar.h> +#include <locale.h> +#include <wctype.h> #include <stdbool.h> #include <gettext.h> @@ -91,31 +82,6 @@ typedef unsigned long countT; #define obstack_chunk_free ck_free -#ifdef HAVE_MEMORY_H -# include <memory.h> -#endif - -#ifndef HAVE_MEMMOVE -# ifndef memmove - /* ../lib/libsed.a provides a memmove() if the system doesn't. - Here is where we declare its return type; we don't prototype - it because that sometimes causes problems when we're running in - bootstrap mode on a system which really does support memmove(). */ - extern VOID *memmove(); -# endif -#endif - -#ifndef HAVE_MEMCPY -# ifndef memcpy -# define memcpy(d, s, n) memmove(d, s, n) -# endif -#endif - -#ifndef HAVE_STRERROR - extern char *strerror P_((int e)); -#endif - - /* handle misdesigned <ctype.h> macros (snarfed from lib/regex.c) */ /* Jim Meyering writes: |