Compare commits

..

25 Commits

Author SHA1 Message Date
Peter Dimov 7be386ad98 Merge pull request #7 from sdarwin/docs5
Docs fix typo
2024-10-07 22:17:14 +03:00
sdarwin d47c3c463e Docs fix typo 2024-10-07 13:02:03 -06:00
Peter Dimov d0caac5c34 Merge pull request #3 from sdarwin/meta
Update metadata
2023-09-25 10:22:30 +03:00
sdarwin d8baf73b2b Update metadata 2021-11-05 13:26:18 -05:00
Peter Dimov 47ce71af6b Add CMakeLists.txt 2021-05-28 00:06:10 +03:00
Peter Dimov 445fbc1633 Merge branch 'develop' 2015-01-25 21:39:15 +02:00
Peter Dimov 96e31d3764 Merge pull request #2 from danieljames/metadata
Create metadata file.
2015-01-25 20:35:28 +02:00
Daniel James 131927a364 Add metadata file. 2014-08-18 14:57:47 +01:00
Daniel James c26ab9dad2 Create merge base for git. 2014-04-06 14:01:13 +01:00
Troy D. Straszheim 3e0da6395d rm cmake from trunk. I'm not entirely sure this is necessary to satisfy the inspect script, but I'm not taking any chances, and it is easy to put back
[SVN r56942]
2009-10-17 02:07:38 +00:00
Troy D. Straszheim 1f87ecee01 rm cmake from the release branch before it goes out broken. Policy dictates that you never commit to release, you commit to trunk and merge to release.
[SVN r56941]
2009-10-17 01:10:45 +00:00
Troy D. Straszheim 4c74586365 Copyrights on CMakeLists.txt to keep them from clogging up the inspect
reports.  This is essentially the same commit as r55095 on the release
branch.



[SVN r55159]
2009-07-26 00:49:56 +00:00
Troy D. Straszheim aba743e062 Add basic copyright/license to keep cmake out of the inspection report
[SVN r55095]
2009-07-22 21:51:01 +00:00
Daniel James 0ffcf6bd5c Use local copy of the valid HTML 4.01 icon, and make sure all the pages
that use it are valid.

Merged revisions 53047-53048 via svnmerge from 
https://svn.boost.org/svn/boost/trunk

........
  r53047 | danieljames | 2009-05-16 15:17:20 +0100 (Sat, 16 May 2009) | 1 line
  
  Fix some validation errors.
........
  r53048 | danieljames | 2009-05-16 15:23:59 +0100 (Sat, 16 May 2009) | 1 line
  
  Use a local copy of the valid HTML 4.01 icon.
........


[SVN r53258]
2009-05-25 20:06:26 +00:00
Daniel James 2c3978f4fa Use a local copy of the valid HTML 4.01 icon.
[SVN r53048]
2009-05-16 14:23:59 +00:00
Troy D. Straszheim c40f64cadb merge of cmake build files from trunk per beman
[SVN r50756]
2009-01-24 18:57:20 +00:00
Michael A. Jackson 49cd137691 Updating dependency information for modularized libraries.
[SVN r49628]
2008-11-07 17:05:27 +00:00
Michael A. Jackson 2253a5ec30 Continuing merge of CMake build system files into trunk with the encouragement of Doug Gregor
[SVN r49510]
2008-11-01 13:15:41 +00:00
Beman Dawes 0cbae63142 Starting point for releases
[SVN r39706]
2007-10-05 14:25:06 +00:00
nobody 74153bccdd This commit was manufactured by cvs2svn to create tag
'Version_1_34_1'.

[SVN r38286]
2007-07-24 19:28:14 +00:00
Daniel James 0316eeeecb Change STLport links to point to the sourceforge home page, which is the home
page for more recent releases.


[SVN r37110]
2007-02-28 00:01:33 +00:00
Daniel James ce4e81128f Change STLport links to point to the sourceforge page.
[SVN r37108]
2007-02-27 23:59:40 +00:00
Andreas Huber 8c1d80216e Merged L & C issue fixes from trunk to branch.
[SVN r36225]
2006-12-01 11:34:43 +00:00
Andreas Huber fc615e6ed1 Fixed license & copyright issues.
[SVN r36224]
2006-12-01 10:29:49 +00:00
nobody d4aa879539 This commit was manufactured by cvs2svn to create branch 'RC_1_34_0'.
[SVN r33417]
2006-03-21 02:26:31 +00:00
4 changed files with 398 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# Generated by `boostdep --cmake compatibility`
# Copyright 2020 Peter Dimov
# Distributed under the Boost Software License, Version 1.0.
# https://www.boost.org/LICENSE_1_0.txt
cmake_minimum_required(VERSION 3.5...3.16)
project(boost_compatibility VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
add_library(boost_compatibility INTERFACE)
add_library(Boost::compatibility ALIAS boost_compatibility)
target_include_directories(boost_compatibility INTERFACE include)
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
add_subdirectory(test)
endif()
+267
View File
@@ -0,0 +1,267 @@
# This Python script creates a full set of C++ C header files that
# are missing on some platforms.
#
# Usage:
# mkdir cpp_c_headers
# cd cpp_c_headers
# python generate_cpp_c_headers.py
#
# The files created by this script are in the directory:
# root/boost/compatibility/cpp_c_headers
#
# Supported platforms:
# Compaq Alpha, RedHat 6.2 Linux, Compaq C++ V6.3 (cxx)
# Compaq Alpha, Tru64 Unix V5.0, Compaq C++ V6.2 (cxx)
# Silicon Graphics, IRIX 6.5, MIPSpro Compilers: Version 7.3.1.1m (CC)
#
# Support for additional platforms can be added by extending the
# "defines" Python dictionary below.
#
# Python is available at:
# http://www.python.org/
#
# Copyright (c) 2001 Ralf W. Grosse-Kunstleve.
# Distributed under the Boost Software License, Version 1.0. (See accompany-
# ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# Revision history:
# 16 Apr 01 moved to boost CVS tree (R.W. Grosse-Kunstleve)
# 17 Jan 01 Alpha Linux cxx V6.3 support (R.W. Grosse-Kunstleve)
# 15 Dec 00 posted to boost e-group file upload area (R.W. Grosse-Kunstleve)
# Definition of platform specific exclusion of identifiers.
defines = {
'defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 740': (
'btowc', 'fwide', 'fwprintf', 'fwscanf', 'mbrlen', 'mbrtowc',
'mbsinit', 'mbsrtowcs', 'swprintf', 'swscanf', 'towctrans', 'vfwprintf',
'vswprintf', 'vwprintf', 'wcrtomb', 'wcsrtombs', 'wctob', 'wctrans',
'wctrans_t', 'wmemchr', 'wmemcmp', 'wmemcpy', 'wmemmove', 'wmemset',
'wprintf', 'wscanf',
),
'defined(__DECCXX_VER) && __DECCXX_VER <= 60290024': (
'fwide',
),
'defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005': (
'getwchar', 'ungetwc', 'fgetwc', 'vfwprintf', 'fgetws', 'vswprintf',
'wcsftime', 'fputwc', 'vwprintf', 'fputws', 'fwide', 'putwc',
'wprintf', 'fwprintf', 'putwchar', 'wscanf', 'fwscanf', 'swprintf',
'getwc', 'swscanf',
),
}
# The information below was copied directly from the file:
# ISO+IEC+14882-1998.pdf
# The exact source of the information is given in the format
# PDF #, p. #, Table #
# Where
# PDF # = page number as shown by the Acrobat Reader
# p. # = page number printed at the bottom of the page
# Table # = number printed in caption of table
hfiles = {
'cassert': ( # PDF 378, p. 352, Table 25
# Macro: assert
),
'cctype': ( # PDF 431, p. 405, Table 45
# Functions:
'isalnum', 'isdigit', 'isprint', 'isupper', 'tolower',
'isalpha', 'isgraph', 'ispunct', 'isxdigit', 'toupper',
'iscntrl', 'islower', 'isspace',
),
'cerrno': ( # PDF 378, p. 352, Table 26
# Macros: EDOM ERANGE errno
),
'cfloat': ( # PDF 361, p. 335, Table 17
# Macros: DBL_DIG DBL_MIN_EXP FLT_MIN_10_EXP LDBL_MAX_10_EXP
# DBL_EPSILON FLT_DIG FLT_MIN_EXP LDBL_MAX_EXP
# DBL_MANT_DIG FLT_EPSILON FLT_RADIX LDBL_MIN
# DBL_MAX FLT_MANT_DIG FLT_ROUNDS LDBL_MIN_10_EXP
# DBL_MAX_10_EXP FLT_MAX LDBL_DIG LDBL_MIN_EXP
# DBL_MAX_EXP FLT_MAX_10_EXP LDBL_EPSILON
# DBL_MIN FLT_MAX_EXP LDBL_MANT_DIG
# DBL_MIN_10_EXP FLT_MIN LDBL_MAX
),
#'ciso646': (
#),
'climits': ( # PDF 361, p. 335, Table 16
# Macros: CHAR_BIT INT_MAX LONG_MIN SCHAR_MIN UCHAR_MAX USHRT_MAX
# CHAR_MAX INT_MIN MB_LEN_MAX SHRT_MAX UINT_MAX
# CHAR_MIN LONG_MAX SCHAR_MAX SHRT_MIN ULONG_MAX
),
'clocale': ( # PDF 483, p. 457, Table 62
# Macros: LC_ALL LC_COLLATE LC_CTYPE
# LC_MONETARY LC_NUMERIC LC_TIME
# NULL
# Struct:
'lconv',
# Functions:
'localeconv', 'setlocale',
),
'cmath': ( # PDF 622, p. 596, Table 80
# Macro: HUGE_VAL
# Functions:
'acos', 'cos', 'fmod', 'modf', 'tan',
'asin', 'cosh', 'frexp', 'pow', 'tanh',
'atan', 'exp', 'ldexp', 'sin',
'atan2', 'fabs', 'log', 'sinh',
'ceil', 'floor', 'log10', 'sqrt',
),
'csetjmp': ( # PDF 372, p. 346, Table 20
# Macro: setjmp
# Type:
'jmp_buf',
# Function:
'longjmp',
),
'csignal': ( # PDF 372, p. 346, Table 22
# Macros: SIGABRT SIGILL SIGSEGV SIG_DFL
# SIG_IGN SIGFPE SIGINT SIGTERM SIG_ERR
# Type:
'sig_atomic_t',
# Functions:
'raise', 'signal',
),
'cstdarg': ( # PDF 372, p. 346, Table 19
# Macros: va_arg va_end va_start
# Type:
'va_list',
),
'cstddef': ( # PDF 353, p. 327, Table 15
# Macros: NULL offsetof
# Types:
'ptrdiff_t', 'size_t',
),
'cstdio': ( # PDF 692, p. 666, Table 94
# Macros: BUFSIZ FOPEN_MAX SEEK_CUR TMP_MAX _IONBF stdout
# EOF L_tmpnam SEEK_END _IOFBF stderr
# FILENAME_MAX NULL <cstdio> SEEK_SET _IOLBF stdin
# Types:
'FILE', 'fpos_t', 'size_t',
# Functions:
'clearerr', 'fgets', 'fscanf', 'gets', 'rename', 'tmpfile',
'fclose', 'fopen', 'fseek', 'perror', 'rewind', 'tmpnam',
'feof', 'fprintf', 'fsetpos', 'printf', 'scanf', 'ungetc',
'ferror', 'fputc', 'ftell', 'putc', 'setbuf', 'vfprintf',
'fflush', 'fputs', 'fwrite', 'putchar', 'setvbuf', 'vprintf',
'fgetc', 'fread', 'getc', 'puts', 'sprintf', 'vsprintf',
'fgetpos', 'freopen', 'getchar', 'remove', 'sscanf',
),
'cstdlib': ( # PDF 362, p. 336, Table 18
# Macros: EXIT_FAILURE EXIT_SUCCESS
# Functions:
'abort', 'atexit', 'exit',
# PDF 373, p. 347, Table 23
# Functions:
'getenv', 'system',
# PDF 400, p. 374, Table 33
# Functions:
'calloc', 'malloc',
'free', 'realloc',
# PDF 433, p. 417, Table 49
# Macros: MB_CUR_MAX
# Functions:
'atol', 'mblen', 'strtod', 'wctomb',
'atof', 'mbstowcs', 'strtol', 'wcstombs',
'atoi', 'mbtowc', 'strtoul',
# PDF 589, p. 563, Table 78
# Functions:
'bsearch', 'qsort',
# PDF 622, p. 596, Table 81
# Macros: RAND_MAX
# Types:
'div_t', 'ldiv_t',
# Functions:
'abs', 'labs', 'srand',
'div', 'ldiv', 'rand',
),
'cstring': ( # PDF 401, p. 375, Table 34
# Macro: NULL
# Type: size_t
# Functions:
# 'memchr', 'memcmp',
# 'memcpy', 'memmove', 'memset',
# PDF 432, p. 406, Table 47
# Macro: NULL
# Type:
'size_t',
# Functions:
'memchr', 'strcat', 'strcspn', 'strncpy', 'strtok',
'memcmp', 'strchr', 'strerror', 'strpbrk', 'strxfrm',
'memcpy', 'strcmp', 'strlen', 'strrchr',
'memmove', 'strcoll', 'strncat', 'strspn',
'memset', 'strcpy', 'strncmp', 'strstr',
),
'ctime': ( # PDF 372, p. 346, Table 21
# Macros: CLOCKS_PER_SEC
# Types:
# 'clock_t',
# Functions:
# 'clock',
# PDF 401, p. 375, Table 35
# Macros: NULL
# Types:
'size_t', 'clock_t', 'time_t',
# Struct:
'tm',
# Functions:
'asctime', 'clock', 'difftime', 'localtime', 'strftime',
'ctime', 'gmtime', 'mktime', 'time',
),
'cwchar': ( # PDF 432, p. 406, Table 48
# Macros: NULL WCHAR_MAX WCHAR_MIN WEOF
# Types:
'mbstate_t', 'wint_t', 'size_t',
# Functions:
'btowc', 'getwchar', 'ungetwc', 'wcscpy', 'wcsrtombs', 'wmemchr',
'fgetwc', 'mbrlen', 'vfwprintf', 'wcscspn', 'wcsspn', 'wmemcmp',
'fgetws', 'mbrtowc', 'vswprintf', 'wcsftime', 'wcsstr', 'wmemcpy',
'fputwc', 'mbsinit', 'vwprintf', 'wcslen', 'wcstod', 'wmemmove',
'fputws', 'mbsrtowcs', 'wcrtomb', 'wcsncat', 'wcstok', 'wmemset',
'fwide', 'putwc', 'wcscat', 'wcsncmp', 'wcstol', 'wprintf',
'fwprintf', 'putwchar', 'wcschr', 'wcsncpy', 'wcstoul', 'wscanf',
'fwscanf', 'swprintf', 'wcscmp', 'wcspbrk', 'wcsxfrm',
'getwc', 'swscanf', 'wcscoll', 'wcsrchr', 'wctob',
),
'cwctype': ( # PDF 432, p. 406, Table 46
# Macro: WEOF
# Types:
'wctrans_t', 'wctype_t', 'wint_t',
# Functions:
'iswalnum', 'iswctype', 'iswlower', 'iswspace', 'towctrans', 'wctrans',
'iswalpha', 'iswdigit', 'iswprint', 'iswupper', 'towlower', 'wctype',
'iswcntrl', 'iswgraph', 'iswpunct', 'iswxdigit', 'towupper',
),
}
if (__name__ == "__main__"):
import sys, string, time
now = time.asctime(time.localtime(time.time())) + ' ' + str(time.tzname)
for hfile in hfiles.keys():
HFILE = string.upper(hfile)
f = open(hfile, 'w')
sys.stdout = f
print '// This file is automatically generated. Do not edit.'
print '//', sys.argv
print '//', now
print
print '#ifndef __' + HFILE + '_HEADER'
print '#define __' + HFILE + '_HEADER'
print ''
print '#include <' + hfile[1:] + '.h>'
print ''
if (len(hfiles[hfile]) > 0):
print 'namespace std {'
for s in hfiles[hfile]:
n_endif = 0
for d in defines.keys():
if (s in defines[d]):
print '#if !(' + d + ')'
n_endif = n_endif + 1
print ' using ::' + s + ';'
for i in xrange(n_endif): print '#endif'
print '}'
print ''
print '#endif // ' + HFILE + '_HEADER'
sys.stdout = sys.__stdout__
+99
View File
@@ -0,0 +1,99 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<title>Boost.Compatibility library</title>
</head>
<body>
<div>
<img src="../../boost.png" alt="boost.png (6897 bytes)" align="middle"
width="277" height="86">
<hr>
<h1>Boost.Compatibility library</h1>
<p>This library provides workarounds which allow the other Boost
libraries to be used on otherwise non-conforming platforms. We hope that
it will be possible to remove this library at some time in the future as
standard library suppliers become more conforming.</p>
<h2>Missing C++ standard library CXX headers (e.g &lt;cstdio&gt;)
workaround</h2>
<p>The Python script: <tt><a href=
"generate_cpp_c_headers.py">generate_cpp_c_headers.py</a></tt> creates a
full set of C++ C header files (e.g. &lt;cstdio&gt;) that are missing on
some platforms. The header files created by this script reside in the
directory <tt><a href=
"../../boost/compatibility/cpp_c_headers/">boost/compatibility/cpp_c_headers</a></tt>.
To use the header files, add this directory to the include file search
path. For example:</p>
<pre>
cxx -I/usr/local/boost/boost/compatibility/cpp_c_headers ...
</pre>
<p>Supported platforms are:</p>
<ul>
<li>Compaq Alpha, RedHat 6.2 Linux, Compaq C++ V6.3 (cxx)</li>
<li>Compaq Alpha, Tru64 Unix V5.0, Compaq C++ V6.2 (cxx)</li>
<li>Silicon Graphics, IRIX 6.5, MIPSpro Compilers: Version 7.3.1.1m
(CC)</li>
</ul>
<p>There are more powerful alternatives to using the Boost.Compatibility
library CXX headers, e.g. <a href="http://stlport.sourceforge.net">STLport</a>
or <a href=
"http://www.fnal.gov/docs/working-groups/fpcltf/Pkg/ISOcxx/doc/0ISOcxx.html">
ISOCXX</a>. However, in contrast to these alternatives, the
<tt>generate_cpp_c_headers.py</tt> script is very light-weight (less than
100 non-comment lines of Python code), much less ambitious, significantly
easier to maintain and therefore more suitable as an interim
workaround.</p>
<p>Contributed by Ralf W. Grosse-Kunstleve.</p>
<h2>Missing C++ standard library &lt;limits&gt; header workaround
<a href="../../boost/limits.hpp">boost/limits.hpp</a></h2>
<p>Several Boost libraries require the standard library's &lt;limits&gt;
header, yet this header is not always supplied by non-conforming
compilers and libraries.&nbsp; Header <a href=
"../../boost/limits.hpp">boost/limits.hpp</a> simply includes the
standard library &lt;limits&gt; header if available, otherwise includes
<a href=
"../../boost/detail/limits.hpp">boost/detail/limits.hpp</a>.&nbsp;
BOOST_NO_LIMITS from <a href="../config/config.htm">boost/config.hpp</a>
is used to determine &lt;limits&gt; availability.</p>
<p>Note also the test program <a href=
"../config/test/limits_test.cpp">limits_test.cpp</a></p>
<p>Contributed by Jens Maurer.</p>
<p>&nbsp;<br clear="all"></p>
<hr>
<p><a href="http://validator.w3.org/check?uri=referer"><img border="0"
src="../../doc/images/valid-html401.png" alt=
"Valid HTML 4.01 Transitional" height="31" width="88"></a></p>
<p>Revised
<!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %B, %Y" startspan -->01 December, 2006<!--webbot bot="Timestamp" endspan i-checksum="38508" --></p>
<p><i>&copy; Copyright Ralf W. Grosse-Kunstleve 2001</i></p>
<p><i>Distributed under the Boost Software License, Version 1.0. (See
accompanying file <a href="../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
copy at <a href=
"http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</a>)</i></p>
</div>
</body>
</html>
+12
View File
@@ -0,0 +1,12 @@
{
"key": "compatibility",
"name": "Compatibility",
"authors": [
"Ralf Grosse-Kunstleve",
"Jens Maurer"
],
"description": "Help for non-conforming standard libraries.",
"category": [
"Workarounds"
]
}