summaryrefslogtreecommitdiff
path: root/stlport/systemstl
diff options
context:
space:
mode:
Diffstat (limited to 'stlport/systemstl')
-rw-r--r--stlport/systemstl/functional62
-rw-r--r--stlport/systemstl/hash_map81
-rw-r--r--stlport/systemstl/hash_set52
-rw-r--r--stlport/systemstl/numeric53
-rw-r--r--stlport/systemstl/rope48
-rw-r--r--stlport/systemstl/slist45
-rw-r--r--stlport/systemstl/vector49
7 files changed, 390 insertions, 0 deletions
diff --git a/stlport/systemstl/functional b/stlport/systemstl/functional
new file mode 100644
index 000000000000..59b61f95f250
--- /dev/null
+++ b/stlport/systemstl/functional
@@ -0,0 +1,62 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org 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 version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef SYSTEM_STL_FUNCTIONAL
+#define SYSTEM_STL_FUNCTIONAL
+
+#ifdef GCC
+# ifdef __MINGW32__
+# define _SYSTEM_STL_MAKE_HEADER(path,header) <path/header>
+# include _SYSTEM_STL_MAKE_HEADER(GXX_INCLUDE_PATH,functional)
+# else
+# include <ext/../functional>
+# endif
+# include <ext/functional>
+
+namespace std
+{
+ using __gnu_cxx::project1st;
+ using __gnu_cxx::project2nd;
+ using __gnu_cxx::select1st;
+ using __gnu_cxx::select2nd;
+ using __gnu_cxx::compose1;
+ using __gnu_cxx::compose2;
+ using __gnu_cxx::unary_compose;
+ using __gnu_cxx::binary_compose;
+# ifndef __GXX_EXPERIMENTAL_CXX0X__
+ using __gnu_cxx::identity;
+ using __gnu_cxx::mem_fun1;
+ using __gnu_cxx::mem_fun1_ref;
+# endif
+}
+
+#else
+# error UNSUPPORTED COMPILER
+#endif
+
+#endif
+/* vi:set tabstop=4 shiftwidth=4 expandtab: */
diff --git a/stlport/systemstl/hash_map b/stlport/systemstl/hash_map
new file mode 100644
index 000000000000..415e39f77926
--- /dev/null
+++ b/stlport/systemstl/hash_map
@@ -0,0 +1,81 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org 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 version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef SYSTEM_STL_HASHMAP
+#define SYSTEM_STL_HASHMAP
+
+#ifdef GCC
+
+# include <functional>
+
+# define _BACKWARD_BACKWARD_WARNING_H 1
+# include <ext/hash_map>
+# undef _BACKWARD_BACKWARD_WARNING_H
+
+namespace __gnu_cxx
+{
+ template<> struct hash < std::string >
+ {
+ size_t operator()(const std::string & x) const
+ {
+ return hash< const char* >()(x.c_str());
+ }
+ };
+
+ template<> struct hash< long long int >
+ {
+ size_t operator()(long long int __x) const
+ {
+ return __x;
+ }
+ };
+
+ template<> struct hash< unsigned long long int >
+ {
+ size_t operator()(unsigned long long int __x) const
+ {
+ return __x;
+ }
+ };
+}
+
+namespace std
+{
+# ifndef __GXX_EXPERIMENTAL_CXX0X__
+ using __gnu_cxx::hash;
+# endif
+ using __gnu_cxx::hash_map;
+ using __gnu_cxx::hash_multimap;
+}
+
+#else
+# error UNSUPPORTED COMPILER
+#endif
+
+
+#endif
+/* vi:set tabstop=4 shiftwidth=4 expandtab: */
diff --git a/stlport/systemstl/hash_set b/stlport/systemstl/hash_set
new file mode 100644
index 000000000000..11ac7edb5a55
--- /dev/null
+++ b/stlport/systemstl/hash_set
@@ -0,0 +1,52 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org 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 version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef SYSTEM_STL_HASHSET
+#define SYSTEM_STL_HASHSET
+
+#ifdef GCC
+
+# include <functional>
+
+# define _BACKWARD_BACKWARD_WARNING_H 1
+# include <ext/hash_set>
+# undef _BACKWARD_BACKWARD_WARNING_H
+
+namespace std
+{
+# ifndef __GXX_EXPERIMENTAL_CXX0X__
+ using __gnu_cxx::hash;
+# endif
+ using __gnu_cxx::hash_set;
+ using __gnu_cxx::hash_multiset;
+}
+#else
+# error UNSUPPORTED COMPILER
+#endif
+
+#endif
+/* vi:set tabstop=4 shiftwidth=4 expandtab: */
diff --git a/stlport/systemstl/numeric b/stlport/systemstl/numeric
new file mode 100644
index 000000000000..3510ccb5bf57
--- /dev/null
+++ b/stlport/systemstl/numeric
@@ -0,0 +1,53 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org 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 version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef SYSTEM_STL_NUMERIC
+#define SYSTEM_STL_NUMERIC
+
+#ifdef GCC
+# include <functional>
+# ifdef __MINGW32__
+# define _SYSTEM_STL_MAKE_HEADER(path,header) <path/header>
+# include _SYSTEM_STL_MAKE_HEADER(GXX_INCLUDE_PATH,numeric)
+# else
+# include <ext/../numeric>
+# endif
+# include <ext/numeric>
+
+# ifndef __GXX_EXPERIMENTAL_CXX0X__
+namespace std
+{
+ using __gnu_cxx::iota;
+}
+# endif
+
+#else
+# error UNSUPPORTED COMPILER
+#endif
+
+#endif
+/* vi:set tabstop=4 shiftwidth=4 expandtab: */
diff --git a/stlport/systemstl/rope b/stlport/systemstl/rope
new file mode 100644
index 000000000000..71ea13a022cf
--- /dev/null
+++ b/stlport/systemstl/rope
@@ -0,0 +1,48 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org 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 version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef SYSTEM_STL_ROPE
+#define SYSTEM_STL_ROPE
+
+#include <functional>
+#include <numeric>
+
+#ifdef GCC
+
+#include <ext/rope>
+
+namespace std
+{
+ using __gnu_cxx::rope;
+}
+#else
+#error UNSUPPORTED COMPILER
+#endif
+
+
+#endif
+/* vi:set tabstop=4 shiftwidth=4 expandtab: */
diff --git a/stlport/systemstl/slist b/stlport/systemstl/slist
new file mode 100644
index 000000000000..6535c545e50d
--- /dev/null
+++ b/stlport/systemstl/slist
@@ -0,0 +1,45 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org 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 version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef SYSTEM_STL_SLIST
+#define SYSTEM_STL_SLIST
+
+#ifdef GCC
+
+#include <ext/slist>
+
+namespace std
+{
+ using __gnu_cxx::slist;
+}
+#else
+#error UNSUPPORTED COMPILER
+#endif
+
+
+#endif
+/* vi:set tabstop=4 shiftwidth=4 expandtab: */
diff --git a/stlport/systemstl/vector b/stlport/systemstl/vector
new file mode 100644
index 000000000000..f15038f9eaaf
--- /dev/null
+++ b/stlport/systemstl/vector
@@ -0,0 +1,49 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org 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 version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef SYSTEM_STL_VECTOR
+#define SYSTEM_STL_VECTOR
+
+#ifdef GCC
+
+#ifdef __MINGW32__
+# define _SYSTEM_STL_MAKE_HEADER(path,header) <path/header>
+# include _SYSTEM_STL_MAKE_HEADER(GXX_INCLUDE_PATH,vector)
+#else
+# include <ext/../vector>
+#endif
+
+namespace std
+{
+ typedef vector<bool, std::allocator<bool> > bit_vector;
+}
+
+#else
+#error UNSUPPORTED COMPILER
+#endif
+#endif
+/* vi:set tabstop=4 shiftwidth=4 expandtab: */