Move some header file includes into fragments for UTL languages
This commit is contained in:
parent
d55692c31e
commit
0d9a8721f4
16 changed files with 33 additions and 37 deletions
|
|
@ -26,9 +26,7 @@
|
|||
|
||||
// The Octave C++ Wrap
|
||||
|
||||
%insert(header) %{
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
%include <std_except.i>
|
||||
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@
|
|||
|
||||
%{
|
||||
#include <list>
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<algorithm>");
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
// exported class
|
||||
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@
|
|||
|
||||
%{
|
||||
#include <map>
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<algorithm>");
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
// exported class
|
||||
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@
|
|||
|
||||
%{
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<algorithm>");
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
// exported class
|
||||
|
||||
|
|
|
|||
|
|
@ -32,9 +32,7 @@
|
|||
|
||||
/**** The PySequence C++ Wrap ***/
|
||||
|
||||
%insert(header) %{
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
%include <std_except.i>
|
||||
|
||||
|
|
|
|||
|
|
@ -26,9 +26,7 @@
|
|||
|
||||
/**** The RubySequence C++ Wrap ***/
|
||||
|
||||
%insert(header) %{
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
%include <std_except.i>
|
||||
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
%{
|
||||
#include <deque>
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
|
||||
/* This macro defines all of the standard methods for a deque. This
|
||||
|
|
|
|||
|
|
@ -24,10 +24,8 @@
|
|||
//
|
||||
|
||||
%fragment("<string>");
|
||||
%{
|
||||
#include <stdexcept>
|
||||
#include <stddef.h>
|
||||
%}
|
||||
%fragment("<stdexcept>");
|
||||
%fragment("<stddef.h>");
|
||||
|
||||
|
||||
%fragment("StdIteratorTraits","header",fragment="<stddef.h>") %{
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@
|
|||
#error "do not use this version of std_except.i"
|
||||
#endif
|
||||
|
||||
%{
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
#if defined(SWIG_STD_EXCEPTIONS_AS_CLASSES)
|
||||
|
||||
|
|
|
|||
|
|
@ -57,9 +57,9 @@
|
|||
|
||||
%{
|
||||
#include <map>
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<algorithm>");
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
// exported class
|
||||
|
||||
|
|
|
|||
|
|
@ -60,9 +60,9 @@
|
|||
|
||||
%{
|
||||
#include <unordered_map>
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<algorithm>");
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
// exported class
|
||||
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
%{
|
||||
#include <map>
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<algorithm>");
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
// exported class
|
||||
|
||||
|
|
|
|||
|
|
@ -29,10 +29,10 @@
|
|||
// ------------------------------------------------------------------------
|
||||
|
||||
%fragment("<string>");
|
||||
%fragment("<stdexcept>");
|
||||
%fragment("<algorithm>");
|
||||
%{
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
|
||||
Tcl_Obj* SwigString_FromString(const std::string &s) {
|
||||
return Tcl_NewStringObj(s.data(), (int)s.length());
|
||||
|
|
|
|||
|
|
@ -52,9 +52,9 @@
|
|||
}
|
||||
}
|
||||
*/
|
||||
%{
|
||||
#include <stdexcept>
|
||||
%}
|
||||
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
%define SWIG_CATCH_STDEXCEPT
|
||||
/* catching std::exception */
|
||||
catch (std::invalid_argument& e) {
|
||||
|
|
|
|||
|
|
@ -157,6 +157,14 @@
|
|||
#include <string>
|
||||
%}
|
||||
|
||||
%fragment("<stdexcept>", "header") %{
|
||||
#include <stdexcept>
|
||||
%}
|
||||
|
||||
%fragment("<algorithm>", "header") %{
|
||||
#include <algorithm>
|
||||
%}
|
||||
|
||||
%fragment("SWIG_isfinite","header",fragment="<math.h>,<float.h>") %{
|
||||
/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
|
||||
#ifndef SWIG_isfinite
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
//
|
||||
|
||||
%fragment("<string>");
|
||||
%{
|
||||
#include <stdexcept>
|
||||
%}
|
||||
%fragment("<stdexcept>");
|
||||
|
||||
%fragment("Traits","header",fragment="<string>")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue