mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 12:26:59 +00:00
Update boost to 1.53.0
This commit is contained in:
parent
60448bf681
commit
f2b4d4febf
0
boost/boost/function/detail/gen_maybe_include.pl
Executable file → Normal file
0
boost/boost/function/detail/gen_maybe_include.pl
Executable file → Normal file
0
boost/boost/function/gen_function_N.pl
Executable file → Normal file
0
boost/boost/function/gen_function_N.pl
Executable file → Normal file
@ -1,100 +0,0 @@
|
|||||||
/*
|
|
||||||
*
|
|
||||||
* Copyright (c) 1998-2000
|
|
||||||
* Dr John Maddock
|
|
||||||
*
|
|
||||||
* Use, modification and distribution are subject to the
|
|
||||||
* Boost Software License, Version 1.0. (See accompanying file
|
|
||||||
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* LOCATION: see http://www.boost.org/libs/regex for documentation.
|
|
||||||
* FILE regex.h
|
|
||||||
* VERSION 3.12
|
|
||||||
* DESCRIPTION: Declares POSIX API functions
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef BOOST_RE_REGEX_H
|
|
||||||
#define BOOST_RE_REGEX_H
|
|
||||||
|
|
||||||
#include <boost/cregex.hpp>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* add using declarations to bring POSIX API functions into
|
|
||||||
* global scope, only if this is C++ (and not C).
|
|
||||||
*/
|
|
||||||
#ifdef __cplusplus
|
|
||||||
|
|
||||||
using boost::regoff_t;
|
|
||||||
using boost::regex_tA;
|
|
||||||
using boost::regmatch_t;
|
|
||||||
using boost::REG_BASIC;
|
|
||||||
using boost::REG_EXTENDED;
|
|
||||||
using boost::REG_ICASE;
|
|
||||||
using boost::REG_NOSUB;
|
|
||||||
using boost::REG_NEWLINE;
|
|
||||||
using boost::REG_NOSPEC;
|
|
||||||
using boost::REG_PEND;
|
|
||||||
using boost::REG_DUMP;
|
|
||||||
using boost::REG_NOCOLLATE;
|
|
||||||
using boost::REG_ESCAPE_IN_LISTS;
|
|
||||||
using boost::REG_NEWLINE_ALT;
|
|
||||||
using boost::REG_PERL;
|
|
||||||
using boost::REG_AWK;
|
|
||||||
using boost::REG_GREP;
|
|
||||||
using boost::REG_EGREP;
|
|
||||||
using boost::REG_ASSERT;
|
|
||||||
using boost::REG_INVARG;
|
|
||||||
using boost::REG_ATOI;
|
|
||||||
using boost::REG_ITOA;
|
|
||||||
|
|
||||||
using boost::REG_NOTBOL;
|
|
||||||
using boost::REG_NOTEOL;
|
|
||||||
using boost::REG_STARTEND;
|
|
||||||
|
|
||||||
using boost::reg_comp_flags;
|
|
||||||
using boost::reg_exec_flags;
|
|
||||||
using boost::regcompA;
|
|
||||||
using boost::regerrorA;
|
|
||||||
using boost::regexecA;
|
|
||||||
using boost::regfreeA;
|
|
||||||
|
|
||||||
#ifndef BOOST_NO_WREGEX
|
|
||||||
using boost::regcompW;
|
|
||||||
using boost::regerrorW;
|
|
||||||
using boost::regexecW;
|
|
||||||
using boost::regfreeW;
|
|
||||||
using boost::regex_tW;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using boost::REG_NOERROR;
|
|
||||||
using boost::REG_NOMATCH;
|
|
||||||
using boost::REG_BADPAT;
|
|
||||||
using boost::REG_ECOLLATE;
|
|
||||||
using boost::REG_ECTYPE;
|
|
||||||
using boost::REG_EESCAPE;
|
|
||||||
using boost::REG_ESUBREG;
|
|
||||||
using boost::REG_EBRACK;
|
|
||||||
using boost::REG_EPAREN;
|
|
||||||
using boost::REG_EBRACE;
|
|
||||||
using boost::REG_BADBR;
|
|
||||||
using boost::REG_ERANGE;
|
|
||||||
using boost::REG_ESPACE;
|
|
||||||
using boost::REG_BADRPT;
|
|
||||||
using boost::REG_EEND;
|
|
||||||
using boost::REG_ESIZE;
|
|
||||||
using boost::REG_ERPAREN;
|
|
||||||
using boost::REG_EMPTY;
|
|
||||||
using boost::REG_E_MEMORY;
|
|
||||||
using boost::REG_E_UNKNOWN;
|
|
||||||
using boost::reg_errcode_t;
|
|
||||||
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
#endif /* BOOST_RE_REGEX_H */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,132 +0,0 @@
|
|||||||
#!/usr/bin/perl -w
|
|
||||||
#
|
|
||||||
# Boost.Signals library
|
|
||||||
|
|
||||||
# Copyright Douglas Gregor 2001-2003. Use, modification and
|
|
||||||
# distribution is subject to the Boost Software License, Version
|
|
||||||
# 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
# http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
|
|
||||||
# For more information, see http://www.boost.org
|
|
||||||
use English;
|
|
||||||
|
|
||||||
if ($#ARGV < 0) {
|
|
||||||
print "Usage: perl gen_signal_N <number of arguments>\n";
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$totalNumArgs = $ARGV[0];
|
|
||||||
for ($numArgs = 0; $numArgs <= $totalNumArgs; ++$numArgs) {
|
|
||||||
open OUT, ">signal$numArgs.hpp";
|
|
||||||
print OUT "// Boost.Signals library\n";
|
|
||||||
print OUT "//\n";
|
|
||||||
print OUT "// Copyright (C) 2001 Doug Gregor (gregod\@cs.rpi.edu)\n";
|
|
||||||
print OUT "//\n";
|
|
||||||
print OUT "// Permission to copy, use, sell and distribute this software is granted\n";
|
|
||||||
print OUT "// provided this copyright notice appears in all copies.\n";
|
|
||||||
print OUT "// Permission to modify the code and to distribute modified code is granted\n";
|
|
||||||
print OUT "// provided this copyright notice appears in all copies, and a notice\n";
|
|
||||||
print OUT "// that the code was modified is included with the copyright notice.\n";
|
|
||||||
print OUT "//\n";
|
|
||||||
print OUT "// This software is provided \"as is\" without express or implied warranty,\n";
|
|
||||||
print OUT "// and with no claim as to its suitability for any purpose.\n";
|
|
||||||
print OUT " \n";
|
|
||||||
print OUT "// For more information, see http://www.boost.org\n";
|
|
||||||
print OUT "\n";
|
|
||||||
print OUT "#ifndef BOOST_SIGNALS_SIGNAL" . $numArgs . "_HEADER\n";
|
|
||||||
print OUT "#define BOOST_SIGNALS_SIGNAL" , $numArgs . "_HEADER\n";
|
|
||||||
print OUT "\n";
|
|
||||||
print OUT "#define BOOST_SIGNALS_NUM_ARGS $numArgs\n";
|
|
||||||
|
|
||||||
$templateParms = "";
|
|
||||||
for ($i = 1; $i <= $numArgs; ++$i) {
|
|
||||||
if ($i > 1) {
|
|
||||||
$templateParms .= ", ";
|
|
||||||
}
|
|
||||||
$templateParms .= "typename T$i";
|
|
||||||
}
|
|
||||||
print OUT "#define BOOST_SIGNALS_TEMPLATE_PARMS $templateParms\n";
|
|
||||||
|
|
||||||
$_ = $templateParms;
|
|
||||||
s/typename //g;
|
|
||||||
$templateArgs = $_;
|
|
||||||
print OUT "#define BOOST_SIGNALS_TEMPLATE_ARGS $templateArgs\n";
|
|
||||||
|
|
||||||
$parms = "";
|
|
||||||
for ($i = 1; $i <= $numArgs; ++$i) {
|
|
||||||
if ($i > 1) {
|
|
||||||
$parms .= ", ";
|
|
||||||
}
|
|
||||||
$parms .= "T$i a$i";
|
|
||||||
}
|
|
||||||
print OUT "#define BOOST_SIGNALS_PARMS $parms\n";
|
|
||||||
|
|
||||||
$args = "";
|
|
||||||
for ($i = 1; $i <= $numArgs; ++$i) {
|
|
||||||
if ($i > 1) {
|
|
||||||
$args .= ", ";
|
|
||||||
}
|
|
||||||
$args .= "a$i";
|
|
||||||
}
|
|
||||||
print OUT "#define BOOST_SIGNALS_ARGS $args\n";
|
|
||||||
|
|
||||||
$boundArgs = "";
|
|
||||||
for ($i = 1; $i <= $numArgs; ++$i) {
|
|
||||||
if ($i > 1) {
|
|
||||||
$boundArgs .= ", ";
|
|
||||||
}
|
|
||||||
$boundArgs .= "args->a$i";
|
|
||||||
}
|
|
||||||
print OUT "#define BOOST_SIGNALS_BOUND_ARGS $boundArgs\n";
|
|
||||||
|
|
||||||
$argsAsMembers = "";
|
|
||||||
for ($i = 1; $i <= $numArgs; ++$i) {
|
|
||||||
$argsAsMembers .= "T$i a$i;";
|
|
||||||
}
|
|
||||||
print OUT "#define BOOST_SIGNALS_ARGS_AS_MEMBERS $argsAsMembers\n";
|
|
||||||
|
|
||||||
$copyParms = "";
|
|
||||||
for ($i = 1; $i <= $numArgs; ++$i) {
|
|
||||||
if ($i > 1) {
|
|
||||||
$copyParms .= ", ";
|
|
||||||
}
|
|
||||||
$copyParms .= "T$i ia$i";
|
|
||||||
}
|
|
||||||
print OUT "#define BOOST_SIGNALS_COPY_PARMS $copyParms\n";
|
|
||||||
|
|
||||||
$initArgs = "";
|
|
||||||
if ($numArgs > 0) {
|
|
||||||
$initArgs = ":";
|
|
||||||
}
|
|
||||||
for ($i = 1; $i <= $numArgs; ++$i) {
|
|
||||||
if ($i > 1) {
|
|
||||||
$initArgs .= ", ";
|
|
||||||
}
|
|
||||||
$initArgs .= "a$i(ia$i)";
|
|
||||||
}
|
|
||||||
print OUT "#define BOOST_SIGNALS_INIT_ARGS $initArgs\n";
|
|
||||||
|
|
||||||
$argTypes = "";
|
|
||||||
for ($i = 1; $i <= $numArgs; ++$i) {
|
|
||||||
$argTypes .= "typedef T$i arg". ($i+1) . "_type; ";
|
|
||||||
}
|
|
||||||
|
|
||||||
print OUT "#define BOOST_SIGNALS_ARG_TYPES $argTypes\n";
|
|
||||||
print OUT "\n";
|
|
||||||
print OUT "#include <boost/signals/signal_template.hpp>\n";
|
|
||||||
print OUT "\n";
|
|
||||||
print OUT "#undef BOOST_SIGNALS_ARG_TYPES\n";
|
|
||||||
print OUT "#undef BOOST_SIGNALS_INIT_ARGS\n";
|
|
||||||
print OUT "#undef BOOST_SIGNALS_COPY_PARMS\n";
|
|
||||||
print OUT "#undef BOOST_SIGNALS_ARGS_AS_MEMBERS\n";
|
|
||||||
print OUT "#undef BOOST_SIGNALS_BOUND_ARGS\n";
|
|
||||||
print OUT "#undef BOOST_SIGNALS_ARGS\n";
|
|
||||||
print OUT "#undef BOOST_SIGNALS_PARMS\n";
|
|
||||||
print OUT "#undef BOOST_SIGNALS_TEMPLATE_ARGS\n";
|
|
||||||
print OUT "#undef BOOST_SIGNALS_TEMPLATE_PARMS\n";
|
|
||||||
print OUT "#undef BOOST_SIGNALS_NUM_ARGS\n";
|
|
||||||
print OUT "\n";
|
|
||||||
print OUT "#endif // BOOST_SIGNALS_SIGNAL" . $numArgs . "_HEADER\n";
|
|
||||||
close OUT;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user