]> git.lyx.org Git - features.git/commitdiff
get rid of cheaders
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 28 Dec 2004 13:48:51 +0000 (13:48 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 28 Dec 2004 13:48:51 +0000 (13:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9406 a592a061-630c-0410-9148-cb99ea01b6c8

20 files changed:
ChangeLog
config/ChangeLog
config/lyxinclude.m4
configure.ac
src/ChangeLog
src/Makefile.am
src/cheaders/ChangeLog [deleted file]
src/cheaders/cassert [deleted file]
src/cheaders/cctype [deleted file]
src/cheaders/cerrno [deleted file]
src/cheaders/climits [deleted file]
src/cheaders/clocale [deleted file]
src/cheaders/cmath [deleted file]
src/cheaders/csignal [deleted file]
src/cheaders/cstdarg [deleted file]
src/cheaders/cstddef [deleted file]
src/cheaders/cstdio [deleted file]
src/cheaders/cstdlib [deleted file]
src/cheaders/cstring [deleted file]
src/cheaders/ctime [deleted file]

index 8b6e4fbb30549ab082b3cfe44e233048b21a21ec..00627605528f247da3a33512596b5ea9ec391f60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-28  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * configure.ac: remove call to LYX_CXX_CHEADERS
+
 2004-12-16  Angus Leeming  <leeming@lyx.org>
 
        * configure.ac: remove the HAVE_MKDIR conditional code to
index a9153969e755571842fd5dc1fce6de4cc26b585a..e57a66844ea277f1d3188425d8b073871b184dd9 100644 (file)
@@ -1,3 +1,7 @@
+2004-12-28  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * lyxinclude.m4 (LYX_CXX_CHEADERS): remove.
+
 2004-12-15  Angus Leeming  <leeming-0hXrFu2P2+c@public.gmane.org>
 
        * lyxinclude.m4: define AC_FUNC_MKDIR.
index 8ea6b2355a97728052b5512de991a5b75549842d..ce03af6cf78021b6a08286be2a6be5f19dc55b22 100644 (file)
@@ -405,25 +405,6 @@ AC_DEFUN([LYX_CXX_PARTIAL], [
 ])
 
 
-dnl Usage: LYX_CXX_CHEADERS : checks whether the C++ compiler
-dnl   provides wrappers for C headers and use our alternate version otherwise.
-AC_DEFUN([LYX_CXX_CHEADERS],[
-AC_CACHE_CHECK(for C headers wrappers,lyx_cv_cxx_cheaders,
- [AC_TRY_CPP([
-#include <clocale>
-#include <cctype>
-#include <cerrno>
-#include <cmath>
-#include <csignal>
-#include <cstdio>
-#include <cstdlib>
-#include <cstring>
-#include <ctime>],[lyx_cv_cxx_cheaders=yes],[lyx_cv_cxx_cheaders=no])])
-if test $lyx_cv_cxx_cheaders = no ; then
-  LYX_ADD_INC_DIR(lyx_cppflags,\$(top_srcdir)/src/cheaders)
-fi])
-
-
 dnl Usage: LYX_CXX_GLOBAL_CSTD: checks whether C library functions
 dnl   are already in the global namespace
 AC_DEFUN([LYX_CXX_GLOBAL_CSTD],[
index cdb0941a9e1c194f5976bd519363c9e13176f607..1b5e92e3821e1300b3a086f4949f2bab60070bb5 100644 (file)
@@ -70,7 +70,6 @@ dnl we do not need that currently (and probably all our supported
 dnl compiler allow that)
 dnl LYX_CXX_PARTIAL
 LYX_CXX_EXPLICIT
-LYX_CXX_CHEADERS
 LYX_CXX_GLOBAL_CSTD
 LYX_STD_COUNT
 dnl we disable rtti for now
index 05f6715f484e57ec0e30508d4f30c3c39ee3715d..0f36c74b235719b60c100e859ac81737cec04a16 100644 (file)
@@ -1,3 +1,10 @@
+2004-12-28  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * Makefile.am (dist_noinset_DATA): not needed anymore
+
+       * cheaders/*: remove.
+
+=======
 2004-12-27  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
 
        * text3.C: fix LFUN_MATH_MODE.
index bac6639a517f2c846679813da0dbe73ba243da04..74b22d8519fec3907351e954f539a1de49338c48 100644 (file)
@@ -277,22 +277,6 @@ lyx_SOURCES = \
        vspace.C \
        vspace.h
 
-dist_noinst_DATA = \
-       cheaders/ChangeLog \
-       cheaders/cassert \
-       cheaders/cctype \
-       cheaders/cerrno \
-       cheaders/climits \
-       cheaders/clocale \
-       cheaders/cmath \
-       cheaders/csignal \
-       cheaders/cstdarg \
-       cheaders/cstddef \
-       cheaders/cstdio \
-       cheaders/cstdlib \
-       cheaders/cstring \
-       cheaders/ctime
-
 version.C: stamp-version
        @:
 
diff --git a/src/cheaders/ChangeLog b/src/cheaders/ChangeLog
deleted file mode 100644 (file)
index e882fc0..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-2001-09-02  Angus Leeming  <a.leeming@ic.ac.uk>
-
-       * cassert: new file. (Required by the boost tuple stuff).
-
-2001-06-01  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
-
-       * climits: new file
-
diff --git a/src/cheaders/cassert b/src/cheaders/cassert
deleted file mode 100644 (file)
index b4165bf..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- C++ -*- forwarding header.
-// This file is part of the GNU ANSI C++ Library.
-
-#ifndef __CASSERT__
-#define __CASSERT__
-#include <assert.h>
-#endif
diff --git a/src/cheaders/cctype b/src/cheaders/cctype
deleted file mode 100644 (file)
index e2765ae..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// The -*- C++ -*- character type header.
-// This file is part of the GNU ANSI C++ Library.
-
-#ifndef __CCTYPE__
-#define __CCTYPE__
-#include <ctype.h>
-#endif
diff --git a/src/cheaders/cerrno b/src/cheaders/cerrno
deleted file mode 100644 (file)
index ce49346..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// The -*- C++ -*- error number header.
-// This file is part of the GNU ANSI C++ Library.
-
-#ifndef __CERRNO__
-#define __CERRNO__
-#include <errno.h>
-#endif
diff --git a/src/cheaders/climits b/src/cheaders/climits
deleted file mode 100644 (file)
index 1b29b3a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- C++ -*- forwarding header.
-// This file is part of the GNU ANSI C++ Library.
-
-#ifndef __CLIMITS__
-#define __CLIMITS__
-#include <limits.h>
-#endif
diff --git a/src/cheaders/clocale b/src/cheaders/clocale
deleted file mode 100644 (file)
index b67cf31..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// The -*- C++ -*- locale support header.
-// This file is part of the GNU ANSI C++ Library.
-
-#ifndef __CLOCALE__
-#define __CLOCALE__
-#include <locale.h>
-#endif
diff --git a/src/cheaders/cmath b/src/cheaders/cmath
deleted file mode 100644 (file)
index 465bbe3..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// The -*- C++ -*- math functions header.
-// This file is part of the GNU ANSI C++ Library.
-// Modified for use with LyX.
-
-#ifndef __CMATH__
-#define __CMATH__
-
-#include <math.h>
-
-#ifdef __GNUG__
-#pragma interface "cmath"
-#endif
-
-namespace std {
-       inline float  abs (float  x) { return fabs (x); }
-       inline double abs (double x) { return fabs (x); }
-}
-
-#endif
diff --git a/src/cheaders/csignal b/src/cheaders/csignal
deleted file mode 100644 (file)
index 6febfb7..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// The -*- C++ -*- signal handling header.
-// This file is part of the GNU ANSI C++ Library.
-
-#ifndef __CSIGNAL__
-#define __CSIGNAL__
-#include <signal.h>
-#endif
diff --git a/src/cheaders/cstdarg b/src/cheaders/cstdarg
deleted file mode 100644 (file)
index 324f5a1..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- C++ -*- forwarding header.
-// This file is part of the GNU ANSI C++ Library.
-
-#ifndef __CSTDARG__
-#define __CSTDARG__
-#include <stdarg.h>
-#endif
diff --git a/src/cheaders/cstddef b/src/cheaders/cstddef
deleted file mode 100644 (file)
index 0607a1b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// -*- C++ -*- forwarding header.
-// This file is part of the GNU ANSI C++ Library.
-
-#ifndef __CSTDDEF__
-#define __CSTDDEF__
-#include <stddef.h>
-
-// Add some types in the std namespace, since the boost library seems
-// to look for them (JMarc)
-namespace std {
-       typedef ::size_t size_t;
-       typedef ::ptrdiff_t ptrdiff_t;
-}
-
-#endif
diff --git a/src/cheaders/cstdio b/src/cheaders/cstdio
deleted file mode 100644 (file)
index 1fe1456..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// The -*- C++ -*- standard I/O header.
-// This file is part of the GNU ANSI C++ Library.
-
-#ifndef __CSTDIO__
-#define __CSTDIO__
-#include <stdio.h>
-#endif
diff --git a/src/cheaders/cstdlib b/src/cheaders/cstdlib
deleted file mode 100644 (file)
index e7c1a51..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// The -*- C++ -*- standard library header.
-// This file is part of the GNU ANSI C++ Library.
-
-#ifndef __CSTDLIB__
-#define __CSTDLIB__
-#include <stdlib.h>
-
-#ifdef __GNUG__
-#pragma interface "cstdlib"
-#endif
-
-extern "C++" {
-
-#if _G_HAS_LABS
-inline long   abs(long x)              { return labs (x); }
-#else
-inline long   abs(long x)              { return x >= 0 ? x : -x; }
-#endif
-//inline ldiv_t div(long x, long y)    { return ldiv (x, y); }
-
-} // extern "C++"
-
-#endif
diff --git a/src/cheaders/cstring b/src/cheaders/cstring
deleted file mode 100644 (file)
index d8d03a7..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-// The -*- C++ -*- null-terminated string header.
-// This file is part of the GNU ANSI C++ Library.
-
-#ifndef __CSTRING__
-#define __CSTRING__
-
-#include <string.h>
-
-#if 0 // Let's not bother with this just yet.
-#include <cstddef>
-
-#ifdef __GNUG__
-#pragma interface "cstring"
-#endif
-
-// The ANSI C prototypes for these functions have a const argument type and
-// non-const return type, so we can't use them.
-
-extern "C++" {
-extern inline const char *
-_G_strchr (const char *s, int c)
-{
-  return strchr (s, c);
-}
-
-extern inline char *
-_G_strchr (char *s, int c)
-{
-  return const_cast<char *> (strchr (s, c));
-}
-
-extern inline const char *
-_G_strpbrk (const char *s1, const char *s2)
-{
-  return strpbrk (s1, s2);
-}
-
-extern inline char *
-_G_strpbrk (char *s1, const char *s2)
-{
-  return const_cast<char *> (strpbrk (s1, s2));
-}
-
-extern inline const char *
-_G_strrchr (const char *s, int c)
-{
-  return strrchr (s, c);
-}
-
-extern inline char *
-_G_strrchr (char *s, int c)
-{
-  return const_cast<char *> (strrchr (s, c));
-}
-
-extern inline const char *
-_G_strstr (const char *s1, const char *s2)
-{
-  return strstr (s1, s2);
-}
-
-extern inline char *
-_G_strstr (char *s1, const char *s2)
-{
-  return const_cast<char *> (strstr (s1, s2));
-}
-
-extern inline const void *
-_G_memchr (const void *s, int c, size_t n)
-{
-  return memchr (s, c, n);
-}
-
-extern inline void *
-_G_memchr (void *s, int c, size_t n)
-{
-  return const_cast<void *> (memchr (s, c, n));
-}
-} // extern "C++"
-
-// Lose any vendor macros for these functions.
-#undef strchr
-#undef strpbrk
-#undef strrchr
-#undef strstr
-#undef memchr
-
-// Ewww, namespace pollution.  Anyone have a better idea?
-#define strchr  _G_strchr
-#define strpbrk _G_strpbrk
-#define strrchr _G_strrchr
-#define strstr  _G_strstr
-#define memchr  _G_memchr
-#endif // 0
-
-#endif // !defined (__CSTRING__)
diff --git a/src/cheaders/ctime b/src/cheaders/ctime
deleted file mode 100644 (file)
index 0184da5..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// The -*- C++ -*- time header.
-// This file is part of the GNU ANSI C++ Library.
-
-#ifndef __CTIME__
-#define __CTIME__
-#include <time.h>
-#endif