Typemap for size_t applied to std::size_t
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f133111e79
commit
62741dd03e
10 changed files with 37 additions and 0 deletions
|
|
@ -5,6 +5,8 @@
|
|||
//
|
||||
// Guile implementation
|
||||
|
||||
%apply size_t { std::size_t };
|
||||
|
||||
#define SWIG_bool2scm(b) gh_bool2scm(b ? 1 : 0)
|
||||
#define SWIG_string2scm(s) gh_str02scm(s.c_str())
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1,9 @@
|
|||
//
|
||||
// SWIG typemaps for STL - common utilities
|
||||
// Luigi Ballabio
|
||||
// Aug 17, 2003
|
||||
//
|
||||
// Java implementation
|
||||
|
||||
%apply size_t { std::size_t };
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
//
|
||||
// MzScheme implementation
|
||||
|
||||
%apply size_t { std::size_t };
|
||||
|
||||
%{
|
||||
#include <string>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
//
|
||||
// Ocaml implementation
|
||||
|
||||
%apply size_t { std::size_t };
|
||||
|
||||
%{
|
||||
#include <string>
|
||||
CAML_VALUE SwigString_FromString(const std::string& s) {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
//
|
||||
// Perl implementation
|
||||
|
||||
%apply size_t { std::size_t };
|
||||
|
||||
%{
|
||||
#include <string>
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1,9 @@
|
|||
//
|
||||
// SWIG typemaps for STL - common utilities
|
||||
// Luigi Ballabio
|
||||
// Aug 17, 2003
|
||||
//
|
||||
// PHP implementation
|
||||
|
||||
%apply size_t { std::size_t };
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
//
|
||||
// Python implementation
|
||||
|
||||
%apply size_t { std::size_t };
|
||||
|
||||
%{
|
||||
#include <string>
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
//
|
||||
// Ruby implementation
|
||||
|
||||
%apply size_t { std::size_t };
|
||||
|
||||
%{
|
||||
#include <string>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
// the %include directives below will fetch the files from the
|
||||
// appropriate language directory
|
||||
|
||||
%include std_common.i
|
||||
%include std_string.i
|
||||
%include std_vector.i
|
||||
%include std_map.i
|
||||
|
|
|
|||
|
|
@ -1 +1,9 @@
|
|||
//
|
||||
// SWIG typemaps for STL - common utilities
|
||||
// Luigi Ballabio
|
||||
// Aug 17, 2003
|
||||
//
|
||||
// Tcl implementation
|
||||
|
||||
%apply size_t { std::size_t };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue